ktx/packages/cli
Andrey Avtomonov 6c4623f2ff
feat(cli): enforce required database selection and improve tree-picker UX (#86)
* feat(cli): enforce required database selection and improve tree-picker UX

- Require at least one database driver via prompt `required: true` instead of
  looping on empty selection; remove the now-dead retry/back-on-empty branch.
- Surface the recommended option with a "(recommended)" hint in the depth and
  query-history prompts.
- Tree picker: add `◧` partial glyph for parents whose descendants are checked,
  and make `a` toggle select-all-visible / select-none.

* fix(cli): drop unused export from tree-picker toggleSelectAllVisible

Knip flagged the export as unused; the function is only consumed by the
internal reducer via the 'toggle-select-all-visible' command, so demote
it to a module-local helper to keep CI's dead-code check green.

* test(cli): drop empty-selection warning assertion from setup test

The empty-selection retry/warning loop in `chooseDrivers` was removed in
favor of `multiselect`'s `required: true`, so the legacy warning string
is unreachable. Update the test to assert the simpler back-from-selection
return-to-embeddings flow.
2026-05-14 14:35:58 +02:00
..
assets/demo/orbit feat: rename project wiki directory (#66) 2026-05-13 16:05:58 +02:00
scripts feat: rename project wiki directory (#66) 2026-05-13 16:05:58 +02:00
src feat(cli): enforce required database selection and improve tree-picker UX (#86) 2026-05-14 14:35:58 +02:00
package.json ci: add codecov coverage reporting (#82) 2026-05-14 01:13:31 +02:00
tsconfig.json Initial open-source release 2026-05-10 23:12:26 +02:00
vitest.config.ts Initial open-source release 2026-05-10 23:12:26 +02:00