@pennyfarthing/core 7.0.2 → 7.4.1
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/LICENSE +14 -0
- package/README.md +2 -2
- package/package.json +11 -10
- package/packages/core/dist/cli/commands/cyclist.d.ts +2 -2
- package/packages/core/dist/cli/commands/cyclist.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/cyclist.js +8 -9
- package/packages/core/dist/cli/commands/cyclist.js.map +1 -1
- package/packages/core/dist/cli/commands/cyclist.test.js +6 -4
- package/packages/core/dist/cli/commands/cyclist.test.js.map +1 -1
- package/packages/core/dist/cli/commands/init.js +4 -3
- package/packages/core/dist/cli/commands/init.js.map +1 -1
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +15 -139
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/cyclist-migration.test.js +4 -3
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -1
- package/packages/core/dist/cli/utils/constants.d.ts +7 -1
- package/packages/core/dist/cli/utils/constants.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/constants.js +4 -2
- package/packages/core/dist/cli/utils/constants.js.map +1 -1
- package/packages/core/dist/cli/utils/node-modules.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/node-modules.js +2 -1
- package/packages/core/dist/cli/utils/node-modules.js.map +1 -1
- package/packages/core/dist/cli/utils/themes.d.ts +1 -4
- package/packages/core/dist/cli/utils/themes.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/themes.js +2 -22
- package/packages/core/dist/cli/utils/themes.js.map +1 -1
- package/packages/core/dist/cli/utils/themes.test.d.ts +3 -3
- package/packages/core/dist/cli/utils/themes.test.js +16 -13
- package/packages/core/dist/cli/utils/themes.test.js.map +1 -1
- package/packages/core/dist/cli/workspace.test.js +11 -9
- package/packages/core/dist/cli/workspace.test.js.map +1 -1
- package/packages/core/dist/index.d.ts +1 -0
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +10 -0
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/jira/jira-epic-creation.d.ts +109 -0
- package/packages/core/dist/jira/jira-epic-creation.d.ts.map +1 -0
- package/packages/core/dist/jira/jira-epic-creation.js +253 -0
- package/packages/core/dist/jira/jira-epic-creation.js.map +1 -0
- package/packages/core/dist/jira/jira-epic-creation.test.d.ts +16 -0
- package/packages/core/dist/jira/jira-epic-creation.test.d.ts.map +1 -0
- package/packages/core/dist/jira/jira-epic-creation.test.js +387 -0
- package/packages/core/dist/jira/jira-epic-creation.test.js.map +1 -0
- package/packages/core/dist/jira/jira-sprint-sync.d.ts +247 -0
- package/packages/core/dist/jira/jira-sprint-sync.d.ts.map +1 -0
- package/packages/core/dist/jira/jira-sprint-sync.js +670 -0
- package/packages/core/dist/jira/jira-sprint-sync.js.map +1 -0
- package/packages/core/dist/jira/jira-sprint-sync.test.d.ts +16 -0
- package/packages/core/dist/jira/jira-sprint-sync.test.d.ts.map +1 -0
- package/packages/core/dist/jira/jira-sprint-sync.test.js +845 -0
- package/packages/core/dist/jira/jira-sprint-sync.test.js.map +1 -0
- package/packages/core/dist/scripts/generate-spider.d.ts +11 -1
- package/packages/core/dist/scripts/generate-spider.d.ts.map +1 -1
- package/packages/core/dist/scripts/generate-spider.js +24 -1
- package/packages/core/dist/scripts/generate-spider.js.map +1 -1
- package/packages/core/dist/scripts/generate-spider.test.js +6 -4
- package/packages/core/dist/scripts/generate-spider.test.js.map +1 -1
- package/packages/core/dist/workflow/gate-handler.d.ts +94 -0
- package/packages/core/dist/workflow/gate-handler.d.ts.map +1 -0
- package/packages/core/dist/workflow/gate-handler.js +189 -0
- package/packages/core/dist/workflow/gate-handler.js.map +1 -0
- package/packages/core/dist/workflow/gate-handler.test.d.ts +14 -0
- package/packages/core/dist/workflow/gate-handler.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/gate-handler.test.js +543 -0
- package/packages/core/dist/workflow/gate-handler.test.js.map +1 -0
- package/packages/core/dist/workflow/generic-handoff.d.ts +46 -0
- package/packages/core/dist/workflow/generic-handoff.d.ts.map +1 -1
- package/packages/core/dist/workflow/generic-handoff.js +53 -0
- package/packages/core/dist/workflow/generic-handoff.js.map +1 -1
- package/packages/core/dist/workflow/generic-handoff.test.js +2 -2
- package/packages/core/dist/workflow/generic-handoff.test.js.map +1 -1
- package/packages/core/dist/workflow/handoff.d.ts +281 -0
- package/packages/core/dist/workflow/handoff.d.ts.map +1 -0
- package/packages/core/dist/workflow/handoff.js +411 -0
- package/packages/core/dist/workflow/handoff.js.map +1 -0
- package/packages/core/dist/workflow/handoff.test.d.ts +21 -0
- package/packages/core/dist/workflow/handoff.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/handoff.test.js +499 -0
- package/packages/core/dist/workflow/handoff.test.js.map +1 -0
- package/packages/core/dist/workflow/index.d.ts +16 -0
- package/packages/core/dist/workflow/index.d.ts.map +1 -0
- package/packages/core/dist/workflow/index.js +24 -0
- package/packages/core/dist/workflow/index.js.map +1 -0
- package/packages/core/dist/workflow/session-state.d.ts +92 -0
- package/packages/core/dist/workflow/session-state.d.ts.map +1 -0
- package/packages/core/dist/workflow/session-state.js +198 -0
- package/packages/core/dist/workflow/session-state.js.map +1 -0
- package/packages/core/dist/workflow/session-state.test.d.ts +8 -0
- package/packages/core/dist/workflow/session-state.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/session-state.test.js +551 -0
- package/packages/core/dist/workflow/session-state.test.js.map +1 -0
- package/packages/core/dist/workflow/sm-subagents.test.d.ts +2 -2
- package/packages/core/dist/workflow/sm-subagents.test.js +6 -6
- package/packages/core/dist/workflow/sm-subagents.test.js.map +1 -1
- package/packages/core/dist/workflow/step-parser.d.ts +45 -0
- package/packages/core/dist/workflow/step-parser.d.ts.map +1 -0
- package/packages/core/dist/workflow/step-parser.js +147 -0
- package/packages/core/dist/workflow/step-parser.js.map +1 -0
- package/packages/core/dist/workflow/step-parser.test.d.ts +14 -0
- package/packages/core/dist/workflow/step-parser.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/step-parser.test.js +470 -0
- package/packages/core/dist/workflow/step-parser.test.js.map +1 -0
- package/packages/core/dist/workflow/trimodal.d.ts +86 -0
- package/packages/core/dist/workflow/trimodal.d.ts.map +1 -0
- package/packages/core/dist/workflow/trimodal.js +118 -0
- package/packages/core/dist/workflow/trimodal.js.map +1 -0
- package/packages/core/dist/workflow/trimodal.test.d.ts +11 -0
- package/packages/core/dist/workflow/trimodal.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/trimodal.test.js +395 -0
- package/packages/core/dist/workflow/trimodal.test.js.map +1 -0
- package/packages/core/dist/workflow/variable-resolver.d.ts +67 -0
- package/packages/core/dist/workflow/variable-resolver.d.ts.map +1 -0
- package/packages/core/dist/workflow/variable-resolver.js +156 -0
- package/packages/core/dist/workflow/variable-resolver.js.map +1 -0
- package/packages/core/dist/workflow/variable-resolver.test.d.ts +14 -0
- package/packages/core/dist/workflow/variable-resolver.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/variable-resolver.test.js +400 -0
- package/packages/core/dist/workflow/variable-resolver.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-executor.d.ts +163 -0
- package/packages/core/dist/workflow/workflow-executor.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-executor.js +197 -0
- package/packages/core/dist/workflow/workflow-executor.js.map +1 -0
- package/packages/core/dist/workflow/workflow-executor.test.d.ts +8 -0
- package/packages/core/dist/workflow/workflow-executor.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-executor.test.js +444 -0
- package/packages/core/dist/workflow/workflow-executor.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-loader.test.js +5 -5
- package/packages/core/dist/workflow/workflow-loader.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-migration.test.js +8 -9
- package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-permissions.d.ts +55 -0
- package/packages/core/dist/workflow/workflow-permissions.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-permissions.js +64 -0
- package/packages/core/dist/workflow/workflow-permissions.js.map +1 -0
- package/packages/core/dist/workflow/workflow-permissions.test.d.ts +15 -0
- package/packages/core/dist/workflow/workflow-permissions.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-permissions.test.js +301 -0
- package/packages/core/dist/workflow/workflow-permissions.test.js.map +1 -0
- package/packages/core/dist/workflow/workflow-schema.d.ts +61 -2
- package/packages/core/dist/workflow/workflow-schema.d.ts.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.js +293 -69
- package/packages/core/dist/workflow/workflow-schema.js.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.test.js +6 -6
- package/packages/core/dist/workflow/workflow-schema.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts +18 -0
- package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts.map +1 -0
- package/packages/core/dist/workflow/workflow-stepped-schema.test.js +608 -0
- package/packages/core/dist/workflow/workflow-stepped-schema.test.js.map +1 -0
- package/pennyfarthing-dist/agents/README.md +63 -134
- package/pennyfarthing-dist/agents/architect.md +18 -10
- package/pennyfarthing-dist/agents/dev.md +47 -32
- package/pennyfarthing-dist/agents/devops.md +18 -9
- package/pennyfarthing-dist/agents/handoff.md +289 -0
- package/pennyfarthing-dist/agents/orchestrator.md +44 -22
- package/pennyfarthing-dist/agents/pm.md +13 -8
- package/pennyfarthing-dist/agents/reviewer-preflight.md +42 -128
- package/pennyfarthing-dist/agents/reviewer.md +104 -57
- package/pennyfarthing-dist/agents/sm-file-summary.md +24 -75
- package/pennyfarthing-dist/agents/sm-finish.md +61 -0
- package/pennyfarthing-dist/agents/sm-handoff.md +102 -54
- package/pennyfarthing-dist/agents/sm-setup.md +174 -0
- package/pennyfarthing-dist/agents/sm.md +223 -100
- package/pennyfarthing-dist/agents/tea.md +42 -34
- package/pennyfarthing-dist/agents/tech-writer.md +74 -6
- package/pennyfarthing-dist/agents/testing-runner.md +78 -360
- package/pennyfarthing-dist/agents/ux-designer.md +80 -7
- package/pennyfarthing-dist/agents/workflow-status-check.md +35 -299
- package/pennyfarthing-dist/commands/architect.md +2 -2
- package/pennyfarthing-dist/commands/close-epic.md +5 -2
- package/pennyfarthing-dist/commands/create-branches-from-story.md +7 -23
- package/pennyfarthing-dist/commands/dev.md +2 -2
- package/pennyfarthing-dist/commands/devops.md +3 -3
- package/pennyfarthing-dist/commands/git-cleanup.md +5 -5
- package/pennyfarthing-dist/commands/health-check.md +1 -1
- package/pennyfarthing-dist/commands/list-themes.md +7 -3
- package/pennyfarthing-dist/commands/orchestrator.md +2 -2
- package/pennyfarthing-dist/commands/parallel-work.md +4 -4
- package/pennyfarthing-dist/commands/pm.md +2 -2
- package/pennyfarthing-dist/commands/prime.md +7 -7
- package/pennyfarthing-dist/commands/release.md +1 -1
- package/pennyfarthing-dist/commands/repo-status.md +2 -2
- package/pennyfarthing-dist/commands/retro.md +2 -2
- package/pennyfarthing-dist/commands/reviewer.md +2 -2
- package/pennyfarthing-dist/commands/set-theme.md +5 -1
- package/pennyfarthing-dist/commands/sm.md +2 -2
- package/pennyfarthing-dist/commands/start-epic.md +26 -14
- package/pennyfarthing-dist/commands/sync-epic-to-jira.md +8 -8
- package/pennyfarthing-dist/commands/sync-work-with-sprint.md +1 -4
- package/pennyfarthing-dist/commands/tea.md +2 -2
- package/pennyfarthing-dist/commands/tech-writer.md +2 -2
- package/pennyfarthing-dist/commands/ux-designer.md +3 -3
- package/pennyfarthing-dist/commands/work.md +15 -4
- package/pennyfarthing-dist/commands/workflow.md +21 -0
- package/pennyfarthing-dist/guides/AGENT-COORDINATION.md +15 -15
- package/pennyfarthing-dist/guides/PROMPT-PATTERNS.md +1 -1
- package/pennyfarthing-dist/guides/SESSION-ARTIFACTS.md +4 -4
- package/pennyfarthing-dist/guides/agent-behavior.md +238 -0
- package/pennyfarthing-dist/guides/agent-template-strategic.md +2 -2
- package/pennyfarthing-dist/guides/agent-template-tactical.md +4 -4
- package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +1 -1
- package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +17 -17
- package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +8 -8
- package/pennyfarthing-dist/guides/workflow-schema.md +62 -0
- package/pennyfarthing-dist/guides/worktree-mode.md +5 -5
- package/pennyfarthing-dist/personas/themes/1984.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/a-team.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/agatha-christie.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/all-stars.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/ancient-philosophers.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/ancient-strategists.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/arcane.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/arthurian-mythos.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/avatar-the-last-airbender.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/babylon-5.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/better-call-saul.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/big-lebowski.yaml +2 -2
- package/pennyfarthing-dist/personas/themes/black-sails.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/blade-runner.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/bobiverse.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/breaking-bad.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/catch-22.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/classical-composers.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/control.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/count-of-monte-cristo.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/deadwood.yaml +2 -2
- package/pennyfarthing-dist/personas/themes/discworld.yaml +2 -2
- package/pennyfarthing-dist/personas/themes/doctor-who.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/enlightenment-thinkers.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/expeditionary-force.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/firefly.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/foundation.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/futurama.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +2 -2
- package/pennyfarthing-dist/personas/themes/gilligans-island.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/gothic-literature.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/great-gatsby.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/greek-mythology.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/harry-potter.yaml +2 -2
- package/pennyfarthing-dist/personas/themes/his-dark-materials.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/historical-figures.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/house-md.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/imperial-radch.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/jane-austen.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/jazz-legends.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/justified.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/legion-of-doom.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/les-miserables.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/lovecraft-mythos.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/mad-men.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/marvel-mcu.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/mash.yaml +69 -66
- package/pennyfarthing-dist/personas/themes/mass-effect.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/military-commanders.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/moby-dick.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/monty-python.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/neuromancer.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/norse-mythology.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/peaky-blinders.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/princess-bride.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/rome.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/russian-masters.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/sandman.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/shakespeare.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/sherlock-holmes.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/snow-crash.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/software-pioneers.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/star-trek-tos.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/star-wars.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/superfriends.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-americans.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-crown.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-expanse.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-good-place.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-office.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-simpsons.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-sopranos.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-wire.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/the-witcher.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/vorkosigan-saga.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/west-wing.yaml +1 -1
- package/pennyfarthing-dist/personas/themes/wwii-leaders.yaml +1 -1
- package/pennyfarthing-dist/scripts/README.md +68 -0
- package/pennyfarthing-dist/scripts/core/README.md +26 -0
- package/pennyfarthing-dist/scripts/{agent-session.sh → core/agent-session.sh} +34 -23
- package/pennyfarthing-dist/scripts/{check-context.sh → core/check-context.sh} +93 -37
- package/pennyfarthing-dist/scripts/core/handoff-marker.sh +90 -0
- package/pennyfarthing-dist/scripts/core/prime.sh +136 -0
- package/pennyfarthing-dist/scripts/core/run.sh +75 -0
- package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +21 -0
- package/pennyfarthing-dist/scripts/git/README.md +25 -0
- package/pennyfarthing-dist/scripts/{utils → git}/create-feature-branches.sh +11 -15
- package/pennyfarthing-dist/scripts/{utils → git}/git-status-all.sh +1 -1
- package/pennyfarthing-dist/scripts/{install-git-hooks.sh → git/install-git-hooks.sh} +0 -0
- package/pennyfarthing-dist/scripts/{release.sh → git/release.sh} +0 -0
- package/pennyfarthing-dist/scripts/{worktree-manager.sh → git/worktree-manager.sh} +0 -4
- package/pennyfarthing-dist/scripts/hooks/README.md +32 -0
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +3 -4
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +1 -2
- package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +0 -0
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +1 -1
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +0 -0
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +0 -0
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +0 -0
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +2 -3
- package/pennyfarthing-dist/scripts/jira/README.md +33 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +101 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +97 -0
- package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.mjs +327 -0
- package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.test.mjs +503 -0
- package/pennyfarthing-dist/scripts/{utils → jira}/jira-claim-story.sh +8 -6
- package/pennyfarthing-dist/scripts/{utils/jira → jira}/jira-lib.mjs +10 -10
- package/pennyfarthing-dist/scripts/{utils → jira}/jira-lib.sh +18 -17
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +266 -0
- package/pennyfarthing-dist/scripts/{utils/jira → jira}/jira-sync-story.mjs +14 -14
- package/pennyfarthing-dist/scripts/{utils → jira}/jira-sync-story.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils/jira → jira}/jira-sync.mjs +4 -4
- package/pennyfarthing-dist/scripts/{utils → jira}/jira-sync.sh +0 -0
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +104 -0
- package/pennyfarthing-dist/scripts/{utils → jira}/sync-epic-to-jira.sh +1 -1
- package/pennyfarthing-dist/scripts/lib/README.md +29 -0
- package/pennyfarthing-dist/scripts/{utils → lib}/background-tasks.sh +1 -1
- package/pennyfarthing-dist/scripts/{utils → lib}/checkpoint.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → lib}/common.sh +1 -1
- package/pennyfarthing-dist/scripts/{utils → lib}/file-lock.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → lib}/find-root.sh +7 -5
- package/pennyfarthing-dist/scripts/{utils → lib}/logging.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → lib}/retry.sh +0 -0
- package/pennyfarthing-dist/scripts/misc/README.md +44 -0
- package/pennyfarthing-dist/scripts/{add-short-names.mjs → misc/add-short-names.mjs} +0 -0
- package/pennyfarthing-dist/scripts/misc/backlog.sh +91 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/check-status.sh +4 -8
- package/pennyfarthing-dist/scripts/{deploy.sh → misc/deploy.sh} +0 -0
- package/pennyfarthing-dist/scripts/{doctor-dogfood.sh → misc/doctor-dogfood.sh} +2 -5
- package/pennyfarthing-dist/scripts/{utils → misc}/find-related-work.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/generate-skill-docs.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/log-skill-usage.sh +0 -0
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.mjs +474 -0
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +9 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/repo-scan.sh +0 -0
- package/pennyfarthing-dist/scripts/{repo-utils.sh → misc/repo-utils.sh} +2 -2
- package/pennyfarthing-dist/scripts/{run-ci.sh → misc/run-ci.sh} +0 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/run-timestamp.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/session-cleanup.sh +0 -0
- package/pennyfarthing-dist/scripts/{utils → misc}/skill-usage-report.sh +0 -0
- package/pennyfarthing-dist/scripts/{statusline.sh → misc/statusline.sh} +2 -7
- package/pennyfarthing-dist/scripts/{uninstall.sh → misc/uninstall.sh} +4 -5
- package/pennyfarthing-dist/scripts/{utils → misc}/validate-subagent-frontmatter.sh +3 -3
- package/pennyfarthing-dist/scripts/sprint/README.md +29 -0
- package/pennyfarthing-dist/scripts/sprint/archive-story.sh +135 -0
- package/pennyfarthing-dist/scripts/sprint/available-stories.sh +97 -0
- package/pennyfarthing-dist/scripts/sprint/check-story.sh +164 -0
- package/pennyfarthing-dist/scripts/sprint/get-epic-field.sh +58 -0
- package/pennyfarthing-dist/scripts/sprint/get-story-field.sh +69 -0
- package/pennyfarthing-dist/scripts/sprint/list-future.sh +151 -0
- package/pennyfarthing-dist/scripts/sprint/new-sprint.sh +116 -0
- package/pennyfarthing-dist/scripts/sprint/promote-epic.sh +164 -0
- package/pennyfarthing-dist/scripts/{utils → sprint}/sprint-common.sh +135 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-info.sh +39 -0
- package/pennyfarthing-dist/scripts/{utils → sprint}/sprint-metrics.sh +0 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-status.sh +134 -0
- package/pennyfarthing-dist/scripts/story/README.md +23 -0
- package/pennyfarthing-dist/scripts/story/create-story.sh +159 -0
- package/pennyfarthing-dist/scripts/story/size-story.sh +198 -0
- package/pennyfarthing-dist/scripts/story/story-template.sh +162 -0
- package/pennyfarthing-dist/scripts/test/README.md +23 -0
- package/pennyfarthing-dist/scripts/{utils → test}/swebench-judge.py +0 -0
- package/pennyfarthing-dist/scripts/test/test-cache.sh +165 -0
- package/pennyfarthing-dist/scripts/{utils → test}/test-setup.sh +5 -5
- package/pennyfarthing-dist/scripts/tests/check.test.sh +0 -0
- package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +515 -0
- package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +599 -0
- package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +332 -0
- package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +573 -0
- package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +859 -0
- package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +662 -0
- package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +589 -0
- package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +7 -9
- package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +18 -18
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +10 -10
- package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +1 -1
- package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +0 -0
- package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +647 -0
- package/pennyfarthing-dist/scripts/theme/README.md +22 -0
- package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +203 -0
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +73 -0
- package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +97 -0
- package/pennyfarthing-dist/scripts/workflow/README.md +28 -0
- package/pennyfarthing-dist/scripts/{check.sh → workflow/check.sh} +0 -0
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +159 -0
- package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +228 -0
- package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +91 -0
- package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +163 -0
- package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +138 -0
- package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +256 -0
- package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +167 -0
- package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +6 -0
- package/pennyfarthing-dist/skills/changelog/SKILL.md +2 -2
- package/pennyfarthing-dist/skills/code-review/SKILL.md +3 -3
- package/pennyfarthing-dist/skills/context-engineering/SKILL.md +6 -0
- package/pennyfarthing-dist/skills/cyclist/SKILL.md +56 -139
- package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +21 -5
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +1 -1
- package/pennyfarthing-dist/skills/jira/SKILL.md +381 -178
- package/pennyfarthing-dist/skills/judge/SKILL.md +76 -21
- package/pennyfarthing-dist/skills/just/SKILL.md +345 -102
- package/pennyfarthing-dist/skills/otel/skill.md +1 -0
- package/pennyfarthing-dist/skills/permissions/skill.md +1 -1
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +5 -0
- package/pennyfarthing-dist/skills/skill-registry.schema.json +5 -0
- package/pennyfarthing-dist/skills/skill-registry.yaml +22 -0
- package/pennyfarthing-dist/skills/sprint/scripts/archive-story.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/available-stories.sh +97 -0
- package/pennyfarthing-dist/skills/sprint/scripts/check-story.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/create-jira-epic.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/new-sprint.sh +116 -0
- package/pennyfarthing-dist/skills/sprint/scripts/promote-epic.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-info.sh +39 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-status.sh +147 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sync-epic-jira.sh +104 -0
- package/pennyfarthing-dist/skills/sprint/skill.md +465 -0
- package/pennyfarthing-dist/skills/story/scripts/create-story.sh +159 -0
- package/pennyfarthing-dist/skills/story/scripts/size-story.sh +198 -0
- package/pennyfarthing-dist/skills/story/scripts/story-template.sh +162 -0
- package/pennyfarthing-dist/skills/story/skill.md +219 -0
- package/pennyfarthing-dist/skills/systematic-debugging/SKILL.md +390 -0
- package/pennyfarthing-dist/skills/theme/skill.md +1 -1
- package/pennyfarthing-dist/skills/workflow/scripts/list-workflows.sh +91 -0
- package/pennyfarthing-dist/skills/workflow/scripts/resume-workflow.sh +163 -0
- package/pennyfarthing-dist/skills/workflow/scripts/show-workflow.sh +138 -0
- package/pennyfarthing-dist/skills/workflow/scripts/start-workflow.sh +273 -0
- package/pennyfarthing-dist/skills/workflow/scripts/workflow-status.sh +167 -0
- package/pennyfarthing-dist/skills/workflow/skill.md +337 -0
- package/pennyfarthing-dist/templates/settings.local.json.template +1 -1
- package/pennyfarthing-dist/workflows/agent-docs.yaml +1 -1
- package/pennyfarthing-dist/workflows/architecture/steps/step-01-initialize.md +101 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-01b-continue.md +93 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-02-context.md +115 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-03-patterns.md +133 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-04-components.md +138 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-05-interfaces.md +133 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-06-risks.md +142 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-07-document.md +160 -0
- package/pennyfarthing-dist/workflows/architecture/templates/architecture-decision.md +102 -0
- package/pennyfarthing-dist/workflows/architecture.yaml +65 -0
- package/pennyfarthing-dist/workflows/bdd.yaml +3 -1
- package/pennyfarthing-dist/workflows/brainstorming/brain-methods.csv +62 -0
- package/pennyfarthing-dist/workflows/brainstorming/checklist.md +44 -0
- package/pennyfarthing-dist/workflows/brainstorming/instructions.md +736 -0
- package/pennyfarthing-dist/workflows/brainstorming/workflow.yaml +49 -0
- package/pennyfarthing-dist/workflows/code-review/checklist.md +23 -0
- package/pennyfarthing-dist/workflows/code-review/instructions.md +234 -0
- package/pennyfarthing-dist/workflows/code-review/workflow.yaml +51 -0
- package/pennyfarthing-dist/workflows/dev-story/checklist.md +80 -0
- package/pennyfarthing-dist/workflows/dev-story/instructions.xml +410 -0
- package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-01-validate-prerequisites.md +256 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-02-design-epics.md +233 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-03-create-stories.md +272 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-04-final-validation.md +145 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/templates/epics-template.md +57 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-01-document-discovery.md +190 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-02-prd-analysis.md +178 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-03-epic-coverage-validation.md +179 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-04-ux-alignment.md +139 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-05-epic-quality-review.md +252 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-06-final-assessment.md +133 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/templates/readiness-report-template.md +4 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/workflow.yaml +40 -0
- package/pennyfarthing-dist/workflows/prd/data/domain-complexity.csv +13 -0
- package/pennyfarthing-dist/workflows/prd/data/prd-purpose.md +197 -0
- package/pennyfarthing-dist/workflows/prd/data/project-types.csv +11 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01-init.md +191 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01b-continue.md +153 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-02-discovery.md +224 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-03-success.md +226 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-04-journeys.md +213 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-05-domain.md +207 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-06-innovation.md +226 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-07-project-type.md +237 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-08-scoping.md +228 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-09-functional.md +231 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-10-nonfunctional.md +242 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-11-polish.md +217 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-12-complete.md +180 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01-discovery.md +247 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01b-legacy-conversion.md +208 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-02-review.md +249 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-03-edit.md +253 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-04-complete.md +168 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-01-discovery.md +218 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02-format-detection.md +191 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02b-parity-check.md +209 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-03-density-validation.md +174 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +214 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-05-measurability-validation.md +228 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-06-traceability-validation.md +217 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +205 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +243 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-09-project-type-validation.md +263 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-10-smart-validation.md +209 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +264 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-12-completeness-validation.md +242 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-13-report-complete.md +232 -0
- package/pennyfarthing-dist/workflows/prd/templates/prd-template.md +10 -0
- package/pennyfarthing-dist/workflows/prd/workflow.yaml +42 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01-init.md +177 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01b-continue.md +161 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-02-vision.md +199 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-03-users.md +202 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-04-metrics.md +205 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-05-scope.md +219 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-06-complete.md +194 -0
- package/pennyfarthing-dist/workflows/product-brief/templates/product-brief.template.md +10 -0
- package/pennyfarthing-dist/workflows/product-brief/workflow.yaml +31 -0
- package/pennyfarthing-dist/workflows/project-context/project-context-template.md +21 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-01-discover.md +184 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-02-generate.md +318 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-03-complete.md +278 -0
- package/pennyfarthing-dist/workflows/project-context/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-01-mode-detection.md +156 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-02-context-gathering.md +120 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-03-execute.md +113 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-04-self-check.md +113 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-05-adversarial-review.md +106 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-06-resolve-findings.md +140 -0
- package/pennyfarthing-dist/workflows/quick-dev/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +189 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +144 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +128 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +191 -0
- package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +74 -0
- package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-01-init.md +137 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-02-domain-analysis.md +229 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-03-competitive-landscape.md +238 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-04-regulatory-focus.md +206 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-05-technical-trends.md +234 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-06-research-synthesis.md +443 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-01-init.md +182 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-behavior.md +237 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-insights.md +200 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-03-customer-pain-points.md +249 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-04-customer-decisions.md +259 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-05-competitive-analysis.md +177 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-06-research-completion.md +475 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-01-init.md +137 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-02-technical-overview.md +239 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-03-integration-patterns.md +248 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-04-architectural-patterns.md +202 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-05-implementation-research.md +239 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-06-research-synthesis.md +486 -0
- package/pennyfarthing-dist/workflows/research/templates/research.template.md +29 -0
- package/pennyfarthing-dist/workflows/research/workflow.yaml +45 -0
- package/pennyfarthing-dist/workflows/retrospective/checklist.md +31 -0
- package/pennyfarthing-dist/workflows/retrospective/instructions.md +1443 -0
- package/pennyfarthing-dist/workflows/retrospective/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/sprint-planning/checklist.md +33 -0
- package/pennyfarthing-dist/workflows/sprint-planning/sprint-status-template.yaml +55 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-01-parse-epic-files.md +54 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-02-build-sprint-status.md +44 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-03-status-detection.md +64 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-04-generate-status-file.md +73 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-05-validate-and-report.md +56 -0
- package/pennyfarthing-dist/workflows/sprint-planning/workflow.yaml +34 -0
- package/pennyfarthing-dist/workflows/trivial.yaml +1 -1
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01-init.md +135 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01b-continue.md +127 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-02-discovery.md +190 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-03-core-experience.md +216 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-04-emotional-response.md +219 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-05-inspiration.md +234 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-06-design-system.md +252 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-07-defining-experience.md +254 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-08-visual-foundation.md +224 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-09-design-directions.md +224 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-10-user-journeys.md +241 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-11-component-strategy.md +248 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-12-ux-patterns.md +237 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-13-responsive-accessibility.md +264 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-14-complete.md +228 -0
- package/pennyfarthing-dist/workflows/ux-design/ux-design-template.md +13 -0
- package/pennyfarthing-dist/workflows/ux-design/workflow.yaml +41 -0
- package/packages/core/dist/scripts/generate-all-faces.d.ts +0 -10
- package/packages/core/dist/scripts/generate-all-faces.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-all-faces.js +0 -256
- package/packages/core/dist/scripts/generate-all-faces.js.map +0 -1
- package/packages/core/dist/scripts/generate-all-faces.test.d.ts +0 -17
- package/packages/core/dist/scripts/generate-all-faces.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-all-faces.test.js +0 -372
- package/packages/core/dist/scripts/generate-all-faces.test.js.map +0 -1
- package/packages/core/dist/scripts/generate-ascii-face.d.ts +0 -52
- package/packages/core/dist/scripts/generate-ascii-face.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-ascii-face.js +0 -155
- package/packages/core/dist/scripts/generate-ascii-face.js.map +0 -1
- package/packages/core/dist/scripts/generate-face.d.ts +0 -52
- package/packages/core/dist/scripts/generate-face.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-face.js +0 -199
- package/packages/core/dist/scripts/generate-face.js.map +0 -1
- package/packages/core/dist/scripts/generate-face.test.d.ts +0 -13
- package/packages/core/dist/scripts/generate-face.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-face.test.js +0 -301
- package/packages/core/dist/scripts/generate-face.test.js.map +0 -1
- package/pennyfarthing-dist/agents/generic-handoff.md +0 -454
- package/pennyfarthing-dist/agents/generic-sm-finish.md +0 -261
- package/pennyfarthing-dist/agents/generic-sm-setup.md +0 -214
- package/pennyfarthing-dist/commands/new-work.md +0 -127
- package/pennyfarthing-dist/guides/AGENT-SCOPES.md +0 -201
- package/pennyfarthing-dist/guides/persona-system.md +0 -294
- package/pennyfarthing-dist/guides/shared-agent-behavior.md +0 -388
- package/pennyfarthing-dist/guides/shared-context.md +0 -147
- package/pennyfarthing-dist/guides/strategic-agent-behavior.md +0 -348
- package/pennyfarthing-dist/guides/tactical-agent-behavior.md +0 -1041
- package/pennyfarthing-dist/scripts/prime.sh +0 -161
- package/pennyfarthing-dist/scripts/run.sh +0 -65
- package/pennyfarthing-dist/skills/sprint-context/SKILL.md +0 -120
- package/pennyfarthing-dist/skills/story-management/SKILL.md +0 -208
- package/pennyfarthing-dist/skills/workflow/SKILL.md +0 -160
- /package/pennyfarthing-dist/commands/{brainstorm.md → brainstorming.md} +0 -0
- /package/pennyfarthing-dist/scripts/{utils → test}/ground-truth-judge.py +0 -0
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story MSSCI-12079: Step file parser with <step-meta> extraction
|
|
3
|
+
*
|
|
4
|
+
* These tests define the contract for parsing step files in stepped workflows.
|
|
5
|
+
* Step files are markdown documents with an optional <step-meta> YAML block.
|
|
6
|
+
*
|
|
7
|
+
* Expected interface:
|
|
8
|
+
* - parseStepFile(content: string, filename?: string): StepParseResult
|
|
9
|
+
* - parseStepFromPath(filePath: string): Promise<StepParseResult>
|
|
10
|
+
*
|
|
11
|
+
* Run with: npm test
|
|
12
|
+
*/
|
|
13
|
+
import { describe, it } from 'node:test';
|
|
14
|
+
import assert from 'node:assert';
|
|
15
|
+
// Import will fail until implementation exists - this confirms RED state
|
|
16
|
+
import { parseStepFile, parseStepFromPath } from './step-parser.js';
|
|
17
|
+
describe('Step File Parser (MSSCI-12079)', () => {
|
|
18
|
+
describe('AC1: Parser extracts step-meta YAML block', () => {
|
|
19
|
+
it('should extract step-meta block from valid step file', () => {
|
|
20
|
+
const content = `# Step 2: Context Analysis
|
|
21
|
+
|
|
22
|
+
<step-meta>
|
|
23
|
+
number: 2
|
|
24
|
+
name: context-analysis
|
|
25
|
+
gate: true
|
|
26
|
+
</step-meta>
|
|
27
|
+
|
|
28
|
+
## Purpose
|
|
29
|
+
Analyze the project context...
|
|
30
|
+
`;
|
|
31
|
+
const result = parseStepFile(content);
|
|
32
|
+
assert.strictEqual(result.success, true, 'Should successfully parse valid step file');
|
|
33
|
+
assert.ok(result.step, 'Should return parsed step');
|
|
34
|
+
assert.ok(result.step.meta, 'Should include raw meta object');
|
|
35
|
+
assert.strictEqual(result.step.meta?.number, 2);
|
|
36
|
+
assert.strictEqual(result.step.meta?.name, 'context-analysis');
|
|
37
|
+
assert.strictEqual(result.step.meta?.gate, true);
|
|
38
|
+
});
|
|
39
|
+
it('should strip step-meta block from content', () => {
|
|
40
|
+
const content = `# Step 1: Introduction
|
|
41
|
+
|
|
42
|
+
<step-meta>
|
|
43
|
+
number: 1
|
|
44
|
+
name: introduction
|
|
45
|
+
</step-meta>
|
|
46
|
+
|
|
47
|
+
## Welcome
|
|
48
|
+
This is the introduction step.
|
|
49
|
+
`;
|
|
50
|
+
const result = parseStepFile(content);
|
|
51
|
+
assert.strictEqual(result.success, true);
|
|
52
|
+
assert.ok(result.step);
|
|
53
|
+
// Content should not contain the step-meta block
|
|
54
|
+
assert.ok(!result.step.content.includes('<step-meta>'), 'Content should not include step-meta opening tag');
|
|
55
|
+
assert.ok(!result.step.content.includes('</step-meta>'), 'Content should not include step-meta closing tag');
|
|
56
|
+
// Content should still include the markdown
|
|
57
|
+
assert.ok(result.step.content.includes('## Welcome'), 'Content should preserve markdown after meta');
|
|
58
|
+
assert.ok(result.step.content.includes('This is the introduction step'), 'Content should preserve body text');
|
|
59
|
+
});
|
|
60
|
+
it('should handle step-meta with extra fields', () => {
|
|
61
|
+
const content = `<step-meta>
|
|
62
|
+
number: 3
|
|
63
|
+
name: custom-step
|
|
64
|
+
gate: false
|
|
65
|
+
custom_field: some-value
|
|
66
|
+
another_field: 123
|
|
67
|
+
</step-meta>
|
|
68
|
+
|
|
69
|
+
Content here.
|
|
70
|
+
`;
|
|
71
|
+
const result = parseStepFile(content);
|
|
72
|
+
assert.strictEqual(result.success, true);
|
|
73
|
+
assert.ok(result.step?.meta);
|
|
74
|
+
assert.strictEqual(result.step.meta.custom_field, 'some-value');
|
|
75
|
+
assert.strictEqual(result.step.meta.another_field, 123);
|
|
76
|
+
});
|
|
77
|
+
it('should handle step-meta at different positions in file', () => {
|
|
78
|
+
// Meta after heading
|
|
79
|
+
const content = `# Step 5: Review
|
|
80
|
+
|
|
81
|
+
Some preamble text here.
|
|
82
|
+
|
|
83
|
+
<step-meta>
|
|
84
|
+
number: 5
|
|
85
|
+
name: review
|
|
86
|
+
</step-meta>
|
|
87
|
+
|
|
88
|
+
## Instructions
|
|
89
|
+
Do the review.
|
|
90
|
+
`;
|
|
91
|
+
const result = parseStepFile(content);
|
|
92
|
+
assert.strictEqual(result.success, true);
|
|
93
|
+
assert.strictEqual(result.step?.number, 5);
|
|
94
|
+
assert.strictEqual(result.step?.name, 'review');
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
describe('AC2: Parser returns step number, name, gate flag', () => {
|
|
98
|
+
it('should return number from meta', () => {
|
|
99
|
+
const content = `<step-meta>
|
|
100
|
+
number: 7
|
|
101
|
+
name: final-step
|
|
102
|
+
</step-meta>
|
|
103
|
+
|
|
104
|
+
Content.
|
|
105
|
+
`;
|
|
106
|
+
const result = parseStepFile(content);
|
|
107
|
+
assert.strictEqual(result.success, true);
|
|
108
|
+
assert.strictEqual(result.step?.number, 7);
|
|
109
|
+
});
|
|
110
|
+
it('should return name from meta', () => {
|
|
111
|
+
const content = `<step-meta>
|
|
112
|
+
number: 1
|
|
113
|
+
name: initialization-step
|
|
114
|
+
</step-meta>
|
|
115
|
+
|
|
116
|
+
Content.
|
|
117
|
+
`;
|
|
118
|
+
const result = parseStepFile(content);
|
|
119
|
+
assert.strictEqual(result.success, true);
|
|
120
|
+
assert.strictEqual(result.step?.name, 'initialization-step');
|
|
121
|
+
});
|
|
122
|
+
it('should return gate flag from meta when true', () => {
|
|
123
|
+
const content = `<step-meta>
|
|
124
|
+
number: 3
|
|
125
|
+
name: checkpoint
|
|
126
|
+
gate: true
|
|
127
|
+
</step-meta>
|
|
128
|
+
|
|
129
|
+
This step has a gate.
|
|
130
|
+
`;
|
|
131
|
+
const result = parseStepFile(content);
|
|
132
|
+
assert.strictEqual(result.success, true);
|
|
133
|
+
assert.strictEqual(result.step?.gate, true);
|
|
134
|
+
});
|
|
135
|
+
it('should return gate flag from meta when false', () => {
|
|
136
|
+
const content = `<step-meta>
|
|
137
|
+
number: 2
|
|
138
|
+
name: no-gate
|
|
139
|
+
gate: false
|
|
140
|
+
</step-meta>
|
|
141
|
+
|
|
142
|
+
This step has no gate.
|
|
143
|
+
`;
|
|
144
|
+
const result = parseStepFile(content);
|
|
145
|
+
assert.strictEqual(result.success, true);
|
|
146
|
+
assert.strictEqual(result.step?.gate, false);
|
|
147
|
+
});
|
|
148
|
+
it('should default gate to false when not specified in meta', () => {
|
|
149
|
+
const content = `<step-meta>
|
|
150
|
+
number: 4
|
|
151
|
+
name: implicit-no-gate
|
|
152
|
+
</step-meta>
|
|
153
|
+
|
|
154
|
+
No gate field specified.
|
|
155
|
+
`;
|
|
156
|
+
const result = parseStepFile(content);
|
|
157
|
+
assert.strictEqual(result.success, true);
|
|
158
|
+
assert.strictEqual(result.step?.gate, false, 'Gate should default to false');
|
|
159
|
+
});
|
|
160
|
+
it('should preserve content field with markdown intact', () => {
|
|
161
|
+
const content = `<step-meta>
|
|
162
|
+
number: 1
|
|
163
|
+
name: test
|
|
164
|
+
</step-meta>
|
|
165
|
+
|
|
166
|
+
# Heading
|
|
167
|
+
|
|
168
|
+
Some **bold** and *italic* text.
|
|
169
|
+
|
|
170
|
+
\`\`\`typescript
|
|
171
|
+
const x = 1;
|
|
172
|
+
\`\`\`
|
|
173
|
+
|
|
174
|
+
- List item 1
|
|
175
|
+
- List item 2
|
|
176
|
+
`;
|
|
177
|
+
const result = parseStepFile(content);
|
|
178
|
+
assert.strictEqual(result.success, true);
|
|
179
|
+
assert.ok(result.step?.content.includes('# Heading'));
|
|
180
|
+
assert.ok(result.step?.content.includes('**bold**'));
|
|
181
|
+
assert.ok(result.step?.content.includes('const x = 1;'));
|
|
182
|
+
assert.ok(result.step?.content.includes('- List item 1'));
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
describe('AC3: Parser handles missing meta gracefully', () => {
|
|
186
|
+
it('should extract number and name from filename when no meta block', () => {
|
|
187
|
+
const content = `# Step 3: Architecture Design
|
|
188
|
+
|
|
189
|
+
This step file has no meta block.
|
|
190
|
+
|
|
191
|
+
## Instructions
|
|
192
|
+
Design the architecture.
|
|
193
|
+
`;
|
|
194
|
+
const result = parseStepFile(content, 'step-03-architecture-design.md');
|
|
195
|
+
assert.strictEqual(result.success, true);
|
|
196
|
+
assert.strictEqual(result.step?.number, 3);
|
|
197
|
+
assert.strictEqual(result.step?.name, 'architecture-design');
|
|
198
|
+
});
|
|
199
|
+
it('should handle step-{n} filename pattern (single digit)', () => {
|
|
200
|
+
const content = `No meta here.`;
|
|
201
|
+
const result = parseStepFile(content, 'step-5-review.md');
|
|
202
|
+
assert.strictEqual(result.success, true);
|
|
203
|
+
assert.strictEqual(result.step?.number, 5);
|
|
204
|
+
assert.strictEqual(result.step?.name, 'review');
|
|
205
|
+
});
|
|
206
|
+
it('should handle step-{nn} filename pattern (double digit)', () => {
|
|
207
|
+
const content = `No meta here.`;
|
|
208
|
+
const result = parseStepFile(content, 'step-12-final-review.md');
|
|
209
|
+
assert.strictEqual(result.success, true);
|
|
210
|
+
assert.strictEqual(result.step?.number, 12);
|
|
211
|
+
assert.strictEqual(result.step?.name, 'final-review');
|
|
212
|
+
});
|
|
213
|
+
it('should return entire content when no meta block', () => {
|
|
214
|
+
const fullContent = `# Full Content
|
|
215
|
+
|
|
216
|
+
All of this should be in the content field.
|
|
217
|
+
|
|
218
|
+
## Section 1
|
|
219
|
+
Text here.
|
|
220
|
+
|
|
221
|
+
## Section 2
|
|
222
|
+
More text.
|
|
223
|
+
`;
|
|
224
|
+
const result = parseStepFile(fullContent, 'step-01-full.md');
|
|
225
|
+
assert.strictEqual(result.success, true);
|
|
226
|
+
assert.ok(result.step?.content.includes('# Full Content'));
|
|
227
|
+
assert.ok(result.step?.content.includes('## Section 1'));
|
|
228
|
+
assert.ok(result.step?.content.includes('## Section 2'));
|
|
229
|
+
});
|
|
230
|
+
it('should return error when no meta and filename cannot be parsed', () => {
|
|
231
|
+
const content = `No meta block here.`;
|
|
232
|
+
const result = parseStepFile(content, 'random-file.md');
|
|
233
|
+
assert.strictEqual(result.success, false, 'Should fail without meta or parseable filename');
|
|
234
|
+
assert.ok(result.error, 'Should include error message');
|
|
235
|
+
});
|
|
236
|
+
it('should return error when no meta and no filename provided', () => {
|
|
237
|
+
const content = `No meta block here and no filename.`;
|
|
238
|
+
const result = parseStepFile(content);
|
|
239
|
+
assert.strictEqual(result.success, false, 'Should fail without meta or filename');
|
|
240
|
+
assert.ok(result.error, 'Should include error message');
|
|
241
|
+
});
|
|
242
|
+
it('should handle empty file', () => {
|
|
243
|
+
const result = parseStepFile('', 'step-01-empty.md');
|
|
244
|
+
assert.strictEqual(result.success, true, 'Empty file with valid filename should succeed');
|
|
245
|
+
assert.strictEqual(result.step?.number, 1);
|
|
246
|
+
assert.strictEqual(result.step?.name, 'empty');
|
|
247
|
+
assert.strictEqual(result.step?.content, '');
|
|
248
|
+
});
|
|
249
|
+
it('should handle malformed YAML in meta block gracefully', () => {
|
|
250
|
+
const content = `<step-meta>
|
|
251
|
+
number: not-a-number
|
|
252
|
+
name: [invalid yaml
|
|
253
|
+
gate: {broken
|
|
254
|
+
</step-meta>
|
|
255
|
+
|
|
256
|
+
Content after bad meta.
|
|
257
|
+
`;
|
|
258
|
+
const result = parseStepFile(content, 'step-01-fallback.md');
|
|
259
|
+
// Should fall back to filename parsing, not crash
|
|
260
|
+
assert.strictEqual(result.success, true, 'Should fall back to filename when meta is malformed');
|
|
261
|
+
assert.strictEqual(result.step?.number, 1);
|
|
262
|
+
assert.strictEqual(result.step?.name, 'fallback');
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
describe('AC4: Gate detection from meta or marker', () => {
|
|
266
|
+
it('should detect gate from meta gate: true', () => {
|
|
267
|
+
const content = `<step-meta>
|
|
268
|
+
number: 1
|
|
269
|
+
name: gated-step
|
|
270
|
+
gate: true
|
|
271
|
+
</step-meta>
|
|
272
|
+
|
|
273
|
+
No marker in content.
|
|
274
|
+
`;
|
|
275
|
+
const result = parseStepFile(content);
|
|
276
|
+
assert.strictEqual(result.success, true);
|
|
277
|
+
assert.strictEqual(result.step?.gate, true, 'Gate should be true from meta');
|
|
278
|
+
});
|
|
279
|
+
it('should detect gate from <!-- GATE --> marker in content', () => {
|
|
280
|
+
const content = `<step-meta>
|
|
281
|
+
number: 2
|
|
282
|
+
name: marker-gate
|
|
283
|
+
</step-meta>
|
|
284
|
+
|
|
285
|
+
## Instructions
|
|
286
|
+
Do the thing.
|
|
287
|
+
|
|
288
|
+
<!-- GATE -->
|
|
289
|
+
- [C] Continue
|
|
290
|
+
- [R] Revise
|
|
291
|
+
`;
|
|
292
|
+
const result = parseStepFile(content);
|
|
293
|
+
assert.strictEqual(result.success, true);
|
|
294
|
+
assert.strictEqual(result.step?.gate, true, 'Gate should be true from marker');
|
|
295
|
+
});
|
|
296
|
+
it('should detect gate from marker when no meta block', () => {
|
|
297
|
+
const content = `# Step 3: Review
|
|
298
|
+
|
|
299
|
+
Do the review.
|
|
300
|
+
|
|
301
|
+
## Gate
|
|
302
|
+
|
|
303
|
+
<!-- GATE -->
|
|
304
|
+
- [C] Continue to next step
|
|
305
|
+
- [R] Revise this step
|
|
306
|
+
`;
|
|
307
|
+
const result = parseStepFile(content, 'step-03-review.md');
|
|
308
|
+
assert.strictEqual(result.success, true);
|
|
309
|
+
assert.strictEqual(result.step?.gate, true, 'Gate should be detected from marker');
|
|
310
|
+
});
|
|
311
|
+
it('should prefer meta gate: true over missing marker', () => {
|
|
312
|
+
const content = `<step-meta>
|
|
313
|
+
number: 1
|
|
314
|
+
name: meta-wins
|
|
315
|
+
gate: true
|
|
316
|
+
</step-meta>
|
|
317
|
+
|
|
318
|
+
No marker here, but meta says gate is true.
|
|
319
|
+
`;
|
|
320
|
+
const result = parseStepFile(content);
|
|
321
|
+
assert.strictEqual(result.success, true);
|
|
322
|
+
assert.strictEqual(result.step?.gate, true);
|
|
323
|
+
});
|
|
324
|
+
it('should prefer meta gate: false over marker in content', () => {
|
|
325
|
+
// Meta explicitly says no gate, even though marker exists
|
|
326
|
+
const content = `<step-meta>
|
|
327
|
+
number: 5
|
|
328
|
+
name: meta-overrides
|
|
329
|
+
gate: false
|
|
330
|
+
</step-meta>
|
|
331
|
+
|
|
332
|
+
## Gate Section
|
|
333
|
+
|
|
334
|
+
<!-- GATE -->
|
|
335
|
+
This marker should be ignored because meta says gate: false.
|
|
336
|
+
`;
|
|
337
|
+
const result = parseStepFile(content);
|
|
338
|
+
assert.strictEqual(result.success, true);
|
|
339
|
+
assert.strictEqual(result.step?.gate, false, 'Meta gate: false should override marker');
|
|
340
|
+
});
|
|
341
|
+
it('should handle multiple gate markers (use first occurrence)', () => {
|
|
342
|
+
const content = `<step-meta>
|
|
343
|
+
number: 1
|
|
344
|
+
name: multi-gate
|
|
345
|
+
</step-meta>
|
|
346
|
+
|
|
347
|
+
## First Gate
|
|
348
|
+
|
|
349
|
+
<!-- GATE -->
|
|
350
|
+
First gate marker.
|
|
351
|
+
|
|
352
|
+
## Second Gate
|
|
353
|
+
|
|
354
|
+
<!-- GATE -->
|
|
355
|
+
Second gate marker should not matter.
|
|
356
|
+
`;
|
|
357
|
+
const result = parseStepFile(content);
|
|
358
|
+
assert.strictEqual(result.success, true);
|
|
359
|
+
assert.strictEqual(result.step?.gate, true);
|
|
360
|
+
});
|
|
361
|
+
it('should detect gate marker with surrounding whitespace', () => {
|
|
362
|
+
const content = `<step-meta>
|
|
363
|
+
number: 1
|
|
364
|
+
name: whitespace-gate
|
|
365
|
+
</step-meta>
|
|
366
|
+
|
|
367
|
+
Content.
|
|
368
|
+
|
|
369
|
+
<!-- GATE -->
|
|
370
|
+
|
|
371
|
+
More content.
|
|
372
|
+
`;
|
|
373
|
+
const result = parseStepFile(content);
|
|
374
|
+
assert.strictEqual(result.success, true);
|
|
375
|
+
assert.strictEqual(result.step?.gate, true, 'Should detect marker with whitespace');
|
|
376
|
+
});
|
|
377
|
+
it('should not detect gate from similar but different markers', () => {
|
|
378
|
+
const content = `<step-meta>
|
|
379
|
+
number: 1
|
|
380
|
+
name: no-gate
|
|
381
|
+
</step-meta>
|
|
382
|
+
|
|
383
|
+
<!-- NOT A GATE -->
|
|
384
|
+
<!-- GATES -->
|
|
385
|
+
<!-- gate -->
|
|
386
|
+
<!--GATE-->
|
|
387
|
+
|
|
388
|
+
These are not the gate marker you're looking for.
|
|
389
|
+
`;
|
|
390
|
+
const result = parseStepFile(content);
|
|
391
|
+
assert.strictEqual(result.success, true);
|
|
392
|
+
// Only exact "<!-- GATE -->" should match (case sensitive, with spaces)
|
|
393
|
+
assert.strictEqual(result.step?.gate, false, 'Should not match similar markers');
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
describe('Edge Cases', () => {
|
|
397
|
+
it('should handle step-meta with only number', () => {
|
|
398
|
+
const content = `<step-meta>
|
|
399
|
+
number: 42
|
|
400
|
+
</step-meta>
|
|
401
|
+
|
|
402
|
+
Content.
|
|
403
|
+
`;
|
|
404
|
+
const result = parseStepFile(content, 'step-42-named-in-file.md');
|
|
405
|
+
assert.strictEqual(result.success, true);
|
|
406
|
+
assert.strictEqual(result.step?.number, 42);
|
|
407
|
+
// Name should come from filename since not in meta
|
|
408
|
+
assert.strictEqual(result.step?.name, 'named-in-file');
|
|
409
|
+
});
|
|
410
|
+
it('should handle step-meta with only name', () => {
|
|
411
|
+
const content = `<step-meta>
|
|
412
|
+
name: only-name
|
|
413
|
+
</step-meta>
|
|
414
|
+
|
|
415
|
+
Content.
|
|
416
|
+
`;
|
|
417
|
+
const result = parseStepFile(content, 'step-07-ignored.md');
|
|
418
|
+
assert.strictEqual(result.success, true);
|
|
419
|
+
// Number should come from filename since not in meta
|
|
420
|
+
assert.strictEqual(result.step?.number, 7);
|
|
421
|
+
assert.strictEqual(result.step?.name, 'only-name');
|
|
422
|
+
});
|
|
423
|
+
it('should handle unicode in content', () => {
|
|
424
|
+
const content = `<step-meta>
|
|
425
|
+
number: 1
|
|
426
|
+
name: unicode
|
|
427
|
+
</step-meta>
|
|
428
|
+
|
|
429
|
+
# こんにちは 🌍
|
|
430
|
+
|
|
431
|
+
Content with émojis 🎉 and spëcial çharacters.
|
|
432
|
+
`;
|
|
433
|
+
const result = parseStepFile(content);
|
|
434
|
+
assert.strictEqual(result.success, true);
|
|
435
|
+
assert.ok(result.step?.content.includes('こんにちは'));
|
|
436
|
+
assert.ok(result.step?.content.includes('🌍'));
|
|
437
|
+
});
|
|
438
|
+
it('should handle Windows line endings (CRLF)', () => {
|
|
439
|
+
const content = `<step-meta>\r\nnumber: 1\r\nname: crlf\r\n</step-meta>\r\n\r\nContent with CRLF.\r\n`;
|
|
440
|
+
const result = parseStepFile(content);
|
|
441
|
+
assert.strictEqual(result.success, true);
|
|
442
|
+
assert.strictEqual(result.step?.number, 1);
|
|
443
|
+
assert.strictEqual(result.step?.name, 'crlf');
|
|
444
|
+
});
|
|
445
|
+
it('should preserve indentation in content', () => {
|
|
446
|
+
const content = `<step-meta>
|
|
447
|
+
number: 1
|
|
448
|
+
name: indented
|
|
449
|
+
</step-meta>
|
|
450
|
+
|
|
451
|
+
indented line
|
|
452
|
+
double indented
|
|
453
|
+
\ttab indented
|
|
454
|
+
`;
|
|
455
|
+
const result = parseStepFile(content);
|
|
456
|
+
assert.strictEqual(result.success, true);
|
|
457
|
+
assert.ok(result.step?.content.includes(' indented line'));
|
|
458
|
+
assert.ok(result.step?.content.includes(' double indented'));
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
describe('parseStepFromPath', () => {
|
|
462
|
+
it('should be an async function', () => {
|
|
463
|
+
// This test verifies the function signature
|
|
464
|
+
assert.strictEqual(typeof parseStepFromPath, 'function');
|
|
465
|
+
// The actual file reading tests would need mock filesystem
|
|
466
|
+
// but we verify the function exists and returns a promise-like value
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
});
|
|
470
|
+
//# sourceMappingURL=step-parser.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-parser.test.js","sourceRoot":"","sources":["../../src/workflow/step-parser.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,yEAAyE;AACzE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAE9C,QAAQ,CAAC,2CAA2C,EA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ACrC,4CAA4C;YAC5C,MAAM,CAAC,WAAW,CAAC,OAAO,iBAAiB,EAAE,UAAU,CAAC,CAAC;YACzD,2DAA2D;YAC3D,qEAAqE;QACvE,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tri-Modal Support for MSSCI-12086
|
|
3
|
+
*
|
|
4
|
+
* Provides mode selection and path resolution for stepped workflows
|
|
5
|
+
* supporting create/validate/edit modes.
|
|
6
|
+
*/
|
|
7
|
+
import type { WorkflowDefinition } from './workflow-schema.js';
|
|
8
|
+
/**
|
|
9
|
+
* Valid tri-modal mode values
|
|
10
|
+
*/
|
|
11
|
+
export type TrimodalMode = 'create' | 'validate' | 'edit';
|
|
12
|
+
/**
|
|
13
|
+
* Result of parsing --mode flag from arguments
|
|
14
|
+
*/
|
|
15
|
+
export interface TrimodalParseResult {
|
|
16
|
+
/** Whether parsing succeeded */
|
|
17
|
+
success: boolean;
|
|
18
|
+
/** Parsed mode (undefined if no flag provided) */
|
|
19
|
+
mode?: TrimodalMode;
|
|
20
|
+
/** Error message if parsing failed */
|
|
21
|
+
error?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Result of validating a mode against a workflow
|
|
25
|
+
*/
|
|
26
|
+
export interface ModeValidationResult {
|
|
27
|
+
/** Whether the mode is valid for this workflow */
|
|
28
|
+
valid: boolean;
|
|
29
|
+
/** Error message if invalid */
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Result of resolving steps path for a mode
|
|
34
|
+
*/
|
|
35
|
+
export interface StepsPathResult {
|
|
36
|
+
/** Whether resolution succeeded */
|
|
37
|
+
success: boolean;
|
|
38
|
+
/** Resolved steps path */
|
|
39
|
+
path?: string;
|
|
40
|
+
/** Step file pattern */
|
|
41
|
+
pattern?: string;
|
|
42
|
+
/** Error message if resolution failed */
|
|
43
|
+
error?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Parse --mode flag from command line arguments
|
|
47
|
+
*
|
|
48
|
+
* Supports:
|
|
49
|
+
* - --mode create
|
|
50
|
+
* - --mode validate
|
|
51
|
+
* - --mode edit
|
|
52
|
+
* - --mode=create (equals syntax)
|
|
53
|
+
* - -m create (shorthand)
|
|
54
|
+
*
|
|
55
|
+
* @param args - Command line arguments
|
|
56
|
+
* @returns Parse result with mode or error
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseTrimodalFlag(args: string[]): TrimodalParseResult;
|
|
59
|
+
/**
|
|
60
|
+
* Validate that a mode is supported by a workflow
|
|
61
|
+
*
|
|
62
|
+
* @param mode - Mode to validate
|
|
63
|
+
* @param workflow - Workflow definition to check against
|
|
64
|
+
* @returns Validation result
|
|
65
|
+
*/
|
|
66
|
+
export declare function validateMode(mode: TrimodalMode, workflow: WorkflowDefinition): ModeValidationResult;
|
|
67
|
+
/**
|
|
68
|
+
* Resolve the steps path for a given mode
|
|
69
|
+
*
|
|
70
|
+
* Priority:
|
|
71
|
+
* 1. workflow.modes[mode] if defined
|
|
72
|
+
* 2. workflow.steps.path as fallback
|
|
73
|
+
*
|
|
74
|
+
* @param workflow - Workflow definition
|
|
75
|
+
* @param mode - Selected mode
|
|
76
|
+
* @returns Steps path result
|
|
77
|
+
*/
|
|
78
|
+
export declare function resolveStepsPath(workflow: WorkflowDefinition, mode: TrimodalMode): StepsPathResult;
|
|
79
|
+
/**
|
|
80
|
+
* Get the default mode for a workflow
|
|
81
|
+
*
|
|
82
|
+
* @param workflow - Workflow definition
|
|
83
|
+
* @returns Default mode ('create' if not specified, undefined for phased workflows)
|
|
84
|
+
*/
|
|
85
|
+
export declare function getDefaultMode(workflow: WorkflowDefinition): TrimodalMode | undefined;
|
|
86
|
+
//# sourceMappingURL=trimodal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trimodal.d.ts","s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