refactor: migrate storage paths ~/.uncaged/workflow → ~/.uwf #14
Reference in New Issue
Block a user
Delete Branch "refactor/storage-path-migration"
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
Migrate storage paths from
~/.uncaged/workflowto~/.uwfand CAS from~/.uncaged/json-casto~/.ocas.Why
Phase 2 of United Workforce migration (issue #9).
Changes
~/.uncaged/workflow→~/.uwf~/.uncaged/json-cas→~/.ocasUWF_STORAGE_ROOT(new primary),OCAS_DIR(new primary)Migration behavior
On
uwfstartup, if~/.uwfdoesn't exist but~/.uncaged/workflowdoes → creates symlink + prints warning. Same for CAS.Verification
bun run check✅bun run test✅Closes #9
LGTM ✅
存储路径迁移干净利落:
UWF_STORAGE_ROOT→WORKFLOW_STORAGE_ROOT→UNCAGED_WORKFLOW_STORAGE_ROOT(legacy)→ defaultOCAS_DIR→UNCAGED_CAS_DIR→ defaultmigrateStorageIfNeeded()在 CLI 入口顶层调用,symlink + warning 实现简洁getDefaultWorkflowStorageRoot标记@deprecated指向新函数store.ts和storage.ts(util-agent)两处 resolve 逻辑保持一致