Repository navigation
feat(#411): document CLI commands — uteke doc create/get/list/delete/export - #427
Merged
Merged
Conversation
…ema 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).
…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).
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (5)
Review powered by cora-cli · BYOK · MIT |
| }); | ||
|
|
||
| let tag_refs: Vec<&str> = tags.iter().map(|s| s.as_str()).collect(); | ||
| let id = uteke |
| ); | ||
| } | ||
| println!(); | ||
| println!("{} document(s)", docs.len()); |
| if cli.json { | ||
| println!("{{\"deleted\": \"{id}\"}}"); | ||
| } else { | ||
| println!("\u{2713} Document deleted: {id}"); |
| println!("{{\"deleted\": \"{id}\"}}"); | ||
| } else { | ||
| println!("\u{2713} Document deleted: {id}"); | ||
| } |
| } | ||
|
|
||
| DocCommands::Export { output: _ } => { | ||
| let docs = uteke |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…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).
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.
Implements #411. Depends on #406 (included via cherry-pick).
CLI Commands
All commands support
--jsonand--namespace.Title auto-derived from first
#heading if not specified.Milestone: v0.3.0 — Graph RAG