@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,543 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Story MSSCI-12085: Gate detection and approval flow
|
|
3
|
+
*
|
|
4
|
+
* Tests the unified gate detection system that combines three sources:
|
|
5
|
+
* 1. Workflow YAML: gates.after_steps array
|
|
6
|
+
* 2. Step-meta: gate: true field
|
|
7
|
+
* 3. Content marker: <!-- GATE --> in step content
|
|
8
|
+
*
|
|
9
|
+
* Also tests gate prompt extraction and decision recording in session files.
|
|
10
|
+
*
|
|
11
|
+
* Run with: npm test
|
|
12
|
+
*/
|
|
13
|
+
import { describe, it } from 'node:test';
|
|
14
|
+
import assert from 'node:assert';
|
|
15
|
+
// These imports will fail until implementation exists - confirms RED state
|
|
16
|
+
import { detectGate, extractGatePrompt, recordGateDecision, parseGateDecisions, formatGateDecisions, } from './gate-handler.js';
|
|
17
|
+
// =============================================================================
|
|
18
|
+
// AC1: Gates detected from all three sources
|
|
19
|
+
// =============================================================================
|
|
20
|
+
describe('MSSCI-12085: Gate Detection and Approval Flow', () => {
|
|
21
|
+
describe('AC1: Gates detected from all three sources', () => {
|
|
22
|
+
describe('Workflow YAML gates.after_steps', () => {
|
|
23
|
+
it('should detect gate when step number is in after_steps array', () => {
|
|
24
|
+
const result = detectGate({
|
|
25
|
+
stepNumber: 3,
|
|
26
|
+
afterSteps: [1, 3, 7],
|
|
27
|
+
stepMeta: { gate: false },
|
|
28
|
+
stepContent: 'No marker here.',
|
|
29
|
+
});
|
|
30
|
+
assert.strictEqual(result.isGate, true);
|
|
31
|
+
assert.strictEqual(result.source, 'workflow');
|
|
32
|
+
assert.strictEqual(result.stepNumber, 3);
|
|
33
|
+
});
|
|
34
|
+
it('should not detect gate when step number is not in after_steps', () => {
|
|
35
|
+
const result = detectGate({
|
|
36
|
+
stepNumber: 2,
|
|
37
|
+
afterSteps: [1, 3, 7],
|
|
38
|
+
stepMeta: { gate: false },
|
|
39
|
+
stepContent: 'No marker here.',
|
|
40
|
+
});
|
|
41
|
+
assert.strictEqual(result.isGate, false);
|
|
42
|
+
assert.strictEqual(result.source, null);
|
|
43
|
+
});
|
|
44
|
+
it('should handle empty after_steps array', () => {
|
|
45
|
+
const result = detectGate({
|
|
46
|
+
stepNumber: 1,
|
|
47
|
+
afterSteps: [],
|
|
48
|
+
stepMeta: {},
|
|
49
|
+
stepContent: 'Content.',
|
|
50
|
+
});
|
|
51
|
+
assert.strictEqual(result.isGate, false);
|
|
52
|
+
});
|
|
53
|
+
it('should handle undefined after_steps', () => {
|
|
54
|
+
const result = detectGate({
|
|
55
|
+
stepNumber: 1,
|
|
56
|
+
afterSteps: undefined,
|
|
57
|
+
stepMeta: {},
|
|
58
|
+
stepContent: 'Content.',
|
|
59
|
+
});
|
|
60
|
+
assert.strictEqual(result.isGate, false);
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
describe('Step-meta gate: true', () => {
|
|
64
|
+
it('should detect gate from step-meta gate: true', () => {
|
|
65
|
+
const result = detectGate({
|
|
66
|
+
stepNumber: 2,
|
|
67
|
+
afterSteps: [],
|
|
68
|
+
stepMeta: { gate: true },
|
|
69
|
+
stepContent: 'No marker.',
|
|
70
|
+
});
|
|
71
|
+
assert.strictEqual(result.isGate, true);
|
|
72
|
+
assert.strictEqual(result.source, 'step-meta');
|
|
73
|
+
});
|
|
74
|
+
it('should not detect gate when step-meta gate: false', () => {
|
|
75
|
+
const result = detectGate({
|
|
76
|
+
stepNumber: 2,
|
|
77
|
+
afterSteps: [],
|
|
78
|
+
stepMeta: { gate: false },
|
|
79
|
+
stepContent: 'No marker.',
|
|
80
|
+
});
|
|
81
|
+
assert.strictEqual(result.isGate, false);
|
|
82
|
+
});
|
|
83
|
+
it('should handle missing gate field in step-meta', () => {
|
|
84
|
+
const result = detectGate({
|
|
85
|
+
stepNumber: 2,
|
|
86
|
+
afterSteps: [],
|
|
87
|
+
stepMeta: { name: 'some-step' },
|
|
88
|
+
stepContent: 'No marker.',
|
|
89
|
+
});
|
|
90
|
+
assert.strictEqual(result.isGate, false);
|
|
91
|
+
});
|
|
92
|
+
it('should handle undefined step-meta', () => {
|
|
93
|
+
const result = detectGate({
|
|
94
|
+
stepNumber: 2,
|
|
95
|
+
afterSteps: [],
|
|
96
|
+
stepMeta: undefined,
|
|
97
|
+
stepContent: 'No marker.',
|
|
98
|
+
});
|
|
99
|
+
assert.strictEqual(result.isGate, false);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
describe('Content marker <!-- GATE -->', () => {
|
|
103
|
+
it('should detect gate from <!-- GATE --> marker in content', () => {
|
|
104
|
+
const result = detectGate({
|
|
105
|
+
stepNumber: 4,
|
|
106
|
+
afterSteps: [],
|
|
107
|
+
stepMeta: {},
|
|
108
|
+
stepContent: `## Instructions
|
|
109
|
+
Do the thing.
|
|
110
|
+
|
|
111
|
+
<!-- GATE -->
|
|
112
|
+
- [C] Continue
|
|
113
|
+
- [R] Revise
|
|
114
|
+
`,
|
|
115
|
+
});
|
|
116
|
+
assert.strictEqual(result.isGate, true);
|
|
117
|
+
assert.strictEqual(result.source, 'marker');
|
|
118
|
+
});
|
|
119
|
+
it('should detect gate from marker at start of content', () => {
|
|
120
|
+
const result = detectGate({
|
|
121
|
+
stepNumber: 1,
|
|
122
|
+
afterSteps: [],
|
|
123
|
+
stepMeta: {},
|
|
124
|
+
stepContent: `<!-- GATE -->
|
|
125
|
+
First line after marker.
|
|
126
|
+
`,
|
|
127
|
+
});
|
|
128
|
+
assert.strictEqual(result.isGate, true);
|
|
129
|
+
assert.strictEqual(result.source, 'marker');
|
|
130
|
+
});
|
|
131
|
+
it('should detect gate from marker at end of content', () => {
|
|
132
|
+
const result = detectGate({
|
|
133
|
+
stepNumber: 1,
|
|
134
|
+
afterSteps: [],
|
|
135
|
+
stepMeta: {},
|
|
136
|
+
stepContent: `Content here.
|
|
137
|
+
<!-- GATE -->`,
|
|
138
|
+
});
|
|
139
|
+
assert.strictEqual(result.isGate, true);
|
|
140
|
+
});
|
|
141
|
+
it('should detect gate from marker with surrounding whitespace', () => {
|
|
142
|
+
const result = detectGate({
|
|
143
|
+
stepNumber: 1,
|
|
144
|
+
afterSteps: [],
|
|
145
|
+
stepMeta: {},
|
|
146
|
+
stepContent: `Content.
|
|
147
|
+
|
|
148
|
+
<!-- GATE -->
|
|
149
|
+
|
|
150
|
+
More content.
|
|
151
|
+
`,
|
|
152
|
+
});
|
|
153
|
+
assert.strictEqual(result.isGate, true);
|
|
154
|
+
});
|
|
155
|
+
it('should not detect gate from similar but incorrect markers', () => {
|
|
156
|
+
const result = detectGate({
|
|
157
|
+
stepNumber: 1,
|
|
158
|
+
afterSteps: [],
|
|
159
|
+
stepMeta: {},
|
|
160
|
+
stepContent: `<!-- NOT A GATE -->
|
|
161
|
+
<!-- GATES -->
|
|
162
|
+
<!-- gate -->
|
|
163
|
+
<!--GATE-->
|
|
164
|
+
`,
|
|
165
|
+
});
|
|
166
|
+
assert.strictEqual(result.isGate, false);
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
describe('Combined sources (OR logic)', () => {
|
|
170
|
+
it('should detect gate when workflow AND step-meta indicate gate', () => {
|
|
171
|
+
const result = detectGate({
|
|
172
|
+
stepNumber: 3,
|
|
173
|
+
afterSteps: [3],
|
|
174
|
+
stepMeta: { gate: true },
|
|
175
|
+
stepContent: 'No marker.',
|
|
176
|
+
});
|
|
177
|
+
assert.strictEqual(result.isGate, true);
|
|
178
|
+
// Should report first detected source (workflow takes priority)
|
|
179
|
+
assert.strictEqual(result.source, 'workflow');
|
|
180
|
+
});
|
|
181
|
+
it('should detect gate when step-meta AND marker indicate gate', () => {
|
|
182
|
+
const result = detectGate({
|
|
183
|
+
stepNumber: 5,
|
|
184
|
+
afterSteps: [],
|
|
185
|
+
stepMeta: { gate: true },
|
|
186
|
+
stepContent: '<!-- GATE -->',
|
|
187
|
+
});
|
|
188
|
+
assert.strictEqual(result.isGate, true);
|
|
189
|
+
// step-meta takes priority over marker
|
|
190
|
+
assert.strictEqual(result.source, 'step-meta');
|
|
191
|
+
});
|
|
192
|
+
it('should detect gate when all three sources indicate gate', () => {
|
|
193
|
+
const result = detectGate({
|
|
194
|
+
stepNumber: 7,
|
|
195
|
+
afterSteps: [7],
|
|
196
|
+
stepMeta: { gate: true },
|
|
197
|
+
stepContent: '<!-- GATE -->',
|
|
198
|
+
});
|
|
199
|
+
assert.strictEqual(result.isGate, true);
|
|
200
|
+
// Workflow has highest priority
|
|
201
|
+
assert.strictEqual(result.source, 'workflow');
|
|
202
|
+
});
|
|
203
|
+
it('should not detect gate when no sources indicate gate', () => {
|
|
204
|
+
const result = detectGate({
|
|
205
|
+
stepNumber: 2,
|
|
206
|
+
afterSteps: [1, 3],
|
|
207
|
+
stepMeta: { gate: false },
|
|
208
|
+
stepContent: 'Plain content.',
|
|
209
|
+
});
|
|
210
|
+
assert.strictEqual(result.isGate, false);
|
|
211
|
+
assert.strictEqual(result.source, null);
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
// =============================================================================
|
|
216
|
+
// AC2: Gate prompt displayed to user
|
|
217
|
+
// =============================================================================
|
|
218
|
+
describe('AC2: Gate prompt displayed to user', () => {
|
|
219
|
+
it('should extract gate prompt from ## Gate Prompt section', () => {
|
|
220
|
+
const content = `# Step 3: Review
|
|
221
|
+
|
|
222
|
+
## Instructions
|
|
223
|
+
Do the review.
|
|
224
|
+
|
|
225
|
+
## Gate Prompt
|
|
226
|
+
Please verify the architecture design is complete and aligns with requirements.
|
|
227
|
+
|
|
228
|
+
## Next Steps
|
|
229
|
+
Continue to implementation.
|
|
230
|
+
`;
|
|
231
|
+
const prompt = extractGatePrompt(content);
|
|
232
|
+
assert.strictEqual(prompt, 'Please verify the architecture design is complete and aligns with requirements.');
|
|
233
|
+
});
|
|
234
|
+
it('should extract gate prompt from step-meta gate_prompt field', () => {
|
|
235
|
+
const content = 'Some content without a Gate Prompt section.';
|
|
236
|
+
const meta = {
|
|
237
|
+
number: 3,
|
|
238
|
+
name: 'review',
|
|
239
|
+
gate: true,
|
|
240
|
+
gate_prompt: 'Confirm the design is ready for implementation.',
|
|
241
|
+
};
|
|
242
|
+
const prompt = extractGatePrompt(content, meta);
|
|
243
|
+
assert.strictEqual(prompt, 'Confirm the design is ready for implementation.');
|
|
244
|
+
});
|
|
245
|
+
it('should prefer ## Gate Prompt section over meta gate_prompt', () => {
|
|
246
|
+
const content = `## Gate Prompt
|
|
247
|
+
Section prompt takes priority.
|
|
248
|
+
`;
|
|
249
|
+
const meta = {
|
|
250
|
+
gate_prompt: 'Meta prompt should be ignored.',
|
|
251
|
+
};
|
|
252
|
+
const prompt = extractGatePrompt(content, meta);
|
|
253
|
+
assert.strictEqual(prompt, 'Section prompt takes priority.');
|
|
254
|
+
});
|
|
255
|
+
it('should return default prompt when neither source present', () => {
|
|
256
|
+
const content = 'Content with no gate prompt section.';
|
|
257
|
+
const meta = { gate: true };
|
|
258
|
+
const prompt = extractGatePrompt(content, meta);
|
|
259
|
+
assert.strictEqual(prompt, 'Review the output above. Continue to next step or revise?');
|
|
260
|
+
});
|
|
261
|
+
it('should handle multi-line gate prompt section', () => {
|
|
262
|
+
const content = `## Gate Prompt
|
|
263
|
+
This is a multi-line prompt.
|
|
264
|
+
It spans several lines.
|
|
265
|
+
All should be included.
|
|
266
|
+
|
|
267
|
+
## Next Section
|
|
268
|
+
`;
|
|
269
|
+
const prompt = extractGatePrompt(content);
|
|
270
|
+
assert.ok(prompt.includes('This is a multi-line prompt.'));
|
|
271
|
+
assert.ok(prompt.includes('It spans several lines.'));
|
|
272
|
+
assert.ok(prompt.includes('All should be included.'));
|
|
273
|
+
// Should not include the next section
|
|
274
|
+
assert.ok(!prompt.includes('Next Section'));
|
|
275
|
+
});
|
|
276
|
+
it('should trim whitespace from extracted prompt', () => {
|
|
277
|
+
const content = `## Gate Prompt
|
|
278
|
+
|
|
279
|
+
Prompt with extra whitespace.
|
|
280
|
+
|
|
281
|
+
## Next Section
|
|
282
|
+
`;
|
|
283
|
+
const prompt = extractGatePrompt(content);
|
|
284
|
+
assert.strictEqual(prompt, 'Prompt with extra whitespace.');
|
|
285
|
+
});
|
|
286
|
+
it('should handle empty Gate Prompt section', () => {
|
|
287
|
+
const content = `## Gate Prompt
|
|
288
|
+
|
|
289
|
+
## Next Section
|
|
290
|
+
`;
|
|
291
|
+
const prompt = extractGatePrompt(content);
|
|
292
|
+
// Should return default since section is empty
|
|
293
|
+
assert.strictEqual(prompt, 'Review the output above. Continue to next step or revise?');
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
// =============================================================================
|
|
297
|
+
// AC3: User choice recorded in session
|
|
298
|
+
// =============================================================================
|
|
299
|
+
describe('AC3: User choice recorded in session', () => {
|
|
300
|
+
it('should record continue decision to session content', () => {
|
|
301
|
+
const sessionContent = `# Story Test
|
|
302
|
+
|
|
303
|
+
## Story Overview
|
|
304
|
+
- **Epic:** Test
|
|
305
|
+
|
|
306
|
+
## Workflow State
|
|
307
|
+
- **Current Step:** 3
|
|
308
|
+
|
|
309
|
+
## Acceptance Criteria
|
|
310
|
+
- [ ] AC1
|
|
311
|
+
`;
|
|
312
|
+
const decision = {
|
|
313
|
+
step: 3,
|
|
314
|
+
choice: 'continue',
|
|
315
|
+
timestamp: '2026-01-21T10:30:00.000Z',
|
|
316
|
+
};
|
|
317
|
+
const result = recordGateDecision(sessionContent, decision);
|
|
318
|
+
assert.ok(result.includes('## Gate Decisions'));
|
|
319
|
+
assert.ok(result.includes('| 3 | continue |'));
|
|
320
|
+
assert.ok(result.includes('2026-01-21T10:30:00.000Z'));
|
|
321
|
+
});
|
|
322
|
+
it('should record revise decision with notes', () => {
|
|
323
|
+
const sessionContent = `# Story Test
|
|
324
|
+
|
|
325
|
+
## Workflow State
|
|
326
|
+
- **Current Step:** 5
|
|
327
|
+
`;
|
|
328
|
+
const decision = {
|
|
329
|
+
step: 5,
|
|
330
|
+
choice: 'revise',
|
|
331
|
+
timestamp: '2026-01-21T11:45:00.000Z',
|
|
332
|
+
notes: 'Architecture needs rework',
|
|
333
|
+
};
|
|
334
|
+
const result = recordGateDecision(sessionContent, decision);
|
|
335
|
+
assert.ok(result.includes('| 5 | revise |'));
|
|
336
|
+
assert.ok(result.includes('Architecture needs rework'));
|
|
337
|
+
});
|
|
338
|
+
it('should append to existing Gate Decisions section', () => {
|
|
339
|
+
const sessionContent = `# Story Test
|
|
340
|
+
|
|
341
|
+
## Gate Decisions
|
|
342
|
+
| Step | Choice | Time | Notes |
|
|
343
|
+
|------|--------|------|-------|
|
|
344
|
+
| 3 | continue | 2026-01-21T10:30:00.000Z | - |
|
|
345
|
+
|
|
346
|
+
## Workflow State
|
|
347
|
+
`;
|
|
348
|
+
const decision = {
|
|
349
|
+
step: 7,
|
|
350
|
+
choice: 'continue',
|
|
351
|
+
timestamp: '2026-01-21T14:00:00.000Z',
|
|
352
|
+
};
|
|
353
|
+
const result = recordGateDecision(sessionContent, decision);
|
|
354
|
+
// Should have both decisions
|
|
355
|
+
assert.ok(result.includes('| 3 | continue |'));
|
|
356
|
+
assert.ok(result.includes('| 7 | continue |'));
|
|
357
|
+
});
|
|
358
|
+
it('should create Gate Decisions section if missing', () => {
|
|
359
|
+
const sessionContent = `# Story Test
|
|
360
|
+
|
|
361
|
+
## Workflow State
|
|
362
|
+
- **Current Step:** 1
|
|
363
|
+
`;
|
|
364
|
+
const decision = {
|
|
365
|
+
step: 1,
|
|
366
|
+
choice: 'continue',
|
|
367
|
+
timestamp: '2026-01-21T09:00:00.000Z',
|
|
368
|
+
};
|
|
369
|
+
const result = recordGateDecision(sessionContent, decision);
|
|
370
|
+
assert.ok(result.includes('## Gate Decisions'));
|
|
371
|
+
assert.ok(result.includes('| Step | Choice | Time | Notes |'));
|
|
372
|
+
assert.ok(result.includes('| 1 | continue |'));
|
|
373
|
+
});
|
|
374
|
+
it('should parse existing gate decisions from session', () => {
|
|
375
|
+
const sessionContent = `# Story Test
|
|
376
|
+
|
|
377
|
+
## Gate Decisions
|
|
378
|
+
| Step | Choice | Time | Notes |
|
|
379
|
+
|------|--------|------|-------|
|
|
380
|
+
| 3 | continue | 2026-01-21T10:30:00.000Z | Reviewed and approved |
|
|
381
|
+
| 7 | revise | 2026-01-21T11:45:00.000Z | Needs changes |
|
|
382
|
+
|
|
383
|
+
## Next Section
|
|
384
|
+
`;
|
|
385
|
+
const decisions = parseGateDecisions(sessionContent);
|
|
386
|
+
assert.strictEqual(decisions.length, 2);
|
|
387
|
+
assert.strictEqual(decisions[0].step, 3);
|
|
388
|
+
assert.strictEqual(decisions[0].choice, 'continue');
|
|
389
|
+
assert.strictEqual(decisions[0].notes, 'Reviewed and approved');
|
|
390
|
+
assert.strictEqual(decisions[1].step, 7);
|
|
391
|
+
assert.strictEqual(decisions[1].choice, 'revise');
|
|
392
|
+
});
|
|
393
|
+
it('should return empty array when no Gate Decisions section', () => {
|
|
394
|
+
const sessionContent = `# Story Test
|
|
395
|
+
|
|
396
|
+
## Workflow State
|
|
397
|
+
- **Current Step:** 1
|
|
398
|
+
`;
|
|
399
|
+
const decisions = parseGateDecisions(sessionContent);
|
|
400
|
+
assert.deepStrictEqual(decisions, []);
|
|
401
|
+
});
|
|
402
|
+
it('should handle notes with pipe characters', () => {
|
|
403
|
+
const decision = {
|
|
404
|
+
step: 2,
|
|
405
|
+
choice: 'continue',
|
|
406
|
+
timestamp: '2026-01-21T10:00:00.000Z',
|
|
407
|
+
notes: 'Option A | Option B were considered',
|
|
408
|
+
};
|
|
409
|
+
const formatted = formatGateDecisions([decision]);
|
|
410
|
+
// Pipe in notes should be escaped or handled
|
|
411
|
+
assert.ok(formatted.includes('| 2 | continue |'));
|
|
412
|
+
// The implementation should handle this gracefully
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
// =============================================================================
|
|
416
|
+
// AC4: Continue proceeds to next step normally
|
|
417
|
+
// =============================================================================
|
|
418
|
+
describe('AC4: Continue proceeds to next step normally', () => {
|
|
419
|
+
it('should return isGate: false when step has no gate', () => {
|
|
420
|
+
const result = detectGate({
|
|
421
|
+
stepNumber: 2,
|
|
422
|
+
afterSteps: [1, 5],
|
|
423
|
+
stepMeta: { gate: false },
|
|
424
|
+
stepContent: 'No marker.',
|
|
425
|
+
});
|
|
426
|
+
assert.strictEqual(result.isGate, false);
|
|
427
|
+
// No gate means continue normally
|
|
428
|
+
});
|
|
429
|
+
it('should include stepNumber in GateInfo for workflow tracking', () => {
|
|
430
|
+
const result = detectGate({
|
|
431
|
+
stepNumber: 4,
|
|
432
|
+
afterSteps: [4],
|
|
433
|
+
stepMeta: {},
|
|
434
|
+
stepContent: '',
|
|
435
|
+
});
|
|
436
|
+
assert.strictEqual(result.stepNumber, 4);
|
|
437
|
+
});
|
|
438
|
+
it('should include prompt in GateInfo when gate detected', () => {
|
|
439
|
+
const result = detectGate({
|
|
440
|
+
stepNumber: 3,
|
|
441
|
+
afterSteps: [3],
|
|
442
|
+
stepMeta: { gate_prompt: 'Custom prompt here.' },
|
|
443
|
+
stepContent: '',
|
|
444
|
+
});
|
|
445
|
+
assert.strictEqual(result.isGate, true);
|
|
446
|
+
assert.strictEqual(result.prompt, 'Custom prompt here.');
|
|
447
|
+
});
|
|
448
|
+
it('should include default prompt when no custom prompt provided', () => {
|
|
449
|
+
const result = detectGate({
|
|
450
|
+
stepNumber: 3,
|
|
451
|
+
afterSteps: [3],
|
|
452
|
+
stepMeta: {},
|
|
453
|
+
stepContent: 'No gate prompt section.',
|
|
454
|
+
});
|
|
455
|
+
assert.strictEqual(result.isGate, true);
|
|
456
|
+
assert.strictEqual(result.prompt, 'Review the output above. Continue to next step or revise?');
|
|
457
|
+
});
|
|
458
|
+
});
|
|
459
|
+
// =============================================================================
|
|
460
|
+
// Edge Cases
|
|
461
|
+
// =============================================================================
|
|
462
|
+
describe('Edge Cases', () => {
|
|
463
|
+
it('should handle step number 0', () => {
|
|
464
|
+
const result = detectGate({
|
|
465
|
+
stepNumber: 0,
|
|
466
|
+
afterSteps: [0],
|
|
467
|
+
stepMeta: {},
|
|
468
|
+
stepContent: '',
|
|
469
|
+
});
|
|
470
|
+
assert.strictEqual(result.isGate, true);
|
|
471
|
+
assert.strictEqual(result.stepNumber, 0);
|
|
472
|
+
});
|
|
473
|
+
it('should handle large step numbers', () => {
|
|
474
|
+
const result = detectGate({
|
|
475
|
+
stepNumber: 999,
|
|
476
|
+
afterSteps: [999],
|
|
477
|
+
stepMeta: {},
|
|
478
|
+
stepContent: '',
|
|
479
|
+
});
|
|
480
|
+
assert.strictEqual(result.isGate, true);
|
|
481
|
+
assert.strictEqual(result.stepNumber, 999);
|
|
482
|
+
});
|
|
483
|
+
it('should handle empty step content', () => {
|
|
484
|
+
const result = detectGate({
|
|
485
|
+
stepNumber: 1,
|
|
486
|
+
afterSteps: [],
|
|
487
|
+
stepMeta: {},
|
|
488
|
+
stepContent: '',
|
|
489
|
+
});
|
|
490
|
+
assert.strictEqual(result.isGate, false);
|
|
491
|
+
});
|
|
492
|
+
it('should handle null/undefined in meta gracefully', () => {
|
|
493
|
+
const result = detectGate({
|
|
494
|
+
stepNumber: 1,
|
|
495
|
+
afterSteps: [],
|
|
496
|
+
// @ts-expect-error - testing runtime null handling
|
|
497
|
+
stepMeta: null,
|
|
498
|
+
stepContent: 'Content.',
|
|
499
|
+
});
|
|
500
|
+
assert.strictEqual(result.isGate, false);
|
|
501
|
+
});
|
|
502
|
+
it('should handle very long gate prompt', () => {
|
|
503
|
+
const longPrompt = 'A'.repeat(10000);
|
|
504
|
+
const content = `## Gate Prompt
|
|
505
|
+
${longPrompt}
|
|
506
|
+
|
|
507
|
+
## Next
|
|
508
|
+
`;
|
|
509
|
+
const prompt = extractGatePrompt(content);
|
|
510
|
+
assert.strictEqual(prompt.length, 10000);
|
|
511
|
+
});
|
|
512
|
+
it('should handle unicode in gate decisions', () => {
|
|
513
|
+
const decision = {
|
|
514
|
+
step: 1,
|
|
515
|
+
choice: 'continue',
|
|
516
|
+
timestamp: '2026-01-21T10:00:00.000Z',
|
|
517
|
+
notes: '確認完了 ✓',
|
|
518
|
+
};
|
|
519
|
+
const formatted = formatGateDecisions([decision]);
|
|
520
|
+
assert.ok(formatted.includes('確認完了'));
|
|
521
|
+
assert.ok(formatted.includes('✓'));
|
|
522
|
+
});
|
|
523
|
+
it('should handle session content with Windows line endings', () => {
|
|
524
|
+
const sessionContent = `# Story Test\r\n\r\n## Gate Decisions\r\n| Step | Choice | Time | Notes |\r\n|------|--------|------|-------|\r\n| 1 | continue | 2026-01-21T10:00:00.000Z | - |\r\n`;
|
|
525
|
+
const decisions = parseGateDecisions(sessionContent);
|
|
526
|
+
assert.strictEqual(decisions.length, 1);
|
|
527
|
+
assert.strictEqual(decisions[0].step, 1);
|
|
528
|
+
});
|
|
529
|
+
it('should handle multiple Gate Prompt sections (use first)', () => {
|
|
530
|
+
const content = `## Gate Prompt
|
|
531
|
+
First prompt.
|
|
532
|
+
|
|
533
|
+
## Some Section
|
|
534
|
+
|
|
535
|
+
## Gate Prompt
|
|
536
|
+
Second prompt should be ignored.
|
|
537
|
+
`;
|
|
538
|
+
const prompt = extractGatePrompt(content);
|
|
539
|
+
assert.strictEqual(prompt, 'First prompt.');
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
//# sourceMappingURL=gate-handler.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-handler.test.js","sourceRoot":"","sources":["../../src/workflow/gate-handler.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,2EAA2E;AAC3E,OAAO,EAGL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,gFAAgF;AAChF,6CAA6C;AAC7C,gFAAgF;AAEhF,QAAQ,CAAC,+CAA+C,EAAE,GAAG,EAAE;IAC7D,QAAQ,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAE1D,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;YAC/C,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;gBACrE,MAAM,MAAM,GAAG,UAAU,CAAC;oBACx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CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;YACjE,MAAM,cAAc,GAAG,sKAAsK,CAAC;YAE9L,MAAM,SAAS,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;YAErD,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YACxC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;YACjE,MAAM,OAAO,GAAG;;;;;;;CAOrB,CAAC;YAEI,MAAM,MAAM,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAE1C,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -232,4 +232,50 @@ export declare function getHandoffBehavior(mode: HandoffMode): HandoffBehavior;
|
|
|
232
232
|
* @returns Markdown string for the handoff history section
|
|
233
233
|
*/
|
|
234
234
|
export declare function formatHandoffHistory(entry: HandoffHistoryEntry): string;
|
|
235
|
+
/**
|
|
236
|
+
* Threshold for context percentage to trigger context clear
|
|
237
|
+
* When auto mode is enabled and context exceeds this threshold, emit CONTEXT_CLEAR
|
|
238
|
+
*/
|
|
239
|
+
export declare const CONTEXT_CLEAR_THRESHOLD = 60;
|
|
240
|
+
/**
|
|
241
|
+
* Parameters for context clear marker decision
|
|
242
|
+
*/
|
|
243
|
+
export interface ContextClearParams {
|
|
244
|
+
/** Current handoff mode from settings */
|
|
245
|
+
handoffMode: HandoffMode;
|
|
246
|
+
/** Current context usage percentage (0-100) */
|
|
247
|
+
contextPercent: number;
|
|
248
|
+
/** Next agent to load after clear (for marker value) */
|
|
249
|
+
nextAgent?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Determine if CONTEXT_CLEAR marker should be emitted
|
|
253
|
+
*
|
|
254
|
+
* Returns true when:
|
|
255
|
+
* - handoffMode is 'auto'
|
|
256
|
+
* - contextPercent exceeds CONTEXT_CLEAR_THRESHOLD
|
|
257
|
+
*
|
|
258
|
+
* @param params - Context clear parameters
|
|
259
|
+
* @returns true if CONTEXT_CLEAR should be emitted
|
|
260
|
+
*/
|
|
261
|
+
export declare function shouldEmitContextClear(params: ContextClearParams): boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Format the CYCLIST marker for context clear or regular handoff
|
|
264
|
+
*
|
|
265
|
+
* When auto mode and high context: returns CONTEXT_CLEAR marker
|
|
266
|
+
* Otherwise: returns regular HANDOFF marker
|
|
267
|
+
*
|
|
268
|
+
* @param params - Context clear parameters including nextAgent
|
|
269
|
+
* @returns Marker string (<!-- CYCLIST:CONTEXT_CLEAR:/agent --> or <!-- CYCLIST:HANDOFF:/agent -->)
|
|
270
|
+
*/
|
|
271
|
+
export declare function formatContextClearMarker(params: ContextClearParams): string;
|
|
272
|
+
/**
|
|
273
|
+
* Format a human-readable output message for context clear handoffs
|
|
274
|
+
*
|
|
275
|
+
* Includes context percentage and the marker for Cyclist to detect
|
|
276
|
+
*
|
|
277
|
+
* @param params - Context clear parameters
|
|
278
|
+
* @returns Formatted output string for display
|
|
279
|
+
*/
|
|
280
|
+
export declare function formatContextClearOutput(params: ContextClearParams): string;
|
|
235
281
|
//# sourceMappingURL=generic-handoff.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-handoff.d.ts","sourceRoot":"","sources":["../../src/workflow/generic-handoff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,QA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