WeKnora/cli/cmd
nullkey a68cc59310 refactor(cli,auth): consolidate auth/profile model (BREAKING)
Auth now acts on the active profile instead of per-command --host/--name:
register a target with `profile add <name> --host <url> --use`, then
`auth login`. `auth login --with-token` reads an API key from stdin
(non-interactive, agent default); password login is interactive-only.

`auth token` prints the raw credential by default (clean $(...) capture);
--format json emits the {token,mode,profile} envelope, --jq implies json.
Login mode label corrected (api-key vs bearer). profile use and the auth/
profile read commands gain --dry-run / agent-help where they were missing.
2026-06-08 20:18:43 +08:00
..
agent feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
api feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
auth refactor(cli,auth): consolidate auth/profile model (BREAKING) 2026-06-08 20:18:43 +08:00
chat refactor(cli): finish context→profile cascade + post-review hardening (BREAKING) 2026-05-27 10:56:34 +08:00
chunk feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
doc feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
doctor refactor(cli): finish context→profile cascade + post-review hardening (BREAKING) 2026-05-27 10:56:34 +08:00
kb feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
link feat(cli): --dry-run + risk metadata + validation parity on 19 mutations 2026-05-28 19:29:50 +08:00
mcp refactor(cli): finish context→profile cascade + post-review hardening (BREAKING) 2026-05-27 10:56:34 +08:00
profile refactor(cli,auth): consolidate auth/profile model (BREAKING) 2026-06-08 20:18:43 +08:00
search refactor(cli): finish context→profile cascade + post-review hardening (BREAKING) 2026-05-27 10:56:34 +08:00
session feat(cli): session continue-stream + NDJSON init MessageID 2026-05-28 19:29:50 +08:00
completion_test.go feat(cli): api --input + completion smoke 2026-05-14 10:57:17 +08:00
root.go feat(cli): --format json default + NDJSON event stream + context→profile cascade + help calibration + docs (BREAKING) 2026-05-27 10:56:34 +08:00
root_test.go refactor(cli): symmetric envelope infrastructure (supersedes e623e820) 2026-05-27 10:56:34 +08:00
root_unknown_subcommand_test.go refactor(cli): symmetric envelope infrastructure (supersedes e623e820) 2026-05-27 10:56:34 +08:00