@pennyfarthing/core 11.3.3 → 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/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/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/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_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 -802
- 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,785 @@
|
|
|
1
|
+
"""Tests for BikeRack launcher CLI.
|
|
2
|
+
|
|
3
|
+
Story 101-5: BikeRack launcher CLI (pf bikerack start/stop/status)
|
|
4
|
+
Epic: 101 — BikeRack Mode (ADR-0024)
|
|
5
|
+
|
|
6
|
+
Acceptance Criteria:
|
|
7
|
+
- [AC1] `pf bikerack start` starts WheelHub background with IS_BIKERACK=1
|
|
8
|
+
- [AC2] Polls for .bikerack-port file (100ms interval, 5s timeout)
|
|
9
|
+
- [AC3] Sets exactly 5 OTEL env vars from discovered port (Rule 5)
|
|
10
|
+
- [AC4] Uses exec (not spawn) for Claude CLI (CE-4)
|
|
11
|
+
- [AC5] trap EXIT registered before exec to kill WheelHub PID (Rule 8)
|
|
12
|
+
- [AC6] Writes .wheelhub-pid after spawning WheelHub
|
|
13
|
+
- [AC7] `pf bikerack stop` reads PID, sends SIGTERM, deletes files
|
|
14
|
+
- [AC8] `pf bikerack status` shows running state (PID, port, uptime)
|
|
15
|
+
- [AC9] Error if already running (.bikerack-port exists with live PID)
|
|
16
|
+
- [AC10] Exit code 1 if WheelHub fails to start, 2 if already running
|
|
17
|
+
- [AC11] Prints dashboard URL on startup
|
|
18
|
+
- [AC12] `just bikerack` works as alias
|
|
19
|
+
|
|
20
|
+
Tests should FAIL until launcher.py is implemented.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
import os
|
|
24
|
+
import signal
|
|
25
|
+
import subprocess
|
|
26
|
+
import sys
|
|
27
|
+
from pathlib import Path
|
|
28
|
+
from unittest.mock import MagicMock, patch
|
|
29
|
+
|
|
30
|
+
import pytest
|
|
31
|
+
|
|
32
|
+
from pf.bikerack.launcher import (
|
|
33
|
+
build_otel_env,
|
|
34
|
+
cleanup_files,
|
|
35
|
+
exec_claude,
|
|
36
|
+
get_status,
|
|
37
|
+
is_already_running,
|
|
38
|
+
is_process_alive,
|
|
39
|
+
poll_for_port_file,
|
|
40
|
+
read_pid_file,
|
|
41
|
+
read_port_file,
|
|
42
|
+
register_cleanup,
|
|
43
|
+
start_wheelhub,
|
|
44
|
+
stop_bikerack,
|
|
45
|
+
write_pid_file,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
# ---------------------------------------------------------------------------
|
|
49
|
+
# AC1: `pf bikerack start` starts WheelHub background with IS_BIKERACK=1
|
|
50
|
+
# ---------------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class TestStartWheelHub:
|
|
54
|
+
"""AC1: start_wheelhub starts WheelHub in background with IS_BIKERACK=1."""
|
|
55
|
+
|
|
56
|
+
def test_starts_subprocess(self, tmp_path: Path) -> None:
|
|
57
|
+
"""start_wheelhub should return a Popen object (background process)."""
|
|
58
|
+
with patch("pf.bikerack.launcher.subprocess.Popen") as mock_popen:
|
|
59
|
+
mock_proc = MagicMock()
|
|
60
|
+
mock_proc.pid = 12345
|
|
61
|
+
mock_popen.return_value = mock_proc
|
|
62
|
+
|
|
63
|
+
result = start_wheelhub(tmp_path)
|
|
64
|
+
|
|
65
|
+
assert result.pid == 12345
|
|
66
|
+
mock_popen.assert_called_once()
|
|
67
|
+
|
|
68
|
+
def test_sets_is_bikerack_env(self, tmp_path: Path) -> None:
|
|
69
|
+
"""start_wheelhub should set IS_BIKERACK=1 in subprocess env."""
|
|
70
|
+
with patch("pf.bikerack.launcher.subprocess.Popen") as mock_popen:
|
|
71
|
+
mock_popen.return_value = MagicMock(pid=12345)
|
|
72
|
+
|
|
73
|
+
start_wheelhub(tmp_path)
|
|
74
|
+
|
|
75
|
+
# Inspect the env passed to Popen
|
|
76
|
+
popen_kwargs = mock_popen.call_args
|
|
77
|
+
env = popen_kwargs.kwargs.get("env") or popen_kwargs[1].get("env")
|
|
78
|
+
assert env is not None, "Popen should be called with env parameter"
|
|
79
|
+
assert env.get("IS_BIKERACK") == "1"
|
|
80
|
+
|
|
81
|
+
def test_sets_project_dir_env(self, tmp_path: Path) -> None:
|
|
82
|
+
"""start_wheelhub should set CYCLIST_PROJECT_DIR in subprocess env."""
|
|
83
|
+
with patch("pf.bikerack.launcher.subprocess.Popen") as mock_popen:
|
|
84
|
+
mock_popen.return_value = MagicMock(pid=12345)
|
|
85
|
+
|
|
86
|
+
start_wheelhub(tmp_path)
|
|
87
|
+
|
|
88
|
+
popen_kwargs = mock_popen.call_args
|
|
89
|
+
env = popen_kwargs.kwargs.get("env") or popen_kwargs[1].get("env")
|
|
90
|
+
assert env.get("CYCLIST_PROJECT_DIR") == str(tmp_path)
|
|
91
|
+
|
|
92
|
+
def test_process_is_background(self, tmp_path: Path) -> None:
|
|
93
|
+
"""start_wheelhub should not block (background process)."""
|
|
94
|
+
with patch("pf.bikerack.launcher.subprocess.Popen") as mock_popen:
|
|
95
|
+
mock_popen.return_value = MagicMock(pid=12345)
|
|
96
|
+
|
|
97
|
+
result = start_wheelhub(tmp_path)
|
|
98
|
+
|
|
99
|
+
# Should return immediately (Popen, not run)
|
|
100
|
+
result.wait.assert_not_called()
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# ---------------------------------------------------------------------------
|
|
104
|
+
# AC2: Polls for .bikerack-port file (100ms interval, 5s timeout)
|
|
105
|
+
# ---------------------------------------------------------------------------
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class TestPortFilePolling:
|
|
109
|
+
"""AC2: poll_for_port_file polls with correct interval and timeout."""
|
|
110
|
+
|
|
111
|
+
def test_returns_port_when_file_exists(self, tmp_path: Path) -> None:
|
|
112
|
+
"""poll_for_port_file should return port number from file."""
|
|
113
|
+
port_file = tmp_path / ".bikerack-port"
|
|
114
|
+
port_file.write_text("2898")
|
|
115
|
+
|
|
116
|
+
result = poll_for_port_file(tmp_path)
|
|
117
|
+
|
|
118
|
+
assert result == 2898
|
|
119
|
+
|
|
120
|
+
def test_raises_on_timeout(self, tmp_path: Path) -> None:
|
|
121
|
+
"""poll_for_port_file should raise TimeoutError when file never appears."""
|
|
122
|
+
# No port file exists — should timeout
|
|
123
|
+
with pytest.raises(TimeoutError):
|
|
124
|
+
poll_for_port_file(tmp_path, timeout=0.3, interval=0.1)
|
|
125
|
+
|
|
126
|
+
def test_waits_for_file_to_appear(self, tmp_path: Path) -> None:
|
|
127
|
+
"""poll_for_port_file should poll until file appears."""
|
|
128
|
+
port_file = tmp_path / ".bikerack-port"
|
|
129
|
+
|
|
130
|
+
# Simulate file appearing after short delay
|
|
131
|
+
call_count = [0]
|
|
132
|
+
original_exists = Path.exists
|
|
133
|
+
|
|
134
|
+
def delayed_exists(self_path):
|
|
135
|
+
if str(self_path) == str(port_file):
|
|
136
|
+
call_count[0] += 1
|
|
137
|
+
if call_count[0] >= 3:
|
|
138
|
+
port_file.write_text("2898")
|
|
139
|
+
return True
|
|
140
|
+
return False
|
|
141
|
+
return original_exists(self_path)
|
|
142
|
+
|
|
143
|
+
with patch.object(Path, "exists", delayed_exists):
|
|
144
|
+
result = poll_for_port_file(tmp_path, timeout=5.0, interval=0.05)
|
|
145
|
+
assert result == 2898
|
|
146
|
+
|
|
147
|
+
def test_default_timeout_is_5_seconds(self, tmp_path: Path) -> None:
|
|
148
|
+
"""poll_for_port_file default timeout should be 5 seconds."""
|
|
149
|
+
import inspect
|
|
150
|
+
|
|
151
|
+
sig = inspect.signature(poll_for_port_file)
|
|
152
|
+
assert sig.parameters["timeout"].default == 5.0
|
|
153
|
+
|
|
154
|
+
def test_default_interval_is_100ms(self, tmp_path: Path) -> None:
|
|
155
|
+
"""poll_for_port_file default interval should be 0.1 seconds (100ms)."""
|
|
156
|
+
import inspect
|
|
157
|
+
|
|
158
|
+
sig = inspect.signature(poll_for_port_file)
|
|
159
|
+
assert sig.parameters["interval"].default == 0.1
|
|
160
|
+
|
|
161
|
+
def test_reads_integer_port(self, tmp_path: Path) -> None:
|
|
162
|
+
"""poll_for_port_file should parse port as integer."""
|
|
163
|
+
port_file = tmp_path / ".bikerack-port"
|
|
164
|
+
port_file.write_text("3000\n") # Trailing newline should be handled
|
|
165
|
+
|
|
166
|
+
result = poll_for_port_file(tmp_path)
|
|
167
|
+
|
|
168
|
+
assert isinstance(result, int)
|
|
169
|
+
assert result == 3000
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# ---------------------------------------------------------------------------
|
|
173
|
+
# AC3: Sets exactly 5 OTEL env vars from discovered port (Rule 5)
|
|
174
|
+
# ---------------------------------------------------------------------------
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class TestOtelEnvVars:
|
|
178
|
+
"""AC3: build_otel_env sets exactly 5 OTEL env vars (Rule 5 from ADR-0024)."""
|
|
179
|
+
|
|
180
|
+
def test_returns_exactly_five_vars(self) -> None:
|
|
181
|
+
"""build_otel_env should return exactly 5 environment variables."""
|
|
182
|
+
result = build_otel_env(2898)
|
|
183
|
+
assert len(result) == 5, f"Expected 5 OTEL vars, got {len(result)}: {list(result.keys())}"
|
|
184
|
+
|
|
185
|
+
def test_includes_telemetry_enable(self) -> None:
|
|
186
|
+
"""build_otel_env should include CLAUDE_CODE_ENABLE_TELEMETRY=1."""
|
|
187
|
+
result = build_otel_env(2898)
|
|
188
|
+
assert result.get("CLAUDE_CODE_ENABLE_TELEMETRY") == "1"
|
|
189
|
+
|
|
190
|
+
def test_includes_logs_exporter(self) -> None:
|
|
191
|
+
"""build_otel_env should include OTEL_LOGS_EXPORTER=otlp."""
|
|
192
|
+
result = build_otel_env(2898)
|
|
193
|
+
assert result.get("OTEL_LOGS_EXPORTER") == "otlp"
|
|
194
|
+
|
|
195
|
+
def test_includes_metrics_exporter(self) -> None:
|
|
196
|
+
"""build_otel_env should include OTEL_METRICS_EXPORTER=otlp."""
|
|
197
|
+
result = build_otel_env(2898)
|
|
198
|
+
assert result.get("OTEL_METRICS_EXPORTER") == "otlp"
|
|
199
|
+
|
|
200
|
+
def test_includes_otlp_protocol(self) -> None:
|
|
201
|
+
"""build_otel_env should include OTEL_EXPORTER_OTLP_PROTOCOL=http/json."""
|
|
202
|
+
result = build_otel_env(2898)
|
|
203
|
+
assert result.get("OTEL_EXPORTER_OTLP_PROTOCOL") == "http/json"
|
|
204
|
+
|
|
205
|
+
def test_includes_otlp_endpoint_with_port(self) -> None:
|
|
206
|
+
"""build_otel_env should include OTEL_EXPORTER_OTLP_ENDPOINT with correct port."""
|
|
207
|
+
result = build_otel_env(2898)
|
|
208
|
+
assert result.get("OTEL_EXPORTER_OTLP_ENDPOINT") == "http://localhost:2898"
|
|
209
|
+
|
|
210
|
+
def test_endpoint_uses_provided_port(self) -> None:
|
|
211
|
+
"""build_otel_env endpoint should use the port argument."""
|
|
212
|
+
result = build_otel_env(3456)
|
|
213
|
+
assert result["OTEL_EXPORTER_OTLP_ENDPOINT"] == "http://localhost:3456"
|
|
214
|
+
|
|
215
|
+
def test_no_traces_exporter(self) -> None:
|
|
216
|
+
"""build_otel_env should NOT include OTEL_TRACES_EXPORTER (Claude doesn't emit traces)."""
|
|
217
|
+
result = build_otel_env(2898)
|
|
218
|
+
assert "OTEL_TRACES_EXPORTER" not in result
|
|
219
|
+
|
|
220
|
+
def test_returns_dict_of_strings(self) -> None:
|
|
221
|
+
"""build_otel_env should return dict[str, str]."""
|
|
222
|
+
result = build_otel_env(2898)
|
|
223
|
+
for key, val in result.items():
|
|
224
|
+
assert isinstance(key, str), f"Key {key!r} is not str"
|
|
225
|
+
assert isinstance(val, str), f"Value {val!r} for {key} is not str"
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# ---------------------------------------------------------------------------
|
|
229
|
+
# AC4: Uses exec (not spawn) for Claude CLI (CE-4)
|
|
230
|
+
# ---------------------------------------------------------------------------
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class TestExecClaude:
|
|
234
|
+
"""AC4: exec_claude replaces the process with Claude CLI via os.execvpe."""
|
|
235
|
+
|
|
236
|
+
def test_calls_os_execvpe(self) -> None:
|
|
237
|
+
"""exec_claude should call os.execvpe (not subprocess.Popen)."""
|
|
238
|
+
otel_env = build_otel_env(2898)
|
|
239
|
+
|
|
240
|
+
with patch("pf.bikerack.launcher.os.execvpe") as mock_exec:
|
|
241
|
+
# execvpe never returns, so mock it
|
|
242
|
+
mock_exec.side_effect = SystemExit(0)
|
|
243
|
+
|
|
244
|
+
with pytest.raises(SystemExit):
|
|
245
|
+
exec_claude(otel_env)
|
|
246
|
+
|
|
247
|
+
mock_exec.assert_called_once()
|
|
248
|
+
|
|
249
|
+
def test_execs_claude_binary(self) -> None:
|
|
250
|
+
"""exec_claude should exec the 'claude' binary."""
|
|
251
|
+
otel_env = build_otel_env(2898)
|
|
252
|
+
|
|
253
|
+
with patch("pf.bikerack.launcher.os.execvpe") as mock_exec:
|
|
254
|
+
mock_exec.side_effect = SystemExit(0)
|
|
255
|
+
|
|
256
|
+
with pytest.raises(SystemExit):
|
|
257
|
+
exec_claude(otel_env)
|
|
258
|
+
|
|
259
|
+
args = mock_exec.call_args
|
|
260
|
+
# First arg to execvpe is the program name
|
|
261
|
+
assert args[0][0] == "claude"
|
|
262
|
+
|
|
263
|
+
def test_merges_otel_env_with_current_env(self) -> None:
|
|
264
|
+
"""exec_claude should merge OTEL vars into current environment."""
|
|
265
|
+
otel_env = {"CLAUDE_CODE_ENABLE_TELEMETRY": "1", "OTEL_LOGS_EXPORTER": "otlp"}
|
|
266
|
+
|
|
267
|
+
with patch("pf.bikerack.launcher.os.execvpe") as mock_exec:
|
|
268
|
+
mock_exec.side_effect = SystemExit(0)
|
|
269
|
+
|
|
270
|
+
with pytest.raises(SystemExit):
|
|
271
|
+
exec_claude(otel_env)
|
|
272
|
+
|
|
273
|
+
args = mock_exec.call_args
|
|
274
|
+
# Third arg is the env dict
|
|
275
|
+
exec_env = args[0][2] if len(args[0]) > 2 else args.kwargs.get("env")
|
|
276
|
+
assert exec_env is not None
|
|
277
|
+
# Should contain OTEL vars
|
|
278
|
+
assert exec_env.get("CLAUDE_CODE_ENABLE_TELEMETRY") == "1"
|
|
279
|
+
# Should also contain existing env vars (e.g., PATH)
|
|
280
|
+
assert "PATH" in exec_env
|
|
281
|
+
|
|
282
|
+
def test_does_not_use_subprocess(self) -> None:
|
|
283
|
+
"""exec_claude must NOT use subprocess (CE-4: exec, not spawn)."""
|
|
284
|
+
otel_env = build_otel_env(2898)
|
|
285
|
+
|
|
286
|
+
with patch("pf.bikerack.launcher.os.execvpe") as mock_exec:
|
|
287
|
+
mock_exec.side_effect = SystemExit(0)
|
|
288
|
+
|
|
289
|
+
with patch("pf.bikerack.launcher.subprocess.Popen") as mock_popen:
|
|
290
|
+
with pytest.raises(SystemExit):
|
|
291
|
+
exec_claude(otel_env)
|
|
292
|
+
|
|
293
|
+
mock_popen.assert_not_called()
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
# ---------------------------------------------------------------------------
|
|
297
|
+
# AC5: trap EXIT registered before exec to kill WheelHub PID (Rule 8)
|
|
298
|
+
# ---------------------------------------------------------------------------
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
class TestCleanupRegistration:
|
|
302
|
+
"""AC5: register_cleanup sets up atexit handler to kill WheelHub."""
|
|
303
|
+
|
|
304
|
+
def test_registers_atexit_handler(self, tmp_path: Path) -> None:
|
|
305
|
+
"""register_cleanup should register an atexit handler."""
|
|
306
|
+
with patch("pf.bikerack.launcher.atexit.register") as mock_register:
|
|
307
|
+
register_cleanup(tmp_path, pid=12345)
|
|
308
|
+
|
|
309
|
+
mock_register.assert_called_once()
|
|
310
|
+
|
|
311
|
+
def test_cleanup_kills_wheelhub_pid(self, tmp_path: Path) -> None:
|
|
312
|
+
"""Registered cleanup should send SIGTERM to WheelHub PID."""
|
|
313
|
+
cleanup_func = None
|
|
314
|
+
|
|
315
|
+
def capture_handler(func, *args, **kwargs):
|
|
316
|
+
nonlocal cleanup_func
|
|
317
|
+
|
|
318
|
+
def _call_cleanup():
|
|
319
|
+
return func(*args, **kwargs)
|
|
320
|
+
|
|
321
|
+
cleanup_func = _call_cleanup
|
|
322
|
+
|
|
323
|
+
with patch("pf.bikerack.launcher.atexit.register", side_effect=capture_handler):
|
|
324
|
+
register_cleanup(tmp_path, pid=12345)
|
|
325
|
+
|
|
326
|
+
assert cleanup_func is not None, "atexit handler not registered"
|
|
327
|
+
|
|
328
|
+
with patch("pf.bikerack.launcher.os.kill") as mock_kill:
|
|
329
|
+
with patch("pf.bikerack.launcher.os.path.exists", return_value=True):
|
|
330
|
+
# Simulate cleanup
|
|
331
|
+
try:
|
|
332
|
+
cleanup_func()
|
|
333
|
+
except (ProcessLookupError, OSError):
|
|
334
|
+
pass # Expected if mocking doesn't cover all paths
|
|
335
|
+
|
|
336
|
+
# Should attempt to kill the PID
|
|
337
|
+
mock_kill.assert_called()
|
|
338
|
+
kill_args = mock_kill.call_args[0]
|
|
339
|
+
assert kill_args[0] == 12345
|
|
340
|
+
assert kill_args[1] == signal.SIGTERM
|
|
341
|
+
|
|
342
|
+
def test_cleanup_removes_port_file(self, tmp_path: Path) -> None:
|
|
343
|
+
"""Registered cleanup should delete .bikerack-port file."""
|
|
344
|
+
port_file = tmp_path / ".bikerack-port"
|
|
345
|
+
port_file.write_text("2898")
|
|
346
|
+
|
|
347
|
+
cleanup_func = None
|
|
348
|
+
|
|
349
|
+
def capture_handler(func, *args, **kwargs):
|
|
350
|
+
nonlocal cleanup_func
|
|
351
|
+
|
|
352
|
+
def _call_cleanup():
|
|
353
|
+
return func(*args, **kwargs)
|
|
354
|
+
|
|
355
|
+
cleanup_func = _call_cleanup
|
|
356
|
+
|
|
357
|
+
with patch("pf.bikerack.launcher.atexit.register", side_effect=capture_handler):
|
|
358
|
+
register_cleanup(tmp_path, pid=12345)
|
|
359
|
+
|
|
360
|
+
with patch("pf.bikerack.launcher.os.kill"):
|
|
361
|
+
try:
|
|
362
|
+
cleanup_func()
|
|
363
|
+
except (ProcessLookupError, OSError):
|
|
364
|
+
pass
|
|
365
|
+
|
|
366
|
+
assert not port_file.exists(), ".bikerack-port should be deleted by cleanup"
|
|
367
|
+
|
|
368
|
+
def test_cleanup_removes_pid_file(self, tmp_path: Path) -> None:
|
|
369
|
+
"""Registered cleanup should delete .wheelhub-pid file."""
|
|
370
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
371
|
+
pid_file.write_text("12345")
|
|
372
|
+
|
|
373
|
+
cleanup_func = None
|
|
374
|
+
|
|
375
|
+
def capture_handler(func, *args, **kwargs):
|
|
376
|
+
nonlocal cleanup_func
|
|
377
|
+
|
|
378
|
+
def _call_cleanup():
|
|
379
|
+
return func(*args, **kwargs)
|
|
380
|
+
|
|
381
|
+
cleanup_func = _call_cleanup
|
|
382
|
+
|
|
383
|
+
with patch("pf.bikerack.launcher.atexit.register", side_effect=capture_handler):
|
|
384
|
+
register_cleanup(tmp_path, pid=12345)
|
|
385
|
+
|
|
386
|
+
with patch("pf.bikerack.launcher.os.kill"):
|
|
387
|
+
try:
|
|
388
|
+
cleanup_func()
|
|
389
|
+
except (ProcessLookupError, OSError):
|
|
390
|
+
pass
|
|
391
|
+
|
|
392
|
+
assert not pid_file.exists(), ".wheelhub-pid should be deleted by cleanup"
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
# ---------------------------------------------------------------------------
|
|
396
|
+
# AC6: Writes .wheelhub-pid after spawning WheelHub
|
|
397
|
+
# ---------------------------------------------------------------------------
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class TestPidFile:
|
|
401
|
+
"""AC6: write_pid_file writes .wheelhub-pid."""
|
|
402
|
+
|
|
403
|
+
def test_writes_pid_to_file(self, tmp_path: Path) -> None:
|
|
404
|
+
"""write_pid_file should write PID as ASCII string."""
|
|
405
|
+
write_pid_file(tmp_path, pid=48291)
|
|
406
|
+
|
|
407
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
408
|
+
assert pid_file.exists()
|
|
409
|
+
assert pid_file.read_text().strip() == "48291"
|
|
410
|
+
|
|
411
|
+
def test_read_pid_file_returns_pid(self, tmp_path: Path) -> None:
|
|
412
|
+
"""read_pid_file should return PID as integer."""
|
|
413
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
414
|
+
pid_file.write_text("48291")
|
|
415
|
+
|
|
416
|
+
result = read_pid_file(tmp_path)
|
|
417
|
+
|
|
418
|
+
assert result == 48291
|
|
419
|
+
|
|
420
|
+
def test_read_pid_file_returns_none_when_missing(self, tmp_path: Path) -> None:
|
|
421
|
+
"""read_pid_file should return None when file doesn't exist."""
|
|
422
|
+
result = read_pid_file(tmp_path)
|
|
423
|
+
|
|
424
|
+
assert result is None
|
|
425
|
+
|
|
426
|
+
def test_write_pid_creates_file_in_project_dir(self, tmp_path: Path) -> None:
|
|
427
|
+
"""write_pid_file should create .wheelhub-pid in project directory."""
|
|
428
|
+
write_pid_file(tmp_path, pid=99999)
|
|
429
|
+
|
|
430
|
+
expected = tmp_path / ".wheelhub-pid"
|
|
431
|
+
assert expected.exists()
|
|
432
|
+
assert expected.name == ".wheelhub-pid"
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
# ---------------------------------------------------------------------------
|
|
436
|
+
# AC7: `pf bikerack stop` reads PID, sends SIGTERM, deletes files
|
|
437
|
+
# ---------------------------------------------------------------------------
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
class TestStopBikeRack:
|
|
441
|
+
"""AC7: stop_bikerack sends SIGTERM and cleans up files."""
|
|
442
|
+
|
|
443
|
+
def test_sends_sigterm_to_pid(self, tmp_path: Path) -> None:
|
|
444
|
+
"""stop_bikerack should send SIGTERM to the WheelHub PID."""
|
|
445
|
+
# Setup: create port and pid files
|
|
446
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
447
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
448
|
+
|
|
449
|
+
with patch("pf.bikerack.launcher.os.kill") as mock_kill:
|
|
450
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
451
|
+
stop_bikerack(tmp_path)
|
|
452
|
+
|
|
453
|
+
mock_kill.assert_called_with(12345, signal.SIGTERM)
|
|
454
|
+
|
|
455
|
+
def test_deletes_port_file(self, tmp_path: Path) -> None:
|
|
456
|
+
"""stop_bikerack should delete .bikerack-port."""
|
|
457
|
+
port_file = tmp_path / ".bikerack-port"
|
|
458
|
+
port_file.write_text("2898")
|
|
459
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
460
|
+
|
|
461
|
+
with patch("pf.bikerack.launcher.os.kill"):
|
|
462
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
463
|
+
stop_bikerack(tmp_path)
|
|
464
|
+
|
|
465
|
+
assert not port_file.exists()
|
|
466
|
+
|
|
467
|
+
def test_deletes_pid_file(self, tmp_path: Path) -> None:
|
|
468
|
+
"""stop_bikerack should delete .wheelhub-pid."""
|
|
469
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
470
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
471
|
+
pid_file.write_text("12345")
|
|
472
|
+
|
|
473
|
+
with patch("pf.bikerack.launcher.os.kill"):
|
|
474
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
475
|
+
stop_bikerack(tmp_path)
|
|
476
|
+
|
|
477
|
+
assert not pid_file.exists()
|
|
478
|
+
|
|
479
|
+
def test_returns_success_dict(self, tmp_path: Path) -> None:
|
|
480
|
+
"""stop_bikerack should return {success: True, pid: N, message: str}."""
|
|
481
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
482
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
483
|
+
|
|
484
|
+
with patch("pf.bikerack.launcher.os.kill"):
|
|
485
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
486
|
+
result = stop_bikerack(tmp_path)
|
|
487
|
+
|
|
488
|
+
assert result["success"] is True
|
|
489
|
+
assert result["pid"] == 12345
|
|
490
|
+
|
|
491
|
+
def test_returns_error_when_not_running(self, tmp_path: Path) -> None:
|
|
492
|
+
"""stop_bikerack should return error when no instance is running."""
|
|
493
|
+
# No port or pid files
|
|
494
|
+
result = stop_bikerack(tmp_path)
|
|
495
|
+
|
|
496
|
+
assert result["success"] is False
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
# ---------------------------------------------------------------------------
|
|
500
|
+
# AC8: `pf bikerack status` shows running state (PID, port, uptime)
|
|
501
|
+
# ---------------------------------------------------------------------------
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
class TestStatus:
|
|
505
|
+
"""AC8: get_status returns running state info."""
|
|
506
|
+
|
|
507
|
+
def test_returns_running_state(self, tmp_path: Path) -> None:
|
|
508
|
+
"""get_status should detect running BikeRack."""
|
|
509
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
510
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
511
|
+
|
|
512
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
513
|
+
result = get_status(tmp_path)
|
|
514
|
+
|
|
515
|
+
assert result["running"] is True
|
|
516
|
+
assert result["pid"] == 12345
|
|
517
|
+
assert result["port"] == 2898
|
|
518
|
+
|
|
519
|
+
def test_returns_not_running(self, tmp_path: Path) -> None:
|
|
520
|
+
"""get_status should detect no running BikeRack."""
|
|
521
|
+
result = get_status(tmp_path)
|
|
522
|
+
|
|
523
|
+
assert result["running"] is False
|
|
524
|
+
|
|
525
|
+
def test_includes_dashboard_url(self, tmp_path: Path) -> None:
|
|
526
|
+
"""get_status should include dashboard URL when running."""
|
|
527
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
528
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
529
|
+
|
|
530
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
531
|
+
result = get_status(tmp_path)
|
|
532
|
+
|
|
533
|
+
assert "http://localhost:2898/bikerack" in result.get("dashboard", "")
|
|
534
|
+
|
|
535
|
+
def test_detects_stale_pid(self, tmp_path: Path) -> None:
|
|
536
|
+
"""get_status should detect stale PID (file exists, process dead)."""
|
|
537
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
538
|
+
(tmp_path / ".wheelhub-pid").write_text("99999")
|
|
539
|
+
|
|
540
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=False):
|
|
541
|
+
result = get_status(tmp_path)
|
|
542
|
+
|
|
543
|
+
assert result["running"] is False
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
# ---------------------------------------------------------------------------
|
|
547
|
+
# AC9: Error if already running (.bikerack-port exists with live PID)
|
|
548
|
+
# ---------------------------------------------------------------------------
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
class TestAlreadyRunning:
|
|
552
|
+
"""AC9: is_already_running detects existing BikeRack instance."""
|
|
553
|
+
|
|
554
|
+
def test_detects_running_instance(self, tmp_path: Path) -> None:
|
|
555
|
+
"""is_already_running should return True when port file + live PID."""
|
|
556
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
557
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
558
|
+
|
|
559
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
560
|
+
running, pid, port = is_already_running(tmp_path)
|
|
561
|
+
|
|
562
|
+
assert running is True
|
|
563
|
+
assert pid == 12345
|
|
564
|
+
assert port == 2898
|
|
565
|
+
|
|
566
|
+
def test_not_running_when_no_files(self, tmp_path: Path) -> None:
|
|
567
|
+
"""is_already_running should return False when no files exist."""
|
|
568
|
+
running, pid, port = is_already_running(tmp_path)
|
|
569
|
+
|
|
570
|
+
assert running is False
|
|
571
|
+
assert pid is None
|
|
572
|
+
assert port is None
|
|
573
|
+
|
|
574
|
+
def test_not_running_when_stale_pid(self, tmp_path: Path) -> None:
|
|
575
|
+
"""is_already_running should return False when PID is dead (stale)."""
|
|
576
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
577
|
+
(tmp_path / ".wheelhub-pid").write_text("99999")
|
|
578
|
+
|
|
579
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=False):
|
|
580
|
+
running, pid, port = is_already_running(tmp_path)
|
|
581
|
+
|
|
582
|
+
assert running is False
|
|
583
|
+
|
|
584
|
+
def test_cleans_stale_files(self, tmp_path: Path) -> None:
|
|
585
|
+
"""is_already_running should clean up stale files when PID is dead."""
|
|
586
|
+
port_file = tmp_path / ".bikerack-port"
|
|
587
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
588
|
+
port_file.write_text("2898")
|
|
589
|
+
pid_file.write_text("99999")
|
|
590
|
+
|
|
591
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=False):
|
|
592
|
+
is_already_running(tmp_path)
|
|
593
|
+
|
|
594
|
+
assert not port_file.exists(), "Stale port file should be cleaned up"
|
|
595
|
+
assert not pid_file.exists(), "Stale PID file should be cleaned up"
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
# ---------------------------------------------------------------------------
|
|
599
|
+
# AC10: Exit codes — 1 if WheelHub fails to start, 2 if already running
|
|
600
|
+
# ---------------------------------------------------------------------------
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
class TestExitCodes:
|
|
604
|
+
"""AC10: Correct exit codes for error conditions."""
|
|
605
|
+
|
|
606
|
+
def test_exit_code_2_when_already_running(self, tmp_path: Path) -> None:
|
|
607
|
+
"""Start should raise SystemExit(2) when already running."""
|
|
608
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
609
|
+
(tmp_path / ".wheelhub-pid").write_text("12345")
|
|
610
|
+
|
|
611
|
+
with patch("pf.bikerack.launcher.is_process_alive", return_value=True):
|
|
612
|
+
with patch("pf.bikerack.launcher.is_already_running",
|
|
613
|
+
return_value=(True, 12345, 2898)):
|
|
614
|
+
# The start flow should detect already-running and exit 2
|
|
615
|
+
# This tests the logic, not the full CLI flow
|
|
616
|
+
running, pid, port = is_already_running(tmp_path)
|
|
617
|
+
assert running is True
|
|
618
|
+
# The CLI layer should convert this to exit code 2
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
# ---------------------------------------------------------------------------
|
|
622
|
+
# AC11: Prints dashboard URL on startup
|
|
623
|
+
# ---------------------------------------------------------------------------
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
class TestDashboardUrl:
|
|
627
|
+
"""AC11: Dashboard URL is displayed on startup."""
|
|
628
|
+
|
|
629
|
+
def test_dashboard_url_format(self) -> None:
|
|
630
|
+
"""Dashboard URL should be http://localhost:{port}/bikerack."""
|
|
631
|
+
# The URL format is deterministic from the port
|
|
632
|
+
port = 2898
|
|
633
|
+
expected = f"http://localhost:{port}/bikerack"
|
|
634
|
+
assert expected == "http://localhost:2898/bikerack"
|
|
635
|
+
|
|
636
|
+
def test_dashboard_url_uses_custom_port(self) -> None:
|
|
637
|
+
"""Dashboard URL should use the actual discovered port."""
|
|
638
|
+
port = 3456
|
|
639
|
+
expected = f"http://localhost:{port}/bikerack"
|
|
640
|
+
assert expected == "http://localhost:3456/bikerack"
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
# ---------------------------------------------------------------------------
|
|
644
|
+
# AC12: `just bikerack` works as alias (tested at integration level)
|
|
645
|
+
# ---------------------------------------------------------------------------
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
class TestBikeRackCLI:
|
|
649
|
+
"""AC12: CLI module entry point works."""
|
|
650
|
+
|
|
651
|
+
def test_bikerack_cli_help(self) -> None:
|
|
652
|
+
"""bikerack CLI should show help with --help."""
|
|
653
|
+
result = subprocess.run(
|
|
654
|
+
[sys.executable, "-m", "pf.bikerack", "--help"],
|
|
655
|
+
capture_output=True,
|
|
656
|
+
text=True,
|
|
657
|
+
timeout=30,
|
|
658
|
+
cwd=str(Path(__file__).parent.parent.parent),
|
|
659
|
+
)
|
|
660
|
+
|
|
661
|
+
assert result.returncode == 0
|
|
662
|
+
assert "bikerack" in result.stdout.lower() or "BikeRack" in result.stdout
|
|
663
|
+
|
|
664
|
+
def test_bikerack_has_start_subcommand(self) -> None:
|
|
665
|
+
"""bikerack CLI should have start subcommand."""
|
|
666
|
+
result = subprocess.run(
|
|
667
|
+
[sys.executable, "-m", "pf.bikerack", "start", "--help"],
|
|
668
|
+
capture_output=True,
|
|
669
|
+
text=True,
|
|
670
|
+
timeout=30,
|
|
671
|
+
cwd=str(Path(__file__).parent.parent.parent),
|
|
672
|
+
)
|
|
673
|
+
|
|
674
|
+
assert result.returncode == 0
|
|
675
|
+
|
|
676
|
+
def test_bikerack_has_stop_subcommand(self) -> None:
|
|
677
|
+
"""bikerack CLI should have stop subcommand."""
|
|
678
|
+
result = subprocess.run(
|
|
679
|
+
[sys.executable, "-m", "pf.bikerack", "stop", "--help"],
|
|
680
|
+
capture_output=True,
|
|
681
|
+
text=True,
|
|
682
|
+
timeout=30,
|
|
683
|
+
cwd=str(Path(__file__).parent.parent.parent),
|
|
684
|
+
)
|
|
685
|
+
|
|
686
|
+
assert result.returncode == 0
|
|
687
|
+
|
|
688
|
+
def test_bikerack_has_status_subcommand(self) -> None:
|
|
689
|
+
"""bikerack CLI should have status subcommand."""
|
|
690
|
+
result = subprocess.run(
|
|
691
|
+
[sys.executable, "-m", "pf.bikerack", "status", "--help"],
|
|
692
|
+
capture_output=True,
|
|
693
|
+
text=True,
|
|
694
|
+
timeout=30,
|
|
695
|
+
cwd=str(Path(__file__).parent.parent.parent),
|
|
696
|
+
)
|
|
697
|
+
|
|
698
|
+
assert result.returncode == 0
|
|
699
|
+
|
|
700
|
+
def test_bikerack_default_invokes_start(self) -> None:
|
|
701
|
+
"""bikerack with no subcommand should invoke start."""
|
|
702
|
+
# Running without subcommand should behave like 'start'
|
|
703
|
+
# Since start is not implemented, it should error
|
|
704
|
+
result = subprocess.run(
|
|
705
|
+
[sys.executable, "-m", "pf.bikerack"],
|
|
706
|
+
capture_output=True,
|
|
707
|
+
text=True,
|
|
708
|
+
timeout=30,
|
|
709
|
+
cwd=str(Path(__file__).parent.parent.parent),
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
# Should fail (NotImplementedError in start) but not with usage error
|
|
713
|
+
assert result.returncode != 0
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
# ---------------------------------------------------------------------------
|
|
717
|
+
# Utility function tests
|
|
718
|
+
# ---------------------------------------------------------------------------
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
class TestProcessAlive:
|
|
722
|
+
"""Utility: is_process_alive checks if PID is running."""
|
|
723
|
+
|
|
724
|
+
def test_detects_own_process(self) -> None:
|
|
725
|
+
"""is_process_alive should return True for current process."""
|
|
726
|
+
result = is_process_alive(os.getpid())
|
|
727
|
+
assert result is True
|
|
728
|
+
|
|
729
|
+
def test_returns_false_for_invalid_pid(self) -> None:
|
|
730
|
+
"""is_process_alive should return False for non-existent PID."""
|
|
731
|
+
result = is_process_alive(999999999)
|
|
732
|
+
assert result is False
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
class TestCleanupFiles:
|
|
736
|
+
"""Utility: cleanup_files removes port and PID files."""
|
|
737
|
+
|
|
738
|
+
def test_removes_port_file(self, tmp_path: Path) -> None:
|
|
739
|
+
"""cleanup_files should remove .bikerack-port."""
|
|
740
|
+
port_file = tmp_path / ".bikerack-port"
|
|
741
|
+
port_file.write_text("2898")
|
|
742
|
+
|
|
743
|
+
cleanup_files(tmp_path)
|
|
744
|
+
|
|
745
|
+
assert not port_file.exists()
|
|
746
|
+
|
|
747
|
+
def test_removes_pid_file(self, tmp_path: Path) -> None:
|
|
748
|
+
"""cleanup_files should remove .wheelhub-pid."""
|
|
749
|
+
pid_file = tmp_path / ".wheelhub-pid"
|
|
750
|
+
pid_file.write_text("12345")
|
|
751
|
+
|
|
752
|
+
cleanup_files(tmp_path)
|
|
753
|
+
|
|
754
|
+
assert not pid_file.exists()
|
|
755
|
+
|
|
756
|
+
def test_no_error_when_files_missing(self, tmp_path: Path) -> None:
|
|
757
|
+
"""cleanup_files should not error when files don't exist."""
|
|
758
|
+
# Should not raise
|
|
759
|
+
cleanup_files(tmp_path)
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
class TestReadPortFile:
|
|
763
|
+
"""Utility: read_port_file reads port from file."""
|
|
764
|
+
|
|
765
|
+
def test_reads_port(self, tmp_path: Path) -> None:
|
|
766
|
+
"""read_port_file should return port as integer."""
|
|
767
|
+
(tmp_path / ".bikerack-port").write_text("2898")
|
|
768
|
+
|
|
769
|
+
result = read_port_file(tmp_path)
|
|
770
|
+
|
|
771
|
+
assert result == 2898
|
|
772
|
+
|
|
773
|
+
def test_returns_none_when_missing(self, tmp_path: Path) -> None:
|
|
774
|
+
"""read_port_file should return None when file doesn't exist."""
|
|
775
|
+
result = read_port_file(tmp_path)
|
|
776
|
+
|
|
777
|
+
assert result is None
|
|
778
|
+
|
|
779
|
+
def test_handles_trailing_whitespace(self, tmp_path: Path) -> None:
|
|
780
|
+
"""read_port_file should handle trailing newlines/spaces."""
|
|
781
|
+
(tmp_path / ".bikerack-port").write_text("2898\n")
|
|
782
|
+
|
|
783
|
+
result = read_port_file(tmp_path)
|
|
784
|
+
|
|
785
|
+
assert result == 2898
|