fix: validate store directory exists before CLI operations #62
Closed
xiaoju
wants to merge 1 commits from
fix/55-store-path-validation into main
pull from: fix/55-store-path-validation
merge into: uncaged:main
uncaged:main
uncaged:fix/90-list-meta-schema
uncaged:feat/82-schema-p3
uncaged:feat/82-schema-p2
uncaged:fix/83-put-hash-pipe
uncaged:fix/82-meta-schema-nested-validation
uncaged:feat/82-schema-p1-leaf-constraints
uncaged:fix/72-template-envelope
uncaged:fix/71-refs-walk-var-envelope
uncaged:fix/70-simple-envelope
uncaged:fix/75-output-schemas
uncaged:fix/74-remove-cat-schema
uncaged:fix/73-auto-bootstrap
uncaged:fix/66-e2e-snapshot-tests
uncaged:fix/e2e-reporter-containerName
uncaged:fix/51-schema-validation
uncaged:fix/46-phase4-cleanup
uncaged:fix/40-liquidjs-integration
uncaged:fix/38-template-cli
uncaged:fix/39-render-rebase
uncaged:fix/39-render-resolution-decay
uncaged:fix/37-builtin-schema-aliases
uncaged:fix/34-cli-var-rewrite
uncaged:fix/32-variable-model-refactor
uncaged:fix/23-gc-integration
uncaged:fix/22-tag-label-query
uncaged:fix/27-phase1-code-style-fixes
uncaged:fix/24-ucas-alias
uncaged:fix/21-variable-crud
uncaged:fix/tsconfig-workspace-paths
uncaged:fix/align-versions-0.5.0
uncaged:fix/15-self-validating-meta-schema
uncaged:issue-11-remove-store-list
uncaged:feat/12-no-null-type
uncaged:feat/9-list-by-type
uncaged:cli/global-store-path
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a445f2ecc5 |
fix: validate store path before read operations (Fixes #55)
- Add validateStoreExists() helper to check store directory existence - Modify openStore() to accept shouldCreate parameter (default: false) - Update read commands to validate store exists first - Update write commands (init, put, schema put, hash) to allow creation - Add 10 E2E tests covering all affected commands - Improve error message: "Store not found at <path>" vs "Node not found" Commands that now validate: - get, has, verify, refs, walk, cat - schema get, schema list Commands that still create: - init, put, schema put, hash - var commands (use openVarStore) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |