feat: migrate CAS to global storage #34

Merged
xiaoju merged 1 commits from feat/30-global-cas into main 2026-05-07 10:40:41 +00:00
Owner

What

Migrate CAS from thread-local <threadId>.cas/ to global ~/.uncaged/workflow/cas/.

Why

Global CAS is prerequisite for workflow-as-agent (#25).

Changes

  • storage-root.ts — add getGlobalCasDir()
  • cas.ts — rename createThreadCascreateCasStore
  • cmd-cas.ts — use global CAS dir
  • cmd-thread.ts — thread rm no longer deletes .cas/
  • 134 tests passing

Ref

Fixes #30, Refs #25

## What Migrate CAS from thread-local `<threadId>.cas/` to global `~/.uncaged/workflow/cas/`. ## Why Global CAS is prerequisite for workflow-as-agent (#25). ## Changes - `storage-root.ts` — add `getGlobalCasDir()` - `cas.ts` — rename `createThreadCas` → `createCasStore` - `cmd-cas.ts` — use global CAS dir - `cmd-thread.ts` — thread rm no longer deletes .cas/ - 134 tests passing ## Ref Fixes #30, Refs #25
xiaoju added 1 commit 2026-05-07 10:40:34 +00:00
- Add getGlobalCasDir() to storage-root.ts
- cmd-cas.ts uses global CAS dir, threadId kept for CLI compat
- thread rm no longer deletes .cas/ directories
- Rename createThreadCas → createCasStore (deprecated alias kept)
- 134 tests passing

BREAKING: CAS moves from <thread>.cas/ to <storageRoot>/cas/

Fixes #30
xiaoju merged commit a3c70a5041 into main 2026-05-07 10:40:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#34