WeKnora/cli/cmd/kb
nullkey 3b67986863 feat(cli): per-resource filter flags on list commands
Adds the filter flags users were reaching for via `--jq` post-filter:

- `kb list --pinned` — client-side filter to KBs with `IsPinned`.
- `doc list --status <pending|processing|completed|failed>` —
  server-side query-param filter; `failed` surfaces ingestion errors
  immediately for triage.
- `session list --since <duration>` — client-side filter to sessions
  updated within the past duration. Accepts time.ParseDuration forms
  (24h, 1h30m, 30m) plus a `<N>d` suffix for whole days (7d, 0.5d).

Server-side filters are forwarded as query params (where the API
supports them) to avoid pulling the full list into memory; client-side
filters apply after the fetch so they compose with `--limit`.
2026-05-15 12:03:56 +08:00
..
create.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
create_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
delete.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
delete_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
edit.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
edit_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
empty.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
empty_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
kb.go refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
list.go feat(cli): per-resource filter flags on list commands 2026-05-15 12:03:56 +08:00
list_test.go feat(cli): per-resource filter flags on list commands 2026-05-15 12:03:56 +08:00
pin.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
pin_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
view.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
view_test.go feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00