Skip to content

fix(init): scaffold casting files + silence no-remote errors (#579) - #583

Merged
bradygaster merged 3 commits into
devfrom
squad/579-init-scaffolding-hardening
Mar 24, 2026
Merged

bradygaster merged 3 commits into
devfrom
squad/579-init-scaffolding-hardening

Conversation

@bradygaster

Copy link
Copy Markdown
Collaborator

Summary

Fixes #579 — Init scaffolding gaps: missing casting files and noisy git remote errors.

Changes

EECOM (SDK fix):

  • Silenced stderr on 3 git remote get-url calls that leaked "No such remote 'origin'" on fresh repos
  • Added casting file scaffolding: registry.json, policy.json, history.json now copied during init
  • Build clean, 16/16 existing tests passing + 2 new

FIDO (Tests):

  • 15 new tests covering casting file scaffolding, no-remote resilience, and doctor validation
  • Tests verify JSON validity of scaffolded files and zero doctor failures after fresh init

Testing

  • npm run build — clean
  • npx vitest run — all passing including 15 new tests

Copilot AI added 3 commits March 23, 2026 23:57
- Add stdio: ['pipe','pipe','pipe'] to all execFileSync('git remote get-url origin')
  calls in SDK init so stderr doesn't leak when no remote is configured
- Scaffold .squad/casting/policy.json, registry.json, history.json from
  SDK templates during init (falls back to inline defaults)
- Respect skipExisting: pre-existing casting files are never overwritten
- Add tests for casting file scaffolding and content validation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Verify that init produces a complete .squad/ directory, particularly:
- casting/ subtree (registry.json, policy.json, history.json)
- no-remote resilience (git repo without origin configured)
- doctor validation passes after a fresh init

15 tests covering initSquad() SDK, runInit() CLI, and doctor checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster
bradygaster force-pushed the squad/579-init-scaffolding-hardening branch from 6b0e735 to 279b1a0 Compare March 24, 2026 06:57
@bradygaster
bradygaster merged commit 7f8a3a7 into dev Mar 24, 2026
1 of 2 checks passed
@bradygaster
bradygaster deleted the squad/579-init-scaffolding-hardening branch March 24, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors and warnings after squad-cli init v0.9.1

2 participants