@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,607 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 31-3: Story-to-workflow Routing Engine
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for routing stories to workflows based on:
|
|
5
|
+
* - Explicit workflow tags (highest priority)
|
|
6
|
+
* - Trigger matching (tags, types, points)
|
|
7
|
+
* - Default fallback workflow
|
|
8
|
+
*
|
|
9
|
+
* The router (workflow-router.ts) will implement these functions to pass these tests.
|
|
10
|
+
*
|
|
11
|
+
* Acceptance Criteria:
|
|
12
|
+
* - AC1: Stories with workflow tag use specified workflow
|
|
13
|
+
* - AC2: Story type mapping to workflows configurable
|
|
14
|
+
* - AC3: Default workflow when no match
|
|
15
|
+
* - AC4: Routing decision logged for debugging
|
|
16
|
+
*
|
|
17
|
+
* Run with: npm test
|
|
18
|
+
*/
|
|
19
|
+
import { describe, it } from 'node:test';
|
|
20
|
+
import assert from 'node:assert';
|
|
21
|
+
import { dirname, join } from 'node:path';
|
|
22
|
+
import { fileURLToPath } from 'node:url';
|
|
23
|
+
import { existsSync } from 'node:fs';
|
|
24
|
+
// Import the router function
|
|
25
|
+
import { routeStoryToWorkflow } from './workflow-router.js';
|
|
26
|
+
// =============================================================================
|
|
27
|
+
// Test Fixtures - Workflow definitions for testing
|
|
28
|
+
// =============================================================================
|
|
29
|
+
/**
|
|
30
|
+
* Creates a minimal valid workflow for testing
|
|
31
|
+
*/
|
|
32
|
+
function createWorkflow(name, triggers) {
|
|
33
|
+
return {
|
|
34
|
+
name,
|
|
35
|
+
phases: [{ name: 'work', agent: 'dev' }],
|
|
36
|
+
triggers
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Standard test workflows
|
|
40
|
+
const tddWorkflow = createWorkflow('tdd', {
|
|
41
|
+
types: ['feature'],
|
|
42
|
+
default: true
|
|
43
|
+
});
|
|
44
|
+
const trivialWorkflow = createWorkflow('trivial', {
|
|
45
|
+
types: ['chore', 'fix'],
|
|
46
|
+
points: { max: 2 }
|
|
47
|
+
});
|
|
48
|
+
const docsWorkflow = createWorkflow('docs', {
|
|
49
|
+
types: ['docs'],
|
|
50
|
+
tags: ['documentation']
|
|
51
|
+
});
|
|
52
|
+
const debugWorkflow = createWorkflow('debug', {
|
|
53
|
+
tags: ['debug', 'investigation']
|
|
54
|
+
});
|
|
55
|
+
const pointsWorkflow = createWorkflow('complex', {
|
|
56
|
+
points: { min: 8 }
|
|
57
|
+
});
|
|
58
|
+
const midRangeWorkflow = createWorkflow('mid-range', {
|
|
59
|
+
points: { min: 3, max: 5 }
|
|
60
|
+
});
|
|
61
|
+
// =============================================================================
|
|
62
|
+
// AC1: Stories with workflow tag use specified workflow
|
|
63
|
+
// =============================================================================
|
|
64
|
+
describe('AC1: Explicit workflow tag routing', () => {
|
|
65
|
+
it('should route story with workflow:tdd tag to tdd workflow', () => {
|
|
66
|
+
const story = {
|
|
67
|
+
id: '31-3',
|
|
68
|
+
tags: ['workflow:tdd', 'feature']
|
|
69
|
+
};
|
|
70
|
+
const workflows = [tddWorkflow, trivialWorkflow, docsWorkflow];
|
|
71
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
72
|
+
assert.ok(result, 'Should return a result');
|
|
73
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should match tdd workflow');
|
|
74
|
+
assert.ok(result.reason.includes('tag'), 'Reason should mention tag match');
|
|
75
|
+
});
|
|
76
|
+
it('should route story with workflow:trivial tag to trivial workflow', () => {
|
|
77
|
+
const story = {
|
|
78
|
+
id: '31-3',
|
|
79
|
+
tags: ['workflow:trivial']
|
|
80
|
+
};
|
|
81
|
+
const workflows = [tddWorkflow, trivialWorkflow, docsWorkflow];
|
|
82
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
83
|
+
assert.ok(result, 'Should return a result');
|
|
84
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Should match trivial workflow');
|
|
85
|
+
});
|
|
86
|
+
it('should prioritize explicit tag over type match', () => {
|
|
87
|
+
// Story has type=feature (would match tdd) but explicit workflow:trivial tag
|
|
88
|
+
const story = {
|
|
89
|
+
id: '31-3',
|
|
90
|
+
type: 'feature',
|
|
91
|
+
tags: ['workflow:trivial']
|
|
92
|
+
};
|
|
93
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
94
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
95
|
+
assert.ok(result, 'Should return a result');
|
|
96
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Explicit tag should win over type');
|
|
97
|
+
});
|
|
98
|
+
it('should prioritize explicit tag over default workflow', () => {
|
|
99
|
+
const story = {
|
|
100
|
+
id: '31-3',
|
|
101
|
+
tags: ['workflow:docs']
|
|
102
|
+
};
|
|
103
|
+
const workflows = [tddWorkflow, docsWorkflow]; // tdd has default: true
|
|
104
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
105
|
+
assert.ok(result, 'Should return a result');
|
|
106
|
+
assert.strictEqual(result.workflow.name, 'docs', 'Explicit tag should win over default');
|
|
107
|
+
});
|
|
108
|
+
it('should return null if explicit tag references non-existent workflow', () => {
|
|
109
|
+
const story = {
|
|
110
|
+
id: '31-3',
|
|
111
|
+
tags: ['workflow:nonexistent']
|
|
112
|
+
};
|
|
113
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
114
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
115
|
+
// When explicit tag doesn't match, fall back to other rules
|
|
116
|
+
// If nothing matches, should return null or default
|
|
117
|
+
// This tests that we don't crash on bad tags
|
|
118
|
+
assert.ok(result === null || result.workflow.name === 'tdd', 'Should return null or fall back to default');
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
// =============================================================================
|
|
122
|
+
// AC2: Story type mapping to workflows configurable
|
|
123
|
+
// =============================================================================
|
|
124
|
+
describe('AC2: Type-based routing', () => {
|
|
125
|
+
it('should route feature type to workflow with types: [feature]', () => {
|
|
126
|
+
const story = {
|
|
127
|
+
id: '31-3',
|
|
128
|
+
type: 'feature'
|
|
129
|
+
};
|
|
130
|
+
const workflows = [tddWorkflow, trivialWorkflow, docsWorkflow];
|
|
131
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
132
|
+
assert.ok(result, 'Should return a result');
|
|
133
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should match tdd workflow');
|
|
134
|
+
assert.ok(result.reason.includes('type'), 'Reason should mention type match');
|
|
135
|
+
});
|
|
136
|
+
it('should route chore type to workflow with types: [chore, fix]', () => {
|
|
137
|
+
const story = {
|
|
138
|
+
id: '31-3',
|
|
139
|
+
type: 'chore',
|
|
140
|
+
points: 1
|
|
141
|
+
};
|
|
142
|
+
const workflows = [tddWorkflow, trivialWorkflow, docsWorkflow];
|
|
143
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
144
|
+
assert.ok(result, 'Should return a result');
|
|
145
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Should match trivial workflow');
|
|
146
|
+
});
|
|
147
|
+
it('should route docs type to docs workflow', () => {
|
|
148
|
+
const story = {
|
|
149
|
+
id: '31-3',
|
|
150
|
+
type: 'docs'
|
|
151
|
+
};
|
|
152
|
+
const workflows = [tddWorkflow, trivialWorkflow, docsWorkflow];
|
|
153
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
154
|
+
assert.ok(result, 'Should return a result');
|
|
155
|
+
assert.strictEqual(result.workflow.name, 'docs', 'Should match docs workflow');
|
|
156
|
+
});
|
|
157
|
+
it('should handle story with type not matching any workflow triggers', () => {
|
|
158
|
+
const story = {
|
|
159
|
+
id: '31-3',
|
|
160
|
+
type: 'unknown-type'
|
|
161
|
+
};
|
|
162
|
+
const noDefaultWorkflows = [trivialWorkflow, docsWorkflow]; // No default
|
|
163
|
+
const result = routeStoryToWorkflow(story, noDefaultWorkflows);
|
|
164
|
+
assert.strictEqual(result, null, 'Should return null when no match and no default');
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
// =============================================================================
|
|
168
|
+
// AC2 Continued: Tag-based routing (from triggers.tags, not workflow: prefix)
|
|
169
|
+
// =============================================================================
|
|
170
|
+
describe('AC2: Tag-based routing (trigger tags)', () => {
|
|
171
|
+
it('should route story with matching trigger tag', () => {
|
|
172
|
+
const story = {
|
|
173
|
+
id: '31-3',
|
|
174
|
+
tags: ['debug', 'urgent']
|
|
175
|
+
};
|
|
176
|
+
const workflows = [tddWorkflow, debugWorkflow];
|
|
177
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
178
|
+
assert.ok(result, 'Should return a result');
|
|
179
|
+
assert.strictEqual(result.workflow.name, 'debug', 'Should match debug workflow via tag');
|
|
180
|
+
});
|
|
181
|
+
it('should match if any story tag matches any workflow trigger tag', () => {
|
|
182
|
+
const story = {
|
|
183
|
+
id: '31-3',
|
|
184
|
+
tags: ['other', 'investigation'] // investigation matches debugWorkflow
|
|
185
|
+
};
|
|
186
|
+
const workflows = [tddWorkflow, debugWorkflow];
|
|
187
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
188
|
+
assert.ok(result, 'Should return a result');
|
|
189
|
+
assert.strictEqual(result.workflow.name, 'debug', 'Should match via investigation tag');
|
|
190
|
+
});
|
|
191
|
+
it('should match documentation tag for docs workflow', () => {
|
|
192
|
+
const story = {
|
|
193
|
+
id: '31-3',
|
|
194
|
+
tags: ['documentation']
|
|
195
|
+
};
|
|
196
|
+
const workflows = [tddWorkflow, docsWorkflow];
|
|
197
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
198
|
+
assert.ok(result, 'Should return a result');
|
|
199
|
+
assert.strictEqual(result.workflow.name, 'docs', 'Should match docs via tag');
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
// =============================================================================
|
|
203
|
+
// AC2 Continued: Points-based routing
|
|
204
|
+
// =============================================================================
|
|
205
|
+
describe('AC2: Points-based routing', () => {
|
|
206
|
+
it('should route low-point story to workflow with points.max', () => {
|
|
207
|
+
const story = {
|
|
208
|
+
id: '31-3',
|
|
209
|
+
type: 'chore',
|
|
210
|
+
points: 1
|
|
211
|
+
};
|
|
212
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
213
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
214
|
+
assert.ok(result, 'Should return a result');
|
|
215
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Should match trivial (max: 2)');
|
|
216
|
+
});
|
|
217
|
+
it('should route high-point story to workflow with points.min', () => {
|
|
218
|
+
const story = {
|
|
219
|
+
id: '31-3',
|
|
220
|
+
points: 13
|
|
221
|
+
};
|
|
222
|
+
const workflows = [tddWorkflow, pointsWorkflow];
|
|
223
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
224
|
+
assert.ok(result, 'Should return a result');
|
|
225
|
+
assert.strictEqual(result.workflow.name, 'complex', 'Should match complex (min: 8)');
|
|
226
|
+
});
|
|
227
|
+
it('should route mid-point story to workflow with points range', () => {
|
|
228
|
+
const story = {
|
|
229
|
+
id: '31-3',
|
|
230
|
+
points: 4
|
|
231
|
+
};
|
|
232
|
+
const workflows = [tddWorkflow, midRangeWorkflow, pointsWorkflow];
|
|
233
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
234
|
+
assert.ok(result, 'Should return a result');
|
|
235
|
+
assert.strictEqual(result.workflow.name, 'mid-range', 'Should match mid-range (3-5)');
|
|
236
|
+
});
|
|
237
|
+
it('should not match points.max if story points exceed it', () => {
|
|
238
|
+
const story = {
|
|
239
|
+
id: '31-3',
|
|
240
|
+
type: 'chore',
|
|
241
|
+
points: 5 // exceeds trivialWorkflow max: 2
|
|
242
|
+
};
|
|
243
|
+
const workflows = [trivialWorkflow]; // Only trivial, no default
|
|
244
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
245
|
+
assert.strictEqual(result, null, 'Should not match trivial when points > max');
|
|
246
|
+
});
|
|
247
|
+
it('should not match points.min if story points below it', () => {
|
|
248
|
+
const story = {
|
|
249
|
+
id: '31-3',
|
|
250
|
+
points: 3 // below pointsWorkflow min: 8
|
|
251
|
+
};
|
|
252
|
+
const workflows = [pointsWorkflow]; // Only complex, no default
|
|
253
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
254
|
+
assert.strictEqual(result, null, 'Should not match complex when points < min');
|
|
255
|
+
});
|
|
256
|
+
it('should handle boundary case: points exactly at min', () => {
|
|
257
|
+
const story = {
|
|
258
|
+
id: '31-3',
|
|
259
|
+
points: 8 // exactly at pointsWorkflow min
|
|
260
|
+
};
|
|
261
|
+
const workflows = [pointsWorkflow];
|
|
262
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
263
|
+
assert.ok(result, 'Should return a result');
|
|
264
|
+
assert.strictEqual(result.workflow.name, 'complex', 'Should match at exact min boundary');
|
|
265
|
+
});
|
|
266
|
+
it('should handle boundary case: points exactly at max', () => {
|
|
267
|
+
const story = {
|
|
268
|
+
id: '31-3',
|
|
269
|
+
type: 'chore',
|
|
270
|
+
points: 2 // exactly at trivialWorkflow max
|
|
271
|
+
};
|
|
272
|
+
const workflows = [trivialWorkflow];
|
|
273
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
274
|
+
assert.ok(result, 'Should return a result');
|
|
275
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'Should match at exact max boundary');
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
// =============================================================================
|
|
279
|
+
// AC3: Default workflow when no match
|
|
280
|
+
// =============================================================================
|
|
281
|
+
describe('AC3: Default workflow fallback', () => {
|
|
282
|
+
it('should use default workflow when no other triggers match', () => {
|
|
283
|
+
const story = {
|
|
284
|
+
id: '31-3',
|
|
285
|
+
type: 'random-type'
|
|
286
|
+
};
|
|
287
|
+
const workflows = [tddWorkflow, trivialWorkflow]; // tdd has default: true
|
|
288
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
289
|
+
assert.ok(result, 'Should return a result');
|
|
290
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should fall back to default');
|
|
291
|
+
assert.ok(result.reason.includes('default'), 'Reason should mention default');
|
|
292
|
+
});
|
|
293
|
+
it('should use default workflow for story with no metadata', () => {
|
|
294
|
+
const story = {
|
|
295
|
+
id: '31-3'
|
|
296
|
+
// No type, tags, or points
|
|
297
|
+
};
|
|
298
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
299
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
300
|
+
assert.ok(result, 'Should return a result');
|
|
301
|
+
assert.strictEqual(result.workflow.name, 'tdd', 'Should use default for bare story');
|
|
302
|
+
});
|
|
303
|
+
it('should return null when no workflows loaded', () => {
|
|
304
|
+
const story = {
|
|
305
|
+
id: '31-3',
|
|
306
|
+
type: 'feature'
|
|
307
|
+
};
|
|
308
|
+
const workflows = [];
|
|
309
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
310
|
+
assert.strictEqual(result, null, 'Should return null for empty workflow list');
|
|
311
|
+
});
|
|
312
|
+
it('should return null when no match and no default workflow', () => {
|
|
313
|
+
const story = {
|
|
314
|
+
id: '31-3',
|
|
315
|
+
type: 'feature'
|
|
316
|
+
};
|
|
317
|
+
const noDefaultWorkflows = [docsWorkflow, debugWorkflow]; // Neither has default
|
|
318
|
+
const result = routeStoryToWorkflow(story, noDefaultWorkflows);
|
|
319
|
+
assert.strictEqual(result, null, 'Should return null when no match and no default');
|
|
320
|
+
});
|
|
321
|
+
it('should handle multiple workflows with default: true (first wins)', () => {
|
|
322
|
+
const defaultWorkflow1 = createWorkflow('default1', { default: true });
|
|
323
|
+
const defaultWorkflow2 = createWorkflow('default2', { default: true });
|
|
324
|
+
const story = { id: '31-3' };
|
|
325
|
+
const workflows = [defaultWorkflow1, defaultWorkflow2];
|
|
326
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
327
|
+
assert.ok(result, 'Should return a result');
|
|
328
|
+
assert.strictEqual(result.workflow.name, 'default1', 'First default should win');
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
// =============================================================================
|
|
332
|
+
// AC4: Routing decision logged for debugging
|
|
333
|
+
// =============================================================================
|
|
334
|
+
describe('AC4: Routing reason for debugging', () => {
|
|
335
|
+
it('should include reason mentioning explicit tag for tag match', () => {
|
|
336
|
+
const story = {
|
|
337
|
+
id: '31-3',
|
|
338
|
+
tags: ['workflow:trivial']
|
|
339
|
+
};
|
|
340
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
341
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
342
|
+
assert.ok(result, 'Should return a result');
|
|
343
|
+
assert.ok(result.reason, 'Should have a reason');
|
|
344
|
+
assert.ok(result.reason.toLowerCase().includes('tag') ||
|
|
345
|
+
result.reason.toLowerCase().includes('workflow:trivial'), `Reason should mention tag match: "${result.reason}"`);
|
|
346
|
+
});
|
|
347
|
+
it('should include reason mentioning type for type match', () => {
|
|
348
|
+
const story = {
|
|
349
|
+
id: '31-3',
|
|
350
|
+
type: 'feature'
|
|
351
|
+
};
|
|
352
|
+
const workflows = [tddWorkflow];
|
|
353
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
354
|
+
assert.ok(result, 'Should return a result');
|
|
355
|
+
assert.ok(result.reason, 'Should have a reason');
|
|
356
|
+
assert.ok(result.reason.toLowerCase().includes('type') ||
|
|
357
|
+
result.reason.toLowerCase().includes('feature'), `Reason should mention type match: "${result.reason}"`);
|
|
358
|
+
});
|
|
359
|
+
it('should include reason mentioning points for points match', () => {
|
|
360
|
+
const story = {
|
|
361
|
+
id: '31-3',
|
|
362
|
+
points: 10
|
|
363
|
+
};
|
|
364
|
+
const workflows = [pointsWorkflow];
|
|
365
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
366
|
+
assert.ok(result, 'Should return a result');
|
|
367
|
+
assert.ok(result.reason, 'Should have a reason');
|
|
368
|
+
assert.ok(result.reason.toLowerCase().includes('point'), `Reason should mention points match: "${result.reason}"`);
|
|
369
|
+
});
|
|
370
|
+
it('should include reason mentioning default for default fallback', () => {
|
|
371
|
+
const story = {
|
|
372
|
+
id: '31-3'
|
|
373
|
+
};
|
|
374
|
+
const workflows = [tddWorkflow];
|
|
375
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
376
|
+
assert.ok(result, 'Should return a result');
|
|
377
|
+
assert.ok(result.reason, 'Should have a reason');
|
|
378
|
+
assert.ok(result.reason.toLowerCase().includes('default'), `Reason should mention default: "${result.reason}"`);
|
|
379
|
+
});
|
|
380
|
+
it('should include workflow name in reason', () => {
|
|
381
|
+
const story = {
|
|
382
|
+
id: '31-3',
|
|
383
|
+
type: 'feature'
|
|
384
|
+
};
|
|
385
|
+
const workflows = [tddWorkflow];
|
|
386
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
387
|
+
assert.ok(result, 'Should return a result');
|
|
388
|
+
assert.ok(result.reason.includes('tdd'), `Reason should include workflow name: "${result.reason}"`);
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
// =============================================================================
|
|
392
|
+
// Priority Algorithm Tests
|
|
393
|
+
// =============================================================================
|
|
394
|
+
describe('Priority Algorithm', () => {
|
|
395
|
+
it('priority: explicit tag > trigger tag > type > points > default', () => {
|
|
396
|
+
// Workflow that matches by type, tag, AND has default
|
|
397
|
+
const multiMatchWorkflow = createWorkflow('multi', {
|
|
398
|
+
tags: ['special'],
|
|
399
|
+
types: ['feature'],
|
|
400
|
+
default: true
|
|
401
|
+
});
|
|
402
|
+
// Workflow that only matches by explicit tag
|
|
403
|
+
const explicitOnlyWorkflow = createWorkflow('explicit-only', {});
|
|
404
|
+
const story = {
|
|
405
|
+
id: '31-3',
|
|
406
|
+
type: 'feature',
|
|
407
|
+
tags: ['workflow:explicit-only', 'special'],
|
|
408
|
+
points: 3
|
|
409
|
+
};
|
|
410
|
+
const workflows = [multiMatchWorkflow, explicitOnlyWorkflow];
|
|
411
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
412
|
+
assert.ok(result, 'Should return a result');
|
|
413
|
+
assert.strictEqual(result.workflow.name, 'explicit-only', 'Explicit workflow: tag should have highest priority');
|
|
414
|
+
});
|
|
415
|
+
it('priority: trigger tag should beat type match', () => {
|
|
416
|
+
const tagWorkflow = createWorkflow('tag-match', {
|
|
417
|
+
tags: ['priority-test']
|
|
418
|
+
});
|
|
419
|
+
const typeWorkflow = createWorkflow('type-match', {
|
|
420
|
+
types: ['feature']
|
|
421
|
+
});
|
|
422
|
+
const story = {
|
|
423
|
+
id: '31-3',
|
|
424
|
+
type: 'feature',
|
|
425
|
+
tags: ['priority-test']
|
|
426
|
+
};
|
|
427
|
+
const workflows = [typeWorkflow, tagWorkflow];
|
|
428
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
429
|
+
assert.ok(result, 'Should return a result');
|
|
430
|
+
assert.strictEqual(result.workflow.name, 'tag-match', 'Tag match should beat type match');
|
|
431
|
+
});
|
|
432
|
+
it('priority: type match should beat points match', () => {
|
|
433
|
+
const typeWorkflow = createWorkflow('type-match', {
|
|
434
|
+
types: ['feature']
|
|
435
|
+
});
|
|
436
|
+
const pointsOnlyWorkflow = createWorkflow('points-match', {
|
|
437
|
+
points: { min: 1, max: 10 }
|
|
438
|
+
});
|
|
439
|
+
const story = {
|
|
440
|
+
id: '31-3',
|
|
441
|
+
type: 'feature',
|
|
442
|
+
points: 5
|
|
443
|
+
};
|
|
444
|
+
const workflows = [pointsOnlyWorkflow, typeWorkflow];
|
|
445
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
446
|
+
assert.ok(result, 'Should return a result');
|
|
447
|
+
assert.strictEqual(result.workflow.name, 'type-match', 'Type match should beat points-only match');
|
|
448
|
+
});
|
|
449
|
+
it('priority: any specific match should beat default', () => {
|
|
450
|
+
const defaultWorkflow = createWorkflow('default-wf', {
|
|
451
|
+
default: true
|
|
452
|
+
});
|
|
453
|
+
const pointsWorkflow = createWorkflow('points-wf', {
|
|
454
|
+
points: { min: 3 }
|
|
455
|
+
});
|
|
456
|
+
const story = {
|
|
457
|
+
id: '31-3',
|
|
458
|
+
points: 5
|
|
459
|
+
};
|
|
460
|
+
const workflows = [defaultWorkflow, pointsWorkflow];
|
|
461
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
462
|
+
assert.ok(result, 'Should return a result');
|
|
463
|
+
assert.strictEqual(result.workflow.name, 'points-wf', 'Points match should beat default');
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
// =============================================================================
|
|
467
|
+
// Edge Cases
|
|
468
|
+
// =============================================================================
|
|
469
|
+
describe('Edge Cases', () => {
|
|
470
|
+
it('should handle story with empty tags array', () => {
|
|
471
|
+
const story = {
|
|
472
|
+
id: '31-3',
|
|
473
|
+
tags: []
|
|
474
|
+
};
|
|
475
|
+
const workflows = [tddWorkflow];
|
|
476
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
477
|
+
assert.ok(result, 'Should return default workflow');
|
|
478
|
+
assert.strictEqual(result.workflow.name, 'tdd');
|
|
479
|
+
});
|
|
480
|
+
it('should handle workflow with empty triggers object', () => {
|
|
481
|
+
const emptyTriggersWorkflow = createWorkflow('empty-triggers', {});
|
|
482
|
+
const story = {
|
|
483
|
+
id: '31-3',
|
|
484
|
+
type: 'feature'
|
|
485
|
+
};
|
|
486
|
+
const workflows = [emptyTriggersWorkflow];
|
|
487
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
488
|
+
// Empty triggers shouldn't match anything specific
|
|
489
|
+
assert.strictEqual(result, null, 'Empty triggers should not match');
|
|
490
|
+
});
|
|
491
|
+
it('should handle workflow with undefined triggers', () => {
|
|
492
|
+
const noTriggersWorkflow = createWorkflow('no-triggers');
|
|
493
|
+
const story = {
|
|
494
|
+
id: '31-3',
|
|
495
|
+
type: 'feature'
|
|
496
|
+
};
|
|
497
|
+
const workflows = [noTriggersWorkflow];
|
|
498
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
499
|
+
assert.strictEqual(result, null, 'Undefined triggers should not match');
|
|
500
|
+
});
|
|
501
|
+
it('should handle story with undefined points for points-based workflow', () => {
|
|
502
|
+
const story = {
|
|
503
|
+
id: '31-3'
|
|
504
|
+
// No points defined
|
|
505
|
+
};
|
|
506
|
+
const workflows = [pointsWorkflow]; // Requires min: 8
|
|
507
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
508
|
+
assert.strictEqual(result, null, 'Should not match points trigger when story has no points');
|
|
509
|
+
});
|
|
510
|
+
it('should handle story with zero points', () => {
|
|
511
|
+
const story = {
|
|
512
|
+
id: '31-3',
|
|
513
|
+
type: 'chore',
|
|
514
|
+
points: 0
|
|
515
|
+
};
|
|
516
|
+
const workflows = [trivialWorkflow]; // max: 2
|
|
517
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
518
|
+
assert.ok(result, 'Should match (0 <= 2)');
|
|
519
|
+
assert.strictEqual(result.workflow.name, 'trivial');
|
|
520
|
+
});
|
|
521
|
+
it('should be case-sensitive for workflow names in tags', () => {
|
|
522
|
+
const story = {
|
|
523
|
+
id: '31-3',
|
|
524
|
+
tags: ['workflow:TDD'] // Uppercase
|
|
525
|
+
};
|
|
526
|
+
const workflows = [tddWorkflow]; // name is 'tdd' lowercase
|
|
527
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
528
|
+
// Should NOT match because TDD !== tdd
|
|
529
|
+
assert.ok(result === null || result.reason.includes('default'), 'Should not match case-mismatched workflow name (or fall to default)');
|
|
530
|
+
});
|
|
531
|
+
it('should handle multiple workflow: tags (first wins)', () => {
|
|
532
|
+
const story = {
|
|
533
|
+
id: '31-3',
|
|
534
|
+
tags: ['workflow:trivial', 'workflow:tdd']
|
|
535
|
+
};
|
|
536
|
+
const workflows = [tddWorkflow, trivialWorkflow];
|
|
537
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
538
|
+
assert.ok(result, 'Should return a result');
|
|
539
|
+
assert.strictEqual(result.workflow.name, 'trivial', 'First workflow: tag should win');
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
// =============================================================================
|
|
543
|
+
// Integration Tests with Real Workflows
|
|
544
|
+
// =============================================================================
|
|
545
|
+
describe('Integration: Real workflow files', () => {
|
|
546
|
+
// Helper to find monorepo root
|
|
547
|
+
function findMonorepoRoot(startDir) {
|
|
548
|
+
let dir = startDir;
|
|
549
|
+
for (let i = 0; i < 10; i++) {
|
|
550
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
551
|
+
return dir;
|
|
552
|
+
}
|
|
553
|
+
const parent = dirname(dir);
|
|
554
|
+
if (parent === dir)
|
|
555
|
+
break;
|
|
556
|
+
dir = parent;
|
|
557
|
+
}
|
|
558
|
+
return null;
|
|
559
|
+
}
|
|
560
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
561
|
+
const monorepoRoot = findMonorepoRoot(__dirname);
|
|
562
|
+
it('should route feature story to tdd workflow from real files', async () => {
|
|
563
|
+
if (!monorepoRoot) {
|
|
564
|
+
console.log('Skipping: monorepo root not found');
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
// Import loader to get real workflows
|
|
568
|
+
const { loadWorkflowsFromDir } = await import('./workflow-loader.js');
|
|
569
|
+
const workflowsDir = join(monorepoRoot, 'pennyfarthing-dist', 'workflows');
|
|
570
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
571
|
+
if (workflows.length === 0) {
|
|
572
|
+
console.log('Skipping: no workflows found');
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
const story = {
|
|
576
|
+
id: '31-3',
|
|
577
|
+
type: 'feature',
|
|
578
|
+
points: 3
|
|
579
|
+
};
|
|
580
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
581
|
+
assert.ok(result, 'Should route to a workflow');
|
|
582
|
+
// tdd.yaml should be the default for features
|
|
583
|
+
console.log(`Routed to: ${result.workflow.name} (${result.reason})`);
|
|
584
|
+
});
|
|
585
|
+
it('should route chore story to trivial workflow from real files', async () => {
|
|
586
|
+
if (!monorepoRoot) {
|
|
587
|
+
console.log('Skipping: monorepo root not found');
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
const { loadWorkflowsFromDir } = await import('./workflow-loader.js');
|
|
591
|
+
const workflowsDir = join(monorepoRoot, 'pennyfarthing-dist', 'workflows');
|
|
592
|
+
const { workflows } = loadWorkflowsFromDir(workflowsDir);
|
|
593
|
+
if (workflows.length === 0) {
|
|
594
|
+
console.log('Skipping: no workflows found');
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
const story = {
|
|
598
|
+
id: '31-3',
|
|
599
|
+
type: 'chore',
|
|
600
|
+
points: 1
|
|
601
|
+
};
|
|
602
|
+
const result = routeStoryToWorkflow(story, workflows);
|
|
603
|
+
assert.ok(result, 'Should route to a workflow');
|
|
604
|
+
console.log(`Routed to: ${result.workflow.name} (${result.reason})`);
|
|
605
|
+
});
|
|
606
|
+
});
|
|
607
|
+
//# sourceMappingURL=workflow-router.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-router.test.js","sourceRoot":"","sources":["../../src/workflow/workflow-router.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,6BAA6B;AAC7B,OAAO,EACL,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAK9B,gFAAgF;AAChF,mDAAmD;AACnD,gFAAgF;AAEhF;;GAEG;AACH,SAAS,cAAc,CACrB,IAAY,EACZ,QAAyC;IAEzC,OAAO;QACL,IAAI;QACJ,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACxC,QAAQ;KACT,CAAC;AACJ,CAAC;AAED,0BAA0B;AAC1B,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,EAAE;IACxC,KAAK,EAAE,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