10 Commits

Author SHA1 Message Date
a3b3c598ab feat: admin agent switcher - view any agent's config from WebUI
- 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)
2026-04-22 16:13:51 +00:00
eadaa97caa fix: only mask secret values, show non-secret values in plaintext 2026-04-21 04:06:38 +00:00
58494b8fca feat: React webui with flags support, build-ui pipeline
- packages/webui: Vite + React + Tailwind v4, single-file bundle
- Dark industrial theme, Space Grotesk + JetBrains Mono
- Config table with scope/flag badges, masked values, search/filter
- Admin panel for agent management
- scripts/build-ui.sh generates worker/src/ui.ts from webui build
- Worker serves UI at GET / before auth check
2026-04-21 04:01:35 +00:00
117e334a07 refactor: bun monorepo, @shazhou/cfg CLI (TS), cleanup old cli/scripts
- 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
2026-04-21 02:59:24 +00:00
211533346b Merge pull request 'feat: env/secret flags for config entries' (#2) from feat/entry-flags into main 2026-04-21 02:41:58 +00:00
d6e78fc5a9 chore: drop legacy Python CLI, keep Node.js version as cli/cfg.js
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>
2026-04-21 10:40:14 +08:00
f6bb13271d feat: add env/secret flags to config entries
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>
2026-04-21 10:34:31 +08:00
7ea436be34 fix: pass CONFIG_KV binding to handlePut, add custom domain config 2026-04-20 14:02:58 +00:00
4c6271a21a init: config service — layered KV store with CF Worker + CLI
- CF Worker with shared/personal scope layering
- Python CLI client (cfg) with sync/get/set/list/delete
- Agent registration script
- Auth via bearer token, sha256 hash lookup
2026-04-20 13:02:11 +00:00
17a1f81e80 Initial commit 2026-04-20 13:00:25 +00:00