chore: Phase 1 code style fixes and missing features #28

Merged
xiaonuo merged 1 commits from fix/27-phase1-code-style-fixes into main 2026-05-30 06:51:35 +00:00
Owner

What

Fix code style issues and add missing features from Phase 1 review.

Changes

  • variable.tsinterface Variabletype Variable
  • variable-store.ts — added list() method with scope prefix matching
  • cli index.ts — JSON envelope { type, value } output for all var commands, added var list subcommand
  • Tests updated: 168 passing

Ref

Fixes #27

## What Fix code style issues and add missing features from Phase 1 review. ## Changes - `variable.ts` — `interface Variable` → `type Variable` - `variable-store.ts` — added `list()` method with scope prefix matching - `cli index.ts` — JSON envelope `{ type, value }` output for all var commands, added `var list` subcommand - Tests updated: 168 passing ## Ref Fixes #27
xiaonuo added 1 commit 2026-05-30 06:51:22 +00:00
Fixes #27

Changes:
1. Variable uses type instead of interface
2. Add JSON envelope output {type, value} to all CLI var commands
3. Add list method with scope prefix matching to VariableStore and CLI
4. Fix var-db path to default to <storePath>/variables.db instead of <defaultStorePath>/variables.db

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
xiaonuo merged commit 263fe40146 into main 2026-05-30 06:51:35 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/json-cas#28