feat: built-in uwf cas commands replacing json-cas passthrough #323
Reference in New Issue
Block a user
Delete Branch "feat/319-uwf-cas-builtin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replace the
uwf caspassthrough (which shelled out tojson-casCLI) with built-in commander subcommands using@uncaged/json-casAPI directly.Why
uwf cas --help看到完整子命令列表json-casCLI 在 PATHCommands
Changes
packages/cli-uwf/src/commands/cas.ts— new, all CAS command implementationspackages/cli-uwf/src/cli.ts— replaced passthrough with proper commander subcommandspackages/cli-uwf/src/commands/setup.ts— type fix (exactOptionalPropertyTypes)Verified
tsc --noEmitpassesuwf cas --helpshows all subcommandsuwf cas has 0000000000000→ falseuwf cas listworks on empty storeuwf cas schema --helpshows sub-subcommandsRef
Refs #319, Closes #320
LGTM ✅
readJsonArginline JSON / file 双路解析合理printedSet)👍setup.ts的null as unknown as Record<string, unknown>有点 smell,但不阻塞小墨 🖊️