@pennyfarthing/core 11.4.0 → 12.0.0
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 +9 -9
- package/package.json +3 -9
- package/packages/core/dist/cli/commands/command.js +9 -9
- package/packages/core/dist/cli/commands/command.js.map +1 -1
- package/packages/core/dist/cli/commands/cyclist.js +1 -1
- package/packages/core/dist/cli/commands/cyclist.js.map +1 -1
- package/packages/core/dist/cli/commands/cyclist.test.js +4 -4
- package/packages/core/dist/cli/commands/cyclist.test.js.map +1 -1
- package/packages/core/dist/cli/commands/doctor-legacy.test.js +2 -1
- package/packages/core/dist/cli/commands/doctor-legacy.test.js.map +1 -1
- package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts +22 -0
- package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js +161 -0
- package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js.map +1 -0
- package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/doctor.js +190 -34
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/e2e-upgrade.test.js +1 -1
- package/packages/core/dist/cli/commands/e2e-upgrade.test.js.map +1 -1
- package/packages/core/dist/cli/commands/hook-chaining.test.js +1 -1
- package/packages/core/dist/cli/commands/hook-chaining.test.js.map +1 -1
- package/packages/core/dist/cli/commands/init.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/init.js +47 -18
- package/packages/core/dist/cli/commands/init.js.map +1 -1
- package/packages/core/dist/cli/commands/pyproject-install.test.js +1 -1
- package/packages/core/dist/cli/commands/pyproject-install.test.js.map +1 -1
- package/packages/core/dist/cli/commands/skill.js +9 -9
- package/packages/core/dist/cli/commands/skill.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/theme.js +3 -3
- package/packages/core/dist/cli/commands/theme.js.map +1 -1
- package/packages/core/dist/cli/commands/uninstall.js +1 -1
- package/packages/core/dist/cli/commands/uninstall.js.map +1 -1
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +71 -20
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/commands/version.js +1 -1
- package/packages/core/dist/cli/commands/version.js.map +1 -1
- package/packages/core/dist/cli/index.js +2 -30
- package/packages/core/dist/cli/index.js.map +1 -1
- package/packages/core/dist/cli/utils/constants.d.ts +2 -2
- package/packages/core/dist/cli/utils/constants.js +1 -1
- package/packages/core/dist/cli/utils/constants.js.map +1 -1
- package/packages/core/dist/cli/utils/files.d.ts +1 -1
- package/packages/core/dist/cli/utils/files.js +1 -1
- package/packages/core/dist/cli/utils/install-helpers.d.ts +25 -0
- package/packages/core/dist/cli/utils/install-helpers.d.ts.map +1 -0
- package/packages/core/dist/cli/utils/install-helpers.js +162 -0
- package/packages/core/dist/cli/utils/install-helpers.js.map +1 -0
- package/packages/core/dist/cli/utils/node-modules.d.ts +7 -0
- package/packages/core/dist/cli/utils/node-modules.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/node-modules.js +39 -0
- package/packages/core/dist/cli/utils/node-modules.js.map +1 -1
- package/packages/core/dist/cli/utils/settings.d.ts +1 -1
- package/packages/core/dist/cli/utils/settings.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/settings.js +40 -21
- package/packages/core/dist/cli/utils/settings.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/cli/utils/symlinks.d.ts +4 -0
- package/packages/core/dist/cli/utils/symlinks.d.ts.map +1 -1
- package/packages/core/dist/cli/utils/symlinks.js +25 -2
- package/packages/core/dist/cli/utils/symlinks.js.map +1 -1
- package/packages/core/dist/cli/workspace.test.js +4 -37
- package/packages/core/dist/cli/workspace.test.js.map +1 -1
- package/packages/core/dist/data-source.d.ts +42 -0
- package/packages/core/dist/data-source.d.ts.map +1 -0
- package/packages/core/dist/data-source.js +12 -0
- package/packages/core/dist/data-source.js.map +1 -0
- package/packages/core/dist/data-source.test.d.ts +16 -0
- package/packages/core/dist/data-source.test.d.ts.map +1 -0
- package/packages/core/dist/data-source.test.js +206 -0
- package/packages/core/dist/data-source.test.js.map +1 -0
- package/packages/core/dist/index.d.ts +1 -0
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/public/css/react.css +1 -1
- package/packages/core/dist/public/js/react/react.js +39 -39
- 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/api/context.d.ts.map +1 -1
- package/packages/core/dist/server/api/context.js +23 -5
- package/packages/core/dist/server/api/context.js.map +1 -1
- package/packages/core/dist/server/api/index.d.ts +0 -1
- package/packages/core/dist/server/api/index.d.ts.map +1 -1
- package/packages/core/dist/server/api/index.js +0 -2
- package/packages/core/dist/server/api/index.js.map +1 -1
- package/packages/core/dist/server/api/settings.d.ts.map +1 -1
- package/packages/core/dist/server/api/settings.js +6 -0
- package/packages/core/dist/server/api/settings.js.map +1 -1
- package/packages/core/dist/server/otlp-receiver.d.ts +2 -4
- package/packages/core/dist/server/otlp-receiver.d.ts.map +1 -1
- package/packages/core/dist/server/otlp-receiver.js +7 -18
- package/packages/core/dist/server/otlp-receiver.js.map +1 -1
- package/packages/core/dist/server/otlp-receiver.test.js +0 -27
- package/packages/core/dist/server/otlp-receiver.test.js.map +1 -1
- package/packages/core/dist/server/server.d.ts +2 -2
- package/packages/core/dist/server/server.d.ts.map +1 -1
- package/packages/core/dist/server/server.js +20 -5
- package/packages/core/dist/server/server.js.map +1 -1
- package/packages/core/dist/server/server.test.js +1 -1
- package/packages/core/dist/server/server.test.js.map +1 -1
- package/packages/core/dist/shared/generate-skill-docs.test.js +2 -2
- package/packages/core/dist/shared/skill-search.test.js +2 -2
- package/packages/core/dist/workflow/cross-entity-validation.d.ts.map +1 -1
- package/packages/core/dist/workflow/cross-entity-validation.js.map +1 -1
- package/packages/core/dist/workflow/tandem-workflow-templates.test.js +3 -3
- package/packages/core/dist/workflow/tandem-workflow-templates.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-migration.test.js +8 -8
- package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
- package/packages/core/dist/workflow/workflow-schema.js +1 -1
- package/packages/core/dist/workflow/workflow-schema.js.map +1 -1
- package/packages/core/src/public/App.tsx +1 -4
- package/packages/core/src/public/components/DockviewWorkspace.tsx +0 -4
- package/packages/core/src/public/components/panels/SettingsPanel.tsx +83 -283
- package/packages/core/src/public/components/panels/SprintPanel.tsx +11 -1
- package/packages/core/src/public/components/panels/index.ts +0 -1
- package/packages/core/src/public/data-source.ts +117 -0
- package/packages/core/src/public/hooks/index.ts +0 -3
- package/packages/core/src/public/hooks/useAgentLoad.ts +1 -0
- package/packages/core/src/public/hooks/useCodeMarkers.ts +1 -0
- package/packages/core/src/public/hooks/useComplexity.ts +1 -0
- package/packages/core/src/public/hooks/useDataSource.ts +273 -0
- package/packages/core/src/public/hooks/useDeadCode.ts +1 -0
- package/packages/core/src/public/hooks/useDependencies.ts +1 -0
- package/packages/core/src/public/hooks/useDiffs.ts +46 -91
- package/packages/core/src/public/hooks/useGitStatus.ts +16 -77
- package/packages/core/src/public/hooks/useHealthScore.ts +1 -0
- package/packages/core/src/public/hooks/useHotspots.ts +1 -0
- package/packages/core/src/public/hooks/usePersona.ts +32 -67
- package/packages/core/src/public/hooks/useSprint.ts +23 -75
- package/packages/core/src/public/hooks/useStatsStrip.ts +47 -117
- package/packages/core/src/public/hooks/useStory.ts +11 -60
- package/packages/core/src/public/hooks/useTodos.ts +8 -61
- package/packages/core/src/public/images/cyclist-tandem-source.png +0 -0
- package/packages/core/src/public/index.ts +5 -0
- package/packages/core/src/public/styles/tailwind.css +15 -101
- package/packages/core/src/public/utils/slash-commands.ts +0 -4
- package/pennyfarthing-dist/agents/architect.md +8 -0
- package/pennyfarthing-dist/agents/ba.md +8 -0
- package/pennyfarthing-dist/agents/dev.md +10 -2
- package/pennyfarthing-dist/agents/devops.md +8 -0
- package/pennyfarthing-dist/agents/orchestrator.md +8 -0
- package/pennyfarthing-dist/agents/pm.md +8 -0
- package/pennyfarthing-dist/agents/reviewer.md +12 -4
- package/pennyfarthing-dist/agents/sm-setup.md +7 -7
- package/pennyfarthing-dist/agents/sm.md +20 -12
- package/pennyfarthing-dist/agents/tea.md +10 -2
- package/pennyfarthing-dist/agents/tech-writer.md +8 -0
- package/pennyfarthing-dist/agents/ux-designer.md +8 -0
- package/pennyfarthing-dist/commands/pf-architect.md +1 -1
- package/pennyfarthing-dist/commands/pf-ba.md +1 -1
- package/pennyfarthing-dist/commands/pf-dev.md +1 -1
- package/pennyfarthing-dist/commands/pf-devops.md +1 -1
- package/pennyfarthing-dist/commands/pf-health-check.md +1 -1
- package/pennyfarthing-dist/commands/pf-help.md +3 -2
- package/pennyfarthing-dist/commands/pf-orchestrator.md +1 -1
- package/pennyfarthing-dist/commands/pf-pm.md +1 -1
- package/pennyfarthing-dist/commands/pf-reviewer.md +1 -1
- package/pennyfarthing-dist/commands/pf-setup.md +4 -4
- package/pennyfarthing-dist/commands/pf-sm.md +1 -1
- package/pennyfarthing-dist/commands/pf-standalone.md +60 -0
- package/pennyfarthing-dist/commands/pf-tea.md +1 -1
- package/pennyfarthing-dist/commands/pf-tech-writer.md +1 -1
- package/pennyfarthing-dist/commands/pf-ux-designer.md +1 -1
- package/pennyfarthing-dist/commands/pf-work.md +1 -1
- package/pennyfarthing-dist/guides/agent-behavior.md +11 -11
- package/pennyfarthing-dist/guides/agent-tag-taxonomy.md +2 -2
- package/pennyfarthing-dist/guides/bikelane.md +1 -8
- package/pennyfarthing-dist/guides/bikerack.md +94 -0
- package/pennyfarthing-dist/guides/hooks.md +1 -1
- package/pennyfarthing-dist/guides/what-is-pennyfarthing.md +91 -0
- package/pennyfarthing-dist/guides/xml-tags.md +2 -2
- package/pennyfarthing-dist/personas/themes/discworld.yaml +14 -12
- package/pennyfarthing-dist/personas/themes/firefly.yaml +12 -12
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +14 -12
- package/pennyfarthing-dist/pyproject.toml +6 -2
- package/pennyfarthing-dist/scripts/core/agent-session.sh +4 -5
- package/pennyfarthing-dist/scripts/core/check-context.sh +10 -5
- package/pennyfarthing-dist/scripts/core/phase-check-start.sh +1 -2
- package/pennyfarthing-dist/scripts/core/prime.sh +1 -2
- package/pennyfarthing-dist/scripts/git/changelog-links.sh +216 -0
- package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +1 -2
- package/pennyfarthing-dist/scripts/git/git-status-all.sh +1 -2
- package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +1 -2
- package/pennyfarthing-dist/scripts/git/worktree-manager.sh +1 -2
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/cyclist-pretooluse-hook.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +31 -1
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +6 -4
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +1 -1
- package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +2 -3
- package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +2 -3
- package/pennyfarthing-dist/scripts/lib/README.md +0 -1
- package/pennyfarthing-dist/scripts/misc/statusline.sh +2 -3
- package/pennyfarthing-dist/scripts/misc/uninstall.sh +1 -1
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +84 -8
- package/pennyfarthing-dist/scripts/portraits/generate-tandem-portraits.sh +7 -3
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +2 -2
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +2 -18
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +1 -2
- package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +1 -2
- package/pennyfarthing-dist/skills/pf-jira/usage.md +87 -145
- package/pennyfarthing-dist/skills/pf-settings/skill.md +41 -3
- package/pennyfarthing-dist/skills/pf-settings/usage.md +25 -0
- package/pennyfarthing-dist/skills/pf-sprint/skill.md +4 -0
- package/pennyfarthing-dist/skills/pf-sprint/usage.md +167 -173
- package/pennyfarthing-dist/skills/pf-theme/usage.md +17 -129
- package/pennyfarthing-dist/skills/pf-ux-tandem/SKILL.md +194 -0
- package/pennyfarthing-dist/skills/pf-workflow/usage.md +51 -128
- package/pennyfarthing-dist/skills/skill-registry.yaml +17 -21
- package/pennyfarthing-dist/src/pf/CLAUDE.md +213 -0
- package/pennyfarthing-dist/src/pf/__init__.py +17 -0
- package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/config_migration.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bc/cli.py +240 -0
- package/pennyfarthing-dist/src/pf/bc/focus.py +332 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/layout_order.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_widget.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bikerack/audit_log_panel.py +631 -0
- package/pennyfarthing-dist/src/pf/bikerack/base_panel.py +186 -0
- package/pennyfarthing-dist/src/pf/bikerack/context_meter_footer.py +266 -0
- package/pennyfarthing-dist/src/pf/bikerack/debug_panel.py +451 -0
- package/pennyfarthing-dist/src/pf/bikerack/launcher.py +239 -0
- package/pennyfarthing-dist/src/pf/bikerack/layout_order.py +84 -0
- package/pennyfarthing-dist/src/pf/bikerack/portrait_resolver.py +191 -0
- package/pennyfarthing-dist/src/pf/bikerack/progress_panel.py +564 -0
- package/pennyfarthing-dist/src/pf/bikerack/sprint_panel.py +645 -0
- package/pennyfarthing-dist/src/pf/bikerack/story_detail_data.py +329 -0
- package/pennyfarthing-dist/src/pf/bikerack/story_detail_screen.py +283 -0
- package/pennyfarthing-dist/src/pf/bikerack/story_detail_widget.py +167 -0
- package/pennyfarthing-dist/src/pf/bikerack/tui.py +1170 -0
- package/pennyfarthing-dist/src/pf/bikerack/ws_client.py +203 -0
- package/pennyfarthing-dist/src/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/bmad/cli.py +196 -0
- package/pennyfarthing-dist/src/pf/bmad/importer.py +199 -0
- package/pennyfarthing-dist/src/pf/bmad/parser.py +238 -0
- package/pennyfarthing-dist/src/pf/bmad/sync.py +462 -0
- package/pennyfarthing-dist/src/pf/bmad/test_parser.py +249 -0
- package/pennyfarthing-dist/src/pf/bmad/test_sync.py +220 -0
- package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/brownfield/cli.py +130 -0
- package/pennyfarthing-dist/src/pf/cli.py +393 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__init__.py +50 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/common/config.py +162 -0
- package/pennyfarthing-dist/src/pf/common/hooks.py +31 -0
- package/pennyfarthing-dist/src/pf/common/themes.py +354 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/config_migration.py +102 -0
- package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/context.py +413 -0
- package/pennyfarthing-dist/src/pf/core/__init__.py +6 -0
- package/pennyfarthing-dist/src/pf/core/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/core/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/core/__pycache__/resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/core/models.py +30 -0
- package/pennyfarthing-dist/src/pf/core/resolver.py +137 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/docs/__init__.py +1 -0
- package/pennyfarthing-dist/src/pf/docs/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/docs/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/docs/__pycache__/sync_skills.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/docs/cli.py +51 -0
- package/pennyfarthing-dist/src/pf/docs/sync_skills.py +489 -0
- package/pennyfarthing-dist/src/pf/doctor/__init__.py +6 -0
- package/pennyfarthing-dist/src/pf/doctor/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/doctor/__pycache__/checks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/doctor/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/doctor/__pycache__/core.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/doctor/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/doctor/checks.py +180 -0
- package/pennyfarthing-dist/src/pf/doctor/cli.py +52 -0
- package/pennyfarthing-dist/src/pf/doctor/core.py +63 -0
- package/pennyfarthing-dist/src/pf/doctor/models.py +29 -0
- package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/__pycache__/repos.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git/hooks_installer.py +152 -0
- package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/handoff/gate_file.py +109 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__init__.py +447 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hooks/cyclist_pretooluse.py +161 -0
- package/pennyfarthing-dist/src/pf/hooks/frontmatter.py +257 -0
- package/pennyfarthing-dist/src/pf/hooks/session_start.py +379 -0
- package/pennyfarthing-dist/src/pf/hooks/statusline.py +436 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/init/__init__.py +1 -0
- package/pennyfarthing-dist/src/pf/init/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/init/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/init/__pycache__/core.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/init/__pycache__/setup.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/init/cli.py +63 -0
- package/pennyfarthing-dist/src/pf/init/core.py +281 -0
- package/pennyfarthing-dist/src/pf/init/setup.py +474 -0
- package/pennyfarthing-dist/src/pf/jira/__init__.py +91 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/jira/claim.py +232 -0
- package/pennyfarthing-dist/src/pf/jira/cli.py +472 -0
- package/pennyfarthing-dist/src/pf/jira/client.py +766 -0
- package/pennyfarthing-dist/src/pf/jira/reconcile.py +260 -0
- package/pennyfarthing-dist/src/pf/jira/story.py +223 -0
- package/pennyfarthing-dist/src/pf/jira/sync.py +350 -0
- package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__init__.py +39 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/migration/cli.py +303 -0
- package/pennyfarthing-dist/src/pf/package/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/package/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/package/__pycache__/discovery.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/package/__pycache__/portraits.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/package/cli.py +186 -0
- package/pennyfarthing-dist/src/pf/package/discovery.py +130 -0
- package/pennyfarthing-dist/src/pf/package/portraits.py +243 -0
- package/pennyfarthing-dist/src/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/prime/cli.py +721 -0
- package/pennyfarthing-dist/src/pf/prime/loader.py +322 -0
- package/pennyfarthing-dist/src/pf/prime/persona.py +305 -0
- package/pennyfarthing-dist/src/pf/prime/workflow.py +325 -0
- package/pennyfarthing-dist/src/pf/release/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/release/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/release/__pycache__/deprecate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/release/__pycache__/dry_run.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/release/cli.py +112 -0
- package/pennyfarthing-dist/src/pf/release/deprecate.py +187 -0
- package/pennyfarthing-dist/src/pf/release/dry_run.py +187 -0
- package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/settings/__init__.py +0 -0
- package/pennyfarthing-dist/src/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/settings/settings.py +135 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/shard_merge.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/standalone_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_transition.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/sprint/archive.py +164 -0
- package/pennyfarthing-dist/src/pf/sprint/cli.py +2206 -0
- package/pennyfarthing-dist/src/pf/sprint/loader.py +361 -0
- package/pennyfarthing-dist/src/pf/sprint/shard_merge.py +205 -0
- package/pennyfarthing-dist/src/pf/sprint/standalone_add.py +143 -0
- package/pennyfarthing-dist/src/pf/sprint/status.py +187 -0
- package/pennyfarthing-dist/src/pf/sprint/story_finish.py +229 -0
- package/pennyfarthing-dist/src/pf/sprint/story_transition.py +183 -0
- package/pennyfarthing-dist/src/pf/sprint/story_update.py +240 -0
- package/pennyfarthing-dist/src/pf/sprint/yaml_io.py +407 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_config_consolidation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dist_root.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_doctor.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_e2e_install_lifecycle.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_event_driven_jira_sync.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_command.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_pypi_packaging.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel_provenance.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_transition.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_upgrade_cleanup.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_wrapper_removal.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/src/pf/tests/conftest.py +109 -0
- package/pennyfarthing-dist/src/pf/tests/test_108_1_gate_migration.py +541 -0
- package/pennyfarthing-dist/src/pf/tests/test_108_2_remove_handoff_fallback.py +340 -0
- package/pennyfarthing-dist/src/pf/tests/test_cli_modules.py +137 -0
- package/pennyfarthing-dist/src/pf/tests/test_codemarkers.py +672 -0
- package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_evaluation.py +252 -0
- package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_gate.py +318 -0
- package/pennyfarthing-dist/src/pf/tests/test_config_consolidation.py +513 -0
- package/pennyfarthing-dist/src/pf/tests/test_dist_root.py +720 -0
- package/pennyfarthing-dist/src/pf/tests/test_doctor.py +457 -0
- package/pennyfarthing-dist/src/pf/tests/test_event_driven_jira_sync.py +588 -0
- package/pennyfarthing-dist/src/pf/tests/test_init_auto_setup.py +893 -0
- package/pennyfarthing-dist/src/pf/tests/test_init_command.py +814 -0
- package/pennyfarthing-dist/src/pf/tests/test_jira_package.py +331 -0
- package/pennyfarthing-dist/src/pf/tests/test_package_structure.py +314 -0
- package/pennyfarthing-dist/src/pf/tests/test_pypi_packaging.py +329 -0
- package/pennyfarthing-dist/src/pf/tests/test_resolve_gate_file_field.py +460 -0
- package/pennyfarthing-dist/src/pf/tests/test_sprint_panel.py +610 -0
- package/pennyfarthing-dist/src/pf/tests/test_sprint_panel_provenance.py +485 -0
- package/pennyfarthing-dist/src/pf/tests/test_story_transition.py +502 -0
- package/pennyfarthing-dist/src/pf/tests/test_upgrade_cleanup.py +251 -0
- package/pennyfarthing-dist/src/pf/tests/test_wrapper_removal.py +373 -0
- package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/theme/cli.py +321 -0
- package/pennyfarthing-dist/src/pf/upgrade/__init__.py +1 -0
- package/pennyfarthing-dist/src/pf/upgrade/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/upgrade/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/upgrade/__pycache__/core.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/upgrade/cli.py +62 -0
- package/pennyfarthing-dist/src/pf/upgrade/core.py +483 -0
- package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__init__.py +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/agent.py +261 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/skill_command.py +502 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/tandem_awareness.py +260 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/team_mode.py +329 -0
- package/pennyfarthing-dist/src/pf/validate/adapters/workflow.py +413 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/src/pf/workflow/cli.py +1109 -0
- package/pennyfarthing-dist/templates/justfile.template +71 -0
- package/pennyfarthing-dist/templates/preferences.yaml.template +5 -8
- package/pennyfarthing-dist/templates/pyproject.toml +9 -1
- package/pennyfarthing-dist/templates/settings.local.json.template +20 -11
- package/pennyfarthing-dist/templates/tmux-dev.template +45 -0
- package/pennyfarthing-dist/templates/tmux.conf.template +91 -0
- package/pennyfarthing-dist/workflows/installation-check/steps/step-01-foundation.md +2 -2
- package/pennyfarthing-dist/workflows/installation-check/steps/step-05-layout.md +1 -1
- package/pennyfarthing-dist/workflows/installation-check/steps/step-07-tools.md +6 -5
- package/pennyfarthing-dist/workflows/patch.yaml +5 -6
- package/pennyfarthing-dist/workflows/project-setup/steps/step-04-claude-md.md +59 -1
- package/pennyfarthing-dist/workflows/release/steps/step-01-preflight.md +4 -0
- package/pennyfarthing-dist/workflows/release/steps/step-02-bump.md +19 -9
- package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +67 -21
- package/pennyfarthing-dist/workflows/release/steps/step-11-finalize.md +41 -30
- package/pennyfarthing-dist/workflows/tdd-tandem.yaml +28 -8
- package/packages/core/bin/pennyfarthing.js +0 -14
- 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/src/public/components/BikeRackIndex.tsx +0 -53
- package/packages/core/src/public/components/BikeRackWorkspace.tsx +0 -217
- package/packages/core/src/public/components/FontPicker/FontPicker.css +0 -276
- package/packages/core/src/public/components/FontPicker/index.tsx +0 -430
- package/packages/core/src/public/components/StandalonePanel.tsx +0 -82
- package/packages/core/src/public/components/ThemePalette/ThemePalette.css +0 -179
- package/packages/core/src/public/components/ThemePalette/index.tsx +0 -326
- package/packages/core/src/public/components/panels/BackgroundPanel.tsx +0 -115
- package/packages/core/src/public/components/ui/switch.tsx +0 -27
- package/packages/core/src/public/hooks/useBackgroundTasks.ts +0 -131
- package/pennyfarthing-dist/commands/pf-permissions.md +0 -193
- package/pennyfarthing-dist/guides/permission-protocol.md +0 -188
- package/pennyfarthing-dist/pf/CLAUDE.md +0 -213
- package/pennyfarthing-dist/pf/__init__.py +0 -17
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.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 +0 -241
- package/pennyfarthing-dist/pf/bc/focus.py +0 -333
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.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-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-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 +0 -161
- package/pennyfarthing-dist/pf/bikerack/background_panel.py +0 -162
- package/pennyfarthing-dist/pf/bikerack/base_panel.py +0 -184
- package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +0 -138
- package/pennyfarthing-dist/pf/bikerack/debug_panel.py +0 -248
- package/pennyfarthing-dist/pf/bikerack/launcher.py +0 -240
- package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +0 -160
- package/pennyfarthing-dist/pf/bikerack/progress_panel.py +0 -314
- package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +0 -492
- package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +0 -247
- package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +0 -177
- package/pennyfarthing-dist/pf/bikerack/tui.py +0 -920
- package/pennyfarthing-dist/pf/bikerack/ws_client.py +0 -176
- 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/__pycache__/parser.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/cli.py +0 -197
- package/pennyfarthing-dist/pf/bmad/importer.py +0 -200
- package/pennyfarthing-dist/pf/bmad/parser.py +0 -239
- package/pennyfarthing-dist/pf/bmad/sync.py +0 -464
- package/pennyfarthing-dist/pf/bmad/test_parser.py +0 -253
- package/pennyfarthing-dist/pf/bmad/test_sync.py +0 -223
- package/pennyfarthing-dist/pf/brownfield/__main__.py +0 -8
- package/pennyfarthing-dist/pf/brownfield/cli.py +0 -130
- package/pennyfarthing-dist/pf/cli.py +0 -354
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__init__.py +0 -48
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.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/config.py +0 -119
- package/pennyfarthing-dist/pf/common/themes.py +0 -253
- package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/config.py +0 -21
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/context.py +0 -413
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/hooks_installer.py +0 -151
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.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__/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/gate_file.py +0 -105
- 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-314.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__init__.py +0 -442
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.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-314.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-314.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-314.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +0 -129
- package/pennyfarthing-dist/pf/hooks/session_start.py +0 -294
- package/pennyfarthing-dist/pf/hooks/statusline.py +0 -429
- package/pennyfarthing-dist/pf/hooks.py +0 -32
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__init__.py +0 -97
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/claim.py +0 -232
- package/pennyfarthing-dist/pf/jira/cli.py +0 -362
- package/pennyfarthing-dist/pf/jira/client.py +0 -802
- package/pennyfarthing-dist/pf/jira/reconcile.py +0 -276
- package/pennyfarthing-dist/pf/jira/story.py +0 -221
- package/pennyfarthing-dist/pf/jira/sync.py +0 -350
- package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +0 -37
- package/pennyfarthing-dist/pf/jira_epic_creation.py +0 -30
- package/pennyfarthing-dist/pf/jira_sync.py +0 -36
- package/pennyfarthing-dist/pf/jira_sync_story.py +0 -30
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__init__.py +0 -39
- package/pennyfarthing-dist/pf/migration/__main__.py +0 -10
- package/pennyfarthing-dist/pf/migration/cli.py +0 -304
- package/pennyfarthing-dist/pf/output.py +0 -37
- package/pennyfarthing-dist/pf/prime/__pycache__/__init__.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__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/cli.py +0 -662
- package/pennyfarthing-dist/pf/prime/loader.py +0 -308
- package/pennyfarthing-dist/pf/prime/persona.py +0 -311
- package/pennyfarthing-dist/pf/prime/workflow.py +0 -317
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -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/settings.py +0 -134
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.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-314.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/archive.py +0 -164
- package/pennyfarthing-dist/pf/sprint/cli.py +0 -2021
- package/pennyfarthing-dist/pf/sprint/loader.py +0 -441
- package/pennyfarthing-dist/pf/sprint/status.py +0 -121
- package/pennyfarthing-dist/pf/sprint/story_finish.py +0 -239
- package/pennyfarthing-dist/pf/sprint/story_update.py +0 -222
- package/pennyfarthing-dist/pf/sprint/yaml_io.py +0 -433
- 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_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/conftest.py +0 -105
- package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +0 -540
- package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +0 -339
- package/pennyfarthing-dist/pf/tests/test_cli_modules.py +0 -241
- package/pennyfarthing-dist/pf/tests/test_codemarkers.py +0 -687
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +0 -253
- package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +0 -316
- package/pennyfarthing-dist/pf/tests/test_jira_package.py +0 -331
- package/pennyfarthing-dist/pf/tests/test_package_structure.py +0 -359
- package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +0 -460
- package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +0 -610
- package/pennyfarthing-dist/pf/theme/__main__.py +0 -6
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/cli.py +0 -310
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/agent.py +0 -239
- package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +0 -491
- package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +0 -254
- package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +0 -323
- package/pennyfarthing-dist/pf/validate/adapters/workflow.py +0 -403
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.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-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/cli.py +0 -1101
- package/pennyfarthing-dist/scripts/core/pf.sh +0 -5
- package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
- package/pennyfarthing-dist/scripts/lib/run-pf.sh +0 -44
- package/pennyfarthing-dist/skills/pf-permissions/skill.md +0 -157
- package/pennyfarthing-dist/templates/persona-config.yaml.template +0 -22
- package/scripts/postinstall.cjs +0 -34
- /package/pennyfarthing-dist/{pf → src/pf}/README.md +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bc/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bc/split.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bellmode_hook.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/diffs_panel.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/events.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bikerack/git_panel.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/bmad/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/brownfield/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/brownfield/discover.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/common/output.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/common/pr_config.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/complexity/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/consultation/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/consultation/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/consultation/dialogue_manager.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/deadcode/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/dependencies/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/epic/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/epic/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/gate/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/gate/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/gate/validate.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git/create_branches.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git/repos.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git/status_all.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git/worktree.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git_group/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/git_group/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/complete_phase.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/gate_runner.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/marker.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/phase_check.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/handoff/resolve_gate.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/healthscore/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/bell_mode.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_breaker.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_warning.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/pre_edit_check.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/reflector_check.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/schema_validation.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/session_stop.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hooks/sprint_yaml_validation.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/analyze.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/formatters.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/hotspots/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/jira/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/jira/bidirectional.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/jira/create.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/jira/epic.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/jira/operations.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/launch/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/launch/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/migration/session.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/migration/skill.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/migration/step.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/migration/validate.py +0 -0
- /package/pennyfarthing-dist/{pf/session → src/pf/package}/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/patch_mode.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/preflight/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/preflight/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/preflight/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/preflight/finish.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/pretooluse_hook.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/heatmap.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/models.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/session.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/tiers.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/prime/version_sentinel.py +0 -0
- /package/pennyfarthing-dist/{pf/settings → src/pf/release}/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/schema_validation_hook.py +0 -0
- /package/pennyfarthing-dist/{pf/validate/adapters → src/pf/session}/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/session/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/session_start_hook.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/settings/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/archive_epic.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_add.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_update.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/import_epic.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/story_add.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/validate_cmd.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/validator.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/sprint/work.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/__main__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/create.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/size.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/story/template.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/swebench.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_archive_epic.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bc.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bikerack.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_brownfield.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_cli_normalization.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_common.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_dialogue_manager.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_epic_shard_validation.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_file_resolution.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_runner.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_git_utils.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_e2e.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_healthscore.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_patch_mode.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_prime.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_package.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_validator.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_add.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_package.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_update.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tiers.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_token_counting.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_topology_loader.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_focus.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_panel_persistence.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_validate_cmd.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_version_sentinel.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_check.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_list_team.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/tests/test_yaml_io.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/theme/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/validate/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/schema.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/sprint.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/validate/cli.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/welcome_hook.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/workflow/__init__.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/workflow/helpers.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/workflow/scale.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/workflow/state.py +0 -0
- /package/pennyfarthing-dist/{pf → src/pf}/workflow/team_lifecycle.py +0 -0
|
@@ -0,0 +1,1170 @@
|
|
|
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 Header, Static, Tab, Tabs
|
|
25
|
+
|
|
26
|
+
from pf.bc.focus import get_last_panel, save_last_panel
|
|
27
|
+
from pf.bikerack import layout_order as _layout_order
|
|
28
|
+
from pf.bikerack.audit_log_panel import AuditLogPanel
|
|
29
|
+
from pf.bikerack.base_panel import get_panel_icon
|
|
30
|
+
from pf.bikerack.context_meter_footer import StatusFooter
|
|
31
|
+
from pf.bikerack.debug_panel import DebugPanel
|
|
32
|
+
from pf.bikerack.diffs_panel import DiffsPanel
|
|
33
|
+
from pf.bikerack.git_panel import GitPanel
|
|
34
|
+
from pf.bikerack.progress_panel import ProgressPanel
|
|
35
|
+
from pf.bikerack.sprint_panel import SprintPanel
|
|
36
|
+
from pf.bikerack.ws_client import ConnectionState, WheelHubClient
|
|
37
|
+
|
|
38
|
+
STATE_DISPLAY: dict[ConnectionState, str] = {
|
|
39
|
+
ConnectionState.CONNECTED: "[green]● Connected[/green]",
|
|
40
|
+
ConnectionState.DISCONNECTED: "[red]● Disconnected[/red]",
|
|
41
|
+
ConnectionState.RECONNECTING: "[yellow]● Reconnecting…[/yellow]",
|
|
42
|
+
ConnectionState.CONNECTING: "[yellow]● Connecting…[/yellow]",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
# Agent role colors for Rich markup (mapped from React AGENT_COLORS)
|
|
46
|
+
AGENT_ROLE_COLORS: dict[str, str] = {
|
|
47
|
+
"pm": "purple",
|
|
48
|
+
"sm": "blue",
|
|
49
|
+
"dev": "green",
|
|
50
|
+
"tea": "cyan",
|
|
51
|
+
"reviewer": "red",
|
|
52
|
+
"architect": "dark_orange",
|
|
53
|
+
"devops": "bright_cyan",
|
|
54
|
+
"ux-designer": "magenta",
|
|
55
|
+
"tech-writer": "white",
|
|
56
|
+
"orchestrator": "bright_magenta",
|
|
57
|
+
"ba": "bright_green",
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
AGENT_ABBREV: dict[str, str] = {
|
|
61
|
+
"pm": "PM",
|
|
62
|
+
"sm": "SM",
|
|
63
|
+
"dev": "DEV",
|
|
64
|
+
"tea": "TEA",
|
|
65
|
+
"reviewer": "REV",
|
|
66
|
+
"architect": "ARC",
|
|
67
|
+
"devops": "OPS",
|
|
68
|
+
"ux-designer": "UX",
|
|
69
|
+
"tech-writer": "TW",
|
|
70
|
+
"orchestrator": "ORC",
|
|
71
|
+
"ba": "BA",
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
# Ordered panel registry: (key, display_name, widget_class)
|
|
75
|
+
# Only panels with implemented widget classes are included.
|
|
76
|
+
PANEL_REGISTRY: list[tuple[str, str]] = [
|
|
77
|
+
("sprint", "Sprint"),
|
|
78
|
+
("git", "Git"),
|
|
79
|
+
("diffs", "Diffs"),
|
|
80
|
+
("audit-log", "Audit Log"),
|
|
81
|
+
("debug", "Debug"),
|
|
82
|
+
("progress", "Progress"),
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
# Human-readable display names for panels (full set for external focus messages)
|
|
86
|
+
PANEL_DISPLAY_NAMES: dict[str, str] = {
|
|
87
|
+
"sprint": "Sprint",
|
|
88
|
+
"git": "Git",
|
|
89
|
+
"diffs": "Diffs",
|
|
90
|
+
"todo": "Todo",
|
|
91
|
+
"workflow": "Workflow",
|
|
92
|
+
"audit-log": "Audit Log",
|
|
93
|
+
"ac": "Acceptance Criteria",
|
|
94
|
+
"debug": "Debug",
|
|
95
|
+
"progress": "Progress",
|
|
96
|
+
"settings": "Settings",
|
|
97
|
+
"tty": "TTY",
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
# Keys from PANEL_REGISTRY for fast lookup
|
|
101
|
+
_PANEL_KEYS = [key for key, _ in PANEL_REGISTRY]
|
|
102
|
+
|
|
103
|
+
# Split-pane layout presets: name → (left_panel, right_panel)
|
|
104
|
+
# Story 110-4: Named presets for common side-by-side views.
|
|
105
|
+
SPLIT_PRESETS: dict[str, tuple[str, str]] = {
|
|
106
|
+
"sprint+diffs": ("sprint", "diffs"),
|
|
107
|
+
"git+diffs": ("git", "diffs"),
|
|
108
|
+
"progress+debug": ("progress", "debug"),
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def _build_panel_tabs() -> list[Tab]:
|
|
113
|
+
"""Build Tab widgets for each panel in the registry."""
|
|
114
|
+
tabs: list[Tab] = []
|
|
115
|
+
for panel_key, display_name in PANEL_REGISTRY:
|
|
116
|
+
icon = get_panel_icon(panel_key)
|
|
117
|
+
label = f"{icon} {display_name}" if icon else display_name
|
|
118
|
+
tabs.append(Tab(label, id=f"tab-{panel_key}"))
|
|
119
|
+
return tabs
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# Portrait size configuration: setting → (image_preference, width, height, row_height)
|
|
123
|
+
PORTRAIT_SIZE_CONFIG: dict[str, tuple[str, int, int, int]] = {
|
|
124
|
+
"large": ("large", 20, 10, 10),
|
|
125
|
+
"medium": ("medium", 10, 5, 5),
|
|
126
|
+
"small": ("small", 6, 3, 3),
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
PORTRAIT_SKELETON = """\
|
|
130
|
+
[dim]┌────────┐
|
|
131
|
+
│░░░░░░░░│
|
|
132
|
+
│░░░▓▓░░░│
|
|
133
|
+
│░░░░░░░░│
|
|
134
|
+
└────────┘[/dim]"""
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class AgentHeader(Static):
|
|
138
|
+
"""Displays current agent persona from WheelHub /ws/persona channel.
|
|
139
|
+
|
|
140
|
+
When a portrait image is available (resolved locally or provided via
|
|
141
|
+
portraitPath in persona data), mounts a Horizontal layout container.
|
|
142
|
+
Shows a skeleton placeholder while the image loads.
|
|
143
|
+
Falls back to text-only when no portrait is found.
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
class PortraitLayoutUpdate(Message):
|
|
147
|
+
"""Internal message to update portrait layout asynchronously."""
|
|
148
|
+
|
|
149
|
+
def __init__(self, portrait_path: Path | None) -> None:
|
|
150
|
+
super().__init__()
|
|
151
|
+
self.has_portrait = portrait_path is not None
|
|
152
|
+
self.portrait_path = portrait_path
|
|
153
|
+
|
|
154
|
+
def __init__(self, **kwargs: Any) -> None:
|
|
155
|
+
super().__init__(**kwargs)
|
|
156
|
+
self._is_streaming: bool = False
|
|
157
|
+
self._persona_data: dict[str, Any] = {}
|
|
158
|
+
self._header_text: str = ""
|
|
159
|
+
self._current_portrait: Path | None = None
|
|
160
|
+
|
|
161
|
+
# Read portrait_size setting from config
|
|
162
|
+
from pf.common.config import load_pennyfarthing_config
|
|
163
|
+
|
|
164
|
+
try:
|
|
165
|
+
config = load_pennyfarthing_config()
|
|
166
|
+
except Exception:
|
|
167
|
+
config = {}
|
|
168
|
+
self._portrait_size: str = config.get("portrait_size", "auto")
|
|
169
|
+
self._last_effective_size: str | None = None
|
|
170
|
+
|
|
171
|
+
def on_resize(self) -> None:
|
|
172
|
+
"""Re-evaluate portrait size on terminal resize (auto mode only)."""
|
|
173
|
+
if self._portrait_size != "auto":
|
|
174
|
+
return
|
|
175
|
+
effective = self._resolve_effective_size()
|
|
176
|
+
if effective != self._last_effective_size and self._persona_data:
|
|
177
|
+
self._current_portrait = None # force full layout rebuild
|
|
178
|
+
self._render_header()
|
|
179
|
+
|
|
180
|
+
def _apply_persona(self, data: dict[str, Any]) -> None:
|
|
181
|
+
"""Render persona data into the header."""
|
|
182
|
+
if data.get("type") == "streaming":
|
|
183
|
+
self._is_streaming = bool(data.get("isStreaming", False))
|
|
184
|
+
self._render_header()
|
|
185
|
+
return
|
|
186
|
+
|
|
187
|
+
self._persona_data = data
|
|
188
|
+
self._is_streaming = bool(data.get("isStreaming", False))
|
|
189
|
+
self._render_header()
|
|
190
|
+
|
|
191
|
+
def _resolve_effective_size(self) -> str:
|
|
192
|
+
"""Resolve the effective portrait size.
|
|
193
|
+
|
|
194
|
+
For ``auto``, maps terminal row count to a size bucket.
|
|
195
|
+
For explicit values, returns as-is.
|
|
196
|
+
Updates ``_last_effective_size`` so resize can detect changes.
|
|
197
|
+
"""
|
|
198
|
+
setting = self._portrait_size
|
|
199
|
+
if setting != "auto":
|
|
200
|
+
self._last_effective_size = setting
|
|
201
|
+
return setting
|
|
202
|
+
try:
|
|
203
|
+
rows = os.get_terminal_size().lines
|
|
204
|
+
except OSError:
|
|
205
|
+
effective = "medium"
|
|
206
|
+
else:
|
|
207
|
+
if rows >= 40:
|
|
208
|
+
effective = "large"
|
|
209
|
+
elif rows >= 25:
|
|
210
|
+
effective = "medium"
|
|
211
|
+
elif rows >= 15:
|
|
212
|
+
effective = "small"
|
|
213
|
+
else:
|
|
214
|
+
effective = "off"
|
|
215
|
+
self._last_effective_size = effective
|
|
216
|
+
return effective
|
|
217
|
+
|
|
218
|
+
def _resolve_portrait(self, data: dict[str, Any]) -> Path | None:
|
|
219
|
+
"""Get portrait path from persona data or resolve locally."""
|
|
220
|
+
effective = self._resolve_effective_size()
|
|
221
|
+
if effective == "off":
|
|
222
|
+
return None
|
|
223
|
+
portrait_path = data.get("portraitPath")
|
|
224
|
+
if portrait_path:
|
|
225
|
+
p = Path(portrait_path)
|
|
226
|
+
if p.exists():
|
|
227
|
+
return p
|
|
228
|
+
theme = data.get("theme", "")
|
|
229
|
+
role = data.get("role", "")
|
|
230
|
+
if theme and role:
|
|
231
|
+
from pf.bikerack import portrait_resolver
|
|
232
|
+
|
|
233
|
+
preferred = PORTRAIT_SIZE_CONFIG.get(effective, (effective,))[0]
|
|
234
|
+
return portrait_resolver.resolve_portrait_path(
|
|
235
|
+
theme, role, preferred_size=preferred
|
|
236
|
+
)
|
|
237
|
+
return None
|
|
238
|
+
|
|
239
|
+
def _render_header(self) -> None:
|
|
240
|
+
"""Re-render the header from stored state."""
|
|
241
|
+
data = self._persona_data
|
|
242
|
+
char = data.get("character", "")
|
|
243
|
+
role = data.get("role", "")
|
|
244
|
+
role_desc = data.get("roleDescription", "")
|
|
245
|
+
quote = data.get("quote", "")
|
|
246
|
+
theme = data.get("theme", "")
|
|
247
|
+
|
|
248
|
+
if not char:
|
|
249
|
+
self.update("[dim]Waiting for agent...[/dim]")
|
|
250
|
+
self.post_message(self.PortraitLayoutUpdate(portrait_path=None))
|
|
251
|
+
return
|
|
252
|
+
|
|
253
|
+
parts: list[str] = []
|
|
254
|
+
|
|
255
|
+
# Role badge — escape brackets so Rich doesn't eat them as tags
|
|
256
|
+
if role:
|
|
257
|
+
abbrev = AGENT_ABBREV.get(role, role.upper()[:3])
|
|
258
|
+
color = AGENT_ROLE_COLORS.get(role, "bright_magenta")
|
|
259
|
+
parts.append(f"[bold {color}]\\[{abbrev}][/bold {color}]")
|
|
260
|
+
|
|
261
|
+
# Character name
|
|
262
|
+
parts.append(f"[bold]{char}[/bold]")
|
|
263
|
+
|
|
264
|
+
# Theme name
|
|
265
|
+
if theme:
|
|
266
|
+
from pf.bikerack.base_panel import humanize_theme
|
|
267
|
+
|
|
268
|
+
parts.append(f"[dim]{humanize_theme(theme)}[/dim]")
|
|
269
|
+
|
|
270
|
+
# Streaming indicator
|
|
271
|
+
if self._is_streaming:
|
|
272
|
+
parts.append("[bold yellow]⚡[/bold yellow]")
|
|
273
|
+
|
|
274
|
+
line = " ".join(parts)
|
|
275
|
+
|
|
276
|
+
# Catchphrase subtitle
|
|
277
|
+
if quote:
|
|
278
|
+
line += f"\n[italic dim]\"{quote}\"[/italic dim]"
|
|
279
|
+
elif role_desc:
|
|
280
|
+
line += f"\n[dim]{role_desc}[/dim]"
|
|
281
|
+
|
|
282
|
+
self._header_text = line
|
|
283
|
+
|
|
284
|
+
# Always attempt portrait
|
|
285
|
+
portrait = self._resolve_portrait(data)
|
|
286
|
+
self.post_message(self.PortraitLayoutUpdate(portrait_path=portrait))
|
|
287
|
+
|
|
288
|
+
async def on_agent_header_portrait_layout_update(
|
|
289
|
+
self, event: PortraitLayoutUpdate
|
|
290
|
+
) -> None:
|
|
291
|
+
"""Mount or remove Horizontal portrait layout with text beside image.
|
|
292
|
+
|
|
293
|
+
Shows a skeleton placeholder immediately while the real image loads
|
|
294
|
+
to avoid a visible blank gap during image decode/render.
|
|
295
|
+
"""
|
|
296
|
+
if event.has_portrait and event.portrait_path:
|
|
297
|
+
if self._current_portrait == event.portrait_path:
|
|
298
|
+
# Same portrait — just update text label if it exists
|
|
299
|
+
try:
|
|
300
|
+
text_widget = self.query_one("#agent-text", Static)
|
|
301
|
+
text_widget.update(self._header_text)
|
|
302
|
+
except Exception:
|
|
303
|
+
pass
|
|
304
|
+
return
|
|
305
|
+
|
|
306
|
+
# New portrait or first time — full layout rebuild
|
|
307
|
+
for child in list(self.query("Horizontal")):
|
|
308
|
+
await child.remove()
|
|
309
|
+
|
|
310
|
+
# Mount skeleton + text immediately so there's no blank gap
|
|
311
|
+
self.update("")
|
|
312
|
+
self._current_portrait = event.portrait_path
|
|
313
|
+
skeleton = Static(PORTRAIT_SKELETON, id="portrait-skeleton")
|
|
314
|
+
text = Static(self._header_text, id="agent-text")
|
|
315
|
+
row = Horizontal(skeleton, text, id="portrait-row")
|
|
316
|
+
await self.mount(row)
|
|
317
|
+
|
|
318
|
+
# Now try to load the real image and swap it in
|
|
319
|
+
try:
|
|
320
|
+
from pf.bikerack.portrait_resolver import (
|
|
321
|
+
detect_image_protocol,
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
protocol = detect_image_protocol()
|
|
325
|
+
if protocol is None:
|
|
326
|
+
# No image protocol — remove skeleton, fall back to text-only
|
|
327
|
+
self._current_portrait = None
|
|
328
|
+
for child in list(self.query("Horizontal")):
|
|
329
|
+
await child.remove()
|
|
330
|
+
self.update(self._header_text)
|
|
331
|
+
return
|
|
332
|
+
|
|
333
|
+
if protocol == "kitty":
|
|
334
|
+
from textual_image.widget import TGPImage as ImageWidget
|
|
335
|
+
elif protocol == "sixel":
|
|
336
|
+
from textual_image.widget import SixelImage as ImageWidget
|
|
337
|
+
else:
|
|
338
|
+
from textual_image.widget import HalfcellImage as ImageWidget
|
|
339
|
+
|
|
340
|
+
img = ImageWidget(str(event.portrait_path), id="portrait-img")
|
|
341
|
+
try:
|
|
342
|
+
skel = self.query_one("#portrait-skeleton")
|
|
343
|
+
await skel.remove()
|
|
344
|
+
except Exception:
|
|
345
|
+
pass
|
|
346
|
+
await row.mount(img, before=0)
|
|
347
|
+
|
|
348
|
+
# Apply dynamic size from portrait_size config
|
|
349
|
+
effective = self._resolve_effective_size()
|
|
350
|
+
size_cfg = PORTRAIT_SIZE_CONFIG.get(effective)
|
|
351
|
+
if size_cfg:
|
|
352
|
+
_, w, h, rh = size_cfg
|
|
353
|
+
img.styles.width = w
|
|
354
|
+
img.styles.height = h
|
|
355
|
+
row.styles.height = rh
|
|
356
|
+
except (ImportError, Exception):
|
|
357
|
+
# Image mount failed — reset cache so next update retries
|
|
358
|
+
self._current_portrait = None
|
|
359
|
+
for child in list(self.query("Horizontal")):
|
|
360
|
+
await child.remove()
|
|
361
|
+
self.update(self._header_text)
|
|
362
|
+
else:
|
|
363
|
+
# No portrait — text-only
|
|
364
|
+
for child in list(self.query("Horizontal")):
|
|
365
|
+
await child.remove()
|
|
366
|
+
self._current_portrait = None
|
|
367
|
+
self.update(self._header_text)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
class ConnectionStatus(Static):
|
|
371
|
+
"""Displays WheelHub connection state with colored indicator."""
|
|
372
|
+
|
|
373
|
+
connection_state: reactive[ConnectionState] = reactive(
|
|
374
|
+
ConnectionState.DISCONNECTED
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
def watch_connection_state(self, state: ConnectionState) -> None:
|
|
378
|
+
"""Update display when connection state changes."""
|
|
379
|
+
self.update(STATE_DISPLAY.get(state, "● Unknown"))
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
class PanelCommands(Provider):
|
|
383
|
+
"""Command palette provider for panel switching."""
|
|
384
|
+
|
|
385
|
+
async def search(self, query: str) -> Hits:
|
|
386
|
+
matcher = self.matcher(query)
|
|
387
|
+
for panel_key, display_name in PANEL_REGISTRY:
|
|
388
|
+
icon = get_panel_icon(panel_key)
|
|
389
|
+
label = f"{icon} {display_name}" if icon else display_name
|
|
390
|
+
score = matcher.match(display_name)
|
|
391
|
+
if score > 0:
|
|
392
|
+
yield Hit(
|
|
393
|
+
score,
|
|
394
|
+
matcher.highlight(label),
|
|
395
|
+
partial(self.app.action_switch_panel, panel_key),
|
|
396
|
+
help=f"Switch to {display_name} panel",
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
class BikeRackApp(App):
|
|
401
|
+
"""BikeRack TUI application shell."""
|
|
402
|
+
|
|
403
|
+
class PersonaUpdate(Message, bubble=False):
|
|
404
|
+
"""Persona data from WS — routed through Textual message system."""
|
|
405
|
+
|
|
406
|
+
def __init__(self, data: dict[str, Any]) -> None:
|
|
407
|
+
super().__init__()
|
|
408
|
+
self.data = data
|
|
409
|
+
|
|
410
|
+
class FocusUpdate(Message, bubble=False):
|
|
411
|
+
"""Focus change from WS — routed through Textual message system."""
|
|
412
|
+
|
|
413
|
+
def __init__(self, focus: str | None, split_config: dict | None = None) -> None:
|
|
414
|
+
super().__init__()
|
|
415
|
+
self.focus = focus
|
|
416
|
+
self.split_config = split_config
|
|
417
|
+
|
|
418
|
+
class WsStateUpdate(Message, bubble=False):
|
|
419
|
+
"""WS connection state change — routed through Textual message system."""
|
|
420
|
+
|
|
421
|
+
def __init__(self, state: ConnectionState) -> None:
|
|
422
|
+
super().__init__()
|
|
423
|
+
self.state = state
|
|
424
|
+
|
|
425
|
+
TITLE = "BikeRack"
|
|
426
|
+
|
|
427
|
+
CSS = """
|
|
428
|
+
#agent-header {
|
|
429
|
+
height: auto;
|
|
430
|
+
max-height: 12;
|
|
431
|
+
padding: 0 1;
|
|
432
|
+
border-bottom: solid $accent;
|
|
433
|
+
}
|
|
434
|
+
#portrait-row {
|
|
435
|
+
height: 5;
|
|
436
|
+
width: 100%;
|
|
437
|
+
}
|
|
438
|
+
#portrait-img {
|
|
439
|
+
width: 10;
|
|
440
|
+
height: 5;
|
|
441
|
+
margin: 0 1 0 0;
|
|
442
|
+
}
|
|
443
|
+
#agent-text {
|
|
444
|
+
height: auto;
|
|
445
|
+
width: 1fr;
|
|
446
|
+
}
|
|
447
|
+
Tabs {
|
|
448
|
+
dock: top;
|
|
449
|
+
}
|
|
450
|
+
Tab.-active {
|
|
451
|
+
color: $text;
|
|
452
|
+
}
|
|
453
|
+
Tab {
|
|
454
|
+
color: $text-muted;
|
|
455
|
+
}
|
|
456
|
+
#connection-status {
|
|
457
|
+
height: 1;
|
|
458
|
+
}
|
|
459
|
+
StatusFooter {
|
|
460
|
+
height: 1;
|
|
461
|
+
dock: bottom;
|
|
462
|
+
}
|
|
463
|
+
#split-container {
|
|
464
|
+
display: none;
|
|
465
|
+
height: 1fr;
|
|
466
|
+
}
|
|
467
|
+
#split-left {
|
|
468
|
+
width: 1fr;
|
|
469
|
+
}
|
|
470
|
+
#split-right {
|
|
471
|
+
width: 1fr;
|
|
472
|
+
}
|
|
473
|
+
"""
|
|
474
|
+
|
|
475
|
+
COMMANDS = App.COMMANDS | {PanelCommands}
|
|
476
|
+
|
|
477
|
+
BINDINGS = [
|
|
478
|
+
Binding("q", "quit", "Quit", show=False),
|
|
479
|
+
Binding("shift+s", "toggle_split", "Split", show=False),
|
|
480
|
+
Binding("1", "switch_panel('sprint')", "Sprint", show=False),
|
|
481
|
+
Binding("2", "switch_panel('git')", "Git", show=False),
|
|
482
|
+
Binding("3", "switch_panel('diffs')", "Diffs", show=False),
|
|
483
|
+
Binding("4", "switch_panel('audit-log')", "Audit Log", show=False),
|
|
484
|
+
Binding("5", "switch_panel('debug')", "Debug", show=False),
|
|
485
|
+
Binding("6", "switch_panel('progress')", "Progress", show=False),
|
|
486
|
+
Binding("bracketright", "next_panel", "Next panel", show=False),
|
|
487
|
+
Binding("bracketleft", "prev_panel", "Prev panel", show=False),
|
|
488
|
+
Binding("tab", "next_panel", show=False, priority=True),
|
|
489
|
+
Binding("shift+tab", "prev_panel", show=False, priority=True),
|
|
490
|
+
Binding("n", "next_diff_file", "Next file", show=False),
|
|
491
|
+
Binding("p", "prev_diff_file", "Prev file", show=False),
|
|
492
|
+
Binding("j", "next_epic", show=False),
|
|
493
|
+
Binding("k", "prev_epic", show=False),
|
|
494
|
+
Binding("e", "toggle_epic", show=False),
|
|
495
|
+
Binding("c", "copy_selected_id", show=False),
|
|
496
|
+
# Story 121-2: Code quality tool triggers (debug panel)
|
|
497
|
+
Binding("h", "debug_hotspots", "Hotspots", show=False),
|
|
498
|
+
Binding("d", "debug_deadcode", "Dead Code", show=False),
|
|
499
|
+
Binding("s", "debug_healthscore", "Health Score", show=False),
|
|
500
|
+
Binding("escape", "debug_back", "Back", show=False),
|
|
501
|
+
]
|
|
502
|
+
|
|
503
|
+
def _get_dom_base(self):
|
|
504
|
+
"""Query the active screen so app.query() finds pushed screen widgets."""
|
|
505
|
+
return self.screen
|
|
506
|
+
|
|
507
|
+
def __init__(self, client=None, **kwargs):
|
|
508
|
+
super().__init__(**kwargs)
|
|
509
|
+
self._client = client
|
|
510
|
+
self._focused_panel: str = "sprint"
|
|
511
|
+
self._previous_panel: str | None = None
|
|
512
|
+
self._programmatic_tab_count: int = 0
|
|
513
|
+
self._status_footer: StatusFooter | None = None
|
|
514
|
+
# Split-pane state (Story 110-4)
|
|
515
|
+
self._split_mode: bool = False
|
|
516
|
+
self._active_split_pane: str = "left"
|
|
517
|
+
self._split_left_key: str = "sprint"
|
|
518
|
+
self._split_right_key: str = "diffs"
|
|
519
|
+
|
|
520
|
+
def _build_layout_regions(self) -> list[str]:
|
|
521
|
+
"""Return the ordered list of region names to render.
|
|
522
|
+
|
|
523
|
+
Reads layout_order from config.local.yaml via the layout_order module.
|
|
524
|
+
"""
|
|
525
|
+
from pf.common.config import load_pennyfarthing_config
|
|
526
|
+
|
|
527
|
+
try:
|
|
528
|
+
config = load_pennyfarthing_config()
|
|
529
|
+
except Exception:
|
|
530
|
+
config = {}
|
|
531
|
+
return _layout_order.get_layout_order(config)
|
|
532
|
+
|
|
533
|
+
def compose(self) -> ComposeResult:
|
|
534
|
+
project_dir_name = Path(
|
|
535
|
+
os.environ.get("CYCLIST_PROJECT_DIR", os.getcwd())
|
|
536
|
+
).name
|
|
537
|
+
self._status_footer = StatusFooter(
|
|
538
|
+
project_dir=project_dir_name,
|
|
539
|
+
client=self._client,
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
for region in self._build_layout_regions():
|
|
543
|
+
if region == "menu":
|
|
544
|
+
yield Header()
|
|
545
|
+
elif region == "profile":
|
|
546
|
+
yield AgentHeader(id="agent-header")
|
|
547
|
+
yield Tabs(*_build_panel_tabs(), id="tab-bar")
|
|
548
|
+
yield ConnectionStatus(
|
|
549
|
+
STATE_DISPLAY[ConnectionState.DISCONNECTED],
|
|
550
|
+
id="connection-status",
|
|
551
|
+
)
|
|
552
|
+
elif region == "content":
|
|
553
|
+
with VerticalScroll(id="main-content"):
|
|
554
|
+
yield SprintPanel(client=self._client, id="panel-sprint")
|
|
555
|
+
yield GitPanel(client=self._client, id="panel-git")
|
|
556
|
+
yield DiffsPanel(client=self._client, id="panel-diffs")
|
|
557
|
+
yield AuditLogPanel(client=self._client, id="panel-audit-log")
|
|
558
|
+
yield DebugPanel(client=self._client, id="panel-debug")
|
|
559
|
+
yield ProgressPanel(client=self._client, id="panel-progress")
|
|
560
|
+
with Horizontal(id="split-container"):
|
|
561
|
+
yield VerticalScroll(id="split-left")
|
|
562
|
+
yield VerticalScroll(id="split-right")
|
|
563
|
+
elif region == "status":
|
|
564
|
+
yield self._status_footer
|
|
565
|
+
|
|
566
|
+
async def on_mount(self) -> None:
|
|
567
|
+
# Restore last panel or default to sprint
|
|
568
|
+
result = get_last_panel()
|
|
569
|
+
initial = "sprint"
|
|
570
|
+
if result.get("success") and result.get("last_panel"):
|
|
571
|
+
last = result["last_panel"]
|
|
572
|
+
if last in _PANEL_KEYS:
|
|
573
|
+
initial = last
|
|
574
|
+
|
|
575
|
+
self._focused_panel = initial
|
|
576
|
+
|
|
577
|
+
# Hide all panels except the active one
|
|
578
|
+
for panel_key in _PANEL_KEYS:
|
|
579
|
+
widget_id = f"panel-{panel_key}"
|
|
580
|
+
try:
|
|
581
|
+
widget = self.query_one(f"#{widget_id}")
|
|
582
|
+
widget.display = (panel_key == initial)
|
|
583
|
+
except Exception:
|
|
584
|
+
pass
|
|
585
|
+
|
|
586
|
+
# Set tab bar active state and focus initial panel
|
|
587
|
+
self._update_tab_bar(initial)
|
|
588
|
+
try:
|
|
589
|
+
initial_widget = self.query_one(f"#panel-{initial}")
|
|
590
|
+
initial_widget.focus()
|
|
591
|
+
except Exception:
|
|
592
|
+
pass
|
|
593
|
+
|
|
594
|
+
if self._client is not None:
|
|
595
|
+
self._client.on_state_change(self._on_ws_state_change)
|
|
596
|
+
self._client.subscribe("focus", self._handle_focus_message)
|
|
597
|
+
self._client.subscribe("persona", self._handle_persona_message)
|
|
598
|
+
self.run_worker(self._client.connect(), exclusive=True, name="ws-client")
|
|
599
|
+
|
|
600
|
+
def action_switch_panel(self, key: str) -> None:
|
|
601
|
+
"""Switch to a panel by key."""
|
|
602
|
+
if key not in _PANEL_KEYS:
|
|
603
|
+
return
|
|
604
|
+
if key == self._focused_panel:
|
|
605
|
+
return
|
|
606
|
+
|
|
607
|
+
# Hide current panel
|
|
608
|
+
try:
|
|
609
|
+
current = self.query_one(f"#panel-{self._focused_panel}")
|
|
610
|
+
current.display = False
|
|
611
|
+
except Exception:
|
|
612
|
+
pass
|
|
613
|
+
|
|
614
|
+
# Show target panel and focus it
|
|
615
|
+
try:
|
|
616
|
+
target = self.query_one(f"#panel-{key}")
|
|
617
|
+
target.display = True
|
|
618
|
+
target.focus()
|
|
619
|
+
except Exception:
|
|
620
|
+
pass
|
|
621
|
+
|
|
622
|
+
self._previous_panel = self._focused_panel
|
|
623
|
+
self._focused_panel = key
|
|
624
|
+
save_last_panel(key, project_dir=None)
|
|
625
|
+
self._update_tab_bar(key)
|
|
626
|
+
|
|
627
|
+
# Refresh status footer on panel switch
|
|
628
|
+
if self._status_footer is not None:
|
|
629
|
+
self._status_footer.request_refresh()
|
|
630
|
+
|
|
631
|
+
def action_next_panel(self) -> None:
|
|
632
|
+
"""Cycle to the next panel, or toggle pane focus in split mode."""
|
|
633
|
+
if self._split_mode:
|
|
634
|
+
# In split mode, Tab toggles between left and right pane
|
|
635
|
+
if self._active_split_pane == "left":
|
|
636
|
+
self._active_split_pane = "right"
|
|
637
|
+
try:
|
|
638
|
+
self.query_one("#split-right").focus()
|
|
639
|
+
except Exception:
|
|
640
|
+
pass
|
|
641
|
+
else:
|
|
642
|
+
self._active_split_pane = "left"
|
|
643
|
+
try:
|
|
644
|
+
self.query_one("#split-left").focus()
|
|
645
|
+
except Exception:
|
|
646
|
+
pass
|
|
647
|
+
return
|
|
648
|
+
try:
|
|
649
|
+
idx = _PANEL_KEYS.index(self._focused_panel)
|
|
650
|
+
except ValueError:
|
|
651
|
+
idx = 0
|
|
652
|
+
next_idx = (idx + 1) % len(_PANEL_KEYS)
|
|
653
|
+
self.action_switch_panel(_PANEL_KEYS[next_idx])
|
|
654
|
+
|
|
655
|
+
def action_prev_panel(self) -> None:
|
|
656
|
+
"""Cycle to the previous panel."""
|
|
657
|
+
try:
|
|
658
|
+
idx = _PANEL_KEYS.index(self._focused_panel)
|
|
659
|
+
except ValueError:
|
|
660
|
+
idx = 0
|
|
661
|
+
prev_idx = (idx - 1) % len(_PANEL_KEYS)
|
|
662
|
+
self.action_switch_panel(_PANEL_KEYS[prev_idx])
|
|
663
|
+
|
|
664
|
+
def action_next_diff_file(self) -> None:
|
|
665
|
+
"""Advance to next file in diffs panel."""
|
|
666
|
+
if self._focused_panel == "diffs":
|
|
667
|
+
try:
|
|
668
|
+
panel = self.query_one("#panel-diffs", DiffsPanel)
|
|
669
|
+
panel.next_file()
|
|
670
|
+
except Exception:
|
|
671
|
+
pass
|
|
672
|
+
|
|
673
|
+
def action_prev_diff_file(self) -> None:
|
|
674
|
+
"""Go to previous file in diffs panel."""
|
|
675
|
+
if self._focused_panel == "diffs":
|
|
676
|
+
try:
|
|
677
|
+
panel = self.query_one("#panel-diffs", DiffsPanel)
|
|
678
|
+
panel.prev_file()
|
|
679
|
+
except Exception:
|
|
680
|
+
pass
|
|
681
|
+
|
|
682
|
+
def action_next_epic(self) -> None:
|
|
683
|
+
"""Move to next epic in sprint panel."""
|
|
684
|
+
if self._focused_panel == "sprint":
|
|
685
|
+
try:
|
|
686
|
+
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
687
|
+
panel.next_epic()
|
|
688
|
+
except Exception:
|
|
689
|
+
pass
|
|
690
|
+
|
|
691
|
+
def action_prev_epic(self) -> None:
|
|
692
|
+
"""Move to previous epic in sprint panel."""
|
|
693
|
+
if self._focused_panel == "sprint":
|
|
694
|
+
try:
|
|
695
|
+
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
696
|
+
panel.prev_epic()
|
|
697
|
+
except Exception:
|
|
698
|
+
pass
|
|
699
|
+
|
|
700
|
+
def action_toggle_epic(self) -> None:
|
|
701
|
+
"""Toggle expand/collapse on selected epic in sprint panel."""
|
|
702
|
+
if self._focused_panel == "sprint":
|
|
703
|
+
try:
|
|
704
|
+
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
705
|
+
panel.toggle_epic()
|
|
706
|
+
except Exception:
|
|
707
|
+
pass
|
|
708
|
+
|
|
709
|
+
def action_copy_selected_id(self) -> None:
|
|
710
|
+
"""Copy Jira key of selected story/epic to clipboard."""
|
|
711
|
+
if self._focused_panel == "sprint":
|
|
712
|
+
try:
|
|
713
|
+
panel = self.query_one("#panel-sprint", SprintPanel)
|
|
714
|
+
panel.copy_selected_id()
|
|
715
|
+
except Exception:
|
|
716
|
+
pass
|
|
717
|
+
|
|
718
|
+
# ------------------------------------------------------------------
|
|
719
|
+
# Story 121-2: Code quality tool triggers (debug panel)
|
|
720
|
+
# ------------------------------------------------------------------
|
|
721
|
+
|
|
722
|
+
def action_debug_hotspots(self) -> None:
|
|
723
|
+
"""Trigger hotspots analysis from debug panel."""
|
|
724
|
+
if self._focused_panel != "debug":
|
|
725
|
+
return
|
|
726
|
+
try:
|
|
727
|
+
debug_panel = self.query_one("#panel-debug", DebugPanel)
|
|
728
|
+
self.run_worker(debug_panel.run_hotspots_analysis(), exclusive=True)
|
|
729
|
+
except Exception:
|
|
730
|
+
pass
|
|
731
|
+
|
|
732
|
+
def action_debug_deadcode(self) -> None:
|
|
733
|
+
"""Trigger dead code analysis from debug panel."""
|
|
734
|
+
if self._focused_panel != "debug":
|
|
735
|
+
return
|
|
736
|
+
try:
|
|
737
|
+
debug_panel = self.query_one("#panel-debug", DebugPanel)
|
|
738
|
+
self.run_worker(debug_panel.run_dead_code_analysis(), exclusive=True)
|
|
739
|
+
except Exception:
|
|
740
|
+
pass
|
|
741
|
+
|
|
742
|
+
def action_debug_healthscore(self) -> None:
|
|
743
|
+
"""Trigger health score analysis from debug panel."""
|
|
744
|
+
if self._focused_panel != "debug":
|
|
745
|
+
return
|
|
746
|
+
try:
|
|
747
|
+
debug_panel = self.query_one("#panel-debug", DebugPanel)
|
|
748
|
+
self.run_worker(debug_panel.run_health_score_analysis(), exclusive=True)
|
|
749
|
+
except Exception:
|
|
750
|
+
pass
|
|
751
|
+
|
|
752
|
+
def action_debug_back(self) -> None:
|
|
753
|
+
"""Return to normal debug view from tool results."""
|
|
754
|
+
if self._focused_panel != "debug":
|
|
755
|
+
return
|
|
756
|
+
try:
|
|
757
|
+
debug_panel = self.query_one("#panel-debug", DebugPanel)
|
|
758
|
+
debug_panel.show_normal_view()
|
|
759
|
+
except Exception:
|
|
760
|
+
pass
|
|
761
|
+
|
|
762
|
+
# ------------------------------------------------------------------
|
|
763
|
+
# Split-pane layout (Story 110-4)
|
|
764
|
+
# ------------------------------------------------------------------
|
|
765
|
+
|
|
766
|
+
def _sync_reparent(self, widget: Any, new_parent: Any) -> None:
|
|
767
|
+
"""Move widget from current parent to new parent synchronously.
|
|
768
|
+
|
|
769
|
+
Uses internal Textual DOM API so the move is visible immediately
|
|
770
|
+
without awaiting an async mount/remove cycle.
|
|
771
|
+
"""
|
|
772
|
+
old_parent = widget._parent
|
|
773
|
+
if old_parent is not None:
|
|
774
|
+
try:
|
|
775
|
+
old_parent._nodes._remove(widget)
|
|
776
|
+
except (ValueError, AttributeError):
|
|
777
|
+
# Fallback: remove from internal list directly
|
|
778
|
+
try:
|
|
779
|
+
old_parent._nodes._nodes.remove(widget)
|
|
780
|
+
except Exception:
|
|
781
|
+
pass
|
|
782
|
+
try:
|
|
783
|
+
new_parent._nodes._append(widget)
|
|
784
|
+
except AttributeError:
|
|
785
|
+
new_parent._nodes._nodes.append(widget)
|
|
786
|
+
widget._parent = new_parent
|
|
787
|
+
|
|
788
|
+
def _enter_split(self, left_key: str, right_key: str) -> None:
|
|
789
|
+
"""Activate split mode with specified panels (synchronous)."""
|
|
790
|
+
if left_key not in _PANEL_KEYS or right_key not in _PANEL_KEYS:
|
|
791
|
+
return
|
|
792
|
+
if left_key == right_key:
|
|
793
|
+
return
|
|
794
|
+
|
|
795
|
+
self._split_mode = True
|
|
796
|
+
self._split_left_key = left_key
|
|
797
|
+
self._split_right_key = right_key
|
|
798
|
+
self._active_split_pane = "left"
|
|
799
|
+
|
|
800
|
+
try:
|
|
801
|
+
main_content = self.query_one("#main-content")
|
|
802
|
+
split_container = self.query_one("#split-container")
|
|
803
|
+
split_left = self.query_one("#split-left")
|
|
804
|
+
split_right = self.query_one("#split-right")
|
|
805
|
+
except Exception:
|
|
806
|
+
return
|
|
807
|
+
|
|
808
|
+
# Move left panel to split-left pane
|
|
809
|
+
try:
|
|
810
|
+
left_panel = self.query_one(f"#panel-{left_key}")
|
|
811
|
+
left_panel.display = True
|
|
812
|
+
self._sync_reparent(left_panel, split_left)
|
|
813
|
+
except Exception:
|
|
814
|
+
pass
|
|
815
|
+
|
|
816
|
+
# Move right panel to split-right pane
|
|
817
|
+
try:
|
|
818
|
+
right_panel = self.query_one(f"#panel-{right_key}")
|
|
819
|
+
right_panel.display = True
|
|
820
|
+
self._sync_reparent(right_panel, split_right)
|
|
821
|
+
except Exception:
|
|
822
|
+
pass
|
|
823
|
+
|
|
824
|
+
# Hide all other panels remaining in main-content
|
|
825
|
+
for panel_key in _PANEL_KEYS:
|
|
826
|
+
if panel_key not in (left_key, right_key):
|
|
827
|
+
try:
|
|
828
|
+
p = self.query_one(f"#panel-{panel_key}")
|
|
829
|
+
p.display = False
|
|
830
|
+
except Exception:
|
|
831
|
+
pass
|
|
832
|
+
|
|
833
|
+
main_content.display = False
|
|
834
|
+
split_container.display = True
|
|
835
|
+
|
|
836
|
+
def _exit_split(self) -> None:
|
|
837
|
+
"""Deactivate split mode, return panels to main-content."""
|
|
838
|
+
self._split_mode = False
|
|
839
|
+
|
|
840
|
+
try:
|
|
841
|
+
main_content = self.query_one("#main-content")
|
|
842
|
+
split_container = self.query_one("#split-container")
|
|
843
|
+
split_left = self.query_one("#split-left")
|
|
844
|
+
split_right = self.query_one("#split-right")
|
|
845
|
+
except Exception:
|
|
846
|
+
return
|
|
847
|
+
|
|
848
|
+
# Move panels back from split panes to main-content
|
|
849
|
+
for pane in (split_left, split_right):
|
|
850
|
+
for child in list(pane.children):
|
|
851
|
+
self._sync_reparent(child, main_content)
|
|
852
|
+
|
|
853
|
+
split_container.display = False
|
|
854
|
+
main_content.display = True
|
|
855
|
+
|
|
856
|
+
# Restore single-panel visibility
|
|
857
|
+
for panel_key in _PANEL_KEYS:
|
|
858
|
+
try:
|
|
859
|
+
p = self.query_one(f"#panel-{panel_key}")
|
|
860
|
+
p.display = (panel_key == self._focused_panel)
|
|
861
|
+
except Exception:
|
|
862
|
+
pass
|
|
863
|
+
|
|
864
|
+
def action_toggle_split(self) -> None:
|
|
865
|
+
"""Toggle split mode on/off (Shift+S keybinding)."""
|
|
866
|
+
if self._split_mode:
|
|
867
|
+
self._exit_split()
|
|
868
|
+
else:
|
|
869
|
+
# Default: current panel left, next panel right
|
|
870
|
+
left_key = self._focused_panel
|
|
871
|
+
try:
|
|
872
|
+
idx = _PANEL_KEYS.index(left_key)
|
|
873
|
+
except ValueError:
|
|
874
|
+
idx = 0
|
|
875
|
+
right_key = _PANEL_KEYS[(idx + 1) % len(_PANEL_KEYS)]
|
|
876
|
+
self._enter_split(left_key, right_key)
|
|
877
|
+
|
|
878
|
+
def action_apply_split_preset(self, name: str) -> None:
|
|
879
|
+
"""Apply a named split preset (synchronous)."""
|
|
880
|
+
if name not in SPLIT_PRESETS:
|
|
881
|
+
return
|
|
882
|
+
left_key, right_key = SPLIT_PRESETS[name]
|
|
883
|
+
if self._split_mode:
|
|
884
|
+
self._exit_split()
|
|
885
|
+
self._enter_split(left_key, right_key)
|
|
886
|
+
|
|
887
|
+
def _update_tab_bar(self, panel_key: str) -> None:
|
|
888
|
+
"""Update the tab bar widget with the given panel key.
|
|
889
|
+
|
|
890
|
+
Increments _programmatic_tab_count so the async TabActivated
|
|
891
|
+
handler knows to ignore the event (prevents infinite ping-pong).
|
|
892
|
+
"""
|
|
893
|
+
try:
|
|
894
|
+
tab_bar = self.query_one("#tab-bar", Tabs)
|
|
895
|
+
tab_id = f"tab-{panel_key}"
|
|
896
|
+
if tab_bar.active != tab_id:
|
|
897
|
+
self._programmatic_tab_count += 1
|
|
898
|
+
tab_bar.active = tab_id
|
|
899
|
+
except Exception:
|
|
900
|
+
pass
|
|
901
|
+
|
|
902
|
+
def on_tabs_tab_activated(self, event: Tabs.TabActivated) -> None:
|
|
903
|
+
"""Handle tab activation from the Tabs widget.
|
|
904
|
+
|
|
905
|
+
Programmatic tabs.active changes fire TabActivated asynchronously.
|
|
906
|
+
We use a counter to skip those and only react to genuine user clicks.
|
|
907
|
+
"""
|
|
908
|
+
if self._programmatic_tab_count > 0:
|
|
909
|
+
self._programmatic_tab_count -= 1
|
|
910
|
+
return
|
|
911
|
+
tab_id = event.tab.id or ""
|
|
912
|
+
panel_key = tab_id.removeprefix("tab-")
|
|
913
|
+
if panel_key in _PANEL_KEYS and panel_key != self._focused_panel:
|
|
914
|
+
self.action_switch_panel(panel_key)
|
|
915
|
+
|
|
916
|
+
def _handle_focus_message(self, message: dict[str, Any] | None) -> None:
|
|
917
|
+
"""Handle incoming focus channel messages.
|
|
918
|
+
|
|
919
|
+
Expected format:
|
|
920
|
+
Single panel: {type: 'update', focus: '<panel>'}
|
|
921
|
+
Split layout: {type: 'update', focus: 'split', split: {left: ..., right: ...}}
|
|
922
|
+
Split preset: {type: 'update', focus: 'split:<preset-name>'}
|
|
923
|
+
Only 'update' messages trigger panel switches (matching React hook).
|
|
924
|
+
Routes through Textual message system via post_message for proper repaint.
|
|
925
|
+
"""
|
|
926
|
+
if message is None or not isinstance(message, dict):
|
|
927
|
+
return
|
|
928
|
+
if message.get("type") != "update":
|
|
929
|
+
return
|
|
930
|
+
if "focus" not in message:
|
|
931
|
+
return
|
|
932
|
+
split_config = message.get("split")
|
|
933
|
+
self.post_message(self.FocusUpdate(message["focus"], split_config=split_config))
|
|
934
|
+
|
|
935
|
+
def _handle_persona_message(self, message: dict[str, Any] | None) -> None:
|
|
936
|
+
"""Handle incoming persona channel messages.
|
|
937
|
+
|
|
938
|
+
Routes through Textual message system via post_message for proper repaint.
|
|
939
|
+
"""
|
|
940
|
+
if message is None or not isinstance(message, dict):
|
|
941
|
+
return
|
|
942
|
+
self.post_message(self.PersonaUpdate(message))
|
|
943
|
+
|
|
944
|
+
def _on_ws_state_change(self, state: ConnectionState) -> None:
|
|
945
|
+
"""Handle WheelHub connection state changes.
|
|
946
|
+
|
|
947
|
+
Routes through Textual message system via post_message for proper repaint.
|
|
948
|
+
"""
|
|
949
|
+
self.post_message(self.WsStateUpdate(state))
|
|
950
|
+
|
|
951
|
+
def on_bike_rack_app_persona_update(self, event: PersonaUpdate) -> None:
|
|
952
|
+
"""Apply persona data in Textual message context."""
|
|
953
|
+
try:
|
|
954
|
+
header = self.query_one("#agent-header", AgentHeader)
|
|
955
|
+
header._apply_persona(event.data)
|
|
956
|
+
except Exception:
|
|
957
|
+
pass
|
|
958
|
+
|
|
959
|
+
def on_bike_rack_app_focus_update(self, event: FocusUpdate) -> None:
|
|
960
|
+
"""Apply focus change in Textual message context."""
|
|
961
|
+
focus = event.focus
|
|
962
|
+
split_config = event.split_config
|
|
963
|
+
|
|
964
|
+
if focus == "split" and split_config:
|
|
965
|
+
# Explicit split layout: {focus: "split", split: {left: ..., right: ...}}
|
|
966
|
+
left = split_config.get("left", "sprint")
|
|
967
|
+
right = split_config.get("right", "diffs")
|
|
968
|
+
if self._split_mode:
|
|
969
|
+
self._exit_split()
|
|
970
|
+
self._enter_split(left, right)
|
|
971
|
+
elif focus is not None and focus.startswith("split:"):
|
|
972
|
+
# Preset reference: {focus: "split:progress+debug"}
|
|
973
|
+
preset_name = focus[len("split:"):]
|
|
974
|
+
self.action_apply_split_preset(preset_name)
|
|
975
|
+
elif focus is not None and focus in _PANEL_KEYS:
|
|
976
|
+
# Single panel focus — exit split if active
|
|
977
|
+
if self._split_mode:
|
|
978
|
+
self._exit_split()
|
|
979
|
+
self.action_switch_panel(focus)
|
|
980
|
+
elif focus is not None:
|
|
981
|
+
self._previous_panel = self._focused_panel
|
|
982
|
+
self._focused_panel = focus
|
|
983
|
+
save_last_panel(focus, project_dir=None)
|
|
984
|
+
|
|
985
|
+
def on_bike_rack_app_ws_state_update(self, event: WsStateUpdate) -> None:
|
|
986
|
+
"""Apply connection state in Textual message context."""
|
|
987
|
+
try:
|
|
988
|
+
widget = self.query_one("#connection-status", ConnectionStatus)
|
|
989
|
+
widget.connection_state = event.state
|
|
990
|
+
except Exception:
|
|
991
|
+
pass
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
DEFAULT_PORT = 2898
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
def get_watch_paths() -> list[Path]:
|
|
998
|
+
"""Return directories to watch for Python file changes in dev mode."""
|
|
999
|
+
base = Path(__file__).resolve().parent.parent # pf/
|
|
1000
|
+
return [
|
|
1001
|
+
base / "bikerack",
|
|
1002
|
+
base / "bc",
|
|
1003
|
+
]
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
def watch_filter(change: str, path: str) -> bool:
|
|
1007
|
+
"""Filter file change events — only accept .py files, ignore caches."""
|
|
1008
|
+
if "__pycache__" in path:
|
|
1009
|
+
return False
|
|
1010
|
+
if path.endswith(".pyc"):
|
|
1011
|
+
return False
|
|
1012
|
+
if not path.endswith(".py"):
|
|
1013
|
+
return False
|
|
1014
|
+
return True
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
def _run_with_reload(app: BikeRackApp, watch_paths: list[Path], filter_func) -> None:
|
|
1018
|
+
"""Run the app with file watching and auto-reload via watchfiles."""
|
|
1019
|
+
import sys
|
|
1020
|
+
|
|
1021
|
+
from watchfiles import run_process
|
|
1022
|
+
|
|
1023
|
+
# Build the command that launches the TUI normally
|
|
1024
|
+
cmd = [sys.executable, "-m", "pf.bikerack.tui"]
|
|
1025
|
+
if hasattr(app, "_client") and app._client is not None:
|
|
1026
|
+
cmd.extend(["--port", str(app._client._port)])
|
|
1027
|
+
|
|
1028
|
+
run_process(
|
|
1029
|
+
*watch_paths,
|
|
1030
|
+
target=" ".join(cmd),
|
|
1031
|
+
target_type="command",
|
|
1032
|
+
callback=lambda changes: None,
|
|
1033
|
+
watch_filter=filter_func,
|
|
1034
|
+
)
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
def _patch_tgp_for_tmux() -> None:
|
|
1038
|
+
"""Monkey-patch textual-image for tmux compatibility.
|
|
1039
|
+
|
|
1040
|
+
Two patches:
|
|
1041
|
+
1. Wrap Kitty APC escapes in tmux DCS passthrough sequences.
|
|
1042
|
+
2. Force image re-upload on every render cycle. tmux pane redraws
|
|
1043
|
+
re-send the Unicode diacritics but the image data reference gets
|
|
1044
|
+
orphaned — resetting terminal_image_id forces a fresh upload each
|
|
1045
|
+
time Textual repaints the widget.
|
|
1046
|
+
"""
|
|
1047
|
+
try:
|
|
1048
|
+
import textual_image.renderable.tgp as tgp
|
|
1049
|
+
except ImportError:
|
|
1050
|
+
return
|
|
1051
|
+
|
|
1052
|
+
# Patch 1: DCS passthrough wrapper
|
|
1053
|
+
def _tmux_send(*, payload: str | None = None, **kwargs: int | str | None) -> None:
|
|
1054
|
+
import sys
|
|
1055
|
+
|
|
1056
|
+
if not sys.__stdout__:
|
|
1057
|
+
return
|
|
1058
|
+
|
|
1059
|
+
inner = [
|
|
1060
|
+
tgp._TGP_MESSAGE_START,
|
|
1061
|
+
",".join(f"{k}={v}" for k, v in kwargs.items() if v is not None),
|
|
1062
|
+
f";{payload}" if payload else "",
|
|
1063
|
+
tgp._TGP_MESSAGE_END,
|
|
1064
|
+
]
|
|
1065
|
+
sequence = "".join(inner)
|
|
1066
|
+
|
|
1067
|
+
# Wrap in tmux DCS passthrough: double any ESC inside the payload
|
|
1068
|
+
wrapped = "\x1bPtmux;" + sequence.replace("\x1b", "\x1b\x1b") + "\x1b\\"
|
|
1069
|
+
sys.__stdout__.write(wrapped)
|
|
1070
|
+
sys.__stdout__.flush()
|
|
1071
|
+
|
|
1072
|
+
tgp._send_tgp_message = _tmux_send
|
|
1073
|
+
|
|
1074
|
+
# Patch 2: Force re-upload every render (image data gets lost on tmux redraws)
|
|
1075
|
+
_original_rich_console = tgp.Image.__rich_console__
|
|
1076
|
+
|
|
1077
|
+
def _reupload_rich_console(self, console, options):
|
|
1078
|
+
self.terminal_image_id = None
|
|
1079
|
+
yield from _original_rich_console(self, console, options)
|
|
1080
|
+
|
|
1081
|
+
tgp.Image.__rich_console__ = _reupload_rich_console
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
def main(
|
|
1085
|
+
port: int | None = None,
|
|
1086
|
+
project_dir: Path | None = None,
|
|
1087
|
+
) -> None:
|
|
1088
|
+
"""Launch BikeRack TUI as a standalone application.
|
|
1089
|
+
|
|
1090
|
+
Args:
|
|
1091
|
+
port: Explicit WheelHub port. If None, reads from .bikerack-port file.
|
|
1092
|
+
project_dir: Project directory for port file discovery. Defaults to cwd.
|
|
1093
|
+
"""
|
|
1094
|
+
# Detect terminal image protocol BEFORE App.run() claims the terminal
|
|
1095
|
+
from pf.bikerack import portrait_resolver
|
|
1096
|
+
|
|
1097
|
+
portrait_resolver.detect_image_protocol()
|
|
1098
|
+
|
|
1099
|
+
# Patch textual-image to wrap Kitty graphics escapes in tmux passthrough.
|
|
1100
|
+
# tmux doesn't natively forward Kitty's APC graphics escapes — they must
|
|
1101
|
+
# be wrapped in DCS passthrough sequences (\x1bPtmux;...\x1b\\).
|
|
1102
|
+
# See: https://github.com/tmux/tmux/wiki/FAQ
|
|
1103
|
+
if os.environ.get("TMUX") and portrait_resolver.detect_image_protocol() == "kitty":
|
|
1104
|
+
_patch_tgp_for_tmux()
|
|
1105
|
+
|
|
1106
|
+
if port is None:
|
|
1107
|
+
if project_dir is not None:
|
|
1108
|
+
port_file = project_dir / ".bikerack-port"
|
|
1109
|
+
if port_file.exists():
|
|
1110
|
+
try:
|
|
1111
|
+
port = int(port_file.read_text().strip())
|
|
1112
|
+
except (ValueError, OSError):
|
|
1113
|
+
port = DEFAULT_PORT
|
|
1114
|
+
else:
|
|
1115
|
+
port = DEFAULT_PORT
|
|
1116
|
+
else:
|
|
1117
|
+
port = DEFAULT_PORT
|
|
1118
|
+
|
|
1119
|
+
client = WheelHubClient(port=port)
|
|
1120
|
+
app = BikeRackApp(client=client)
|
|
1121
|
+
app.run()
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
def dev_main(
|
|
1125
|
+
port: int | None = None,
|
|
1126
|
+
project_dir: Path | None = None,
|
|
1127
|
+
) -> None:
|
|
1128
|
+
"""Launch BikeRack TUI in dev mode with auto-reload on Python file changes.
|
|
1129
|
+
|
|
1130
|
+
Sets TEXTUAL env var for CSS hot-reload and uses watchfiles for Python reload.
|
|
1131
|
+
"""
|
|
1132
|
+
os.environ["TEXTUAL"] = "devtools"
|
|
1133
|
+
|
|
1134
|
+
from pf.bikerack import portrait_resolver
|
|
1135
|
+
|
|
1136
|
+
portrait_resolver.detect_image_protocol()
|
|
1137
|
+
|
|
1138
|
+
if os.environ.get("TMUX") and portrait_resolver.detect_image_protocol() == "kitty":
|
|
1139
|
+
_patch_tgp_for_tmux()
|
|
1140
|
+
|
|
1141
|
+
if port is None:
|
|
1142
|
+
if project_dir is not None:
|
|
1143
|
+
port_file = project_dir / ".bikerack-port"
|
|
1144
|
+
if port_file.exists():
|
|
1145
|
+
try:
|
|
1146
|
+
port = int(port_file.read_text().strip())
|
|
1147
|
+
except (ValueError, OSError):
|
|
1148
|
+
port = DEFAULT_PORT
|
|
1149
|
+
else:
|
|
1150
|
+
port = DEFAULT_PORT
|
|
1151
|
+
else:
|
|
1152
|
+
port = DEFAULT_PORT
|
|
1153
|
+
|
|
1154
|
+
client = WheelHubClient(port=port)
|
|
1155
|
+
app = BikeRackApp(client=client)
|
|
1156
|
+
|
|
1157
|
+
watch_paths = get_watch_paths()
|
|
1158
|
+
_run_with_reload(app, watch_paths, watch_filter)
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
if __name__ == "__main__":
|
|
1162
|
+
import argparse
|
|
1163
|
+
|
|
1164
|
+
parser = argparse.ArgumentParser(description="BikeRack TUI")
|
|
1165
|
+
parser.add_argument("--port", type=int, default=None, help="WheelHub port")
|
|
1166
|
+
parser.add_argument("--project-dir", type=str, default=None, help="Project directory")
|
|
1167
|
+
args = parser.parse_args()
|
|
1168
|
+
|
|
1169
|
+
project_dir = Path(args.project_dir) if args.project_dir else None
|
|
1170
|
+
main(port=args.port, project_dir=project_dir)
|