@pennyfarthing/core 6.6.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 +293 -0
- package/package.json +58 -0
- package/packages/core/bin/pennyfarthing.js +14 -0
- package/packages/core/dist/bmad/context-reader.d.ts +71 -0
- package/packages/core/dist/bmad/context-reader.d.ts.map +1 -0
- package/packages/core/dist/bmad/context-reader.js +369 -0
- package/packages/core/dist/bmad/context-reader.js.map +1 -0
- package/packages/core/dist/bmad/context-reader.test.d.ts +71 -0
- package/packages/core/dist/bmad/context-reader.test.d.ts.map +1 -0
- package/packages/core/dist/bmad/context-reader.test.js +878 -0
- package/packages/core/dist/bmad/context-reader.test.js.map +1 -0
- package/packages/core/dist/bmad/epics-parser.d.ts +61 -0
- package/packages/core/dist/bmad/epics-parser.d.ts.map +1 -0
- package/packages/core/dist/bmad/epics-parser.js +331 -0
- package/packages/core/dist/bmad/epics-parser.js.map +1 -0
- package/packages/core/dist/bmad/epics-parser.test.d.ts +7 -0
- package/packages/core/dist/bmad/epics-parser.test.d.ts.map +1 -0
- package/packages/core/dist/bmad/epics-parser.test.js +449 -0
- package/packages/core/dist/bmad/epics-parser.test.js.map +1 -0
- package/packages/core/dist/bmad/index.d.ts +11 -0
- package/packages/core/dist/bmad/index.d.ts.map +1 -0
- package/packages/core/dist/bmad/index.js +24 -0
- package/packages/core/dist/bmad/index.js.map +1 -0
- package/packages/core/dist/bmad/status-sync.d.ts +173 -0
- package/packages/core/dist/bmad/status-sync.d.ts.map +1 -0
- package/packages/core/dist/bmad/status-sync.js +463 -0
- package/packages/core/dist/bmad/status-sync.js.map +1 -0
- package/packages/core/dist/bmad/status-sync.test.d.ts +7 -0
- package/packages/core/dist/bmad/status-sync.test.d.ts.map +1 -0
- package/packages/core/dist/bmad/status-sync.test.js +702 -0
- package/packages/core/dist/bmad/status-sync.test.js.map +1 -0
- package/packages/core/dist/bmad/story-exporter.d.ts +55 -0
- package/packages/core/dist/bmad/story-exporter.d.ts.map +1 -0
- package/packages/core/dist/bmad/story-exporter.js +170 -0
- package/packages/core/dist/bmad/story-exporter.js.map +1 -0
- package/packages/core/dist/bmad/story-exporter.test.d.ts +51 -0
- package/packages/core/dist/bmad/story-exporter.test.d.ts.map +1 -0
- package/packages/core/dist/bmad/story-exporter.test.js +603 -0
- package/packages/core/dist/bmad/story-exporter.test.js.map +1 -0
- package/packages/core/dist/bmad/story-parser.d.ts +44 -0
- package/packages/core/dist/bmad/story-parser.d.ts.map +1 -0
- package/packages/core/dist/bmad/story-parser.js +307 -0
- package/packages/core/dist/bmad/story-parser.js.map +1 -0
- package/packages/core/dist/bmad/story-parser.test.d.ts +44 -0
- package/packages/core/dist/bmad/story-parser.test.d.ts.map +1 -0
- package/packages/core/dist/bmad/story-parser.test.js +693 -0
- package/packages/core/dist/bmad/story-parser.test.js.map +1 -0
- package/packages/core/dist/cli/commands/command.d.ts +28 -0
- package/packages/core/dist/cli/commands/command.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/command.js +399 -0
- package/packages/core/dist/cli/commands/command.js.map +1 -0
- package/packages/core/dist/cli/commands/cyclist.d.ts +46 -0
- package/packages/core/dist/cli/commands/cyclist.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/cyclist.js +191 -0
- package/packages/core/dist/cli/commands/cyclist.js.map +1 -0
- package/packages/core/dist/cli/commands/cyclist.test.d.ts +13 -0
- package/packages/core/dist/cli/commands/cyclist.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/cyclist.test.js +243 -0
- package/packages/core/dist/cli/commands/cyclist.test.js.map +1 -0
- package/packages/core/dist/cli/commands/doctor.d.ts +9 -0
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/doctor.js +652 -0
- package/packages/core/dist/cli/commands/doctor.js.map +1 -0
- package/packages/core/dist/cli/commands/init.d.ts +8 -0
- package/packages/core/dist/cli/commands/init.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/init.js +524 -0
- package/packages/core/dist/cli/commands/init.js.map +1 -0
- package/packages/core/dist/cli/commands/skill.d.ts +28 -0
- package/packages/core/dist/cli/commands/skill.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/skill.js +416 -0
- package/packages/core/dist/cli/commands/skill.js.map +1 -0
- package/packages/core/dist/cli/commands/theme.d.ts +21 -0
- package/packages/core/dist/cli/commands/theme.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/theme.js +201 -0
- package/packages/core/dist/cli/commands/theme.js.map +1 -0
- package/packages/core/dist/cli/commands/uninstall.d.ts +8 -0
- package/packages/core/dist/cli/commands/uninstall.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/uninstall.js +237 -0
- package/packages/core/dist/cli/commands/uninstall.js.map +1 -0
- package/packages/core/dist/cli/commands/update.d.ts +9 -0
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/update.js +545 -0
- package/packages/core/dist/cli/commands/update.js.map +1 -0
- package/packages/core/dist/cli/commands/version.d.ts +2 -0
- package/packages/core/dist/cli/commands/version.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/version.js +28 -0
- package/packages/core/dist/cli/commands/version.js.map +1 -0
- package/packages/core/dist/cli/customization.test.d.ts +12 -0
- package/packages/core/dist/cli/customization.test.d.ts.map +1 -0
- package/packages/core/dist/cli/customization.test.js +84 -0
- package/packages/core/dist/cli/customization.test.js.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.js +224 -0
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
- package/packages/core/dist/cli/index.d.ts +3 -0
- package/packages/core/dist/cli/index.d.ts.map +1 -0
- package/packages/core/dist/cli/index.js +174 -0
- package/packages/core/dist/cli/index.js.map +1 -0
- package/packages/core/dist/cli/ocean-profiles.test.d.ts +13 -0
- package/packages/core/dist/cli/ocean-profiles.test.d.ts.map +1 -0
- package/packages/core/dist/cli/ocean-profiles.test.js +134 -0
- package/packages/core/dist/cli/ocean-profiles.test.js.map +1 -0
- package/packages/core/dist/cli/theme-maker.test.d.ts +11 -0
- package/packages/core/dist/cli/theme-maker.test.d.ts.map +1 -0
- package/packages/core/dist/cli/theme-maker.test.js +356 -0
- package/packages/core/dist/cli/theme-maker.test.js.map +1 -0
- package/packages/core/dist/cli/utils/constants.d.ts +60 -0
- package/packages/core/dist/cli/utils/constants.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/constants.js +52 -0
- package/packages/core/dist/cli/utils/constants.js.map +1 -0
- package/packages/core/dist/cli/utils/files.d.ts +71 -0
- package/packages/core/dist/cli/utils/files.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/files.js +162 -0
- package/packages/core/dist/cli/utils/files.js.map +1 -0
- package/packages/core/dist/cli/utils/logger.d.ts +26 -0
- package/packages/core/dist/cli/utils/logger.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/logger.js +88 -0
- package/packages/core/dist/cli/utils/logger.js.map +1 -0
- package/packages/core/dist/cli/utils/manifest.d.ts +47 -0
- package/packages/core/dist/cli/utils/manifest.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/manifest.js +90 -0
- package/packages/core/dist/cli/utils/manifest.js.map +1 -0
- package/packages/core/dist/cli/utils/node-modules.d.ts +6 -0
- package/packages/core/dist/cli/utils/node-modules.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/node-modules.js +22 -0
- package/packages/core/dist/cli/utils/node-modules.js.map +1 -0
- package/packages/core/dist/cli/utils/prompts.d.ts +34 -0
- package/packages/core/dist/cli/utils/prompts.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/prompts.js +93 -0
- package/packages/core/dist/cli/utils/prompts.js.map +1 -0
- package/packages/core/dist/cli/utils/symlinks.d.ts +29 -0
- package/packages/core/dist/cli/utils/symlinks.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/symlinks.js +181 -0
- package/packages/core/dist/cli/utils/symlinks.js.map +1 -0
- package/packages/core/dist/cli/utils/themes.d.ts +104 -0
- package/packages/core/dist/cli/utils/themes.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/themes.js +393 -0
- package/packages/core/dist/cli/utils/themes.js.map +1 -0
- package/packages/core/dist/cli/utils/themes.test.d.ts +12 -0
- package/packages/core/dist/cli/utils/themes.test.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/themes.test.js +144 -0
- package/packages/core/dist/cli/utils/themes.test.js.map +1 -0
- package/packages/core/dist/cli/utils/version.d.ts +10 -0
- package/packages/core/dist/cli/utils/version.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/version.js +63 -0
- package/packages/core/dist/cli/utils/version.js.map +1 -0
- package/packages/core/dist/cli/workspace.test.d.ts +8 -0
- package/packages/core/dist/cli/workspace.test.d.ts.map +1 -0
- package/packages/core/dist/cli/workspace.test.js +154 -0
- package/packages/core/dist/cli/workspace.test.js.map +1 -0
- package/packages/core/dist/index.d.ts +6 -0
- package/packages/core/dist/index.d.ts.map +1 -0
- package/packages/core/dist/index.js +10 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/permissions/index.d.ts +9 -0
- package/packages/core/dist/permissions/index.d.ts.map +1 -0
- package/packages/core/dist/permissions/index.js +13 -0
- package/packages/core/dist/permissions/index.js.map +1 -0
- package/packages/core/dist/permissions/permission-schema.d.ts +89 -0
- package/packages/core/dist/permissions/permission-schema.d.ts.map +1 -0
- package/packages/core/dist/permissions/permission-schema.js +120 -0
- package/packages/core/dist/permissions/permission-schema.js.map +1 -0
- package/packages/core/dist/permissions/permission-schema.test.d.ts +40 -0
- package/packages/core/dist/permissions/permission-schema.test.d.ts.map +1 -0
- package/packages/core/dist/permissions/permission-schema.test.js +367 -0
- package/packages/core/dist/permissions/permission-schema.test.js.map +1 -0
- package/packages/core/dist/scripts/add-ocean-profiles.d.ts +9 -0
- package/packages/core/dist/scripts/add-ocean-profiles.d.ts.map +1 -0
- package/packages/core/dist/scripts/add-ocean-profiles.js +695 -0
- package/packages/core/dist/scripts/add-ocean-profiles.js.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.js +691 -0
- package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.test.d.ts +13 -0
- package/packages/core/dist/scripts/benchmark-integration.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.test.js +680 -0
- package/packages/core/dist/scripts/benchmark-integration.test.js.map +1 -0
- package/packages/core/dist/scripts/debugging-scenarios.test.d.ts +18 -0
- package/packages/core/dist/scripts/debugging-scenarios.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/debugging-scenarios.test.js +317 -0
- package/packages/core/dist/scripts/debugging-scenarios.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-all-faces.d.ts +10 -0
- package/packages/core/dist/scripts/generate-all-faces.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-all-faces.js +256 -0
- package/packages/core/dist/scripts/generate-all-faces.js.map +1 -0
- package/packages/core/dist/scripts/generate-all-faces.test.d.ts +17 -0
- package/packages/core/dist/scripts/generate-all-faces.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-all-faces.test.js +372 -0
- package/packages/core/dist/scripts/generate-all-faces.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-all-spiders.d.ts +10 -0
- package/packages/core/dist/scripts/generate-all-spiders.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-all-spiders.js +306 -0
- package/packages/core/dist/scripts/generate-all-spiders.js.map +1 -0
- package/packages/core/dist/scripts/generate-ascii-face.d.ts +52 -0
- package/packages/core/dist/scripts/generate-ascii-face.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-ascii-face.js +155 -0
- package/packages/core/dist/scripts/generate-ascii-face.js.map +1 -0
- package/packages/core/dist/scripts/generate-face.d.ts +52 -0
- package/packages/core/dist/scripts/generate-face.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-face.js +199 -0
- package/packages/core/dist/scripts/generate-face.js.map +1 -0
- package/packages/core/dist/scripts/generate-face.test.d.ts +13 -0
- package/packages/core/dist/scripts/generate-face.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-face.test.js +301 -0
- package/packages/core/dist/scripts/generate-face.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-report.d.ts +65 -0
- package/packages/core/dist/scripts/generate-report.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-report.js +378 -0
- package/packages/core/dist/scripts/generate-report.js.map +1 -0
- package/packages/core/dist/scripts/generate-report.test.d.ts +13 -0
- package/packages/core/dist/scripts/generate-report.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-report.test.js +363 -0
- package/packages/core/dist/scripts/generate-report.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider-report.d.ts +65 -0
- package/packages/core/dist/scripts/generate-spider-report.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-spider-report.js +366 -0
- package/packages/core/dist/scripts/generate-spider-report.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider-report.test.d.ts +13 -0
- package/packages/core/dist/scripts/generate-spider-report.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-spider-report.test.js +367 -0
- package/packages/core/dist/scripts/generate-spider-report.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider.d.ts +37 -0
- package/packages/core/dist/scripts/generate-spider.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-spider.js +315 -0
- package/packages/core/dist/scripts/generate-spider.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider.test.d.ts +14 -0
- package/packages/core/dist/scripts/generate-spider.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/generate-spider.test.js +269 -0
- package/packages/core/dist/scripts/generate-spider.test.js.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts +14 -0
- package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.test.js +616 -0
- package/packages/core/dist/scripts/job-fair-aggregator.test.js.map +1 -0
- package/packages/core/dist/scripts/run-ci.test.d.ts +20 -0
- package/packages/core/dist/scripts/run-ci.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/run-ci.test.js +127 -0
- package/packages/core/dist/scripts/run-ci.test.js.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.d.ts +10 -0
- package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.js +199 -0
- package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
- package/packages/core/dist/scripts/validate-ocean-profiles.d.ts +9 -0
- package/packages/core/dist/scripts/validate-ocean-profiles.d.ts.map +1 -0
- package/packages/core/dist/scripts/validate-ocean-profiles.js +130 -0
- package/packages/core/dist/scripts/validate-ocean-profiles.js.map +1 -0
- package/packages/core/dist/workflow/generic-handoff.d.ts +235 -0
- package/packages/core/dist/workflow/generic-handoff.d.ts.map +1 -0
- package/packages/core/dist/workflow/generic-handoff.js +358 -0
- package/packages/core/dist/workflow/generic-handoff.js.map +1 -0
- package/packages/core/dist/workflow/generic-handoff.test.d.ts +21 -0
- package/packages/core/dist/workflow/generic-handoff.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/generic-handoff.test.js +499 -0
- package/packages/core/dist/workflow/generic-handoff.test.js.map +1 -0
- package/packages/core/dist/workflow/generic-sm-finish.d.ts +89 -0
- package/packages/core/dist/workflow/generic-sm-finish.d.ts.map +1 -0
- package/packages/core/dist/workflow/generic-sm-finish.js +157 -0
- package/packages/core/dist/workflow/generic-sm-finish.js.map +1 -0
- package/packages/core/dist/workflow/generic-sm-setup.d.ts +138 -0
- package/packages/core/dist/workflow/generic-sm-setup.d.ts.map +1 -0
- package/packages/core/dist/workflow/generic-sm-setup.js +382 -0
- package/packages/core/dist/workflow/generic-sm-setup.js.map +1 -0
- package/packages/core/dist/workflow/sm-subagents.test.d.ts +23 -0
- package/packages/core/dist/workflow/sm-subagents.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/sm-subagents.test.js +727 -0
- package/packages/core/dist/workflow/sm-subagents.test.js.map +1 -0
- package/packages/core/dist/workflow/story-workflow-routing.test.d.ts +17 -0
- package/packages/core/dist/workflow/story-workflow-routing.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/story-workflow-routing.test.js +559 -0
- package/packages/core/dist/workflow/story-workflow-routing.test.js.map +1 -0
- package/packages/core/dist/workflow/test-cache.d.ts +131 -0
- package/packages/core/dist/workflow/test-cache.d.ts.map +1 -0
- package/packages/core/dist/workflow/test-cache.js +226 -0
- package/packages/core/dist/workflow/test-cache.js.map +1 -0
- package/packages/core/dist/workflow/test-cache.test.d.ts +17 -0
- package/packages/core/dist/workflow/test-cache.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/test-cache.test.js +438 -0
- package/packages/core/dist/workflow/test-cache.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-loader.d.ts +76 -0
- package/packages/core/dist/workflow/workflow-loader.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-loader.js +133 -0
- package/packages/core/dist/workflow/workflow-loader.js.map +1 -0
- package/packages/core/dist/workflow/workflow-loader.test.d.ts +15 -0
- package/packages/core/dist/workflow/workflow-loader.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-loader.test.js +354 -0
- package/packages/core/dist/workflow/workflow-loader.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-migration.test.d.ts +17 -0
- package/packages/core/dist/workflow/workflow-migration.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-migration.test.js +372 -0
- package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-router.d.ts +55 -0
- package/packages/core/dist/workflow/workflow-router.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-router.js +245 -0
- package/packages/core/dist/workflow/workflow-router.js.map +1 -0
- package/packages/core/dist/workflow/workflow-router.test.d.ts +20 -0
- package/packages/core/dist/workflow/workflow-router.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-router.test.js +607 -0
- package/packages/core/dist/workflow/workflow-router.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-schema.d.ts +98 -0
- package/packages/core/dist/workflow/workflow-schema.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-schema.js +230 -0
- package/packages/core/dist/workflow/workflow-schema.js.map +1 -0
- package/packages/core/dist/workflow/workflow-schema.test.d.ts +45 -0
- package/packages/core/dist/workflow/workflow-schema.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-schema.test.js +512 -0
- package/packages/core/dist/workflow/workflow-schema.test.js.map +1 -0
- package/pennyfarthing-dist/agents/README.md +397 -0
- package/pennyfarthing-dist/agents/architect.md +171 -0
- package/pennyfarthing-dist/agents/dev.md +225 -0
- package/pennyfarthing-dist/agents/devops.md +183 -0
- package/pennyfarthing-dist/agents/generic-handoff.md +451 -0
- package/pennyfarthing-dist/agents/generic-sm-finish.md +261 -0
- package/pennyfarthing-dist/agents/generic-sm-setup.md +214 -0
- package/pennyfarthing-dist/agents/orchestrator.md +316 -0
- package/pennyfarthing-dist/agents/pm.md +153 -0
- package/pennyfarthing-dist/agents/reviewer-preflight.md +224 -0
- package/pennyfarthing-dist/agents/reviewer.md +315 -0
- package/pennyfarthing-dist/agents/sm-file-summary.md +109 -0
- package/pennyfarthing-dist/agents/sm-handoff.md +97 -0
- package/pennyfarthing-dist/agents/sm.md +480 -0
- package/pennyfarthing-dist/agents/tea.md +191 -0
- package/pennyfarthing-dist/agents/tech-writer.md +148 -0
- package/pennyfarthing-dist/agents/testing-runner.md +420 -0
- package/pennyfarthing-dist/agents/ux-designer.md +158 -0
- package/pennyfarthing-dist/agents/workflow-status-check.md +332 -0
- package/pennyfarthing-dist/commands/architect.md +62 -0
- package/pennyfarthing-dist/commands/benchmark-control.md +69 -0
- package/pennyfarthing-dist/commands/benchmark.md +467 -0
- package/pennyfarthing-dist/commands/brainstorm.md +91 -0
- package/pennyfarthing-dist/commands/check.md +156 -0
- package/pennyfarthing-dist/commands/chore.md +178 -0
- package/pennyfarthing-dist/commands/close-epic.md +136 -0
- package/pennyfarthing-dist/commands/continue-session.md +184 -0
- package/pennyfarthing-dist/commands/create-branches-from-story.md +374 -0
- package/pennyfarthing-dist/commands/create-theme.md +29 -0
- package/pennyfarthing-dist/commands/dev.md +60 -0
- package/pennyfarthing-dist/commands/devops.md +59 -0
- package/pennyfarthing-dist/commands/git-cleanup.md +340 -0
- package/pennyfarthing-dist/commands/health-check.md +108 -0
- package/pennyfarthing-dist/commands/help.md +264 -0
- package/pennyfarthing-dist/commands/job-fair.md +102 -0
- package/pennyfarthing-dist/commands/list-themes.md +17 -0
- package/pennyfarthing-dist/commands/new-work.md +127 -0
- package/pennyfarthing-dist/commands/orchestrator.md +56 -0
- package/pennyfarthing-dist/commands/parallel-work.md +71 -0
- package/pennyfarthing-dist/commands/party-mode.md +67 -0
- package/pennyfarthing-dist/commands/permissions.md +193 -0
- package/pennyfarthing-dist/commands/pm.md +60 -0
- package/pennyfarthing-dist/commands/prime.md +140 -0
- package/pennyfarthing-dist/commands/release.md +58 -0
- package/pennyfarthing-dist/commands/repo-status.md +49 -0
- package/pennyfarthing-dist/commands/retro.md +200 -0
- package/pennyfarthing-dist/commands/reviewer.md +64 -0
- package/pennyfarthing-dist/commands/run-ci.md +116 -0
- package/pennyfarthing-dist/commands/set-theme.md +52 -0
- package/pennyfarthing-dist/commands/show-theme.md +21 -0
- package/pennyfarthing-dist/commands/sm.md +70 -0
- package/pennyfarthing-dist/commands/solo.md +411 -0
- package/pennyfarthing-dist/commands/sprint-planning.md +109 -0
- package/pennyfarthing-dist/commands/start-epic.md +156 -0
- package/pennyfarthing-dist/commands/sync-epic-to-jira.md +184 -0
- package/pennyfarthing-dist/commands/sync-work-with-sprint.md +376 -0
- package/pennyfarthing-dist/commands/tea.md +63 -0
- package/pennyfarthing-dist/commands/tech-writer.md +53 -0
- package/pennyfarthing-dist/commands/theme-maker.md +671 -0
- package/pennyfarthing-dist/commands/update-domain-docs.md +83 -0
- package/pennyfarthing-dist/commands/ux-designer.md +62 -0
- package/pennyfarthing-dist/commands/work.md +111 -0
- package/pennyfarthing-dist/guides/AGENT-COORDINATION.md +480 -0
- package/pennyfarthing-dist/guides/AGENT-SCOPES.md +201 -0
- package/pennyfarthing-dist/guides/HOOKS.md +230 -0
- package/pennyfarthing-dist/guides/PROMPT-PATTERNS.md +338 -0
- package/pennyfarthing-dist/guides/SESSION-ARTIFACTS.md +193 -0
- package/pennyfarthing-dist/guides/agent-template-strategic.md +148 -0
- package/pennyfarthing-dist/guides/agent-template-tactical.md +162 -0
- package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +746 -0
- package/pennyfarthing-dist/guides/patterns/fan-out-fan-in-pattern.md +574 -0
- package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +488 -0
- package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +402 -0
- package/pennyfarthing-dist/guides/permission-protocol.md +188 -0
- package/pennyfarthing-dist/guides/persona-loading.md +46 -0
- package/pennyfarthing-dist/guides/persona-system.md +294 -0
- package/pennyfarthing-dist/guides/shared-agent-behavior.md +388 -0
- package/pennyfarthing-dist/guides/shared-context.md +147 -0
- package/pennyfarthing-dist/guides/strategic-agent-behavior.md +348 -0
- package/pennyfarthing-dist/guides/tactical-agent-behavior.md +1041 -0
- package/pennyfarthing-dist/guides/workflow-schema.md +195 -0
- package/pennyfarthing-dist/guides/worktree-mode.md +113 -0
- package/pennyfarthing-dist/output-styles/teaching.md +33 -0
- package/pennyfarthing-dist/output-styles/terse.md +20 -0
- package/pennyfarthing-dist/output-styles/verbose.md +28 -0
- package/pennyfarthing-dist/personas/themes/1984.yaml +312 -0
- package/pennyfarthing-dist/personas/themes/a-team.yaml +207 -0
- package/pennyfarthing-dist/personas/themes/agatha-christie.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +330 -0
- package/pennyfarthing-dist/personas/themes/all-stars.yaml +332 -0
- package/pennyfarthing-dist/personas/themes/ancient-philosophers.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/ancient-strategists.yaml +306 -0
- package/pennyfarthing-dist/personas/themes/arcane.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/arthurian-mythos.yaml +331 -0
- package/pennyfarthing-dist/personas/themes/avatar-the-last-airbender.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/babylon-5.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/better-call-saul.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/big-lebowski.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/black-sails.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/blade-runner.yaml +295 -0
- package/pennyfarthing-dist/personas/themes/bobiverse.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/breaking-bad.yaml +327 -0
- package/pennyfarthing-dist/personas/themes/catch-22.yaml +316 -0
- package/pennyfarthing-dist/personas/themes/classical-composers.yaml +310 -0
- package/pennyfarthing-dist/personas/themes/control.yaml +197 -0
- package/pennyfarthing-dist/personas/themes/count-of-monte-cristo.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +323 -0
- package/pennyfarthing-dist/personas/themes/deadwood.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/dickens.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/discworld.yaml +332 -0
- package/pennyfarthing-dist/personas/themes/doctor-who.yaml +290 -0
- package/pennyfarthing-dist/personas/themes/don-quixote.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/dune.yaml +307 -0
- package/pennyfarthing-dist/personas/themes/enlightenment-thinkers.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/expeditionary-force.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/fargo.yaml +330 -0
- package/pennyfarthing-dist/personas/themes/film-auteurs.yaml +312 -0
- package/pennyfarthing-dist/personas/themes/firefly.yaml +328 -0
- package/pennyfarthing-dist/personas/themes/foundation.yaml +290 -0
- package/pennyfarthing-dist/personas/themes/futurama.yaml +321 -0
- package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +290 -0
- package/pennyfarthing-dist/personas/themes/gilligans-island.yaml +243 -0
- package/pennyfarthing-dist/personas/themes/gothic-literature.yaml +308 -0
- package/pennyfarthing-dist/personas/themes/great-gatsby.yaml +308 -0
- package/pennyfarthing-dist/personas/themes/greek-mythology.yaml +330 -0
- package/pennyfarthing-dist/personas/themes/hannibal.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/harry-potter.yaml +324 -0
- package/pennyfarthing-dist/personas/themes/his-dark-materials.yaml +291 -0
- package/pennyfarthing-dist/personas/themes/historical-figures.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +331 -0
- package/pennyfarthing-dist/personas/themes/house-md.yaml +321 -0
- package/pennyfarthing-dist/personas/themes/imperial-radch.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/inspector-morse.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/jane-austen.yaml +287 -0
- package/pennyfarthing-dist/personas/themes/jazz-legends.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/justified.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/legion-of-doom.yaml +219 -0
- package/pennyfarthing-dist/personas/themes/les-miserables.yaml +299 -0
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +334 -0
- package/pennyfarthing-dist/personas/themes/lovecraft-mythos.yaml +334 -0
- package/pennyfarthing-dist/personas/themes/mad-max.yaml +355 -0
- package/pennyfarthing-dist/personas/themes/mad-men.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/marvel-mcu.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/mash.yaml +334 -0
- package/pennyfarthing-dist/personas/themes/mass-effect.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/military-commanders.yaml +306 -0
- package/pennyfarthing-dist/personas/themes/moby-dick.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/monty-python.yaml +303 -0
- package/pennyfarthing-dist/personas/themes/neuromancer.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/norse-mythology.yaml +329 -0
- package/pennyfarthing-dist/personas/themes/parks-and-rec.yaml +242 -0
- package/pennyfarthing-dist/personas/themes/peaky-blinders.yaml +298 -0
- package/pennyfarthing-dist/personas/themes/princess-bride.yaml +220 -0
- package/pennyfarthing-dist/personas/themes/renaissance-masters.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/rome.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/russian-masters.yaml +318 -0
- package/pennyfarthing-dist/personas/themes/sandman.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/scientific-revolutionaries.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/shakespeare.yaml +301 -0
- package/pennyfarthing-dist/personas/themes/sherlock-holmes.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/snow-crash.yaml +288 -0
- package/pennyfarthing-dist/personas/themes/software-pioneers.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +230 -0
- package/pennyfarthing-dist/personas/themes/star-trek-tos.yaml +210 -0
- package/pennyfarthing-dist/personas/themes/star-wars.yaml +303 -0
- package/pennyfarthing-dist/personas/themes/succession.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/superfriends.yaml +208 -0
- package/pennyfarthing-dist/personas/themes/ted-lasso.yaml +236 -0
- package/pennyfarthing-dist/personas/themes/the-americans.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/the-crown.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/the-expanse.yaml +213 -0
- package/pennyfarthing-dist/personas/themes/the-good-place.yaml +322 -0
- package/pennyfarthing-dist/personas/themes/the-matrix.yaml +353 -0
- package/pennyfarthing-dist/personas/themes/the-odyssey.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/the-office.yaml +330 -0
- package/pennyfarthing-dist/personas/themes/the-simpsons.yaml +308 -0
- package/pennyfarthing-dist/personas/themes/the-sopranos.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/the-wire.yaml +311 -0
- package/pennyfarthing-dist/personas/themes/the-witcher.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/twin-peaks.yaml +302 -0
- package/pennyfarthing-dist/personas/themes/vorkosigan-saga.yaml +300 -0
- package/pennyfarthing-dist/personas/themes/watchmen.yaml +291 -0
- package/pennyfarthing-dist/personas/themes/west-wing.yaml +291 -0
- package/pennyfarthing-dist/personas/themes/world-explorers.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/wwii-leaders.yaml +307 -0
- package/pennyfarthing-dist/personas/themes/x-files.yaml +302 -0
- package/pennyfarthing-dist/scripts/add-short-names.mjs +264 -0
- package/pennyfarthing-dist/scripts/agent-session.sh +367 -0
- package/pennyfarthing-dist/scripts/check-context.sh +187 -0
- package/pennyfarthing-dist/scripts/check.sh +497 -0
- package/pennyfarthing-dist/scripts/deploy.sh +284 -0
- package/pennyfarthing-dist/scripts/doctor-dogfood.sh +360 -0
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +61 -0
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +66 -0
- package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +35 -0
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +166 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +50 -0
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +71 -0
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +54 -0
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +98 -0
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +59 -0
- package/pennyfarthing-dist/scripts/install-git-hooks.sh +91 -0
- package/pennyfarthing-dist/scripts/prime.sh +161 -0
- package/pennyfarthing-dist/scripts/release.sh +198 -0
- package/pennyfarthing-dist/scripts/repo-utils.sh +778 -0
- package/pennyfarthing-dist/scripts/run-ci.sh +219 -0
- package/pennyfarthing-dist/scripts/run.sh +65 -0
- package/pennyfarthing-dist/scripts/statusline.sh +264 -0
- package/pennyfarthing-dist/scripts/tests/check.test.sh +582 -0
- package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +107 -0
- package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +597 -0
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +514 -0
- package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +517 -0
- package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +331 -0
- package/pennyfarthing-dist/scripts/uninstall.sh +271 -0
- package/pennyfarthing-dist/scripts/utils/background-tasks.sh +177 -0
- package/pennyfarthing-dist/scripts/utils/check-status.sh +251 -0
- package/pennyfarthing-dist/scripts/utils/checkpoint.sh +136 -0
- package/pennyfarthing-dist/scripts/utils/common.sh +157 -0
- package/pennyfarthing-dist/scripts/utils/create-feature-branches.sh +230 -0
- package/pennyfarthing-dist/scripts/utils/file-lock.sh +269 -0
- package/pennyfarthing-dist/scripts/utils/find-related-work.sh +231 -0
- package/pennyfarthing-dist/scripts/utils/find-root.sh +33 -0
- package/pennyfarthing-dist/scripts/utils/generate-skill-docs.sh +110 -0
- package/pennyfarthing-dist/scripts/utils/git-status-all.sh +127 -0
- package/pennyfarthing-dist/scripts/utils/ground-truth-judge.py +289 -0
- package/pennyfarthing-dist/scripts/utils/jira/jira-lib.mjs +443 -0
- package/pennyfarthing-dist/scripts/utils/jira/jira-sync-story.mjs +208 -0
- package/pennyfarthing-dist/scripts/utils/jira/jira-sync.mjs +198 -0
- package/pennyfarthing-dist/scripts/utils/jira-claim-story.sh +162 -0
- package/pennyfarthing-dist/scripts/utils/jira-lib.sh +463 -0
- package/pennyfarthing-dist/scripts/utils/jira-sync-story.sh +8 -0
- package/pennyfarthing-dist/scripts/utils/jira-sync.sh +8 -0
- package/pennyfarthing-dist/scripts/utils/log-skill-usage.sh +74 -0
- package/pennyfarthing-dist/scripts/utils/logging.sh +186 -0
- package/pennyfarthing-dist/scripts/utils/repo-scan.sh +141 -0
- package/pennyfarthing-dist/scripts/utils/retry.sh +76 -0
- package/pennyfarthing-dist/scripts/utils/run-timestamp.sh +7 -0
- package/pennyfarthing-dist/scripts/utils/session-cleanup.sh +319 -0
- package/pennyfarthing-dist/scripts/utils/skill-usage-report.sh +193 -0
- package/pennyfarthing-dist/scripts/utils/sprint-common.sh +286 -0
- package/pennyfarthing-dist/scripts/utils/sprint-metrics.sh +241 -0
- package/pennyfarthing-dist/scripts/utils/swebench-judge.py +400 -0
- package/pennyfarthing-dist/scripts/utils/sync-epic-to-jira.sh +16 -0
- package/pennyfarthing-dist/scripts/utils/test-setup.sh +337 -0
- package/pennyfarthing-dist/scripts/utils/validate-subagent-frontmatter.sh +160 -0
- package/pennyfarthing-dist/scripts/worktree-manager.sh +498 -0
- package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +236 -0
- package/pennyfarthing-dist/skills/changelog/SKILL.md +367 -0
- package/pennyfarthing-dist/skills/code-review/SKILL.md +168 -0
- package/pennyfarthing-dist/skills/context-engineering/SKILL.md +268 -0
- package/pennyfarthing-dist/skills/cyclist/SKILL.md +117 -0
- package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +421 -0
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +258 -0
- package/pennyfarthing-dist/skills/jira/SKILL.md +281 -0
- package/pennyfarthing-dist/skills/judge/SKILL.md +524 -0
- package/pennyfarthing-dist/skills/just/SKILL.md +160 -0
- package/pennyfarthing-dist/skills/mermaid/SKILL.md +240 -0
- package/pennyfarthing-dist/skills/otel/skill.md +222 -0
- package/pennyfarthing-dist/skills/permissions/skill.md +172 -0
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +173 -0
- package/pennyfarthing-dist/skills/skill-registry.schema.json +102 -0
- package/pennyfarthing-dist/skills/skill-registry.yaml +335 -0
- package/pennyfarthing-dist/skills/sprint-context/SKILL.md +120 -0
- package/pennyfarthing-dist/skills/story-management/SKILL.md +208 -0
- package/pennyfarthing-dist/skills/testing/SKILL.md +99 -0
- package/pennyfarthing-dist/skills/testing/references/troubleshooting.md +124 -0
- package/pennyfarthing-dist/skills/theme/skill.md +129 -0
- package/pennyfarthing-dist/skills/theme-creation/SKILL.md +169 -0
- package/pennyfarthing-dist/skills/workflow/SKILL.md +160 -0
- package/pennyfarthing-dist/skills/yq/SKILL.md +264 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.schema.yaml +187 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.template.md +59 -0
- package/pennyfarthing-dist/templates/agent-scopes.yaml.template +276 -0
- package/pennyfarthing-dist/templates/pennyfarthing-settings.yaml.template +61 -0
- package/pennyfarthing-dist/templates/persona-config.yaml.template +22 -0
- package/pennyfarthing-dist/templates/preferences.yaml.template +15 -0
- package/pennyfarthing-dist/templates/settings.local.json.template +90 -0
- package/pennyfarthing-dist/templates/setup-env.sh.template +18 -0
- package/pennyfarthing-dist/templates/shared-context.md.template +70 -0
- package/pennyfarthing-dist/templates/sidecar/decisions.md.template +40 -0
- package/pennyfarthing-dist/templates/sidecar/gotchas.md.template +37 -0
- package/pennyfarthing-dist/templates/sidecar/patterns.md.template +34 -0
- package/pennyfarthing-dist/workflows/agent-docs.yaml +70 -0
- package/pennyfarthing-dist/workflows/bdd.yaml +58 -0
- package/pennyfarthing-dist/workflows/tdd.yaml +50 -0
- package/pennyfarthing-dist/workflows/trivial.yaml +40 -0
|
@@ -0,0 +1 @@
|
|
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,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAE3C,sBAAsB;YACtB,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,oBAAoB,CAAC,EAAE,4BAA4B,CAAC,CAAC;YAEpF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC;gBAC9B,OAAO,EAAE,YAAY;gBACrB,KAAK,EAAE,oCAAoC;gBAC3C,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,UAAU;gBACV,QAAQ,EAAE,KAAK;gBACf,gBAAgB,EAAE,IAAI;gBACtB,UAAU;aACX,CAAC,CAAC;YAEH,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,qCAAqC,CAAC,CAAC;YAChF,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,EACzE,qCAAqC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 38-9: SM Workflow Routing from Story Tags
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for SM reading and honoring
|
|
5
|
+
* the `workflow:` tag on stories in sprint YAML.
|
|
6
|
+
*
|
|
7
|
+
* Acceptance Criteria:
|
|
8
|
+
* - AC1: SM reads workflow tag from story in sprint YAML
|
|
9
|
+
* - AC2: SM loads correct workflow definition from pennyfarthing-dist/workflows/
|
|
10
|
+
* - AC3: SM follows workflow's phase sequence (agent-docs → Orchestrator)
|
|
11
|
+
* - AC4: Fallback to TDD if no tag or unknown workflow
|
|
12
|
+
* - AC5: Session file records which workflow is active
|
|
13
|
+
*
|
|
14
|
+
* Run with: npm test
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=story-workflow-routing.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-workflow-routing.test.d.ts","sourceRoot":"","sources":["../../src/workflow/story-workflow-routing.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 38-9: SM Workflow Routing from Story Tags
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for SM reading and honoring
|
|
5
|
+
* the `workflow:` tag on stories in sprint YAML.
|
|
6
|
+
*
|
|
7
|
+
* Acceptance Criteria:
|
|
8
|
+
* - AC1: SM reads workflow tag from story in sprint YAML
|
|
9
|
+
* - AC2: SM loads correct workflow definition from pennyfarthing-dist/workflows/
|
|
10
|
+
* - AC3: SM follows workflow's phase sequence (agent-docs → Orchestrator)
|
|
11
|
+
* - AC4: Fallback to TDD if no tag or unknown workflow
|
|
12
|
+
* - AC5: Session file records which workflow is active
|
|
13
|
+
*
|
|
14
|
+
* Run with: npm test
|
|
15
|
+
*/
|
|
16
|
+
import { describe, it, beforeEach, afterEach } from 'node:test';
|
|
17
|
+
import assert from 'node:assert';
|
|
18
|
+
import { mkdirSync, rmSync, existsSync, writeFileSync, readFileSync } from 'node:fs';
|
|
19
|
+
import { join, dirname } from 'node:path';
|
|
20
|
+
import { fileURLToPath } from 'node:url';
|
|
21
|
+
import { parse as parseYaml } from 'yaml';
|
|
22
|
+
// Import workflow routing infrastructure
|
|
23
|
+
import { routeStoryToWorkflow } from './workflow-router.js';
|
|
24
|
+
import { loadWorkflowsFromDir } from './workflow-loader.js';
|
|
25
|
+
// Get directory for test fixtures
|
|
26
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
27
|
+
const TEST_DIR = join(__dirname, '__test_story_workflow_routing__');
|
|
28
|
+
// =============================================================================
|
|
29
|
+
// Helper functions
|
|
30
|
+
// =============================================================================
|
|
31
|
+
/**
|
|
32
|
+
* Extract story from sprint YAML by ID
|
|
33
|
+
*/
|
|
34
|
+
function getStoryFromSprintYaml(yamlContent, storyId) {
|
|
35
|
+
const parsed = parseYaml(yamlContent);
|
|
36
|
+
for (const epic of parsed.epics) {
|
|
37
|
+
for (const story of epic.stories) {
|
|
38
|
+
if (story.id === storyId) {
|
|
39
|
+
return story;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Convert SprintStory to StoryMetadata for routing
|
|
47
|
+
*/
|
|
48
|
+
function storyToMetadata(story) {
|
|
49
|
+
const tags = [];
|
|
50
|
+
// Add workflow tag if present
|
|
51
|
+
if (story.workflow) {
|
|
52
|
+
tags.push(`workflow:${story.workflow}`);
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
id: story.id,
|
|
56
|
+
points: story.points,
|
|
57
|
+
tags: tags.length > 0 ? tags : undefined
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get next agent from workflow phase sequence
|
|
62
|
+
*/
|
|
63
|
+
function getFirstAgentAfterSetup(workflow) {
|
|
64
|
+
const phases = workflow.phases;
|
|
65
|
+
if (!phases || phases.length < 2)
|
|
66
|
+
return null;
|
|
67
|
+
// Find setup phase, return next phase's agent
|
|
68
|
+
for (let i = 0; i < phases.length - 1; i++) {
|
|
69
|
+
if (phases[i].name === 'setup') {
|
|
70
|
+
return phases[i + 1].agent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// If no explicit setup, return second phase's agent
|
|
74
|
+
return phases[1]?.agent || null;
|
|
75
|
+
}
|
|
76
|
+
// =============================================================================
|
|
77
|
+
// AC1: SM reads workflow tag from story in sprint YAML
|
|
78
|
+
// =============================================================================
|
|
79
|
+
describe('AC1: Read workflow tag from sprint YAML', () => {
|
|
80
|
+
beforeEach(() => {
|
|
81
|
+
if (existsSync(TEST_DIR)) {
|
|
82
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
83
|
+
}
|
|
84
|
+
mkdirSync(TEST_DIR, { recursive: true });
|
|
85
|
+
});
|
|
86
|
+
afterEach(() => {
|
|
87
|
+
if (existsSync(TEST_DIR)) {
|
|
88
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
it('should extract workflow tag from story with explicit workflow: field', () => {
|
|
92
|
+
const sprintYaml = `
|
|
93
|
+
sprint:
|
|
94
|
+
number: 11
|
|
95
|
+
goal: "Test sprint"
|
|
96
|
+
epics:
|
|
97
|
+
- id: epic-38
|
|
98
|
+
title: "Agent File Modernization"
|
|
99
|
+
stories:
|
|
100
|
+
- id: "38-9"
|
|
101
|
+
title: "SM workflow routing from story tags"
|
|
102
|
+
points: 3
|
|
103
|
+
workflow: tdd
|
|
104
|
+
status: backlog
|
|
105
|
+
`;
|
|
106
|
+
const story = getStoryFromSprintYaml(sprintYaml, '38-9');
|
|
107
|
+
assert.ok(story, 'Story should be found');
|
|
108
|
+
assert.strictEqual(story.workflow, 'tdd', 'Workflow tag should be extracted');
|
|
109
|
+
});
|
|
110
|
+
it('should extract workflow: trivial for trivial workflow stories', () => {
|
|
111
|
+
const sprintYaml = `
|
|
112
|
+
sprint:
|
|
113
|
+
number: 11
|
|
114
|
+
epics:
|
|
115
|
+
- id: epic-38
|
|
116
|
+
stories:
|
|
117
|
+
- id: "38-1"
|
|
118
|
+
title: "Fix stale references"
|
|
119
|
+
points: 1
|
|
120
|
+
workflow: trivial
|
|
121
|
+
status: backlog
|
|
122
|
+
`;
|
|
123
|
+
const story = getStoryFromSprintYaml(sprintYaml, '38-1');
|
|
124
|
+
assert.ok(story, 'Story should be found');
|
|
125
|
+
assert.strictEqual(story.workflow, 'trivial', 'Trivial workflow should be extracted');
|
|
126
|
+
});
|
|
127
|
+
it('should extract workflow: agent-docs for documentation stories', () => {
|
|
128
|
+
const sprintYaml = `
|
|
129
|
+
sprint:
|
|
130
|
+
number: 11
|
|
131
|
+
epics:
|
|
132
|
+
- id: epic-38
|
|
133
|
+
stories:
|
|
134
|
+
- id: "38-3"
|
|
135
|
+
title: "Modernize PM agent"
|
|
136
|
+
points: 2
|
|
137
|
+
workflow: agent-docs
|
|
138
|
+
status: backlog
|
|
139
|
+
`;
|
|
140
|
+
const story = getStoryFromSprintYaml(sprintYaml, '38-3');
|
|
141
|
+
assert.ok(story, 'Story should be found');
|
|
142
|
+
assert.strictEqual(story.workflow, 'agent-docs', 'Agent-docs workflow should be extracted');
|
|
143
|
+
});
|
|
144
|
+
it('should return undefined workflow for stories without tag', () => {
|
|
145
|
+
const sprintYaml = `
|
|
146
|
+
sprint:
|
|
147
|
+
number: 11
|
|
148
|
+
epics:
|
|
149
|
+
- id: epic-38
|
|
150
|
+
stories:
|
|
151
|
+
- id: "38-99"
|
|
152
|
+
title: "Story without workflow tag"
|
|
153
|
+
points: 2
|
|
154
|
+
status: backlog
|
|
155
|
+
`;
|
|
156
|
+
const story = getStoryFromSprintYaml(sprintYaml, '38-99');
|
|
157
|
+
assert.ok(story, 'Story should be found');
|
|
158
|
+
assert.strictEqual(story.workflow, undefined, 'Workflow should be undefined');
|
|
159
|
+
});
|
|
160
|
+
it('should convert story workflow to StoryMetadata tags', () => {
|
|
161
|
+
const story = {
|
|
162
|
+
id: '38-9',
|
|
163
|
+
title: 'Test',
|
|
164
|
+
points: 3,
|
|
165
|
+
workflow: 'tdd'
|
|
166
|
+
};
|
|
167
|
+
const metadata = storyToMetadata(story);
|
|
168
|
+
assert.ok(metadata.tags, 'Should have tags');
|
|
169
|
+
assert.ok(metadata.tags.includes('workflow:tdd'), 'Should include workflow tag');
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
// =============================================================================
|
|
173
|
+
// AC2: SM loads correct workflow definition
|
|
174
|
+
// =============================================================================
|
|
175
|
+
describe('AC2: Load correct workflow definition', () => {
|
|
176
|
+
// Find monorepo root for real workflow files
|
|
177
|
+
function findMonorepoRoot(startDir) {
|
|
178
|
+
let dir = startDir;
|
|
179
|
+
for (let i = 0; i < 10; i++) {
|
|
180
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
181
|
+
return dir;
|
|
182
|
+
}
|
|
183
|
+
const parent = dirname(dir);
|
|
184
|
+
if (parent === dir)
|
|
185
|
+
break;
|
|
186
|
+
dir = parent;
|
|
187
|
+
}
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
const monorepoRoot = findMonorepoRoot(__dirname);
|
|
191
|
+
const workflowsDir = monorepoRoot
|
|
192
|
+
? join(monorepoRoot, 'pennyfarthing-dist', 'workflows')
|
|
193
|
+
: null;
|
|
194
|
+
it('should load all workflow definitions from pennyfarthing-dist/workflows/', async () => {
|
|
195
|
+
if (!workflowsDir) {
|
|
196
|
+
console.log('Skipping: workflows directory not found');
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const { workflows, errors } = loadWorkflowsFromDir(workflowsDir);
|
|
200
|
+
assert.ok(workflows.length > 0, 'Should load at least one workflow');
|
|
201
|
+
assert.strictEqual(errors.length, 0, `Should have no load errors: ${JSON.stringify(errors)}`);
|
|
202
|
+
// Expected workflows
|
|
203
|
+
const workflowNames = workflows.map(w => w.name);
|
|
204
|
+
assert.ok(workflowNames.includes('tdd'), 'Should include tdd workflow');
|
|
205
|
+
assert.ok(workflowNames.includes('trivial'), 'Should include trivial workflow');
|
|
206
|
+
assert.ok(workflowNames.includes('agent-docs'), 'Should include agent-docs workflow');
|
|
207
|
+
});
|
|
208
|
+
it('should route story with workflow:tdd tag to tdd workflow', async () => {
|
|
209
|
+
if (!workflowsDir) {
|
|
210
|
+
console.log('Skipping: workflows directory not found');
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
214
|
+
const story = {
|
|
215
|
+
id: '38-9',
|
|
216
|
+
tags: ['workflow:tdd'],
|
|
217
|
+
points: 3
|
|
218
|
+
};
|
|
219
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
220
|
+
assert.ok(result, 'Should route to a workflow');
|
|
221
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should route to tdd workflow');
|
|
222
|
+
assert.ok(result.reason.includes('tag'), 'Reason should mention tag match');
|
|
223
|
+
});
|
|
224
|
+
it('should route story with workflow:trivial tag to trivial workflow', async () => {
|
|
225
|
+
if (!workflowsDir) {
|
|
226
|
+
console.log('Skipping: workflows directory not found');
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
230
|
+
const story = {
|
|
231
|
+
id: '38-1',
|
|
232
|
+
tags: ['workflow:trivial'],
|
|
233
|
+
points: 1
|
|
234
|
+
};
|
|
235
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
236
|
+
assert.ok(result, 'Should route to a workflow');
|
|
237
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Should route to trivial workflow');
|
|
238
|
+
});
|
|
239
|
+
it('should route story with workflow:agent-docs tag to agent-docs workflow', async () => {
|
|
240
|
+
if (!workflowsDir) {
|
|
241
|
+
console.log('Skipping: workflows directory not found');
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
245
|
+
const story = {
|
|
246
|
+
id: '38-3',
|
|
247
|
+
tags: ['workflow:agent-docs'],
|
|
248
|
+
points: 2
|
|
249
|
+
};
|
|
250
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
251
|
+
assert.ok(result, 'Should route to a workflow');
|
|
252
|
+
assert.strictEqual(result.workflow.name, 'agent-docs', 'Should route to agent-docs workflow');
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
// =============================================================================
|
|
256
|
+
// AC3: SM follows workflow's phase sequence
|
|
257
|
+
// =============================================================================
|
|
258
|
+
describe('AC3: Follow workflow phase sequence', () => {
|
|
259
|
+
function findMonorepoRoot(startDir) {
|
|
260
|
+
let dir = startDir;
|
|
261
|
+
for (let i = 0; i < 10; i++) {
|
|
262
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
263
|
+
return dir;
|
|
264
|
+
}
|
|
265
|
+
const parent = dirname(dir);
|
|
266
|
+
if (parent === dir)
|
|
267
|
+
break;
|
|
268
|
+
dir = parent;
|
|
269
|
+
}
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
const monorepoRoot = findMonorepoRoot(__dirname);
|
|
273
|
+
const workflowsDir = monorepoRoot
|
|
274
|
+
? join(monorepoRoot, 'pennyfarthing-dist', 'workflows')
|
|
275
|
+
: null;
|
|
276
|
+
it('tdd workflow should route SM setup → TEA (red phase)', async () => {
|
|
277
|
+
if (!workflowsDir) {
|
|
278
|
+
console.log('Skipping: workflows directory not found');
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
282
|
+
const tddWorkflow = workflows.find(w => w.name === 'tdd');
|
|
283
|
+
assert.ok(tddWorkflow, 'TDD workflow should exist');
|
|
284
|
+
const nextAgent = getFirstAgentAfterSetup(tddWorkflow);
|
|
285
|
+
assert.strictEqual(nextAgent, 'tea', 'TDD workflow should route to TEA after setup');
|
|
286
|
+
});
|
|
287
|
+
it('trivial workflow should route SM setup → Dev (implement phase)', async () => {
|
|
288
|
+
if (!workflowsDir) {
|
|
289
|
+
console.log('Skipping: workflows directory not found');
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
293
|
+
const trivialWorkflow = workflows.find(w => w.name === 'trivial');
|
|
294
|
+
assert.ok(trivialWorkflow, 'Trivial workflow should exist');
|
|
295
|
+
const nextAgent = getFirstAgentAfterSetup(trivialWorkflow);
|
|
296
|
+
assert.strictEqual(nextAgent, 'dev', 'Trivial workflow should route to Dev after setup');
|
|
297
|
+
});
|
|
298
|
+
it('agent-docs workflow should route SM setup → Orchestrator (analyze phase)', async () => {
|
|
299
|
+
if (!workflowsDir) {
|
|
300
|
+
console.log('Skipping: workflows directory not found');
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
304
|
+
const agentDocsWorkflow = workflows.find(w => w.name === 'agent-docs');
|
|
305
|
+
assert.ok(agentDocsWorkflow, 'Agent-docs workflow should exist');
|
|
306
|
+
const nextAgent = getFirstAgentAfterSetup(agentDocsWorkflow);
|
|
307
|
+
assert.strictEqual(nextAgent, 'orchestrator', `Agent-docs workflow should route to Orchestrator after setup, got: ${nextAgent}`);
|
|
308
|
+
});
|
|
309
|
+
it('should return correct handoff target based on workflow', async () => {
|
|
310
|
+
if (!workflowsDir) {
|
|
311
|
+
console.log('Skipping: workflows directory not found');
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
315
|
+
// Test routing for different workflow tags
|
|
316
|
+
const testCases = [
|
|
317
|
+
{ workflowTag: 'tdd', expectedAgent: 'tea' },
|
|
318
|
+
{ workflowTag: 'trivial', expectedAgent: 'dev' },
|
|
319
|
+
{ workflowTag: 'agent-docs', expectedAgent: 'orchestrator' }
|
|
320
|
+
];
|
|
321
|
+
for (const { workflowTag, expectedAgent } of testCases) {
|
|
322
|
+
const story = {
|
|
323
|
+
id: 'test',
|
|
324
|
+
tags: [`workflow:${workflowTag}`]
|
|
325
|
+
};
|
|
326
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
327
|
+
assert.ok(result, `Should route ${workflowTag}`);
|
|
328
|
+
const nextAgent = getFirstAgentAfterSetup(result.workflow);
|
|
329
|
+
assert.strictEqual(nextAgent, expectedAgent, `${workflowTag} workflow should route to ${expectedAgent}, got ${nextAgent}`);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
// =============================================================================
|
|
334
|
+
// AC4: Fallback to TDD if no tag or unknown workflow
|
|
335
|
+
// =============================================================================
|
|
336
|
+
describe('AC4: Fallback to TDD workflow', () => {
|
|
337
|
+
function findMonorepoRoot(startDir) {
|
|
338
|
+
let dir = startDir;
|
|
339
|
+
for (let i = 0; i < 10; i++) {
|
|
340
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
341
|
+
return dir;
|
|
342
|
+
}
|
|
343
|
+
const parent = dirname(dir);
|
|
344
|
+
if (parent === dir)
|
|
345
|
+
break;
|
|
346
|
+
dir = parent;
|
|
347
|
+
}
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
const monorepoRoot = findMonorepoRoot(__dirname);
|
|
351
|
+
const workflowsDir = monorepoRoot
|
|
352
|
+
? join(monorepoRoot, 'pennyfarthing-dist', 'workflows')
|
|
353
|
+
: null;
|
|
354
|
+
it('should fall back to tdd for story with no workflow tag', async () => {
|
|
355
|
+
if (!workflowsDir) {
|
|
356
|
+
console.log('Skipping: workflows directory not found');
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
360
|
+
const story = {
|
|
361
|
+
id: '38-99',
|
|
362
|
+
// No tags - should use default
|
|
363
|
+
};
|
|
364
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
365
|
+
assert.ok(result, 'Should still route to a workflow');
|
|
366
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should fall back to tdd (default)');
|
|
367
|
+
assert.ok(result.reason.includes('default'), 'Reason should mention default fallback');
|
|
368
|
+
});
|
|
369
|
+
it('should fall back to tdd for story with unknown workflow tag', async () => {
|
|
370
|
+
if (!workflowsDir) {
|
|
371
|
+
console.log('Skipping: workflows directory not found');
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
375
|
+
const story = {
|
|
376
|
+
id: '38-99',
|
|
377
|
+
tags: ['workflow:nonexistent-workflow']
|
|
378
|
+
};
|
|
379
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
380
|
+
// Unknown workflow tag should be ignored, fall back to default
|
|
381
|
+
assert.ok(result, 'Should still route to a workflow');
|
|
382
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should fall back to tdd for unknown workflow');
|
|
383
|
+
});
|
|
384
|
+
it('should use type-based routing when no explicit workflow tag', async () => {
|
|
385
|
+
if (!workflowsDir) {
|
|
386
|
+
console.log('Skipping: workflows directory not found');
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
390
|
+
const story = {
|
|
391
|
+
id: '38-99',
|
|
392
|
+
type: 'feature',
|
|
393
|
+
points: 5
|
|
394
|
+
// No workflow tag - should match based on type/points
|
|
395
|
+
};
|
|
396
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
397
|
+
assert.ok(result, 'Should route to a workflow');
|
|
398
|
+
// Feature type should match tdd workflow triggers
|
|
399
|
+
assert.strictEqual(result.workflow.name, 'tdd');
|
|
400
|
+
});
|
|
401
|
+
it('should use points-based routing for low-point stories without tag', async () => {
|
|
402
|
+
if (!workflowsDir) {
|
|
403
|
+
console.log('Skipping: workflows directory not found');
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
407
|
+
const story = {
|
|
408
|
+
id: '38-99',
|
|
409
|
+
type: 'chore',
|
|
410
|
+
points: 1
|
|
411
|
+
// No workflow tag - should match trivial based on type + points
|
|
412
|
+
};
|
|
413
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
414
|
+
assert.ok(result, 'Should route to a workflow');
|
|
415
|
+
// Chore type + 1 point should match trivial workflow triggers
|
|
416
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Low-point chore should route to trivial workflow');
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
// =============================================================================
|
|
420
|
+
// AC5: Session file records which workflow is active
|
|
421
|
+
// =============================================================================
|
|
422
|
+
describe('AC5: Session file records active workflow', () => {
|
|
423
|
+
beforeEach(() => {
|
|
424
|
+
if (existsSync(TEST_DIR)) {
|
|
425
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
426
|
+
}
|
|
427
|
+
mkdirSync(TEST_DIR, { recursive: true });
|
|
428
|
+
});
|
|
429
|
+
afterEach(() => {
|
|
430
|
+
if (existsSync(TEST_DIR)) {
|
|
431
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
it('should include **Workflow:** field in session file', () => {
|
|
435
|
+
// This test verifies the session file format includes workflow tracking
|
|
436
|
+
const sessionContent = `# Story 38-9: SM workflow routing
|
|
437
|
+
|
|
438
|
+
## Story Details
|
|
439
|
+
|
|
440
|
+
| Field | Value |
|
|
441
|
+
|-------|-------|
|
|
442
|
+
| Story | 38-9 |
|
|
443
|
+
|
|
444
|
+
## Workflow Tracking
|
|
445
|
+
|
|
446
|
+
**Workflow:** tdd
|
|
447
|
+
**Phase:** setup
|
|
448
|
+
**Status:** in_progress
|
|
449
|
+
`;
|
|
450
|
+
const sessionPath = join(TEST_DIR, '38-9-session.md');
|
|
451
|
+
writeFileSync(sessionPath, sessionContent);
|
|
452
|
+
const content = readFileSync(sessionPath, 'utf-8');
|
|
453
|
+
// Verify workflow field exists
|
|
454
|
+
assert.ok(content.includes('**Workflow:** tdd'), 'Session file should include Workflow field');
|
|
455
|
+
assert.ok(content.includes('## Workflow Tracking'), 'Session file should have Workflow Tracking section');
|
|
456
|
+
});
|
|
457
|
+
it('should record workflow matching the selected workflow tag', () => {
|
|
458
|
+
// Test with different workflow values
|
|
459
|
+
const testWorkflows = ['tdd', 'trivial', 'agent-docs'];
|
|
460
|
+
for (const workflow of testWorkflows) {
|
|
461
|
+
const sessionContent = `# Story Test
|
|
462
|
+
|
|
463
|
+
## Workflow Tracking
|
|
464
|
+
|
|
465
|
+
**Workflow:** ${workflow}
|
|
466
|
+
**Phase:** setup
|
|
467
|
+
`;
|
|
468
|
+
const sessionPath = join(TEST_DIR, `test-${workflow}-session.md`);
|
|
469
|
+
writeFileSync(sessionPath, sessionContent);
|
|
470
|
+
const content = readFileSync(sessionPath, 'utf-8');
|
|
471
|
+
assert.ok(content.includes(`**Workflow:** ${workflow}`), `Session should record workflow: ${workflow}`);
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
it('should extract workflow from existing session file', () => {
|
|
475
|
+
const sessionContent = `# Story 38-3
|
|
476
|
+
|
|
477
|
+
## Workflow Tracking
|
|
478
|
+
|
|
479
|
+
**Workflow:** agent-docs
|
|
480
|
+
**Phase:** analyze
|
|
481
|
+
**Agent:** orchestrator
|
|
482
|
+
`;
|
|
483
|
+
const sessionPath = join(TEST_DIR, '38-3-session.md');
|
|
484
|
+
writeFileSync(sessionPath, sessionContent);
|
|
485
|
+
const content = readFileSync(sessionPath, 'utf-8');
|
|
486
|
+
// Extract workflow using regex (same as workflow-status-check does)
|
|
487
|
+
const workflowMatch = content.match(/\*\*Workflow:\*\*\s*(\S+)/);
|
|
488
|
+
assert.ok(workflowMatch, 'Should be able to extract workflow from session');
|
|
489
|
+
assert.strictEqual(workflowMatch[1], 'agent-docs', 'Extracted workflow should match');
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
// =============================================================================
|
|
493
|
+
// Integration: End-to-end workflow routing from sprint YAML
|
|
494
|
+
// =============================================================================
|
|
495
|
+
describe('Integration: Sprint YAML → Workflow Routing', () => {
|
|
496
|
+
function findMonorepoRoot(startDir) {
|
|
497
|
+
let dir = startDir;
|
|
498
|
+
for (let i = 0; i < 10; i++) {
|
|
499
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
500
|
+
return dir;
|
|
501
|
+
}
|
|
502
|
+
const parent = dirname(dir);
|
|
503
|
+
if (parent === dir)
|
|
504
|
+
break;
|
|
505
|
+
dir = parent;
|
|
506
|
+
}
|
|
507
|
+
return null;
|
|
508
|
+
}
|
|
509
|
+
const monorepoRoot = findMonorepoRoot(__dirname);
|
|
510
|
+
const workflowsDir = monorepoRoot
|
|
511
|
+
? join(monorepoRoot, 'pennyfarthing-dist', 'workflows')
|
|
512
|
+
: null;
|
|
513
|
+
it('should route sprint story with workflow tag to correct workflow and agent', async () => {
|
|
514
|
+
if (!workflowsDir) {
|
|
515
|
+
console.log('Skipping: workflows directory not found');
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
// Simulate sprint YAML with different workflow tags
|
|
519
|
+
const sprintYaml = `
|
|
520
|
+
sprint:
|
|
521
|
+
number: 11
|
|
522
|
+
goal: "Test workflow routing"
|
|
523
|
+
epics:
|
|
524
|
+
- id: epic-38
|
|
525
|
+
title: "Agent File Modernization"
|
|
526
|
+
stories:
|
|
527
|
+
- id: "38-9"
|
|
528
|
+
title: "SM workflow routing from story tags"
|
|
529
|
+
points: 3
|
|
530
|
+
workflow: tdd
|
|
531
|
+
- id: "38-3"
|
|
532
|
+
title: "Modernize PM agent"
|
|
533
|
+
points: 2
|
|
534
|
+
workflow: agent-docs
|
|
535
|
+
- id: "38-1"
|
|
536
|
+
title: "Fix stale references"
|
|
537
|
+
points: 1
|
|
538
|
+
workflow: trivial
|
|
539
|
+
`;
|
|
540
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
541
|
+
// Test each story
|
|
542
|
+
const expectedRoutes = [
|
|
543
|
+
{ storyId: '38-9', workflow: 'tdd', agent: 'tea' },
|
|
544
|
+
{ storyId: '38-3', workflow: 'agent-docs', agent: 'orchestrator' },
|
|
545
|
+
{ storyId: '38-1', workflow: 'trivial', agent: 'dev' }
|
|
546
|
+
];
|
|
547
|
+
for (const expected of expectedRoutes) {
|
|
548
|
+
const story = getStoryFromSprintYaml(sprintYaml, expected.storyId);
|
|
549
|
+
assert.ok(story, `Story ${expected.storyId} should exist`);
|
|
550
|
+
const metadata = storyToMetadata(story);
|
|
551
|
+
const result = routeStoryToWorkflow(metadata, workflows);
|
|
552
|
+
assert.ok(result, `Story ${expected.storyId} should route`);
|
|
553
|
+
assert.strictEqual(result.workflow.name, expected.workflow, `Story ${expected.storyId} should route to ${expected.workflow}`);
|
|
554
|
+
const nextAgent = getFirstAgentAfterSetup(result.workflow);
|
|
555
|
+
assert.strictEqual(nextAgent, expected.agent, `Story ${expected.storyId} should hand off to ${expected.agent}`);
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
});
|
|
559
|
+
//# sourceMappingURL=story-workflow-routing.test.js.map
|