7f4decee26
- Add `kb reindex` command with confirmation prompt and --yes flag - Add implicit note shorthand: `kb "my note"` submits a note directly - Rename `add` to `addfile`, remove --note/--title/--type flags - Add client-side file extension validation before upload - Add `kb examples` command for common usage patterns - Update README, SKILL.md, and main specs - Archive completed changes and sync delta specs BREAKING: `kb add` renamed to `kb addfile`, `kb add --note` replaced by `kb "text"` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
974 B
974 B
1. Refactor note submission
- 1.1 Extract note submission logic from
runAddinto a sharedsubmitNotehelper (multipart POST, duplicate detection, output formatting)
2. Root command shorthand
- 2.1 Add
Args: cobra.ArbitraryArgsandRunEto the root command — join args into a note string, callsubmitNote; show help when no args - 2.2 Add
--tagsflag on the root command for note tagging
3. Rename add → addfile
- 3.1 Rename command from
addtoaddfile(Use: "addfile <path>") - 3.2 Remove
--note,--title, and--typeflags from the command - 3.3 Add extension validation for single file uploads — reject unsupported extensions with a clear error listing supported types
4. Documentation and verification
- 4.1 Update README.md usage section: show
kb "text"shorthand, renameaddreferences toaddfile - 4.2 Verify build compiles,
kb --helpandkb addfile --helpshow expected output