Repository navigation
Conversation
Move hardcoded constants to configurable values: - MAX_CONTENT_LENGTH: 10,000 → 100,000 (10x). Document engine needs larger content support. Set to 0 to disable entirely. - MAX_PAYLOAD_SIZE: 1MB → 10MB (for document uploads). - Added LimitsConfig struct with env var overrides: UTEKE_MAX_CONTENT_LENGTH, UTEKE_MAX_TAGS_COUNT, UTEKE_MAX_TAG_LENGTH, UTEKE_MAX_PAYLOAD_SIZE, UTEKE_DEFAULT_RECALL_LIMIT - Added [limits] section to default config template - Added validate_input_with_limits() for custom limit validation - Original validate_input() now delegates with default constants Blocks #406 (document engine).
…window (#420) Add chunk_markdown() to chunker.rs: - Splits by headings (levels 1-6) - Respects code block fences (backtick blocks never split) - Falls back to paragraph-level splitting for oversized sections - Hard-splits very long paragraphs at sentence/word boundaries - Returns TextChunk { heading, content, level, char_start, char_end } Token window: max_chars parameter should be derived from embedder.max_seq_len() (~4 chars per token): - ONNX (256 tokens): ~1024 chars - OpenAI (8191 tokens): ~32K chars 7 new tests covering headings, code blocks, large sections, empty input, nested levels, and char offsets.
…#421) Add auto_link_cosine() to edges.rs — runs after every remember(): - Searches vector index for top-20 similar memories - Creates similar_to edge when cosine >= 0.80 - Creates possible_duplicate edge when cosine >= 0.92 - Best-effort: errors logged, never fails remember() New edge types: EDGE_SIMILAR_TO, EDGE_POSSIBLE_DUPLICATE Thresholds are constants (will be configurable in future). Tests marked #[ignore] (require ONNX embedder like other integration tests).
#422) * feat(#408): /graph API endpoint — nodes + edges JSON for visualization Add GET /graph endpoint to uteke-server: - Returns all graph nodes and edges as JSON - Optional ?namespace=<ns> query param for filtering - Response: { nodes: [...], edges: [...], stats: {...} } New Uteke::graph_data() method exposes GraphStore.all_nodes() and all_edges() in a single call for visualization clients. * style: fmt fix
…#423) * feat(#409): view-only API key model — role/permission for uteke-serve Add dual-role API token support to uteke-server: - Admin token (--auth-token): full access to all endpoints - Read-only token (--read-only-token): GET-only access Read-only tokens can access recall, search, list, stats, graph, and health endpoints. POST/DELETE operations return 403 Forbidden. Both tokens use SHA-256 hashing with constant-time comparison. Env vars: UTEKE_AUTH_TOKEN (admin), UTEKE_READ_ONLY_TOKEN (read-only) Usage: uteke-serve --auth-token admin-secret --read-only-token viewer-key # Read-only client: curl -H "Authorization: Bearer viewer-key" http://localhost:8767/stats # Write attempt fails: curl -X POST -H "Authorization: Bearer viewer-key" ... → 403 * style: fmt
The Hermes plugin template was missing room_remember — the ability
to store a memory directly into a room with author attribution.
New action:
uteke(action="room_remember", room_id="planning",
content="Sprint deadline is Friday", author="agent1")
This routes to POST /remember with room and author fields.
Note: room_document deferred until #406 (document engine) lands.
…en() (#424) * feat(#407): embed-aware chunking — chunk size from embedder.max_seq_len() Add chunk_markdown_embed_aware() that derives max_chars from the embedder token limit using the heuristic ~4 chars per token: - ONNX (256 tokens): 1024 chars per chunk - OpenAI (8191 tokens): 32764 chars per chunk - Ollama (2048 tokens): 8192 chars per chunk Uses the existing Embedder::max_seq_len() trait method. Test: mock embedder with 256 tokens validates chunk size constraint. * style: fmt
…ema v11) (#426) Core wiki/knowledge base engine for uteke. Schema v11: documents + document_chunks tables. Store layer: upsert, get, list, delete, chunk insertion. Uteke API: doc_upsert (auto-chunk + embed), doc_get, doc_list, doc_delete. 3 unit tests: CRUD, version increment, namespace isolation. Foundation for #411 (doc CLI commands).
…export (#427) * feat(#406): document engine — documents + document_chunks tables (schema v11) Core wiki/knowledge base engine for uteke. Schema v11: documents + document_chunks tables. Store layer: upsert, get, list, delete, chunk insertion. Uteke API: doc_upsert (auto-chunk + embed), doc_get, doc_list, doc_delete. 3 unit tests: CRUD, version increment, namespace isolation. Foundation for #411 (doc CLI commands). * feat(#411): document CLI commands — uteke doc create/get/list/delete/export Add CLI commands for the document engine (#406): uteke doc create <slug> [--file path.md | --content "text"] [--title T] [--tags a,b] uteke doc get <slug-or-id> uteke doc list [--limit 20] uteke doc delete <id> uteke doc export [--output file] All commands support --json output and --namespace flag. Title auto-derived from first # heading if not specified. Includes #406 document engine (cherry-picked for dependency).
Version bump 0.2.1 → 0.3.0. Major features: - Document engine (#406): documents + document_chunks, wiki/knowledge base - Document CLI (#411): uteke doc create/get/list/delete/export - Markdown chunker (#405): heading-aware splitting - Embed-aware chunking (#407): chunk size from embedder.max_seq_len() - Cosine auto-linking (#401): similar_to + possible_duplicate edges - Configurable limits (#404): env vars + config section - /graph API (#408): visualization endpoint - View-only API key (#409): dual-role tokens - Hermes plugin room_remember (#410) Schema v11 migration. Closes all 11 milestone issues.
🔍 Cora AI Code ReviewReview powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
release: v0.3.0 — sync develop to main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Release v0.3.0 — Graph RAG
Merge develop → main for v0.3.0 release.
All 11 milestone issues closed. 295 tests. Clippy clean. Fmt clean.
After merge: Tag v0.3.0 will trigger release workflow.