refactor(core): update all functions to accept OcasStore (single param) #46

Merged
xiaoju merged 1 commits from fix/41-ocas-store-single-param into main 2026-06-02 09:05:58 +00:00
Owner

What

All core functions take single OcasStore param. SQLite removed from core.

Why

Phase 3 of #38.

Changes

  • bootstrap/gc/render/schema/wrap-envelope/output-templates — OcasStore single param
  • variable-store.ts removed from core → moved to @ocas/fs
  • Zero bun:sqlite in core. 560 tests pass.

Fixes #41

## What All core functions take single `OcasStore` param. SQLite removed from core. ## Why Phase 3 of #38. ## Changes - bootstrap/gc/render/schema/wrap-envelope/output-templates — OcasStore single param - variable-store.ts removed from core → moved to @ocas/fs - Zero bun:sqlite in core. 560 tests pass. Fixes #41
xiaoju added 1 commit 2026-06-02 08:15:47 +00:00
- bootstrap(store) — uses store.cas + store.var
- gc(store) — uses store.cas + store.var
- render/renderAsync/renderDirect — uses store.cas + store.var for templates
- refs/walk/validate/getSchema/putSchema — uses store.cas
- wrapEnvelope — uses store.cas + store.var
- registerOutputTemplates — uses store.cas + store.var
- Remove VariableStore SQLite class from @ocas/core
- Zero bun:sqlite imports in core
- Update @ocas/fs and @ocas/cli to new signatures
- 560 tests pass

Fixes #41
xiaoju merged commit 385815534f into main 2026-06-02 09:05:58 +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: shazhou/ocas#46