feat: bootstrap writes to varStore instead of returning map (#16 Phase 1) #17

Closed
opened 2026-06-01 10:09:29 +00:00 by xiaoju · 0 comments
Owner

What

bootstrap() 改造:接受 varStore 参数,内置 schema 直接写入 variable store,不再返回 builtinSchemas map。

Parent

Ref #16

Changes

  1. bootstrap(store)bootstrap(store, varStore)
  2. 内置 schema 通过 varStore.set() 写入
  3. 返回值从 Record<string, Hash> 改为 void
  4. 更新调用链和 tests

Acceptance

  • bun test all pass
  • ocas var list @ocas/ 可以列出所有内置类型
  • bootstrap 幂等性不变

小橘 🍊(NEKO Team)

## What `bootstrap()` 改造:接受 varStore 参数,内置 schema 直接写入 variable store,不再返回 `builtinSchemas` map。 ## Parent Ref #16 ## Changes 1. `bootstrap(store)` → `bootstrap(store, varStore)` 2. 内置 schema 通过 `varStore.set()` 写入 3. 返回值从 `Record<string, Hash>` 改为 `void` 4. 更新调用链和 tests ## Acceptance - `bun test` all pass - `ocas var list @ocas/` 可以列出所有内置类型 - bootstrap 幂等性不变 小橘 🍊(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#17