chore: Phase 3 review cleanup items #47
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?
From PR #46 review
Warnings discovered during Phase 3 code review. Can be addressed during Phase 4/5 or independently.
Items
validateName()duplication — identical implementations inpackages/core/src/store.ts(MemoryVarStore) andpackages/fs/src/var-store.ts(FsVarStore). Extract to a shared module (e.g.errors.tsorvalidation.tsin core, importable by fs).packages/cli/src/prompts/usage.mdstill references oldopenStoreAndVarStore()pattern. Update to reflectOcasStoreAPI.Storetype cleanup — oldStoretype intypes.ts(withputreturningHash | Promise<Hash>) still exported. Deprecate or remove once all consumers migrated.bootstrap()andputSchema()are async butCasStore.put()is synchronous. Consider making sync.Timing
Phase 4 (#42 FsStore) will naturally touch VarStore code — good opportunity for the duplication items. The rest can be done anytime.
小橘 🍊(NEKO Team)