@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,1068 @@
|
|
|
1
|
+
"""Tests for pf.prime module.
|
|
2
|
+
|
|
3
|
+
Tests context loading for prime command.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from unittest.mock import patch
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
|
|
11
|
+
from pf.prime.cli import main, prime
|
|
12
|
+
from pf.prime.loader import (
|
|
13
|
+
_extract_session_parts,
|
|
14
|
+
_find_session_file,
|
|
15
|
+
load_agent_definition,
|
|
16
|
+
load_behavior_guide,
|
|
17
|
+
load_domain_docs,
|
|
18
|
+
load_session_context,
|
|
19
|
+
load_sidecars,
|
|
20
|
+
load_sprint_context,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TestLoadAgentDefinition:
|
|
25
|
+
"""Tests for load_agent_definition function."""
|
|
26
|
+
|
|
27
|
+
def test_load_existing_agent(self, tmp_path: Path) -> None:
|
|
28
|
+
"""Test loading an existing agent definition."""
|
|
29
|
+
# Setup
|
|
30
|
+
agents_dir = tmp_path / ".pennyfarthing" / "agents"
|
|
31
|
+
agents_dir.mkdir(parents=True)
|
|
32
|
+
agent_file = agents_dir / "dev.md"
|
|
33
|
+
agent_file.write_text("# Developer Agent\n\nTest content")
|
|
34
|
+
|
|
35
|
+
# Test
|
|
36
|
+
result = load_agent_definition("dev", tmp_path)
|
|
37
|
+
|
|
38
|
+
# Verify
|
|
39
|
+
assert result is not None
|
|
40
|
+
assert "# Developer Agent" in result
|
|
41
|
+
assert "Test content" in result
|
|
42
|
+
|
|
43
|
+
def test_load_nonexistent_agent(self, tmp_path: Path) -> None:
|
|
44
|
+
"""Test loading a non-existent agent returns None."""
|
|
45
|
+
# Setup
|
|
46
|
+
agents_dir = tmp_path / ".pennyfarthing" / "agents"
|
|
47
|
+
agents_dir.mkdir(parents=True)
|
|
48
|
+
|
|
49
|
+
# Test
|
|
50
|
+
result = load_agent_definition("nonexistent", tmp_path)
|
|
51
|
+
|
|
52
|
+
# Verify
|
|
53
|
+
assert result is None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class TestLoadBehaviorGuide:
|
|
57
|
+
"""Tests for load_behavior_guide function."""
|
|
58
|
+
|
|
59
|
+
def test_load_existing_guide(self, tmp_path: Path) -> None:
|
|
60
|
+
"""Test loading an existing behavior guide."""
|
|
61
|
+
# Setup
|
|
62
|
+
guides_dir = tmp_path / ".pennyfarthing" / "guides"
|
|
63
|
+
guides_dir.mkdir(parents=True)
|
|
64
|
+
guide_file = guides_dir / "agent-behavior.md"
|
|
65
|
+
guide_file.write_text("# Agent Behavior Guide\n\nShared protocols")
|
|
66
|
+
|
|
67
|
+
# Test
|
|
68
|
+
result = load_behavior_guide(tmp_path)
|
|
69
|
+
|
|
70
|
+
# Verify
|
|
71
|
+
assert result is not None
|
|
72
|
+
assert "# Agent Behavior Guide" in result
|
|
73
|
+
|
|
74
|
+
def test_load_nonexistent_guide(self, tmp_path: Path) -> None:
|
|
75
|
+
"""Test loading a non-existent guide returns None."""
|
|
76
|
+
# Setup
|
|
77
|
+
guides_dir = tmp_path / ".pennyfarthing" / "guides"
|
|
78
|
+
guides_dir.mkdir(parents=True)
|
|
79
|
+
|
|
80
|
+
# Test
|
|
81
|
+
result = load_behavior_guide(tmp_path)
|
|
82
|
+
|
|
83
|
+
# Verify
|
|
84
|
+
assert result is None
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class TestLoadSprintContext:
|
|
88
|
+
"""Tests for load_sprint_context function."""
|
|
89
|
+
|
|
90
|
+
def test_load_sprint_context(self, tmp_path: Path, sample_sprint_data: dict) -> None:
|
|
91
|
+
"""Test loading sprint context."""
|
|
92
|
+
import yaml
|
|
93
|
+
|
|
94
|
+
# Setup
|
|
95
|
+
sprint_dir = tmp_path / "sprint"
|
|
96
|
+
sprint_dir.mkdir()
|
|
97
|
+
sprint_file = sprint_dir / "current-sprint.yaml"
|
|
98
|
+
# Add sprint number for the test
|
|
99
|
+
sample_sprint_data["sprint"]["number"] = 2604
|
|
100
|
+
sample_sprint_data["sprint"]["goal"] = "Test Goal"
|
|
101
|
+
sprint_file.write_text(yaml.dump(sample_sprint_data))
|
|
102
|
+
|
|
103
|
+
# Also need .pennyfarthing dir for project root detection
|
|
104
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
105
|
+
pf_dir.mkdir()
|
|
106
|
+
|
|
107
|
+
# Test
|
|
108
|
+
with patch("pf.prime.loader.get_project_root", return_value=tmp_path):
|
|
109
|
+
with patch("pf.sprint.loader.get_project_root", return_value=tmp_path):
|
|
110
|
+
result = load_sprint_context(tmp_path)
|
|
111
|
+
|
|
112
|
+
# Verify
|
|
113
|
+
assert result is not None
|
|
114
|
+
assert "Sprint 2604" in result
|
|
115
|
+
|
|
116
|
+
def test_no_sprint_file(self, tmp_path: Path) -> None:
|
|
117
|
+
"""Test when no sprint file exists."""
|
|
118
|
+
# Setup - no sprint file
|
|
119
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
120
|
+
pf_dir.mkdir()
|
|
121
|
+
|
|
122
|
+
# Test
|
|
123
|
+
result = load_sprint_context(tmp_path)
|
|
124
|
+
|
|
125
|
+
# Verify
|
|
126
|
+
assert result is None
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class TestExtractSessionParts:
|
|
130
|
+
"""Tests for _extract_session_parts function."""
|
|
131
|
+
|
|
132
|
+
def test_extract_header_and_assessment(self) -> None:
|
|
133
|
+
"""Test extracting header and assessment from session file."""
|
|
134
|
+
content = """# Session: Test Story
|
|
135
|
+
|
|
136
|
+
Story: 63-1
|
|
137
|
+
Status: in_progress
|
|
138
|
+
Agent: dev
|
|
139
|
+
|
|
140
|
+
## TEA Assessment
|
|
141
|
+
|
|
142
|
+
Tests written successfully.
|
|
143
|
+
Coverage: 85%
|
|
144
|
+
|
|
145
|
+
## Dev Assessment
|
|
146
|
+
|
|
147
|
+
Implementation complete.
|
|
148
|
+
All tests passing.
|
|
149
|
+
"""
|
|
150
|
+
header, assessment = _extract_session_parts(content)
|
|
151
|
+
|
|
152
|
+
# Header should be everything before first ##
|
|
153
|
+
assert "# Session: Test Story" in header
|
|
154
|
+
assert "Story: 63-1" in header
|
|
155
|
+
assert "Agent: dev" in header
|
|
156
|
+
|
|
157
|
+
# Assessment should be the LAST assessment section
|
|
158
|
+
assert "## Dev Assessment" in assessment
|
|
159
|
+
assert "Implementation complete" in assessment
|
|
160
|
+
# Should NOT include TEA assessment
|
|
161
|
+
assert "TEA Assessment" not in assessment
|
|
162
|
+
|
|
163
|
+
def test_extract_no_assessment(self) -> None:
|
|
164
|
+
"""Test when no assessment section exists."""
|
|
165
|
+
content = """# Session: Test Story
|
|
166
|
+
|
|
167
|
+
Story: 63-1
|
|
168
|
+
Status: in_progress
|
|
169
|
+
"""
|
|
170
|
+
header, assessment = _extract_session_parts(content)
|
|
171
|
+
|
|
172
|
+
assert "# Session: Test Story" in header
|
|
173
|
+
assert assessment == ""
|
|
174
|
+
|
|
175
|
+
def test_extract_header_only(self) -> None:
|
|
176
|
+
"""Test file with only header content."""
|
|
177
|
+
content = "# Session Header\n\nSome metadata"
|
|
178
|
+
|
|
179
|
+
header, assessment = _extract_session_parts(content)
|
|
180
|
+
|
|
181
|
+
assert "# Session Header" in header
|
|
182
|
+
assert assessment == ""
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class TestFindSessionFile:
|
|
186
|
+
"""Tests for _find_session_file function."""
|
|
187
|
+
|
|
188
|
+
def test_find_session_file(self, tmp_path: Path) -> None:
|
|
189
|
+
"""Test finding session file."""
|
|
190
|
+
# Setup
|
|
191
|
+
session_dir = tmp_path / ".session"
|
|
192
|
+
session_dir.mkdir()
|
|
193
|
+
session_file = session_dir / "63-1-session.md"
|
|
194
|
+
session_file.write_text("# Session")
|
|
195
|
+
|
|
196
|
+
# Test
|
|
197
|
+
result = _find_session_file(tmp_path)
|
|
198
|
+
|
|
199
|
+
# Verify
|
|
200
|
+
assert result is not None
|
|
201
|
+
assert result.name == "63-1-session.md"
|
|
202
|
+
|
|
203
|
+
def test_no_session_directory(self, tmp_path: Path) -> None:
|
|
204
|
+
"""Test when no session directory exists."""
|
|
205
|
+
result = _find_session_file(tmp_path)
|
|
206
|
+
assert result is None
|
|
207
|
+
|
|
208
|
+
def test_empty_session_directory(self, tmp_path: Path) -> None:
|
|
209
|
+
"""Test when session directory is empty."""
|
|
210
|
+
session_dir = tmp_path / ".session"
|
|
211
|
+
session_dir.mkdir()
|
|
212
|
+
|
|
213
|
+
result = _find_session_file(tmp_path)
|
|
214
|
+
assert result is None
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
class TestLoadSessionContext:
|
|
218
|
+
"""Tests for load_session_context function."""
|
|
219
|
+
|
|
220
|
+
def test_load_session_context(self, tmp_path: Path) -> None:
|
|
221
|
+
"""Test loading full session context."""
|
|
222
|
+
# Setup
|
|
223
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
224
|
+
pf_dir.mkdir()
|
|
225
|
+
session_dir = tmp_path / ".session"
|
|
226
|
+
session_dir.mkdir()
|
|
227
|
+
session_file = session_dir / "63-1-session.md"
|
|
228
|
+
session_file.write_text("""# Session: Story 63-1
|
|
229
|
+
|
|
230
|
+
Story: 63-1
|
|
231
|
+
Status: in_progress
|
|
232
|
+
|
|
233
|
+
## Dev Assessment
|
|
234
|
+
|
|
235
|
+
Work complete.
|
|
236
|
+
""")
|
|
237
|
+
|
|
238
|
+
# Test
|
|
239
|
+
with patch("pf.prime.loader.get_project_root", return_value=tmp_path):
|
|
240
|
+
result = load_session_context(tmp_path)
|
|
241
|
+
|
|
242
|
+
# Verify
|
|
243
|
+
assert result is not None
|
|
244
|
+
filename, header, assessment = result
|
|
245
|
+
assert filename == "63-1-session.md"
|
|
246
|
+
assert "# Session: Story 63-1" in header
|
|
247
|
+
assert "## Dev Assessment" in assessment
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class TestLoadSidecars:
|
|
251
|
+
"""Tests for load_sidecars function."""
|
|
252
|
+
|
|
253
|
+
def test_load_all_sidecars(self, tmp_path: Path) -> None:
|
|
254
|
+
"""Test loading all sidecar files."""
|
|
255
|
+
# Setup
|
|
256
|
+
sidecar_dir = tmp_path / ".pennyfarthing" / "sidecars" / "dev"
|
|
257
|
+
sidecar_dir.mkdir(parents=True)
|
|
258
|
+
(sidecar_dir / "patterns.md").write_text("# Patterns")
|
|
259
|
+
(sidecar_dir / "gotchas.md").write_text("# Gotchas")
|
|
260
|
+
(sidecar_dir / "decisions.md").write_text("# Decisions")
|
|
261
|
+
|
|
262
|
+
# Test
|
|
263
|
+
result = load_sidecars("dev", tmp_path)
|
|
264
|
+
|
|
265
|
+
# Verify
|
|
266
|
+
assert len(result) == 3
|
|
267
|
+
assert "# Patterns" in result["patterns.md"]
|
|
268
|
+
assert "# Gotchas" in result["gotchas.md"]
|
|
269
|
+
assert "# Decisions" in result["decisions.md"]
|
|
270
|
+
|
|
271
|
+
def test_load_partial_sidecars(self, tmp_path: Path) -> None:
|
|
272
|
+
"""Test loading when only some sidecars exist."""
|
|
273
|
+
# Setup
|
|
274
|
+
sidecar_dir = tmp_path / ".pennyfarthing" / "sidecars" / "dev"
|
|
275
|
+
sidecar_dir.mkdir(parents=True)
|
|
276
|
+
(sidecar_dir / "patterns.md").write_text("# Patterns only")
|
|
277
|
+
|
|
278
|
+
# Test
|
|
279
|
+
result = load_sidecars("dev", tmp_path)
|
|
280
|
+
|
|
281
|
+
# Verify
|
|
282
|
+
assert len(result) == 1
|
|
283
|
+
assert "patterns.md" in result
|
|
284
|
+
|
|
285
|
+
def test_no_sidecar_directory(self, tmp_path: Path) -> None:
|
|
286
|
+
"""Test when no sidecar directory exists."""
|
|
287
|
+
result = load_sidecars("dev", tmp_path)
|
|
288
|
+
assert result == {}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class TestLoadDomainDocs:
|
|
292
|
+
"""Tests for load_domain_docs function."""
|
|
293
|
+
|
|
294
|
+
def test_load_domain_docs(self, tmp_path: Path) -> None:
|
|
295
|
+
"""Test loading domain documentation."""
|
|
296
|
+
# Setup
|
|
297
|
+
project_dir = tmp_path / ".claude" / "project"
|
|
298
|
+
project_dir.mkdir(parents=True)
|
|
299
|
+
(project_dir / "CLAUDE-api.md").write_text("# API Docs")
|
|
300
|
+
(project_dir / "CLAUDE-testing.md").write_text("# Testing Docs")
|
|
301
|
+
(project_dir / "other-file.md").write_text("# Not included")
|
|
302
|
+
|
|
303
|
+
# Test
|
|
304
|
+
result = load_domain_docs(tmp_path)
|
|
305
|
+
|
|
306
|
+
# Verify
|
|
307
|
+
assert len(result) == 2
|
|
308
|
+
filenames = [f for f, _ in result]
|
|
309
|
+
assert "CLAUDE-api.md" in filenames
|
|
310
|
+
assert "CLAUDE-testing.md" in filenames
|
|
311
|
+
assert "other-file.md" not in filenames
|
|
312
|
+
|
|
313
|
+
def test_no_domain_docs_directory(self, tmp_path: Path) -> None:
|
|
314
|
+
"""Test when no .claude/project directory exists."""
|
|
315
|
+
result = load_domain_docs(tmp_path)
|
|
316
|
+
assert result == []
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class TestPrimeFunction:
|
|
320
|
+
"""Tests for the prime() function."""
|
|
321
|
+
|
|
322
|
+
def test_minimal_mode(self, tmp_path: Path, capsys) -> None:
|
|
323
|
+
"""Test minimal mode returns immediately."""
|
|
324
|
+
result = prime(minimal=True, project_root=tmp_path)
|
|
325
|
+
|
|
326
|
+
assert result == 0
|
|
327
|
+
captured = capsys.readouterr()
|
|
328
|
+
assert captured.out == ""
|
|
329
|
+
|
|
330
|
+
def test_quiet_suppresses_headers(self, tmp_path: Path, capsys) -> None:
|
|
331
|
+
"""Test quiet mode suppresses headers but shows content."""
|
|
332
|
+
# Setup
|
|
333
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
334
|
+
pf_dir.mkdir()
|
|
335
|
+
agents_dir = pf_dir / "agents"
|
|
336
|
+
agents_dir.mkdir()
|
|
337
|
+
(agents_dir / "dev.md").write_text("Agent content here")
|
|
338
|
+
|
|
339
|
+
# Test
|
|
340
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
341
|
+
result = prime(agent_name="dev", quiet=True, project_root=tmp_path)
|
|
342
|
+
|
|
343
|
+
# Verify
|
|
344
|
+
assert result == 0
|
|
345
|
+
captured = capsys.readouterr()
|
|
346
|
+
assert "Agent content here" in captured.out
|
|
347
|
+
assert "# Agent Definition" not in captured.out
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
class TestMainCLI:
|
|
351
|
+
"""Tests for CLI main() function."""
|
|
352
|
+
|
|
353
|
+
def test_help_flag(self) -> None:
|
|
354
|
+
"""Test --help flag."""
|
|
355
|
+
with pytest.raises(SystemExit) as exc_info:
|
|
356
|
+
main(["--help"])
|
|
357
|
+
assert exc_info.value.code == 0
|
|
358
|
+
|
|
359
|
+
def test_minimal_flag(self, capsys) -> None:
|
|
360
|
+
"""Test --minimal flag."""
|
|
361
|
+
# With minimal, should just return 0 without any output
|
|
362
|
+
with patch("pf.prime.cli.get_project_root") as mock_root:
|
|
363
|
+
mock_root.return_value = Path("/tmp/test")
|
|
364
|
+
result = main(["--minimal"])
|
|
365
|
+
|
|
366
|
+
assert result == 0
|
|
367
|
+
captured = capsys.readouterr()
|
|
368
|
+
assert captured.out == ""
|
|
369
|
+
|
|
370
|
+
def test_agent_flag(self, tmp_path: Path, capsys) -> None:
|
|
371
|
+
"""Test --agent flag."""
|
|
372
|
+
# Setup
|
|
373
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
374
|
+
pf_dir.mkdir()
|
|
375
|
+
agents_dir = pf_dir / "agents"
|
|
376
|
+
agents_dir.mkdir()
|
|
377
|
+
(agents_dir / "tea.md").write_text("# TEA Agent\nTest content")
|
|
378
|
+
|
|
379
|
+
# Test
|
|
380
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
381
|
+
result = main(["--agent", "tea"])
|
|
382
|
+
|
|
383
|
+
# Verify
|
|
384
|
+
assert result == 0
|
|
385
|
+
captured = capsys.readouterr()
|
|
386
|
+
assert "# TEA Agent" in captured.out
|
|
387
|
+
|
|
388
|
+
def test_project_not_found_error(self, capsys) -> None:
|
|
389
|
+
"""Test error handling when project root not found."""
|
|
390
|
+
with patch(
|
|
391
|
+
"pf.prime.cli.get_project_root",
|
|
392
|
+
side_effect=FileNotFoundError("No project found"),
|
|
393
|
+
):
|
|
394
|
+
result = main([])
|
|
395
|
+
|
|
396
|
+
assert result == 1
|
|
397
|
+
captured = capsys.readouterr()
|
|
398
|
+
assert "Error" in captured.err
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
# =============================================================================
|
|
402
|
+
# Prime v2 Tests - Workflow State Detection
|
|
403
|
+
# =============================================================================
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
class TestWorkflowStateDetection:
|
|
407
|
+
"""Tests for workflow state detection (Prime v2)."""
|
|
408
|
+
|
|
409
|
+
def test_detect_finish_state(self, tmp_path: Path) -> None:
|
|
410
|
+
"""Test detecting FINISH_STATE when phase is approved."""
|
|
411
|
+
from pf.prime.models import WorkflowState
|
|
412
|
+
from pf.prime.workflow import detect_workflow_state
|
|
413
|
+
|
|
414
|
+
# Setup
|
|
415
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
416
|
+
pf_dir.mkdir()
|
|
417
|
+
session_dir = tmp_path / ".session"
|
|
418
|
+
session_dir.mkdir()
|
|
419
|
+
session_file = session_dir / "MSSCI-12345-session.md"
|
|
420
|
+
session_file.write_text("""# MSSCI-12345: Test Story
|
|
421
|
+
|
|
422
|
+
## Story Context
|
|
423
|
+
- **ID:** MSSCI-12345
|
|
424
|
+
- **Workflow:** tdd
|
|
425
|
+
|
|
426
|
+
## Workflow Phase
|
|
427
|
+
- **Current Phase:** REVIEW (APPROVED)
|
|
428
|
+
""")
|
|
429
|
+
|
|
430
|
+
# Test
|
|
431
|
+
result = detect_workflow_state(tmp_path)
|
|
432
|
+
|
|
433
|
+
# Verify
|
|
434
|
+
assert result.state == WorkflowState.FINISH_STATE
|
|
435
|
+
assert result.story_id == "MSSCI-12345"
|
|
436
|
+
assert result.phase_owner == "sm"
|
|
437
|
+
|
|
438
|
+
def test_detect_in_progress_state(self, tmp_path: Path) -> None:
|
|
439
|
+
"""Test detecting IN_PROGRESS_STATE with active phase."""
|
|
440
|
+
import yaml
|
|
441
|
+
|
|
442
|
+
from pf.prime.models import WorkflowState
|
|
443
|
+
from pf.prime.workflow import detect_workflow_state
|
|
444
|
+
|
|
445
|
+
# Setup
|
|
446
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
447
|
+
pf_dir.mkdir()
|
|
448
|
+
|
|
449
|
+
# Create workflow YAML
|
|
450
|
+
workflows_dir = tmp_path / "pennyfarthing-dist" / "workflows"
|
|
451
|
+
workflows_dir.mkdir(parents=True)
|
|
452
|
+
(workflows_dir / "tdd.yaml").write_text(yaml.dump({
|
|
453
|
+
"workflow": {
|
|
454
|
+
"phases": [
|
|
455
|
+
{"name": "setup", "agent": "sm"},
|
|
456
|
+
{"name": "red", "agent": "tea"},
|
|
457
|
+
{"name": "green", "agent": "dev"},
|
|
458
|
+
{"name": "review", "agent": "reviewer"},
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
}))
|
|
462
|
+
|
|
463
|
+
session_dir = tmp_path / ".session"
|
|
464
|
+
session_dir.mkdir()
|
|
465
|
+
session_file = session_dir / "63-5-session.md"
|
|
466
|
+
session_file.write_text("""# 63-5: Test Story
|
|
467
|
+
|
|
468
|
+
## Story Context
|
|
469
|
+
- **ID:** 63-5
|
|
470
|
+
- **Workflow:** tdd
|
|
471
|
+
|
|
472
|
+
## Workflow Phase
|
|
473
|
+
- **Current Phase:** green
|
|
474
|
+
""")
|
|
475
|
+
|
|
476
|
+
# Test
|
|
477
|
+
result = detect_workflow_state(tmp_path)
|
|
478
|
+
|
|
479
|
+
# Verify
|
|
480
|
+
assert result.state == WorkflowState.IN_PROGRESS_STATE
|
|
481
|
+
assert result.story_id == "63-5"
|
|
482
|
+
assert result.phase == "green"
|
|
483
|
+
assert result.phase_owner == "dev"
|
|
484
|
+
assert result.workflow == "tdd"
|
|
485
|
+
|
|
486
|
+
def test_detect_new_work_state(self, tmp_path: Path) -> None:
|
|
487
|
+
"""Test detecting NEW_WORK_STATE with backlog stories."""
|
|
488
|
+
import yaml
|
|
489
|
+
|
|
490
|
+
from pf.prime.models import WorkflowState
|
|
491
|
+
from pf.prime.workflow import detect_workflow_state
|
|
492
|
+
|
|
493
|
+
# Setup
|
|
494
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
495
|
+
pf_dir.mkdir()
|
|
496
|
+
sprint_dir = tmp_path / "sprint"
|
|
497
|
+
sprint_dir.mkdir()
|
|
498
|
+
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
499
|
+
"sprint": {"number": 12},
|
|
500
|
+
"epics": [
|
|
501
|
+
{
|
|
502
|
+
"id": "epic-1",
|
|
503
|
+
"stories": [
|
|
504
|
+
{"id": "1-1", "status": "backlog", "points": 3},
|
|
505
|
+
{"id": "1-2", "status": "ready", "points": 5},
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}))
|
|
510
|
+
|
|
511
|
+
# Test
|
|
512
|
+
result = detect_workflow_state(tmp_path)
|
|
513
|
+
|
|
514
|
+
# Verify
|
|
515
|
+
assert result.state == WorkflowState.NEW_WORK_STATE
|
|
516
|
+
assert result.backlog_count == 2
|
|
517
|
+
|
|
518
|
+
def test_detect_empty_backlog_state(self, tmp_path: Path) -> None:
|
|
519
|
+
"""Test detecting EMPTY_BACKLOG_STATE with no backlog."""
|
|
520
|
+
import yaml
|
|
521
|
+
|
|
522
|
+
from pf.prime.models import WorkflowState
|
|
523
|
+
from pf.prime.workflow import detect_workflow_state
|
|
524
|
+
|
|
525
|
+
# Setup
|
|
526
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
527
|
+
pf_dir.mkdir()
|
|
528
|
+
sprint_dir = tmp_path / "sprint"
|
|
529
|
+
sprint_dir.mkdir()
|
|
530
|
+
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
531
|
+
"sprint": {"number": 12},
|
|
532
|
+
"epics": [
|
|
533
|
+
{
|
|
534
|
+
"id": "epic-1",
|
|
535
|
+
"stories": [
|
|
536
|
+
{"id": "1-1", "status": "done", "points": 3},
|
|
537
|
+
]
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
}))
|
|
541
|
+
|
|
542
|
+
# Test
|
|
543
|
+
result = detect_workflow_state(tmp_path)
|
|
544
|
+
|
|
545
|
+
# Verify
|
|
546
|
+
assert result.state == WorkflowState.EMPTY_BACKLOG_STATE
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
class TestParseSessionHeader:
|
|
550
|
+
"""Tests for session header parsing."""
|
|
551
|
+
|
|
552
|
+
def test_parse_standard_header(self, tmp_path: Path) -> None:
|
|
553
|
+
"""Test parsing a standard session header."""
|
|
554
|
+
from pf.prime.workflow import parse_session_header
|
|
555
|
+
|
|
556
|
+
session_file = tmp_path / "MSSCI-12345-session.md"
|
|
557
|
+
session_file.write_text("""# MSSCI-12345: Test Story
|
|
558
|
+
|
|
559
|
+
## Story Context
|
|
560
|
+
- **ID:** MSSCI-12345
|
|
561
|
+
- **Workflow:** tdd
|
|
562
|
+
|
|
563
|
+
## Workflow Phase
|
|
564
|
+
- **Current Phase:** green
|
|
565
|
+
""")
|
|
566
|
+
|
|
567
|
+
result = parse_session_header(session_file)
|
|
568
|
+
|
|
569
|
+
assert result["story_id"] == "MSSCI-12345"
|
|
570
|
+
assert result["workflow"] == "tdd"
|
|
571
|
+
assert result["phase"] == "green"
|
|
572
|
+
|
|
573
|
+
def test_parse_approved_phase(self, tmp_path: Path) -> None:
|
|
574
|
+
"""Test parsing phase with APPROVED status."""
|
|
575
|
+
from pf.prime.workflow import parse_session_header
|
|
576
|
+
|
|
577
|
+
session_file = tmp_path / "63-1-session.md"
|
|
578
|
+
session_file.write_text("""# Session
|
|
579
|
+
|
|
580
|
+
- **Current Phase:** REVIEW (APPROVED)
|
|
581
|
+
""")
|
|
582
|
+
|
|
583
|
+
result = parse_session_header(session_file)
|
|
584
|
+
|
|
585
|
+
assert result["phase"] == "review"
|
|
586
|
+
assert result["phase_status"] == "approved"
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
class TestCheckRedirect:
|
|
590
|
+
"""Tests for redirect detection."""
|
|
591
|
+
|
|
592
|
+
def test_redirect_when_wrong_agent(self) -> None:
|
|
593
|
+
"""Test redirect is detected when wrong agent is activated."""
|
|
594
|
+
from pf.prime.models import WorkflowState, WorkflowStatus
|
|
595
|
+
from pf.prime.workflow import check_redirect
|
|
596
|
+
|
|
597
|
+
status = WorkflowStatus(
|
|
598
|
+
state=WorkflowState.IN_PROGRESS_STATE,
|
|
599
|
+
phase="green",
|
|
600
|
+
phase_owner="dev",
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
result = check_redirect(status, "tea")
|
|
604
|
+
|
|
605
|
+
assert result is not None
|
|
606
|
+
target, reason = result
|
|
607
|
+
assert target == "dev"
|
|
608
|
+
assert "green" in reason
|
|
609
|
+
assert "dev" in reason
|
|
610
|
+
|
|
611
|
+
def test_no_redirect_when_correct_agent(self) -> None:
|
|
612
|
+
"""Test no redirect when correct agent is activated."""
|
|
613
|
+
from pf.prime.models import WorkflowState, WorkflowStatus
|
|
614
|
+
from pf.prime.workflow import check_redirect
|
|
615
|
+
|
|
616
|
+
status = WorkflowStatus(
|
|
617
|
+
state=WorkflowState.IN_PROGRESS_STATE,
|
|
618
|
+
phase="green",
|
|
619
|
+
phase_owner="dev",
|
|
620
|
+
)
|
|
621
|
+
|
|
622
|
+
result = check_redirect(status, "dev")
|
|
623
|
+
|
|
624
|
+
assert result is None
|
|
625
|
+
|
|
626
|
+
def test_no_redirect_for_new_work(self) -> None:
|
|
627
|
+
"""Test no redirect for NEW_WORK_STATE."""
|
|
628
|
+
from pf.prime.models import WorkflowState, WorkflowStatus
|
|
629
|
+
from pf.prime.workflow import check_redirect
|
|
630
|
+
|
|
631
|
+
status = WorkflowStatus(
|
|
632
|
+
state=WorkflowState.NEW_WORK_STATE,
|
|
633
|
+
backlog_count=5,
|
|
634
|
+
)
|
|
635
|
+
|
|
636
|
+
result = check_redirect(status, "dev")
|
|
637
|
+
|
|
638
|
+
assert result is None
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
# =============================================================================
|
|
642
|
+
# Prime v2 Tests - Persona Loading
|
|
643
|
+
# =============================================================================
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
class TestPersonaLoading:
|
|
647
|
+
"""Tests for persona loading (Prime v2)."""
|
|
648
|
+
|
|
649
|
+
def test_load_persona_from_theme(self, tmp_path: Path) -> None:
|
|
650
|
+
"""Test loading persona from theme YAML."""
|
|
651
|
+
import yaml
|
|
652
|
+
|
|
653
|
+
from pf.prime.persona import load_persona
|
|
654
|
+
|
|
655
|
+
# Setup
|
|
656
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
657
|
+
pf_dir.mkdir()
|
|
658
|
+
|
|
659
|
+
# Create config
|
|
660
|
+
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test-theme"}))
|
|
661
|
+
|
|
662
|
+
# Create theme
|
|
663
|
+
themes_dir = pf_dir / "personas" / "themes"
|
|
664
|
+
themes_dir.mkdir(parents=True)
|
|
665
|
+
(themes_dir / "test-theme.yaml").write_text(yaml.dump({
|
|
666
|
+
"theme": {"name": "Test Theme"},
|
|
667
|
+
"agents": {
|
|
668
|
+
"dev": {
|
|
669
|
+
"character": "Test Developer",
|
|
670
|
+
"style": "Test style",
|
|
671
|
+
"role": "Test role",
|
|
672
|
+
"quote": "Test quote",
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}))
|
|
676
|
+
|
|
677
|
+
# Test
|
|
678
|
+
persona, theme = load_persona("dev", tmp_path)
|
|
679
|
+
|
|
680
|
+
# Verify
|
|
681
|
+
assert persona is not None
|
|
682
|
+
assert persona.character == "Test Developer"
|
|
683
|
+
assert persona.style == "Test style"
|
|
684
|
+
assert persona.role == "Test role"
|
|
685
|
+
assert persona.quote == "Test quote"
|
|
686
|
+
assert theme == "test-theme"
|
|
687
|
+
|
|
688
|
+
def test_load_persona_no_theme(self, tmp_path: Path) -> None:
|
|
689
|
+
"""Test load_persona returns None when no theme configured."""
|
|
690
|
+
from pf.prime.persona import load_persona
|
|
691
|
+
|
|
692
|
+
# Setup - no config
|
|
693
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
694
|
+
pf_dir.mkdir()
|
|
695
|
+
|
|
696
|
+
# Test
|
|
697
|
+
persona, theme = load_persona("dev", tmp_path)
|
|
698
|
+
|
|
699
|
+
# Verify
|
|
700
|
+
assert persona is None
|
|
701
|
+
assert theme is None
|
|
702
|
+
|
|
703
|
+
def test_get_crew_manifest(self, tmp_path: Path) -> None:
|
|
704
|
+
"""Test getting crew manifest for handoff reference."""
|
|
705
|
+
import yaml
|
|
706
|
+
|
|
707
|
+
from pf.prime.persona import get_crew_manifest
|
|
708
|
+
|
|
709
|
+
# Setup
|
|
710
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
711
|
+
pf_dir.mkdir()
|
|
712
|
+
|
|
713
|
+
# Create config
|
|
714
|
+
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test-theme"}))
|
|
715
|
+
|
|
716
|
+
# Create theme with multiple agents
|
|
717
|
+
themes_dir = pf_dir / "personas" / "themes"
|
|
718
|
+
themes_dir.mkdir(parents=True)
|
|
719
|
+
(themes_dir / "test-theme.yaml").write_text(yaml.dump({
|
|
720
|
+
"agents": {
|
|
721
|
+
"sm": {"character": "Scrum Master"},
|
|
722
|
+
"tea": {"character": "Test Engineer"},
|
|
723
|
+
"dev": {"character": "Developer"},
|
|
724
|
+
}
|
|
725
|
+
}))
|
|
726
|
+
|
|
727
|
+
# Test
|
|
728
|
+
crew = get_crew_manifest(tmp_path)
|
|
729
|
+
|
|
730
|
+
# Verify
|
|
731
|
+
assert len(crew) == 3
|
|
732
|
+
roles = {c.role for c in crew}
|
|
733
|
+
assert "sm" in roles
|
|
734
|
+
assert "tea" in roles
|
|
735
|
+
assert "dev" in roles
|
|
736
|
+
|
|
737
|
+
def test_format_persona_output(self) -> None:
|
|
738
|
+
"""Test formatting persona as XML."""
|
|
739
|
+
from pf.prime.models import CrewMember, Persona
|
|
740
|
+
from pf.prime.persona import format_persona_output
|
|
741
|
+
|
|
742
|
+
persona = Persona(
|
|
743
|
+
character="Naomi Nagata",
|
|
744
|
+
style="Precise, systematic",
|
|
745
|
+
role="The XO and engineer",
|
|
746
|
+
quote="I can fix this.",
|
|
747
|
+
)
|
|
748
|
+
crew = [
|
|
749
|
+
CrewMember(role="sm", character="Drummer"),
|
|
750
|
+
CrewMember(role="dev", character="Naomi"),
|
|
751
|
+
]
|
|
752
|
+
|
|
753
|
+
result = format_persona_output(persona, "the-expanse", "dev", crew, "Bossmang")
|
|
754
|
+
|
|
755
|
+
assert '<persona agent="dev" theme="the-expanse">' in result
|
|
756
|
+
assert "Character: Naomi Nagata" in result
|
|
757
|
+
assert "Quote: I can fix this." in result
|
|
758
|
+
assert "<user-title>Address the user as: Bossmang</user-title>" in result
|
|
759
|
+
assert '<crew theme="the-expanse">' in result
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
# =============================================================================
|
|
763
|
+
# Prime v2 Tests - Session Registration
|
|
764
|
+
# =============================================================================
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
class TestSessionRegistration:
|
|
768
|
+
"""Tests for session registration (Prime v2)."""
|
|
769
|
+
|
|
770
|
+
def test_register_session(self, tmp_path: Path) -> None:
|
|
771
|
+
"""Test registering a new session."""
|
|
772
|
+
from pf.prime.session import register_session
|
|
773
|
+
|
|
774
|
+
# Setup
|
|
775
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
776
|
+
pf_dir.mkdir()
|
|
777
|
+
|
|
778
|
+
# Test
|
|
779
|
+
result = register_session("dev", session_id="test-123", project_root=tmp_path)
|
|
780
|
+
|
|
781
|
+
# Verify
|
|
782
|
+
assert result.session_id == "test-123"
|
|
783
|
+
assert result.agent_name == "dev"
|
|
784
|
+
|
|
785
|
+
# Check file was created
|
|
786
|
+
session_file = tmp_path / ".session" / "agents" / "test-123"
|
|
787
|
+
assert session_file.exists()
|
|
788
|
+
assert session_file.read_text() == "dev"
|
|
789
|
+
|
|
790
|
+
def test_register_session_generates_id(self, tmp_path: Path) -> None:
|
|
791
|
+
"""Test that session ID is generated if not provided."""
|
|
792
|
+
from pf.prime.session import register_session
|
|
793
|
+
|
|
794
|
+
# Setup
|
|
795
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
796
|
+
pf_dir.mkdir()
|
|
797
|
+
|
|
798
|
+
# Test
|
|
799
|
+
result = register_session("tea", project_root=tmp_path)
|
|
800
|
+
|
|
801
|
+
# Verify - should have a UUID-like session ID
|
|
802
|
+
assert result.session_id is not None
|
|
803
|
+
assert len(result.session_id) > 0
|
|
804
|
+
|
|
805
|
+
def test_cleanup_old_sessions(self, tmp_path: Path) -> None:
|
|
806
|
+
"""Test cleanup of old session files."""
|
|
807
|
+
import time
|
|
808
|
+
|
|
809
|
+
from pf.prime.session import cleanup_old_sessions
|
|
810
|
+
|
|
811
|
+
# Setup
|
|
812
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
813
|
+
pf_dir.mkdir()
|
|
814
|
+
agents_dir = tmp_path / ".session" / "agents"
|
|
815
|
+
agents_dir.mkdir(parents=True)
|
|
816
|
+
|
|
817
|
+
# Create an old session file
|
|
818
|
+
old_session = agents_dir / "old-session"
|
|
819
|
+
old_session.write_text("sm")
|
|
820
|
+
# Set mtime to 10 days ago
|
|
821
|
+
old_time = time.time() - (10 * 86400)
|
|
822
|
+
import os
|
|
823
|
+
os.utime(old_session, (old_time, old_time))
|
|
824
|
+
|
|
825
|
+
# Create a new session file
|
|
826
|
+
new_session = agents_dir / "new-session"
|
|
827
|
+
new_session.write_text("dev")
|
|
828
|
+
|
|
829
|
+
# Test
|
|
830
|
+
removed = cleanup_old_sessions(tmp_path, max_age_days=7)
|
|
831
|
+
|
|
832
|
+
# Verify
|
|
833
|
+
assert removed == 1
|
|
834
|
+
assert not old_session.exists()
|
|
835
|
+
assert new_session.exists()
|
|
836
|
+
|
|
837
|
+
def test_get_session_agent(self, tmp_path: Path) -> None:
|
|
838
|
+
"""Test getting agent name for a session."""
|
|
839
|
+
from pf.prime.session import get_session_agent
|
|
840
|
+
|
|
841
|
+
# Setup
|
|
842
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
843
|
+
pf_dir.mkdir()
|
|
844
|
+
agents_dir = tmp_path / ".session" / "agents"
|
|
845
|
+
agents_dir.mkdir(parents=True)
|
|
846
|
+
(agents_dir / "test-session").write_text("reviewer")
|
|
847
|
+
|
|
848
|
+
# Test
|
|
849
|
+
result = get_session_agent("test-session", tmp_path)
|
|
850
|
+
|
|
851
|
+
# Verify
|
|
852
|
+
assert result == "reviewer"
|
|
853
|
+
|
|
854
|
+
def test_unregister_session(self, tmp_path: Path) -> None:
|
|
855
|
+
"""Test unregistering a session."""
|
|
856
|
+
from pf.prime.session import unregister_session
|
|
857
|
+
|
|
858
|
+
# Setup
|
|
859
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
860
|
+
pf_dir.mkdir()
|
|
861
|
+
agents_dir = tmp_path / ".session" / "agents"
|
|
862
|
+
agents_dir.mkdir(parents=True)
|
|
863
|
+
session_file = agents_dir / "to-remove"
|
|
864
|
+
session_file.write_text("dev")
|
|
865
|
+
|
|
866
|
+
# Test
|
|
867
|
+
result = unregister_session("to-remove", tmp_path)
|
|
868
|
+
|
|
869
|
+
# Verify
|
|
870
|
+
assert result is True
|
|
871
|
+
assert not session_file.exists()
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
# =============================================================================
|
|
875
|
+
# Prime v2 Tests - JSON Output
|
|
876
|
+
# =============================================================================
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
class TestJSONOutput:
|
|
880
|
+
"""Tests for JSON output (Prime v2)."""
|
|
881
|
+
|
|
882
|
+
def test_json_output_minimal(self, tmp_path: Path, capsys) -> None:
|
|
883
|
+
"""Test JSON output in minimal mode."""
|
|
884
|
+
import json
|
|
885
|
+
|
|
886
|
+
result = prime(minimal=True, json_output=True, project_root=tmp_path)
|
|
887
|
+
|
|
888
|
+
assert result == 0
|
|
889
|
+
captured = capsys.readouterr()
|
|
890
|
+
data = json.loads(captured.out)
|
|
891
|
+
assert data["minimal"] is True
|
|
892
|
+
|
|
893
|
+
def test_json_output_with_workflow(self, tmp_path: Path, capsys) -> None:
|
|
894
|
+
"""Test JSON output includes workflow status."""
|
|
895
|
+
import json
|
|
896
|
+
|
|
897
|
+
import yaml
|
|
898
|
+
|
|
899
|
+
# Setup
|
|
900
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
901
|
+
pf_dir.mkdir()
|
|
902
|
+
agents_dir = pf_dir / "agents"
|
|
903
|
+
agents_dir.mkdir()
|
|
904
|
+
(agents_dir / "sm.md").write_text("# SM Agent\nScrum Master")
|
|
905
|
+
sprint_dir = tmp_path / "sprint"
|
|
906
|
+
sprint_dir.mkdir()
|
|
907
|
+
(sprint_dir / "current-sprint.yaml").write_text(yaml.dump({
|
|
908
|
+
"sprint": {"number": 12},
|
|
909
|
+
"epics": [
|
|
910
|
+
{
|
|
911
|
+
"id": "epic-1",
|
|
912
|
+
"stories": [
|
|
913
|
+
{"id": "1-1", "status": "backlog", "points": 3},
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
]
|
|
917
|
+
}))
|
|
918
|
+
|
|
919
|
+
# Test
|
|
920
|
+
result = prime(
|
|
921
|
+
agent_name="sm",
|
|
922
|
+
json_output=True,
|
|
923
|
+
no_persona=True,
|
|
924
|
+
no_register=True,
|
|
925
|
+
project_root=tmp_path,
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
assert result == 0
|
|
929
|
+
captured = capsys.readouterr()
|
|
930
|
+
data = json.loads(captured.out)
|
|
931
|
+
|
|
932
|
+
assert "workflow_status" in data
|
|
933
|
+
assert data["workflow_status"]["state"] == "NEW_WORK_STATE"
|
|
934
|
+
assert data["workflow_status"]["backlog_count"] == 1
|
|
935
|
+
|
|
936
|
+
def test_json_output_with_redirect(self, tmp_path: Path, capsys) -> None:
|
|
937
|
+
"""Test JSON output includes redirect info."""
|
|
938
|
+
import json
|
|
939
|
+
|
|
940
|
+
import yaml
|
|
941
|
+
|
|
942
|
+
# Setup
|
|
943
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
944
|
+
pf_dir.mkdir()
|
|
945
|
+
agents_dir = pf_dir / "agents"
|
|
946
|
+
agents_dir.mkdir()
|
|
947
|
+
(agents_dir / "tea.md").write_text("# TEA Agent\nTest Engineer")
|
|
948
|
+
|
|
949
|
+
# Create workflow YAML
|
|
950
|
+
workflows_dir = tmp_path / "pennyfarthing-dist" / "workflows"
|
|
951
|
+
workflows_dir.mkdir(parents=True)
|
|
952
|
+
(workflows_dir / "tdd.yaml").write_text(yaml.dump({
|
|
953
|
+
"workflow": {
|
|
954
|
+
"phases": [
|
|
955
|
+
{"name": "green", "agent": "dev"},
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
}))
|
|
959
|
+
|
|
960
|
+
session_dir = tmp_path / ".session"
|
|
961
|
+
session_dir.mkdir()
|
|
962
|
+
(session_dir / "test-session.md").write_text("""# Test
|
|
963
|
+
|
|
964
|
+
- **Workflow:** tdd
|
|
965
|
+
- **Current Phase:** green
|
|
966
|
+
""")
|
|
967
|
+
|
|
968
|
+
# Test - activating TEA when DEV owns the phase
|
|
969
|
+
result = prime(
|
|
970
|
+
agent_name="tea",
|
|
971
|
+
json_output=True,
|
|
972
|
+
no_persona=True,
|
|
973
|
+
no_register=True,
|
|
974
|
+
project_root=tmp_path,
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
assert result == 0
|
|
978
|
+
captured = capsys.readouterr()
|
|
979
|
+
data = json.loads(captured.out)
|
|
980
|
+
|
|
981
|
+
assert data["redirect_to"] == "dev"
|
|
982
|
+
assert "green" in data["redirect_reason"]
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
# =============================================================================
|
|
986
|
+
# Prime v2 Tests - CLI Flags
|
|
987
|
+
# =============================================================================
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
class TestCLIFlagsV2:
|
|
991
|
+
"""Tests for new CLI flags in Prime v2."""
|
|
992
|
+
|
|
993
|
+
def test_json_flag(self, tmp_path: Path, capsys) -> None:
|
|
994
|
+
"""Test --json flag."""
|
|
995
|
+
import json
|
|
996
|
+
|
|
997
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
998
|
+
pf_dir.mkdir()
|
|
999
|
+
|
|
1000
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
1001
|
+
result = main(["--json", "--no-workflow", "--no-register"])
|
|
1002
|
+
|
|
1003
|
+
assert result == 0
|
|
1004
|
+
captured = capsys.readouterr()
|
|
1005
|
+
# Should be valid JSON
|
|
1006
|
+
data = json.loads(captured.out)
|
|
1007
|
+
assert "agent_name" in data
|
|
1008
|
+
|
|
1009
|
+
def test_no_persona_flag(self, tmp_path: Path, capsys) -> None:
|
|
1010
|
+
"""Test --no-persona flag skips persona loading."""
|
|
1011
|
+
import yaml
|
|
1012
|
+
|
|
1013
|
+
# Setup
|
|
1014
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
1015
|
+
pf_dir.mkdir()
|
|
1016
|
+
agents_dir = pf_dir / "agents"
|
|
1017
|
+
agents_dir.mkdir()
|
|
1018
|
+
(agents_dir / "dev.md").write_text("# Dev Agent")
|
|
1019
|
+
|
|
1020
|
+
# Create config and theme that would normally load
|
|
1021
|
+
(pf_dir / "config.local.yaml").write_text(yaml.dump({"theme": "test"}))
|
|
1022
|
+
themes_dir = pf_dir / "personas" / "themes"
|
|
1023
|
+
themes_dir.mkdir(parents=True)
|
|
1024
|
+
(themes_dir / "test.yaml").write_text(yaml.dump({
|
|
1025
|
+
"agents": {"dev": {"character": "Test", "style": "s", "role": "r"}}
|
|
1026
|
+
}))
|
|
1027
|
+
|
|
1028
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
1029
|
+
result = main(["--agent", "dev", "--no-persona", "--no-workflow", "--no-register"])
|
|
1030
|
+
|
|
1031
|
+
assert result == 0
|
|
1032
|
+
captured = capsys.readouterr()
|
|
1033
|
+
# Should NOT contain persona XML
|
|
1034
|
+
assert "<persona" not in captured.out
|
|
1035
|
+
# Should contain agent definition
|
|
1036
|
+
assert "# Dev Agent" in captured.out
|
|
1037
|
+
|
|
1038
|
+
def test_no_workflow_flag(self, tmp_path: Path, capsys) -> None:
|
|
1039
|
+
"""Test --no-workflow flag skips workflow detection."""
|
|
1040
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
1041
|
+
pf_dir.mkdir()
|
|
1042
|
+
|
|
1043
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
1044
|
+
result = main(["--no-workflow", "--no-register"])
|
|
1045
|
+
|
|
1046
|
+
assert result == 0
|
|
1047
|
+
captured = capsys.readouterr()
|
|
1048
|
+
# Should NOT contain workflow state header
|
|
1049
|
+
assert "# Workflow State" not in captured.out
|
|
1050
|
+
|
|
1051
|
+
def test_session_id_flag(self, tmp_path: Path) -> None:
|
|
1052
|
+
"""Test --session-id flag uses explicit ID."""
|
|
1053
|
+
from pf.prime.session import get_session_agent
|
|
1054
|
+
|
|
1055
|
+
pf_dir = tmp_path / ".pennyfarthing"
|
|
1056
|
+
pf_dir.mkdir()
|
|
1057
|
+
agents_dir = pf_dir / "agents"
|
|
1058
|
+
agents_dir.mkdir()
|
|
1059
|
+
(agents_dir / "sm.md").write_text("# SM Agent\nScrum Master")
|
|
1060
|
+
|
|
1061
|
+
with patch("pf.prime.cli.get_project_root", return_value=tmp_path):
|
|
1062
|
+
result = main(["--agent", "sm", "--session-id", "explicit-123", "--no-workflow"])
|
|
1063
|
+
|
|
1064
|
+
assert result == 0
|
|
1065
|
+
|
|
1066
|
+
# Verify session was created with explicit ID
|
|
1067
|
+
agent = get_session_agent("explicit-123", tmp_path)
|
|
1068
|
+
assert agent == "sm"
|