- Add agent selector dropdown in header (admin only)
- Return role in GET /config response
- Collect agents from both auth: and agent_tokens: KV prefixes
- Show 'viewing <agent>' badge when viewing another agent
- Non-admin users see only their own config (unchanged)
- Restructured as bun monorepo with packages/cfg and packages/worker
- CLI rewritten in TypeScript with modular architecture
- Published as @shazhou/cfg@1.0.0 (replaces @shazhou/config)
- Deprecated @shazhou/config on npm
- Removed legacy Python scripts and old cli-npm package
The Python CLI (cli/cfg) was outdated. The actively maintained
version is the Node.js CLI published as @shazhou/config on npm.
Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
Worker changes:
- KVEntry now has optional env (default true) and secret (default false) fields
- PUT /config/:key accepts env and secret in request body
- New PATCH /config/:key endpoint to update flags without changing value
- GET and sync responses include env/secret flags
- Backward compatible: existing entries default to env=true, secret=false
CLI changes (cli/cfg-node):
- cfg set supports --no-env and --secret flags
- cfg env skips entries with env=false
- cfg list shows no-env/secret flags with color
- New cfg flags command to view/modify flags on existing keys
Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>