WeKnora/cli/internal
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
..
agent refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
build feat(cli): scaffold weknora CLI module foundation (PR-1) 2026-05-07 23:19:46 +08:00
cmdutil feat(cli): per-resource filter flags on list commands 2026-05-15 12:03:56 +08:00
compat refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
config feat(cli): contract test suite + dependabot (PR-8) 2026-05-09 12:18:01 +08:00
format feat(cli): --json field-select, --jq, auth token, doc --from-url 2026-05-15 12:03:56 +08:00
iostreams feat(cli): add kb create/delete and doc list/upload/delete commands 2026-05-12 13:20:42 +08:00
projectlink feat(cli): doc view + unlink (fill v0.3 design-gap audit) 2026-05-14 10:57:17 +08:00
prompt feat(cli): keyring backend + TTY prompter (PR-3) 2026-05-07 23:19:46 +08:00
secrets feat(cli): contract test suite + dependabot (PR-8) 2026-05-09 12:18:01 +08:00
sse fix(cli): correct KB id detection, SSE terminal-frame, and CI test isolation 2026-05-12 13:20:42 +08:00
testutil feat(cli): session subtree + kb edit / pin / empty 2026-05-14 10:57:17 +08:00
text refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00
xdg refactor(cli): v0.3 cross-cutting cleanup 2026-05-14 10:57:17 +08:00