@pennyfarthing/core 11.3.8 → 11.5.0-alpha.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 +1 -1
- package/package.json +4 -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 +3 -3
- package/packages/core/dist/cli/commands/cyclist.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 +101 -33
- package/packages/core/dist/cli/commands/doctor.js.map +1 -1
- package/packages/core/dist/cli/commands/init.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/init.js +33 -13
- package/packages/core/dist/cli/commands/init.js.map +1 -1
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
- package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
- package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
- package/packages/core/dist/cli/commands/update.js +68 -17
- package/packages/core/dist/cli/commands/update.js.map +1 -1
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
- package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
- package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
- package/packages/core/dist/cli/index.js +2 -21
- package/packages/core/dist/cli/index.js.map +1 -1
- 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 +24 -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/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 +0 -4
- package/packages/core/dist/server/otlp-receiver.d.ts.map +1 -1
- package/packages/core/dist/server/otlp-receiver.js +0 -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 +1 -1
- package/packages/core/dist/server/server.d.ts.map +1 -1
- package/packages/core/dist/server/server.js +2 -4
- package/packages/core/dist/server/server.js.map +1 -1
- 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/src/public/App.tsx +354 -0
- package/packages/core/src/public/components/AgentLoadDialog.tsx +202 -0
- package/packages/core/src/public/components/AgentPopup.tsx +308 -0
- package/packages/core/src/public/components/ApprovalModal/ApprovalModal.css +35 -0
- package/packages/core/src/public/components/ApprovalModal/index.tsx +632 -0
- package/packages/core/src/public/components/BikeRackIndex.tsx +53 -0
- package/packages/core/src/public/components/BikeRackWorkspace.tsx +215 -0
- package/packages/core/src/public/components/CommandPalette.tsx +554 -0
- package/packages/core/src/public/components/ConfirmDialog.tsx +168 -0
- package/packages/core/src/public/components/ContextIndicator/ContextIndicator.css +85 -0
- package/packages/core/src/public/components/ContextIndicator/index.tsx +330 -0
- package/packages/core/src/public/components/ContextSparkline.tsx +56 -0
- package/packages/core/src/public/components/ControlBar.tsx +636 -0
- package/packages/core/src/public/components/DeadCodeDialog.tsx +169 -0
- package/packages/core/src/public/components/DiffViewer.tsx +585 -0
- package/packages/core/src/public/components/DockviewWorkspace.tsx +745 -0
- package/packages/core/src/public/components/Editor.tsx +630 -0
- package/packages/core/src/public/components/ErrorBoundary.tsx +67 -0
- package/packages/core/src/public/components/FileTree.tsx +379 -0
- package/packages/core/src/public/components/FullFileTree.tsx +237 -0
- package/packages/core/src/public/components/HealthGauge.tsx +181 -0
- package/packages/core/src/public/components/Message.tsx +225 -0
- package/packages/core/src/public/components/MessageList.tsx +98 -0
- package/packages/core/src/public/components/MessageView.tsx +400 -0
- package/packages/core/src/public/components/ModeSwitch/ModeSwitch.css +165 -0
- package/packages/core/src/public/components/ModeSwitch/index.tsx +372 -0
- package/packages/core/src/public/components/PersonaHeader.tsx +242 -0
- package/packages/core/src/public/components/ProjectInfoBar.tsx +45 -0
- package/packages/core/src/public/components/QuickActions.tsx +267 -0
- package/packages/core/src/public/components/SpanTimeline.tsx +352 -0
- package/packages/core/src/public/components/StandalonePanel.tsx +80 -0
- package/packages/core/src/public/components/StatsStrip.tsx +162 -0
- package/packages/core/src/public/components/StreamingContent.tsx +77 -0
- package/packages/core/src/public/components/SubagentSpan.tsx +180 -0
- package/packages/core/src/public/components/TandemPortrait.tsx +72 -0
- package/packages/core/src/public/components/ToolCallBlock.tsx +252 -0
- package/packages/core/src/public/components/ToolStack.tsx +209 -0
- package/packages/core/src/public/components/ToolStatus.tsx +57 -0
- package/packages/core/src/public/components/dialogs/CodeMarkersDialog.tsx +169 -0
- package/packages/core/src/public/components/dialogs/ComplexityDialog.tsx +163 -0
- package/packages/core/src/public/components/dialogs/DependenciesDialog.tsx +120 -0
- package/packages/core/src/public/components/dialogs/HotspotsDialog.tsx +451 -0
- package/packages/core/src/public/components/dialogs/ToolDialog.tsx +43 -0
- package/packages/core/src/public/components/panel-registry.ts +13 -0
- package/packages/core/src/public/components/panels/ACPanel.tsx +93 -0
- package/packages/core/src/public/components/panels/AcceptanceCriteriaPanel.tsx +104 -0
- package/packages/core/src/public/components/panels/AuditLogPanel.tsx +489 -0
- package/packages/core/src/public/components/panels/BikeLanePanel.tsx +214 -0
- package/packages/core/src/public/components/panels/DebugPanel.tsx +344 -0
- package/packages/core/src/public/components/panels/DiffView.tsx +109 -0
- package/packages/core/src/public/components/panels/DiffsPanel.tsx +56 -0
- package/packages/core/src/public/components/panels/GitPanel.tsx +260 -0
- package/packages/core/src/public/components/panels/HotspotsPanel.tsx +365 -0
- package/packages/core/src/public/components/panels/MessageFeed.tsx +39 -0
- package/packages/core/src/public/components/panels/MessagePanel.tsx +497 -0
- package/packages/core/src/public/components/panels/ProgressPanel.tsx +189 -0
- package/packages/core/src/public/components/panels/SettingsPanel.tsx +161 -0
- package/packages/core/src/public/components/panels/SprintPanel.tsx +731 -0
- package/packages/core/src/public/components/panels/TandemPanel.tsx +104 -0
- package/packages/core/src/public/components/panels/TaskTracker.tsx +48 -0
- package/packages/core/src/public/components/panels/TeamPanel.tsx +64 -0
- package/packages/core/src/public/components/panels/TeamRoster.tsx +67 -0
- package/packages/core/src/public/components/panels/TodoPanel.tsx +142 -0
- package/packages/core/src/public/components/panels/WorkflowPanel.tsx +224 -0
- package/packages/core/src/public/components/panels/index.ts +23 -0
- package/packages/core/src/public/components/ui/alert-dialog.tsx +139 -0
- package/packages/core/src/public/components/ui/badge.tsx +36 -0
- package/packages/core/src/public/components/ui/button.tsx +57 -0
- package/packages/core/src/public/components/ui/checkbox.tsx +28 -0
- package/packages/core/src/public/components/ui/collapsible.tsx +9 -0
- package/packages/core/src/public/components/ui/command.tsx +151 -0
- package/packages/core/src/public/components/ui/dialog.tsx +120 -0
- package/packages/core/src/public/components/ui/popover.tsx +31 -0
- package/packages/core/src/public/components/ui/progress.tsx +28 -0
- package/packages/core/src/public/components/ui/scroll-area.tsx +46 -0
- package/packages/core/src/public/components/ui/select.tsx +157 -0
- package/packages/core/src/public/components/ui/separator.tsx +29 -0
- package/packages/core/src/public/components/ui/skeleton.tsx +15 -0
- package/packages/core/src/public/components/ui/toggle-group.tsx +59 -0
- package/packages/core/src/public/components/ui/toggle.tsx +43 -0
- package/packages/core/src/public/components/ui/tooltip.tsx +30 -0
- package/packages/core/src/public/contexts/ClaudeContext.tsx +311 -0
- package/packages/core/src/public/contexts/MessageQueueContext.tsx +143 -0
- package/packages/core/src/public/css/theme-browser.css +550 -0
- package/packages/core/src/public/css/theme-system.css +630 -0
- package/packages/core/src/public/hooks/index.ts +46 -0
- package/packages/core/src/public/hooks/useAgentLoad.ts +105 -0
- package/packages/core/src/public/hooks/useClaude.ts +234 -0
- package/packages/core/src/public/hooks/useCodeMarkers.ts +101 -0
- package/packages/core/src/public/hooks/useColorScheme.ts +42 -0
- package/packages/core/src/public/hooks/useCommandHistory.ts +99 -0
- package/packages/core/src/public/hooks/useComplexity.ts +80 -0
- package/packages/core/src/public/hooks/useDeadCode.ts +99 -0
- package/packages/core/src/public/hooks/useDependencies.ts +82 -0
- package/packages/core/src/public/hooks/useDiffs.ts +143 -0
- package/packages/core/src/public/hooks/useFileBrowser.ts +73 -0
- package/packages/core/src/public/hooks/useFocusPanel.ts +137 -0
- package/packages/core/src/public/hooks/useGitStatus.ts +233 -0
- package/packages/core/src/public/hooks/useHealthScore.ts +71 -0
- package/packages/core/src/public/hooks/useHotspots.ts +123 -0
- package/packages/core/src/public/hooks/useLayoutPersistence.ts +141 -0
- package/packages/core/src/public/hooks/useMarkdownParser.ts +36 -0
- package/packages/core/src/public/hooks/useMarkerActions.ts +234 -0
- package/packages/core/src/public/hooks/useMessageQueue.ts +380 -0
- package/packages/core/src/public/hooks/useMessageStream.ts +131 -0
- package/packages/core/src/public/hooks/usePersona.ts +112 -0
- package/packages/core/src/public/hooks/usePlanModeExit.ts +105 -0
- package/packages/core/src/public/hooks/useResponsiveLayout.ts +173 -0
- package/packages/core/src/public/hooks/useSprint.ts +166 -0
- package/packages/core/src/public/hooks/useStatsStrip.ts +204 -0
- package/packages/core/src/public/hooks/useStory.ts +135 -0
- package/packages/core/src/public/hooks/useSubagentHelper.ts +64 -0
- package/packages/core/src/public/hooks/useSyntaxHighlighter.ts +52 -0
- package/packages/core/src/public/hooks/useTabCompletion.ts +124 -0
- package/packages/core/src/public/hooks/useTandemObservations.ts +165 -0
- package/packages/core/src/public/hooks/useTeamMembers.ts +273 -0
- package/packages/core/src/public/hooks/useTodos.ts +93 -0
- package/packages/core/src/public/hooks/useUserAvatar.ts +54 -0
- package/packages/core/src/public/images/cyclist-dark.png +0 -0
- package/packages/core/src/public/images/cyclist-light.png +0 -0
- package/packages/core/src/public/images/cyclist-tandem-source.png +0 -0
- package/packages/core/src/public/index.html +14 -0
- package/packages/core/src/public/index.tsx +10 -0
- package/packages/core/src/public/lib/utils.ts +6 -0
- package/packages/core/src/public/styles/dockview-theme.css +376 -0
- package/packages/core/src/public/styles/tailwind.css +4353 -0
- package/packages/core/src/public/types/message.ts +51 -0
- package/packages/core/src/public/utils/avatar-service.ts +73 -0
- package/packages/core/src/public/utils/color-presets.ts +940 -0
- package/packages/core/src/public/utils/font-presets.ts +362 -0
- package/packages/core/src/public/utils/formatDuration.ts +14 -0
- package/packages/core/src/public/utils/markdown.ts +249 -0
- package/packages/core/src/public/utils/messageFilters.ts +128 -0
- package/packages/core/src/public/utils/slash-commands.ts +341 -0
- package/packages/core/src/public/utils/subagent-display.ts +146 -0
- package/packages/core/src/public/utils/syntax.ts +219 -0
- package/packages/core/src/public/utils/toolIntentSummarizer.ts +199 -0
- package/packages/core/src/public/utils/toolStackGrouper.ts +106 -0
- package/packages/core/src/public/utils/toolTypeColors.ts +45 -0
- package/pennyfarthing-dist/guides/bikerack.md +94 -0
- package/pennyfarthing-dist/personas/themes/firefly.yaml +12 -12
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/hooks.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bc/cli.py +0 -2
- package/pennyfarthing-dist/pf/bc/focus.py +0 -2
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_widget.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/base_panel.py +0 -1
- package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +115 -35
- package/pennyfarthing-dist/pf/bikerack/events.py +1 -7
- package/pennyfarthing-dist/pf/bikerack/git_panel.py +273 -10
- package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +35 -2
- package/pennyfarthing-dist/pf/bikerack/progress_panel.py +54 -0
- package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +116 -1
- package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +10 -105
- package/pennyfarthing-dist/pf/bikerack/story_detail_widget.py +167 -0
- package/pennyfarthing-dist/pf/bikerack/tui.py +141 -66
- package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/bmad/cli.py +0 -1
- package/pennyfarthing-dist/pf/bmad/importer.py +0 -1
- package/pennyfarthing-dist/pf/bmad/parser.py +15 -10
- package/pennyfarthing-dist/pf/bmad/sync.py +1 -3
- package/pennyfarthing-dist/pf/bmad/test_parser.py +0 -4
- package/pennyfarthing-dist/pf/bmad/test_sync.py +0 -3
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/brownfield/cli.py +1 -1
- package/pennyfarthing-dist/pf/cli.py +145 -111
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__init__.py +2 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/common/config.py +43 -0
- package/pennyfarthing-dist/pf/common/pr_config.py +27 -2
- package/pennyfarthing-dist/pf/common/themes.py +7 -5
- package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/context.py +1 -1
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git/hooks_installer.py +7 -6
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/handoff/gate_file.py +5 -1
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hooks/statusline.py +11 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__init__.py +0 -6
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/jira/claim.py +14 -44
- package/pennyfarthing-dist/pf/jira/cli.py +124 -14
- package/pennyfarthing-dist/pf/jira/client.py +51 -87
- package/pennyfarthing-dist/pf/jira/reconcile.py +1 -1
- package/pennyfarthing-dist/pf/jira/story.py +6 -4
- package/pennyfarthing-dist/pf/jira/sync.py +2 -2
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__init__.py +1 -1
- package/pennyfarthing-dist/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/migration/cli.py +0 -1
- package/pennyfarthing-dist/pf/package/__init__.py +0 -0
- package/pennyfarthing-dist/pf/package/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/package/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/package/__pycache__/discovery.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/package/__pycache__/portraits.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/package/cli.py +186 -0
- package/pennyfarthing-dist/pf/package/discovery.py +130 -0
- package/pennyfarthing-dist/pf/package/portraits.py +243 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/prime/loader.py +21 -7
- package/pennyfarthing-dist/pf/prime/workflow.py +11 -3
- package/pennyfarthing-dist/pf/release/__init__.py +0 -0
- package/pennyfarthing-dist/pf/release/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/release/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/release/__pycache__/deprecate.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/release/__pycache__/dry_run.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/release/cli.py +112 -0
- package/pennyfarthing-dist/pf/release/deprecate.py +187 -0
- package/pennyfarthing-dist/pf/release/dry_run.py +187 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/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 +44 -8
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/shard_merge.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/sprint/cli.py +1 -1
- package/pennyfarthing-dist/pf/sprint/loader.py +6 -74
- package/pennyfarthing-dist/pf/sprint/shard_merge.py +126 -0
- package/pennyfarthing-dist/pf/sprint/story_finish.py +18 -4
- package/pennyfarthing-dist/pf/sprint/validator.py +7 -7
- package/pennyfarthing-dist/pf/sprint/yaml_io.py +8 -53
- package/pennyfarthing-dist/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/create.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/size.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/story/__pycache__/template.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
- package/pennyfarthing-dist/pf/tests/test_cli_modules.py +32 -137
- package/pennyfarthing-dist/pf/tests/test_codemarkers.py +0 -15
- package/pennyfarthing-dist/pf/tests/test_dist_root.py +720 -0
- package/pennyfarthing-dist/pf/tests/test_package_structure.py +24 -70
- package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +44 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/validate/adapters/agent.py +11 -1
- package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +15 -4
- package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +7 -1
- package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +8 -2
- package/pennyfarthing-dist/pf/validate/adapters/workflow.py +12 -2
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
- package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/pyproject.toml +1 -1
- package/pennyfarthing-dist/scripts/core/check-context.sh +2 -2
- package/pennyfarthing-dist/scripts/git/changelog-links.sh +216 -0
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/lib/README.md +0 -1
- package/pennyfarthing-dist/scripts/lib/find-root.sh +1 -1
- package/pennyfarthing-dist/scripts/misc/migrate_bmad_workflow.py +0 -1
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +67 -13
- package/pennyfarthing-dist/scripts/portraits/generate-tandem-portraits.sh +7 -3
- package/pennyfarthing-dist/scripts/workflow/check.py +4 -6
- package/pennyfarthing-dist/scripts/workflow/complete-step.py +2 -2
- package/pennyfarthing-dist/skills/skill-registry.yaml +19 -0
- package/pennyfarthing-dist/workflows/patch.yaml +5 -6
- package/pennyfarthing-dist/workflows/tdd-tandem.yaml +27 -2
- package/packages/core/dist/workflow/__test_context_watch__/.session/.tandem-turn-counter +0 -1
- package/packages/core/dist/workflow/__test_context_watch__/.session/95-6-session.md +0 -3
- package/packages/core/dist/workflow/__test_context_watch__/.session/95-6-tandem-architect.md +0 -6
- package/packages/core/dist/workflow/__test_file_watch__/.session/95-4-tandem-architect.md +0 -6
- package/packages/core/dist/workflow/__test_file_watch__/workdir/trigger.ts +0 -1
- package/packages/core/dist/workflow/__test_tool_watch__/.session/95-5-tandem-architect.md +0 -6
- package/packages/core/dist/workflow/__test_tool_watch__/.session/95-5-tandem-toolcalls.jsonl +0 -1
- package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
- package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.js +0 -217
- package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
- package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
- package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
- package/pennyfarthing-dist/pf/bikerack/background_panel.py +0 -162
- package/pennyfarthing-dist/pf/bikerack/changed_panel.py +0 -201
- package/pennyfarthing-dist/pf/brownfield/__main__.py +0 -8
- package/pennyfarthing-dist/pf/config.py +0 -21
- package/pennyfarthing-dist/pf/hooks.py +0 -32
- 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/migration/__main__.py +0 -10
- package/pennyfarthing-dist/pf/output.py +0 -37
- package/pennyfarthing-dist/pf/theme/__main__.py +0 -6
- package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
"""GitPanel — Multi-repo git status panel for BikeRack TUI.
|
|
1
|
+
"""GitPanel — Multi-repo git status panel with diff drill-through for BikeRack TUI.
|
|
2
2
|
|
|
3
3
|
Story 103-10: Subscribes to /ws/git, renders multi-repo git status
|
|
4
4
|
as Rich table with Nerd Font glyphs for branch and status indicators.
|
|
5
|
+
|
|
6
|
+
Merge: Changed panel consolidated into Git panel — clickable file list
|
|
7
|
+
with Enter to view diff inline, Escape to return to repo overview.
|
|
5
8
|
"""
|
|
6
9
|
|
|
7
10
|
from __future__ import annotations
|
|
8
11
|
|
|
12
|
+
import os
|
|
13
|
+
import re
|
|
9
14
|
from typing import Any
|
|
10
15
|
|
|
16
|
+
from rich.console import Group as RichGroup
|
|
17
|
+
from rich.syntax import Syntax
|
|
11
18
|
from rich.text import Text
|
|
19
|
+
from textual.binding import Binding
|
|
12
20
|
|
|
13
21
|
from pf.bikerack.base_panel import PANEL_ICONS, BasePanel
|
|
14
22
|
|
|
@@ -63,27 +71,265 @@ def _parse_file_status(status: str) -> tuple[str, str, str]:
|
|
|
63
71
|
return ("·", "Changed", "yellow")
|
|
64
72
|
|
|
65
73
|
|
|
74
|
+
# ---- Diff rendering helpers (from diffs_panel.py patterns) ----
|
|
75
|
+
|
|
76
|
+
_LANG_MAP: dict[str, str] = {
|
|
77
|
+
".py": "python", ".ts": "typescript", ".tsx": "tsx",
|
|
78
|
+
".js": "javascript", ".jsx": "jsx", ".go": "go",
|
|
79
|
+
".rs": "rust", ".rb": "ruby", ".java": "java",
|
|
80
|
+
".css": "css", ".html": "html", ".json": "json",
|
|
81
|
+
".yaml": "yaml", ".yml": "yaml", ".md": "markdown",
|
|
82
|
+
".sh": "bash", ".zsh": "bash", ".toml": "toml",
|
|
83
|
+
".xml": "xml", ".sql": "sql", ".c": "c", ".cpp": "cpp",
|
|
84
|
+
".h": "c", ".hpp": "cpp",
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def _detect_language(path: str) -> str:
|
|
89
|
+
"""Detect programming language from file path for syntax highlighting."""
|
|
90
|
+
ext = os.path.splitext(path)[1].lower()
|
|
91
|
+
return _LANG_MAP.get(ext, "text")
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def _highlight_code(code: str, language: str) -> Text:
|
|
95
|
+
"""Apply syntax highlighting to a single line."""
|
|
96
|
+
if not code or not code.strip():
|
|
97
|
+
return Text(code)
|
|
98
|
+
try:
|
|
99
|
+
syntax = Syntax(code, language, theme="monokai", background_color="default")
|
|
100
|
+
highlighted = syntax.highlight(code)
|
|
101
|
+
highlighted.rstrip()
|
|
102
|
+
return highlighted
|
|
103
|
+
except Exception:
|
|
104
|
+
return Text(code)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _render_inline_diff(diff_entry: dict[str, Any]) -> list[Any]:
|
|
108
|
+
"""Render a single file diff inline for drill-through view."""
|
|
109
|
+
path = diff_entry.get("path", "unknown")
|
|
110
|
+
status = diff_entry.get("status", "")
|
|
111
|
+
additions = diff_entry.get("additions")
|
|
112
|
+
deletions = diff_entry.get("deletions")
|
|
113
|
+
raw_diff = diff_entry.get("diff", "")
|
|
114
|
+
|
|
115
|
+
header = Text()
|
|
116
|
+
header.append(path, style="bold cyan")
|
|
117
|
+
if status:
|
|
118
|
+
header.append(f" {status}", style="dim")
|
|
119
|
+
if additions is not None and deletions is not None:
|
|
120
|
+
header.append(f" +{additions} -{deletions}", style="dim")
|
|
121
|
+
|
|
122
|
+
language = _detect_language(path)
|
|
123
|
+
parts: list[Any] = [header]
|
|
124
|
+
|
|
125
|
+
if not raw_diff or not raw_diff.strip():
|
|
126
|
+
parts.append(Text("(no diff content)", style="dim italic"))
|
|
127
|
+
return parts
|
|
128
|
+
|
|
129
|
+
line_num = 0
|
|
130
|
+
for line in raw_diff.split("\n"):
|
|
131
|
+
if line.startswith("diff --git") or line.startswith("index "):
|
|
132
|
+
continue
|
|
133
|
+
if line.startswith("---") or line.startswith("+++"):
|
|
134
|
+
continue
|
|
135
|
+
if line.startswith("new file") or line.startswith("deleted file"):
|
|
136
|
+
continue
|
|
137
|
+
if line.startswith("rename "):
|
|
138
|
+
continue
|
|
139
|
+
if line == "":
|
|
140
|
+
continue
|
|
141
|
+
|
|
142
|
+
if line.startswith("Binary files"):
|
|
143
|
+
parts.append(Text(line, style="dim italic"))
|
|
144
|
+
elif line.startswith("@@"):
|
|
145
|
+
match = re.match(r"@@ -\d+(?:,\d+)? \+(\d+)", line)
|
|
146
|
+
if match:
|
|
147
|
+
line_num = int(match.group(1)) - 1
|
|
148
|
+
parts.append(Text(line, style="cyan"))
|
|
149
|
+
elif line.startswith("+"):
|
|
150
|
+
line_num += 1
|
|
151
|
+
t = Text()
|
|
152
|
+
t.append(f"{line_num:4d} ", style="dim green")
|
|
153
|
+
t.append_text(_highlight_code(line[1:], language))
|
|
154
|
+
parts.append(t)
|
|
155
|
+
elif line.startswith("-"):
|
|
156
|
+
t = Text()
|
|
157
|
+
t.append(" - ", style="red")
|
|
158
|
+
t.append_text(_highlight_code(line[1:], language))
|
|
159
|
+
parts.append(t)
|
|
160
|
+
elif line.startswith(" "):
|
|
161
|
+
line_num += 1
|
|
162
|
+
t = Text()
|
|
163
|
+
t.append(f"{line_num:4d} ", style="dim")
|
|
164
|
+
t.append_text(_highlight_code(line[1:], language))
|
|
165
|
+
parts.append(t)
|
|
166
|
+
else:
|
|
167
|
+
parts.append(Text(line, style="dim"))
|
|
168
|
+
|
|
169
|
+
return parts
|
|
170
|
+
|
|
171
|
+
|
|
66
172
|
class GitPanel(BasePanel):
|
|
67
|
-
"""Multi-repo git status panel.
|
|
173
|
+
"""Multi-repo git status panel with diff drill-through.
|
|
68
174
|
|
|
69
|
-
Subscribes to the ``git``
|
|
70
|
-
git status for all configured repos
|
|
71
|
-
|
|
175
|
+
Subscribes to the ``git`` and ``diffs`` WebSocket channels.
|
|
176
|
+
Renders git status for all configured repos. Clicking a file
|
|
177
|
+
(Enter) shows its diff inline; Escape returns to the overview.
|
|
72
178
|
"""
|
|
73
179
|
|
|
74
180
|
channel: str = "git"
|
|
75
181
|
panel_name: str = "Git"
|
|
76
182
|
icon: str = PANEL_ICONS["git"][0]
|
|
183
|
+
can_focus = True
|
|
184
|
+
|
|
185
|
+
BINDINGS = [
|
|
186
|
+
Binding("up", "select_prev_key", "Up"),
|
|
187
|
+
Binding("down", "select_next_key", "Down"),
|
|
188
|
+
Binding("enter", "drill_into_file", "View diff"),
|
|
189
|
+
Binding("escape", "back_to_overview", "Back"),
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
def __init__(self, client=None, **kwargs):
|
|
193
|
+
super().__init__(client=client, **kwargs)
|
|
194
|
+
self._selected_index: int = 0
|
|
195
|
+
self._file_paths: list[str] = []
|
|
196
|
+
self._viewing_diff: bool = False
|
|
197
|
+
self._diff_file_path: str | None = None
|
|
198
|
+
self._diffs_payload: dict[str, Any] | None = None
|
|
199
|
+
|
|
200
|
+
# Subscribe to diffs channel for diff data
|
|
201
|
+
if client is not None:
|
|
202
|
+
client.subscribe("diffs", self._handle_diffs_message)
|
|
203
|
+
|
|
204
|
+
def _handle_diffs_message(self, message: dict[str, Any] | None) -> None:
|
|
205
|
+
"""Store diffs payload for drill-through rendering."""
|
|
206
|
+
if message is not None:
|
|
207
|
+
self._diffs_payload = message
|
|
208
|
+
# If viewing a diff, re-render with updated diff data
|
|
209
|
+
if self._viewing_diff:
|
|
210
|
+
self._rerender()
|
|
211
|
+
|
|
212
|
+
def handle_message(self, message: dict[str, Any] | None) -> None:
|
|
213
|
+
"""Handle incoming git message — build file path index then render."""
|
|
214
|
+
if message is not None:
|
|
215
|
+
self._build_file_paths(message)
|
|
216
|
+
super().handle_message(message)
|
|
217
|
+
|
|
218
|
+
def _build_file_paths(self, payload: dict[str, Any]) -> None:
|
|
219
|
+
"""Extract flat list of file paths from repos payload."""
|
|
220
|
+
paths: list[str] = []
|
|
221
|
+
repos = payload.get("repos", [])
|
|
222
|
+
if isinstance(repos, list):
|
|
223
|
+
for repo in repos:
|
|
224
|
+
if not isinstance(repo, dict):
|
|
225
|
+
continue
|
|
226
|
+
dirty_files = repo.get("dirtyFiles", [])
|
|
227
|
+
if not isinstance(dirty_files, list):
|
|
228
|
+
continue
|
|
229
|
+
for f in dirty_files:
|
|
230
|
+
if isinstance(f, dict):
|
|
231
|
+
path = f.get("path", "")
|
|
232
|
+
if path:
|
|
233
|
+
paths.append(path)
|
|
234
|
+
self._file_paths = paths
|
|
235
|
+
if self._selected_index >= len(paths):
|
|
236
|
+
self._selected_index = max(0, len(paths) - 1)
|
|
237
|
+
|
|
238
|
+
def select_next(self) -> None:
|
|
239
|
+
"""Move selection to the next file."""
|
|
240
|
+
if self._file_paths and self._selected_index < len(self._file_paths) - 1:
|
|
241
|
+
self._selected_index += 1
|
|
242
|
+
self._rerender()
|
|
243
|
+
|
|
244
|
+
def select_prev(self) -> None:
|
|
245
|
+
"""Move selection to the previous file."""
|
|
246
|
+
if self._selected_index > 0:
|
|
247
|
+
self._selected_index -= 1
|
|
248
|
+
self._rerender()
|
|
249
|
+
|
|
250
|
+
def action_select_next_key(self) -> None:
|
|
251
|
+
"""Binding action: move selection down."""
|
|
252
|
+
if not self._viewing_diff:
|
|
253
|
+
self.select_next()
|
|
254
|
+
|
|
255
|
+
def action_select_prev_key(self) -> None:
|
|
256
|
+
"""Binding action: move selection up."""
|
|
257
|
+
if not self._viewing_diff:
|
|
258
|
+
self.select_prev()
|
|
259
|
+
|
|
260
|
+
def action_drill_into_file(self) -> None:
|
|
261
|
+
"""Enter diff drill-through for the selected file."""
|
|
262
|
+
if self._viewing_diff:
|
|
263
|
+
return
|
|
264
|
+
if not self._file_paths:
|
|
265
|
+
return
|
|
266
|
+
if self._selected_index >= len(self._file_paths):
|
|
267
|
+
return
|
|
268
|
+
self._diff_file_path = self._file_paths[self._selected_index]
|
|
269
|
+
self._viewing_diff = True
|
|
270
|
+
self._rerender()
|
|
271
|
+
|
|
272
|
+
def action_back_to_overview(self) -> None:
|
|
273
|
+
"""Return to the repo overview from diff view."""
|
|
274
|
+
if self._viewing_diff:
|
|
275
|
+
self._viewing_diff = False
|
|
276
|
+
self._diff_file_path = None
|
|
277
|
+
self._rerender()
|
|
278
|
+
|
|
279
|
+
def _rerender(self) -> None:
|
|
280
|
+
"""Re-render panel with current payload."""
|
|
281
|
+
if self._last_payload:
|
|
282
|
+
try:
|
|
283
|
+
self.update(self.render_panel(self._last_payload))
|
|
284
|
+
except Exception:
|
|
285
|
+
pass
|
|
286
|
+
|
|
287
|
+
def _find_diff_for_path(self, path: str) -> dict[str, Any] | None:
|
|
288
|
+
"""Find a diff entry matching the given file path."""
|
|
289
|
+
if self._diffs_payload is None:
|
|
290
|
+
return None
|
|
291
|
+
diffs = self._diffs_payload.get("diffs", [])
|
|
292
|
+
for d in diffs:
|
|
293
|
+
d_path = d.get("path", "")
|
|
294
|
+
if d_path == path or d_path.endswith(path) or path.endswith(d_path):
|
|
295
|
+
return d
|
|
296
|
+
return None
|
|
77
297
|
|
|
78
298
|
def render_panel(self, payload: dict[str, Any]) -> Any:
|
|
79
|
-
"""Render git status
|
|
80
|
-
|
|
299
|
+
"""Render git status or diff drill-through view."""
|
|
300
|
+
if self._viewing_diff and self._diff_file_path:
|
|
301
|
+
return self._render_diff_view()
|
|
302
|
+
return self._render_repo_overview(payload)
|
|
303
|
+
|
|
304
|
+
def _render_diff_view(self) -> Any:
|
|
305
|
+
"""Render inline diff for the selected file."""
|
|
306
|
+
parts: list[Any] = []
|
|
81
307
|
|
|
308
|
+
# Back bar
|
|
309
|
+
back = Text()
|
|
310
|
+
back.append("← ", style="bold")
|
|
311
|
+
back.append("Esc", style="bold yellow")
|
|
312
|
+
back.append(" back ", style="dim")
|
|
313
|
+
back.append(self._diff_file_path or "", style="bold cyan")
|
|
314
|
+
parts.append(back)
|
|
315
|
+
parts.append(Text(""))
|
|
316
|
+
|
|
317
|
+
diff_entry = self._find_diff_for_path(self._diff_file_path or "")
|
|
318
|
+
if diff_entry:
|
|
319
|
+
parts.extend(_render_inline_diff(diff_entry))
|
|
320
|
+
else:
|
|
321
|
+
parts.append(Text(f"No diff available for {self._diff_file_path}", style="dim italic"))
|
|
322
|
+
|
|
323
|
+
return RichGroup(*parts)
|
|
324
|
+
|
|
325
|
+
def _render_repo_overview(self, payload: dict[str, Any]) -> Any:
|
|
326
|
+
"""Render git status as repo list with selectable file lists."""
|
|
82
327
|
repos = payload.get("repos", [])
|
|
83
328
|
if not repos:
|
|
84
329
|
return Text("No repository data", style="dim italic")
|
|
85
330
|
|
|
86
331
|
parts: list[Any] = []
|
|
332
|
+
flat_idx = 0
|
|
87
333
|
for repo in repos:
|
|
88
334
|
branch = repo.get("branch", "")
|
|
89
335
|
ahead = repo.get("ahead", 0)
|
|
@@ -120,7 +366,7 @@ class GitPanel(BasePanel):
|
|
|
120
366
|
|
|
121
367
|
parts.append(header)
|
|
122
368
|
|
|
123
|
-
# Expanded file list for dirty repos
|
|
369
|
+
# Expanded file list for dirty repos — with selection highlight
|
|
124
370
|
if not clean and dirty_files:
|
|
125
371
|
for f in dirty_files:
|
|
126
372
|
if not isinstance(f, dict):
|
|
@@ -128,12 +374,29 @@ class GitPanel(BasePanel):
|
|
|
128
374
|
status_code = f.get("status", " ")
|
|
129
375
|
path = f.get("path", "")
|
|
130
376
|
icon, label, style = _parse_file_status(status_code)
|
|
377
|
+
is_selected = flat_idx == self._selected_index
|
|
131
378
|
file_line = Text()
|
|
132
|
-
|
|
379
|
+
if is_selected:
|
|
380
|
+
file_line.append(" › ", style="bold reverse")
|
|
381
|
+
else:
|
|
382
|
+
file_line.append(" ")
|
|
133
383
|
file_line.append(icon, style=f"bold {style}")
|
|
134
|
-
file_line.append(
|
|
384
|
+
file_line.append(
|
|
385
|
+
f" {path}",
|
|
386
|
+
style="bold cyan reverse" if is_selected else style,
|
|
387
|
+
)
|
|
135
388
|
parts.append(file_line)
|
|
389
|
+
flat_idx += 1
|
|
136
390
|
|
|
137
391
|
parts.append(Text("")) # spacer
|
|
138
392
|
|
|
393
|
+
# Hint line
|
|
394
|
+
if self._file_paths:
|
|
395
|
+
hint = Text()
|
|
396
|
+
hint.append("↑↓", style="bold yellow")
|
|
397
|
+
hint.append(" select ", style="dim")
|
|
398
|
+
hint.append("Enter", style="bold yellow")
|
|
399
|
+
hint.append(" view diff", style="dim")
|
|
400
|
+
parts.append(hint)
|
|
401
|
+
|
|
139
402
|
return RichGroup(*parts)
|
|
@@ -41,6 +41,16 @@ def _extract_agent_slug(theme_yaml: Path, agent: str) -> str | None:
|
|
|
41
41
|
return None
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
def _is_lfs_pointer(path: Path) -> bool:
|
|
45
|
+
"""Check if a file is a git-lfs pointer instead of actual image data."""
|
|
46
|
+
try:
|
|
47
|
+
with open(path, "rb") as f:
|
|
48
|
+
header = f.read(44)
|
|
49
|
+
return header.startswith(b"version https://git-lfs")
|
|
50
|
+
except OSError:
|
|
51
|
+
return False
|
|
52
|
+
|
|
53
|
+
|
|
44
54
|
def _find_portrait(portraits_theme_dir: Path, slug: str) -> Path | None:
|
|
45
55
|
"""Find a portrait file matching the slug in a theme's portrait directory."""
|
|
46
56
|
if not portraits_theme_dir.is_dir():
|
|
@@ -50,11 +60,13 @@ def _find_portrait(portraits_theme_dir: Path, slug: str) -> Path | None:
|
|
|
50
60
|
if size_dir.is_dir():
|
|
51
61
|
for f in size_dir.iterdir():
|
|
52
62
|
if f.name.lower().startswith(slug.lower()) and f.suffix in (".png", ".jpg"):
|
|
53
|
-
|
|
63
|
+
if not _is_lfs_pointer(f):
|
|
64
|
+
return f
|
|
54
65
|
# Fallback to root of theme dir
|
|
55
66
|
for f in portraits_theme_dir.iterdir():
|
|
56
67
|
if f.is_file() and f.name.lower().startswith(slug.lower()) and f.suffix in (".png", ".jpg"):
|
|
57
|
-
|
|
68
|
+
if not _is_lfs_pointer(f):
|
|
69
|
+
return f
|
|
58
70
|
return None
|
|
59
71
|
|
|
60
72
|
|
|
@@ -101,6 +113,27 @@ def resolve_portrait_path(
|
|
|
101
113
|
if result:
|
|
102
114
|
return result
|
|
103
115
|
|
|
116
|
+
# Fallback: search Cyclist package portrait directories
|
|
117
|
+
# Portraits are bundled in @pennyfarthing/cyclist, not alongside theme YAMLs
|
|
118
|
+
root = project_root or Path.cwd()
|
|
119
|
+
cyclist_portrait_dirs = [
|
|
120
|
+
root / "packages" / "cyclist" / "portraits" / theme, # monorepo dev
|
|
121
|
+
root / "node_modules" / "@pennyfarthing" / "cyclist" / "portraits" / theme, # npm
|
|
122
|
+
]
|
|
123
|
+
# pnpm: resolve through .pennyfarthing symlink chain
|
|
124
|
+
pnpm_cyclist = root / "node_modules" / ".pnpm"
|
|
125
|
+
if pnpm_cyclist.is_dir():
|
|
126
|
+
for entry in pnpm_cyclist.iterdir():
|
|
127
|
+
if entry.name.startswith("@pennyfarthing+cyclist@"):
|
|
128
|
+
candidate = entry / "node_modules" / "@pennyfarthing" / "cyclist" / "portraits" / theme
|
|
129
|
+
cyclist_portrait_dirs.append(candidate)
|
|
130
|
+
break
|
|
131
|
+
|
|
132
|
+
for portraits_dir in cyclist_portrait_dirs:
|
|
133
|
+
result = _find_portrait(portraits_dir, slug)
|
|
134
|
+
if result:
|
|
135
|
+
return result
|
|
136
|
+
|
|
104
137
|
return None
|
|
105
138
|
|
|
106
139
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Combines story context, workflow phase, acceptance criteria, todos, and
|
|
4
4
|
git status into a single at-a-glance panel. Subscribes to 4 WS channels:
|
|
5
5
|
/ws/story, /ws/todos, /ws/git, /ws/sprint.
|
|
6
|
+
|
|
7
|
+
Story 120-8: Added Enter keybinding for story detail drill-through.
|
|
6
8
|
"""
|
|
7
9
|
|
|
8
10
|
from __future__ import annotations
|
|
@@ -11,6 +13,7 @@ from typing import Any
|
|
|
11
13
|
|
|
12
14
|
from rich.console import Group
|
|
13
15
|
from rich.text import Text
|
|
16
|
+
from textual.binding import Binding
|
|
14
17
|
|
|
15
18
|
from pf.bikerack.base_panel import (
|
|
16
19
|
PANEL_ICONS,
|
|
@@ -31,6 +34,10 @@ class ProgressPanel(BasePanel):
|
|
|
31
34
|
panel_name: str = "Progress"
|
|
32
35
|
icon: str = PANEL_ICONS.get("progress", ("\uf200", "P"))[0]
|
|
33
36
|
|
|
37
|
+
BINDINGS = [
|
|
38
|
+
Binding("enter", "drill_detail", "Story Details", show=False),
|
|
39
|
+
]
|
|
40
|
+
|
|
34
41
|
def __init__(self, client: Any = None, **kwargs: Any) -> None:
|
|
35
42
|
super().__init__(client=client, **kwargs)
|
|
36
43
|
self._story_data: dict[str, Any] | None = None
|
|
@@ -79,6 +86,49 @@ class ProgressPanel(BasePanel):
|
|
|
79
86
|
except Exception:
|
|
80
87
|
pass
|
|
81
88
|
|
|
89
|
+
def drill_into_story(self) -> None:
|
|
90
|
+
"""Push StoryDetailScreen for the current story."""
|
|
91
|
+
story_data = self._build_story_detail_data()
|
|
92
|
+
if story_data is None:
|
|
93
|
+
return
|
|
94
|
+
from pf.bikerack.story_detail_screen import StoryDetailScreen
|
|
95
|
+
|
|
96
|
+
try:
|
|
97
|
+
self.app.push_screen(StoryDetailScreen(story_data=story_data))
|
|
98
|
+
except Exception:
|
|
99
|
+
pass
|
|
100
|
+
|
|
101
|
+
def action_drill_detail(self) -> None:
|
|
102
|
+
"""Action handler for Enter keybinding — drill into story details."""
|
|
103
|
+
self.drill_into_story()
|
|
104
|
+
|
|
105
|
+
def _build_story_detail_data(self) -> dict[str, Any] | None:
|
|
106
|
+
"""Build story_data dict suitable for StoryDetailScreen."""
|
|
107
|
+
story = self._story_data or {}
|
|
108
|
+
sprint = self._sprint_data or {}
|
|
109
|
+
|
|
110
|
+
current = sprint.get("sprint", {}).get("currentStory")
|
|
111
|
+
if isinstance(current, str) and current:
|
|
112
|
+
story_id = current
|
|
113
|
+
else:
|
|
114
|
+
story_id = story.get("id", "")
|
|
115
|
+
|
|
116
|
+
if not story_id and not story.get("title"):
|
|
117
|
+
return None
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
"id": story_id,
|
|
121
|
+
"title": story.get("title", ""),
|
|
122
|
+
"points": story.get("points", ""),
|
|
123
|
+
"status": story.get("status", ""),
|
|
124
|
+
"assignee": story.get("assignee", ""),
|
|
125
|
+
"workflow": story.get("workflow", ""),
|
|
126
|
+
"workflow_phase": story.get("phase", ""),
|
|
127
|
+
**{k: v for k, v in story.items() if k not in (
|
|
128
|
+
"id", "title", "points", "status", "assignee", "workflow", "phase",
|
|
129
|
+
)},
|
|
130
|
+
}
|
|
131
|
+
|
|
82
132
|
def render_panel(self, payload: dict[str, Any]) -> Any:
|
|
83
133
|
"""Render unified progress view."""
|
|
84
134
|
parts: list[Any] = []
|
|
@@ -116,6 +166,10 @@ class ProgressPanel(BasePanel):
|
|
|
116
166
|
if git is not None:
|
|
117
167
|
parts.append(git)
|
|
118
168
|
|
|
169
|
+
# --- Drill-through hint ---
|
|
170
|
+
parts.append(Text(""))
|
|
171
|
+
parts.append(Text("[Enter] Story Details", style="dim"))
|
|
172
|
+
|
|
119
173
|
return Group(*parts)
|
|
120
174
|
|
|
121
175
|
def _render_story_header(self) -> Text | None:
|
|
@@ -280,6 +280,16 @@ class SprintPanel(Widget):
|
|
|
280
280
|
f"In Progress: {in_progress} | "
|
|
281
281
|
f"Velocity: {velocity}"
|
|
282
282
|
)
|
|
283
|
+
registry = payload.get("registry")
|
|
284
|
+
if registry and not registry.get("isDefault", True):
|
|
285
|
+
reg_type = registry.get("type", "")
|
|
286
|
+
reg_name = registry.get("name", "")
|
|
287
|
+
if reg_type and reg_name:
|
|
288
|
+
header_text.append(f" [{reg_type}:{reg_name}]")
|
|
289
|
+
elif reg_name:
|
|
290
|
+
header_text.append(f" [{reg_name}]")
|
|
291
|
+
elif reg_type:
|
|
292
|
+
header_text.append(f" [{reg_type}]")
|
|
283
293
|
try:
|
|
284
294
|
self.query_one("#sprint-header", Static).update(header_text)
|
|
285
295
|
except Exception:
|
|
@@ -289,7 +299,7 @@ class SprintPanel(Widget):
|
|
|
289
299
|
saved_expanded: dict[str, bool] = {}
|
|
290
300
|
for node in tree.root.children:
|
|
291
301
|
data = node.data
|
|
292
|
-
if data and data.get("type")
|
|
302
|
+
if data and data.get("type") in ("epic", "future_initiative"):
|
|
293
303
|
saved_expanded[data["id"]] = node.is_expanded
|
|
294
304
|
|
|
295
305
|
# Save cursor position by node identity
|
|
@@ -356,6 +366,111 @@ class SprintPanel(Widget):
|
|
|
356
366
|
if cursor_node_key == f"epic:{epic_id}":
|
|
357
367
|
cursor_target = epic_node
|
|
358
368
|
|
|
369
|
+
# Completed Epics section (Story 110-6)
|
|
370
|
+
completed_epics = payload.get("completedEpics", [])
|
|
371
|
+
if completed_epics:
|
|
372
|
+
separator_label = Text("── Completed ──", style="bold dim")
|
|
373
|
+
tree.root.add_leaf(separator_label, data={"type": "separator"})
|
|
374
|
+
|
|
375
|
+
for epic in completed_epics:
|
|
376
|
+
epic_id = epic.get("id", "")
|
|
377
|
+
epic_title = epic.get("title", "")
|
|
378
|
+
stories = epic.get("stories", [])
|
|
379
|
+
|
|
380
|
+
total_pts = 0
|
|
381
|
+
done_pts = 0
|
|
382
|
+
for story in stories:
|
|
383
|
+
pts = story.get("points", 0)
|
|
384
|
+
if isinstance(pts, (int, float)):
|
|
385
|
+
total_pts += pts
|
|
386
|
+
if _is_terminal(story.get("status", "")):
|
|
387
|
+
done_pts += pts
|
|
388
|
+
|
|
389
|
+
label = _build_epic_label(
|
|
390
|
+
epic_id, epic_title, done_pts, total_pts,
|
|
391
|
+
jira_key=epic.get("jiraKey", ""),
|
|
392
|
+
)
|
|
393
|
+
epic_data: dict[str, Any] = {
|
|
394
|
+
"type": "epic",
|
|
395
|
+
"id": epic_id,
|
|
396
|
+
"title": epic_title,
|
|
397
|
+
}
|
|
398
|
+
epic_node = tree.root.add(label, data=epic_data)
|
|
399
|
+
|
|
400
|
+
for story in stories:
|
|
401
|
+
story_label = _build_story_label(story, current_story_id)
|
|
402
|
+
story_data: dict[str, Any] = {"type": "story", "story": story}
|
|
403
|
+
epic_node.add_leaf(story_label, data=story_data)
|
|
404
|
+
|
|
405
|
+
# Completed epics: collapsed by default, respect saved state
|
|
406
|
+
if epic_id in saved_expanded:
|
|
407
|
+
if saved_expanded[epic_id]:
|
|
408
|
+
epic_node.expand()
|
|
409
|
+
else:
|
|
410
|
+
epic_node.collapse()
|
|
411
|
+
else:
|
|
412
|
+
epic_node.collapse()
|
|
413
|
+
|
|
414
|
+
if cursor_node_key == f"epic:{epic_id}":
|
|
415
|
+
cursor_target = epic_node
|
|
416
|
+
|
|
417
|
+
# Future Initiatives section (Story 118-1)
|
|
418
|
+
future_epics = payload.get("futureEpics", [])
|
|
419
|
+
if future_epics:
|
|
420
|
+
# Section separator
|
|
421
|
+
separator_label = Text("── Future Initiatives ──", style="bold dim")
|
|
422
|
+
tree.root.add_leaf(separator_label, data={"type": "separator"})
|
|
423
|
+
|
|
424
|
+
for initiative in future_epics:
|
|
425
|
+
init_id = initiative.get("id", "")
|
|
426
|
+
init_title = initiative.get("title", "")
|
|
427
|
+
init_pts = initiative.get("estimatedPoints", 0)
|
|
428
|
+
init_status = initiative.get("status", "planning")
|
|
429
|
+
children = initiative.get("children", [])
|
|
430
|
+
|
|
431
|
+
# Build initiative label
|
|
432
|
+
init_label = Text(no_wrap=True, overflow="ellipsis")
|
|
433
|
+
status_style = "green" if init_status == "ready" else "dim yellow"
|
|
434
|
+
init_label.append(f"[{init_status}]", style=status_style)
|
|
435
|
+
init_label.append(f" {init_title}", style="bold")
|
|
436
|
+
init_label.append(f" {init_pts} pts", style="dim")
|
|
437
|
+
if children:
|
|
438
|
+
init_label.append(f" ({len(children)} epics)", style="dim")
|
|
439
|
+
|
|
440
|
+
init_data: dict[str, Any] = {
|
|
441
|
+
"type": "future_initiative",
|
|
442
|
+
"id": init_id,
|
|
443
|
+
"title": init_title,
|
|
444
|
+
}
|
|
445
|
+
init_node = tree.root.add(init_label, data=init_data)
|
|
446
|
+
|
|
447
|
+
# Add child epics as leaves
|
|
448
|
+
for child in children:
|
|
449
|
+
child_label = Text(no_wrap=True, overflow="ellipsis")
|
|
450
|
+
child_status = child.get("status", "planning")
|
|
451
|
+
child_style = "green" if child_status == "ready" else "dim yellow"
|
|
452
|
+
child_label.append(f" [{child_status}]", style=child_style)
|
|
453
|
+
child_label.append(f" {child.get('title', '')}")
|
|
454
|
+
child_label.append(f" {child.get('estimatedPoints', 0)} pts", style="dim")
|
|
455
|
+
child_label.append(f" {child.get('storyCount', 0)} stories", style="dim")
|
|
456
|
+
child_data: dict[str, Any] = {
|
|
457
|
+
"type": "future_epic_child",
|
|
458
|
+
"id": child.get("id", ""),
|
|
459
|
+
}
|
|
460
|
+
init_node.add_leaf(child_label, data=child_data)
|
|
461
|
+
|
|
462
|
+
# Restore expand state or collapse by default
|
|
463
|
+
if init_id in saved_expanded:
|
|
464
|
+
if saved_expanded[init_id]:
|
|
465
|
+
init_node.expand()
|
|
466
|
+
else:
|
|
467
|
+
init_node.collapse()
|
|
468
|
+
else:
|
|
469
|
+
init_node.collapse()
|
|
470
|
+
|
|
471
|
+
if cursor_node_key == f"epic:{init_id}":
|
|
472
|
+
cursor_target = init_node
|
|
473
|
+
|
|
359
474
|
# Restore cursor position
|
|
360
475
|
if cursor_target is not None:
|
|
361
476
|
try:
|