@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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AO,EAAE,IAAI,CAAC,CAAC;QACrC,MAAM,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAE1C,uBAAuB;QACvB,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACtC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;gBACV,QAAQ;gBACR,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 31-2: Workflow Loader and Validator
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for loading workflow YAML files from disk.
|
|
5
|
+
* The loader (workflow-loader.ts) will implement these functions to pass these tests.
|
|
6
|
+
*
|
|
7
|
+
* Test categories:
|
|
8
|
+
* 1. loadWorkflowFile() - Single file loading
|
|
9
|
+
* 2. loadWorkflowsFromDir() - Directory traversal
|
|
10
|
+
* 3. Integration - Real workflow files from pennyfarthing-dist/
|
|
11
|
+
*
|
|
12
|
+
* Run with: npm test
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=workflow-loader.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-loader.test.d.ts","sourceRoot":"","sources":["../../src/workflow/workflow-loader.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 31-2: Workflow Loader and Validator
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for loading workflow YAML files from disk.
|
|
5
|
+
* The loader (workflow-loader.ts) will implement these functions to pass these tests.
|
|
6
|
+
*
|
|
7
|
+
* Test categories:
|
|
8
|
+
* 1. loadWorkflowFile() - Single file loading
|
|
9
|
+
* 2. loadWorkflowsFromDir() - Directory traversal
|
|
10
|
+
* 3. Integration - Real workflow files from pennyfarthing-dist/
|
|
11
|
+
*
|
|
12
|
+
* Run with: npm test
|
|
13
|
+
*/
|
|
14
|
+
import { describe, it, beforeEach, afterEach } from 'node:test';
|
|
15
|
+
import assert from 'node:assert';
|
|
16
|
+
import { mkdirSync, writeFileSync, rmSync, existsSync } from 'node:fs';
|
|
17
|
+
import { join, dirname } from 'node:path';
|
|
18
|
+
import { fileURLToPath } from 'node:url';
|
|
19
|
+
// Import the loader functions
|
|
20
|
+
import { loadWorkflowFile, loadWorkflowsFromDir } from './workflow-loader.js';
|
|
21
|
+
// Get directory for test fixtures
|
|
22
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
23
|
+
const TEST_DIR = join(__dirname, '__test_workflows__');
|
|
24
|
+
// Helper to find monorepo root for integration tests
|
|
25
|
+
function findMonorepoRoot(startDir) {
|
|
26
|
+
let dir = startDir;
|
|
27
|
+
for (let i = 0; i < 10; i++) {
|
|
28
|
+
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
29
|
+
return dir;
|
|
30
|
+
}
|
|
31
|
+
const parent = dirname(dir);
|
|
32
|
+
if (parent === dir)
|
|
33
|
+
break;
|
|
34
|
+
dir = parent;
|
|
35
|
+
}
|
|
36
|
+
throw new Error(`Could not find monorepo root from ${startDir}`);
|
|
37
|
+
}
|
|
38
|
+
describe('Workflow Loader (31-2)', () => {
|
|
39
|
+
// Setup/teardown for test fixtures
|
|
40
|
+
beforeEach(() => {
|
|
41
|
+
if (existsSync(TEST_DIR)) {
|
|
42
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
43
|
+
}
|
|
44
|
+
mkdirSync(TEST_DIR, { recursive: true });
|
|
45
|
+
});
|
|
46
|
+
afterEach(() => {
|
|
47
|
+
if (existsSync(TEST_DIR)) {
|
|
48
|
+
rmSync(TEST_DIR, { recursive: true });
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
describe('loadWorkflowFile() - Single file loading', () => {
|
|
52
|
+
it('should load a valid workflow file and return workflow object', () => {
|
|
53
|
+
// AC1: Loads YAML files
|
|
54
|
+
// AC4: Returns structured workflow objects
|
|
55
|
+
const validYaml = `
|
|
56
|
+
workflow:
|
|
57
|
+
name: test-workflow
|
|
58
|
+
phases:
|
|
59
|
+
- name: work
|
|
60
|
+
agent: dev
|
|
61
|
+
`;
|
|
62
|
+
const filePath = join(TEST_DIR, 'valid.yaml');
|
|
63
|
+
writeFileSync(filePath, validYaml);
|
|
64
|
+
const result = loadWorkflowFile(filePath);
|
|
65
|
+
assert.strictEqual(result.success, true, 'Should succeed for valid workflow');
|
|
66
|
+
assert.strictEqual(result.filePath, filePath, 'Should include file path');
|
|
67
|
+
assert.ok(result.workflow, 'Should return workflow object');
|
|
68
|
+
assert.strictEqual(result.workflow?.name, 'test-workflow');
|
|
69
|
+
assert.strictEqual(result.workflow?.phases.length, 1);
|
|
70
|
+
assert.strictEqual(result.errors, undefined, 'Should not have errors');
|
|
71
|
+
});
|
|
72
|
+
it('should return error for file not found', () => {
|
|
73
|
+
// AC3: Clear error messages for invalid workflows
|
|
74
|
+
const nonExistentPath = join(TEST_DIR, 'does-not-exist.yaml');
|
|
75
|
+
const result = loadWorkflowFile(nonExistentPath);
|
|
76
|
+
assert.strictEqual(result.success, false, 'Should fail for missing file');
|
|
77
|
+
assert.strictEqual(result.filePath, nonExistentPath, 'Should include file path');
|
|
78
|
+
assert.ok(result.errors, 'Should have errors');
|
|
79
|
+
assert.ok(result.errors.length > 0, 'Should have at least one error');
|
|
80
|
+
assert.ok(result.errors[0].message.toLowerCase().includes('not found') ||
|
|
81
|
+
result.errors[0].message.toLowerCase().includes('enoent'), 'Error should indicate file not found');
|
|
82
|
+
});
|
|
83
|
+
it('should return error for malformed YAML with line info', () => {
|
|
84
|
+
// AC3: Clear error messages
|
|
85
|
+
const malformedYaml = `
|
|
86
|
+
workflow:
|
|
87
|
+
name: bad-yaml
|
|
88
|
+
phases:
|
|
89
|
+
- name: work
|
|
90
|
+
agent: dev
|
|
91
|
+
invalid indentation here
|
|
92
|
+
`;
|
|
93
|
+
const filePath = join(TEST_DIR, 'malformed.yaml');
|
|
94
|
+
writeFileSync(filePath, malformedYaml);
|
|
95
|
+
const result = loadWorkflowFile(filePath);
|
|
96
|
+
assert.strictEqual(result.success, false, 'Should fail for malformed YAML');
|
|
97
|
+
assert.ok(result.errors, 'Should have errors');
|
|
98
|
+
assert.ok(result.errors.length > 0, 'Should have at least one error');
|
|
99
|
+
// YAML parse errors should include line info when available
|
|
100
|
+
const errorMessage = result.errors[0].message;
|
|
101
|
+
assert.ok(errorMessage.length > 0, 'Should have error message');
|
|
102
|
+
});
|
|
103
|
+
it('should return validation errors for valid YAML but invalid schema', () => {
|
|
104
|
+
// AC2: Validates each against schema
|
|
105
|
+
// AC3: Clear error messages with field paths
|
|
106
|
+
const invalidSchemaYaml = `
|
|
107
|
+
workflow:
|
|
108
|
+
name: missing-phases
|
|
109
|
+
`;
|
|
110
|
+
const filePath = join(TEST_DIR, 'invalid-schema.yaml');
|
|
111
|
+
writeFileSync(filePath, invalidSchemaYaml);
|
|
112
|
+
const result = loadWorkflowFile(filePath);
|
|
113
|
+
assert.strictEqual(result.success, false, 'Should fail for invalid schema');
|
|
114
|
+
assert.ok(result.errors, 'Should have errors');
|
|
115
|
+
assert.ok(result.errors.some(e => e.field?.includes('phases')), 'Should report missing phases field');
|
|
116
|
+
});
|
|
117
|
+
it('should return validation errors for phase without agent', () => {
|
|
118
|
+
// AC2: Validates against schema (uses existing validateWorkflow)
|
|
119
|
+
const missingAgentYaml = `
|
|
120
|
+
workflow:
|
|
121
|
+
name: bad-phase
|
|
122
|
+
phases:
|
|
123
|
+
- name: incomplete
|
|
124
|
+
`;
|
|
125
|
+
const filePath = join(TEST_DIR, 'missing-agent.yaml');
|
|
126
|
+
writeFileSync(filePath, missingAgentYaml);
|
|
127
|
+
const result = loadWorkflowFile(filePath);
|
|
128
|
+
assert.strictEqual(result.success, false, 'Should fail for phase without agent');
|
|
129
|
+
assert.ok(result.errors, 'Should have errors');
|
|
130
|
+
assert.ok(result.errors.some(e => e.field?.includes('agent')), 'Should report missing agent');
|
|
131
|
+
});
|
|
132
|
+
it('should handle .yml extension', () => {
|
|
133
|
+
// AC1: Loads YAML files (both .yaml and .yml)
|
|
134
|
+
const validYaml = `
|
|
135
|
+
workflow:
|
|
136
|
+
name: yml-extension
|
|
137
|
+
phases:
|
|
138
|
+
- name: work
|
|
139
|
+
agent: dev
|
|
140
|
+
`;
|
|
141
|
+
const filePath = join(TEST_DIR, 'valid.yml');
|
|
142
|
+
writeFileSync(filePath, validYaml);
|
|
143
|
+
const result = loadWorkflowFile(filePath);
|
|
144
|
+
assert.strictEqual(result.success, true, 'Should handle .yml extension');
|
|
145
|
+
assert.strictEqual(result.workflow?.name, 'yml-extension');
|
|
146
|
+
});
|
|
147
|
+
it('should preserve all workflow fields', () => {
|
|
148
|
+
// AC4: Returns structured workflow objects
|
|
149
|
+
const fullYaml = `
|
|
150
|
+
workflow:
|
|
151
|
+
name: full-workflow
|
|
152
|
+
description: A complete workflow
|
|
153
|
+
version: "1.0.0"
|
|
154
|
+
phases:
|
|
155
|
+
- name: setup
|
|
156
|
+
agent: sm
|
|
157
|
+
output: [session]
|
|
158
|
+
- name: work
|
|
159
|
+
agent: dev
|
|
160
|
+
input: [session]
|
|
161
|
+
gate:
|
|
162
|
+
type: tests_pass
|
|
163
|
+
condition: All tests green
|
|
164
|
+
triggers:
|
|
165
|
+
types: [feature]
|
|
166
|
+
points:
|
|
167
|
+
min: 3
|
|
168
|
+
default: true
|
|
169
|
+
`;
|
|
170
|
+
const filePath = join(TEST_DIR, 'full.yaml');
|
|
171
|
+
writeFileSync(filePath, fullYaml);
|
|
172
|
+
const result = loadWorkflowFile(filePath);
|
|
173
|
+
assert.strictEqual(result.success, true);
|
|
174
|
+
assert.strictEqual(result.workflow?.description, 'A complete workflow');
|
|
175
|
+
assert.strictEqual(result.workflow?.version, '1.0.0');
|
|
176
|
+
assert.strictEqual(result.workflow?.phases.length, 2);
|
|
177
|
+
assert.deepStrictEqual(result.workflow?.phases[0].output, ['session']);
|
|
178
|
+
assert.strictEqual(result.workflow?.phases[1].gate?.type, 'tests_pass');
|
|
179
|
+
assert.strictEqual(result.workflow?.triggers?.default, true);
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
describe('loadWorkflowsFromDir() - Directory loading', () => {
|
|
183
|
+
it('should return empty results for empty directory', () => {
|
|
184
|
+
// Edge case: empty directory
|
|
185
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
186
|
+
assert.ok(Array.isArray(result.workflows), 'Should have workflows array');
|
|
187
|
+
assert.strictEqual(result.workflows.length, 0, 'Should be empty');
|
|
188
|
+
assert.ok(Array.isArray(result.errors), 'Should have errors array');
|
|
189
|
+
assert.strictEqual(result.errors.length, 0, 'Should have no errors');
|
|
190
|
+
});
|
|
191
|
+
it('should return empty results for non-existent directory', () => {
|
|
192
|
+
// AC3: Clear error handling
|
|
193
|
+
const nonExistentDir = join(TEST_DIR, 'does-not-exist');
|
|
194
|
+
const result = loadWorkflowsFromDir(nonExistentDir);
|
|
195
|
+
assert.strictEqual(result.workflows.length, 0, 'Should have no workflows');
|
|
196
|
+
// Either empty errors or an error about directory not found
|
|
197
|
+
// Implementation choice: return empty or include directory error
|
|
198
|
+
});
|
|
199
|
+
it('should load all valid workflows from directory', () => {
|
|
200
|
+
// AC1: Loads all YAML files from directory
|
|
201
|
+
// AC4: Returns structured workflow objects
|
|
202
|
+
writeFileSync(join(TEST_DIR, 'first.yaml'), `
|
|
203
|
+
workflow:
|
|
204
|
+
name: first
|
|
205
|
+
phases:
|
|
206
|
+
- name: work
|
|
207
|
+
agent: dev
|
|
208
|
+
`);
|
|
209
|
+
writeFileSync(join(TEST_DIR, 'second.yaml'), `
|
|
210
|
+
workflow:
|
|
211
|
+
name: second
|
|
212
|
+
phases:
|
|
213
|
+
- name: work
|
|
214
|
+
agent: tea
|
|
215
|
+
`);
|
|
216
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
217
|
+
assert.strictEqual(result.workflows.length, 2, 'Should load both workflows');
|
|
218
|
+
const names = result.workflows.map(w => w.name).sort();
|
|
219
|
+
assert.deepStrictEqual(names, ['first', 'second']);
|
|
220
|
+
assert.strictEqual(result.errors.length, 0, 'Should have no errors');
|
|
221
|
+
});
|
|
222
|
+
it('should return partial results with errors for mixed directory', () => {
|
|
223
|
+
// AC3: Clear error messages for invalid workflows
|
|
224
|
+
writeFileSync(join(TEST_DIR, 'valid.yaml'), `
|
|
225
|
+
workflow:
|
|
226
|
+
name: valid-one
|
|
227
|
+
phases:
|
|
228
|
+
- name: work
|
|
229
|
+
agent: dev
|
|
230
|
+
`);
|
|
231
|
+
writeFileSync(join(TEST_DIR, 'invalid.yaml'), `
|
|
232
|
+
workflow:
|
|
233
|
+
name: missing-phases
|
|
234
|
+
`);
|
|
235
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
236
|
+
assert.strictEqual(result.workflows.length, 1, 'Should load valid workflow');
|
|
237
|
+
assert.strictEqual(result.workflows[0].name, 'valid-one');
|
|
238
|
+
assert.strictEqual(result.errors.length, 1, 'Should have one error');
|
|
239
|
+
assert.ok(result.errors[0].filePath.includes('invalid.yaml'), 'Error should reference invalid file');
|
|
240
|
+
});
|
|
241
|
+
it('should ignore non-YAML files', () => {
|
|
242
|
+
// AC1: Only loads YAML files
|
|
243
|
+
writeFileSync(join(TEST_DIR, 'workflow.yaml'), `
|
|
244
|
+
workflow:
|
|
245
|
+
name: yaml-file
|
|
246
|
+
phases:
|
|
247
|
+
- name: work
|
|
248
|
+
agent: dev
|
|
249
|
+
`);
|
|
250
|
+
writeFileSync(join(TEST_DIR, 'readme.md'), '# Not a workflow');
|
|
251
|
+
writeFileSync(join(TEST_DIR, 'config.json'), '{"not": "yaml"}');
|
|
252
|
+
writeFileSync(join(TEST_DIR, '.hidden'), 'hidden file');
|
|
253
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
254
|
+
assert.strictEqual(result.workflows.length, 1, 'Should only load .yaml file');
|
|
255
|
+
assert.strictEqual(result.workflows[0].name, 'yaml-file');
|
|
256
|
+
});
|
|
257
|
+
it('should handle both .yaml and .yml extensions', () => {
|
|
258
|
+
// AC1: Loads all YAML files
|
|
259
|
+
writeFileSync(join(TEST_DIR, 'first.yaml'), `
|
|
260
|
+
workflow:
|
|
261
|
+
name: yaml-ext
|
|
262
|
+
phases:
|
|
263
|
+
- name: work
|
|
264
|
+
agent: dev
|
|
265
|
+
`);
|
|
266
|
+
writeFileSync(join(TEST_DIR, 'second.yml'), `
|
|
267
|
+
workflow:
|
|
268
|
+
name: yml-ext
|
|
269
|
+
phases:
|
|
270
|
+
- name: work
|
|
271
|
+
agent: dev
|
|
272
|
+
`);
|
|
273
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
274
|
+
assert.strictEqual(result.workflows.length, 2, 'Should load both extensions');
|
|
275
|
+
});
|
|
276
|
+
it('should include file paths in error results', () => {
|
|
277
|
+
// AC3: Clear error messages include file path
|
|
278
|
+
writeFileSync(join(TEST_DIR, 'broken.yaml'), `
|
|
279
|
+
workflow:
|
|
280
|
+
phases:
|
|
281
|
+
- name: no-agent
|
|
282
|
+
`);
|
|
283
|
+
const result = loadWorkflowsFromDir(TEST_DIR);
|
|
284
|
+
assert.strictEqual(result.errors.length, 1);
|
|
285
|
+
assert.ok(result.errors[0].filePath, 'Error should have filePath');
|
|
286
|
+
assert.ok(result.errors[0].filePath.endsWith('broken.yaml'), 'filePath should be the file that failed');
|
|
287
|
+
assert.ok(Array.isArray(result.errors[0].errors), 'Should have validation errors array');
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
describe('Integration with real workflow files', () => {
|
|
291
|
+
it('should successfully load tdd.yaml from pennyfarthing-dist', () => {
|
|
292
|
+
// AC2: Validates against schema
|
|
293
|
+
// AC4: Returns structured workflow objects
|
|
294
|
+
const root = findMonorepoRoot(__dirname);
|
|
295
|
+
const tddPath = join(root, 'pennyfarthing-dist', 'workflows', 'tdd.yaml');
|
|
296
|
+
const result = loadWorkflowFile(tddPath);
|
|
297
|
+
assert.strictEqual(result.success, true, 'tdd.yaml should be valid');
|
|
298
|
+
assert.strictEqual(result.workflow?.name, 'tdd');
|
|
299
|
+
assert.ok(result.workflow?.phases.length >= 4, 'TDD has multiple phases');
|
|
300
|
+
});
|
|
301
|
+
it('should successfully load trivial.yaml from pennyfarthing-dist', () => {
|
|
302
|
+
// AC2: Validates against schema
|
|
303
|
+
const root = findMonorepoRoot(__dirname);
|
|
304
|
+
const trivialPath = join(root, 'pennyfarthing-dist', 'workflows', 'trivial.yaml');
|
|
305
|
+
const result = loadWorkflowFile(trivialPath);
|
|
306
|
+
assert.strictEqual(result.success, true, 'trivial.yaml should be valid');
|
|
307
|
+
assert.strictEqual(result.workflow?.name, 'trivial');
|
|
308
|
+
});
|
|
309
|
+
it('should load all workflows from pennyfarthing-dist/workflows/', () => {
|
|
310
|
+
// AC1: Loads all YAML files from directory
|
|
311
|
+
const root = findMonorepoRoot(__dirname);
|
|
312
|
+
const workflowsDir = join(root, 'pennyfarthing-dist', 'workflows');
|
|
313
|
+
const result = loadWorkflowsFromDir(workflowsDir);
|
|
314
|
+
assert.ok(result.workflows.length >= 2, 'Should load at least tdd and trivial');
|
|
315
|
+
assert.strictEqual(result.errors.length, 0, 'Built-in workflows should be valid');
|
|
316
|
+
const names = result.workflows.map(w => w.name);
|
|
317
|
+
assert.ok(names.includes('tdd'), 'Should include tdd workflow');
|
|
318
|
+
assert.ok(names.includes('trivial'), 'Should include trivial workflow');
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
describe('Error message quality', () => {
|
|
322
|
+
it('should provide clear message for missing workflow root key', () => {
|
|
323
|
+
// AC3: Clear error messages
|
|
324
|
+
const noRootYaml = `
|
|
325
|
+
name: wrong-structure
|
|
326
|
+
phases:
|
|
327
|
+
- name: work
|
|
328
|
+
agent: dev
|
|
329
|
+
`;
|
|
330
|
+
const filePath = join(TEST_DIR, 'no-root.yaml');
|
|
331
|
+
writeFileSync(filePath, noRootYaml);
|
|
332
|
+
const result = loadWorkflowFile(filePath);
|
|
333
|
+
assert.strictEqual(result.success, false);
|
|
334
|
+
assert.ok(result.errors?.some(e => e.message.toLowerCase().includes('workflow') &&
|
|
335
|
+
(e.message.toLowerCase().includes('missing') || e.message.toLowerCase().includes('root'))), 'Should mention missing workflow root key');
|
|
336
|
+
});
|
|
337
|
+
it('should report multiple validation errors', () => {
|
|
338
|
+
// AC3: Clear error messages (accumulate all errors)
|
|
339
|
+
const multipleErrorsYaml = `
|
|
340
|
+
workflow:
|
|
341
|
+
phases:
|
|
342
|
+
- agent: dev
|
|
343
|
+
`;
|
|
344
|
+
const filePath = join(TEST_DIR, 'multiple-errors.yaml');
|
|
345
|
+
writeFileSync(filePath, multipleErrorsYaml);
|
|
346
|
+
const result = loadWorkflowFile(filePath);
|
|
347
|
+
assert.strictEqual(result.success, false);
|
|
348
|
+
assert.ok(result.errors, 'Should have errors');
|
|
349
|
+
// Should have errors for: missing name, phase missing name
|
|
350
|
+
assert.ok(result.errors.length >= 2, 'Should report multiple errors');
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
});
|
|
354
|
+
//# sourceMappingURL=workflow-loader.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-loader.test.js","sourceRoot":"","sources":["../../src/workflow/workflow-loader.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO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AAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC1F,EAAE,0CAA0C,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;YAClD,oDAAoD;YACpD,MAAM,kBAAkB,GAAG;;;;CAIhC,CAAC;YACI,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;YACxD,aAAa,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;YAE5C,MAAM,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAE1C,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAC1C,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;YAC/C,2DAA2D;YAC3D,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE,+BAA+B,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story 31-4: Migrate TDD Flow to Workflow Definition
|
|
3
|
+
*
|
|
4
|
+
* These tests verify that the workflow YAML files correctly capture
|
|
5
|
+
* the hardcoded TDD flow from the SM agent. This is a migration verification
|
|
6
|
+
* test suite - it ensures the YAML definitions match expected behavior.
|
|
7
|
+
*
|
|
8
|
+
* Acceptance Criteria:
|
|
9
|
+
* - AC1: tdd.yaml workflow exists in pennyfarthing-dist/workflows/
|
|
10
|
+
* - AC2: Defines SM → TEA → Dev → Reviewer → SM phases
|
|
11
|
+
* - AC3: Scale routing (1-2 pts skip TEA) preserved via trivial.yaml
|
|
12
|
+
* - AC4: Existing /new-work behavior unchanged (regression tested)
|
|
13
|
+
*
|
|
14
|
+
* Run with: npm test
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=workflow-migration.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-migration.test.d.ts","sourceRoot":"","sources":["../../src/workflow/workflow-migration.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|