@pennyfarthing/core 11.3.2 → 11.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/packages/core/dist/cli/commands/doctor.d.ts +1 -9
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/doctor.js +51 -107
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +26 -1
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
- package/packages/core/dist/cli/utils/python.d.ts +0 -1
- package/packages/core/dist/cli/utils/python.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/python.js +1 -11
- package/packages/core/dist/cli/utils/python.js.map +1 -1
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
- package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
- package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
- package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
- package/packages/core/dist/scripts/benchmark-integration.js +691 -0
- package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
- package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
- package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
- package/packages/core/dist/server/paths.d.ts.map +1 -1
- package/packages/core/dist/server/paths.js +0 -6
- package/packages/core/dist/server/paths.js.map +1 -1
- package/pennyfarthing-dist/agents/sm-finish.md +2 -2
- package/pennyfarthing-dist/agents/testing-runner.md +1 -1
- package/pennyfarthing-dist/commands/pf-prime.md +1 -1
- package/pennyfarthing-dist/commands/pf-setup.md +4 -2
- package/pennyfarthing-dist/guides/agent-behavior.md +1 -1
- package/pennyfarthing-dist/guides/bikerack.md +1 -1
- package/pennyfarthing-dist/guides/brownfield-tools.md +7 -7
- package/pennyfarthing-dist/guides/gates.md +3 -3
- package/pennyfarthing-dist/guides/handoff-cli.md +6 -6
- package/pennyfarthing-dist/guides/prime.md +6 -6
- package/pennyfarthing-dist/guides/scale-levels.md +1 -1
- package/pennyfarthing-dist/personas/themes/discworld.yaml +16 -24
- package/pennyfarthing-dist/personas/themes/firefly.yaml +4 -4
- package/pennyfarthing-dist/pf/CLAUDE.md +213 -0
- package/pennyfarthing-dist/pf/README.md +66 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/cli.py +242 -0
- package/pennyfarthing-dist/pf/bc/focus.py +334 -0
- package/pennyfarthing-dist/pf/bc/split.py +52 -0
- package/pennyfarthing-dist/pf/bellmode_hook.py +22 -0
- package/pennyfarthing-dist/pf/bikerack/__init__.py +44 -0
- package/pennyfarthing-dist/pf/bikerack/__main__.py +5 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +161 -0
- package/pennyfarthing-dist/pf/bikerack/background_panel.py +162 -0
- package/pennyfarthing-dist/pf/bikerack/changed_panel.py +201 -0
- package/pennyfarthing-dist/pf/bikerack/cli.py +145 -0
- package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +138 -0
- package/pennyfarthing-dist/pf/bikerack/debug_panel.py +248 -0
- package/pennyfarthing-dist/pf/bikerack/diffs_panel.py +409 -0
- package/pennyfarthing-dist/pf/bikerack/git_panel.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/launcher.py +240 -0
- package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +139 -0
- package/pennyfarthing-dist/pf/bikerack/progress_panel.py +314 -0
- package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +435 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +247 -0
- package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +177 -0
- package/pennyfarthing-dist/pf/bikerack/tui.py +935 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/cli.py +197 -0
- package/pennyfarthing-dist/pf/bmad/importer.py +200 -0
- package/pennyfarthing-dist/pf/bmad/sync.py +464 -0
- package/pennyfarthing-dist/pf/bmad/test_parser.py +253 -0
- package/pennyfarthing-dist/pf/bmad/test_sync.py +223 -0
- package/pennyfarthing-dist/pf/brownfield/__init__.py +35 -0
- package/pennyfarthing-dist/pf/brownfield/__main__.py +8 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/cli.py +130 -0
- package/pennyfarthing-dist/pf/cli.py +354 -0
- package/pennyfarthing-dist/pf/codemarkers/__init__.py +23 -0
- package/pennyfarthing-dist/pf/codemarkers/__main__.py +6 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/analyze.py +501 -0
- package/pennyfarthing-dist/pf/codemarkers/cli.py +179 -0
- package/pennyfarthing-dist/pf/codemarkers/formatters.py +88 -0
- package/pennyfarthing-dist/pf/common/__init__.py +48 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/pr_config.py +38 -0
- package/pennyfarthing-dist/pf/common/themes.py +253 -0
- package/pennyfarthing-dist/pf/complexity/__init__.py +15 -0
- package/pennyfarthing-dist/pf/complexity/__main__.py +6 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/analyze.py +207 -0
- package/pennyfarthing-dist/pf/complexity/cli.py +82 -0
- package/pennyfarthing-dist/pf/complexity/formatters.py +64 -0
- package/pennyfarthing-dist/pf/config.py +21 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/cli.py +149 -0
- package/pennyfarthing-dist/pf/deadcode/__main__.py +6 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/analyze.py +322 -0
- package/pennyfarthing-dist/pf/deadcode/cli.py +163 -0
- package/pennyfarthing-dist/pf/deadcode/formatters.py +106 -0
- package/pennyfarthing-dist/pf/dependencies/__init__.py +20 -0
- package/pennyfarthing-dist/pf/dependencies/__main__.py +5 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/analyze.py +155 -0
- package/pennyfarthing-dist/pf/dependencies/cli.py +76 -0
- package/pennyfarthing-dist/pf/dependencies/formatters.py +63 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/gate/cli.py +56 -0
- package/pennyfarthing-dist/pf/git/__init__.py +40 -0
- package/pennyfarthing-dist/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/create_branches.py +439 -0
- package/pennyfarthing-dist/pf/git/hooks_installer.py +151 -0
- package/pennyfarthing-dist/pf/git/repos.py +196 -0
- package/pennyfarthing-dist/pf/git/status_all.py +326 -0
- package/pennyfarthing-dist/pf/git/worktree.py +302 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/cli.py +203 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/cli.py +152 -0
- package/pennyfarthing-dist/pf/handoff/marker.py +109 -0
- package/pennyfarthing-dist/pf/handoff/phase_check.py +96 -0
- package/pennyfarthing-dist/pf/healthscore/__init__.py +21 -0
- package/pennyfarthing-dist/pf/healthscore/__main__.py +14 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/analyze.py +606 -0
- package/pennyfarthing-dist/pf/healthscore/cli.py +80 -0
- package/pennyfarthing-dist/pf/healthscore/formatters.py +46 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/bell_mode.py +214 -0
- package/pennyfarthing-dist/pf/hooks/cli.py +96 -0
- package/pennyfarthing-dist/pf/hooks/context_breaker.py +104 -0
- package/pennyfarthing-dist/pf/hooks/context_warning.py +66 -0
- package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +129 -0
- package/pennyfarthing-dist/pf/hooks/schema_validation.py +202 -0
- package/pennyfarthing-dist/pf/hooks/session_start.py +294 -0
- package/pennyfarthing-dist/pf/hooks/sprint_yaml_validation.py +97 -0
- package/pennyfarthing-dist/pf/hooks/statusline.py +429 -0
- package/pennyfarthing-dist/pf/hooks.py +32 -0
- package/pennyfarthing-dist/pf/hotspots/__init__.py +31 -0
- package/pennyfarthing-dist/pf/hotspots/__main__.py +6 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/analyze.py +613 -0
- package/pennyfarthing-dist/pf/hotspots/cli.py +154 -0
- package/pennyfarthing-dist/pf/hotspots/formatters.py +109 -0
- package/pennyfarthing-dist/pf/jira/__init__.py +97 -0
- package/pennyfarthing-dist/pf/jira/__main__.py +10 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/bidirectional.py +587 -0
- package/pennyfarthing-dist/pf/jira/claim.py +232 -0
- package/pennyfarthing-dist/pf/jira/cli.py +362 -0
- package/pennyfarthing-dist/pf/jira/client.py +802 -0
- package/pennyfarthing-dist/pf/jira/create.py +311 -0
- package/pennyfarthing-dist/pf/jira/epic.py +177 -0
- package/pennyfarthing-dist/pf/jira/operations.py +124 -0
- package/pennyfarthing-dist/pf/jira/reconcile.py +276 -0
- package/pennyfarthing-dist/pf/jira/story.py +221 -0
- package/pennyfarthing-dist/pf/jira/sync.py +350 -0
- package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +37 -0
- package/pennyfarthing-dist/pf/jira_epic_creation.py +30 -0
- package/pennyfarthing-dist/pf/jira_sync.py +36 -0
- package/pennyfarthing-dist/pf/jira_sync_story.py +30 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/cli.py +231 -0
- package/pennyfarthing-dist/pf/migration/__init__.py +39 -0
- package/pennyfarthing-dist/pf/migration/__main__.py +10 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/cli.py +304 -0
- package/pennyfarthing-dist/pf/migration/validate.py +285 -0
- package/pennyfarthing-dist/pf/output.py +37 -0
- package/pennyfarthing-dist/pf/patch_mode.py +449 -0
- package/pennyfarthing-dist/pf/preflight/__init__.py +17 -0
- package/pennyfarthing-dist/pf/preflight/__main__.py +10 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/cli.py +141 -0
- package/pennyfarthing-dist/pf/pretooluse_hook.py +10 -0
- package/pennyfarthing-dist/pf/prime/__init__.py +127 -0
- package/pennyfarthing-dist/pf/prime/__main__.py +8 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/cli.py +662 -0
- package/pennyfarthing-dist/pf/prime/heatmap.py +643 -0
- package/pennyfarthing-dist/pf/prime/loader.py +308 -0
- package/pennyfarthing-dist/pf/prime/persona.py +311 -0
- package/pennyfarthing-dist/pf/prime/session.py +183 -0
- package/pennyfarthing-dist/pf/prime/tiers.py +214 -0
- package/pennyfarthing-dist/pf/prime/workflow.py +317 -0
- package/pennyfarthing-dist/pf/schema_validation_hook.py +10 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/cli.py +87 -0
- package/pennyfarthing-dist/pf/session_start_hook.py +10 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/settings/cli.py +55 -0
- package/pennyfarthing-dist/pf/settings/settings.py +98 -0
- package/pennyfarthing-dist/pf/sprint/__init__.py +64 -0
- package/pennyfarthing-dist/pf/sprint/__main__.py +10 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/archive.py +164 -0
- package/pennyfarthing-dist/pf/sprint/archive_epic.py +625 -0
- package/pennyfarthing-dist/pf/sprint/cli.py +2021 -0
- package/pennyfarthing-dist/pf/sprint/epic_add.py +186 -0
- package/pennyfarthing-dist/pf/sprint/epic_update.py +148 -0
- package/pennyfarthing-dist/pf/sprint/import_epic.py +455 -0
- package/pennyfarthing-dist/pf/sprint/loader.py +441 -0
- package/pennyfarthing-dist/pf/sprint/status.py +121 -0
- package/pennyfarthing-dist/pf/sprint/story_add.py +372 -0
- package/pennyfarthing-dist/pf/sprint/story_finish.py +227 -0
- package/pennyfarthing-dist/pf/sprint/story_update.py +222 -0
- package/pennyfarthing-dist/pf/sprint/validate_cmd.py +307 -0
- package/pennyfarthing-dist/pf/sprint/validator.py +694 -0
- package/pennyfarthing-dist/pf/sprint/work.py +229 -0
- package/pennyfarthing-dist/pf/story/__init__.py +65 -0
- package/pennyfarthing-dist/pf/story/__main__.py +10 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/cli.py +105 -0
- package/pennyfarthing-dist/pf/story/create.py +167 -0
- package/pennyfarthing-dist/pf/tests/__init__.py +1 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/conftest.py +105 -0
- package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +540 -0
- package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +339 -0
- package/pennyfarthing-dist/pf/tests/test_archive_epic.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_bc.py +490 -0
- package/pennyfarthing-dist/pf/tests/test_bikerack.py +785 -0
- package/pennyfarthing-dist/pf/tests/test_brownfield.py +839 -0
- package/pennyfarthing-dist/pf/tests/test_cli_modules.py +241 -0
- package/pennyfarthing-dist/pf/tests/test_cli_normalization.py +295 -0
- package/pennyfarthing-dist/pf/tests/test_codemarkers.py +687 -0
- package/pennyfarthing-dist/pf/tests/test_common.py +185 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +253 -0
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +316 -0
- package/pennyfarthing-dist/pf/tests/test_dialogue_manager.py +810 -0
- package/pennyfarthing-dist/pf/tests/test_epic_shard_validation.py +699 -0
- package/pennyfarthing-dist/pf/tests/test_gate_file_resolution.py +341 -0
- package/pennyfarthing-dist/pf/tests/test_gate_runner.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_git_utils.py +863 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_cli.py +934 -0
- package/pennyfarthing-dist/pf/tests/test_handoff_e2e.py +454 -0
- package/pennyfarthing-dist/pf/tests/test_healthscore.py +516 -0
- package/pennyfarthing-dist/pf/tests/test_jira_package.py +331 -0
- package/pennyfarthing-dist/pf/tests/test_package_structure.py +359 -0
- package/pennyfarthing-dist/pf/tests/test_patch_mode.py +826 -0
- package/pennyfarthing-dist/pf/tests/test_prime.py +1068 -0
- package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +460 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_package.py +397 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +610 -0
- package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +779 -0
- package/pennyfarthing-dist/pf/tests/test_story_add.py +917 -0
- package/pennyfarthing-dist/pf/tests/test_story_package.py +153 -0
- package/pennyfarthing-dist/pf/tests/test_story_update.py +764 -0
- package/pennyfarthing-dist/pf/tests/test_tiers.py +1091 -0
- package/pennyfarthing-dist/pf/tests/test_token_counting.py +565 -0
- package/pennyfarthing-dist/pf/tests/test_topology_loader.py +620 -0
- package/pennyfarthing-dist/pf/tests/test_tui_focus.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_tui_panel_persistence.py +411 -0
- package/pennyfarthing-dist/pf/tests/test_validate_cmd.py +495 -0
- package/pennyfarthing-dist/pf/tests/test_version_sentinel.py +122 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_check.py +338 -0
- package/pennyfarthing-dist/pf/tests/test_workflow_list_team.py +143 -0
- package/pennyfarthing-dist/pf/tests/test_yaml_io.py +812 -0
- package/pennyfarthing-dist/pf/theme/__main__.py +6 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/cli.py +310 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/agent.py +239 -0
- package/pennyfarthing-dist/pf/validate/adapters/schema.py +30 -0
- package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +491 -0
- package/pennyfarthing-dist/pf/validate/adapters/sprint.py +69 -0
- package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +254 -0
- package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +323 -0
- package/pennyfarthing-dist/pf/validate/adapters/workflow.py +403 -0
- package/pennyfarthing-dist/pf/validate/cli.py +164 -0
- package/pennyfarthing-dist/pf/welcome_hook.py +10 -0
- package/pennyfarthing-dist/pf/workflow/__init__.py +40 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/cli.py +1101 -0
- package/pennyfarthing-dist/pf/workflow/helpers.py +241 -0
- package/pennyfarthing-dist/pyproject.toml +18 -0
- package/pennyfarthing-dist/scripts/core/agent-session.sh +3 -3
- package/pennyfarthing-dist/scripts/core/check-context.sh +8 -8
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +3 -3
- package/pennyfarthing-dist/scripts/jira/README.md +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +1 -1
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +1 -1
- package/pennyfarthing-dist/scripts/lib/common.sh +3 -3
- package/pennyfarthing-dist/scripts/lib/run-pf.sh +11 -13
- package/pennyfarthing-dist/scripts/sprint/README.md +1 -1
- package/pennyfarthing-dist/scripts/story/create-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/size-story.sh +1 -1
- package/pennyfarthing-dist/scripts/story/story-template.sh +1 -1
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +3 -3
- package/pennyfarthing-dist/templates/pyproject.toml +3 -3
- package/pennyfarthing-dist/workflows/project-setup/steps/step-08-theme-packs.md +1 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-jira.md +92 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-cyclist.md +245 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-11-complete.md +205 -0
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts +0 -16
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js +0 -377
- package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
- package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.js +0 -217
- package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
- package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts +0 -65
- package/packages/core/dist/workflow/workflow-graph-validation.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.js +0 -190
- package/packages/core/dist/workflow/workflow-graph-validation.js.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts +0 -18
- package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-graph-validation.test.js +0 -706
- package/packages/core/dist/workflow/workflow-graph-validation.test.js.map +0 -1
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-cyclist.md +0 -245
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-complete.md +0 -204
- package/pennyfarthing_scripts/CLAUDE.md +0 -213
- package/pennyfarthing_scripts/README.md +0 -66
- package/pennyfarthing_scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bc/cli.py +0 -242
- package/pennyfarthing_scripts/bc/focus.py +0 -334
- package/pennyfarthing_scripts/bc/split.py +0 -52
- package/pennyfarthing_scripts/bellmode_hook.py +0 -22
- package/pennyfarthing_scripts/bikerack/__init__.py +0 -44
- package/pennyfarthing_scripts/bikerack/__main__.py +0 -5
- package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bikerack/audit_log_panel.py +0 -161
- package/pennyfarthing_scripts/bikerack/background_panel.py +0 -162
- package/pennyfarthing_scripts/bikerack/changed_panel.py +0 -201
- package/pennyfarthing_scripts/bikerack/cli.py +0 -145
- package/pennyfarthing_scripts/bikerack/context_meter_footer.py +0 -138
- package/pennyfarthing_scripts/bikerack/debug_panel.py +0 -248
- package/pennyfarthing_scripts/bikerack/diffs_panel.py +0 -409
- package/pennyfarthing_scripts/bikerack/git_panel.py +0 -139
- package/pennyfarthing_scripts/bikerack/launcher.py +0 -240
- package/pennyfarthing_scripts/bikerack/portrait_resolver.py +0 -139
- package/pennyfarthing_scripts/bikerack/progress_panel.py +0 -314
- package/pennyfarthing_scripts/bikerack/sprint_panel.py +0 -435
- package/pennyfarthing_scripts/bikerack/story_detail_data.py +0 -247
- package/pennyfarthing_scripts/bikerack/story_detail_screen.py +0 -177
- package/pennyfarthing_scripts/bikerack/tui.py +0 -935
- package/pennyfarthing_scripts/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/parser.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_parser.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/__pycache__/test_sync.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/bmad/cli.py +0 -197
- package/pennyfarthing_scripts/bmad/importer.py +0 -200
- package/pennyfarthing_scripts/bmad/sync.py +0 -464
- package/pennyfarthing_scripts/bmad/test_parser.py +0 -253
- package/pennyfarthing_scripts/bmad/test_sync.py +0 -223
- package/pennyfarthing_scripts/brownfield/__init__.py +0 -35
- package/pennyfarthing_scripts/brownfield/__main__.py +0 -8
- package/pennyfarthing_scripts/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/brownfield/cli.py +0 -130
- package/pennyfarthing_scripts/cli.py +0 -354
- package/pennyfarthing_scripts/codemarkers/__init__.py +0 -23
- package/pennyfarthing_scripts/codemarkers/__main__.py +0 -6
- package/pennyfarthing_scripts/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/codemarkers/analyze.py +0 -501
- package/pennyfarthing_scripts/codemarkers/cli.py +0 -179
- package/pennyfarthing_scripts/codemarkers/formatters.py +0 -88
- package/pennyfarthing_scripts/common/__init__.py +0 -48
- package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/common/pr_config.py +0 -38
- package/pennyfarthing_scripts/common/themes.py +0 -253
- package/pennyfarthing_scripts/complexity/__init__.py +0 -15
- package/pennyfarthing_scripts/complexity/__main__.py +0 -6
- package/pennyfarthing_scripts/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/complexity/analyze.py +0 -207
- package/pennyfarthing_scripts/complexity/cli.py +0 -82
- package/pennyfarthing_scripts/complexity/formatters.py +0 -64
- package/pennyfarthing_scripts/config.py +0 -21
- package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/consultation/cli.py +0 -149
- package/pennyfarthing_scripts/deadcode/__main__.py +0 -6
- package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/deadcode/analyze.py +0 -322
- package/pennyfarthing_scripts/deadcode/cli.py +0 -163
- package/pennyfarthing_scripts/deadcode/formatters.py +0 -106
- package/pennyfarthing_scripts/dependencies/__init__.py +0 -20
- package/pennyfarthing_scripts/dependencies/__main__.py +0 -5
- package/pennyfarthing_scripts/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/dependencies/analyze.py +0 -155
- package/pennyfarthing_scripts/dependencies/cli.py +0 -76
- package/pennyfarthing_scripts/dependencies/formatters.py +0 -63
- package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/gate/cli.py +0 -56
- package/pennyfarthing_scripts/git/__init__.py +0 -40
- package/pennyfarthing_scripts/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/repos.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/__pycache__/worktree.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git/create_branches.py +0 -439
- package/pennyfarthing_scripts/git/hooks_installer.py +0 -151
- package/pennyfarthing_scripts/git/repos.py +0 -196
- package/pennyfarthing_scripts/git/status_all.py +0 -326
- package/pennyfarthing_scripts/git/worktree.py +0 -302
- package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/git_group/cli.py +0 -203
- package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/handoff/cli.py +0 -152
- package/pennyfarthing_scripts/handoff/marker.py +0 -109
- package/pennyfarthing_scripts/handoff/phase_check.py +0 -96
- package/pennyfarthing_scripts/healthscore/__init__.py +0 -21
- package/pennyfarthing_scripts/healthscore/__main__.py +0 -14
- package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/healthscore/analyze.py +0 -606
- package/pennyfarthing_scripts/healthscore/cli.py +0 -80
- package/pennyfarthing_scripts/healthscore/formatters.py +0 -46
- package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hooks/bell_mode.py +0 -214
- package/pennyfarthing_scripts/hooks/cli.py +0 -96
- package/pennyfarthing_scripts/hooks/context_breaker.py +0 -104
- package/pennyfarthing_scripts/hooks/context_warning.py +0 -66
- package/pennyfarthing_scripts/hooks/cyclist_pretooluse.py +0 -129
- package/pennyfarthing_scripts/hooks/schema_validation.py +0 -202
- package/pennyfarthing_scripts/hooks/session_start.py +0 -294
- package/pennyfarthing_scripts/hooks/sprint_yaml_validation.py +0 -97
- package/pennyfarthing_scripts/hooks/statusline.py +0 -429
- package/pennyfarthing_scripts/hooks.py +0 -32
- package/pennyfarthing_scripts/hotspots/__init__.py +0 -31
- package/pennyfarthing_scripts/hotspots/__main__.py +0 -6
- package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/hotspots/analyze.py +0 -613
- package/pennyfarthing_scripts/hotspots/cli.py +0 -154
- package/pennyfarthing_scripts/hotspots/formatters.py +0 -109
- package/pennyfarthing_scripts/jira/__init__.py +0 -97
- package/pennyfarthing_scripts/jira/__main__.py +0 -10
- package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/jira/bidirectional.py +0 -587
- package/pennyfarthing_scripts/jira/claim.py +0 -232
- package/pennyfarthing_scripts/jira/cli.py +0 -362
- package/pennyfarthing_scripts/jira/client.py +0 -790
- package/pennyfarthing_scripts/jira/create.py +0 -311
- package/pennyfarthing_scripts/jira/epic.py +0 -177
- package/pennyfarthing_scripts/jira/operations.py +0 -124
- package/pennyfarthing_scripts/jira/reconcile.py +0 -276
- package/pennyfarthing_scripts/jira/story.py +0 -221
- package/pennyfarthing_scripts/jira/sync.py +0 -350
- package/pennyfarthing_scripts/jira_bidirectional_sync.py +0 -37
- package/pennyfarthing_scripts/jira_epic_creation.py +0 -30
- package/pennyfarthing_scripts/jira_sync.py +0 -36
- package/pennyfarthing_scripts/jira_sync_story.py +0 -30
- package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/launch/cli.py +0 -231
- package/pennyfarthing_scripts/migration/__init__.py +0 -39
- package/pennyfarthing_scripts/migration/__main__.py +0 -10
- package/pennyfarthing_scripts/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/migration/cli.py +0 -304
- package/pennyfarthing_scripts/migration/validate.py +0 -285
- package/pennyfarthing_scripts/output.py +0 -37
- package/pennyfarthing_scripts/patch_mode.py +0 -449
- package/pennyfarthing_scripts/preflight/__init__.py +0 -17
- package/pennyfarthing_scripts/preflight/__main__.py +0 -10
- package/pennyfarthing_scripts/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/preflight/cli.py +0 -141
- package/pennyfarthing_scripts/pretooluse_hook.py +0 -10
- package/pennyfarthing_scripts/prime/__init__.py +0 -127
- package/pennyfarthing_scripts/prime/__main__.py +0 -8
- package/pennyfarthing_scripts/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/heatmap.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/prime/cli.py +0 -662
- package/pennyfarthing_scripts/prime/heatmap.py +0 -643
- package/pennyfarthing_scripts/prime/loader.py +0 -308
- package/pennyfarthing_scripts/prime/persona.py +0 -311
- package/pennyfarthing_scripts/prime/session.py +0 -183
- package/pennyfarthing_scripts/prime/tiers.py +0 -214
- package/pennyfarthing_scripts/prime/workflow.py +0 -317
- package/pennyfarthing_scripts/schema_validation_hook.py +0 -10
- package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/session/cli.py +0 -87
- package/pennyfarthing_scripts/session_start_hook.py +0 -10
- package/pennyfarthing_scripts/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/settings/cli.py +0 -55
- package/pennyfarthing_scripts/settings/settings.py +0 -98
- package/pennyfarthing_scripts/sprint/__init__.py +0 -64
- package/pennyfarthing_scripts/sprint/__main__.py +0 -10
- package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/sprint/archive.py +0 -164
- package/pennyfarthing_scripts/sprint/archive_epic.py +0 -625
- package/pennyfarthing_scripts/sprint/cli.py +0 -2021
- package/pennyfarthing_scripts/sprint/epic_add.py +0 -186
- package/pennyfarthing_scripts/sprint/epic_update.py +0 -148
- package/pennyfarthing_scripts/sprint/import_epic.py +0 -455
- package/pennyfarthing_scripts/sprint/loader.py +0 -441
- package/pennyfarthing_scripts/sprint/status.py +0 -121
- package/pennyfarthing_scripts/sprint/story_add.py +0 -372
- package/pennyfarthing_scripts/sprint/story_finish.py +0 -227
- package/pennyfarthing_scripts/sprint/story_update.py +0 -222
- package/pennyfarthing_scripts/sprint/validate_cmd.py +0 -307
- package/pennyfarthing_scripts/sprint/validator.py +0 -694
- package/pennyfarthing_scripts/sprint/work.py +0 -229
- package/pennyfarthing_scripts/story/__init__.py +0 -65
- package/pennyfarthing_scripts/story/__main__.py +0 -10
- package/pennyfarthing_scripts/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/story/cli.py +0 -105
- package/pennyfarthing_scripts/story/create.py +0 -167
- package/pennyfarthing_scripts/tests/__init__.py +0 -1
- package/pennyfarthing_scripts/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing_scripts/tests/conftest.py +0 -105
- package/pennyfarthing_scripts/tests/test_108_1_gate_migration.py +0 -540
- package/pennyfarthing_scripts/tests/test_108_2_remove_handoff_fallback.py +0 -339
- package/pennyfarthing_scripts/tests/test_archive_epic.py +0 -185
- package/pennyfarthing_scripts/tests/test_bc.py +0 -490
- package/pennyfarthing_scripts/tests/test_bikerack.py +0 -785
- package/pennyfarthing_scripts/tests/test_brownfield.py +0 -839
- package/pennyfarthing_scripts/tests/test_cli_modules.py +0 -241
- package/pennyfarthing_scripts/tests/test_cli_normalization.py +0 -295
- package/pennyfarthing_scripts/tests/test_codemarkers.py +0 -687
- package/pennyfarthing_scripts/tests/test_common.py +0 -185
- package/pennyfarthing_scripts/tests/test_confidence_sm_evaluation.py +0 -253
- package/pennyfarthing_scripts/tests/test_confidence_sm_gate.py +0 -316
- package/pennyfarthing_scripts/tests/test_dialogue_manager.py +0 -810
- package/pennyfarthing_scripts/tests/test_epic_shard_validation.py +0 -699
- package/pennyfarthing_scripts/tests/test_gate_file_resolution.py +0 -341
- package/pennyfarthing_scripts/tests/test_gate_runner.py +0 -620
- package/pennyfarthing_scripts/tests/test_git_utils.py +0 -863
- package/pennyfarthing_scripts/tests/test_handoff_cli.py +0 -934
- package/pennyfarthing_scripts/tests/test_handoff_e2e.py +0 -454
- package/pennyfarthing_scripts/tests/test_healthscore.py +0 -516
- package/pennyfarthing_scripts/tests/test_jira_package.py +0 -331
- package/pennyfarthing_scripts/tests/test_package_structure.py +0 -359
- package/pennyfarthing_scripts/tests/test_patch_mode.py +0 -826
- package/pennyfarthing_scripts/tests/test_prime.py +0 -1068
- package/pennyfarthing_scripts/tests/test_resolve_gate_file_field.py +0 -462
- package/pennyfarthing_scripts/tests/test_sprint_package.py +0 -397
- package/pennyfarthing_scripts/tests/test_sprint_panel.py +0 -610
- package/pennyfarthing_scripts/tests/test_sprint_validator.py +0 -779
- package/pennyfarthing_scripts/tests/test_story_add.py +0 -917
- package/pennyfarthing_scripts/tests/test_story_package.py +0 -153
- package/pennyfarthing_scripts/tests/test_story_update.py +0 -764
- package/pennyfarthing_scripts/tests/test_tiers.py +0 -1091
- package/pennyfarthing_scripts/tests/test_token_counting.py +0 -565
- package/pennyfarthing_scripts/tests/test_topology_loader.py +0 -620
- package/pennyfarthing_scripts/tests/test_tui_focus.py +0 -411
- package/pennyfarthing_scripts/tests/test_tui_panel_persistence.py +0 -411
- package/pennyfarthing_scripts/tests/test_validate_cmd.py +0 -495
- package/pennyfarthing_scripts/tests/test_version_sentinel.py +0 -122
- package/pennyfarthing_scripts/tests/test_workflow_check.py +0 -338
- package/pennyfarthing_scripts/tests/test_workflow_list_team.py +0 -143
- package/pennyfarthing_scripts/tests/test_yaml_io.py +0 -812
- package/pennyfarthing_scripts/theme/__main__.py +0 -6
- package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/theme/cli.py +0 -310
- package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/validate/adapters/agent.py +0 -239
- package/pennyfarthing_scripts/validate/adapters/schema.py +0 -30
- package/pennyfarthing_scripts/validate/adapters/skill_command.py +0 -491
- package/pennyfarthing_scripts/validate/adapters/sprint.py +0 -69
- package/pennyfarthing_scripts/validate/adapters/tandem_awareness.py +0 -254
- package/pennyfarthing_scripts/validate/adapters/team_mode.py +0 -323
- package/pennyfarthing_scripts/validate/adapters/workflow.py +0 -403
- package/pennyfarthing_scripts/validate/cli.py +0 -164
- package/pennyfarthing_scripts/welcome_hook.py +0 -10
- package/pennyfarthing_scripts/workflow/__init__.py +0 -40
- package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
- package/pennyfarthing_scripts/workflow/cli.py +0 -1101
- package/pennyfarthing_scripts/workflow/helpers.py +0 -241
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bc/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/base_panel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/events.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/ws_client.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/parser.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/brownfield/discover.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/codemarkers/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/config.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/output.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/complexity/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/dialogue_manager.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/context.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/dependencies/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/cli.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/validate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/git_group/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/complete_phase.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_file.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_runner.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/resolve_gate.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/healthscore/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/pre_edit_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/reflector_check.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/session_stop.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hotspots/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/launch/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/session.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/skill.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/step.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/preflight/finish.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/models.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/version_sentinel.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/session/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/settings/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/sprint/yaml_io.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/size.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/template.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/swebench.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/theme/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/adapters/__init__.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/scale.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/state.py +0 -0
- /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/team_lifecycle.py +0 -0
|
@@ -1,935 +0,0 @@
|
|
|
1
|
-
"""BikeRack TUI — Terminal-native dashboard built on Textual.
|
|
2
|
-
|
|
3
|
-
Story 103-1: Textual app scaffold with basic layout.
|
|
4
|
-
Story 103-4: Connection status indicator in TUI header.
|
|
5
|
-
Story 103-6: SprintPanel as default panel on launch.
|
|
6
|
-
Story 103-7: /bc TUI panel focus — subscribe to /ws/focus, switch panels.
|
|
7
|
-
Story 103-9: Panel header chrome — icon + name indicator for active panel.
|
|
8
|
-
Panel navigation: Mount all panels, tab bar, keyboard switching, command palette.
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from __future__ import annotations
|
|
12
|
-
|
|
13
|
-
import os
|
|
14
|
-
from functools import partial
|
|
15
|
-
from pathlib import Path
|
|
16
|
-
from typing import Any
|
|
17
|
-
|
|
18
|
-
from textual.app import App, ComposeResult
|
|
19
|
-
from textual.binding import Binding
|
|
20
|
-
from textual.command import Hit, Hits, Provider
|
|
21
|
-
from textual.containers import Horizontal, VerticalScroll
|
|
22
|
-
from textual.message import Message
|
|
23
|
-
from textual.reactive import reactive
|
|
24
|
-
from textual.widgets import Footer, Header, Static, Tab, Tabs
|
|
25
|
-
|
|
26
|
-
from pennyfarthing_scripts.bc.focus import get_last_panel, save_last_panel
|
|
27
|
-
from pennyfarthing_scripts.bikerack.audit_log_panel import AuditLogPanel
|
|
28
|
-
from pennyfarthing_scripts.bikerack.background_panel import BackgroundPanel
|
|
29
|
-
from pennyfarthing_scripts.bikerack.base_panel import get_panel_icon
|
|
30
|
-
from pennyfarthing_scripts.bikerack.changed_panel import ChangedPanel
|
|
31
|
-
from pennyfarthing_scripts.bikerack.context_meter_footer import ContextMeterFooter
|
|
32
|
-
from pennyfarthing_scripts.bikerack.debug_panel import DebugPanel
|
|
33
|
-
from pennyfarthing_scripts.bikerack.diffs_panel import DiffsPanel
|
|
34
|
-
from pennyfarthing_scripts.bikerack.events import NavigateToFile
|
|
35
|
-
from pennyfarthing_scripts.bikerack.git_panel import GitPanel
|
|
36
|
-
from pennyfarthing_scripts.bikerack.progress_panel import ProgressPanel
|
|
37
|
-
from pennyfarthing_scripts.bikerack.sprint_panel import SprintPanel
|
|
38
|
-
from pennyfarthing_scripts.bikerack.ws_client import ConnectionState, WheelHubClient
|
|
39
|
-
|
|
40
|
-
STATE_DISPLAY: dict[ConnectionState, str] = {
|
|
41
|
-
ConnectionState.CONNECTED: "[green]● Connected[/green]",
|
|
42
|
-
ConnectionState.DISCONNECTED: "[red]● Disconnected[/red]",
|
|
43
|
-
ConnectionState.RECONNECTING: "[yellow]● Reconnecting…[/yellow]",
|
|
44
|
-
ConnectionState.CONNECTING: "[yellow]● Connecting…[/yellow]",
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
# Agent role colors for Rich markup (mapped from React AGENT_COLORS)
|
|
48
|
-
AGENT_ROLE_COLORS: dict[str, str] = {
|
|
49
|
-
"pm": "purple",
|
|
50
|
-
"sm": "blue",
|
|
51
|
-
"dev": "green",
|
|
52
|
-
"tea": "cyan",
|
|
53
|
-
"reviewer": "red",
|
|
54
|
-
"architect": "dark_orange",
|
|
55
|
-
"devops": "bright_cyan",
|
|
56
|
-
"ux-designer": "magenta",
|
|
57
|
-
"tech-writer": "white",
|
|
58
|
-
"orchestrator": "bright_magenta",
|
|
59
|
-
"ba": "bright_green",
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
AGENT_ABBREV: dict[str, str] = {
|
|
63
|
-
"pm": "PM",
|
|
64
|
-
"sm": "SM",
|
|
65
|
-
"dev": "DEV",
|
|
66
|
-
"tea": "TEA",
|
|
67
|
-
"reviewer": "REV",
|
|
68
|
-
"architect": "ARC",
|
|
69
|
-
"devops": "OPS",
|
|
70
|
-
"ux-designer": "UX",
|
|
71
|
-
"tech-writer": "TW",
|
|
72
|
-
"orchestrator": "ORC",
|
|
73
|
-
"ba": "BA",
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
# Ordered panel registry: (key, display_name, widget_class)
|
|
77
|
-
# Only panels with implemented widget classes are included.
|
|
78
|
-
PANEL_REGISTRY: list[tuple[str, str]] = [
|
|
79
|
-
("sprint", "Sprint"),
|
|
80
|
-
("git", "Git"),
|
|
81
|
-
("diffs", "Diffs"),
|
|
82
|
-
("changed", "Changed"),
|
|
83
|
-
("background", "Background"),
|
|
84
|
-
("audit-log", "Audit Log"),
|
|
85
|
-
("debug", "Debug"),
|
|
86
|
-
("progress", "Progress"),
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
# Human-readable display names for panels (full set for external focus messages)
|
|
90
|
-
PANEL_DISPLAY_NAMES: dict[str, str] = {
|
|
91
|
-
"sprint": "Sprint",
|
|
92
|
-
"git": "Git",
|
|
93
|
-
"diffs": "Diffs",
|
|
94
|
-
"todo": "Todo",
|
|
95
|
-
"workflow": "Workflow",
|
|
96
|
-
"background": "Background",
|
|
97
|
-
"audit-log": "Audit Log",
|
|
98
|
-
"changed": "Changed",
|
|
99
|
-
"ac": "Acceptance Criteria",
|
|
100
|
-
"debug": "Debug",
|
|
101
|
-
"progress": "Progress",
|
|
102
|
-
"settings": "Settings",
|
|
103
|
-
"tty": "TTY",
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
# Keys from PANEL_REGISTRY for fast lookup
|
|
107
|
-
_PANEL_KEYS = [key for key, _ in PANEL_REGISTRY]
|
|
108
|
-
|
|
109
|
-
# Split-pane layout presets: name → (left_panel, right_panel)
|
|
110
|
-
# Story 110-4: Named presets for common side-by-side views.
|
|
111
|
-
SPLIT_PRESETS: dict[str, tuple[str, str]] = {
|
|
112
|
-
"sprint+diffs": ("sprint", "diffs"),
|
|
113
|
-
"changed+diffs": ("changed", "diffs"),
|
|
114
|
-
"progress+debug": ("progress", "debug"),
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
class BindingFooter(Footer):
|
|
119
|
-
"""Footer subclass that exposes active binding text via render().
|
|
120
|
-
|
|
121
|
-
Textual's Footer uses compose() for visual content, so render() returns
|
|
122
|
-
Blank. This override makes binding descriptions available through
|
|
123
|
-
str(footer.render()) for programmatic inspection.
|
|
124
|
-
"""
|
|
125
|
-
|
|
126
|
-
def render(self) -> Any:
|
|
127
|
-
try:
|
|
128
|
-
bindings = self.screen.active_bindings
|
|
129
|
-
parts: list[str] = []
|
|
130
|
-
for _, binding, _enabled, _tooltip in bindings.values():
|
|
131
|
-
if binding.show:
|
|
132
|
-
parts.append(f"{binding.key}:{binding.description}")
|
|
133
|
-
if parts:
|
|
134
|
-
return " ".join(parts)
|
|
135
|
-
except Exception:
|
|
136
|
-
pass
|
|
137
|
-
return super().render()
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
def _build_panel_tabs() -> list[Tab]:
|
|
141
|
-
"""Build Tab widgets for each panel in the registry."""
|
|
142
|
-
tabs: list[Tab] = []
|
|
143
|
-
for panel_key, display_name in PANEL_REGISTRY:
|
|
144
|
-
icon = get_panel_icon(panel_key)
|
|
145
|
-
label = f"{icon} {display_name}" if icon else display_name
|
|
146
|
-
tabs.append(Tab(label, id=f"tab-{panel_key}"))
|
|
147
|
-
return tabs
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
PORTRAIT_SKELETON = """\
|
|
151
|
-
[dim]┌────────┐
|
|
152
|
-
│░░░░░░░░│
|
|
153
|
-
│░░░▓▓░░░│
|
|
154
|
-
│░░░░░░░░│
|
|
155
|
-
└────────┘[/dim]"""
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
class AgentHeader(Static):
|
|
159
|
-
"""Displays current agent persona from WheelHub /ws/persona channel.
|
|
160
|
-
|
|
161
|
-
When a portrait image is available (resolved locally or provided via
|
|
162
|
-
portraitPath in persona data), mounts a Horizontal layout container.
|
|
163
|
-
Shows a skeleton placeholder while the image loads.
|
|
164
|
-
Falls back to text-only when no portrait is found.
|
|
165
|
-
"""
|
|
166
|
-
|
|
167
|
-
class PortraitLayoutUpdate(Message):
|
|
168
|
-
"""Internal message to update portrait layout asynchronously."""
|
|
169
|
-
|
|
170
|
-
def __init__(self, portrait_path: Path | None) -> None:
|
|
171
|
-
super().__init__()
|
|
172
|
-
self.has_portrait = portrait_path is not None
|
|
173
|
-
self.portrait_path = portrait_path
|
|
174
|
-
|
|
175
|
-
def __init__(self, **kwargs: Any) -> None:
|
|
176
|
-
super().__init__(**kwargs)
|
|
177
|
-
self._is_streaming: bool = False
|
|
178
|
-
self._persona_data: dict[str, Any] = {}
|
|
179
|
-
self._header_text: str = ""
|
|
180
|
-
self._current_portrait: Path | None = None
|
|
181
|
-
|
|
182
|
-
def _apply_persona(self, data: dict[str, Any]) -> None:
|
|
183
|
-
"""Render persona data into the header."""
|
|
184
|
-
if data.get("type") == "streaming":
|
|
185
|
-
self._is_streaming = bool(data.get("isStreaming", False))
|
|
186
|
-
self._render_header()
|
|
187
|
-
return
|
|
188
|
-
|
|
189
|
-
self._persona_data = data
|
|
190
|
-
self._is_streaming = bool(data.get("isStreaming", False))
|
|
191
|
-
self._render_header()
|
|
192
|
-
|
|
193
|
-
def _resolve_portrait(self, data: dict[str, Any]) -> Path | None:
|
|
194
|
-
"""Get portrait path from persona data or resolve locally."""
|
|
195
|
-
portrait_path = data.get("portraitPath")
|
|
196
|
-
if portrait_path:
|
|
197
|
-
p = Path(portrait_path)
|
|
198
|
-
if p.exists():
|
|
199
|
-
return p
|
|
200
|
-
theme = data.get("theme", "")
|
|
201
|
-
role = data.get("role", "")
|
|
202
|
-
if theme and role:
|
|
203
|
-
from pennyfarthing_scripts.bikerack import portrait_resolver
|
|
204
|
-
|
|
205
|
-
return portrait_resolver.resolve_portrait_path(theme, role)
|
|
206
|
-
return None
|
|
207
|
-
|
|
208
|
-
def _render_header(self) -> None:
|
|
209
|
-
"""Re-render the header from stored state."""
|
|
210
|
-
data = self._persona_data
|
|
211
|
-
char = data.get("character", "")
|
|
212
|
-
role = data.get("role", "")
|
|
213
|
-
role_desc = data.get("roleDescription", "")
|
|
214
|
-
quote = data.get("quote", "")
|
|
215
|
-
theme = data.get("theme", "")
|
|
216
|
-
|
|
217
|
-
if not char:
|
|
218
|
-
self.update("[dim]Waiting for agent...[/dim]")
|
|
219
|
-
self.post_message(self.PortraitLayoutUpdate(portrait_path=None))
|
|
220
|
-
return
|
|
221
|
-
|
|
222
|
-
parts: list[str] = []
|
|
223
|
-
|
|
224
|
-
# Role badge — escape brackets so Rich doesn't eat them as tags
|
|
225
|
-
if role:
|
|
226
|
-
abbrev = AGENT_ABBREV.get(role, role.upper()[:3])
|
|
227
|
-
color = AGENT_ROLE_COLORS.get(role, "bright_magenta")
|
|
228
|
-
parts.append(f"[bold {color}]\\[{abbrev}][/bold {color}]")
|
|
229
|
-
|
|
230
|
-
# Character name
|
|
231
|
-
parts.append(f"[bold]{char}[/bold]")
|
|
232
|
-
|
|
233
|
-
# Theme name
|
|
234
|
-
if theme:
|
|
235
|
-
from pennyfarthing_scripts.bikerack.base_panel import humanize_theme
|
|
236
|
-
|
|
237
|
-
parts.append(f"[dim]{humanize_theme(theme)}[/dim]")
|
|
238
|
-
|
|
239
|
-
# Streaming indicator
|
|
240
|
-
if self._is_streaming:
|
|
241
|
-
parts.append("[bold yellow]⚡[/bold yellow]")
|
|
242
|
-
|
|
243
|
-
line = " ".join(parts)
|
|
244
|
-
|
|
245
|
-
# Catchphrase subtitle (quote is a random catchphrase from the theme)
|
|
246
|
-
if quote:
|
|
247
|
-
line += f"\n[italic dim]\"{quote}\"[/italic dim]"
|
|
248
|
-
elif role_desc:
|
|
249
|
-
line += f"\n[dim]{role_desc}[/dim]"
|
|
250
|
-
|
|
251
|
-
self._header_text = line
|
|
252
|
-
|
|
253
|
-
# Check portrait and schedule layout update
|
|
254
|
-
portrait = self._resolve_portrait(data)
|
|
255
|
-
self.post_message(self.PortraitLayoutUpdate(portrait_path=portrait))
|
|
256
|
-
|
|
257
|
-
async def on_agent_header_portrait_layout_update(
|
|
258
|
-
self, event: PortraitLayoutUpdate
|
|
259
|
-
) -> None:
|
|
260
|
-
"""Mount or remove Horizontal portrait layout with text beside image.
|
|
261
|
-
|
|
262
|
-
Shows a skeleton placeholder immediately while the real image loads
|
|
263
|
-
to avoid a visible blank gap during image decode/render.
|
|
264
|
-
"""
|
|
265
|
-
if event.has_portrait and event.portrait_path:
|
|
266
|
-
if self._current_portrait == event.portrait_path:
|
|
267
|
-
# Same portrait — just update text label if it exists
|
|
268
|
-
try:
|
|
269
|
-
text_widget = self.query_one("#agent-text", Static)
|
|
270
|
-
text_widget.update(self._header_text)
|
|
271
|
-
except Exception:
|
|
272
|
-
pass
|
|
273
|
-
return
|
|
274
|
-
|
|
275
|
-
# New portrait or first time — full layout rebuild
|
|
276
|
-
for child in list(self.query("Horizontal")):
|
|
277
|
-
await child.remove()
|
|
278
|
-
|
|
279
|
-
# Mount skeleton + text immediately so there's no blank gap
|
|
280
|
-
self.update("")
|
|
281
|
-
self._current_portrait = event.portrait_path
|
|
282
|
-
skeleton = Static(PORTRAIT_SKELETON, id="portrait-skeleton")
|
|
283
|
-
text = Static(self._header_text, id="agent-text")
|
|
284
|
-
row = Horizontal(skeleton, text, id="portrait-row")
|
|
285
|
-
await self.mount(row)
|
|
286
|
-
|
|
287
|
-
# Now try to load the real image and swap it in
|
|
288
|
-
try:
|
|
289
|
-
from pennyfarthing_scripts.bikerack.portrait_resolver import (
|
|
290
|
-
detect_image_protocol,
|
|
291
|
-
)
|
|
292
|
-
|
|
293
|
-
protocol = detect_image_protocol()
|
|
294
|
-
if protocol is None:
|
|
295
|
-
# No image protocol — remove skeleton, fall back to text-only
|
|
296
|
-
for child in list(self.query("Horizontal")):
|
|
297
|
-
await child.remove()
|
|
298
|
-
self.update(self._header_text)
|
|
299
|
-
return
|
|
300
|
-
|
|
301
|
-
if protocol == "kitty":
|
|
302
|
-
from textual_image.widget import TGPImage as ImageWidget
|
|
303
|
-
elif protocol == "sixel":
|
|
304
|
-
from textual_image.widget import SixelImage as ImageWidget
|
|
305
|
-
else:
|
|
306
|
-
from textual_image.widget import HalfcellImage as ImageWidget
|
|
307
|
-
|
|
308
|
-
img = ImageWidget(str(event.portrait_path), id="portrait-img")
|
|
309
|
-
try:
|
|
310
|
-
skel = self.query_one("#portrait-skeleton")
|
|
311
|
-
await skel.remove()
|
|
312
|
-
except Exception:
|
|
313
|
-
pass
|
|
314
|
-
await row.mount(img, before=0)
|
|
315
|
-
except (ImportError, Exception):
|
|
316
|
-
# textual-image not available — remove skeleton, text-only
|
|
317
|
-
for child in list(self.query("Horizontal")):
|
|
318
|
-
await child.remove()
|
|
319
|
-
self.update(self._header_text)
|
|
320
|
-
else:
|
|
321
|
-
# No portrait — text-only
|
|
322
|
-
for child in list(self.query("Horizontal")):
|
|
323
|
-
await child.remove()
|
|
324
|
-
self._current_portrait = None
|
|
325
|
-
self.update(self._header_text)
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
class ConnectionStatus(Static):
|
|
329
|
-
"""Displays WheelHub connection state with colored indicator."""
|
|
330
|
-
|
|
331
|
-
connection_state: reactive[ConnectionState] = reactive(
|
|
332
|
-
ConnectionState.DISCONNECTED
|
|
333
|
-
)
|
|
334
|
-
|
|
335
|
-
def watch_connection_state(self, state: ConnectionState) -> None:
|
|
336
|
-
"""Update display when connection state changes."""
|
|
337
|
-
self.update(STATE_DISPLAY.get(state, "● Unknown"))
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
class PanelCommands(Provider):
|
|
341
|
-
"""Command palette provider for panel switching."""
|
|
342
|
-
|
|
343
|
-
async def search(self, query: str) -> Hits:
|
|
344
|
-
matcher = self.matcher(query)
|
|
345
|
-
for panel_key, display_name in PANEL_REGISTRY:
|
|
346
|
-
icon = get_panel_icon(panel_key)
|
|
347
|
-
label = f"{icon} {display_name}" if icon else display_name
|
|
348
|
-
score = matcher.match(display_name)
|
|
349
|
-
if score > 0:
|
|
350
|
-
yield Hit(
|
|
351
|
-
score,
|
|
352
|
-
matcher.highlight(label),
|
|
353
|
-
partial(self.app.action_switch_panel, panel_key),
|
|
354
|
-
help=f"Switch to {display_name} panel",
|
|
355
|
-
)
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
class BikeRackApp(App):
|
|
359
|
-
"""BikeRack TUI application shell."""
|
|
360
|
-
|
|
361
|
-
class PersonaUpdate(Message, bubble=False):
|
|
362
|
-
"""Persona data from WS — routed through Textual message system."""
|
|
363
|
-
|
|
364
|
-
def __init__(self, data: dict[str, Any]) -> None:
|
|
365
|
-
super().__init__()
|
|
366
|
-
self.data = data
|
|
367
|
-
|
|
368
|
-
class FocusUpdate(Message, bubble=False):
|
|
369
|
-
"""Focus change from WS — routed through Textual message system."""
|
|
370
|
-
|
|
371
|
-
def __init__(self, focus: str | None, split_config: dict | None = None) -> None:
|
|
372
|
-
super().__init__()
|
|
373
|
-
self.focus = focus
|
|
374
|
-
self.split_config = split_config
|
|
375
|
-
|
|
376
|
-
class WsStateUpdate(Message, bubble=False):
|
|
377
|
-
"""WS connection state change — routed through Textual message system."""
|
|
378
|
-
|
|
379
|
-
def __init__(self, state: ConnectionState) -> None:
|
|
380
|
-
super().__init__()
|
|
381
|
-
self.state = state
|
|
382
|
-
|
|
383
|
-
TITLE = "BikeRack"
|
|
384
|
-
|
|
385
|
-
CSS = """
|
|
386
|
-
#agent-header {
|
|
387
|
-
height: auto;
|
|
388
|
-
max-height: 7;
|
|
389
|
-
padding: 0 1;
|
|
390
|
-
border-bottom: solid $accent;
|
|
391
|
-
}
|
|
392
|
-
#portrait-row {
|
|
393
|
-
height: 5;
|
|
394
|
-
width: 100%;
|
|
395
|
-
}
|
|
396
|
-
#portrait-img {
|
|
397
|
-
width: 10;
|
|
398
|
-
height: 5;
|
|
399
|
-
margin: 0 1 0 0;
|
|
400
|
-
}
|
|
401
|
-
#agent-text {
|
|
402
|
-
height: auto;
|
|
403
|
-
width: 1fr;
|
|
404
|
-
}
|
|
405
|
-
#project-dir {
|
|
406
|
-
height: 1;
|
|
407
|
-
padding: 0 1;
|
|
408
|
-
color: $text-muted;
|
|
409
|
-
}
|
|
410
|
-
Tabs {
|
|
411
|
-
dock: top;
|
|
412
|
-
}
|
|
413
|
-
Tab.-active {
|
|
414
|
-
color: $text;
|
|
415
|
-
}
|
|
416
|
-
Tab {
|
|
417
|
-
color: $text-muted;
|
|
418
|
-
}
|
|
419
|
-
#connection-status {
|
|
420
|
-
height: 1;
|
|
421
|
-
}
|
|
422
|
-
ContextMeterFooter {
|
|
423
|
-
height: 1;
|
|
424
|
-
}
|
|
425
|
-
#split-container {
|
|
426
|
-
display: none;
|
|
427
|
-
height: 1fr;
|
|
428
|
-
}
|
|
429
|
-
#split-left {
|
|
430
|
-
width: 1fr;
|
|
431
|
-
}
|
|
432
|
-
#split-right {
|
|
433
|
-
width: 1fr;
|
|
434
|
-
}
|
|
435
|
-
"""
|
|
436
|
-
|
|
437
|
-
COMMANDS = App.COMMANDS | {PanelCommands}
|
|
438
|
-
|
|
439
|
-
BINDINGS = [
|
|
440
|
-
Binding("q", "quit", "Quit"),
|
|
441
|
-
Binding("shift+s", "toggle_split", "Split"),
|
|
442
|
-
Binding("1", "switch_panel('sprint')", "Sprint", show=False),
|
|
443
|
-
Binding("2", "switch_panel('git')", "Git", show=False),
|
|
444
|
-
Binding("3", "switch_panel('diffs')", "Diffs", show=False),
|
|
445
|
-
Binding("4", "switch_panel('changed')", "Changed", show=False),
|
|
446
|
-
Binding("5", "switch_panel('background')", "Background", show=False),
|
|
447
|
-
Binding("6", "switch_panel('audit-log')", "Audit Log", show=False),
|
|
448
|
-
Binding("7", "switch_panel('debug')", "Debug", show=False),
|
|
449
|
-
Binding("8", "switch_panel('progress')", "Progress", show=False),
|
|
450
|
-
Binding("bracketright", "next_panel", "]Next"),
|
|
451
|
-
Binding("bracketleft", "prev_panel", "[Prev"),
|
|
452
|
-
Binding("tab", "next_panel", show=False, priority=True),
|
|
453
|
-
Binding("shift+tab", "prev_panel", show=False, priority=True),
|
|
454
|
-
Binding("n", "next_diff_file", "Next file", show=False),
|
|
455
|
-
Binding("p", "prev_diff_file", "Prev file", show=False),
|
|
456
|
-
Binding("j", "next_epic", show=False),
|
|
457
|
-
Binding("k", "prev_epic", show=False),
|
|
458
|
-
Binding("e", "toggle_epic", show=False),
|
|
459
|
-
]
|
|
460
|
-
|
|
461
|
-
def _get_dom_base(self):
|
|
462
|
-
"""Query the active screen so app.query() finds pushed screen widgets."""
|
|
463
|
-
return self.screen
|
|
464
|
-
|
|
465
|
-
def __init__(self, client=None, **kwargs):
|
|
466
|
-
super().__init__(**kwargs)
|
|
467
|
-
self._client = client
|
|
468
|
-
self._focused_panel: str = "sprint"
|
|
469
|
-
self._previous_panel: str | None = None
|
|
470
|
-
self._programmatic_tab_count: int = 0
|
|
471
|
-
self._context_meter: ContextMeterFooter | None = None
|
|
472
|
-
# Split-pane state (Story 110-4)
|
|
473
|
-
self._split_mode: bool = False
|
|
474
|
-
self._active_split_pane: str = "left"
|
|
475
|
-
self._split_left_key: str = "sprint"
|
|
476
|
-
self._split_right_key: str = "diffs"
|
|
477
|
-
|
|
478
|
-
def compose(self) -> ComposeResult:
|
|
479
|
-
project_dir_name = Path(
|
|
480
|
-
os.environ.get("CYCLIST_PROJECT_DIR", os.getcwd())
|
|
481
|
-
).name
|
|
482
|
-
yield Header()
|
|
483
|
-
yield AgentHeader(id="agent-header")
|
|
484
|
-
yield Static(f"[dim]{project_dir_name}[/dim]", id="project-dir")
|
|
485
|
-
yield Tabs(*_build_panel_tabs(), id="tab-bar")
|
|
486
|
-
yield ConnectionStatus(
|
|
487
|
-
STATE_DISPLAY[ConnectionState.DISCONNECTED],
|
|
488
|
-
id="connection-status",
|
|
489
|
-
)
|
|
490
|
-
with VerticalScroll(id="main-content"):
|
|
491
|
-
yield SprintPanel(client=self._client, id="panel-sprint")
|
|
492
|
-
yield GitPanel(client=self._client, id="panel-git")
|
|
493
|
-
yield DiffsPanel(client=self._client, id="panel-diffs")
|
|
494
|
-
yield ChangedPanel(client=self._client, id="panel-changed")
|
|
495
|
-
yield BackgroundPanel(client=self._client, id="panel-background")
|
|
496
|
-
yield AuditLogPanel(client=self._client, id="panel-audit-log")
|
|
497
|
-
yield DebugPanel(client=self._client, id="panel-debug")
|
|
498
|
-
yield ProgressPanel(client=self._client, id="panel-progress")
|
|
499
|
-
with Horizontal(id="split-container"):
|
|
500
|
-
yield VerticalScroll(id="split-left")
|
|
501
|
-
yield VerticalScroll(id="split-right")
|
|
502
|
-
self._context_meter = ContextMeterFooter(client=self._client)
|
|
503
|
-
yield self._context_meter
|
|
504
|
-
yield BindingFooter()
|
|
505
|
-
|
|
506
|
-
async def on_mount(self) -> None:
|
|
507
|
-
# Restore last panel or default to sprint
|
|
508
|
-
result = get_last_panel()
|
|
509
|
-
initial = "sprint"
|
|
510
|
-
if result.get("success") and result.get("last_panel"):
|
|
511
|
-
last = result["last_panel"]
|
|
512
|
-
if last in _PANEL_KEYS:
|
|
513
|
-
initial = last
|
|
514
|
-
|
|
515
|
-
self._focused_panel = initial
|
|
516
|
-
|
|
517
|
-
# Hide all panels except the active one
|
|
518
|
-
for panel_key in _PANEL_KEYS:
|
|
519
|
-
widget_id = f"panel-{panel_key}"
|
|
520
|
-
try:
|
|
521
|
-
widget = self.query_one(f"#{widget_id}")
|
|
522
|
-
widget.display = (panel_key == initial)
|
|
523
|
-
except Exception:
|
|
524
|
-
pass
|
|
525
|
-
|
|
526
|
-
# Set tab bar active state and focus initial panel
|
|
527
|
-
self._update_tab_bar(initial)
|
|
528
|
-
try:
|
|
529
|
-
initial_widget = self.query_one(f"#panel-{initial}")
|
|
530
|
-
initial_widget.focus()
|
|
531
|
-
except Exception:
|
|
532
|
-
pass
|
|
533
|
-
|
|
534
|
-
if self._client is not None:
|
|
535
|
-
self._client.on_state_change(self._on_ws_state_change)
|
|
536
|
-
self._client.subscribe("focus", self._handle_focus_message)
|
|
537
|
-
self._client.subscribe("persona", self._handle_persona_message)
|
|
538
|
-
self.run_worker(self._client.connect(), exclusive=True, name="ws-client")
|
|
539
|
-
|
|
540
|
-
def on_navigate_to_file(self, event: NavigateToFile) -> None:
|
|
541
|
-
"""Handle NavigateToFile — switch to diffs and navigate to file."""
|
|
542
|
-
self.action_switch_panel("diffs")
|
|
543
|
-
try:
|
|
544
|
-
diffs = self.query_one("#panel-diffs", DiffsPanel)
|
|
545
|
-
diffs.navigate_to_file(event.path)
|
|
546
|
-
except Exception:
|
|
547
|
-
pass
|
|
548
|
-
|
|
549
|
-
def action_switch_panel(self, key: str) -> None:
|
|
550
|
-
"""Switch to a panel by key."""
|
|
551
|
-
if key not in _PANEL_KEYS:
|
|
552
|
-
return
|
|
553
|
-
if key == self._focused_panel:
|
|
554
|
-
return
|
|
555
|
-
|
|
556
|
-
# Hide current panel
|
|
557
|
-
try:
|
|
558
|
-
current = self.query_one(f"#panel-{self._focused_panel}")
|
|
559
|
-
current.display = False
|
|
560
|
-
except Exception:
|
|
561
|
-
pass
|
|
562
|
-
|
|
563
|
-
# Show target panel and focus it
|
|
564
|
-
try:
|
|
565
|
-
target = self.query_one(f"#panel-{key}")
|
|
566
|
-
target.display = True
|
|
567
|
-
target.focus()
|
|
568
|
-
except Exception:
|
|
569
|
-
pass
|
|
570
|
-
|
|
571
|
-
self._previous_panel = self._focused_panel
|
|
572
|
-
self._focused_panel = key
|
|
573
|
-
save_last_panel(key, project_dir=None)
|
|
574
|
-
self._update_tab_bar(key)
|
|
575
|
-
|
|
576
|
-
# Refresh context meter on panel switch (110-12)
|
|
577
|
-
if self._context_meter is not None:
|
|
578
|
-
self._context_meter.request_refresh()
|
|
579
|
-
|
|
580
|
-
def action_next_panel(self) -> None:
|
|
581
|
-
"""Cycle to the next panel, or toggle pane focus in split mode."""
|
|
582
|
-
if self._split_mode:
|
|
583
|
-
# In split mode, Tab toggles between left and right pane
|
|
584
|
-
if self._active_split_pane == "left":
|
|
585
|
-
self._active_split_pane = "right"
|
|
586
|
-
try:
|
|
587
|
-
self.query_one("#split-right").focus()
|
|
588
|
-
except Exception:
|
|
589
|
-
pass
|
|
590
|
-
else:
|
|
591
|
-
self._active_split_pane = "left"
|
|
592
|
-
try:
|
|
593
|
-
self.query_one("#split-left").focus()
|
|
594
|
-
except Exception:
|
|
595
|
-
pass
|
|
596
|
-
return
|
|
597
|
-
try:
|
|
598
|
-
idx = _PANEL_KEYS.index(self._focused_panel)
|
|
599
|
-
except ValueError:
|
|
600
|
-
idx = 0
|
|
601
|
-
next_idx = (idx + 1) % len(_PANEL_KEYS)
|
|
602
|
-
self.action_switch_panel(_PANEL_KEYS[next_idx])
|
|
603
|
-
|
|
604
|
-
def action_prev_panel(self) -> None:
|
|
605
|
-
"""Cycle to the previous panel."""
|
|
606
|
-
try:
|
|
607
|
-
idx = _PANEL_KEYS.index(self._focused_panel)
|
|
608
|
-
except ValueError:
|
|
609
|
-
idx = 0
|
|
610
|
-
prev_idx = (idx - 1) % len(_PANEL_KEYS)
|
|
611
|
-
self.action_switch_panel(_PANEL_KEYS[prev_idx])
|
|
612
|
-
|
|
613
|
-
def action_next_diff_file(self) -> None:
|
|
614
|
-
"""Advance to next file in diffs panel."""
|
|
615
|
-
if self._focused_panel == "diffs":
|
|
616
|
-
try:
|
|
617
|
-
panel = self.query_one("#panel-diffs", DiffsPanel)
|
|
618
|
-
panel.next_file()
|
|
619
|
-
except Exception:
|
|
620
|
-
pass
|
|
621
|
-
|
|
622
|
-
def action_prev_diff_file(self) -> None:
|
|
623
|
-
"""Go to previous file in diffs panel."""
|
|
624
|
-
if self._focused_panel == "diffs":
|
|
625
|
-
try:
|
|
626
|
-
panel = self.query_one("#panel-diffs", DiffsPanel)
|
|
627
|
-
panel.prev_file()
|
|
628
|
-
except Exception:
|
|
629
|
-
pass
|
|
630
|
-
|
|
631
|
-
def action_next_epic(self) -> None:
|
|
632
|
-
"""Move to next epic in sprint panel."""
|
|
633
|
-
if self._focused_panel == "sprint":
|
|
634
|
-
try:
|
|
635
|
-
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
636
|
-
panel.next_epic()
|
|
637
|
-
except Exception:
|
|
638
|
-
pass
|
|
639
|
-
|
|
640
|
-
def action_prev_epic(self) -> None:
|
|
641
|
-
"""Move to previous epic in sprint panel."""
|
|
642
|
-
if self._focused_panel == "sprint":
|
|
643
|
-
try:
|
|
644
|
-
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
645
|
-
panel.prev_epic()
|
|
646
|
-
except Exception:
|
|
647
|
-
pass
|
|
648
|
-
|
|
649
|
-
def action_toggle_epic(self) -> None:
|
|
650
|
-
"""Toggle expand/collapse on selected epic in sprint panel."""
|
|
651
|
-
if self._focused_panel == "sprint":
|
|
652
|
-
try:
|
|
653
|
-
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
654
|
-
panel.toggle_epic()
|
|
655
|
-
except Exception:
|
|
656
|
-
pass
|
|
657
|
-
|
|
658
|
-
# ------------------------------------------------------------------
|
|
659
|
-
# Split-pane layout (Story 110-4)
|
|
660
|
-
# ------------------------------------------------------------------
|
|
661
|
-
|
|
662
|
-
def _sync_reparent(self, widget: Any, new_parent: Any) -> None:
|
|
663
|
-
"""Move widget from current parent to new parent synchronously.
|
|
664
|
-
|
|
665
|
-
Uses internal Textual DOM API so the move is visible immediately
|
|
666
|
-
without awaiting an async mount/remove cycle.
|
|
667
|
-
"""
|
|
668
|
-
old_parent = widget._parent
|
|
669
|
-
if old_parent is not None:
|
|
670
|
-
try:
|
|
671
|
-
old_parent._nodes._remove(widget)
|
|
672
|
-
except (ValueError, AttributeError):
|
|
673
|
-
# Fallback: remove from internal list directly
|
|
674
|
-
try:
|
|
675
|
-
old_parent._nodes._nodes.remove(widget)
|
|
676
|
-
except Exception:
|
|
677
|
-
pass
|
|
678
|
-
try:
|
|
679
|
-
new_parent._nodes._append(widget)
|
|
680
|
-
except AttributeError:
|
|
681
|
-
new_parent._nodes._nodes.append(widget)
|
|
682
|
-
widget._parent = new_parent
|
|
683
|
-
|
|
684
|
-
def _enter_split(self, left_key: str, right_key: str) -> None:
|
|
685
|
-
"""Activate split mode with specified panels (synchronous)."""
|
|
686
|
-
if left_key not in _PANEL_KEYS or right_key not in _PANEL_KEYS:
|
|
687
|
-
return
|
|
688
|
-
if left_key == right_key:
|
|
689
|
-
return
|
|
690
|
-
|
|
691
|
-
self._split_mode = True
|
|
692
|
-
self._split_left_key = left_key
|
|
693
|
-
self._split_right_key = right_key
|
|
694
|
-
self._active_split_pane = "left"
|
|
695
|
-
|
|
696
|
-
try:
|
|
697
|
-
main_content = self.query_one("#main-content")
|
|
698
|
-
split_container = self.query_one("#split-container")
|
|
699
|
-
split_left = self.query_one("#split-left")
|
|
700
|
-
split_right = self.query_one("#split-right")
|
|
701
|
-
except Exception:
|
|
702
|
-
return
|
|
703
|
-
|
|
704
|
-
# Move left panel to split-left pane
|
|
705
|
-
try:
|
|
706
|
-
left_panel = self.query_one(f"#panel-{left_key}")
|
|
707
|
-
left_panel.display = True
|
|
708
|
-
self._sync_reparent(left_panel, split_left)
|
|
709
|
-
except Exception:
|
|
710
|
-
pass
|
|
711
|
-
|
|
712
|
-
# Move right panel to split-right pane
|
|
713
|
-
try:
|
|
714
|
-
right_panel = self.query_one(f"#panel-{right_key}")
|
|
715
|
-
right_panel.display = True
|
|
716
|
-
self._sync_reparent(right_panel, split_right)
|
|
717
|
-
except Exception:
|
|
718
|
-
pass
|
|
719
|
-
|
|
720
|
-
# Hide all other panels remaining in main-content
|
|
721
|
-
for panel_key in _PANEL_KEYS:
|
|
722
|
-
if panel_key not in (left_key, right_key):
|
|
723
|
-
try:
|
|
724
|
-
p = self.query_one(f"#panel-{panel_key}")
|
|
725
|
-
p.display = False
|
|
726
|
-
except Exception:
|
|
727
|
-
pass
|
|
728
|
-
|
|
729
|
-
main_content.display = False
|
|
730
|
-
split_container.display = True
|
|
731
|
-
|
|
732
|
-
def _exit_split(self) -> None:
|
|
733
|
-
"""Deactivate split mode, return panels to main-content."""
|
|
734
|
-
self._split_mode = False
|
|
735
|
-
|
|
736
|
-
try:
|
|
737
|
-
main_content = self.query_one("#main-content")
|
|
738
|
-
split_container = self.query_one("#split-container")
|
|
739
|
-
split_left = self.query_one("#split-left")
|
|
740
|
-
split_right = self.query_one("#split-right")
|
|
741
|
-
except Exception:
|
|
742
|
-
return
|
|
743
|
-
|
|
744
|
-
# Move panels back from split panes to main-content
|
|
745
|
-
for pane in (split_left, split_right):
|
|
746
|
-
for child in list(pane.children):
|
|
747
|
-
self._sync_reparent(child, main_content)
|
|
748
|
-
|
|
749
|
-
split_container.display = False
|
|
750
|
-
main_content.display = True
|
|
751
|
-
|
|
752
|
-
# Restore single-panel visibility
|
|
753
|
-
for panel_key in _PANEL_KEYS:
|
|
754
|
-
try:
|
|
755
|
-
p = self.query_one(f"#panel-{panel_key}")
|
|
756
|
-
p.display = (panel_key == self._focused_panel)
|
|
757
|
-
except Exception:
|
|
758
|
-
pass
|
|
759
|
-
|
|
760
|
-
def action_toggle_split(self) -> None:
|
|
761
|
-
"""Toggle split mode on/off (Shift+S keybinding)."""
|
|
762
|
-
if self._split_mode:
|
|
763
|
-
self._exit_split()
|
|
764
|
-
else:
|
|
765
|
-
# Default: current panel left, next panel right
|
|
766
|
-
left_key = self._focused_panel
|
|
767
|
-
try:
|
|
768
|
-
idx = _PANEL_KEYS.index(left_key)
|
|
769
|
-
except ValueError:
|
|
770
|
-
idx = 0
|
|
771
|
-
right_key = _PANEL_KEYS[(idx + 1) % len(_PANEL_KEYS)]
|
|
772
|
-
self._enter_split(left_key, right_key)
|
|
773
|
-
|
|
774
|
-
def action_apply_split_preset(self, name: str) -> None:
|
|
775
|
-
"""Apply a named split preset (synchronous)."""
|
|
776
|
-
if name not in SPLIT_PRESETS:
|
|
777
|
-
return
|
|
778
|
-
left_key, right_key = SPLIT_PRESETS[name]
|
|
779
|
-
if self._split_mode:
|
|
780
|
-
self._exit_split()
|
|
781
|
-
self._enter_split(left_key, right_key)
|
|
782
|
-
|
|
783
|
-
def _update_tab_bar(self, panel_key: str) -> None:
|
|
784
|
-
"""Update the tab bar widget with the given panel key.
|
|
785
|
-
|
|
786
|
-
Increments _programmatic_tab_count so the async TabActivated
|
|
787
|
-
handler knows to ignore the event (prevents infinite ping-pong).
|
|
788
|
-
"""
|
|
789
|
-
try:
|
|
790
|
-
tab_bar = self.query_one("#tab-bar", Tabs)
|
|
791
|
-
tab_id = f"tab-{panel_key}"
|
|
792
|
-
if tab_bar.active != tab_id:
|
|
793
|
-
self._programmatic_tab_count += 1
|
|
794
|
-
tab_bar.active = tab_id
|
|
795
|
-
except Exception:
|
|
796
|
-
pass
|
|
797
|
-
|
|
798
|
-
def on_tabs_tab_activated(self, event: Tabs.TabActivated) -> None:
|
|
799
|
-
"""Handle tab activation from the Tabs widget.
|
|
800
|
-
|
|
801
|
-
Programmatic tabs.active changes fire TabActivated asynchronously.
|
|
802
|
-
We use a counter to skip those and only react to genuine user clicks.
|
|
803
|
-
"""
|
|
804
|
-
if self._programmatic_tab_count > 0:
|
|
805
|
-
self._programmatic_tab_count -= 1
|
|
806
|
-
return
|
|
807
|
-
tab_id = event.tab.id or ""
|
|
808
|
-
panel_key = tab_id.removeprefix("tab-")
|
|
809
|
-
if panel_key in _PANEL_KEYS and panel_key != self._focused_panel:
|
|
810
|
-
self.action_switch_panel(panel_key)
|
|
811
|
-
|
|
812
|
-
def _handle_focus_message(self, message: dict[str, Any] | None) -> None:
|
|
813
|
-
"""Handle incoming focus channel messages.
|
|
814
|
-
|
|
815
|
-
Expected format:
|
|
816
|
-
Single panel: {type: 'update', focus: '<panel>'}
|
|
817
|
-
Split layout: {type: 'update', focus: 'split', split: {left: ..., right: ...}}
|
|
818
|
-
Split preset: {type: 'update', focus: 'split:<preset-name>'}
|
|
819
|
-
Only 'update' messages trigger panel switches (matching React hook).
|
|
820
|
-
Routes through Textual message system via post_message for proper repaint.
|
|
821
|
-
"""
|
|
822
|
-
if message is None or not isinstance(message, dict):
|
|
823
|
-
return
|
|
824
|
-
if message.get("type") != "update":
|
|
825
|
-
return
|
|
826
|
-
if "focus" not in message:
|
|
827
|
-
return
|
|
828
|
-
split_config = message.get("split")
|
|
829
|
-
self.post_message(self.FocusUpdate(message["focus"], split_config=split_config))
|
|
830
|
-
|
|
831
|
-
def _handle_persona_message(self, message: dict[str, Any] | None) -> None:
|
|
832
|
-
"""Handle incoming persona channel messages.
|
|
833
|
-
|
|
834
|
-
Routes through Textual message system via post_message for proper repaint.
|
|
835
|
-
"""
|
|
836
|
-
if message is None or not isinstance(message, dict):
|
|
837
|
-
return
|
|
838
|
-
self.post_message(self.PersonaUpdate(message))
|
|
839
|
-
|
|
840
|
-
def _on_ws_state_change(self, state: ConnectionState) -> None:
|
|
841
|
-
"""Handle WheelHub connection state changes.
|
|
842
|
-
|
|
843
|
-
Routes through Textual message system via post_message for proper repaint.
|
|
844
|
-
"""
|
|
845
|
-
self.post_message(self.WsStateUpdate(state))
|
|
846
|
-
|
|
847
|
-
def on_bike_rack_app_persona_update(self, event: PersonaUpdate) -> None:
|
|
848
|
-
"""Apply persona data in Textual message context."""
|
|
849
|
-
try:
|
|
850
|
-
header = self.query_one("#agent-header", AgentHeader)
|
|
851
|
-
header._apply_persona(event.data)
|
|
852
|
-
except Exception:
|
|
853
|
-
pass
|
|
854
|
-
|
|
855
|
-
def on_bike_rack_app_focus_update(self, event: FocusUpdate) -> None:
|
|
856
|
-
"""Apply focus change in Textual message context."""
|
|
857
|
-
focus = event.focus
|
|
858
|
-
split_config = event.split_config
|
|
859
|
-
|
|
860
|
-
if focus == "split" and split_config:
|
|
861
|
-
# Explicit split layout: {focus: "split", split: {left: ..., right: ...}}
|
|
862
|
-
left = split_config.get("left", "sprint")
|
|
863
|
-
right = split_config.get("right", "diffs")
|
|
864
|
-
if self._split_mode:
|
|
865
|
-
self._exit_split()
|
|
866
|
-
self._enter_split(left, right)
|
|
867
|
-
elif focus is not None and focus.startswith("split:"):
|
|
868
|
-
# Preset reference: {focus: "split:progress+debug"}
|
|
869
|
-
preset_name = focus[len("split:"):]
|
|
870
|
-
self.action_apply_split_preset(preset_name)
|
|
871
|
-
elif focus is not None and focus in _PANEL_KEYS:
|
|
872
|
-
# Single panel focus — exit split if active
|
|
873
|
-
if self._split_mode:
|
|
874
|
-
self._exit_split()
|
|
875
|
-
self.action_switch_panel(focus)
|
|
876
|
-
elif focus is not None:
|
|
877
|
-
self._previous_panel = self._focused_panel
|
|
878
|
-
self._focused_panel = focus
|
|
879
|
-
save_last_panel(focus, project_dir=None)
|
|
880
|
-
|
|
881
|
-
def on_bike_rack_app_ws_state_update(self, event: WsStateUpdate) -> None:
|
|
882
|
-
"""Apply connection state in Textual message context."""
|
|
883
|
-
try:
|
|
884
|
-
widget = self.query_one("#connection-status", ConnectionStatus)
|
|
885
|
-
widget.connection_state = event.state
|
|
886
|
-
except Exception:
|
|
887
|
-
pass
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
DEFAULT_PORT = 2898
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
def main(
|
|
894
|
-
port: int | None = None,
|
|
895
|
-
project_dir: Path | None = None,
|
|
896
|
-
) -> None:
|
|
897
|
-
"""Launch BikeRack TUI as a standalone application.
|
|
898
|
-
|
|
899
|
-
Args:
|
|
900
|
-
port: Explicit WheelHub port. If None, reads from .bikerack-port file.
|
|
901
|
-
project_dir: Project directory for port file discovery. Defaults to cwd.
|
|
902
|
-
"""
|
|
903
|
-
# Detect terminal image protocol BEFORE App.run() claims the terminal
|
|
904
|
-
from pennyfarthing_scripts.bikerack import portrait_resolver
|
|
905
|
-
|
|
906
|
-
portrait_resolver.detect_image_protocol()
|
|
907
|
-
|
|
908
|
-
if port is None:
|
|
909
|
-
if project_dir is not None:
|
|
910
|
-
port_file = project_dir / ".bikerack-port"
|
|
911
|
-
if port_file.exists():
|
|
912
|
-
try:
|
|
913
|
-
port = int(port_file.read_text().strip())
|
|
914
|
-
except (ValueError, OSError):
|
|
915
|
-
port = DEFAULT_PORT
|
|
916
|
-
else:
|
|
917
|
-
port = DEFAULT_PORT
|
|
918
|
-
else:
|
|
919
|
-
port = DEFAULT_PORT
|
|
920
|
-
|
|
921
|
-
client = WheelHubClient(port=port)
|
|
922
|
-
app = BikeRackApp(client=client)
|
|
923
|
-
app.run()
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
if __name__ == "__main__":
|
|
927
|
-
import argparse
|
|
928
|
-
|
|
929
|
-
parser = argparse.ArgumentParser(description="BikeRack TUI")
|
|
930
|
-
parser.add_argument("--port", type=int, default=None, help="WheelHub port")
|
|
931
|
-
parser.add_argument("--project-dir", type=str, default=None, help="Project directory")
|
|
932
|
-
args = parser.parse_args()
|
|
933
|
-
|
|
934
|
-
project_dir = Path(args.project_dir) if args.project_dir else None
|
|
935
|
-
main(port=args.port, project_dir=project_dir)
|