ktx/packages/cli/src/io
Andrey Avtomonov 2c9a58bb56
feat(cli): smart defaults and flatter command surface for ktx (#177)
Bare invocations now do the obvious thing instead of erroring out, and mode-as-subcommand patterns collapse into flags on the parent. No new top-level commands.

- `ktx ingest` (bare) ingests every configured connection. The `text` subcommand is gone; capture inline notes with `ktx ingest --text "..."` and files with `ktx ingest --file path` (use `-` for stdin). `--text`/`--file` reject a positional connection id; pass `--connection-id` to tag captured notes.
- `ktx connection` (bare) lists; `ktx connection test` (bare) tests every configured connection.
- `ktx wiki` and `ktx sl` flatten `list`/`search`: bare lists, with a `[query...]` positional searches (multi-word joined with spaces). `sl validate` and `sl query` stay as distinct verbs and now read `--connection-id` from the parent.
- `ktx mcp` (bare) prints daemon status.

Adds a shared `resolveConnectionSelection` helper consumed by ingest and connection test. Updates README, docs-site cli-reference and guides, next-steps strings, agent SKILL templates, and all affected tests. Per-package type-check, unit tests (605), smoke tests, and dead-code checks all pass.
2026-05-20 01:52:37 +02:00
..
logger.test.ts feat(cli): route ingest adapter logs through operational logger 2026-05-12 11:26:34 +02:00
logger.ts feat(cli): route ingest adapter logs through operational logger 2026-05-12 11:26:34 +02:00
mode.test.ts rename klo to ktx 2026-05-10 23:51:24 +02:00
mode.ts rename klo to ktx 2026-05-10 23:51:24 +02:00
print-list.test.ts feat(cli): smart defaults and flatter command surface for ktx (#177) 2026-05-20 01:52:37 +02:00
print-list.ts feat(cli): improve search ranking output (#123) 2026-05-17 02:32:41 +02:00
symbols.ts refactor(cli): unify output formatting across commands (#111) 2026-05-15 08:54:36 -04:00