@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
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"""DebugPanel — Context usage and token stats for BikeRack TUI.
|
|
2
|
-
|
|
3
|
-
Story 103-17: Port of the React DebugPanel. Subscribes to /ws/context
|
|
4
|
-
and /ws/token-stats, renders context usage (tokens, percent, tier) and
|
|
5
|
-
token consumption stats (input, output, cache, cost).
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from __future__ import annotations
|
|
9
|
-
|
|
10
|
-
from collections import deque
|
|
11
|
-
from typing import Any
|
|
12
|
-
|
|
13
|
-
from rich.console import Group
|
|
14
|
-
from rich.table import Table
|
|
15
|
-
from rich.text import Text
|
|
16
|
-
|
|
17
|
-
from pf.bikerack.base_panel import PANEL_ICONS, BasePanel, render_progress_bar
|
|
18
|
-
|
|
19
|
-
# Tier → Rich style mapping
|
|
20
|
-
_TIER_STYLES: dict[str, str] = {
|
|
21
|
-
"FULL": "bold green",
|
|
22
|
-
"REFRESH": "bold yellow",
|
|
23
|
-
"HANDOFF": "bold cyan",
|
|
24
|
-
"MINIMAL": "bold red",
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
def _safe_int(value: Any) -> int | None:
|
|
29
|
-
"""Safely convert a value to int, returning None on failure."""
|
|
30
|
-
if value is None:
|
|
31
|
-
return None
|
|
32
|
-
try:
|
|
33
|
-
return int(value)
|
|
34
|
-
except (ValueError, TypeError):
|
|
35
|
-
return None
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def _safe_float(value: Any) -> float | None:
|
|
39
|
-
"""Safely convert a value to float, returning None on failure."""
|
|
40
|
-
if value is None:
|
|
41
|
-
return None
|
|
42
|
-
try:
|
|
43
|
-
return float(value)
|
|
44
|
-
except (ValueError, TypeError):
|
|
45
|
-
return None
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def _format_tokens(value: Any) -> str:
|
|
49
|
-
"""Format a token count with comma separators."""
|
|
50
|
-
n = _safe_int(value)
|
|
51
|
-
if n is None:
|
|
52
|
-
return "—"
|
|
53
|
-
return f"{n:,}"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class DebugPanel(BasePanel):
|
|
57
|
-
"""Context usage and token stats panel.
|
|
58
|
-
|
|
59
|
-
Subscribes to both ``context`` and ``token-stats`` WebSocket channels.
|
|
60
|
-
Renders context usage (tokens, percentage, tier) and token consumption
|
|
61
|
-
stats (input, output, cache read/write, cost).
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
channel: str = "context"
|
|
65
|
-
panel_name: str = "Debug"
|
|
66
|
-
icon: str = PANEL_ICONS["debug"][0]
|
|
67
|
-
|
|
68
|
-
def __init__(self, client: Any = None, **kwargs: Any) -> None:
|
|
69
|
-
super().__init__(client=client, **kwargs)
|
|
70
|
-
self._context_data: dict[str, Any] | None = None
|
|
71
|
-
self._token_stats: dict[str, Any] | None = None
|
|
72
|
-
self._sparkline_history: deque[int] = deque(maxlen=20)
|
|
73
|
-
|
|
74
|
-
def on_mount(self) -> None:
|
|
75
|
-
"""Subscribe to both context and token-stats channels."""
|
|
76
|
-
self._mounted = True
|
|
77
|
-
if self._client is not None:
|
|
78
|
-
self._client.subscribe("context", self._handle_context_message)
|
|
79
|
-
self._client.subscribe("token-stats", self._handle_token_stats_message)
|
|
80
|
-
|
|
81
|
-
def _handle_context_message(self, message: dict[str, Any] | None) -> None:
|
|
82
|
-
"""Handle incoming context channel message."""
|
|
83
|
-
if message is None:
|
|
84
|
-
return
|
|
85
|
-
ctx = message.get("context")
|
|
86
|
-
if isinstance(ctx, dict):
|
|
87
|
-
self._context_data = ctx
|
|
88
|
-
pct = _safe_int(ctx.get("percent"))
|
|
89
|
-
if pct is not None:
|
|
90
|
-
self._sparkline_history.append(pct)
|
|
91
|
-
else:
|
|
92
|
-
self._context_data = {}
|
|
93
|
-
self._rerender()
|
|
94
|
-
|
|
95
|
-
def _handle_token_stats_message(self, message: dict[str, Any] | None) -> None:
|
|
96
|
-
"""Handle incoming token-stats channel message."""
|
|
97
|
-
if message is None:
|
|
98
|
-
return
|
|
99
|
-
self._token_stats = message
|
|
100
|
-
self._rerender()
|
|
101
|
-
|
|
102
|
-
def _rerender(self) -> None:
|
|
103
|
-
"""Re-render with the latest data from both channels."""
|
|
104
|
-
rendered = self.render_panel(self._context_data or {})
|
|
105
|
-
try:
|
|
106
|
-
self._thread_safe_update(rendered)
|
|
107
|
-
except Exception:
|
|
108
|
-
pass
|
|
109
|
-
|
|
110
|
-
def render_panel(self, payload: dict[str, Any]) -> Any:
|
|
111
|
-
"""Render combined context usage and token stats."""
|
|
112
|
-
parts: list[Any] = []
|
|
113
|
-
|
|
114
|
-
# --- Context Usage Section ---
|
|
115
|
-
ctx = self._context_data
|
|
116
|
-
if ctx:
|
|
117
|
-
parts.append(_render_context(ctx))
|
|
118
|
-
if len(self._sparkline_history) >= 2:
|
|
119
|
-
parts.append(_render_sparkline(self._sparkline_history))
|
|
120
|
-
elif not self._token_stats:
|
|
121
|
-
return Text("No context data", style="dim italic")
|
|
122
|
-
|
|
123
|
-
# --- Token Stats Section ---
|
|
124
|
-
if self._token_stats:
|
|
125
|
-
if parts:
|
|
126
|
-
parts.append(Text("")) # spacer
|
|
127
|
-
parts.append(_render_token_stats(self._token_stats))
|
|
128
|
-
|
|
129
|
-
if not parts:
|
|
130
|
-
return Text("No context data", style="dim italic")
|
|
131
|
-
|
|
132
|
-
return Group(*parts)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
def _render_context(ctx: dict[str, Any]) -> Any:
|
|
136
|
-
"""Render context usage section."""
|
|
137
|
-
parts: list[Any] = []
|
|
138
|
-
|
|
139
|
-
# Tier badge
|
|
140
|
-
tier = ctx.get("tier")
|
|
141
|
-
if tier and isinstance(tier, str):
|
|
142
|
-
style = _TIER_STYLES.get(tier, "bold")
|
|
143
|
-
tier_text = Text()
|
|
144
|
-
tier_text.append(tier, style=style)
|
|
145
|
-
savings = _tier_savings(tier)
|
|
146
|
-
if savings > 0:
|
|
147
|
-
tier_text.append(f" {savings}% savings", style="dim")
|
|
148
|
-
parts.append(tier_text)
|
|
149
|
-
|
|
150
|
-
# Token usage
|
|
151
|
-
tokens = _safe_int(ctx.get("tokens"))
|
|
152
|
-
percent = _safe_int(ctx.get("percent"))
|
|
153
|
-
baseline = _safe_int(ctx.get("baseline"))
|
|
154
|
-
available = _safe_int(ctx.get("available"))
|
|
155
|
-
|
|
156
|
-
if tokens is not None:
|
|
157
|
-
usage_text = Text()
|
|
158
|
-
usage_text.append(f"{tokens:,}", style="bold")
|
|
159
|
-
if baseline is not None and available is not None:
|
|
160
|
-
total = baseline + available
|
|
161
|
-
usage_text.append(f" / {total:,}")
|
|
162
|
-
usage_text.append(" tokens")
|
|
163
|
-
if percent is not None:
|
|
164
|
-
usage_text.append(f" ({percent}%)")
|
|
165
|
-
parts.append(usage_text)
|
|
166
|
-
|
|
167
|
-
# Context usage progress bar
|
|
168
|
-
if percent is not None:
|
|
169
|
-
parts.append(render_progress_bar(percent, warn_high=True))
|
|
170
|
-
|
|
171
|
-
# Breakdown: baseline / conversation / available
|
|
172
|
-
if baseline is not None:
|
|
173
|
-
breakdown = Table(show_header=False, show_edge=False, pad_edge=False, box=None)
|
|
174
|
-
breakdown.add_column("Label", style="dim")
|
|
175
|
-
breakdown.add_column("Value", justify="right")
|
|
176
|
-
breakdown.add_row("System Prompt", _format_tokens(baseline))
|
|
177
|
-
usable = _safe_int(ctx.get("usableTokens"))
|
|
178
|
-
if usable is not None:
|
|
179
|
-
breakdown.add_row("Conversation", _format_tokens(usable))
|
|
180
|
-
if available is not None:
|
|
181
|
-
breakdown.add_row("Available", _format_tokens(available))
|
|
182
|
-
parts.append(breakdown)
|
|
183
|
-
|
|
184
|
-
if not parts:
|
|
185
|
-
return Text("No context data", style="dim italic")
|
|
186
|
-
|
|
187
|
-
return Group(*parts)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
_SPARKLINE_CHARS = "▁▂▃▄▅▆▇█"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
def _render_sparkline(history: deque[int]) -> Text:
|
|
194
|
-
"""Render a Unicode sparkline from context usage history."""
|
|
195
|
-
text = Text()
|
|
196
|
-
text.append("Context trend: ", style="dim")
|
|
197
|
-
for pct in history:
|
|
198
|
-
level = min(7, max(0, int(pct / 100 * 7.99)))
|
|
199
|
-
if pct < 50:
|
|
200
|
-
style = "green"
|
|
201
|
-
elif pct <= 80:
|
|
202
|
-
style = "yellow"
|
|
203
|
-
else:
|
|
204
|
-
style = "red"
|
|
205
|
-
text.append(_SPARKLINE_CHARS[level], style=style)
|
|
206
|
-
return text
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
def _render_token_stats(stats: dict[str, Any]) -> Any:
|
|
210
|
-
"""Render token stats section."""
|
|
211
|
-
table = Table(show_header=False, show_edge=False, pad_edge=False, box=None)
|
|
212
|
-
table.add_column("Stat", style="dim")
|
|
213
|
-
table.add_column("Value", justify="right")
|
|
214
|
-
|
|
215
|
-
rows: list[tuple[str, str]] = []
|
|
216
|
-
|
|
217
|
-
input_t = _safe_int(stats.get("inputTokens"))
|
|
218
|
-
if input_t is not None:
|
|
219
|
-
rows.append(("Input", f"{input_t:,}"))
|
|
220
|
-
|
|
221
|
-
output_t = _safe_int(stats.get("outputTokens"))
|
|
222
|
-
if output_t is not None:
|
|
223
|
-
rows.append(("Output", f"{output_t:,}"))
|
|
224
|
-
|
|
225
|
-
cache_read = _safe_int(stats.get("cacheReadTokens"))
|
|
226
|
-
if cache_read is not None:
|
|
227
|
-
rows.append(("Cache Read", f"{cache_read:,}"))
|
|
228
|
-
|
|
229
|
-
cache_write = _safe_int(stats.get("cacheCreationTokens"))
|
|
230
|
-
if cache_write is not None:
|
|
231
|
-
rows.append(("Cache Write", f"{cache_write:,}"))
|
|
232
|
-
|
|
233
|
-
cost = _safe_float(stats.get("totalCostUsd"))
|
|
234
|
-
if cost is not None and cost > 0:
|
|
235
|
-
rows.append(("Cost", f"${cost:.4f}"))
|
|
236
|
-
|
|
237
|
-
if not rows:
|
|
238
|
-
return Text("No token stats", style="dim italic")
|
|
239
|
-
|
|
240
|
-
for label, value in rows:
|
|
241
|
-
table.add_row(label, value)
|
|
242
|
-
|
|
243
|
-
return table
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
def _tier_savings(tier: str) -> int:
|
|
247
|
-
"""Calculate token savings percentage for a tier vs FULL."""
|
|
248
|
-
return {"FULL": 0, "REFRESH": 85, "HANDOFF": 82, "MINIMAL": 95}.get(tier, 0)
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
"""BikeRack launcher — core lifecycle functions.
|
|
2
|
-
|
|
3
|
-
Story 101-5: BikeRack launcher CLI (pf bikerack start/stop/status)
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
from __future__ import annotations
|
|
7
|
-
|
|
8
|
-
import atexit
|
|
9
|
-
import os
|
|
10
|
-
import signal
|
|
11
|
-
import subprocess
|
|
12
|
-
import time
|
|
13
|
-
from pathlib import Path
|
|
14
|
-
from typing import NoReturn
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def is_process_alive(pid: int) -> bool:
|
|
18
|
-
"""Check if a process with given PID is alive."""
|
|
19
|
-
try:
|
|
20
|
-
os.kill(pid, 0)
|
|
21
|
-
return True
|
|
22
|
-
except (ProcessLookupError, PermissionError, OSError):
|
|
23
|
-
return False
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def cleanup_files(project_dir: Path) -> None:
|
|
27
|
-
"""Clean up .bikerack-port, .wheelhub-pid, and .wheelhub-gui-pid files."""
|
|
28
|
-
for name in (".bikerack-port", ".wheelhub-pid", ".wheelhub-gui-pid"):
|
|
29
|
-
try:
|
|
30
|
-
(project_dir / name).unlink()
|
|
31
|
-
except FileNotFoundError:
|
|
32
|
-
pass
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
def read_port_file(project_dir: Path) -> int | None:
|
|
36
|
-
"""Read port from .bikerack-port file. Returns None if not found."""
|
|
37
|
-
try:
|
|
38
|
-
return int((project_dir / ".bikerack-port").read_text().strip())
|
|
39
|
-
except (FileNotFoundError, ValueError):
|
|
40
|
-
return None
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
def read_pid_file(project_dir: Path) -> int | None:
|
|
44
|
-
"""Read PID from .wheelhub-pid file. Returns None if not found."""
|
|
45
|
-
try:
|
|
46
|
-
return int((project_dir / ".wheelhub-pid").read_text().strip())
|
|
47
|
-
except (FileNotFoundError, ValueError):
|
|
48
|
-
return None
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def write_pid_file(project_dir: Path, pid: int) -> None:
|
|
52
|
-
"""Write .wheelhub-pid file."""
|
|
53
|
-
(project_dir / ".wheelhub-pid").write_text(str(pid))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def build_otel_env(port: int) -> dict[str, str]:
|
|
57
|
-
"""Build the 5 OTEL environment variables from discovered port (Rule 5)."""
|
|
58
|
-
return {
|
|
59
|
-
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
|
|
60
|
-
"OTEL_LOGS_EXPORTER": "otlp",
|
|
61
|
-
"OTEL_METRICS_EXPORTER": "otlp",
|
|
62
|
-
"OTEL_EXPORTER_OTLP_PROTOCOL": "http/json",
|
|
63
|
-
"OTEL_EXPORTER_OTLP_ENDPOINT": f"http://localhost:{port}",
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def resolve_project_dir(project_dir: str | None) -> Path:
|
|
68
|
-
"""Resolve project directory from option → env var → cwd.
|
|
69
|
-
|
|
70
|
-
Used by bikerack and launch CLI commands.
|
|
71
|
-
"""
|
|
72
|
-
if project_dir:
|
|
73
|
-
return Path(project_dir)
|
|
74
|
-
env = os.environ.get("CYCLIST_PROJECT_DIR")
|
|
75
|
-
if env:
|
|
76
|
-
return Path(env)
|
|
77
|
-
return Path.cwd()
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
def _find_framework_dir() -> Path:
|
|
81
|
-
"""Locate the pennyfarthing framework root from this package's location."""
|
|
82
|
-
# pf/bikerack/launcher.py -> pennyfarthing/
|
|
83
|
-
return Path(__file__).resolve().parent.parent.parent
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
def start_wheelhub(project_dir: Path) -> subprocess.Popen:
|
|
87
|
-
"""Start WheelHub server in background with IS_BIKERACK=1."""
|
|
88
|
-
framework_dir = _find_framework_dir()
|
|
89
|
-
bikerack_entry = framework_dir / "packages" / "cyclist" / "dist" / "bikerack.js"
|
|
90
|
-
|
|
91
|
-
env = os.environ.copy()
|
|
92
|
-
env["IS_BIKERACK"] = "1"
|
|
93
|
-
env["CYCLIST_PROJECT_DIR"] = str(project_dir)
|
|
94
|
-
|
|
95
|
-
return subprocess.Popen(
|
|
96
|
-
["node", str(bikerack_entry)],
|
|
97
|
-
env=env,
|
|
98
|
-
cwd=str(project_dir),
|
|
99
|
-
stdout=subprocess.DEVNULL,
|
|
100
|
-
stderr=subprocess.DEVNULL,
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
def poll_for_port_file(
|
|
105
|
-
project_dir: Path, timeout: float = 5.0, interval: float = 0.1
|
|
106
|
-
) -> int:
|
|
107
|
-
"""Poll for .bikerack-port file, return port number."""
|
|
108
|
-
port_file = project_dir / ".bikerack-port"
|
|
109
|
-
deadline = time.monotonic() + timeout
|
|
110
|
-
|
|
111
|
-
while True:
|
|
112
|
-
if port_file.exists():
|
|
113
|
-
return int(port_file.read_text().strip())
|
|
114
|
-
if time.monotonic() >= deadline:
|
|
115
|
-
raise TimeoutError(
|
|
116
|
-
f"Timed out waiting for {port_file} after {timeout}s"
|
|
117
|
-
)
|
|
118
|
-
time.sleep(interval)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
def register_cleanup(project_dir: Path, pid: int) -> None:
|
|
122
|
-
"""Register atexit handler to kill WheelHub and clean up files (Rule 8)."""
|
|
123
|
-
|
|
124
|
-
def _cleanup(project_dir: Path, pid: int) -> None:
|
|
125
|
-
try:
|
|
126
|
-
os.kill(pid, signal.SIGTERM)
|
|
127
|
-
except (ProcessLookupError, OSError):
|
|
128
|
-
pass
|
|
129
|
-
cleanup_files(project_dir)
|
|
130
|
-
|
|
131
|
-
atexit.register(_cleanup, project_dir, pid)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
def exec_claude(otel_env: dict[str, str], project_dir: Path | None = None) -> NoReturn:
|
|
135
|
-
"""Replace current process with Claude CLI using os.execvpe (CE-4)."""
|
|
136
|
-
env = os.environ.copy()
|
|
137
|
-
env.update(otel_env)
|
|
138
|
-
if project_dir:
|
|
139
|
-
os.chdir(project_dir)
|
|
140
|
-
os.execvpe("claude", ["claude"], env)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
def is_already_running(project_dir: Path) -> tuple[bool, int | None, int | None]:
|
|
144
|
-
"""Check if BikeRack is already running.
|
|
145
|
-
|
|
146
|
-
Returns (is_running, pid_or_none, port_or_none).
|
|
147
|
-
Cleans up stale files if PID is dead.
|
|
148
|
-
"""
|
|
149
|
-
pid = read_pid_file(project_dir)
|
|
150
|
-
port = read_port_file(project_dir)
|
|
151
|
-
|
|
152
|
-
if pid is None or port is None:
|
|
153
|
-
return (False, None, None)
|
|
154
|
-
|
|
155
|
-
if is_process_alive(pid):
|
|
156
|
-
return (True, pid, port)
|
|
157
|
-
|
|
158
|
-
cleanup_files(project_dir)
|
|
159
|
-
return (False, None, None)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
def stop_bikerack(project_dir: Path) -> dict:
|
|
163
|
-
"""Stop running BikeRack instance and TUI. Returns {success, pid, message}."""
|
|
164
|
-
pid = read_pid_file(project_dir)
|
|
165
|
-
|
|
166
|
-
if pid is None:
|
|
167
|
-
return {"success": False, "message": "BikeRack is not running"}
|
|
168
|
-
|
|
169
|
-
if not is_process_alive(pid):
|
|
170
|
-
cleanup_files(project_dir)
|
|
171
|
-
return {"success": False, "message": "BikeRack is not running (stale PID)"}
|
|
172
|
-
|
|
173
|
-
os.kill(pid, signal.SIGTERM)
|
|
174
|
-
|
|
175
|
-
# Also kill TUI process if running
|
|
176
|
-
tui_pid = read_tui_pid_file(project_dir)
|
|
177
|
-
if tui_pid is not None:
|
|
178
|
-
try:
|
|
179
|
-
os.kill(tui_pid, signal.SIGTERM)
|
|
180
|
-
except (ProcessLookupError, OSError):
|
|
181
|
-
pass
|
|
182
|
-
|
|
183
|
-
cleanup_files(project_dir)
|
|
184
|
-
return {"success": True, "pid": pid, "message": f"Stopped BikeRack (PID {pid})"}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
def get_status(project_dir: Path) -> dict:
|
|
188
|
-
"""Get BikeRack running status. Returns {running, pid, port, dashboard}."""
|
|
189
|
-
pid = read_pid_file(project_dir)
|
|
190
|
-
port = read_port_file(project_dir)
|
|
191
|
-
|
|
192
|
-
if pid is None or port is None:
|
|
193
|
-
return {"running": False}
|
|
194
|
-
|
|
195
|
-
if not is_process_alive(pid):
|
|
196
|
-
return {"running": False}
|
|
197
|
-
|
|
198
|
-
result = {
|
|
199
|
-
"running": True,
|
|
200
|
-
"pid": pid,
|
|
201
|
-
"port": port,
|
|
202
|
-
"dashboard": f"http://localhost:{port}/bikerack",
|
|
203
|
-
"tui_pid": read_tui_pid_file(project_dir),
|
|
204
|
-
}
|
|
205
|
-
return result
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
# --- Story 103-3: TUI launcher functions ---
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
def read_tui_pid_file(project_dir: Path) -> int | None:
|
|
212
|
-
"""Read TUI PID from .wheelhub-gui-pid file. Returns None if not found."""
|
|
213
|
-
try:
|
|
214
|
-
return int((project_dir / ".wheelhub-gui-pid").read_text().strip())
|
|
215
|
-
except (FileNotFoundError, ValueError):
|
|
216
|
-
return None
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
def write_tui_pid_file(project_dir: Path, pid: int) -> None:
|
|
220
|
-
"""Write .wheelhub-gui-pid file."""
|
|
221
|
-
(project_dir / ".wheelhub-gui-pid").write_text(str(pid))
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
def start_tui(project_dir: Path, port: int) -> subprocess.Popen:
|
|
225
|
-
"""Start TUI as independent subprocess.
|
|
226
|
-
|
|
227
|
-
Uses start_new_session=True so TUI survives parent exit.
|
|
228
|
-
Writes .wheelhub-gui-pid for lifecycle tracking.
|
|
229
|
-
"""
|
|
230
|
-
import sys
|
|
231
|
-
|
|
232
|
-
proc = subprocess.Popen(
|
|
233
|
-
[sys.executable, "-m", "pf.bikerack.tui", "--port", str(port)],
|
|
234
|
-
cwd=str(project_dir),
|
|
235
|
-
start_new_session=True,
|
|
236
|
-
stdout=subprocess.DEVNULL,
|
|
237
|
-
stderr=subprocess.DEVNULL,
|
|
238
|
-
)
|
|
239
|
-
write_tui_pid_file(project_dir, proc.pid)
|
|
240
|
-
return proc
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"""Portrait path resolution for BikeRack TUI.
|
|
2
|
-
|
|
3
|
-
Resolves persona portrait image paths using the canonical theme discovery
|
|
4
|
-
from ``pf.common.themes``. Each theme directory that
|
|
5
|
-
contains ``themes/{name}.yaml`` has a sibling ``portraits/{name}/`` with
|
|
6
|
-
size-bucketed portrait images.
|
|
7
|
-
|
|
8
|
-
Story 110-3: Portrait image header with textual-image.
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from __future__ import annotations
|
|
12
|
-
|
|
13
|
-
import re
|
|
14
|
-
from pathlib import Path
|
|
15
|
-
|
|
16
|
-
import yaml
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def _to_slug(name: str) -> str:
|
|
20
|
-
"""Convert a name to URL-safe slug (lowercase kebab-case)."""
|
|
21
|
-
return re.sub(r"[^a-z0-9]+", "-", name.lower()).strip("-")
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def _extract_agent_slug(theme_yaml: Path, agent: str) -> str | None:
|
|
25
|
-
"""Extract portrait slug (shortName-OCEAN) from a theme YAML file."""
|
|
26
|
-
if not theme_yaml.exists():
|
|
27
|
-
return None
|
|
28
|
-
try:
|
|
29
|
-
data = yaml.safe_load(theme_yaml.read_text())
|
|
30
|
-
agent_data = (data or {}).get("agents", {}).get(agent)
|
|
31
|
-
if not agent_data:
|
|
32
|
-
return None
|
|
33
|
-
short_name = agent_data.get("shortName") or (
|
|
34
|
-
agent_data.get("character", "").split()[0] if agent_data.get("character") else None
|
|
35
|
-
)
|
|
36
|
-
ocean = agent_data.get("ocean", {})
|
|
37
|
-
if short_name and all(k in ocean for k in "OCEAN"):
|
|
38
|
-
return f"{_to_slug(short_name)}-{ocean['O']}{ocean['C']}{ocean['E']}{ocean['A']}{ocean['N']}"
|
|
39
|
-
except Exception:
|
|
40
|
-
pass
|
|
41
|
-
return None
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
def _find_portrait(portraits_theme_dir: Path, slug: str) -> Path | None:
|
|
45
|
-
"""Find a portrait file matching the slug in a theme's portrait directory."""
|
|
46
|
-
if not portraits_theme_dir.is_dir():
|
|
47
|
-
return None
|
|
48
|
-
for size in ["medium", "large", "small", "original"]:
|
|
49
|
-
size_dir = portraits_theme_dir / size
|
|
50
|
-
if size_dir.is_dir():
|
|
51
|
-
for f in size_dir.iterdir():
|
|
52
|
-
if f.name.lower().startswith(slug.lower()) and f.suffix in (".png", ".jpg"):
|
|
53
|
-
return f
|
|
54
|
-
# Fallback to root of theme dir
|
|
55
|
-
for f in portraits_theme_dir.iterdir():
|
|
56
|
-
if f.is_file() and f.name.lower().startswith(slug.lower()) and f.suffix in (".png", ".jpg"):
|
|
57
|
-
return f
|
|
58
|
-
return None
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def resolve_portrait_path(
|
|
62
|
-
theme: str, agent: str, project_root: Path | None = None
|
|
63
|
-
) -> Path | None:
|
|
64
|
-
"""Resolve the full path to a portrait image.
|
|
65
|
-
|
|
66
|
-
Uses ``discover_all_theme_dirs`` from ``common.themes`` to search core
|
|
67
|
-
themes, installed theme packages, monorepo workspace packages, and
|
|
68
|
-
custom themes — in canonical priority order.
|
|
69
|
-
|
|
70
|
-
For each theme directory the portrait sibling is derived:
|
|
71
|
-
- ``.pennyfarthing/personas/themes/`` → ``.pennyfarthing/personas/portraits/``
|
|
72
|
-
- ``themes-*/themes/`` → ``themes-*/portraits/``
|
|
73
|
-
|
|
74
|
-
Args:
|
|
75
|
-
theme: Theme name (e.g., 'hogans-heroes', 'monty-python')
|
|
76
|
-
agent: Agent role (e.g., 'sm', 'tea', 'dev')
|
|
77
|
-
project_root: Project root for path resolution. Defaults to cwd.
|
|
78
|
-
|
|
79
|
-
Returns:
|
|
80
|
-
Path to portrait file, or None if not found.
|
|
81
|
-
"""
|
|
82
|
-
from pf.common.themes import discover_all_theme_dirs
|
|
83
|
-
|
|
84
|
-
theme_dirs = discover_all_theme_dirs(project_root)
|
|
85
|
-
|
|
86
|
-
# Resolve slug from the first theme dir that has this theme's YAML
|
|
87
|
-
slug: str | None = None
|
|
88
|
-
for themes_dir in theme_dirs:
|
|
89
|
-
theme_yaml = themes_dir / f"{theme}.yaml"
|
|
90
|
-
slug = _extract_agent_slug(theme_yaml, agent)
|
|
91
|
-
if slug:
|
|
92
|
-
break
|
|
93
|
-
|
|
94
|
-
if not slug:
|
|
95
|
-
return None
|
|
96
|
-
|
|
97
|
-
# Search portrait directories (sibling of each themes dir)
|
|
98
|
-
for themes_dir in theme_dirs:
|
|
99
|
-
portraits_dir = themes_dir.parent / "portraits" / theme
|
|
100
|
-
result = _find_portrait(portraits_dir, slug)
|
|
101
|
-
if result:
|
|
102
|
-
return result
|
|
103
|
-
|
|
104
|
-
# Fallback: search Cyclist package portrait directories
|
|
105
|
-
# Portraits are bundled in @pennyfarthing/cyclist, not alongside theme YAMLs
|
|
106
|
-
root = project_root or Path.cwd()
|
|
107
|
-
cyclist_portrait_dirs = [
|
|
108
|
-
root / "packages" / "cyclist" / "portraits" / theme, # monorepo dev
|
|
109
|
-
root / "node_modules" / "@pennyfarthing" / "cyclist" / "portraits" / theme, # npm
|
|
110
|
-
]
|
|
111
|
-
# pnpm: resolve through .pennyfarthing symlink chain
|
|
112
|
-
pnpm_cyclist = root / "node_modules" / ".pnpm"
|
|
113
|
-
if pnpm_cyclist.is_dir():
|
|
114
|
-
for entry in pnpm_cyclist.iterdir():
|
|
115
|
-
if entry.name.startswith("@pennyfarthing+cyclist@"):
|
|
116
|
-
candidate = entry / "node_modules" / "@pennyfarthing" / "cyclist" / "portraits" / theme
|
|
117
|
-
cyclist_portrait_dirs.append(candidate)
|
|
118
|
-
break
|
|
119
|
-
|
|
120
|
-
for portraits_dir in cyclist_portrait_dirs:
|
|
121
|
-
result = _find_portrait(portraits_dir, slug)
|
|
122
|
-
if result:
|
|
123
|
-
return result
|
|
124
|
-
|
|
125
|
-
return None
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
def detect_image_protocol() -> str | None:
|
|
129
|
-
"""Detect the best available terminal image protocol.
|
|
130
|
-
|
|
131
|
-
Uses environment variables for reliable detection since subprocess
|
|
132
|
-
stdout may not be a TTY (e.g., when launched via Claude Code).
|
|
133
|
-
|
|
134
|
-
Returns:
|
|
135
|
-
Protocol name ('kitty', 'sixel', 'halfcell', None for unsupported).
|
|
136
|
-
"""
|
|
137
|
-
import os
|
|
138
|
-
|
|
139
|
-
# Kitty: TERM=xterm-kitty or KITTY_WINDOW_ID present
|
|
140
|
-
term = os.environ.get("TERM", "")
|
|
141
|
-
if "kitty" in term or os.environ.get("KITTY_WINDOW_ID"):
|
|
142
|
-
return "kitty"
|
|
143
|
-
|
|
144
|
-
# Sixel: some terminals advertise via TERM or COLORTERM
|
|
145
|
-
# WezTerm, foot, mlterm support sixel
|
|
146
|
-
term_program = os.environ.get("TERM_PROGRAM", "")
|
|
147
|
-
if term_program.lower() in ("wezterm", "foot", "mlterm"):
|
|
148
|
-
return "sixel"
|
|
149
|
-
|
|
150
|
-
# Fallback: try textual-image's cell size probe for halfcell baseline
|
|
151
|
-
try:
|
|
152
|
-
from textual_image._terminal import get_cell_size
|
|
153
|
-
|
|
154
|
-
cell_size = get_cell_size()
|
|
155
|
-
if cell_size and cell_size.width > 0:
|
|
156
|
-
return "halfcell"
|
|
157
|
-
except Exception:
|
|
158
|
-
pass
|
|
159
|
-
|
|
160
|
-
return None
|