feat(cli): unify uwf CAS store with global json-cas store #575
Reference in New Issue
Block a user
Delete Branch "fix/573-unify-cas-store"
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
This PR implements issue #573 by moving uwf's CAS directory from
~/.uncaged/workflow/cas/to the shared~/.uncaged/json-cas/location, enabling cross-tool visibility and schema sharing.Why
Currently, uwf and json-cas maintain separate CAS stores, preventing:
By unifying the CAS stores, both tools can share nodes and schemas transparently.
Changes
Core Implementation
getGlobalCasDir()function withUNCAGED_CAS_DIRenvironment variable supportcreateUwfStore()to use global CAS directory instead of localgetCasDir()function~/.uncaged/workflow/Test Coverage
store-global-cas.test.ts(11 new tests, 224 lines)Documentation
UNCAGED_CAS_DIRoverride behaviorBenefits
✅ Cross-tool visibility - json-cas CLI can read uwf-created nodes and vice versa
✅ Schema sharing - Both tools access the same schema registry
✅ Future-proofing - Enables json-cas render/verbose features for uwf data
✅ Environment variable support - Users can override the global CAS location
✅ No breaking changes - Existing functionality preserved
Architecture
Before:
After:
Testing
All checks passed:
Ref
Fixes #573