Commit graph

17 commits

Author SHA1 Message Date
sknr
ec9780b650 feat(mcp): support multi-scope search and cross-scope show in MCP server and schema 2026-10-01 12:20:29 +02:00
sknr
0c9676af6c docs(cli): update in-binary CLI usage and help texts with scopes and examples 2026-10-01 12:12:17 +02:00
sknr
9d462a662b test(scope): add end-to-end tests for all scope combinations and document scope matrix 2026-10-01 11:51:22 +02:00
sknr
57469137ba feat(scope): implement --scope flag and ensure external links never fail validation 2026-10-01 11:44:59 +02:00
sknr
d72f5de743 feat(scope): standardize vendor references on clean @bundle syntax without legacy vendor prefix 2026-10-01 11:23:04 +02:00
sknr
28f82706a2 fix(registry): support scoped packages with leading @ and server fallback 2026-10-01 10:46:26 +02:00
sknr
e3f60aea02 fix(cli): trim leading v prefix from version in usage output 2026-10-01 10:27:50 +02:00
sknr
11074749c0 feat(vendor): add okf restore, argless pull, and harden vendor remove
- Add 'okf restore' command to reinstall vendor bundles from okf.lock
- Allow 'okf pull' without arguments to restore from okf.lock
- Skip already installed bundles during restore unless --force is specified
- Harden 'okf vendor remove' to require exact bundle ID match and index.md
- Prevent deletion of parent namespace directories on prefix remove
- Automatically clean up empty okf.lock when last vendor bundle is uninstalled
- Mitigate G110 (decompression bomb) and G304 (path traversal) in package unpacker
- Fix errcheck and staticcheck lint warnings across CLI and test suites
2026-09-30 23:21:34 +02:00
sknr
14924662f4 feat(pull): support @tag and @version resolution and floating branch warning 2026-09-28 19:12:49 +02:00
sknr
c1b8d702cd feat(pull): add post-install validation, rollback on invalid bundle, and github archive root flattening 2026-09-28 18:57:42 +02:00
sknr
a9c10f8646 style: format octal literals via gofmt 2026-09-28 18:28:38 +02:00
sknr
ad620963c9 fix(vendor): validate bundle existence on remove and report clean error if not installed 2026-09-28 18:28:23 +02:00
sknr
a6ae0d6364 feat(search): implement multi-scope composite BM25 indexing and okf:// URI parsing 2026-09-28 18:06:52 +02:00
sknr
82ce065953 feat(cli): add okf pull and okf vendor subcommands 2026-09-28 18:04:05 +02:00
sknr
7cd556fb9f
fix(mcp,cli): constrain tag length to 50 chars, refactor flag visit, and update docs (#38)
- Cap MCP tag length to 50 characters in tools.json schemas and handler
- Replace repeated fsPassed FlagSet visits with local passed map in cmdUpdate
- Add upfront non-empty type validation to cmdCreate
- Link requirements/mutation-metadata in root knowledge/index.md
- Document update flags and MCP tag length limit in docs/guides/CLI.md
- Credit Rogelio (@rogeliodh) for issue #38 report and analysis in CONTRIBUTORS.md
- Record knowledge updates in knowledge/log.md
2026-09-27 21:46:15 +02:00
Denis Samatov
5c29a6ca15
feat: expose concept metadata mutation in CLI and MCP (#38) (#39)
Reported-by: Rogelio (@rogeliodh)
Co-authored-by: Rogelio <110125+rogeliodh@users.noreply.github.com>
2026-09-27 21:24:23 +02:00
sknr
47336e2c19
refactor(cli): extract subcommands and registry into internal/cli package
- Extract command router registry and modular subcommand handlers into internal/cli
- Isolate CLI argument parsing and flags from public API surface
- Reduce cmd/okf/main.go to a lean entrypoint delegating to cli.Execute
- Remove monolithic subcommand files and obsolete tests from cmd/okf
2026-09-25 12:54:23 +02:00