Skip to content

chore: propagate template path fix (.squad-templates/ → .squad/templates/) across codebase #190

Closed

Description

@bradygaster

What

PR #185 by @williamhallatt correctly fixed the template install path from .squad-templates/ to .squad/templates/ in the legacy index.js entry point. However, the old path is still referenced in many other places across the codebase — source code, workflows, tests, and docs.

Where

🔴 Critical — Active code using old path

File What needs to change
packages/squad-sdk/src/config/init.ts Template destination: .squad-templates → .squad/templates
packages/squad-cli/src/cli/core/migrate-directory.ts Rename target path + success messages
packages/squad-cli/src/cli-entry.ts Console output referencing .squad-templates/
.github/workflows/squad-heartbeat.yml (lines 5, 38, 50) File check + script execution path
.github/workflows/squad-promote.yml (lines 39, 52, 104) Grep patterns + directory removal
templates/ralph-triage.js Usage string in console.log
templates/workflows/squad-heartbeat.yml + squad-promote.yml Path references in template source
packages/squad-cli/templates/* Mirror of above
packages/squad-sdk/templates/* Mirror of above

🟡 Tests

File What needs to change
test/cli/init.test.ts (lines 90, 92) Test description + path assertion

🟠 Documentation (8 references)

File References
docs/scenarios/ci-cd-integration.md 5 references to .squad-templates/
docs/scenarios/existing-repo.md 2 references
docs/get-started/first-session.md 1 reference
docs/features/vscode.md 1 reference

✅ Leave as-is (historical)

Agent history files (.squad/agents/*/history.md) — these document what happened and should stay as-is.

Why

The template path was corrected in the legacy entry point (index.js) by PR #185, but the same change needs to propagate to the new TypeScript codebase (packages/), CI/CD workflows, tests, and docs. The heartbeat workflow is actively broken — it checks for .squad-templates/ralph-triage.js which won't exist after a fresh install.

Acceptance Criteria

  • All source code references updated to .squad/templates/
  • All workflow files reference .squad/templates/
  • test/cli/init.test.ts updated to assert correct path
  • All 8 doc references updated
  • npm run build succeeds
  • vitest run passes (or test updated to match new path)

cc @williamhallatt — your PR #185 caught the root bug, this is the follow-through 🎯

Activity

  1. added 3 commits that reference this issue on Mar 4, 2026
    e63a55f
    39b52f0
    64cf7c0
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