feat: env/secret flags for config entries #2

Merged
xiaonuo merged 2 commits from feat/entry-flags into main 2026-04-21 02:41:59 +00:00

2 Commits

Author SHA1 Message Date
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