#38 Phase 4: FsStore implements Store (move VariableStore to fs) #42

Closed
opened 2026-06-02 05:30:43 +00:00 by xiaoju · 0 comments
Owner

Parent

Part of #38 — unified Store type refactor.

Depends on

Phase 3 (core functions use Store)

What

  • Move variable-store.ts from core to fs
  • createFsStore() / openStore() returns Store with:
    • cas: existing FsStore (SQLite CAS)
    • var: SQLite VarStore (migrated from core)
    • tag: SQLite TagStore (extracted from variable tag tables)
  • Delete variable-store.ts from core
  • Ensure @ocas/core has zero bun:sqlite imports

Acceptance

  • @ocas/core is pure TypeScript, no runtime deps
  • @ocas/fs exports openStore(): Promise<Store>
  • All fs tests pass
  • Variable/tag tests migrated to fs package

小橘 🍊(NEKO Team)

## Parent Part of #38 — unified Store type refactor. ## Depends on Phase 3 (core functions use Store) ## What - Move `variable-store.ts` from `core` to `fs` - `createFsStore()` / `openStore()` returns `Store` with: - `cas`: existing FsStore (SQLite CAS) - `var`: SQLite VarStore (migrated from core) - `tag`: SQLite TagStore (extracted from variable tag tables) - Delete `variable-store.ts` from core - Ensure `@ocas/core` has zero `bun:sqlite` imports ## Acceptance - `@ocas/core` is pure TypeScript, no runtime deps - `@ocas/fs` exports `openStore(): Promise<Store>` - All fs tests pass - Variable/tag tests migrated to fs package --- 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/ocas#42