Skip to content

fix(cli): add .squad/casting to ENSURE_DIRECTORIES in upgrade.ts #820

Closed

Description

@diberry

Parent: #817 (FR-1)

The Fix

Add .squad/casting\ to the \ENSURE_DIRECTORIES\ array in \packages/squad-cli/src/cli/commands/upgrade.ts\ (around line 282).

Also scaffold default casting files (registry.json, policy.json, history.json) if they don't exist after creating the directory. See how \initSquad()\ in the SDK creates these for reference.

Why

\squad upgrade\ doesn't create .squad/casting/, causing \squad doctor\ to fail on repos that were init'd before casting was added.

Acceptance Criteria

  • .squad/casting\ in ENSURE_DIRECTORIES
  • Default casting files scaffolded if missing
  • Existing tests still pass
  • \squad doctor\ passes after upgrade on a pre-casting repo

Effort: 30 min

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions