@delorenj/pjangler 1.2.25 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/index.js +8649 -5528
- package/dist/mcp-server.js +8174 -5456
- package/package.json +8 -4
- package/templates/commonproject/copier.yml +6 -6
- package/templates/commonproject/template/.agents/hooks/README.md +10 -10
- package/templates/commonproject/template/.agents/hooks/hooks.master.json +1 -1
- package/templates/commonproject/template/.agents/hooks/sync.py +4 -4
- package/templates/commonproject/template/.agents/local.example.json +1 -1
- package/templates/commonproject/template/.agents/skills.json +2 -1
- package/templates/commonproject/template/.env.op +6 -2
- package/templates/commonproject/template/.github/workflows/code-review.yml.jinja +48 -0
- package/templates/commonproject/template/.mise/scripts/hindsight-setup.sh +1 -1
- package/templates/commonproject/template/.mise/scripts/materialize-env.sh +28 -0
- package/templates/commonproject/template/.mise/scripts/provision-packs.py +565 -0
- package/templates/commonproject/template/.mise/scripts/sync-skills.py +1411 -132
- package/templates/commonproject/template/mise.toml.jinja +19 -16
- package/templates/hermes-agent/copier.yml +28 -4
- package/templates/hermes-agent/template/.gitignore.jinja +1 -0
- package/templates/hermes-agent/template/.runtime-scaffold/README.md +11 -10
- package/templates/hermes-agent/template/.scripts/01-config.sh +4 -4
- package/templates/hermes-agent/template/.scripts/10-hermes-profile.sh +7 -12
- package/templates/hermes-agent/template/.scripts/20-runtime-repo.sh +90 -28
- package/templates/hermes-agent/template/.scripts/30-telegram.sh +18 -4
- package/templates/hermes-agent/template/.scripts/70-systemd.sh +79 -12
- package/templates/hermes-agent/template/.scripts/80-registry.sh +13 -3
- package/templates/hermes-agent/template/.scripts/_lib.sh +12 -5
- package/templates/hermes-agent/template/.scripts/config.example.toml +7 -4
- package/templates/hermes-agent/template/.scripts/credential-launch.sh +81 -0
- package/templates/hermes-agent/template/.scripts/heartbeat.sh +2 -1
- package/templates/hermes-agent/template/.scripts/lib/ticket-provider.sh +15 -7
- package/templates/hermes-agent/template/.scripts/providers/linear.sh +41 -1
- package/templates/hermes-agent/template/.scripts/providers/plane.sh +117 -21
- package/templates/hermes-agent/template/.scripts/providers/trello.sh +34 -1
- package/templates/hermes-agent/template/.scripts/reporter-watchdog.py +242 -0
- package/templates/hermes-agent/template/.scripts/secret-scan.py +134 -0
- package/templates/hermes-agent/template/.scripts/sentinel.prompt.md.jinja +3 -2
- package/templates/hermes-agent/template/SOUL.md.jinja +34 -12
- package/templates/hermes-agent/template/hermes.jinja +36 -7
- package/templates/hermes-agent/template/role.yaml.jinja +16 -5
- package/templates/commonproject/.augment/commands/bmad/agents/bmb-agent-builder.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmb-module-builder.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmb-workflow-builder.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-analyst.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-architect.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-dev.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-pm.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-quick-flow-solo-dev.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-sm.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-tea.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-tech-writer.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/bmm-ux-designer.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-brainstorming-coach.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-creative-problem-solver.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-design-thinking-coach.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-innovation-strategist.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-presentation-master.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/cis-storyteller.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/agents/core-bmad-master.md +0 -14
- package/templates/commonproject/.augment/commands/bmad/tasks/core-index-docs.md +0 -74
- package/templates/commonproject/.augment/commands/bmad/tasks/core-shard-doc.md +0 -118
- package/templates/commonproject/.augment/commands/bmad/workflows/bmb-agent.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmb-module.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmb-workflow.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-check-implementation-readiness.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-code-review.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-correct-course.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-architecture.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-epics-and-stories.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-excalidraw-dataflow.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-excalidraw-diagram.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-excalidraw-flowchart.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-excalidraw-wireframe.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-product-brief.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-story.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-create-ux-design.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-dev-story.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-document-project.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-generate-project-context.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-prd.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-quick-dev.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-quick-spec.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-research.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-retrospective.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-sprint-planning.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-sprint-status.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-atdd.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-automate.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-ci.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-framework.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-nfr.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-test-design.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-test-review.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-testarch-trace.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-workflow-init.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/bmm-workflow-status.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/cis-design-thinking.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/cis-innovation-strategy.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/cis-problem-solving.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/cis-storytelling.md +0 -13
- package/templates/commonproject/.augment/commands/bmad/workflows/core-brainstorming.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/core-party-mode.md +0 -5
- package/templates/commonproject/.augment/commands/bmad/workflows/custom-ticket-lifecycle.md +0 -5
- package/templates/commonproject/.copier-answers.yml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-agent-bmb-agent-builder.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmb-module-builder.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmb-workflow-builder.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-analyst.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-architect.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-dev.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-pm.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-quick-flow-solo-dev.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-sm.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-tea.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-tech-writer.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-bmm-ux-designer.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-brainstorming-coach.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-creative-problem-solver.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-design-thinking-coach.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-innovation-strategist.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-presentation-master.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-cis-storyteller.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-agent-core-bmad-master.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-task-core-index-docs.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-task-core-review-adversarial-general.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-task-core-shard-doc.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-task-core-workflow.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmb-agent.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmb-module.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmb-workflow.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-check-implementation-readiness.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-code-review.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-correct-course.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-architecture.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-epics-and-stories.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-excalidraw-dataflow.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-excalidraw-diagram.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-excalidraw-flowchart.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-excalidraw-wireframe.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-product-brief.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-story.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-create-ux-design.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-dev-story.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-document-project.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-generate-project-context.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-prd.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-quick-dev.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-quick-spec.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-research.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-retrospective.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-sprint-planning.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-sprint-status.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-atdd.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-automate.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-ci.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-framework.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-nfr.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-test-design.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-test-review.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-testarch-trace.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-workflow-init.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-bmm-workflow-status.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-cis-design-thinking.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-cis-innovation-strategy.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-cis-problem-solving.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-cis-storytelling.toml +0 -12
- package/templates/commonproject/.gemini/commands/bmad-workflow-core-brainstorming.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-core-party-mode.toml +0 -4
- package/templates/commonproject/.gemini/commands/bmad-workflow-custom-ticket-lifecycle.toml +0 -4
- package/templates/commonproject/.github/agents/bmd-custom-bmb-agent-builder.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmb-module-builder.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmb-workflow-builder.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-analyst.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-architect.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-dev.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-pm.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-quick-flow-solo-dev.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-sm.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-tea.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-tech-writer.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-bmm-ux-designer.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-brainstorming-coach.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-creative-problem-solver.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-design-thinking-coach.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-innovation-strategist.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-presentation-master.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-cis-storyteller.agent.md +0 -17
- package/templates/commonproject/.github/agents/bmd-custom-core-bmad-master.agent.md +0 -17
- package/templates/commonproject/.mcp.json +0 -12
- package/templates/commonproject/.mise/scripts/claude +0 -13
- package/templates/commonproject/.mise/scripts/create-plane-project.sh +0 -149
- package/templates/commonproject/.mise/scripts/init-project.sh +0 -314
- package/templates/commonproject/.mise/scripts/link-agentfiles.sh +0 -9
- package/templates/commonproject/.opencode/agent/bmad-agent-bmb-agent-builder.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmb-module-builder.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmb-workflow-builder.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-analyst.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-architect.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-dev.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-pm.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-quick-flow-solo-dev.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-sm.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-tea.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-tech-writer.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-bmm-ux-designer.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-brainstorming-coach.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-creative-problem-solver.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-design-thinking-coach.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-innovation-strategist.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-presentation-master.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-cis-storyteller.md +0 -14
- package/templates/commonproject/.opencode/agent/bmad-agent-core-bmad-master.md +0 -14
- package/templates/commonproject/.opencode/command/bmad-bmb-agent.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmb-module.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmb-workflow.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-check-implementation-readiness.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-code-review.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-correct-course.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-architecture.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-create-epics-and-stories.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-create-excalidraw-dataflow.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-excalidraw-diagram.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-excalidraw-flowchart.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-excalidraw-wireframe.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-product-brief.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-create-story.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-create-ux-design.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-dev-story.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-document-project.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-generate-project-context.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-prd.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-quick-dev.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-quick-spec.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-research.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-bmm-retrospective.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-sprint-planning.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-sprint-status.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-atdd.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-automate.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-ci.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-framework.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-nfr.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-test-design.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-test-review.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-testarch-trace.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-workflow-init.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-bmm-workflow-status.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-cis-design-thinking.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-cis-innovation-strategy.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-cis-problem-solving.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-cis-storytelling.md +0 -13
- package/templates/commonproject/.opencode/command/bmad-core-brainstorming.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-core-party-mode.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-custom-ticket-lifecycle.md +0 -5
- package/templates/commonproject/.opencode/command/bmad-task-core-index-docs.md +0 -9
- package/templates/commonproject/.opencode/command/bmad-task-core-shard-doc.md +0 -9
- package/templates/commonproject/.plane.json +0 -6
- package/templates/commonproject/.scripts/test-template.sh +0 -63
- package/templates/commonproject/AGENTS.md +0 -86
- package/templates/commonproject/README.md +0 -172
- package/templates/commonproject/_bmad/_config/agent-manifest.csv +0 -20
- package/templates/commonproject/_bmad/_config/agents/bmb-agent-builder.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmb-module-builder.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmb-workflow-builder.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-analyst.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-architect.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-dev.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-pm.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-quick-flow-solo-dev.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-sm.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-tea.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-tech-writer.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/bmm-ux-designer.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-brainstorming-coach.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-creative-problem-solver.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-design-thinking-coach.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-innovation-strategist.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-presentation-master.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/cis-storyteller.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/agents/core-bmad-master.customize.yaml +0 -41
- package/templates/commonproject/_bmad/_config/custom/cache-manifest.yaml +0 -4
- package/templates/commonproject/_bmad/_config/custom/custom/module.yaml +0 -8
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/data/ac-sufficiency-rubric.md +0 -33
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/data/audit-comment-template.md +0 -54
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/data/event-schemas.md +0 -58
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-01-init.md +0 -173
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-02-triage.md +0 -159
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-03-refine.md +0 -149
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-04-implement.md +0 -147
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-05-review.md +0 -146
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-06-qa.md +0 -199
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-c/step-07-complete.md +0 -141
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-e/step-01-assess.md +0 -102
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-e/step-02-apply.md +0 -85
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/steps-v/step-01-validate.md +0 -154
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/workflow-plan-ticket-lifecycle.md +0 -346
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/workflow.md +0 -84
- package/templates/commonproject/_bmad/_config/custom/custom/workflows/ticket-lifecycle/workflow.yaml +0 -39
- package/templates/commonproject/_bmad/_config/files-manifest.csv +0 -483
- package/templates/commonproject/_bmad/_config/ides/claude-code.yaml +0 -6
- package/templates/commonproject/_bmad/_config/ides/codex.yaml +0 -5
- package/templates/commonproject/_bmad/_config/manifest.yaml +0 -18
- package/templates/commonproject/_bmad/_config/task-manifest.csv +0 -5
- package/templates/commonproject/_bmad/_config/tool-manifest.csv +0 -1
- package/templates/commonproject/_bmad/_config/workflow-manifest.csv +0 -43
- package/templates/commonproject/_bmad/_memory/config.yaml +0 -11
- package/templates/commonproject/_bmad/_memory/storyteller-sidecar/stories-told.md +0 -7
- package/templates/commonproject/_bmad/_memory/storyteller-sidecar/story-preferences.md +0 -7
- package/templates/commonproject/_bmad/bmb/README.md +0 -25
- package/templates/commonproject/_bmad/bmb/agents/agent-builder.md +0 -64
- package/templates/commonproject/_bmad/bmb/agents/module-builder.md +0 -65
- package/templates/commonproject/_bmad/bmb/agents/workflow-builder.md +0 -66
- package/templates/commonproject/_bmad/bmb/config.yaml +0 -12
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/agent-compilation.md +0 -273
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/agent-menu-patterns.md +0 -233
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/agent-metadata.md +0 -208
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/brainstorm-context.md +0 -146
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/communication-presets.csv +0 -61
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/critical-actions.md +0 -120
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/expert-agent-architecture.md +0 -236
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/expert-agent-validation.md +0 -174
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/module-agent-validation.md +0 -126
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/persona-properties.md +0 -266
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/principles-crafting.md +0 -292
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/reference/module-examples/architect.md +0 -68
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/simple-agent-architecture.md +0 -204
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/simple-agent-validation.md +0 -133
- package/templates/commonproject/_bmad/bmb/workflows/agent/data/understanding-agent-types.md +0 -222
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-01-brainstorm.md +0 -128
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-02-discovery.md +0 -170
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-03-type-metadata.md +0 -296
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-04-persona.md +0 -212
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-05-commands-menu.md +0 -178
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-06-activation.md +0 -279
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-07a-build-simple.md +0 -187
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-07b-build-expert.md +0 -201
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-07c-build-module.md +0 -258
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-c/step-08-celebrate.md +0 -249
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-01-load-existing.md +0 -221
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-02-discover-edits.md +0 -193
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-03-placeholder.md +0 -1
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-04-type-metadata.md +0 -124
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-05-persona.md +0 -134
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-06-commands-menu.md +0 -122
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-07-activation.md +0 -125
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-08a-edit-simple.md +0 -137
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-08b-edit-expert.md +0 -119
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-08c-edit-module.md +0 -123
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-e/e-09-celebrate.md +0 -155
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-01-load-review.md +0 -136
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-02a-validate-metadata.md +0 -116
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-02b-validate-persona.md +0 -124
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-02c-validate-menu.md +0 -145
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-02d-validate-structure.md +0 -136
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-02e-validate-sidecar.md +0 -136
- package/templates/commonproject/_bmad/bmb/workflows/agent/steps-v/v-03-summary.md +0 -104
- package/templates/commonproject/_bmad/bmb/workflows/agent/templates/agent-plan.template.md +0 -5
- package/templates/commonproject/_bmad/bmb/workflows/agent/templates/expert-agent-template/expert-agent.template.md +0 -77
- package/templates/commonproject/_bmad/bmb/workflows/agent/templates/simple-agent.template.md +0 -72
- package/templates/commonproject/_bmad/bmb/workflows/agent/workflow.md +0 -123
- package/templates/commonproject/_bmad/bmb/workflows/module/data/agent-architecture.md +0 -179
- package/templates/commonproject/_bmad/bmb/workflows/module/data/agent-spec-template.md +0 -79
- package/templates/commonproject/_bmad/bmb/workflows/module/data/module-installer-standards.md +0 -348
- package/templates/commonproject/_bmad/bmb/workflows/module/data/module-standards.md +0 -280
- package/templates/commonproject/_bmad/bmb/workflows/module/data/module-yaml-conventions.md +0 -392
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-01-welcome.md +0 -147
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-02-spark.md +0 -140
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-03-module-type.md +0 -148
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-04-vision.md +0 -82
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-05-identity.md +0 -96
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-06-users.md +0 -85
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-07-value.md +0 -75
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-08-agents.md +0 -96
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-09-workflows.md +0 -82
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-10-tools.md +0 -90
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-11-scenarios.md +0 -83
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-12-creative.md +0 -94
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-13-review.md +0 -104
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-b/step-14-finalize.md +0 -117
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-01-load-brief.md +0 -178
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-01b-continue.md +0 -83
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-02-structure.md +0 -109
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-03-config.md +0 -118
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-04-installer.md +0 -160
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-05-agents.md +0 -167
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-06-workflows.md +0 -183
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-07-docs.md +0 -402
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-c/step-08-complete.md +0 -123
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-e/step-01-load-target.md +0 -81
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-e/step-02-select-edit.md +0 -77
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-e/step-03-apply-edit.md +0 -77
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-e/step-04-review.md +0 -80
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-e/step-05-confirm.md +0 -75
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-01-load-target.md +0 -96
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-02-file-structure.md +0 -94
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-03-module-yaml.md +0 -99
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-04-agent-specs.md +0 -152
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-05-workflow-specs.md +0 -152
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-06-documentation.md +0 -143
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-07-installation.md +0 -113
- package/templates/commonproject/_bmad/bmb/workflows/module/steps-v/step-08-report.md +0 -197
- package/templates/commonproject/_bmad/bmb/workflows/module/templates/brief-template.md +0 -154
- package/templates/commonproject/_bmad/bmb/workflows/module/templates/workflow-spec-template.md +0 -96
- package/templates/commonproject/_bmad/bmb/workflows/module/workflow.md +0 -100
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/architecture.md +0 -152
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/common-workflow-tools.csv +0 -19
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/csv-data-file-standards.md +0 -81
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/frontmatter-standards.md +0 -225
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/input-discovery-standards.md +0 -269
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/intent-vs-prescriptive-spectrum.md +0 -50
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/menu-handling-standards.md +0 -167
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/output-format-standards.md +0 -188
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/step-file-rules.md +0 -235
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/step-type-patterns.md +0 -311
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/subprocess-optimization-patterns.md +0 -386
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/trimodal-workflow-structure.md +0 -209
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/workflow-chaining-standards.md +0 -271
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/workflow-examples.md +0 -276
- package/templates/commonproject/_bmad/bmb/workflows/workflow/data/workflow-type-criteria.md +0 -172
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-00-conversion.md +0 -262
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-01-discovery.md +0 -194
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-01b-continuation.md +0 -3
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-02-classification.md +0 -269
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-03-requirements.md +0 -282
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-04-tools.md +0 -281
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-05-plan-review.md +0 -242
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-06-design.md +0 -329
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-07-foundation.md +0 -238
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-08-build-step-01.md +0 -377
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-09-build-next-step.md +0 -350
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-10-confirmation.md +0 -320
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-c/step-11-completion.md +0 -191
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-01-assess-workflow.md +0 -237
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-02-discover-edits.md +0 -248
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-03-fix-validation.md +0 -252
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-04-direct-edit.md +0 -275
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-05-apply-edit.md +0 -154
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-06-validate-after.md +0 -190
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-e/step-e-07-complete.md +0 -206
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-01-validate-max-mode.md +0 -109
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-01-validate.md +0 -221
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-01b-structure.md +0 -152
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-02-frontmatter-validation.md +0 -199
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-02b-path-violations.md +0 -265
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-03-menu-validation.md +0 -164
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-04-step-type-validation.md +0 -211
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-05-output-format-validation.md +0 -200
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-06-validation-design-check.md +0 -195
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-07-instruction-style-check.md +0 -209
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-08-collaborative-experience-check.md +0 -199
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-08b-subprocess-optimization.md +0 -179
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-09-cohesive-review.md +0 -186
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-10-report-complete.md +0 -154
- package/templates/commonproject/_bmad/bmb/workflows/workflow/steps-v/step-11-plan-validation.md +0 -237
- package/templates/commonproject/_bmad/bmb/workflows/workflow/templates/minimal-output-template.md +0 -11
- package/templates/commonproject/_bmad/bmb/workflows/workflow/templates/step-01-init-continuable-template.md +0 -241
- package/templates/commonproject/_bmad/bmb/workflows/workflow/templates/step-1b-template.md +0 -223
- package/templates/commonproject/_bmad/bmb/workflows/workflow/templates/step-template.md +0 -290
- package/templates/commonproject/_bmad/bmb/workflows/workflow/templates/workflow-template.md +0 -102
- package/templates/commonproject/_bmad/bmb/workflows/workflow/workflow.md +0 -109
- package/templates/commonproject/_bmad/bmm/agents/analyst.md +0 -82
- package/templates/commonproject/_bmad/bmm/agents/architect.md +0 -74
- package/templates/commonproject/_bmad/bmm/agents/dev.md +0 -76
- package/templates/commonproject/_bmad/bmm/agents/pm.md +0 -78
- package/templates/commonproject/_bmad/bmm/agents/quick-flow-solo-dev.md +0 -74
- package/templates/commonproject/_bmad/bmm/agents/sm.md +0 -77
- package/templates/commonproject/_bmad/bmm/agents/tea.md +0 -77
- package/templates/commonproject/_bmad/bmm/agents/tech-writer.md +0 -78
- package/templates/commonproject/_bmad/bmm/agents/ux-designer.md +0 -74
- package/templates/commonproject/_bmad/bmm/config.yaml +0 -18
- package/templates/commonproject/_bmad/bmm/data/README.md +0 -29
- package/templates/commonproject/_bmad/bmm/data/documentation-standards.md +0 -262
- package/templates/commonproject/_bmad/bmm/data/project-context-template.md +0 -40
- package/templates/commonproject/_bmad/bmm/teams/default-party.csv +0 -21
- package/templates/commonproject/_bmad/bmm/teams/team-fullstack.yaml +0 -12
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/api-request.md +0 -442
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/api-testing-patterns.md +0 -843
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/auth-session.md +0 -552
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/burn-in.md +0 -273
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/ci-burn-in.md +0 -675
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/component-tdd.md +0 -486
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/contract-testing.md +0 -957
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/data-factories.md +0 -500
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/email-auth.md +0 -721
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/error-handling.md +0 -725
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/feature-flags.md +0 -750
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/file-utils.md +0 -463
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/fixture-architecture.md +0 -401
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/fixtures-composition.md +0 -382
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/intercept-network-call.md +0 -430
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/log.md +0 -429
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/network-error-monitor.md +0 -405
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/network-first.md +0 -486
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/network-recorder.md +0 -527
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/nfr-criteria.md +0 -670
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/overview.md +0 -286
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/playwright-config.md +0 -730
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/probability-impact.md +0 -601
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/recurse.md +0 -421
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/risk-governance.md +0 -615
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/selective-testing.md +0 -732
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/selector-resilience.md +0 -527
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/test-healing-patterns.md +0 -644
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/test-levels-framework.md +0 -473
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/test-priorities-matrix.md +0 -373
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/test-quality.md +0 -664
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/timing-debugging.md +0 -372
- package/templates/commonproject/_bmad/bmm/testarch/knowledge/visual-debugging.md +0 -524
- package/templates/commonproject/_bmad/bmm/testarch/tea-index.csv +0 -34
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +0 -10
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +0 -177
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +0 -161
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +0 -199
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +0 -202
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +0 -205
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +0 -219
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +0 -194
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/create-product-brief/workflow.md +0 -58
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +0 -137
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +0 -229
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +0 -238
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +0 -206
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +0 -234
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +0 -443
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +0 -182
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +0 -237
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +0 -200
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +0 -249
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +0 -259
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +0 -177
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +0 -475
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/research.template.md +0 -29
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +0 -137
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +0 -239
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +0 -248
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +0 -202
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +0 -239
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +0 -486
- package/templates/commonproject/_bmad/bmm/workflows/1-analysis/research/workflow.md +0 -173
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +0 -135
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +0 -127
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +0 -190
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +0 -216
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +0 -219
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +0 -234
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +0 -252
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +0 -254
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +0 -224
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +0 -224
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +0 -241
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +0 -248
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +0 -237
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +0 -264
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +0 -228
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -13
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +0 -43
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/data/domain-complexity.csv +0 -13
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/data/prd-purpose.md +0 -197
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/data/project-types.csv +0 -11
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-01-init.md +0 -191
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-01b-continue.md +0 -153
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-02-discovery.md +0 -224
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-03-success.md +0 -226
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-04-journeys.md +0 -213
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-05-domain.md +0 -207
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-06-innovation.md +0 -226
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-07-project-type.md +0 -237
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-08-scoping.md +0 -228
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-09-functional.md +0 -231
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-10-nonfunctional.md +0 -242
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-11-polish.md +0 -217
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-c/step-12-complete.md +0 -180
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-e/step-e-01-discovery.md +0 -247
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-e/step-e-01b-legacy-conversion.md +0 -208
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-e/step-e-02-review.md +0 -249
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-e/step-e-03-edit.md +0 -253
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-e/step-e-04-complete.md +0 -168
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-01-discovery.md +0 -218
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-02-format-detection.md +0 -191
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-03-density-validation.md +0 -174
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/steps-v/step-v-13-report-complete.md +0 -232
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/templates/prd-template.md +0 -10
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/validation-report-prd-workflow.md +0 -433
- package/templates/commonproject/_bmad/bmm/workflows/2-plan-workflows/prd/workflow.md +0 -150
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +0 -190
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +0 -178
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -179
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +0 -139
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -252
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +0 -133
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/templates/readiness-report-template.md +0 -4
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +0 -55
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +0 -12
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +0 -11
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/data/project-types.csv +0 -7
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +0 -153
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-01b-continue.md +0 -164
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +0 -224
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +0 -331
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +0 -318
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +0 -359
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +0 -379
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +0 -359
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/steps/step-08-complete.md +0 -352
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-architecture/workflow.md +0 -50
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -259
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +0 -233
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +0 -272
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +0 -145
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +0 -57
- package/templates/commonproject/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +0 -59
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -23
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/code-review/instructions.xml +0 -227
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -50
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -279
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -206
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -58
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -358
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/create-story/instructions.xml +0 -345
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/create-story/template.md +0 -49
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -59
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -80
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/dev-story/instructions.xml +0 -410
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -25
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1443
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -57
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -225
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -52
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-status/instructions.md +0 -229
- package/templates/commonproject/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml +0 -35
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +0 -156
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +0 -120
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +0 -113
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +0 -113
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +0 -106
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +0 -140
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +0 -52
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-01-understand.md +0 -189
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-02-investigate.md +0 -144
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-03-generate.md +0 -128
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/steps/step-04-review.md +0 -173
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +0 -74
- package/templates/commonproject/_bmad/bmm/workflows/bmad-quick-flow/quick-spec/workflow.md +0 -79
- package/templates/commonproject/_bmad/bmm/workflows/document-project/checklist.md +0 -245
- package/templates/commonproject/_bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
- package/templates/commonproject/_bmad/bmm/workflows/document-project/instructions.md +0 -221
- package/templates/commonproject/_bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
- package/templates/commonproject/_bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
- package/templates/commonproject/_bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
- package/templates/commonproject/_bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
- package/templates/commonproject/_bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
- package/templates/commonproject/_bmad/bmm/workflows/document-project/workflow.yaml +0 -28
- package/templates/commonproject/_bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
- package/templates/commonproject/_bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
- package/templates/commonproject/_bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
- package/templates/commonproject/_bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-library.json +0 -90
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/_shared/excalidraw-templates.yaml +0 -127
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/checklist.md +0 -39
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/instructions.md +0 -130
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-dataflow/workflow.yaml +0 -26
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-diagram/checklist.md +0 -43
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-diagram/instructions.md +0 -141
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-diagram/workflow.yaml +0 -26
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/checklist.md +0 -49
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/instructions.md +0 -241
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-flowchart/workflow.yaml +0 -26
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/checklist.md +0 -38
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/instructions.md +0 -133
- package/templates/commonproject/_bmad/bmm/workflows/excalidraw-diagrams/create-wireframe/workflow.yaml +0 -26
- package/templates/commonproject/_bmad/bmm/workflows/generate-project-context/project-context-template.md +0 -21
- package/templates/commonproject/_bmad/bmm/workflows/generate-project-context/steps/step-01-discover.md +0 -184
- package/templates/commonproject/_bmad/bmm/workflows/generate-project-context/steps/step-02-generate.md +0 -318
- package/templates/commonproject/_bmad/bmm/workflows/generate-project-context/steps/step-03-complete.md +0 -278
- package/templates/commonproject/_bmad/bmm/workflows/generate-project-context/workflow.md +0 -49
- package/templates/commonproject/_bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +0 -364
- package/templates/commonproject/_bmad/bmm/workflows/testarch/atdd/checklist.md +0 -374
- package/templates/commonproject/_bmad/bmm/workflows/testarch/atdd/instructions.md +0 -806
- package/templates/commonproject/_bmad/bmm/workflows/testarch/atdd/workflow.yaml +0 -45
- package/templates/commonproject/_bmad/bmm/workflows/testarch/automate/checklist.md +0 -582
- package/templates/commonproject/_bmad/bmm/workflows/testarch/automate/instructions.md +0 -1324
- package/templates/commonproject/_bmad/bmm/workflows/testarch/automate/workflow.yaml +0 -52
- package/templates/commonproject/_bmad/bmm/workflows/testarch/ci/checklist.md +0 -248
- package/templates/commonproject/_bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +0 -198
- package/templates/commonproject/_bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +0 -149
- package/templates/commonproject/_bmad/bmm/workflows/testarch/ci/instructions.md +0 -536
- package/templates/commonproject/_bmad/bmm/workflows/testarch/ci/workflow.yaml +0 -45
- package/templates/commonproject/_bmad/bmm/workflows/testarch/framework/checklist.md +0 -321
- package/templates/commonproject/_bmad/bmm/workflows/testarch/framework/instructions.md +0 -481
- package/templates/commonproject/_bmad/bmm/workflows/testarch/framework/workflow.yaml +0 -47
- package/templates/commonproject/_bmad/bmm/workflows/testarch/nfr-assess/checklist.md +0 -407
- package/templates/commonproject/_bmad/bmm/workflows/testarch/nfr-assess/instructions.md +0 -722
- package/templates/commonproject/_bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +0 -445
- package/templates/commonproject/_bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +0 -47
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-design/checklist.md +0 -235
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-design/instructions.md +0 -788
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-design/test-design-template.md +0 -294
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-design/workflow.yaml +0 -54
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-review/checklist.md +0 -472
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-review/instructions.md +0 -628
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-review/test-review-template.md +0 -390
- package/templates/commonproject/_bmad/bmm/workflows/testarch/test-review/workflow.yaml +0 -46
- package/templates/commonproject/_bmad/bmm/workflows/testarch/trace/checklist.md +0 -655
- package/templates/commonproject/_bmad/bmm/workflows/testarch/trace/instructions.md +0 -1047
- package/templates/commonproject/_bmad/bmm/workflows/testarch/trace/trace-template.md +0 -675
- package/templates/commonproject/_bmad/bmm/workflows/testarch/trace/workflow.yaml +0 -55
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/init/instructions.md +0 -346
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/init/workflow.yaml +0 -29
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/instructions.md +0 -395
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +0 -103
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +0 -100
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +0 -103
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +0 -100
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/project-levels.yaml +0 -59
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +0 -24
- package/templates/commonproject/_bmad/bmm/workflows/workflow-status/workflow.yaml +0 -30
- package/templates/commonproject/_bmad/cis/agents/brainstorming-coach.md +0 -66
- package/templates/commonproject/_bmad/cis/agents/creative-problem-solver.md +0 -66
- package/templates/commonproject/_bmad/cis/agents/design-thinking-coach.md +0 -66
- package/templates/commonproject/_bmad/cis/agents/innovation-strategist.md +0 -66
- package/templates/commonproject/_bmad/cis/agents/presentation-master.md +0 -72
- package/templates/commonproject/_bmad/cis/agents/storyteller/storyteller.md +0 -63
- package/templates/commonproject/_bmad/cis/config.yaml +0 -11
- package/templates/commonproject/_bmad/cis/teams/creative-squad.yaml +0 -7
- package/templates/commonproject/_bmad/cis/teams/default-party.csv +0 -12
- package/templates/commonproject/_bmad/cis/workflows/README.md +0 -139
- package/templates/commonproject/_bmad/cis/workflows/design-thinking/README.md +0 -56
- package/templates/commonproject/_bmad/cis/workflows/design-thinking/design-methods.csv +0 -31
- package/templates/commonproject/_bmad/cis/workflows/design-thinking/instructions.md +0 -202
- package/templates/commonproject/_bmad/cis/workflows/design-thinking/template.md +0 -111
- package/templates/commonproject/_bmad/cis/workflows/design-thinking/workflow.yaml +0 -27
- package/templates/commonproject/_bmad/cis/workflows/innovation-strategy/README.md +0 -56
- package/templates/commonproject/_bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +0 -31
- package/templates/commonproject/_bmad/cis/workflows/innovation-strategy/instructions.md +0 -276
- package/templates/commonproject/_bmad/cis/workflows/innovation-strategy/template.md +0 -189
- package/templates/commonproject/_bmad/cis/workflows/innovation-strategy/workflow.yaml +0 -27
- package/templates/commonproject/_bmad/cis/workflows/problem-solving/README.md +0 -56
- package/templates/commonproject/_bmad/cis/workflows/problem-solving/instructions.md +0 -252
- package/templates/commonproject/_bmad/cis/workflows/problem-solving/solving-methods.csv +0 -31
- package/templates/commonproject/_bmad/cis/workflows/problem-solving/template.md +0 -165
- package/templates/commonproject/_bmad/cis/workflows/problem-solving/workflow.yaml +0 -27
- package/templates/commonproject/_bmad/cis/workflows/storytelling/README.md +0 -58
- package/templates/commonproject/_bmad/cis/workflows/storytelling/instructions.md +0 -293
- package/templates/commonproject/_bmad/cis/workflows/storytelling/story-types.csv +0 -26
- package/templates/commonproject/_bmad/cis/workflows/storytelling/template.md +0 -113
- package/templates/commonproject/_bmad/cis/workflows/storytelling/workflow.yaml +0 -27
- package/templates/commonproject/_bmad/core/agents/bmad-master.md +0 -63
- package/templates/commonproject/_bmad/core/config.yaml +0 -9
- package/templates/commonproject/_bmad/core/resources/excalidraw/README.md +0 -160
- package/templates/commonproject/_bmad/core/resources/excalidraw/excalidraw-helpers.md +0 -127
- package/templates/commonproject/_bmad/core/resources/excalidraw/library-loader.md +0 -50
- package/templates/commonproject/_bmad/core/resources/excalidraw/validate-json-instructions.md +0 -79
- package/templates/commonproject/_bmad/core/tasks/index-docs.xml +0 -65
- package/templates/commonproject/_bmad/core/tasks/review-adversarial-general.xml +0 -41
- package/templates/commonproject/_bmad/core/tasks/shard-doc.xml +0 -109
- package/templates/commonproject/_bmad/core/tasks/workflow.xml +0 -235
- package/templates/commonproject/_bmad/core/workflows/advanced-elicitation/methods.csv +0 -51
- package/templates/commonproject/_bmad/core/workflows/advanced-elicitation/workflow.xml +0 -117
- package/templates/commonproject/_bmad/core/workflows/brainstorming/brain-methods.csv +0 -62
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-01-session-setup.md +0 -197
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-01b-continue.md +0 -122
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-02a-user-selected.md +0 -225
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +0 -237
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-02c-random-selection.md +0 -209
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +0 -264
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-03-technique-execution.md +0 -399
- package/templates/commonproject/_bmad/core/workflows/brainstorming/steps/step-04-idea-organization.md +0 -303
- package/templates/commonproject/_bmad/core/workflows/brainstorming/template.md +0 -15
- package/templates/commonproject/_bmad/core/workflows/brainstorming/workflow.md +0 -58
- package/templates/commonproject/_bmad/core/workflows/party-mode/steps/step-01-agent-loading.md +0 -139
- package/templates/commonproject/_bmad/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +0 -204
- package/templates/commonproject/_bmad/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -159
- package/templates/commonproject/_bmad/core/workflows/party-mode/workflow.md +0 -206
- package/templates/commonproject/_bmad/custom/config.yaml +0 -11
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/data/ac-sufficiency-rubric.md +0 -33
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/data/audit-comment-template.md +0 -54
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/data/event-schemas.md +0 -58
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-01-init.md +0 -173
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-02-triage.md +0 -159
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-03-refine.md +0 -149
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-04-implement.md +0 -147
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-05-review.md +0 -146
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-06-qa.md +0 -199
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-c/step-07-complete.md +0 -141
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-e/step-01-assess.md +0 -102
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-e/step-02-apply.md +0 -85
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/steps-v/step-01-validate.md +0 -154
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/workflow-plan-ticket-lifecycle.md +0 -346
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/workflow.md +0 -84
- package/templates/commonproject/_bmad/custom/workflows/ticket-lifecycle/workflow.yaml +0 -39
- package/templates/commonproject/mise.toml +0 -38
- package/templates/commonproject/template/.mise/scripts/provision-bmad-skills.py +0 -480
- package/templates/commonproject/tests/test_provision_bmad_skills.py +0 -203
- package/templates/commonproject/tests/test_sync_skills_topology.py +0 -120
- package/templates/hermes-agent/README.md +0 -192
- package/templates/hermes-agent/config.example.toml +0 -1
- package/templates/hermes-agent/docs/architecture.md +0 -135
- package/templates/hermes-agent/docs/fleet-control-plane/README.md +0 -35
- package/templates/hermes-agent/docs/fleet-control-plane/architecture.md +0 -258
- package/templates/hermes-agent/docs/fleet-control-plane/epics-and-stories.md +0 -280
- package/templates/hermes-agent/docs/fleet-control-plane/implementation-readiness-report-2026-06-27.md +0 -118
- package/templates/hermes-agent/docs/fleet-control-plane/prd.md +0 -140
- package/templates/hermes-agent/docs/operations.md +0 -335
- package/templates/hermes-agent/docs/runbooks/runtime-checkpoint-repair.md +0 -31
- package/templates/hermes-agent/docs/sentinel/README.md +0 -119
- package/templates/hermes-agent/docs/sentinel/architecture.md +0 -202
- package/templates/hermes-agent/docs/sentinel/development.md +0 -274
- package/templates/hermes-agent/docs/sentinel/providers.md +0 -203
- package/templates/hermes-agent/docs/sentinel.md +0 -18
- package/templates/hermes-agent/install-local.sh +0 -253
- package/templates/hermes-agent/runtime-scaffold/.gitattributes +0 -10
- package/templates/hermes-agent/runtime-scaffold/README.md +0 -55
- package/templates/hermes-agent/runtime-scaffold/decisions/.gitkeep +0 -2
- package/templates/hermes-agent/runtime-scaffold/logs/.gitkeep +0 -1
- package/templates/hermes-agent/runtime-scaffold/memories/MEMORY.md +0 -47
- package/templates/hermes-agent/runtime-scaffold/memories/USER.md +0 -51
- package/templates/hermes-agent/scripts/backfill-fleet-sot.sh +0 -270
- package/templates/hermes-agent/scripts/degit-runtime.sh +0 -192
- package/templates/hermes-agent/scripts/fleet-prune-debris.sh +0 -128
- package/templates/hermes-agent/scripts/fleet-sync.sh +0 -526
- package/templates/hermes-agent/scripts/hermes-runtime-templatize.py +0 -321
- package/templates/hermes-agent/scripts/migrate-profile-scoped-chat-secrets.py +0 -136
- package/templates/hermes-agent/scripts/migrate-unify.sh +0 -252
- package/templates/hermes-agent/scripts/momo-unify-agent.py +0 -224
- package/templates/hermes-agent/scripts/repair-runtime-checkpoint.sh +0 -10
- package/templates/hermes-agent/scripts/retrofit-70-envfile.sh +0 -129
- package/templates/hermes-agent/scripts/unify-pm.sh +0 -148
- package/templates/hermes-agent/tests/test_bloodbank_consumer_contract.py +0 -437
- package/templates/hermes-agent/tests/test_fleet_upgrade_contract.py +0 -176
- package/templates/hermes-agent/tests/test_launcher_chat_secret_isolation.py +0 -85
- package/templates/hermes-agent/tests/test_local_runtime_provisioning.py +0 -130
- package/templates/hermes-agent/tests/test_operator_docs_local_runtime_contract.py +0 -132
- package/templates/hermes-agent/tests/test_profile_env_detach_contract.py +0 -14
- package/templates/hermes-agent/tests/test_profile_scoped_chat_secrets.py +0 -89
- package/templates/hermes-agent/tests/test_repository_privacy_contract.py +0 -32
- package/templates/hermes-agent/tests/test_slack_provisioning.py +0 -344
- package/templates/hermes-agent/tests/test_telegram_provisioning.py +0 -475
|
@@ -1,480 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Provision project BMAD skills from the pinned Skillex pack."""
|
|
3
|
-
|
|
4
|
-
from __future__ import annotations
|
|
5
|
-
|
|
6
|
-
import json
|
|
7
|
-
import hashlib
|
|
8
|
-
import os
|
|
9
|
-
import shutil
|
|
10
|
-
import stat
|
|
11
|
-
import tempfile
|
|
12
|
-
import tomllib
|
|
13
|
-
from pathlib import Path
|
|
14
|
-
from typing import Callable
|
|
15
|
-
from urllib.parse import unquote, urlparse
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
BMAD_PACK_VERSION = "6.10.1-next.31"
|
|
19
|
-
BMAD_PACK_CHECKSUMS_SHA256 = "a8bc005612ac60e3ec775fff5a11eafe38be6acdae96efa3d770b48322cb3224"
|
|
20
|
-
BMAD_PACK_SKILL_COUNT = 76
|
|
21
|
-
BMAD_PACK_PAYLOAD_FILES = 1072
|
|
22
|
-
SKILLS_SCHEMA = "https://raw.githubusercontent.com/skillex/schemas/main/skills.schema.json"
|
|
23
|
-
SKILLS_REGISTRY = "https://github.com/delorenj/skillex.git"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def pack_root() -> Path:
|
|
27
|
-
override = os.environ.get("PJ_BMAD_PACK_ROOT", "").strip()
|
|
28
|
-
return (
|
|
29
|
-
Path(override).expanduser()
|
|
30
|
-
if override
|
|
31
|
-
else Path.home() / "code" / "skillex" / "packs" / "bmad" / BMAD_PACK_VERSION
|
|
32
|
-
).absolute()
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def read_regular_file(path: Path) -> bytes:
|
|
36
|
-
descriptor = os.open(path, os.O_RDONLY | getattr(os, "O_NOFOLLOW", 0))
|
|
37
|
-
try:
|
|
38
|
-
if not stat.S_ISREG(os.fstat(descriptor).st_mode):
|
|
39
|
-
raise ValueError(f"BMAD pack entry is not a regular file: {path}")
|
|
40
|
-
with os.fdopen(os.dup(descriptor), "rb") as handle:
|
|
41
|
-
return handle.read()
|
|
42
|
-
finally:
|
|
43
|
-
os.close(descriptor)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def safe_checksum_path(value: str) -> Path:
|
|
47
|
-
path = Path(value)
|
|
48
|
-
if not value or "\\" in value or path.is_absolute() or any(part in {"", ".", ".."} for part in path.parts):
|
|
49
|
-
raise ValueError(f"Unsafe BMAD checksum path: {value!r}")
|
|
50
|
-
return path
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def walk_regular_tree(root: Path) -> tuple[dict[str, bytes], set[str]]:
|
|
54
|
-
files: dict[str, bytes] = {}
|
|
55
|
-
directories: set[str] = set()
|
|
56
|
-
|
|
57
|
-
def visit(directory: Path) -> None:
|
|
58
|
-
for entry in sorted(os.scandir(directory), key=lambda item: item.name):
|
|
59
|
-
path = Path(entry.path)
|
|
60
|
-
mode = entry.stat(follow_symlinks=False).st_mode
|
|
61
|
-
if stat.S_ISLNK(mode):
|
|
62
|
-
raise ValueError(f"BMAD pack may not contain symlinks: {path}")
|
|
63
|
-
if stat.S_ISDIR(mode):
|
|
64
|
-
directories.add(path.relative_to(root).as_posix())
|
|
65
|
-
visit(path)
|
|
66
|
-
elif stat.S_ISREG(mode):
|
|
67
|
-
files[path.relative_to(root).as_posix()] = read_regular_file(path)
|
|
68
|
-
else:
|
|
69
|
-
raise ValueError(f"BMAD pack may contain only regular files/directories: {path}")
|
|
70
|
-
|
|
71
|
-
visit(root)
|
|
72
|
-
return files, directories
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
def validate_trusted_pack(root: Path) -> list[Path]:
|
|
76
|
-
mode = root.lstat().st_mode
|
|
77
|
-
if stat.S_ISLNK(mode) or not stat.S_ISDIR(mode):
|
|
78
|
-
raise ValueError(f"BMAD pack root must be a real directory: {root}")
|
|
79
|
-
|
|
80
|
-
checksum_bytes = read_regular_file(root / "SHA256SUMS")
|
|
81
|
-
if hashlib.sha256(checksum_bytes).hexdigest() != BMAD_PACK_CHECKSUMS_SHA256:
|
|
82
|
-
raise ValueError(
|
|
83
|
-
f"BMAD pack checksum manifest is not the trusted {BMAD_PACK_VERSION} manifest"
|
|
84
|
-
)
|
|
85
|
-
expected: dict[str, str] = {}
|
|
86
|
-
for line in checksum_bytes.decode("utf-8").splitlines():
|
|
87
|
-
digest, separator, value = line.partition(" ")
|
|
88
|
-
if separator != " " or len(digest) != 64 or any(char not in "0123456789abcdef" for char in digest):
|
|
89
|
-
raise ValueError(f"Invalid BMAD SHA256SUMS entry: {line}")
|
|
90
|
-
relative = safe_checksum_path(value).as_posix()
|
|
91
|
-
if relative in expected:
|
|
92
|
-
raise ValueError(f"Duplicate BMAD SHA256SUMS entry: {relative}")
|
|
93
|
-
expected[relative] = digest
|
|
94
|
-
|
|
95
|
-
actual, directories = walk_regular_tree(root)
|
|
96
|
-
actual.pop("SHA256SUMS", None)
|
|
97
|
-
missing = sorted(set(expected) - set(actual))
|
|
98
|
-
extra = sorted(set(actual) - set(expected))
|
|
99
|
-
if missing or extra:
|
|
100
|
-
raise ValueError(f"BMAD checksum coverage mismatch; missing={missing} extra={extra}")
|
|
101
|
-
for relative, digest in expected.items():
|
|
102
|
-
if hashlib.sha256(actual[relative]).hexdigest() != digest:
|
|
103
|
-
raise ValueError(f"BMAD pack digest mismatch: {relative}")
|
|
104
|
-
for directory in directories:
|
|
105
|
-
if not any(relative.startswith(f"{directory}/") for relative in actual):
|
|
106
|
-
raise ValueError(
|
|
107
|
-
f"BMAD pack contains an unauthenticated empty directory: {directory}"
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
metadata = tomllib.loads(actual["pack.toml"].decode("utf-8"))
|
|
111
|
-
pack = metadata.get("pack", {})
|
|
112
|
-
source = metadata.get("source", {})
|
|
113
|
-
freeform = metadata.get("freeform", {})
|
|
114
|
-
policy = metadata.get("policy", {})
|
|
115
|
-
if (
|
|
116
|
-
pack.get("name") != "bmad"
|
|
117
|
-
or pack.get("version") != BMAD_PACK_VERSION
|
|
118
|
-
or source.get("upstream") != "bmad-method"
|
|
119
|
-
or source.get("upstream_version") != BMAD_PACK_VERSION
|
|
120
|
-
or source.get("rendered_from") != ".agent/skills"
|
|
121
|
-
or policy.get("immutable") is not True
|
|
122
|
-
or policy.get("project_projection") != "symlink"
|
|
123
|
-
):
|
|
124
|
-
raise ValueError(f"BMAD pack.toml does not declare the trusted {BMAD_PACK_VERSION} contract")
|
|
125
|
-
skill_names = freeform.get("skills")
|
|
126
|
-
payload_files = source.get("payload_files")
|
|
127
|
-
if (
|
|
128
|
-
not isinstance(skill_names, list)
|
|
129
|
-
or not all(isinstance(name, str) for name in skill_names)
|
|
130
|
-
or len(skill_names) != BMAD_PACK_SKILL_COUNT
|
|
131
|
-
or len(set(skill_names)) != len(skill_names)
|
|
132
|
-
):
|
|
133
|
-
raise ValueError(f"BMAD pack.toml must declare exactly {BMAD_PACK_SKILL_COUNT} unique skills")
|
|
134
|
-
if payload_files != BMAD_PACK_PAYLOAD_FILES:
|
|
135
|
-
raise ValueError(f"BMAD pack.toml must declare exactly {BMAD_PACK_PAYLOAD_FILES} payload files")
|
|
136
|
-
for name in skill_names:
|
|
137
|
-
if not name.startswith("bmad-"):
|
|
138
|
-
raise ValueError(f"Unsafe BMAD skill identity: {name!r}")
|
|
139
|
-
validate_skill_name(name)
|
|
140
|
-
|
|
141
|
-
top_level_directories = sorted(
|
|
142
|
-
entry.name for entry in os.scandir(root) if stat.S_ISDIR(entry.stat(follow_symlinks=False).st_mode)
|
|
143
|
-
)
|
|
144
|
-
if top_level_directories != sorted(skill_names):
|
|
145
|
-
raise ValueError("BMAD pack directory inventory differs from authenticated pack.toml skills")
|
|
146
|
-
for name in skill_names:
|
|
147
|
-
skill_md = root / name / "SKILL.md"
|
|
148
|
-
if not stat.S_ISREG(skill_md.lstat().st_mode):
|
|
149
|
-
raise ValueError(f"BMAD skill is missing a regular SKILL.md: {name}")
|
|
150
|
-
skill_set = set(skill_names)
|
|
151
|
-
payload_count = sum(1 for relative in actual if relative.split("/", 1)[0] in skill_set)
|
|
152
|
-
if payload_count != payload_files:
|
|
153
|
-
raise ValueError(f"BMAD payload inventory mismatch: {payload_count} != {payload_files}")
|
|
154
|
-
return [root / name for name in skill_names]
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
def load_manifest(path: Path) -> dict:
|
|
158
|
-
if not path.exists():
|
|
159
|
-
return {}
|
|
160
|
-
value = json.loads(path.read_text())
|
|
161
|
-
if not isinstance(value, dict):
|
|
162
|
-
raise ValueError(f"{path} must contain a JSON object")
|
|
163
|
-
return value
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
def manifest_entry_name(value: object) -> str | None:
|
|
167
|
-
if isinstance(value, str):
|
|
168
|
-
return value
|
|
169
|
-
if isinstance(value, dict):
|
|
170
|
-
name = value.get("name")
|
|
171
|
-
return name if isinstance(name, str) else None
|
|
172
|
-
return None
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
def is_pack_managed_manifest_entry(
|
|
176
|
-
value: object, expected_names: set[str], root: Path
|
|
177
|
-
) -> bool:
|
|
178
|
-
name = manifest_entry_name(value)
|
|
179
|
-
if name is None:
|
|
180
|
-
return False
|
|
181
|
-
if name in expected_names:
|
|
182
|
-
return True
|
|
183
|
-
if not isinstance(value, dict):
|
|
184
|
-
return False
|
|
185
|
-
source = value.get("source")
|
|
186
|
-
if not isinstance(source, str):
|
|
187
|
-
return False
|
|
188
|
-
try:
|
|
189
|
-
parsed = urlparse(source)
|
|
190
|
-
if parsed.scheme != "file" or parsed.netloc not in {"", "localhost"}:
|
|
191
|
-
return False
|
|
192
|
-
source_path = Path(os.path.abspath(unquote(parsed.path)))
|
|
193
|
-
source_path.relative_to(root)
|
|
194
|
-
except (OSError, ValueError):
|
|
195
|
-
return False
|
|
196
|
-
return source_path.name == name
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
def validate_skill_name(name: str) -> str:
|
|
200
|
-
if not name or name in {".", ".."} or Path(name).is_absolute():
|
|
201
|
-
raise ValueError(f"Unsafe BMAD skill name: {name!r}")
|
|
202
|
-
if "/" in name or "\\" in name or Path(name).name != name:
|
|
203
|
-
raise ValueError(f"BMAD skill name must be one path component: {name!r}")
|
|
204
|
-
return name
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
def preflight_project_directory(project_root: Path, target: Path) -> None:
|
|
208
|
-
try:
|
|
209
|
-
relative = target.absolute().relative_to(project_root)
|
|
210
|
-
except ValueError as error:
|
|
211
|
-
raise ValueError(f"Project destination escapes {project_root}: {target}") from error
|
|
212
|
-
if len(relative.parts) > 2:
|
|
213
|
-
raise ValueError(f"Unexpected project skill destination depth: {target}")
|
|
214
|
-
current = project_root
|
|
215
|
-
for part in relative.parts:
|
|
216
|
-
current = current / part
|
|
217
|
-
if not current.exists() and not current.is_symlink():
|
|
218
|
-
break
|
|
219
|
-
if current.is_symlink():
|
|
220
|
-
raise ValueError(f"Refusing symlinked project skill directory: {current}")
|
|
221
|
-
if not current.is_dir():
|
|
222
|
-
raise ValueError(f"Project skill parent is not a directory: {current}")
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
def prepare_project_skill_dirs(project_root: Path) -> tuple[Path, Path]:
|
|
226
|
-
agents_dir = project_root / ".agents"
|
|
227
|
-
skills_dir = agents_dir / "skills"
|
|
228
|
-
# Validate the complete existing chain before creating or mutating anything.
|
|
229
|
-
preflight_project_directory(project_root, agents_dir)
|
|
230
|
-
preflight_project_directory(project_root, skills_dir)
|
|
231
|
-
agents_dir.mkdir(exist_ok=True)
|
|
232
|
-
skills_dir.mkdir(exist_ok=True)
|
|
233
|
-
for path in (agents_dir, skills_dir):
|
|
234
|
-
if path.is_symlink() or not path.is_dir():
|
|
235
|
-
raise ValueError(f"Unsafe project skill directory: {path}")
|
|
236
|
-
resolved = path.resolve(strict=True)
|
|
237
|
-
resolved.relative_to(project_root)
|
|
238
|
-
return agents_dir, skills_dir
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
def lexical_link_target(link: Path) -> Path | None:
|
|
242
|
-
if not link.is_symlink():
|
|
243
|
-
return None
|
|
244
|
-
target = Path(os.readlink(link))
|
|
245
|
-
return (target if target.is_absolute() else link.parent / target).absolute()
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
def remove_entry(path: Path) -> None:
|
|
249
|
-
try:
|
|
250
|
-
mode = path.lstat().st_mode
|
|
251
|
-
except FileNotFoundError:
|
|
252
|
-
return
|
|
253
|
-
if stat.S_ISDIR(mode) and not stat.S_ISLNK(mode):
|
|
254
|
-
shutil.rmtree(path)
|
|
255
|
-
else:
|
|
256
|
-
path.unlink()
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
def atomic_write(path: Path, content: bytes, mode: int) -> None:
|
|
260
|
-
descriptor, temporary_name = tempfile.mkstemp(prefix=f".{path.name}.", dir=path.parent)
|
|
261
|
-
temporary = Path(temporary_name)
|
|
262
|
-
try:
|
|
263
|
-
with os.fdopen(descriptor, "wb") as handle:
|
|
264
|
-
handle.write(content)
|
|
265
|
-
handle.flush()
|
|
266
|
-
os.fsync(handle.fileno())
|
|
267
|
-
temporary.chmod(mode)
|
|
268
|
-
os.replace(temporary, path)
|
|
269
|
-
finally:
|
|
270
|
-
if temporary.exists():
|
|
271
|
-
temporary.unlink()
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
def provision(
|
|
275
|
-
*,
|
|
276
|
-
after_preflight: Callable[[], None] | None = None,
|
|
277
|
-
create_link: Callable[[Path, Path, int], None] | None = None,
|
|
278
|
-
after_apply: Callable[[Path, Path], None] | None = None,
|
|
279
|
-
) -> int:
|
|
280
|
-
root = pack_root()
|
|
281
|
-
pack_skills = validate_trusted_pack(root)
|
|
282
|
-
if after_preflight is not None:
|
|
283
|
-
after_preflight()
|
|
284
|
-
|
|
285
|
-
project_root = Path.cwd().resolve(strict=True)
|
|
286
|
-
agents_path = project_root / ".agents"
|
|
287
|
-
skills_path = agents_path / "skills"
|
|
288
|
-
agents_existed = agents_path.exists() or agents_path.is_symlink()
|
|
289
|
-
skills_existed = skills_path.exists() or skills_path.is_symlink()
|
|
290
|
-
preflight_project_directory(project_root, agents_path)
|
|
291
|
-
preflight_project_directory(project_root, skills_path)
|
|
292
|
-
manifest_path = agents_path / "skills.json"
|
|
293
|
-
if manifest_path.is_symlink():
|
|
294
|
-
raise ValueError(f"Refusing symlinked skills manifest: {manifest_path}")
|
|
295
|
-
if manifest_path.exists() and not manifest_path.is_file():
|
|
296
|
-
raise ValueError(f"Skills manifest is not a regular file: {manifest_path}")
|
|
297
|
-
manifest_existed = manifest_path.exists()
|
|
298
|
-
manifest_bytes = read_regular_file(manifest_path) if manifest_existed else None
|
|
299
|
-
manifest_mode = stat.S_IMODE(manifest_path.lstat().st_mode) if manifest_existed else 0o644
|
|
300
|
-
manifest = json.loads(manifest_bytes) if manifest_bytes is not None else {}
|
|
301
|
-
if not isinstance(manifest, dict):
|
|
302
|
-
raise ValueError(f"{manifest_path} must contain a JSON object")
|
|
303
|
-
existing = manifest.get("skills", [])
|
|
304
|
-
if not isinstance(existing, list):
|
|
305
|
-
raise ValueError(f"{manifest_path} skills must be an array")
|
|
306
|
-
agents_dir, skills_dir = prepare_project_skill_dirs(project_root)
|
|
307
|
-
|
|
308
|
-
manifest["$schema"] = SKILLS_SCHEMA
|
|
309
|
-
manifest["inherit_global"] = True
|
|
310
|
-
manifest["registry"] = SKILLS_REGISTRY
|
|
311
|
-
expected = {path.name: path for path in pack_skills}
|
|
312
|
-
expected_names = set(expected)
|
|
313
|
-
managed_manifest_names = {
|
|
314
|
-
name
|
|
315
|
-
for entry in existing
|
|
316
|
-
if is_pack_managed_manifest_entry(entry, expected_names, root)
|
|
317
|
-
if (name := manifest_entry_name(entry)) is not None
|
|
318
|
-
}
|
|
319
|
-
manifest["skills"] = [
|
|
320
|
-
*[
|
|
321
|
-
entry
|
|
322
|
-
for entry in existing
|
|
323
|
-
if not is_pack_managed_manifest_entry(entry, expected_names, root)
|
|
324
|
-
],
|
|
325
|
-
*[{"name": path.name, "source": path.as_uri()} for path in pack_skills],
|
|
326
|
-
]
|
|
327
|
-
next_manifest = (json.dumps(manifest, indent=2) + "\n").encode("utf-8")
|
|
328
|
-
affected: list[str] = []
|
|
329
|
-
stale_managed_names: set[str] = set()
|
|
330
|
-
original_correct_links: dict[str, str] = {}
|
|
331
|
-
for entry in skills_dir.iterdir():
|
|
332
|
-
if entry.parent.resolve(strict=True) != skills_dir.resolve(strict=True):
|
|
333
|
-
raise ValueError(f"BMAD skill entry escapes skills directory: {entry}")
|
|
334
|
-
validate_skill_name(entry.name)
|
|
335
|
-
link_target = lexical_link_target(entry)
|
|
336
|
-
try:
|
|
337
|
-
link_targets_pack = link_target is not None and link_target.is_relative_to(root)
|
|
338
|
-
except OSError:
|
|
339
|
-
link_targets_pack = False
|
|
340
|
-
if (
|
|
341
|
-
entry.name not in expected
|
|
342
|
-
and entry.name not in managed_manifest_names
|
|
343
|
-
and not link_targets_pack
|
|
344
|
-
):
|
|
345
|
-
continue
|
|
346
|
-
target = expected.get(entry.name)
|
|
347
|
-
if target is not None and link_target == target:
|
|
348
|
-
original_correct_links[entry.name] = os.readlink(entry)
|
|
349
|
-
else:
|
|
350
|
-
affected.append(entry.name)
|
|
351
|
-
if target is None:
|
|
352
|
-
stale_managed_names.add(entry.name)
|
|
353
|
-
for name, target in expected.items():
|
|
354
|
-
link = skills_dir / validate_skill_name(name)
|
|
355
|
-
if link.parent.resolve(strict=True) != skills_dir.resolve(strict=True):
|
|
356
|
-
raise ValueError(f"BMAD skill destination escapes skills directory: {link}")
|
|
357
|
-
if lexical_link_target(link) != target and name not in affected:
|
|
358
|
-
affected.append(name)
|
|
359
|
-
|
|
360
|
-
manifest_changed = manifest_bytes != next_manifest
|
|
361
|
-
if not affected and not manifest_changed:
|
|
362
|
-
validate_trusted_pack(root)
|
|
363
|
-
return 0
|
|
364
|
-
|
|
365
|
-
transaction = Path(tempfile.mkdtemp(prefix=".bmad-transaction-", dir=agents_dir))
|
|
366
|
-
backup = transaction / "entries"
|
|
367
|
-
backup.mkdir()
|
|
368
|
-
moved: list[str] = []
|
|
369
|
-
created: list[str] = []
|
|
370
|
-
|
|
371
|
-
def rollback() -> None:
|
|
372
|
-
errors: list[str] = []
|
|
373
|
-
try:
|
|
374
|
-
for name in affected:
|
|
375
|
-
remove_entry(skills_dir / validate_skill_name(name))
|
|
376
|
-
for name in original_correct_links:
|
|
377
|
-
remove_entry(skills_dir / validate_skill_name(name))
|
|
378
|
-
except OSError as error:
|
|
379
|
-
errors.append(f"remove applied projection: {error}")
|
|
380
|
-
for name in reversed(moved):
|
|
381
|
-
try:
|
|
382
|
-
os.replace(backup / name, skills_dir / name)
|
|
383
|
-
except OSError as error:
|
|
384
|
-
errors.append(f"restore {name}: {error}")
|
|
385
|
-
for name, raw_target in original_correct_links.items():
|
|
386
|
-
try:
|
|
387
|
-
(skills_dir / name).symlink_to(raw_target, target_is_directory=True)
|
|
388
|
-
except OSError as error:
|
|
389
|
-
errors.append(f"restore {name}: {error}")
|
|
390
|
-
try:
|
|
391
|
-
if manifest_bytes is None:
|
|
392
|
-
remove_entry(manifest_path)
|
|
393
|
-
else:
|
|
394
|
-
atomic_write(manifest_path, manifest_bytes, manifest_mode)
|
|
395
|
-
except OSError as error:
|
|
396
|
-
errors.append(f"restore manifest: {error}")
|
|
397
|
-
shutil.rmtree(transaction, ignore_errors=True)
|
|
398
|
-
try:
|
|
399
|
-
if not skills_existed and skills_dir.exists() and not any(skills_dir.iterdir()):
|
|
400
|
-
skills_dir.rmdir()
|
|
401
|
-
if not agents_existed and agents_dir.exists() and not any(agents_dir.iterdir()):
|
|
402
|
-
agents_dir.rmdir()
|
|
403
|
-
except OSError as error:
|
|
404
|
-
errors.append(f"remove created directories: {error}")
|
|
405
|
-
if errors:
|
|
406
|
-
raise RuntimeError("BMAD rollback was incomplete: " + "; ".join(errors))
|
|
407
|
-
|
|
408
|
-
link_creator = create_link or (
|
|
409
|
-
lambda target, link, _index: link.symlink_to(target, target_is_directory=True)
|
|
410
|
-
)
|
|
411
|
-
try:
|
|
412
|
-
for name in affected:
|
|
413
|
-
entry = skills_dir / name
|
|
414
|
-
if entry.exists() or entry.is_symlink():
|
|
415
|
-
os.replace(entry, backup / name)
|
|
416
|
-
moved.append(name)
|
|
417
|
-
for index, (name, target) in enumerate(expected.items(), start=1):
|
|
418
|
-
link = skills_dir / name
|
|
419
|
-
if lexical_link_target(link) == target:
|
|
420
|
-
continue
|
|
421
|
-
link_creator(target, link, index)
|
|
422
|
-
created.append(name)
|
|
423
|
-
if manifest_changed:
|
|
424
|
-
atomic_write(manifest_path, next_manifest, manifest_mode)
|
|
425
|
-
postflight = validate_trusted_pack(root)
|
|
426
|
-
if [path.name for path in postflight] != list(expected):
|
|
427
|
-
raise ValueError("BMAD pack inventory changed after preflight")
|
|
428
|
-
if after_apply is not None:
|
|
429
|
-
after_apply(manifest_path, skills_dir)
|
|
430
|
-
for name in stale_managed_names:
|
|
431
|
-
entry = skills_dir / name
|
|
432
|
-
if entry.exists() or entry.is_symlink():
|
|
433
|
-
raise ValueError(f"Applied BMAD projection retained stale managed entry: {name}")
|
|
434
|
-
for name, target in expected.items():
|
|
435
|
-
if lexical_link_target(skills_dir / name) != target:
|
|
436
|
-
raise ValueError(f"Applied BMAD projection link differs from plan: {name}")
|
|
437
|
-
final_mode = manifest_path.lstat().st_mode
|
|
438
|
-
if (
|
|
439
|
-
not stat.S_ISREG(final_mode)
|
|
440
|
-
or read_regular_file(manifest_path) != next_manifest
|
|
441
|
-
or stat.S_IMODE(final_mode) != manifest_mode
|
|
442
|
-
):
|
|
443
|
-
raise ValueError("Applied BMAD skills manifest differs from planned bytes or mode")
|
|
444
|
-
final_manifest = json.loads(read_regular_file(manifest_path))
|
|
445
|
-
if (
|
|
446
|
-
not isinstance(final_manifest, dict)
|
|
447
|
-
or final_manifest.get("$schema") != SKILLS_SCHEMA
|
|
448
|
-
or final_manifest.get("inherit_global") is not True
|
|
449
|
-
or final_manifest.get("registry") != SKILLS_REGISTRY
|
|
450
|
-
or not isinstance(final_manifest.get("skills"), list)
|
|
451
|
-
):
|
|
452
|
-
raise ValueError("Applied BMAD skills manifest schema differs from plan")
|
|
453
|
-
except Exception as error:
|
|
454
|
-
try:
|
|
455
|
-
rollback()
|
|
456
|
-
except Exception as rollback_error:
|
|
457
|
-
raise RuntimeError(f"BMAD provisioning failed ({error}); {rollback_error}") from error
|
|
458
|
-
raise
|
|
459
|
-
|
|
460
|
-
shutil.rmtree(transaction)
|
|
461
|
-
return len(affected)
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
def main() -> None:
|
|
465
|
-
try:
|
|
466
|
-
changed = provision()
|
|
467
|
-
except (FileNotFoundError, OSError, ValueError, RuntimeError) as error:
|
|
468
|
-
raise SystemExit(
|
|
469
|
-
f"BMAD Skillex pack {BMAD_PACK_VERSION} provisioning failed: {error}; "
|
|
470
|
-
"set PJ_BMAD_PACK_ROOT to the installed canonical pack"
|
|
471
|
-
) from error
|
|
472
|
-
|
|
473
|
-
print(
|
|
474
|
-
f"bmad-skills: {BMAD_PACK_SKILL_COUNT} skills from pack "
|
|
475
|
-
f"{BMAD_PACK_VERSION}; {changed} symlink(s) updated"
|
|
476
|
-
)
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
if __name__ == "__main__":
|
|
480
|
-
main()
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import importlib.util
|
|
4
|
-
import json
|
|
5
|
-
import os
|
|
6
|
-
import shutil
|
|
7
|
-
import stat
|
|
8
|
-
import tempfile
|
|
9
|
-
import unittest
|
|
10
|
-
from contextlib import contextmanager
|
|
11
|
-
from pathlib import Path
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ROOT = Path(__file__).parents[1]
|
|
15
|
-
SCRIPT = ROOT / "template" / ".mise" / "scripts" / "provision-bmad-skills.py"
|
|
16
|
-
SPEC = importlib.util.spec_from_file_location("provision_bmad_skills", SCRIPT)
|
|
17
|
-
assert SPEC is not None and SPEC.loader is not None
|
|
18
|
-
PROVISIONER = importlib.util.module_from_spec(SPEC)
|
|
19
|
-
SPEC.loader.exec_module(PROVISIONER)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@contextmanager
|
|
23
|
-
def working_directory(path: Path):
|
|
24
|
-
previous = Path.cwd()
|
|
25
|
-
os.chdir(path)
|
|
26
|
-
try:
|
|
27
|
-
yield
|
|
28
|
-
finally:
|
|
29
|
-
os.chdir(previous)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def snapshot(path: Path):
|
|
33
|
-
try:
|
|
34
|
-
mode = path.lstat().st_mode
|
|
35
|
-
except FileNotFoundError:
|
|
36
|
-
return ("missing",)
|
|
37
|
-
permissions = stat.S_IMODE(mode)
|
|
38
|
-
if stat.S_ISLNK(mode):
|
|
39
|
-
return ("symlink", permissions, os.readlink(path))
|
|
40
|
-
if stat.S_ISREG(mode):
|
|
41
|
-
return ("file", permissions, path.read_bytes())
|
|
42
|
-
if stat.S_ISDIR(mode):
|
|
43
|
-
return (
|
|
44
|
-
"directory",
|
|
45
|
-
permissions,
|
|
46
|
-
tuple((child.name, snapshot(child)) for child in sorted(path.iterdir())),
|
|
47
|
-
)
|
|
48
|
-
return ("special", permissions)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class ProvisionTransactionTests(unittest.TestCase):
|
|
52
|
-
def setUp(self) -> None:
|
|
53
|
-
source = os.environ.get("PJ_BMAD_PACK_ROOT")
|
|
54
|
-
if not source:
|
|
55
|
-
self.skipTest("PJ_BMAD_PACK_ROOT must identify the canonical candidate pack")
|
|
56
|
-
self.temporary = tempfile.TemporaryDirectory(prefix="commonproject-bmad-transaction-")
|
|
57
|
-
self.root = Path(self.temporary.name)
|
|
58
|
-
self.pack = self.root / "pack"
|
|
59
|
-
shutil.copytree(source, self.pack, symlinks=True)
|
|
60
|
-
self.project = self.root / "project"
|
|
61
|
-
skills = self.project / ".agents" / "skills"
|
|
62
|
-
skills.mkdir(parents=True)
|
|
63
|
-
manifest = self.project / ".agents" / "skills.json"
|
|
64
|
-
private = skills / "bmad-private-custom"
|
|
65
|
-
private.mkdir()
|
|
66
|
-
(private / "SKILL.md").write_text("private custom must survive\n")
|
|
67
|
-
manifest.write_text(
|
|
68
|
-
json.dumps(
|
|
69
|
-
{
|
|
70
|
-
"skills": [
|
|
71
|
-
{"name": "custom", "source": "file:///custom"},
|
|
72
|
-
{"name": "bmad-private-custom", "source": private.as_uri()},
|
|
73
|
-
{"name": "bmad-stale", "source": (self.pack / "bmad-stale").as_uri()},
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
+ "\n"
|
|
78
|
-
)
|
|
79
|
-
manifest.chmod(0o600)
|
|
80
|
-
copied = skills / "bmad-agent-pm"
|
|
81
|
-
copied.mkdir()
|
|
82
|
-
(copied / "legacy.txt").write_text("preserve exactly\n")
|
|
83
|
-
(skills / "bmad-agent-analyst").symlink_to(
|
|
84
|
-
self.pack / "bmad-agent-analyst", target_is_directory=True
|
|
85
|
-
)
|
|
86
|
-
(skills / "bmad-stale").symlink_to(
|
|
87
|
-
self.pack / "bmad-stale", target_is_directory=True
|
|
88
|
-
)
|
|
89
|
-
custom = skills / "custom"
|
|
90
|
-
custom.mkdir()
|
|
91
|
-
(custom / "SKILL.md").write_text("custom\n")
|
|
92
|
-
self.previous_pack = os.environ.get("PJ_BMAD_PACK_ROOT")
|
|
93
|
-
os.environ["PJ_BMAD_PACK_ROOT"] = str(self.pack)
|
|
94
|
-
|
|
95
|
-
def tearDown(self) -> None:
|
|
96
|
-
if self.previous_pack is None:
|
|
97
|
-
os.environ.pop("PJ_BMAD_PACK_ROOT", None)
|
|
98
|
-
else:
|
|
99
|
-
os.environ["PJ_BMAD_PACK_ROOT"] = self.previous_pack
|
|
100
|
-
self.temporary.cleanup()
|
|
101
|
-
|
|
102
|
-
def test_nth_link_failure_restores_exact_project_state(self) -> None:
|
|
103
|
-
before = snapshot(self.project)
|
|
104
|
-
|
|
105
|
-
def fail_fifth(target: Path, link: Path, index: int) -> None:
|
|
106
|
-
if index == 5:
|
|
107
|
-
raise OSError("injected fifth-link failure")
|
|
108
|
-
link.symlink_to(target, target_is_directory=True)
|
|
109
|
-
|
|
110
|
-
with working_directory(self.project):
|
|
111
|
-
with self.assertRaisesRegex(OSError, "fifth-link"):
|
|
112
|
-
PROVISIONER.provision(create_link=fail_fifth)
|
|
113
|
-
|
|
114
|
-
self.assertEqual(snapshot(self.project), before)
|
|
115
|
-
|
|
116
|
-
def test_pack_mutation_after_preflight_rolls_back_exactly(self) -> None:
|
|
117
|
-
before = snapshot(self.project)
|
|
118
|
-
|
|
119
|
-
def mutate_pack() -> None:
|
|
120
|
-
(self.pack / "bmad-agent-pm" / "SKILL.md").write_text("mutated after preflight\n")
|
|
121
|
-
|
|
122
|
-
with working_directory(self.project):
|
|
123
|
-
with self.assertRaisesRegex(ValueError, "digest mismatch"):
|
|
124
|
-
PROVISIONER.provision(after_preflight=mutate_pack)
|
|
125
|
-
|
|
126
|
-
self.assertEqual(snapshot(self.project), before)
|
|
127
|
-
|
|
128
|
-
def test_malformed_manifest_fails_before_creating_skills_or_temp_paths(self) -> None:
|
|
129
|
-
project = self.root / "malformed-project"
|
|
130
|
-
agents = project / ".agents"
|
|
131
|
-
agents.mkdir(parents=True)
|
|
132
|
-
manifest = agents / "skills.json"
|
|
133
|
-
manifest.write_bytes(b"{malformed\n")
|
|
134
|
-
manifest.chmod(0o600)
|
|
135
|
-
before = snapshot(project)
|
|
136
|
-
|
|
137
|
-
with working_directory(project):
|
|
138
|
-
with self.assertRaises(json.JSONDecodeError):
|
|
139
|
-
PROVISIONER.provision()
|
|
140
|
-
|
|
141
|
-
self.assertEqual(snapshot(project), before)
|
|
142
|
-
self.assertFalse((agents / "skills").exists())
|
|
143
|
-
self.assertFalse(any(path.name.startswith(".bmad-transaction-") for path in agents.iterdir()))
|
|
144
|
-
|
|
145
|
-
def test_applied_projection_mismatch_rolls_back_exactly(self) -> None:
|
|
146
|
-
before = snapshot(self.project)
|
|
147
|
-
|
|
148
|
-
def corrupt_projection(_manifest: Path, skills: Path) -> None:
|
|
149
|
-
link = skills / "bmad-agent-analyst"
|
|
150
|
-
link.unlink()
|
|
151
|
-
link.symlink_to("/tmp/wrong-after-apply", target_is_directory=True)
|
|
152
|
-
|
|
153
|
-
with working_directory(self.project):
|
|
154
|
-
with self.assertRaisesRegex(ValueError, "link differs from plan"):
|
|
155
|
-
PROVISIONER.provision(after_apply=corrupt_projection)
|
|
156
|
-
|
|
157
|
-
self.assertEqual(snapshot(self.project), before)
|
|
158
|
-
|
|
159
|
-
def test_success_is_complete_and_idempotent(self) -> None:
|
|
160
|
-
with working_directory(self.project):
|
|
161
|
-
self.assertGreater(PROVISIONER.provision(), 0)
|
|
162
|
-
after_first = snapshot(self.project)
|
|
163
|
-
self.assertEqual(PROVISIONER.provision(), 0)
|
|
164
|
-
|
|
165
|
-
self.assertEqual(snapshot(self.project), after_first)
|
|
166
|
-
skills = self.project / ".agents" / "skills"
|
|
167
|
-
self.assertTrue((skills / "bmad-private-custom").is_dir())
|
|
168
|
-
self.assertEqual(
|
|
169
|
-
(skills / "bmad-private-custom" / "SKILL.md").read_text(),
|
|
170
|
-
"private custom must survive\n",
|
|
171
|
-
)
|
|
172
|
-
self.assertFalse((skills / "bmad-stale").exists())
|
|
173
|
-
manifest = json.loads((self.project / ".agents" / "skills.json").read_text())
|
|
174
|
-
self.assertIn(
|
|
175
|
-
{
|
|
176
|
-
"name": "bmad-private-custom",
|
|
177
|
-
"source": (skills / "bmad-private-custom").as_uri(),
|
|
178
|
-
},
|
|
179
|
-
manifest["skills"],
|
|
180
|
-
)
|
|
181
|
-
self.assertNotIn("bmad-stale", [entry.get("name") for entry in manifest["skills"]])
|
|
182
|
-
self.assertTrue(
|
|
183
|
-
all(
|
|
184
|
-
(skills / path.name).is_symlink()
|
|
185
|
-
for path in PROVISIONER.validate_trusted_pack(self.pack)
|
|
186
|
-
)
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
def test_unowned_bmad_prefixed_custom_skill_is_preserved(self) -> None:
|
|
190
|
-
custom = self.project / ".agents" / "skills" / "bmad-private-custom"
|
|
191
|
-
before = snapshot(custom)
|
|
192
|
-
|
|
193
|
-
with working_directory(self.project):
|
|
194
|
-
self.assertGreater(PROVISIONER.provision(), 0)
|
|
195
|
-
after_first = snapshot(self.project)
|
|
196
|
-
self.assertEqual(PROVISIONER.provision(), 0)
|
|
197
|
-
|
|
198
|
-
self.assertEqual(snapshot(custom), before)
|
|
199
|
-
self.assertEqual(snapshot(self.project), after_first)
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if __name__ == "__main__":
|
|
203
|
-
unittest.main()
|