Skip to content

feat: Complete uteke_client.rs — add missing doc, graph, tags, pin, timeline methods #115

Description

@ajianaz

Problem

uteke_client.rs currently implements 18/33 available uteke-serve HTTP methods. 15 methods are missing across documents, graph mutations, tags, pin/unpin, timeline, and edges.

Gap Analysis

Documents (7 methods — HIGH priority)

Method Endpoint Description
doc_list POST /doc/list List documents
doc_get POST /doc/get Get document by slug/ID
doc_create POST /doc/create Create or update document
doc_search POST /doc/search Semantic + FTS5 hybrid search
doc_delete POST /doc/delete Delete document (cascades)
doc_children POST /doc/children List child documents
doc_move POST /doc/move Move document to new parent

Graph Mutations (2 methods — HIGH priority)

Method Endpoint Description
add_edge POST /graph/edge Add graph edge (enables dropping uteke-core)
remove_edge DELETE /graph/edge Remove graph edge

Graph Read-only (3 methods — MEDIUM)

Method Endpoint Description
neighbors GET /graph/neighbors BFS from node
path GET /graph/path Shortest path
stats GET /graph/stats Graph statistics

Other (3 methods — LOW)

Method Endpoint Description
Tags GET /tags List tags with counts
Pin/Unpin POST /pin, POST /unpin Pin memory
Timeline GET /timeline Memory audit log

Requirements

  • Rust structs: UtekeDoc, UtekeDocChunk (mirrors uteke-serve response)
  • All doc endpoints are POST with JSON body (consistent with existing room endpoints)
  • Reference: uteke-serve-doc-api.md in hub-dev skill references

Acceptance Criteria

  • All 15 methods compile and pass cargo check
  • cargo test passes
  • ipc.ts + types.ts updated with doc-related types
  • Existing room endpoints unaffected

Related

  • Kanban task: t_3e955067, t_9162ad2e, t_c4227180
  • Uteke doc: corin-kanban-integration-api (namespace: codecora)

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/highImportant, next sprintscope/backendRust backend / Tauri commandsscope/utekeUteke-core integration layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions