@pennyfarthing/core 11.3.2 → 11.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/packages/core/dist/cli/commands/doctor.d.ts +1 -9
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/doctor.js +51 -107
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +26 -1
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
- package/packages/core/dist/cli/utils/python.d.ts +0 -1
- package/packages/core/dist/cli/utils/python.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/python.js +1 -11
- package/packages/core/dist/cli/utils/python.js.map +1 -1
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.js +691 -0
- package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
- package/packages/core/dist/server/paths.d.ts.map +1 -1
- package/packages/core/dist/server/paths.js +0 -6
- package/packages/core/dist/server/paths.js.map +1 -1
- package/pennyfarthing-dist/agents/sm-finish.md +2 -2
- package/pennyfarthing-dist/agents/testing-runner.md +1 -1
- package/pennyfarthing-dist/commands/pf-prime.md +1 -1
- package/pennyfarthing-dist/commands/pf-setup.md +4 -2
- package/pennyfarthing-dist/guides/agent-behavior.md +1 -1
- package/pennyfarthing-dist/guides/bikerack.md +1 -1
- package/pennyfarthing-dist/guides/brownfield-tools.md +7 -7
- package/pennyfarthing-dist/guides/gates.md +3 -3
- package/pennyfarthing-dist/guides/handoff-cli.md +6 -6
- package/pennyfarthing-dist/guides/prime.md +6 -6
- package/pennyfarthing-dist/guides/scale-levels.md +1 -1
- package/pennyfarthing-dist/personas/themes/discworld.yaml +16 -24
- package/pennyfarthing-dist/personas/themes/firefly.yaml +4 -4
- package/pennyfarthing-dist/pf/CLAUDE.md +213 -0
- package/pennyfarthing-dist/pf/README.md +66 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/cli.py +242 -0
- package/pennyfarthing-dist/pf/bc/focus.py +334 -0
- package/pennyfarthing-dist/pf/bc/split.py +52 -0
- package/pennyfarthing-dist/pf/bellmode_hook.py +22 -0
- package/pennyfarthing-dist/pf/bikerack/__init__.py +44 -0
- package/pennyfarthing-dist/pf/bikerack/__main__.py +5 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +161 -0
- package/pennyfarthing-dist/pf/bikerack/background_panel.py +162 -0
- package/pennyfarthing-dist/pf/bikerack/changed_panel.py +201 -0
- package/pennyfarthing-dist/pf/bikerack/cli.py +145 -0
- package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +138 -0
- package/pennyfarthing-dist/pf/bikerack/debug_panel.py +248 -0
- package/pennyfarthing-dist/pf/bikerack/diffs_panel.py +409 -0
- package/pennyfarthing-dist/pf/bikerack/git_panel.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/launcher.py +240 -0
- package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/progress_panel.py +314 -0
- package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +435 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +247 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +177 -0
- package/pennyfarthing-dist/pf/bikerack/tui.py +935 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/cli.py +197 -0
- package/pennyfarthing-dist/pf/bmad/importer.py +200 -0
- package/pennyfarthing-dist/pf/bmad/sync.py +464 -0
- package/pennyfarthing-dist/pf/bmad/test_parser.py +253 -0
- package/pennyfarthing-dist/pf/bmad/test_sync.py +223 -0
- package/pennyfarthing-dist/pf/brownfield/__init__.py +35 -0
- package/pennyfarthing-dist/pf/brownfield/__main__.py +8 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/cli.py +130 -0
- package/pennyfarthing-dist/pf/cli.py +354 -0
- package/pennyfarthing-dist/pf/codemarkers/__init__.py +23 -0
- package/pennyfarthing-dist/pf/codemarkers/__main__.py +6 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/analyze.py +501 -0
- package/pennyfarthing-dist/pf/codemarkers/cli.py +179 -0
- package/pennyfarthing-dist/pf/codemarkers/formatters.py +88 -0
- package/pennyfarthing-dist/pf/common/__init__.py +48 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/pr_config.py +38 -0
- package/pennyfarthing-dist/pf/common/themes.py +253 -0
- package/pennyfarthing-dist/pf/complexity/__init__.py +15 -0
- package/pennyfarthing-dist/pf/complexity/__main__.py +6 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/analyze.py +207 -0
- package/pennyfarthing-dist/pf/complexity/cli.py +82 -0
- package/pennyfarthing-dist/pf/complexity/formatters.py +64 -0
- package/pennyfarthing-dist/pf/config.py +21 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/cli.py +149 -0
- package/pennyfarthing-dist/pf/deadcode/__main__.py +6 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/analyze.py +322 -0
- package/pennyfarthing-dist/pf/deadcode/cli.py +163 -0
- package/pennyfarthing-dist/pf/deadcode/formatters.py +106 -0
- package/pennyfarthing-dist/pf/dependencies/__init__.py +20 -0
- package/pennyfarthing-dist/pf/dependencies/__main__.py +5 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/analyze.py +155 -0
- package/pennyfarthing-dist/pf/dependencies/cli.py +76 -0
- package/pennyfarthing-dist/pf/dependencies/formatters.py +63 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/gate/cli.py +56 -0
- package/pennyfarthing-dist/pf/git/__init__.py +40 -0
- package/pennyfarthing-dist/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/create_branches.py +439 -0
- package/pennyfarthing-dist/pf/git/hooks_installer.py +151 -0
- package/pennyfarthing-dist/pf/git/repos.py +196 -0
- package/pennyfarthing-dist/pf/git/status_all.py +326 -0
- package/pennyfarthing-dist/pf/git/worktree.py +302 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/cli.py +203 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/cli.py +152 -0
- package/pennyfarthing-dist/pf/handoff/marker.py +109 -0
- package/pennyfarthing-dist/pf/handoff/phase_check.py +96 -0
- package/pennyfarthing-dist/pf/healthscore/__init__.py +21 -0
- package/pennyfarthing-dist/pf/healthscore/__main__.py +14 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/analyze.py +606 -0
- package/pennyfarthing-dist/pf/healthscore/cli.py +80 -0
- package/pennyfarthing-dist/pf/healthscore/formatters.py +46 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/bell_mode.py +214 -0
- package/pennyfarthing-dist/pf/hooks/cli.py +96 -0
- package/pennyfarthing-dist/pf/hooks/context_breaker.py +104 -0
- package/pennyfarthing-dist/pf/hooks/context_warning.py +66 -0
- package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +129 -0
- package/pennyfarthing-dist/pf/hooks/schema_validation.py +202 -0
- package/pennyfarthing-dist/pf/hooks/session_start.py +294 -0
- package/pennyfarthing-dist/pf/hooks/sprint_yaml_validation.py +97 -0
- package/pennyfarthing-dist/pf/hooks/statusline.py +429 -0
- package/pennyfarthing-dist/pf/hooks.py +32 -0
- package/pennyfarthing-dist/pf/hotspots/__init__.py +31 -0
- package/pennyfarthing-dist/pf/hotspots/__main__.py +6 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/analyze.py +613 -0
- package/pennyfarthing-dist/pf/hotspots/cli.py +154 -0
- package/pennyfarthing-dist/pf/hotspots/formatters.py +109 -0
- package/pennyfarthing-dist/pf/jira/__init__.py +97 -0
- package/pennyfarthing-dist/pf/jira/__main__.py +10 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/bidirectional.py +587 -0
- package/pennyfarthing-dist/pf/jira/claim.py +232 -0
- package/pennyfarthing-dist/pf/jira/cli.py +362 -0
- package/pennyfarthing-dist/pf/jira/client.py +802 -0
- package/pennyfarthing-dist/pf/jira/create.py +311 -0
- package/pennyfarthing-dist/pf/jira/epic.py +177 -0
- package/pennyfarthing-dist/pf/jira/operations.py +124 -0
- package/pennyfarthing-dist/pf/jira/reconcile.py +276 -0
- package/pennyfarthing-dist/pf/jira/story.py +221 -0
- package/pennyfarthing-dist/pf/jira/sync.py +350 -0
- package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +37 -0
- package/pennyfarthing-dist/pf/jira_epic_creation.py +30 -0
- package/pennyfarthing-dist/pf/jira_sync.py +36 -0
- package/pennyfarthing-dist/pf/jira_sync_story.py +30 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/cli.py +231 -0
- package/pennyfarthing-dist/pf/migration/__init__.py +39 -0
- package/pennyfarthing-dist/pf/migration/__main__.py +10 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/cli.py +304 -0
- package/pennyfarthing-dist/pf/migration/validate.py +285 -0
- package/pennyfarthing-dist/pf/output.py +37 -0
- package/pennyfarthing-dist/pf/patch_mode.py +449 -0
- package/pennyfarthing-dist/pf/preflight/__init__.py +17 -0
- package/pennyfarthing-dist/pf/preflight/__main__.py +10 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/cli.py +141 -0
- package/pennyfarthing-dist/pf/pretooluse_hook.py +10 -0
- package/pennyfarthing-dist/pf/prime/__init__.py +127 -0
- package/pennyfarthing-dist/pf/prime/__main__.py +8 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/cli.py +662 -0
- package/pennyfarthing-dist/pf/prime/heatmap.py +643 -0
- package/pennyfarthing-dist/pf/prime/loader.py +308 -0
- package/pennyfarthing-dist/pf/prime/persona.py +311 -0
- package/pennyfarthing-dist/pf/prime/session.py +183 -0
- package/pennyfarthing-dist/pf/prime/tiers.py +214 -0
- package/pennyfarthing-dist/pf/prime/workflow.py +317 -0
- package/pennyfarthing-dist/pf/schema_validation_hook.py +10 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/cli.py +87 -0
- package/pennyfarthing-dist/pf/session_start_hook.py +10 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/cli.py +55 -0
- package/pennyfarthing-dist/pf/settings/settings.py +98 -0
- package/pennyfarthing-dist/pf/sprint/__init__.py +64 -0
- package/pennyfarthing-dist/pf/sprint/__main__.py +10 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/archive.py +164 -0
- package/pennyfarthing-dist/pf/sprint/archive_epic.py +625 -0
- package/pennyfarthing-dist/pf/sprint/cli.py +2021 -0
- package/pennyfarthing-dist/pf/sprint/epic_add.py +186 -0
- package/pennyfarthing-dist/pf/sprint/epic_update.py +148 -0
- package/pennyfarthing-dist/pf/sprint/import_epic.py +455 -0
- package/pennyfarthing-dist/pf/sprint/loader.py +441 -0
- package/pennyfarthing-dist/pf/sprint/status.py +121 -0
- package/pennyfarthing-dist/pf/sprint/story_add.py +372 -0
- package/pennyfarthing-dist/pf/sprint/story_finish.py +227 -0
- package/pennyfarthing-dist/pf/sprint/story_update.py +222 -0
- package/pennyfarthing-dist/pf/sprint/validate_cmd.py +307 -0
- package/pennyfarthing-dist/pf/sprint/validator.py +694 -0
- package/pennyfarthing-dist/pf/sprint/work.py +229 -0
- package/pennyfarthing-dist/pf/story/__init__.py +65 -0
- package/pennyfarthing-dist/pf/story/__main__.py +10 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/cli.py +105 -0
- package/pennyfarthing-dist/pf/story/create.py +167 -0
- package/pennyfarthing-dist/pf/tests/__init__.py +1 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/conftest.py +105 -0
- package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +540 -0
- package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +339 -0
- package/pennyfarthing-dist/pf/tests/test_archive_epic.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_bc.py +490 -0
- package/pennyfarthing-dist/pf/tests/test_bikerack.py +785 -0
- package/pennyfarthing-dist/pf/tests/test_brownfield.py +839 -0
- package/pennyfarthing-dist/pf/tests/test_cli_modules.py +241 -0
- package/pennyfarthing-dist/pf/tests/test_cli_normalization.py +295 -0
- package/pennyfarthing-dist/pf/tests/test_codemarkers.py +687 -0
- package/pennyfarthing-dist/pf/tests/test_common.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +253 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +316 -0
- package/pennyfarthing-dist/pf/tests/test_dialogue_manager.py +810 -0
- package/pennyfarthing-dist/pf/tests/test_epic_shard_validation.py +699 -0
- package/pennyfarthing-dist/pf/tests/test_gate_file_resolution.py +341 -0
- package/pennyfarthing-dist/pf/tests/test_gate_runner.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_git_utils.py +863 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_cli.py +934 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_e2e.py +454 -0
- package/pennyfarthing-dist/pf/tests/test_healthscore.py +516 -0
- package/pennyfarthing-dist/pf/tests/test_jira_package.py +331 -0
- package/pennyfarthing-dist/pf/tests/test_package_structure.py +359 -0
- package/pennyfarthing-dist/pf/tests/test_patch_mode.py +826 -0
- package/pennyfarthing-dist/pf/tests/test_prime.py +1068 -0
- package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +460 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_package.py +397 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +610 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +779 -0
- package/pennyfarthing-dist/pf/tests/test_story_add.py +917 -0
- package/pennyfarthing-dist/pf/tests/test_story_package.py +153 -0
- package/pennyfarthing-dist/pf/tests/test_story_update.py +764 -0
- package/pennyfarthing-dist/pf/tests/test_tiers.py +1091 -0
- package/pennyfarthing-dist/pf/tests/test_token_counting.py +565 -0
- package/pennyfarthing-dist/pf/tests/test_topology_loader.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_tui_focus.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_tui_panel_persistence.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_validate_cmd.py +495 -0
- package/pennyfarthing-dist/pf/tests/test_version_sentinel.py +122 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_check.py +338 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_list_team.py +143 -0
- package/pennyfarthing-dist/pf/tests/test_yaml_io.py +812 -0
- package/pennyfarthing-dist/pf/theme/__main__.py +6 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/cli.py +310 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/agent.py +239 -0
- package/pennyfarthing-dist/pf/validate/adapters/schema.py +30 -0
- package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +491 -0
- package/pennyfarthing-dist/pf/validate/adapters/sprint.py +69 -0
- package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +254 -0
- package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +323 -0
- package/pennyfarthing-dist/pf/validate/adapters/workflow.py +403 -0
- package/pennyfarthing-dist/pf/validate/cli.py +164 -0
- package/pennyfarthing-dist/pf/welcome_hook.py +10 -0
- package/pennyfarthing-dist/pf/workflow/__init__.py +40 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/cli.py +1101 -0
- package/pennyfarthing-dist/pf/workflow/helpers.py +241 -0
- package/pennyfarthing-dist/pyproject.toml +18 -0
- package/pennyfarthing-dist/scripts/core/agent-session.sh +3 -3
- package/pennyfarthing-dist/scripts/core/check-context.sh +8 -8
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +3 -3
- package/pennyfarthing-dist/scripts/jira/README.md +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +1 -1
- package/pennyfarthing-dist/scripts/lib/common.sh +3 -3
- package/pennyfarthing-dist/scripts/lib/run-pf.sh +11 -13
- package/pennyfarthing-dist/scripts/sprint/README.md +1 -1
- package/pennyfarthing-dist/scripts/story/create-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/size-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/story-template.sh +1 -1
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +3 -3
- package/pennyfarthing-dist/templates/pyproject.toml +3 -3
- package/pennyfarthing-dist/workflows/project-setup/steps/step-08-theme-packs.md +1 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-jira.md +92 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-cyclist.md +245 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-11-complete.md +205 -0
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts +0 -16
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js +0 -377
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
- package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.js +0 -217
- package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
- package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts +0 -65
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.js +0 -190
- package/packages/core/dist/workflow/workflow-graph-validation.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts +0 -18
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.js +0 -706
- package/packages/core/dist/workflow/workflow-graph-validation.test.js.map +0 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-cyclist.md +0 -245
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-complete.md +0 -204
- package/pennyfarthing_scripts/CLAUDE.md +0 -213
- package/pennyfarthing_scripts/README.md +0 -66
- package/pennyfarthing_scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/cli.py +0 -242
- package/pennyfarthing_scripts/bc/focus.py +0 -334
- package/pennyfarthing_scripts/bc/split.py +0 -52
- package/pennyfarthing_scripts/bellmode_hook.py +0 -22
- package/pennyfarthing_scripts/bikerack/__init__.py +0 -44
- package/pennyfarthing_scripts/bikerack/__main__.py +0 -5
- package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/audit_log_panel.py +0 -161
- package/pennyfarthing_scripts/bikerack/background_panel.py +0 -162
- package/pennyfarthing_scripts/bikerack/changed_panel.py +0 -201
- package/pennyfarthing_scripts/bikerack/cli.py +0 -145
- package/pennyfarthing_scripts/bikerack/context_meter_footer.py +0 -138
- package/pennyfarthing_scripts/bikerack/debug_panel.py +0 -248
- package/pennyfarthing_scripts/bikerack/diffs_panel.py +0 -409
- package/pennyfarthing_scripts/bikerack/git_panel.py +0 -139
- package/pennyfarthing_scripts/bikerack/launcher.py +0 -240
- package/pennyfarthing_scripts/bikerack/portrait_resolver.py +0 -139
- package/pennyfarthing_scripts/bikerack/progress_panel.py +0 -314
- package/pennyfarthing_scripts/bikerack/sprint_panel.py +0 -435
- package/pennyfarthing_scripts/bikerack/story_detail_data.py +0 -247
- package/pennyfarthing_scripts/bikerack/story_detail_screen.py +0 -177
- package/pennyfarthing_scripts/bikerack/tui.py +0 -935
- package/pennyfarthing_scripts/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/parser.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_parser.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_sync.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/cli.py +0 -197
- package/pennyfarthing_scripts/bmad/importer.py +0 -200
- package/pennyfarthing_scripts/bmad/sync.py +0 -464
- package/pennyfarthing_scripts/bmad/test_parser.py +0 -253
- package/pennyfarthing_scripts/bmad/test_sync.py +0 -223
- package/pennyfarthing_scripts/brownfield/__init__.py +0 -35
- package/pennyfarthing_scripts/brownfield/__main__.py +0 -8
- package/pennyfarthing_scripts/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/cli.py +0 -130
- package/pennyfarthing_scripts/cli.py +0 -354
- package/pennyfarthing_scripts/codemarkers/__init__.py +0 -23
- package/pennyfarthing_scripts/codemarkers/__main__.py +0 -6
- package/pennyfarthing_scripts/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/analyze.py +0 -501
- package/pennyfarthing_scripts/codemarkers/cli.py +0 -179
- package/pennyfarthing_scripts/codemarkers/formatters.py +0 -88
- package/pennyfarthing_scripts/common/__init__.py +0 -48
- package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/pr_config.py +0 -38
- package/pennyfarthing_scripts/common/themes.py +0 -253
- package/pennyfarthing_scripts/complexity/__init__.py +0 -15
- package/pennyfarthing_scripts/complexity/__main__.py +0 -6
- package/pennyfarthing_scripts/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/analyze.py +0 -207
- package/pennyfarthing_scripts/complexity/cli.py +0 -82
- package/pennyfarthing_scripts/complexity/formatters.py +0 -64
- package/pennyfarthing_scripts/config.py +0 -21
- package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/cli.py +0 -149
- package/pennyfarthing_scripts/deadcode/__main__.py +0 -6
- package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/analyze.py +0 -322
- package/pennyfarthing_scripts/deadcode/cli.py +0 -163
- package/pennyfarthing_scripts/deadcode/formatters.py +0 -106
- package/pennyfarthing_scripts/dependencies/__init__.py +0 -20
- package/pennyfarthing_scripts/dependencies/__main__.py +0 -5
- package/pennyfarthing_scripts/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/analyze.py +0 -155
- package/pennyfarthing_scripts/dependencies/cli.py +0 -76
- package/pennyfarthing_scripts/dependencies/formatters.py +0 -63
- package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/cli.py +0 -56
- package/pennyfarthing_scripts/git/__init__.py +0 -40
- package/pennyfarthing_scripts/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/repos.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/worktree.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/create_branches.py +0 -439
- package/pennyfarthing_scripts/git/hooks_installer.py +0 -151
- package/pennyfarthing_scripts/git/repos.py +0 -196
- package/pennyfarthing_scripts/git/status_all.py +0 -326
- package/pennyfarthing_scripts/git/worktree.py +0 -302
- package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/cli.py +0 -203
- package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/cli.py +0 -152
- package/pennyfarthing_scripts/handoff/marker.py +0 -109
- package/pennyfarthing_scripts/handoff/phase_check.py +0 -96
- package/pennyfarthing_scripts/healthscore/__init__.py +0 -21
- package/pennyfarthing_scripts/healthscore/__main__.py +0 -14
- package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/analyze.py +0 -606
- package/pennyfarthing_scripts/healthscore/cli.py +0 -80
- package/pennyfarthing_scripts/healthscore/formatters.py +0 -46
- package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/bell_mode.py +0 -214
- package/pennyfarthing_scripts/hooks/cli.py +0 -96
- package/pennyfarthing_scripts/hooks/context_breaker.py +0 -104
- package/pennyfarthing_scripts/hooks/context_warning.py +0 -66
- package/pennyfarthing_scripts/hooks/cyclist_pretooluse.py +0 -129
- package/pennyfarthing_scripts/hooks/schema_validation.py +0 -202
- package/pennyfarthing_scripts/hooks/session_start.py +0 -294
- package/pennyfarthing_scripts/hooks/sprint_yaml_validation.py +0 -97
- package/pennyfarthing_scripts/hooks/statusline.py +0 -429
- package/pennyfarthing_scripts/hooks.py +0 -32
- package/pennyfarthing_scripts/hotspots/__init__.py +0 -31
- package/pennyfarthing_scripts/hotspots/__main__.py +0 -6
- package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/analyze.py +0 -613
- package/pennyfarthing_scripts/hotspots/cli.py +0 -154
- package/pennyfarthing_scripts/hotspots/formatters.py +0 -109
- package/pennyfarthing_scripts/jira/__init__.py +0 -97
- package/pennyfarthing_scripts/jira/__main__.py +0 -10
- package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/bidirectional.py +0 -587
- package/pennyfarthing_scripts/jira/claim.py +0 -232
- package/pennyfarthing_scripts/jira/cli.py +0 -362
- package/pennyfarthing_scripts/jira/client.py +0 -790
- package/pennyfarthing_scripts/jira/create.py +0 -311
- package/pennyfarthing_scripts/jira/epic.py +0 -177
- package/pennyfarthing_scripts/jira/operations.py +0 -124
- package/pennyfarthing_scripts/jira/reconcile.py +0 -276
- package/pennyfarthing_scripts/jira/story.py +0 -221
- package/pennyfarthing_scripts/jira/sync.py +0 -350
- package/pennyfarthing_scripts/jira_bidirectional_sync.py +0 -37
- package/pennyfarthing_scripts/jira_epic_creation.py +0 -30
- package/pennyfarthing_scripts/jira_sync.py +0 -36
- package/pennyfarthing_scripts/jira_sync_story.py +0 -30
- package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/cli.py +0 -231
- package/pennyfarthing_scripts/migration/__init__.py +0 -39
- package/pennyfarthing_scripts/migration/__main__.py +0 -10
- package/pennyfarthing_scripts/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/cli.py +0 -304
- package/pennyfarthing_scripts/migration/validate.py +0 -285
- package/pennyfarthing_scripts/output.py +0 -37
- package/pennyfarthing_scripts/patch_mode.py +0 -449
- package/pennyfarthing_scripts/preflight/__init__.py +0 -17
- package/pennyfarthing_scripts/preflight/__main__.py +0 -10
- package/pennyfarthing_scripts/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/cli.py +0 -141
- package/pennyfarthing_scripts/pretooluse_hook.py +0 -10
- package/pennyfarthing_scripts/prime/__init__.py +0 -127
- package/pennyfarthing_scripts/prime/__main__.py +0 -8
- package/pennyfarthing_scripts/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/heatmap.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/cli.py +0 -662
- package/pennyfarthing_scripts/prime/heatmap.py +0 -643
- package/pennyfarthing_scripts/prime/loader.py +0 -308
- package/pennyfarthing_scripts/prime/persona.py +0 -311
- package/pennyfarthing_scripts/prime/session.py +0 -183
- package/pennyfarthing_scripts/prime/tiers.py +0 -214
- package/pennyfarthing_scripts/prime/workflow.py +0 -317
- package/pennyfarthing_scripts/schema_validation_hook.py +0 -10
- package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/cli.py +0 -87
- package/pennyfarthing_scripts/session_start_hook.py +0 -10
- package/pennyfarthing_scripts/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/cli.py +0 -55
- package/pennyfarthing_scripts/settings/settings.py +0 -98
- package/pennyfarthing_scripts/sprint/__init__.py +0 -64
- package/pennyfarthing_scripts/sprint/__main__.py +0 -10
- package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/archive.py +0 -164
- package/pennyfarthing_scripts/sprint/archive_epic.py +0 -625
- package/pennyfarthing_scripts/sprint/cli.py +0 -2021
- package/pennyfarthing_scripts/sprint/epic_add.py +0 -186
- package/pennyfarthing_scripts/sprint/epic_update.py +0 -148
- package/pennyfarthing_scripts/sprint/import_epic.py +0 -455
- package/pennyfarthing_scripts/sprint/loader.py +0 -441
- package/pennyfarthing_scripts/sprint/status.py +0 -121
- package/pennyfarthing_scripts/sprint/story_add.py +0 -372
- package/pennyfarthing_scripts/sprint/story_finish.py +0 -227
- package/pennyfarthing_scripts/sprint/story_update.py +0 -222
- package/pennyfarthing_scripts/sprint/validate_cmd.py +0 -307
- package/pennyfarthing_scripts/sprint/validator.py +0 -694
- package/pennyfarthing_scripts/sprint/work.py +0 -229
- package/pennyfarthing_scripts/story/__init__.py +0 -65
- package/pennyfarthing_scripts/story/__main__.py +0 -10
- package/pennyfarthing_scripts/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/cli.py +0 -105
- package/pennyfarthing_scripts/story/create.py +0 -167
- package/pennyfarthing_scripts/tests/__init__.py +0 -1
- package/pennyfarthing_scripts/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/conftest.py +0 -105
- package/pennyfarthing_scripts/tests/test_108_1_gate_migration.py +0 -540
- package/pennyfarthing_scripts/tests/test_108_2_remove_handoff_fallback.py +0 -339
- package/pennyfarthing_scripts/tests/test_archive_epic.py +0 -185
- package/pennyfarthing_scripts/tests/test_bc.py +0 -490
- package/pennyfarthing_scripts/tests/test_bikerack.py +0 -785
- package/pennyfarthing_scripts/tests/test_brownfield.py +0 -839
- package/pennyfarthing_scripts/tests/test_cli_modules.py +0 -241
- package/pennyfarthing_scripts/tests/test_cli_normalization.py +0 -295
- package/pennyfarthing_scripts/tests/test_codemarkers.py +0 -687
- package/pennyfarthing_scripts/tests/test_common.py +0 -185
- package/pennyfarthing_scripts/tests/test_confidence_sm_evaluation.py +0 -253
- package/pennyfarthing_scripts/tests/test_confidence_sm_gate.py +0 -316
- package/pennyfarthing_scripts/tests/test_dialogue_manager.py +0 -810
- package/pennyfarthing_scripts/tests/test_epic_shard_validation.py +0 -699
- package/pennyfarthing_scripts/tests/test_gate_file_resolution.py +0 -341
- package/pennyfarthing_scripts/tests/test_gate_runner.py +0 -620
- package/pennyfarthing_scripts/tests/test_git_utils.py +0 -863
- package/pennyfarthing_scripts/tests/test_handoff_cli.py +0 -934
- package/pennyfarthing_scripts/tests/test_handoff_e2e.py +0 -454
- package/pennyfarthing_scripts/tests/test_healthscore.py +0 -516
- package/pennyfarthing_scripts/tests/test_jira_package.py +0 -331
- package/pennyfarthing_scripts/tests/test_package_structure.py +0 -359
- package/pennyfarthing_scripts/tests/test_patch_mode.py +0 -826
- package/pennyfarthing_scripts/tests/test_prime.py +0 -1068
- package/pennyfarthing_scripts/tests/test_resolve_gate_file_field.py +0 -462
- package/pennyfarthing_scripts/tests/test_sprint_package.py +0 -397
- package/pennyfarthing_scripts/tests/test_sprint_panel.py +0 -610
- package/pennyfarthing_scripts/tests/test_sprint_validator.py +0 -779
- package/pennyfarthing_scripts/tests/test_story_add.py +0 -917
- package/pennyfarthing_scripts/tests/test_story_package.py +0 -153
- package/pennyfarthing_scripts/tests/test_story_update.py +0 -764
- package/pennyfarthing_scripts/tests/test_tiers.py +0 -1091
- package/pennyfarthing_scripts/tests/test_token_counting.py +0 -565
- package/pennyfarthing_scripts/tests/test_topology_loader.py +0 -620
- package/pennyfarthing_scripts/tests/test_tui_focus.py +0 -411
- package/pennyfarthing_scripts/tests/test_tui_panel_persistence.py +0 -411
- package/pennyfarthing_scripts/tests/test_validate_cmd.py +0 -495
- package/pennyfarthing_scripts/tests/test_version_sentinel.py +0 -122
- package/pennyfarthing_scripts/tests/test_workflow_check.py +0 -338
- package/pennyfarthing_scripts/tests/test_workflow_list_team.py +0 -143
- package/pennyfarthing_scripts/tests/test_yaml_io.py +0 -812
- package/pennyfarthing_scripts/theme/__main__.py +0 -6
- package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/cli.py +0 -310
- package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/agent.py +0 -239
- package/pennyfarthing_scripts/validate/adapters/schema.py +0 -30
- package/pennyfarthing_scripts/validate/adapters/skill_command.py +0 -491
- package/pennyfarthing_scripts/validate/adapters/sprint.py +0 -69
- package/pennyfarthing_scripts/validate/adapters/tandem_awareness.py +0 -254
- package/pennyfarthing_scripts/validate/adapters/team_mode.py +0 -323
- package/pennyfarthing_scripts/validate/adapters/workflow.py +0 -403
- package/pennyfarthing_scripts/validate/cli.py +0 -164
- package/pennyfarthing_scripts/welcome_hook.py +0 -10
- package/pennyfarthing_scripts/workflow/__init__.py +0 -40
- package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/cli.py +0 -1101
- package/pennyfarthing_scripts/workflow/helpers.py +0 -241
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bc/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/base_panel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/events.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/ws_client.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/parser.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/brownfield/discover.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/codemarkers/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/config.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/output.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/complexity/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/dialogue_manager.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/context.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/dependencies/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/cli.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/validate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/git_group/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/complete_phase.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_file.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_runner.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/resolve_gate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/healthscore/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/pre_edit_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/reflector_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/session_stop.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hotspots/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/launch/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/session.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/skill.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/step.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/preflight/finish.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/version_sentinel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/session/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/settings/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/sprint/yaml_io.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/size.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/template.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/swebench.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/theme/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/adapters/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/scale.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/state.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/team_lifecycle.py +0 -0
|
@@ -0,0 +1,1101 @@
|
|
|
1
|
+
"""Workflow CLI — phase management, stepped workflow control, and state queries.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
pf workflow check [--json]
|
|
5
|
+
pf workflow phase-check WORKFLOW PHASE
|
|
6
|
+
pf workflow handoff NEXT_AGENT
|
|
7
|
+
pf workflow type WORKFLOW
|
|
8
|
+
pf workflow list
|
|
9
|
+
pf workflow show [NAME]
|
|
10
|
+
pf workflow start NAME [--mode MODE]
|
|
11
|
+
pf workflow resume [NAME]
|
|
12
|
+
pf workflow status [NAME]
|
|
13
|
+
pf workflow fix-phase STORY_ID PHASE [--dry-run]
|
|
14
|
+
pf workflow complete-step [NAME] [--step N]
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
19
|
+
from datetime import UTC
|
|
20
|
+
|
|
21
|
+
import click
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@click.group()
|
|
25
|
+
def workflow():
|
|
26
|
+
"""Workflow state and phase management.
|
|
27
|
+
|
|
28
|
+
\b
|
|
29
|
+
Commands:
|
|
30
|
+
check - Check current workflow state
|
|
31
|
+
phase-check - Verify phase ownership
|
|
32
|
+
handoff - Emit handoff marker
|
|
33
|
+
type - Get workflow type (phased/stepped/procedural)
|
|
34
|
+
list - List all available workflows
|
|
35
|
+
show - Show workflow details
|
|
36
|
+
start - Start a stepped workflow
|
|
37
|
+
resume - Resume an interrupted workflow
|
|
38
|
+
status - Show stepped workflow progress
|
|
39
|
+
fix-phase - Repair session phase tracking
|
|
40
|
+
complete-step - Complete current step in stepped workflow
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# ---------------------------------------------------------------------------
|
|
46
|
+
# Existing commands (migrated from inline cli.py)
|
|
47
|
+
# ---------------------------------------------------------------------------
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@workflow.command("check")
|
|
51
|
+
@click.option("--json", "output_json", is_flag=True, help="Output as JSON")
|
|
52
|
+
def workflow_check(output_json: bool):
|
|
53
|
+
"""Check current workflow state.
|
|
54
|
+
|
|
55
|
+
Returns the current story ID, phase, and workflow state.
|
|
56
|
+
"""
|
|
57
|
+
from pf.workflow.state import get_workflow_state
|
|
58
|
+
|
|
59
|
+
state = get_workflow_state()
|
|
60
|
+
|
|
61
|
+
if output_json:
|
|
62
|
+
import json
|
|
63
|
+
|
|
64
|
+
click.echo(json.dumps(state, indent=2))
|
|
65
|
+
else:
|
|
66
|
+
click.echo(f"State: {state.get('state', 'unknown')}")
|
|
67
|
+
if state.get("story_id"):
|
|
68
|
+
click.echo(f"Story: {state['story_id']}")
|
|
69
|
+
if state.get("workflow"):
|
|
70
|
+
click.echo(f"Workflow: {state['workflow']}")
|
|
71
|
+
if state.get("phase"):
|
|
72
|
+
click.echo(f"Phase: {state['phase']}")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@workflow.command("phase-check")
|
|
76
|
+
@click.argument("workflow_name")
|
|
77
|
+
@click.argument("phase")
|
|
78
|
+
def workflow_phase_check(workflow_name: str, phase: str):
|
|
79
|
+
"""Check which agent owns a workflow phase.
|
|
80
|
+
|
|
81
|
+
\b
|
|
82
|
+
Arguments:
|
|
83
|
+
WORKFLOW_NAME - The workflow type (tdd, trivial, etc.)
|
|
84
|
+
PHASE - The phase to check (red, implement, review, etc.)
|
|
85
|
+
"""
|
|
86
|
+
from pf.workflow.state import get_phase_owner
|
|
87
|
+
|
|
88
|
+
owner = get_phase_owner(workflow_name, phase)
|
|
89
|
+
click.echo(owner)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@workflow.command("handoff")
|
|
93
|
+
@click.argument("next_agent")
|
|
94
|
+
def workflow_handoff(next_agent: str):
|
|
95
|
+
"""Emit an environment-aware handoff marker.
|
|
96
|
+
|
|
97
|
+
Delegates to generate_marker() which detects Cyclist, relay mode,
|
|
98
|
+
and context usage to choose the appropriate marker type.
|
|
99
|
+
|
|
100
|
+
\b
|
|
101
|
+
Arguments:
|
|
102
|
+
NEXT_AGENT - The agent to hand off to (tea, dev, reviewer, etc.)
|
|
103
|
+
"""
|
|
104
|
+
from pf.handoff.marker import generate_marker
|
|
105
|
+
|
|
106
|
+
click.echo(generate_marker(next_agent))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# ---------------------------------------------------------------------------
|
|
110
|
+
# New commands (migrated from bash scripts)
|
|
111
|
+
# ---------------------------------------------------------------------------
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@workflow.command("type")
|
|
115
|
+
@click.argument("workflow_name")
|
|
116
|
+
def workflow_type_cmd(workflow_name: str):
|
|
117
|
+
"""Get workflow type (phased, stepped, or procedural).
|
|
118
|
+
|
|
119
|
+
\b
|
|
120
|
+
Arguments:
|
|
121
|
+
WORKFLOW_NAME - Workflow name (e.g., tdd, architecture)
|
|
122
|
+
"""
|
|
123
|
+
from pf.workflow.helpers import (
|
|
124
|
+
find_workflow_file,
|
|
125
|
+
get_workflow_type,
|
|
126
|
+
get_workflows_dir,
|
|
127
|
+
load_workflow_data,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
workflows_dir = get_workflows_dir()
|
|
131
|
+
wf_file = find_workflow_file(workflows_dir, workflow_name)
|
|
132
|
+
if not wf_file:
|
|
133
|
+
click.echo(f"Error: Workflow '{workflow_name}' not found", err=True)
|
|
134
|
+
raise SystemExit(1)
|
|
135
|
+
|
|
136
|
+
data = load_workflow_data(wf_file)
|
|
137
|
+
click.echo(get_workflow_type(data))
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@workflow.command("list")
|
|
141
|
+
def workflow_list_cmd():
|
|
142
|
+
"""List all available workflows.
|
|
143
|
+
|
|
144
|
+
Shows a markdown table with type, phases/steps, modes, and descriptions.
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
from pf.workflow.helpers import (
|
|
148
|
+
count_steps,
|
|
149
|
+
get_workflows_dir,
|
|
150
|
+
load_workflow_data,
|
|
151
|
+
resolve_steps_path,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
workflows_dir = get_workflows_dir()
|
|
155
|
+
|
|
156
|
+
if not workflows_dir.is_dir():
|
|
157
|
+
click.echo(f"Error: Workflows directory not found at {workflows_dir}", err=True)
|
|
158
|
+
raise SystemExit(1)
|
|
159
|
+
|
|
160
|
+
# Collect workflow files: top-level *.yaml and nested workflow.yaml
|
|
161
|
+
workflow_files = sorted(workflows_dir.glob("*.yaml"))
|
|
162
|
+
for subdir in sorted(workflows_dir.iterdir()):
|
|
163
|
+
if subdir.is_dir():
|
|
164
|
+
nested = subdir / "workflow.yaml"
|
|
165
|
+
if nested.exists():
|
|
166
|
+
workflow_files.append(nested)
|
|
167
|
+
|
|
168
|
+
if not workflow_files:
|
|
169
|
+
click.echo("No workflows found.")
|
|
170
|
+
return
|
|
171
|
+
|
|
172
|
+
click.echo("# Available Workflows")
|
|
173
|
+
click.echo("")
|
|
174
|
+
click.echo("| Workflow | Type | Default | Steps/Phases | Modes | Description |")
|
|
175
|
+
click.echo("|----------|------|---------|--------------|-------|-------------|")
|
|
176
|
+
|
|
177
|
+
from pf.common.config import get_project_root
|
|
178
|
+
|
|
179
|
+
project_root = get_project_root()
|
|
180
|
+
|
|
181
|
+
for wf_file in workflow_files:
|
|
182
|
+
data = load_workflow_data(wf_file)
|
|
183
|
+
wf = data.get("workflow", {})
|
|
184
|
+
|
|
185
|
+
name = wf.get("name", wf_file.stem)
|
|
186
|
+
desc = (wf.get("description") or "-")
|
|
187
|
+
if isinstance(desc, str):
|
|
188
|
+
desc = desc.split("\n")[0][:80]
|
|
189
|
+
is_default = wf.get("triggers", {}).get("default", False)
|
|
190
|
+
|
|
191
|
+
# Detect type
|
|
192
|
+
wf_type_raw = wf.get("type", "phased")
|
|
193
|
+
has_steps = wf.get("steps") is not None
|
|
194
|
+
|
|
195
|
+
if has_steps or wf_type_raw == "stepped":
|
|
196
|
+
type_col = "stepped"
|
|
197
|
+
try:
|
|
198
|
+
steps_path = resolve_steps_path(data, wf_file.parent, None, project_root)
|
|
199
|
+
step_count = count_steps(steps_path)
|
|
200
|
+
steps_col = f"{step_count} steps" if step_count > 0 else "-"
|
|
201
|
+
except Exception:
|
|
202
|
+
steps_col = "-"
|
|
203
|
+
elif wf_type_raw == "procedural":
|
|
204
|
+
type_col = "procedural"
|
|
205
|
+
steps_col = "instructions"
|
|
206
|
+
else:
|
|
207
|
+
type_col = "phased"
|
|
208
|
+
phases = wf.get("phases", [])
|
|
209
|
+
steps_col = f"{len(phases)} phases"
|
|
210
|
+
|
|
211
|
+
default_col = "yes" if is_default else "no"
|
|
212
|
+
|
|
213
|
+
# Modes
|
|
214
|
+
modes_available = wf.get("modes", {}).get("available", [])
|
|
215
|
+
if modes_available:
|
|
216
|
+
modes_col = ",".join(modes_available)
|
|
217
|
+
else:
|
|
218
|
+
modes_col = "-"
|
|
219
|
+
|
|
220
|
+
click.echo(f"| {name} | {type_col} | {default_col} | {steps_col} | {modes_col} | {desc} |")
|
|
221
|
+
|
|
222
|
+
click.echo("")
|
|
223
|
+
click.echo("**Legend:**")
|
|
224
|
+
click.echo("- **phased**: Agent-driven workflow (SM > TEA > Dev > Reviewer)")
|
|
225
|
+
click.echo("- **stepped**: Step-by-step guided workflow with progressive disclosure")
|
|
226
|
+
click.echo("- **procedural**: BMAD reference workflow with instructions file")
|
|
227
|
+
click.echo("")
|
|
228
|
+
click.echo("Use `pf workflow show <name>` for workflow details.")
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
@workflow.command("show")
|
|
232
|
+
@click.argument("name", required=False, default=None)
|
|
233
|
+
def workflow_show_cmd(name: str | None):
|
|
234
|
+
"""Show workflow details including phase flow, triggers, and gates.
|
|
235
|
+
|
|
236
|
+
\b
|
|
237
|
+
Arguments:
|
|
238
|
+
NAME - Workflow name (defaults to current session's workflow or tdd)
|
|
239
|
+
"""
|
|
240
|
+
from pf.common.config import get_project_root
|
|
241
|
+
from pf.workflow.helpers import (
|
|
242
|
+
find_workflow_file,
|
|
243
|
+
get_session_dir,
|
|
244
|
+
get_workflows_dir,
|
|
245
|
+
load_workflow_data,
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
project_root = get_project_root()
|
|
249
|
+
workflows_dir = get_workflows_dir(project_root)
|
|
250
|
+
session_dir = get_session_dir(project_root)
|
|
251
|
+
|
|
252
|
+
workflow_name = name
|
|
253
|
+
|
|
254
|
+
if not workflow_name:
|
|
255
|
+
# Try to detect from current session
|
|
256
|
+
if session_dir.is_dir():
|
|
257
|
+
for sf in session_dir.glob("*-session.md"):
|
|
258
|
+
content = sf.read_text()
|
|
259
|
+
import re
|
|
260
|
+
|
|
261
|
+
match = re.search(r"\*\*Workflow:\*\*\s*(\S+)", content)
|
|
262
|
+
if match:
|
|
263
|
+
workflow_name = match.group(1)
|
|
264
|
+
break
|
|
265
|
+
|
|
266
|
+
if not workflow_name:
|
|
267
|
+
click.echo("# Current Workflow")
|
|
268
|
+
click.echo("")
|
|
269
|
+
click.echo("No active session found. Showing default workflow (tdd).")
|
|
270
|
+
click.echo("")
|
|
271
|
+
workflow_name = "tdd"
|
|
272
|
+
else:
|
|
273
|
+
click.echo(f"# Current Session Workflow: {workflow_name}")
|
|
274
|
+
click.echo("")
|
|
275
|
+
else:
|
|
276
|
+
click.echo(f"# Workflow: {workflow_name}")
|
|
277
|
+
click.echo("")
|
|
278
|
+
|
|
279
|
+
wf_file = find_workflow_file(workflows_dir, workflow_name)
|
|
280
|
+
if not wf_file:
|
|
281
|
+
click.echo(f"Error: Workflow '{workflow_name}' not found", err=True)
|
|
282
|
+
click.echo("", err=True)
|
|
283
|
+
click.echo("Available workflows:", err=True)
|
|
284
|
+
for f in sorted(workflows_dir.glob("*.yaml")):
|
|
285
|
+
click.echo(f" {f.stem}", err=True)
|
|
286
|
+
raise SystemExit(1)
|
|
287
|
+
|
|
288
|
+
data = load_workflow_data(wf_file)
|
|
289
|
+
wf = data.get("workflow", {})
|
|
290
|
+
|
|
291
|
+
desc = wf.get("description", "-")
|
|
292
|
+
version = wf.get("version", "-")
|
|
293
|
+
|
|
294
|
+
click.echo(f"**Description:** {desc}")
|
|
295
|
+
click.echo(f"**Version:** {version}")
|
|
296
|
+
click.echo("")
|
|
297
|
+
|
|
298
|
+
# Phase flow diagram
|
|
299
|
+
phases = wf.get("phases", [])
|
|
300
|
+
if phases:
|
|
301
|
+
click.echo("## Phase Flow")
|
|
302
|
+
click.echo("")
|
|
303
|
+
phase_names = [p.get("name", "?") for p in phases]
|
|
304
|
+
click.echo("```")
|
|
305
|
+
click.echo(" -> ".join(phase_names))
|
|
306
|
+
click.echo("```")
|
|
307
|
+
click.echo("")
|
|
308
|
+
|
|
309
|
+
# Phases table
|
|
310
|
+
click.echo("## Phases")
|
|
311
|
+
click.echo("")
|
|
312
|
+
click.echo("| Phase | Agent | Gate |")
|
|
313
|
+
click.echo("|-------|-------|------|")
|
|
314
|
+
for p in phases:
|
|
315
|
+
pname = p.get("name", "?")
|
|
316
|
+
pagent = p.get("agent", "?")
|
|
317
|
+
pgate = p.get("gate", {}).get("type", "none") if isinstance(p.get("gate"), dict) else "none"
|
|
318
|
+
click.echo(f"| {pname} | {pagent} | {pgate} |")
|
|
319
|
+
click.echo("")
|
|
320
|
+
|
|
321
|
+
# Triggers
|
|
322
|
+
triggers = wf.get("triggers", {})
|
|
323
|
+
if triggers:
|
|
324
|
+
click.echo("## Triggers")
|
|
325
|
+
click.echo("")
|
|
326
|
+
|
|
327
|
+
types = triggers.get("types", [])
|
|
328
|
+
if types:
|
|
329
|
+
click.echo(f"**Types:** {', '.join(types)}")
|
|
330
|
+
|
|
331
|
+
points = triggers.get("points", {})
|
|
332
|
+
if points.get("min") is not None:
|
|
333
|
+
click.echo(f"**Points Min:** {points['min']}")
|
|
334
|
+
if points.get("max") is not None:
|
|
335
|
+
click.echo(f"**Points Max:** {points['max']}")
|
|
336
|
+
|
|
337
|
+
if triggers.get("default"):
|
|
338
|
+
click.echo("**Default:** yes (used when no other workflow matches)")
|
|
339
|
+
|
|
340
|
+
tags = triggers.get("tags", [])
|
|
341
|
+
if tags:
|
|
342
|
+
click.echo(f"**Tags:** {', '.join(tags)}")
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
@workflow.command("start")
|
|
346
|
+
@click.argument("name")
|
|
347
|
+
@click.option("--mode", "-m", default=None, help="Mode: create, validate, or edit")
|
|
348
|
+
def workflow_start_cmd(name: str, mode: str | None):
|
|
349
|
+
"""Start a stepped workflow from step 1.
|
|
350
|
+
|
|
351
|
+
Creates a new workflow session and loads the first step.
|
|
352
|
+
|
|
353
|
+
\b
|
|
354
|
+
Arguments:
|
|
355
|
+
NAME - Workflow name (e.g., architecture, release)
|
|
356
|
+
"""
|
|
357
|
+
from datetime import datetime
|
|
358
|
+
|
|
359
|
+
from pf.common.config import get_project_root
|
|
360
|
+
from pf.workflow.helpers import (
|
|
361
|
+
count_steps,
|
|
362
|
+
find_step_file,
|
|
363
|
+
find_workflow_file,
|
|
364
|
+
get_session_dir,
|
|
365
|
+
get_workflows_dir,
|
|
366
|
+
load_workflow_data,
|
|
367
|
+
resolve_steps_path,
|
|
368
|
+
strip_frontmatter,
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
project_root = get_project_root()
|
|
372
|
+
workflows_dir = get_workflows_dir(project_root)
|
|
373
|
+
session_dir = get_session_dir(project_root)
|
|
374
|
+
|
|
375
|
+
# Find workflow file
|
|
376
|
+
wf_file = find_workflow_file(workflows_dir, name)
|
|
377
|
+
if not wf_file:
|
|
378
|
+
click.echo(f"Error: Workflow '{name}' not found", err=True)
|
|
379
|
+
raise SystemExit(1)
|
|
380
|
+
|
|
381
|
+
data = load_workflow_data(wf_file)
|
|
382
|
+
wf = data.get("workflow", {})
|
|
383
|
+
|
|
384
|
+
# Validate it's a stepped workflow
|
|
385
|
+
wf_type = wf.get("type", "phased")
|
|
386
|
+
has_steps = wf.get("steps") is not None
|
|
387
|
+
if wf_type != "stepped" and not has_steps:
|
|
388
|
+
click.echo(f"Error: '{name}' is a phased workflow, not stepped", err=True)
|
|
389
|
+
click.echo("Use TDD workflow commands (/sm, /tea, /dev, /reviewer) for phased workflows", err=True)
|
|
390
|
+
raise SystemExit(1)
|
|
391
|
+
|
|
392
|
+
# Validate mode
|
|
393
|
+
if mode:
|
|
394
|
+
valid_modes = {"create", "validate", "edit"}
|
|
395
|
+
if mode not in valid_modes:
|
|
396
|
+
click.echo(f"Error: Invalid mode '{mode}'. Must be one of: {', '.join(sorted(valid_modes))}", err=True)
|
|
397
|
+
raise SystemExit(1)
|
|
398
|
+
|
|
399
|
+
# Resolve mode
|
|
400
|
+
effective_mode = mode
|
|
401
|
+
if not effective_mode:
|
|
402
|
+
default_mode = wf.get("modes", {}).get("default")
|
|
403
|
+
if default_mode:
|
|
404
|
+
effective_mode = default_mode
|
|
405
|
+
else:
|
|
406
|
+
effective_mode = "create"
|
|
407
|
+
|
|
408
|
+
# If explicit mode, validate it exists for this workflow
|
|
409
|
+
if mode:
|
|
410
|
+
modes = wf.get("modes", {})
|
|
411
|
+
mode_path = modes.get(mode)
|
|
412
|
+
if not mode_path or mode_path == "null":
|
|
413
|
+
available = [k for k in modes if k not in ("default", "available")]
|
|
414
|
+
click.echo(f"Error: Mode '{mode}' not available for workflow '{name}'", err=True)
|
|
415
|
+
if available:
|
|
416
|
+
click.echo(f"Available modes: {', '.join(available)}", err=True)
|
|
417
|
+
raise SystemExit(1)
|
|
418
|
+
|
|
419
|
+
# Resolve steps path
|
|
420
|
+
steps_path = resolve_steps_path(data, wf_file.parent, effective_mode, project_root)
|
|
421
|
+
step_count = count_steps(steps_path)
|
|
422
|
+
|
|
423
|
+
if step_count == 0:
|
|
424
|
+
click.echo(f"Error: No step files found in {steps_path}", err=True)
|
|
425
|
+
raise SystemExit(1)
|
|
426
|
+
|
|
427
|
+
# Create session directory
|
|
428
|
+
session_dir.mkdir(parents=True, exist_ok=True)
|
|
429
|
+
|
|
430
|
+
# Check for existing session
|
|
431
|
+
session_file = session_dir / f"{name}-workflow-session.md"
|
|
432
|
+
if session_file.exists():
|
|
433
|
+
click.echo("**Warning:** Existing session found")
|
|
434
|
+
click.echo("")
|
|
435
|
+
click.echo(f"Session: {session_file}")
|
|
436
|
+
click.echo("")
|
|
437
|
+
click.echo("Options:")
|
|
438
|
+
click.echo(f"1. Use `pf workflow resume {name}` to continue")
|
|
439
|
+
click.echo("2. Delete the session file to start fresh")
|
|
440
|
+
click.echo("")
|
|
441
|
+
click.echo("To start fresh, run:")
|
|
442
|
+
click.echo("```bash")
|
|
443
|
+
click.echo(f'rm "{session_file}"')
|
|
444
|
+
click.echo("```")
|
|
445
|
+
return
|
|
446
|
+
|
|
447
|
+
# Create session file
|
|
448
|
+
now = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
449
|
+
wf_agent = wf.get("agent", "pm")
|
|
450
|
+
wf_desc = wf.get("description", "-")
|
|
451
|
+
|
|
452
|
+
session_content = f"""# Workflow Session: {name}
|
|
453
|
+
|
|
454
|
+
**Workflow:** {name}
|
|
455
|
+
**Type:** stepped
|
|
456
|
+
**Agent:** {wf_agent}
|
|
457
|
+
**Started:** {now}
|
|
458
|
+
|
|
459
|
+
## Workflow State
|
|
460
|
+
- **Workflow Name:** {name}
|
|
461
|
+
- **Type:** stepped
|
|
462
|
+
- **Mode:** {effective_mode}
|
|
463
|
+
- **Started:** {now}
|
|
464
|
+
- **Last Updated:** {now}
|
|
465
|
+
- **Current Step:** 1
|
|
466
|
+
- **Steps Completed:** []
|
|
467
|
+
- **Status:** in_progress
|
|
468
|
+
- **Notes:** Session created via pf workflow start
|
|
469
|
+
|
|
470
|
+
## Progress
|
|
471
|
+
- Total Steps: {step_count}
|
|
472
|
+
- Completion: 0%
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
"""
|
|
477
|
+
session_file.write_text(session_content)
|
|
478
|
+
|
|
479
|
+
# Find step 1
|
|
480
|
+
step_file = find_step_file(steps_path, 1)
|
|
481
|
+
if not step_file:
|
|
482
|
+
click.echo(f"Error: Could not find step 1 file in {steps_path}", err=True)
|
|
483
|
+
raise SystemExit(1)
|
|
484
|
+
|
|
485
|
+
# Output
|
|
486
|
+
click.echo(f"# Starting Workflow: {name}")
|
|
487
|
+
click.echo("")
|
|
488
|
+
click.echo(f"**Description:** {wf_desc}")
|
|
489
|
+
click.echo(f"**Mode:** {effective_mode}")
|
|
490
|
+
click.echo(f"**Steps:** {step_count}")
|
|
491
|
+
click.echo(f"**Agent:** {wf_agent}")
|
|
492
|
+
click.echo(f"**Session:** {session_file}")
|
|
493
|
+
click.echo("")
|
|
494
|
+
click.echo("---")
|
|
495
|
+
click.echo("")
|
|
496
|
+
click.echo(f"## Step 1 of {step_count}")
|
|
497
|
+
click.echo("")
|
|
498
|
+
|
|
499
|
+
step_content = step_file.read_text()
|
|
500
|
+
click.echo(strip_frontmatter(step_content))
|
|
501
|
+
|
|
502
|
+
click.echo("")
|
|
503
|
+
click.echo("---")
|
|
504
|
+
click.echo("")
|
|
505
|
+
click.echo("**Controls:**")
|
|
506
|
+
click.echo("- `C` - Continue to next step")
|
|
507
|
+
click.echo("- `pf workflow status` - Check progress")
|
|
508
|
+
click.echo("- `pf workflow resume` - Resume after break")
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
@workflow.command("resume")
|
|
512
|
+
@click.argument("name", required=False, default=None)
|
|
513
|
+
def workflow_resume_cmd(name: str | None):
|
|
514
|
+
"""Resume a stepped workflow from the current step.
|
|
515
|
+
|
|
516
|
+
\b
|
|
517
|
+
Arguments:
|
|
518
|
+
NAME - Workflow name (auto-detects from active session if omitted)
|
|
519
|
+
"""
|
|
520
|
+
from datetime import datetime
|
|
521
|
+
|
|
522
|
+
from pf.common.config import get_project_root
|
|
523
|
+
from pf.workflow.helpers import (
|
|
524
|
+
count_steps,
|
|
525
|
+
find_step_file,
|
|
526
|
+
find_workflow_file,
|
|
527
|
+
find_workflow_session,
|
|
528
|
+
get_session_dir,
|
|
529
|
+
get_workflows_dir,
|
|
530
|
+
load_workflow_data,
|
|
531
|
+
parse_session_field,
|
|
532
|
+
parse_steps_completed,
|
|
533
|
+
resolve_steps_path,
|
|
534
|
+
strip_frontmatter,
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
project_root = get_project_root()
|
|
538
|
+
workflows_dir = get_workflows_dir(project_root)
|
|
539
|
+
session_dir = get_session_dir(project_root)
|
|
540
|
+
|
|
541
|
+
if not session_dir.is_dir():
|
|
542
|
+
click.echo("# Resume Stepped Workflow")
|
|
543
|
+
click.echo("")
|
|
544
|
+
click.echo("No active workflow session found.")
|
|
545
|
+
click.echo("")
|
|
546
|
+
click.echo("Use `pf workflow start <name>` to begin a new workflow.")
|
|
547
|
+
raise SystemExit(1)
|
|
548
|
+
|
|
549
|
+
result = find_workflow_session(session_dir, name)
|
|
550
|
+
if not result:
|
|
551
|
+
if name:
|
|
552
|
+
click.echo(f"Error: No session found for workflow '{name}'", err=True)
|
|
553
|
+
click.echo(f"\nUse `pf workflow start {name}` to begin.", err=True)
|
|
554
|
+
else:
|
|
555
|
+
click.echo("# Resume Stepped Workflow")
|
|
556
|
+
click.echo("")
|
|
557
|
+
click.echo("No active workflow session found.")
|
|
558
|
+
click.echo("")
|
|
559
|
+
click.echo("Use `pf workflow start <name>` to begin a new workflow.")
|
|
560
|
+
raise SystemExit(1)
|
|
561
|
+
|
|
562
|
+
session_file, workflow_name = result
|
|
563
|
+
content = session_file.read_text()
|
|
564
|
+
|
|
565
|
+
# Parse session state
|
|
566
|
+
current_step_str = parse_session_field(content, "Current Step") or "1"
|
|
567
|
+
current_step = int(current_step_str)
|
|
568
|
+
mode_val = parse_session_field(content, "Mode") or "create"
|
|
569
|
+
status = parse_session_field(content, "Status") or "in_progress"
|
|
570
|
+
steps_completed_str = parse_session_field(content, "Steps Completed") or "[]"
|
|
571
|
+
|
|
572
|
+
# Check if complete
|
|
573
|
+
if status == "completed":
|
|
574
|
+
click.echo(f"# Workflow Complete: {workflow_name}")
|
|
575
|
+
click.echo("")
|
|
576
|
+
click.echo("This workflow has already been completed.")
|
|
577
|
+
click.echo("")
|
|
578
|
+
click.echo("To start a new session, delete the session file:")
|
|
579
|
+
click.echo("```bash")
|
|
580
|
+
click.echo(f'rm "{session_file}"')
|
|
581
|
+
click.echo("```")
|
|
582
|
+
click.echo("")
|
|
583
|
+
click.echo(f"Then run `pf workflow start {workflow_name}`")
|
|
584
|
+
return
|
|
585
|
+
|
|
586
|
+
# Find workflow definition
|
|
587
|
+
wf_file = find_workflow_file(workflows_dir, workflow_name)
|
|
588
|
+
if not wf_file:
|
|
589
|
+
click.echo(f"Error: Workflow definition '{workflow_name}' not found", err=True)
|
|
590
|
+
raise SystemExit(1)
|
|
591
|
+
|
|
592
|
+
data = load_workflow_data(wf_file)
|
|
593
|
+
|
|
594
|
+
# Resolve steps path
|
|
595
|
+
steps_path = resolve_steps_path(data, wf_file.parent, mode_val, project_root)
|
|
596
|
+
step_count = count_steps(steps_path)
|
|
597
|
+
|
|
598
|
+
# Find current step file
|
|
599
|
+
step_file = find_step_file(steps_path, current_step)
|
|
600
|
+
if not step_file:
|
|
601
|
+
click.echo(f"Error: Could not find step {current_step} file in {steps_path}", err=True)
|
|
602
|
+
raise SystemExit(1)
|
|
603
|
+
|
|
604
|
+
# Update last updated timestamp
|
|
605
|
+
now = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
606
|
+
import re
|
|
607
|
+
|
|
608
|
+
updated_content = re.sub(
|
|
609
|
+
r"^- \*\*Last Updated:\*\*.*$",
|
|
610
|
+
f"- **Last Updated:** {now}",
|
|
611
|
+
content, flags=re.MULTILINE
|
|
612
|
+
)
|
|
613
|
+
session_file.write_text(updated_content)
|
|
614
|
+
|
|
615
|
+
# Calculate completion
|
|
616
|
+
steps_completed = parse_steps_completed(steps_completed_str)
|
|
617
|
+
completed_count = len(steps_completed)
|
|
618
|
+
completion_pct = (completed_count * 100 // step_count) if step_count > 0 else 0
|
|
619
|
+
|
|
620
|
+
# Output
|
|
621
|
+
click.echo(f"# Resuming Workflow: {workflow_name}")
|
|
622
|
+
click.echo("")
|
|
623
|
+
click.echo(f"**Mode:** {mode_val}")
|
|
624
|
+
click.echo(f"**Progress:** Step {current_step} of {step_count} ({completion_pct}% complete)")
|
|
625
|
+
click.echo(f"**Steps Completed:** {steps_completed_str}")
|
|
626
|
+
click.echo(f"**Session:** {session_file}")
|
|
627
|
+
click.echo("")
|
|
628
|
+
click.echo("---")
|
|
629
|
+
click.echo("")
|
|
630
|
+
click.echo(f"## Step {current_step} of {step_count}")
|
|
631
|
+
click.echo("")
|
|
632
|
+
|
|
633
|
+
step_content = step_file.read_text()
|
|
634
|
+
click.echo(strip_frontmatter(step_content))
|
|
635
|
+
|
|
636
|
+
click.echo("")
|
|
637
|
+
click.echo("---")
|
|
638
|
+
click.echo("")
|
|
639
|
+
click.echo("**Controls:**")
|
|
640
|
+
click.echo("- `C` - Continue to next step")
|
|
641
|
+
click.echo("- `pf workflow status` - Check progress")
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
@workflow.command("status")
|
|
645
|
+
@click.argument("name", required=False, default=None)
|
|
646
|
+
def workflow_status_cmd(name: str | None):
|
|
647
|
+
"""Show current stepped workflow progress.
|
|
648
|
+
|
|
649
|
+
\b
|
|
650
|
+
Arguments:
|
|
651
|
+
NAME - Workflow name (auto-detects from active session if omitted)
|
|
652
|
+
"""
|
|
653
|
+
from pf.common.config import get_project_root
|
|
654
|
+
from pf.workflow.helpers import (
|
|
655
|
+
count_steps,
|
|
656
|
+
find_workflow_file,
|
|
657
|
+
find_workflow_session,
|
|
658
|
+
get_session_dir,
|
|
659
|
+
get_workflows_dir,
|
|
660
|
+
load_workflow_data,
|
|
661
|
+
parse_session_field,
|
|
662
|
+
parse_steps_completed,
|
|
663
|
+
resolve_steps_path,
|
|
664
|
+
)
|
|
665
|
+
|
|
666
|
+
project_root = get_project_root()
|
|
667
|
+
workflows_dir = get_workflows_dir(project_root)
|
|
668
|
+
session_dir = get_session_dir(project_root)
|
|
669
|
+
|
|
670
|
+
if not session_dir.is_dir():
|
|
671
|
+
click.echo("# Workflow Status")
|
|
672
|
+
click.echo("")
|
|
673
|
+
click.echo("No active workflow session found.")
|
|
674
|
+
click.echo("")
|
|
675
|
+
click.echo("Use `pf workflow start <name>` to begin a new workflow.")
|
|
676
|
+
return
|
|
677
|
+
|
|
678
|
+
result = find_workflow_session(session_dir, name)
|
|
679
|
+
if not result:
|
|
680
|
+
if name:
|
|
681
|
+
click.echo(f"# Workflow Status: {name}")
|
|
682
|
+
click.echo("")
|
|
683
|
+
click.echo(f"No session found for workflow '{name}'")
|
|
684
|
+
click.echo("")
|
|
685
|
+
click.echo(f"Use `pf workflow start {name}` to begin.")
|
|
686
|
+
else:
|
|
687
|
+
click.echo("# Workflow Status")
|
|
688
|
+
click.echo("")
|
|
689
|
+
click.echo("No active workflow session found.")
|
|
690
|
+
click.echo("")
|
|
691
|
+
click.echo("Use `pf workflow start <name>` to begin a new workflow.")
|
|
692
|
+
return
|
|
693
|
+
|
|
694
|
+
session_file, workflow_name = result
|
|
695
|
+
content = session_file.read_text()
|
|
696
|
+
|
|
697
|
+
# Parse session state
|
|
698
|
+
current_step_str = parse_session_field(content, "Current Step") or "1"
|
|
699
|
+
current_step = int(current_step_str)
|
|
700
|
+
mode_val = parse_session_field(content, "Mode") or "create"
|
|
701
|
+
status = parse_session_field(content, "Status") or "in_progress"
|
|
702
|
+
started = parse_session_field(content, "Started") or "-"
|
|
703
|
+
last_updated = parse_session_field(content, "Last Updated") or "-"
|
|
704
|
+
steps_completed_str = parse_session_field(content, "Steps Completed") or "[]"
|
|
705
|
+
notes = parse_session_field(content, "Notes") or "-"
|
|
706
|
+
|
|
707
|
+
# Get step count from workflow file
|
|
708
|
+
step_count_str = "?"
|
|
709
|
+
wf_desc = "-"
|
|
710
|
+
wf_file = find_workflow_file(workflows_dir, workflow_name)
|
|
711
|
+
if wf_file:
|
|
712
|
+
data = load_workflow_data(wf_file)
|
|
713
|
+
wf_desc = data.get("workflow", {}).get("description", "-")
|
|
714
|
+
if isinstance(wf_desc, str):
|
|
715
|
+
wf_desc = wf_desc.split("\n")[0]
|
|
716
|
+
try:
|
|
717
|
+
steps_path = resolve_steps_path(data, wf_file.parent, mode_val, project_root)
|
|
718
|
+
step_count = count_steps(steps_path)
|
|
719
|
+
step_count_str = str(step_count)
|
|
720
|
+
except Exception:
|
|
721
|
+
step_count = 0
|
|
722
|
+
else:
|
|
723
|
+
step_count = 0
|
|
724
|
+
|
|
725
|
+
# Calculate completion
|
|
726
|
+
steps_completed = parse_steps_completed(steps_completed_str)
|
|
727
|
+
completed_count = len(steps_completed)
|
|
728
|
+
if step_count > 0:
|
|
729
|
+
completion_pct = completed_count * 100 // step_count
|
|
730
|
+
else:
|
|
731
|
+
completion_pct = 0
|
|
732
|
+
|
|
733
|
+
# Progress bar
|
|
734
|
+
bar_width = 20
|
|
735
|
+
if step_count > 0:
|
|
736
|
+
filled = completion_pct * bar_width // 100
|
|
737
|
+
empty = bar_width - filled
|
|
738
|
+
progress_bar = "#" * filled + "-" * empty
|
|
739
|
+
else:
|
|
740
|
+
progress_bar = "?" * bar_width
|
|
741
|
+
|
|
742
|
+
# Status indicator
|
|
743
|
+
status_icons = {
|
|
744
|
+
"completed": "[COMPLETE]",
|
|
745
|
+
"paused": "[PAUSED]",
|
|
746
|
+
}
|
|
747
|
+
status_icon = status_icons.get(status, "[IN PROGRESS]")
|
|
748
|
+
|
|
749
|
+
# Output
|
|
750
|
+
click.echo(f"# Workflow Status: {workflow_name}")
|
|
751
|
+
click.echo("")
|
|
752
|
+
click.echo(f"**Description:** {wf_desc}")
|
|
753
|
+
click.echo("")
|
|
754
|
+
click.echo("## Progress")
|
|
755
|
+
click.echo("")
|
|
756
|
+
click.echo("```")
|
|
757
|
+
click.echo(f"[{progress_bar}] {completion_pct}%")
|
|
758
|
+
click.echo("```")
|
|
759
|
+
click.echo("")
|
|
760
|
+
click.echo("| Field | Value |")
|
|
761
|
+
click.echo("|-------|-------|")
|
|
762
|
+
click.echo(f"| Status | {status_icon} |")
|
|
763
|
+
click.echo(f"| Mode | {mode_val} |")
|
|
764
|
+
click.echo(f"| Current Step | {current_step} of {step_count_str} |")
|
|
765
|
+
click.echo(f"| Completed | {completed_count} steps |")
|
|
766
|
+
click.echo(f"| Steps Done | {steps_completed_str} |")
|
|
767
|
+
click.echo(f"| Started | {started} |")
|
|
768
|
+
click.echo(f"| Last Updated | {last_updated} |")
|
|
769
|
+
if notes != "-":
|
|
770
|
+
click.echo(f"| Notes | {notes} |")
|
|
771
|
+
click.echo("")
|
|
772
|
+
click.echo(f"**Session:** {session_file}")
|
|
773
|
+
click.echo("")
|
|
774
|
+
|
|
775
|
+
if status != "completed":
|
|
776
|
+
click.echo(f"**Next:** Use `pf workflow resume` to continue from step {current_step}")
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
@workflow.command("fix-phase")
|
|
780
|
+
@click.argument("story_id")
|
|
781
|
+
@click.argument("target_phase")
|
|
782
|
+
@click.option("--dry-run", is_flag=True, help="Preview without making changes")
|
|
783
|
+
def workflow_fix_phase_cmd(story_id: str, target_phase: str, dry_run: bool):
|
|
784
|
+
"""Repair session phase tracking when handoffs didn't update properly.
|
|
785
|
+
|
|
786
|
+
\b
|
|
787
|
+
Arguments:
|
|
788
|
+
STORY_ID - Story ID (e.g., 56-1 or MSSCI-12190)
|
|
789
|
+
TARGET_PHASE - Target phase to set (e.g., review, approved, finish)
|
|
790
|
+
"""
|
|
791
|
+
import re
|
|
792
|
+
from datetime import datetime
|
|
793
|
+
|
|
794
|
+
from pf.common.config import get_project_root
|
|
795
|
+
from pf.workflow.helpers import (
|
|
796
|
+
find_story_session,
|
|
797
|
+
get_session_dir,
|
|
798
|
+
)
|
|
799
|
+
|
|
800
|
+
project_root = get_project_root()
|
|
801
|
+
session_dir = get_session_dir(project_root)
|
|
802
|
+
|
|
803
|
+
if not session_dir.is_dir():
|
|
804
|
+
click.echo(f"Error: Session directory not found at {session_dir}", err=True)
|
|
805
|
+
raise SystemExit(1)
|
|
806
|
+
|
|
807
|
+
session_file = find_story_session(session_dir, story_id)
|
|
808
|
+
if not session_file:
|
|
809
|
+
click.echo(f"Error: Session file not found for story {story_id}", err=True)
|
|
810
|
+
click.echo(f"Searched in: {session_dir}", err=True)
|
|
811
|
+
raise SystemExit(1)
|
|
812
|
+
|
|
813
|
+
click.echo(f"Session file: {session_file}")
|
|
814
|
+
|
|
815
|
+
content = session_file.read_text()
|
|
816
|
+
|
|
817
|
+
# Extract current state
|
|
818
|
+
current_phase_match = re.search(r"\*\*Phase:\*\*\s*(\S+)", content)
|
|
819
|
+
current_phase = current_phase_match.group(1) if current_phase_match else "unknown"
|
|
820
|
+
|
|
821
|
+
workflow_match = re.search(r"\*\*Workflow:\*\*\s*(\S+)", content)
|
|
822
|
+
workflow_name = workflow_match.group(1) if workflow_match else "tdd"
|
|
823
|
+
|
|
824
|
+
click.echo(f"Current phase: {current_phase}")
|
|
825
|
+
click.echo(f"Target phase: {target_phase}")
|
|
826
|
+
click.echo(f"Workflow: {workflow_name}")
|
|
827
|
+
|
|
828
|
+
# Define valid phase sequences
|
|
829
|
+
phase_defs: dict[str, tuple[list[str], list[str], list[str]]] = {
|
|
830
|
+
"tdd": (
|
|
831
|
+
["setup", "red", "green", "review", "approved", "finish"],
|
|
832
|
+
["sm", "tea", "dev", "reviewer", "sm", "sm"],
|
|
833
|
+
["manual", "tests_fail", "tests_pass", "approval", "complete", ""],
|
|
834
|
+
),
|
|
835
|
+
"trivial": (
|
|
836
|
+
["setup", "implement", "review", "approved", "finish"],
|
|
837
|
+
["sm", "dev", "reviewer", "sm", "sm"],
|
|
838
|
+
["manual", "tests_pass", "approval", "complete", ""],
|
|
839
|
+
),
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
phases, agents, gates = phase_defs.get(
|
|
843
|
+
workflow_name,
|
|
844
|
+
phase_defs["tdd"], # Default to TDD
|
|
845
|
+
)
|
|
846
|
+
|
|
847
|
+
if workflow_name not in phase_defs:
|
|
848
|
+
click.echo(f"Warning: Unknown workflow '{workflow_name}', assuming TDD")
|
|
849
|
+
|
|
850
|
+
# Find indices
|
|
851
|
+
try:
|
|
852
|
+
current_idx = phases.index(current_phase)
|
|
853
|
+
except ValueError as err:
|
|
854
|
+
click.echo(f"Error: Current phase '{current_phase}' not found in {workflow_name} workflow", err=True)
|
|
855
|
+
click.echo(f"Valid phases: {', '.join(phases)}", err=True)
|
|
856
|
+
raise SystemExit(1) from err
|
|
857
|
+
|
|
858
|
+
try:
|
|
859
|
+
target_idx = phases.index(target_phase)
|
|
860
|
+
except ValueError as err:
|
|
861
|
+
click.echo(f"Error: Target phase '{target_phase}' not found in {workflow_name} workflow", err=True)
|
|
862
|
+
click.echo(f"Valid phases: {', '.join(phases)}", err=True)
|
|
863
|
+
raise SystemExit(1) from err
|
|
864
|
+
|
|
865
|
+
if target_idx <= current_idx:
|
|
866
|
+
click.echo(f"Error: Target phase '{target_phase}' is not ahead of current phase '{current_phase}'", err=True)
|
|
867
|
+
click.echo(f"Phase sequence: {', '.join(phases)}", err=True)
|
|
868
|
+
raise SystemExit(1)
|
|
869
|
+
|
|
870
|
+
# Calculate transitions
|
|
871
|
+
now = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
872
|
+
click.echo("")
|
|
873
|
+
click.echo("Transitions needed:")
|
|
874
|
+
|
|
875
|
+
transitions: list[tuple[str, str, str, str, str]] = []
|
|
876
|
+
for i in range(current_idx, target_idx):
|
|
877
|
+
from_phase = phases[i]
|
|
878
|
+
to_phase = phases[i + 1]
|
|
879
|
+
from_agent = agents[i]
|
|
880
|
+
to_agent = agents[i + 1]
|
|
881
|
+
gate = gates[i + 1]
|
|
882
|
+
click.echo(f" {from_phase} ({from_agent}) -> {to_phase} ({to_agent}) [gate: {gate}]")
|
|
883
|
+
transitions.append((from_phase, to_phase, from_agent, to_agent, gate))
|
|
884
|
+
|
|
885
|
+
if dry_run:
|
|
886
|
+
click.echo("")
|
|
887
|
+
click.echo("[DRY RUN] Would update session file with:")
|
|
888
|
+
click.echo(f" - **Phase:** {target_phase}")
|
|
889
|
+
click.echo(f" - **Phase Started:** {now}")
|
|
890
|
+
click.echo(f" - Phase History: close out {current_phase}, add intermediate phases")
|
|
891
|
+
click.echo(f" - Handoff History: add {len(transitions)} handoff(s)")
|
|
892
|
+
return
|
|
893
|
+
|
|
894
|
+
click.echo("")
|
|
895
|
+
click.echo("Updating session file...")
|
|
896
|
+
|
|
897
|
+
# Update Phase line
|
|
898
|
+
content = re.sub(
|
|
899
|
+
r"\*\*Phase:\*\*\s*\S+",
|
|
900
|
+
f"**Phase:** {target_phase}",
|
|
901
|
+
content,
|
|
902
|
+
)
|
|
903
|
+
|
|
904
|
+
# Update Phase Started line
|
|
905
|
+
content = re.sub(
|
|
906
|
+
r"\*\*Phase Started:\*\*\s*\S+",
|
|
907
|
+
f"**Phase Started:** {now}",
|
|
908
|
+
content,
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
# Build handoff history additions
|
|
912
|
+
handoff_lines = []
|
|
913
|
+
for _from_phase, _to_phase, from_agent, to_agent, gate in transitions:
|
|
914
|
+
handoff_lines.append(f"| {from_agent} | {to_agent} | {gate} | PASSED | {now} |")
|
|
915
|
+
|
|
916
|
+
# Insert handoff rows after the last PASSED/FAILED row
|
|
917
|
+
if handoff_lines:
|
|
918
|
+
lines = content.split("\n")
|
|
919
|
+
insert_idx = None
|
|
920
|
+
for i, line in enumerate(lines):
|
|
921
|
+
if ("PASSED" in line or "FAILED" in line) and line.strip().startswith("|"):
|
|
922
|
+
insert_idx = i
|
|
923
|
+
|
|
924
|
+
if insert_idx is not None:
|
|
925
|
+
for j, hl in enumerate(handoff_lines):
|
|
926
|
+
lines.insert(insert_idx + 1 + j, hl)
|
|
927
|
+
content = "\n".join(lines)
|
|
928
|
+
|
|
929
|
+
session_file.write_text(content)
|
|
930
|
+
|
|
931
|
+
click.echo("")
|
|
932
|
+
click.echo("Session file updated")
|
|
933
|
+
click.echo(f" Phase: {current_phase} -> {target_phase}")
|
|
934
|
+
click.echo(f" Handoffs added: {len(transitions)}")
|
|
935
|
+
click.echo("")
|
|
936
|
+
click.echo("Note: Phase History end times set to now. Review and adjust if needed.")
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
@workflow.command("complete-step")
|
|
940
|
+
@click.argument("name", required=False, default=None)
|
|
941
|
+
@click.option("--step", "step_override", type=int, default=None,
|
|
942
|
+
help="Complete a specific step number instead of current step")
|
|
943
|
+
def workflow_complete_step_cmd(name: str | None, step_override: int | None):
|
|
944
|
+
"""Complete the current step of a stepped workflow.
|
|
945
|
+
|
|
946
|
+
Advances session state: increments current step, updates steps completed,
|
|
947
|
+
recalculates completion percentage. Marks workflow as completed when
|
|
948
|
+
all steps are done.
|
|
949
|
+
|
|
950
|
+
\b
|
|
951
|
+
Arguments:
|
|
952
|
+
NAME - Workflow name (auto-detects from session if omitted)
|
|
953
|
+
"""
|
|
954
|
+
import re
|
|
955
|
+
from datetime import datetime
|
|
956
|
+
|
|
957
|
+
from pf.common.config import get_project_root
|
|
958
|
+
from pf.workflow.helpers import (
|
|
959
|
+
count_steps,
|
|
960
|
+
find_step_file,
|
|
961
|
+
find_workflow_file,
|
|
962
|
+
find_workflow_session,
|
|
963
|
+
format_steps_completed,
|
|
964
|
+
get_session_dir,
|
|
965
|
+
get_workflows_dir,
|
|
966
|
+
load_workflow_data,
|
|
967
|
+
parse_session_field,
|
|
968
|
+
parse_steps_completed,
|
|
969
|
+
resolve_steps_path,
|
|
970
|
+
strip_frontmatter,
|
|
971
|
+
)
|
|
972
|
+
|
|
973
|
+
project_root = get_project_root()
|
|
974
|
+
workflows_dir = get_workflows_dir(project_root)
|
|
975
|
+
session_dir = get_session_dir(project_root)
|
|
976
|
+
|
|
977
|
+
if not session_dir.is_dir():
|
|
978
|
+
click.echo("Error: No active workflow session found.", err=True)
|
|
979
|
+
raise SystemExit(1)
|
|
980
|
+
|
|
981
|
+
result = find_workflow_session(session_dir, name)
|
|
982
|
+
if not result:
|
|
983
|
+
if name:
|
|
984
|
+
click.echo(f"Error: No session found for workflow '{name}'", err=True)
|
|
985
|
+
click.echo(f"\nUse `pf workflow start {name}` to begin.", err=True)
|
|
986
|
+
else:
|
|
987
|
+
click.echo("Error: No active workflow session found.", err=True)
|
|
988
|
+
raise SystemExit(1)
|
|
989
|
+
|
|
990
|
+
session_file, workflow_name = result
|
|
991
|
+
content = session_file.read_text()
|
|
992
|
+
|
|
993
|
+
# Parse session state
|
|
994
|
+
current_step_str = parse_session_field(content, "Current Step") or "1"
|
|
995
|
+
current_step = int(current_step_str)
|
|
996
|
+
mode_val = parse_session_field(content, "Mode") or "create"
|
|
997
|
+
status = parse_session_field(content, "Status") or "in_progress"
|
|
998
|
+
steps_completed_str = parse_session_field(content, "Steps Completed") or "[]"
|
|
999
|
+
|
|
1000
|
+
# Check if already completed
|
|
1001
|
+
if status == "completed":
|
|
1002
|
+
click.echo(f"# Workflow Already Completed: {workflow_name}")
|
|
1003
|
+
click.echo("")
|
|
1004
|
+
click.echo("This workflow has already been completed.")
|
|
1005
|
+
click.echo("")
|
|
1006
|
+
click.echo("To start a new session, delete the session file:")
|
|
1007
|
+
click.echo("```bash")
|
|
1008
|
+
click.echo(f'rm "{session_file}"')
|
|
1009
|
+
click.echo("```")
|
|
1010
|
+
click.echo("")
|
|
1011
|
+
click.echo(f"Then run `pf workflow start {workflow_name}`")
|
|
1012
|
+
return
|
|
1013
|
+
|
|
1014
|
+
# Determine which step to complete
|
|
1015
|
+
completing_step = step_override if step_override is not None else current_step
|
|
1016
|
+
|
|
1017
|
+
# Find workflow file and resolve steps path
|
|
1018
|
+
wf_file = find_workflow_file(workflows_dir, workflow_name)
|
|
1019
|
+
if not wf_file:
|
|
1020
|
+
click.echo(f"Error: Workflow definition '{workflow_name}' not found", err=True)
|
|
1021
|
+
raise SystemExit(1)
|
|
1022
|
+
|
|
1023
|
+
data = load_workflow_data(wf_file)
|
|
1024
|
+
steps_path = resolve_steps_path(data, wf_file.parent, mode_val, project_root)
|
|
1025
|
+
step_count = count_steps(steps_path)
|
|
1026
|
+
|
|
1027
|
+
# Update steps completed
|
|
1028
|
+
steps_completed = parse_steps_completed(steps_completed_str)
|
|
1029
|
+
if completing_step not in steps_completed:
|
|
1030
|
+
steps_completed.append(completing_step)
|
|
1031
|
+
new_steps_completed = format_steps_completed(steps_completed)
|
|
1032
|
+
|
|
1033
|
+
# Calculate
|
|
1034
|
+
next_step = completing_step + 1
|
|
1035
|
+
completed_count = len(steps_completed)
|
|
1036
|
+
completion_pct = (completed_count * 100 // step_count) if step_count > 0 else 0
|
|
1037
|
+
new_status = "completed" if completed_count >= step_count else "in_progress"
|
|
1038
|
+
|
|
1039
|
+
# Update session file
|
|
1040
|
+
now = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
1041
|
+
|
|
1042
|
+
content = re.sub(
|
|
1043
|
+
r"^- \*\*Current Step:\*\*.*$",
|
|
1044
|
+
f"- **Current Step:** {next_step}",
|
|
1045
|
+
content, flags=re.MULTILINE
|
|
1046
|
+
)
|
|
1047
|
+
content = re.sub(
|
|
1048
|
+
r"^- \*\*Steps Completed:\*\*.*$",
|
|
1049
|
+
f"- **Steps Completed:** {new_steps_completed}",
|
|
1050
|
+
content, flags=re.MULTILINE
|
|
1051
|
+
)
|
|
1052
|
+
content = re.sub(
|
|
1053
|
+
r"^- \*\*Last Updated:\*\*.*$",
|
|
1054
|
+
f"- **Last Updated:** {now}",
|
|
1055
|
+
content, flags=re.MULTILINE
|
|
1056
|
+
)
|
|
1057
|
+
content = re.sub(
|
|
1058
|
+
r"^- \*\*Status:\*\*.*$",
|
|
1059
|
+
f"- **Status:** {new_status}",
|
|
1060
|
+
content, flags=re.MULTILINE
|
|
1061
|
+
)
|
|
1062
|
+
content = re.sub(
|
|
1063
|
+
r"^- Completion:.*$",
|
|
1064
|
+
f"- Completion: {completion_pct}%",
|
|
1065
|
+
content, flags=re.MULTILINE
|
|
1066
|
+
)
|
|
1067
|
+
|
|
1068
|
+
session_file.write_text(content)
|
|
1069
|
+
|
|
1070
|
+
# Output
|
|
1071
|
+
if new_status == "completed":
|
|
1072
|
+
click.echo(f"# Workflow Complete: {workflow_name}")
|
|
1073
|
+
click.echo("")
|
|
1074
|
+
click.echo(f"All {step_count} steps completed!")
|
|
1075
|
+
click.echo("")
|
|
1076
|
+
click.echo(f"**Final Progress:** {completion_pct}%")
|
|
1077
|
+
click.echo(f"**Steps Completed:** {new_steps_completed}")
|
|
1078
|
+
click.echo("")
|
|
1079
|
+
click.echo(f"Session updated: {session_file}")
|
|
1080
|
+
else:
|
|
1081
|
+
click.echo(f"# Step {completing_step} Complete")
|
|
1082
|
+
click.echo("")
|
|
1083
|
+
click.echo(f"**Progress:** Step {next_step} of {step_count} ({completion_pct}% complete)")
|
|
1084
|
+
click.echo(f"**Steps Completed:** {new_steps_completed}")
|
|
1085
|
+
click.echo("")
|
|
1086
|
+
click.echo("---")
|
|
1087
|
+
click.echo("")
|
|
1088
|
+
click.echo(f"## Step {next_step} of {step_count}")
|
|
1089
|
+
click.echo("")
|
|
1090
|
+
|
|
1091
|
+
next_step_file = find_step_file(steps_path, next_step)
|
|
1092
|
+
if next_step_file:
|
|
1093
|
+
step_content = next_step_file.read_text()
|
|
1094
|
+
click.echo(strip_frontmatter(step_content))
|
|
1095
|
+
|
|
1096
|
+
click.echo("")
|
|
1097
|
+
click.echo("---")
|
|
1098
|
+
click.echo("")
|
|
1099
|
+
click.echo("**Controls:**")
|
|
1100
|
+
click.echo("- `C` - Continue to next step")
|
|
1101
|
+
click.echo("- `pf workflow status` - Check progress")
|