Phase 1: 基础设施 — 自动 bootstrap + 删除废弃命令 + 18 个 @output/* schema 注册 #69
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Parent: #67
Scope
1. 自动 bootstrap
openStore()改为:每次调用都mkdirSync+bootstrap()(幂等)openStore(shouldCreate)参数,不再区分读写validateStoreExists()— bootstrap 会自动创建目录2. 删除废弃命令
init命令(dispatch + 函数)bootstrap命令cat命令(含--payload逻辑)schema子命令(put/get/list/validate)3. 注册 18 个 @output/* schema
在
bootstrap()中注册:每个 schema 带 title/description 区分。别名注册到 variable store。
4. 注册 18 个默认 template
每个 @output/* schema 注册对应的默认 LiquidJS template 到
@ucas/template/text/<hash>。5. 抽取
wrapEnvelope(schemaAlias, value)通用函数统一信封包装逻辑,替代现有的
wrapVariableEnvelope。Verification
bun test通过bun run build通过bun run check通过Ref
Implements Phase 1 of #67