@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
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"""Package CLI — theme package installation and portrait downloads.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
pf package list # Show all theme packages with status
|
|
5
|
+
pf package install comedy # Install package + download portraits
|
|
6
|
+
pf package install-portraits comedy # Download portraits for installed package
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import json
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
import click
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@click.group()
|
|
18
|
+
def package():
|
|
19
|
+
"""Theme package management.
|
|
20
|
+
|
|
21
|
+
\b
|
|
22
|
+
Commands:
|
|
23
|
+
list - Show all theme packages with status
|
|
24
|
+
install - Install a theme package (npm + portraits)
|
|
25
|
+
install-portraits - Download portraits for installed packages
|
|
26
|
+
"""
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@package.command("list")
|
|
31
|
+
@click.option("--json", "output_json", is_flag=True, help="Output as JSON.")
|
|
32
|
+
def list_cmd(output_json: bool):
|
|
33
|
+
"""Show all theme packages with installation status.
|
|
34
|
+
|
|
35
|
+
Displays each of the 7 theme packages with their current state:
|
|
36
|
+
installed, not installed, and whether portraits are downloaded.
|
|
37
|
+
"""
|
|
38
|
+
from pf.package.discovery import get_package_status
|
|
39
|
+
|
|
40
|
+
statuses = get_package_status()
|
|
41
|
+
|
|
42
|
+
if output_json:
|
|
43
|
+
click.echo(json.dumps(statuses, indent=2))
|
|
44
|
+
return
|
|
45
|
+
|
|
46
|
+
click.echo("Theme Packages")
|
|
47
|
+
click.echo("=" * 50)
|
|
48
|
+
click.echo("")
|
|
49
|
+
|
|
50
|
+
for pkg in statuses:
|
|
51
|
+
name = pkg["name"]
|
|
52
|
+
if not pkg["installed"]:
|
|
53
|
+
status = "not installed"
|
|
54
|
+
elif pkg["portraits"]:
|
|
55
|
+
status = "installed + portraits"
|
|
56
|
+
else:
|
|
57
|
+
status = "installed (no portraits)"
|
|
58
|
+
click.echo(f" {name:<22} {status}")
|
|
59
|
+
|
|
60
|
+
click.echo("")
|
|
61
|
+
installed = sum(1 for p in statuses if p["installed"])
|
|
62
|
+
with_portraits = sum(1 for p in statuses if p["portraits"])
|
|
63
|
+
click.echo(f"{installed}/{len(statuses)} installed, {with_portraits} with portraits")
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@package.command()
|
|
67
|
+
@click.argument("name")
|
|
68
|
+
@click.option("--skip-portraits", is_flag=True, help="Skip portrait download after install.")
|
|
69
|
+
@click.option("--all-sizes", is_flag=True, help="Download all portrait sizes (default: large only).")
|
|
70
|
+
@click.option("--dry-run", is_flag=True, help="Show what would be done without making changes.")
|
|
71
|
+
def install(name: str, skip_portraits: bool, all_sizes: bool, dry_run: bool):
|
|
72
|
+
"""Install a theme package and download its portraits.
|
|
73
|
+
|
|
74
|
+
Runs npm install for the package, then downloads portraits from
|
|
75
|
+
the GitHub monorepo via the gh CLI. Portraits are saved into the
|
|
76
|
+
package's node_modules directory where the portrait-resolver
|
|
77
|
+
already looks for them.
|
|
78
|
+
|
|
79
|
+
\b
|
|
80
|
+
Arguments:
|
|
81
|
+
NAME - Theme package name (comedy, literary, mythology-fantasy,
|
|
82
|
+
prestige-tv, realistic, scifi, superheroes)
|
|
83
|
+
"""
|
|
84
|
+
from pf.package.discovery import is_package_installed, npm_install
|
|
85
|
+
from pf.package.portraits import download_portraits
|
|
86
|
+
|
|
87
|
+
# Step 1: npm install
|
|
88
|
+
if is_package_installed(name) and not dry_run:
|
|
89
|
+
click.echo(f"@pennyfarthing/themes-{name} already installed, skipping npm install")
|
|
90
|
+
else:
|
|
91
|
+
if dry_run:
|
|
92
|
+
click.echo(f"[DRY-RUN] Would run: npm install @pennyfarthing/themes-{name}")
|
|
93
|
+
else:
|
|
94
|
+
click.echo(f"Installing @pennyfarthing/themes-{name}...")
|
|
95
|
+
|
|
96
|
+
result = npm_install(name, dry_run=dry_run)
|
|
97
|
+
if not result["success"]:
|
|
98
|
+
click.echo(f"Error: {result['error']}", err=True)
|
|
99
|
+
sys.exit(1)
|
|
100
|
+
|
|
101
|
+
if dry_run:
|
|
102
|
+
click.echo(f" Command: {result['data']['command']}")
|
|
103
|
+
else:
|
|
104
|
+
click.echo(" Installed successfully")
|
|
105
|
+
|
|
106
|
+
# Step 2: download portraits
|
|
107
|
+
if skip_portraits:
|
|
108
|
+
if not dry_run:
|
|
109
|
+
click.echo("Skipping portrait download (--skip-portraits)")
|
|
110
|
+
return
|
|
111
|
+
|
|
112
|
+
if dry_run:
|
|
113
|
+
click.echo(f"[DRY-RUN] Would download portraits (sizes: {'all' if all_sizes else 'large only'})")
|
|
114
|
+
else:
|
|
115
|
+
click.echo(f"Downloading portraits ({'all sizes' if all_sizes else 'large only'})...")
|
|
116
|
+
|
|
117
|
+
result = download_portraits(name, all_sizes=all_sizes, dry_run=dry_run)
|
|
118
|
+
if not result["success"]:
|
|
119
|
+
click.echo(f"Error: {result['error']}", err=True)
|
|
120
|
+
sys.exit(1)
|
|
121
|
+
|
|
122
|
+
data = result["data"]
|
|
123
|
+
if dry_run:
|
|
124
|
+
click.echo(f" {data['total_files']} files to download")
|
|
125
|
+
click.echo(f" Destination: {data['destination']}")
|
|
126
|
+
if data.get("files"):
|
|
127
|
+
for f in data["files"]:
|
|
128
|
+
click.echo(f" {f}")
|
|
129
|
+
if data.get("truncated"):
|
|
130
|
+
click.echo(" ...")
|
|
131
|
+
else:
|
|
132
|
+
click.echo(f" Downloaded: {data['downloaded']}, Skipped: {data['skipped']}, Total: {data['total']}")
|
|
133
|
+
if data.get("error_count"):
|
|
134
|
+
click.echo(f" Errors: {data['error_count']}")
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
@package.command("install-portraits")
|
|
138
|
+
@click.argument("name", required=False)
|
|
139
|
+
@click.option("--all", "install_all", is_flag=True, help="Download portraits for all installed packages.")
|
|
140
|
+
@click.option("--all-sizes", is_flag=True, help="Download all portrait sizes (default: large only).")
|
|
141
|
+
@click.option("--dry-run", is_flag=True, help="Show what would be done without making changes.")
|
|
142
|
+
def install_portraits(name: str | None, install_all: bool, all_sizes: bool, dry_run: bool):
|
|
143
|
+
"""Download portraits for already-installed theme packages.
|
|
144
|
+
|
|
145
|
+
Requires either a package NAME or --all. Downloads portrait images
|
|
146
|
+
from the GitHub monorepo and saves them into the package's
|
|
147
|
+
node_modules directory.
|
|
148
|
+
|
|
149
|
+
\b
|
|
150
|
+
Arguments:
|
|
151
|
+
NAME - Theme package name (optional if --all is used)
|
|
152
|
+
"""
|
|
153
|
+
from pf.package.discovery import THEME_PACKAGES, is_package_installed
|
|
154
|
+
from pf.package.portraits import download_portraits
|
|
155
|
+
|
|
156
|
+
if not name and not install_all:
|
|
157
|
+
click.echo("Error: provide a package name or use --all", err=True)
|
|
158
|
+
sys.exit(1)
|
|
159
|
+
|
|
160
|
+
packages = THEME_PACKAGES if install_all else [name]
|
|
161
|
+
|
|
162
|
+
for pkg_name in packages:
|
|
163
|
+
if not is_package_installed(pkg_name):
|
|
164
|
+
if install_all:
|
|
165
|
+
continue # silently skip uninstalled packages in --all mode
|
|
166
|
+
click.echo(
|
|
167
|
+
f"Error: @pennyfarthing/themes-{pkg_name} is not installed. "
|
|
168
|
+
f"Run: pf package install {pkg_name}",
|
|
169
|
+
err=True,
|
|
170
|
+
)
|
|
171
|
+
sys.exit(1)
|
|
172
|
+
|
|
173
|
+
click.echo(f"Downloading portraits for {pkg_name} ({'all sizes' if all_sizes else 'large only'})...")
|
|
174
|
+
|
|
175
|
+
result = download_portraits(pkg_name, all_sizes=all_sizes, dry_run=dry_run)
|
|
176
|
+
if not result["success"]:
|
|
177
|
+
click.echo(f" Error: {result['error']}", err=True)
|
|
178
|
+
if not install_all:
|
|
179
|
+
sys.exit(1)
|
|
180
|
+
continue
|
|
181
|
+
|
|
182
|
+
data = result["data"]
|
|
183
|
+
if dry_run:
|
|
184
|
+
click.echo(f" [DRY-RUN] {data['total_files']} files would be downloaded")
|
|
185
|
+
else:
|
|
186
|
+
click.echo(f" Downloaded: {data['downloaded']}, Skipped: {data['skipped']}, Total: {data['total']}")
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"""Package discovery and npm install wrapper for theme packages.
|
|
2
|
+
|
|
3
|
+
Checks installation status of @pennyfarthing/themes-* packages and
|
|
4
|
+
provides npm install functionality.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import json
|
|
10
|
+
import shutil
|
|
11
|
+
import subprocess
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
from pf.common.config import get_project_root
|
|
16
|
+
|
|
17
|
+
THEME_PACKAGES = [
|
|
18
|
+
"comedy",
|
|
19
|
+
"literary",
|
|
20
|
+
"mythology-fantasy",
|
|
21
|
+
"prestige-tv",
|
|
22
|
+
"realistic",
|
|
23
|
+
"scifi",
|
|
24
|
+
"superheroes",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
PORTRAIT_SIZES = ["small", "medium", "large", "xlarge"]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _node_modules_dir(project_root: Path | None = None) -> Path:
|
|
31
|
+
"""Return the node_modules/@pennyfarthing directory."""
|
|
32
|
+
root = project_root or get_project_root()
|
|
33
|
+
return root / "node_modules" / "@pennyfarthing"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def get_package_dir(name: str, project_root: Path | None = None) -> Path:
|
|
37
|
+
"""Return the path to a theme package in node_modules."""
|
|
38
|
+
return _node_modules_dir(project_root) / f"themes-{name}"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def is_package_installed(name: str, project_root: Path | None = None) -> bool:
|
|
42
|
+
"""Check if a theme package is installed in node_modules."""
|
|
43
|
+
pkg_dir = get_package_dir(name, project_root)
|
|
44
|
+
pkg_json = pkg_dir / "package.json"
|
|
45
|
+
if not pkg_json.is_file():
|
|
46
|
+
return False
|
|
47
|
+
try:
|
|
48
|
+
data = json.loads(pkg_json.read_text())
|
|
49
|
+
return data.get("pennyfarthing-theme-pack") is True
|
|
50
|
+
except Exception:
|
|
51
|
+
return False
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def has_portraits(name: str, project_root: Path | None = None) -> bool:
|
|
55
|
+
"""Check if a theme package has portraits downloaded."""
|
|
56
|
+
pkg_dir = get_package_dir(name, project_root)
|
|
57
|
+
portraits_dir = pkg_dir / "portraits"
|
|
58
|
+
if not portraits_dir.is_dir():
|
|
59
|
+
return False
|
|
60
|
+
# Check for at least one image file in any subdirectory
|
|
61
|
+
for child in portraits_dir.rglob("*"):
|
|
62
|
+
if child.is_file() and child.suffix.lower() in (".png", ".jpg", ".jpeg", ".webp"):
|
|
63
|
+
return True
|
|
64
|
+
return False
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def get_package_status(
|
|
68
|
+
project_root: Path | None = None,
|
|
69
|
+
) -> list[dict[str, Any]]:
|
|
70
|
+
"""Get installation status for all theme packages.
|
|
71
|
+
|
|
72
|
+
Returns:
|
|
73
|
+
List of dicts with keys: name, installed, portraits
|
|
74
|
+
"""
|
|
75
|
+
results = []
|
|
76
|
+
for name in THEME_PACKAGES:
|
|
77
|
+
installed = is_package_installed(name, project_root)
|
|
78
|
+
portraits = has_portraits(name, project_root) if installed else False
|
|
79
|
+
results.append({
|
|
80
|
+
"name": name,
|
|
81
|
+
"installed": installed,
|
|
82
|
+
"portraits": portraits,
|
|
83
|
+
})
|
|
84
|
+
return results
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def npm_install(
|
|
88
|
+
name: str,
|
|
89
|
+
project_root: Path | None = None,
|
|
90
|
+
dry_run: bool = False,
|
|
91
|
+
) -> dict[str, Any]:
|
|
92
|
+
"""Install a theme package via npm.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
name: Theme package name (e.g. "comedy")
|
|
96
|
+
project_root: Project root (auto-detected if not provided)
|
|
97
|
+
dry_run: If True, show what would happen without executing
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Result dict with success, data?, error?
|
|
101
|
+
"""
|
|
102
|
+
if name not in THEME_PACKAGES:
|
|
103
|
+
return {"success": False, "error": f"Unknown theme package: {name}"}
|
|
104
|
+
|
|
105
|
+
if shutil.which("npm") is None:
|
|
106
|
+
return {"success": False, "error": "npm not found. Install Node.js first."}
|
|
107
|
+
|
|
108
|
+
root = project_root or get_project_root()
|
|
109
|
+
pkg_spec = f"@pennyfarthing/themes-{name}"
|
|
110
|
+
|
|
111
|
+
if dry_run:
|
|
112
|
+
return {
|
|
113
|
+
"success": True,
|
|
114
|
+
"data": {"action": "dry-run", "command": f"npm install {pkg_spec}", "cwd": str(root)},
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
result = subprocess.run(
|
|
118
|
+
["npm", "install", pkg_spec],
|
|
119
|
+
capture_output=True,
|
|
120
|
+
text=True,
|
|
121
|
+
cwd=str(root),
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
if result.returncode != 0:
|
|
125
|
+
return {
|
|
126
|
+
"success": False,
|
|
127
|
+
"error": f"npm install failed: {result.stderr.strip()}",
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {"success": True, "data": {"package": pkg_spec, "output": result.stdout.strip()}}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"""Portrait download via GitHub Contents API + gh CLI.
|
|
2
|
+
|
|
3
|
+
Downloads portrait images from the pennyfarthing monorepo using the
|
|
4
|
+
GitHub CLI, saving them into the installed theme package's portraits/
|
|
5
|
+
directory in node_modules.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
import shutil
|
|
12
|
+
import subprocess
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
from typing import Any
|
|
15
|
+
|
|
16
|
+
from pf.package.discovery import (
|
|
17
|
+
PORTRAIT_SIZES,
|
|
18
|
+
THEME_PACKAGES,
|
|
19
|
+
get_package_dir,
|
|
20
|
+
is_package_installed,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
GITHUB_REPO = "1898andCo/pennyfarthing"
|
|
24
|
+
GITHUB_BRANCH = "develop"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _gh_available() -> bool:
|
|
28
|
+
"""Check if the gh CLI is available."""
|
|
29
|
+
return shutil.which("gh") is not None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _list_contents(path: str) -> dict[str, Any]:
|
|
33
|
+
"""List contents of a path in the GitHub repo via gh API.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
path: Repo-relative path (e.g. "packages/themes-comedy/portraits")
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
Result dict with success, data (list of entries), or error
|
|
40
|
+
"""
|
|
41
|
+
result = subprocess.run(
|
|
42
|
+
[
|
|
43
|
+
"gh", "api",
|
|
44
|
+
f"repos/{GITHUB_REPO}/contents/{path}?ref={GITHUB_BRANCH}",
|
|
45
|
+
],
|
|
46
|
+
capture_output=True,
|
|
47
|
+
text=True,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
if result.returncode != 0:
|
|
51
|
+
return {"success": False, "error": result.stderr.strip()}
|
|
52
|
+
|
|
53
|
+
try:
|
|
54
|
+
data = json.loads(result.stdout)
|
|
55
|
+
if isinstance(data, dict) and data.get("message"):
|
|
56
|
+
return {"success": False, "error": data["message"]}
|
|
57
|
+
return {"success": True, "data": data if isinstance(data, list) else [data]}
|
|
58
|
+
except json.JSONDecodeError:
|
|
59
|
+
return {"success": False, "error": f"Invalid JSON response for {path}"}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _collect_portrait_files(
|
|
63
|
+
name: str,
|
|
64
|
+
all_sizes: bool = False,
|
|
65
|
+
) -> dict[str, Any]:
|
|
66
|
+
"""Recursively collect portrait file paths from GitHub.
|
|
67
|
+
|
|
68
|
+
Uses the Contents API to walk the portrait directory tree.
|
|
69
|
+
Default: only collects files under the 'large/' size directory.
|
|
70
|
+
With all_sizes: collects all 4 resolution directories.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
name: Theme package name (e.g. "comedy")
|
|
74
|
+
all_sizes: If True, download all portrait sizes
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
Result dict with success, data (list of file entries), or error
|
|
78
|
+
"""
|
|
79
|
+
base_path = f"packages/themes-{name}/portraits"
|
|
80
|
+
allowed_sizes = set(PORTRAIT_SIZES) if all_sizes else {"large"}
|
|
81
|
+
|
|
82
|
+
# List top-level portrait directory — expect theme subdirectories
|
|
83
|
+
top_result = _list_contents(base_path)
|
|
84
|
+
if not top_result["success"]:
|
|
85
|
+
return top_result
|
|
86
|
+
|
|
87
|
+
files_to_download: list[dict[str, str]] = []
|
|
88
|
+
|
|
89
|
+
# Each entry at top level is a theme subdirectory (e.g. "classical-composers")
|
|
90
|
+
for theme_entry in top_result["data"]:
|
|
91
|
+
if theme_entry.get("type") != "dir":
|
|
92
|
+
continue
|
|
93
|
+
|
|
94
|
+
theme_name = theme_entry["name"]
|
|
95
|
+
theme_path = f"{base_path}/{theme_name}"
|
|
96
|
+
|
|
97
|
+
# List size directories under each theme
|
|
98
|
+
sizes_result = _list_contents(theme_path)
|
|
99
|
+
if not sizes_result["success"]:
|
|
100
|
+
continue
|
|
101
|
+
|
|
102
|
+
for size_entry in sizes_result["data"]:
|
|
103
|
+
if size_entry.get("type") != "dir":
|
|
104
|
+
continue
|
|
105
|
+
if size_entry["name"] not in allowed_sizes:
|
|
106
|
+
continue
|
|
107
|
+
|
|
108
|
+
size_path = f"{theme_path}/{size_entry['name']}"
|
|
109
|
+
|
|
110
|
+
# List image files in this size directory
|
|
111
|
+
images_result = _list_contents(size_path)
|
|
112
|
+
if not images_result["success"]:
|
|
113
|
+
continue
|
|
114
|
+
|
|
115
|
+
for img_entry in images_result["data"]:
|
|
116
|
+
if img_entry.get("type") != "file":
|
|
117
|
+
continue
|
|
118
|
+
files_to_download.append({
|
|
119
|
+
"path": img_entry["path"],
|
|
120
|
+
"download_url": img_entry.get("download_url", ""),
|
|
121
|
+
"name": img_entry["name"],
|
|
122
|
+
"relative": f"{theme_name}/{size_entry['name']}/{img_entry['name']}",
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
return {"success": True, "data": files_to_download}
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def _download_file(download_url: str, dest: Path) -> dict[str, Any]:
|
|
129
|
+
"""Download a single file using curl.
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
download_url: Direct download URL (from GitHub Contents API download_url field)
|
|
133
|
+
dest: Local destination path
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
Result dict with success or error
|
|
137
|
+
"""
|
|
138
|
+
dest.parent.mkdir(parents=True, exist_ok=True)
|
|
139
|
+
|
|
140
|
+
result = subprocess.run(
|
|
141
|
+
["curl", "-fsSL", "-o", str(dest), download_url],
|
|
142
|
+
capture_output=True,
|
|
143
|
+
text=True,
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
if result.returncode != 0:
|
|
147
|
+
dest.unlink(missing_ok=True)
|
|
148
|
+
return {"success": False, "error": result.stderr.strip()}
|
|
149
|
+
|
|
150
|
+
return {"success": True}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def download_portraits(
|
|
154
|
+
name: str,
|
|
155
|
+
project_root: Path | None = None,
|
|
156
|
+
all_sizes: bool = False,
|
|
157
|
+
dry_run: bool = False,
|
|
158
|
+
) -> dict[str, Any]:
|
|
159
|
+
"""Download portraits for a theme package.
|
|
160
|
+
|
|
161
|
+
1. Validates gh CLI is available
|
|
162
|
+
2. Validates the package is installed
|
|
163
|
+
3. Lists portrait files from GitHub Contents API
|
|
164
|
+
4. Downloads each file, skipping already-existing ones
|
|
165
|
+
|
|
166
|
+
Args:
|
|
167
|
+
name: Theme package name (e.g. "comedy")
|
|
168
|
+
project_root: Project root (auto-detected if not provided)
|
|
169
|
+
all_sizes: If True, download all portrait sizes (default: large only)
|
|
170
|
+
dry_run: If True, show what would happen without downloading
|
|
171
|
+
|
|
172
|
+
Returns:
|
|
173
|
+
Result dict with success, data (download stats), or error
|
|
174
|
+
"""
|
|
175
|
+
if name not in THEME_PACKAGES:
|
|
176
|
+
return {"success": False, "error": f"Unknown theme package: {name}"}
|
|
177
|
+
|
|
178
|
+
if not _gh_available():
|
|
179
|
+
return {
|
|
180
|
+
"success": False,
|
|
181
|
+
"error": "gh CLI not found. Install with: brew install gh",
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if not dry_run and not is_package_installed(name, project_root):
|
|
185
|
+
return {
|
|
186
|
+
"success": False,
|
|
187
|
+
"error": f"Package @pennyfarthing/themes-{name} is not installed. Run: pf package install {name}",
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if dry_run:
|
|
191
|
+
pkg_dir = get_package_dir(name, project_root)
|
|
192
|
+
portraits_dir = pkg_dir / "portraits"
|
|
193
|
+
return {
|
|
194
|
+
"success": True,
|
|
195
|
+
"data": {
|
|
196
|
+
"action": "dry-run",
|
|
197
|
+
"total_files": "(would query GitHub API)",
|
|
198
|
+
"destination": str(portraits_dir),
|
|
199
|
+
"sizes": "all" if all_sizes else "large only",
|
|
200
|
+
},
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
# Collect file list from GitHub
|
|
204
|
+
collect_result = _collect_portrait_files(name, all_sizes=all_sizes)
|
|
205
|
+
if not collect_result["success"]:
|
|
206
|
+
return collect_result
|
|
207
|
+
|
|
208
|
+
files = collect_result["data"]
|
|
209
|
+
if not files:
|
|
210
|
+
return {"success": True, "data": {"downloaded": 0, "skipped": 0, "message": "No portrait files found"}}
|
|
211
|
+
|
|
212
|
+
pkg_dir = get_package_dir(name, project_root)
|
|
213
|
+
portraits_dir = pkg_dir / "portraits"
|
|
214
|
+
|
|
215
|
+
downloaded = 0
|
|
216
|
+
skipped = 0
|
|
217
|
+
errors = []
|
|
218
|
+
|
|
219
|
+
for file_entry in files:
|
|
220
|
+
dest = portraits_dir / file_entry["relative"]
|
|
221
|
+
|
|
222
|
+
# Skip files that already exist (idempotent)
|
|
223
|
+
if dest.is_file():
|
|
224
|
+
skipped += 1
|
|
225
|
+
continue
|
|
226
|
+
|
|
227
|
+
dl_result = _download_file(file_entry["download_url"], dest)
|
|
228
|
+
if dl_result["success"]:
|
|
229
|
+
downloaded += 1
|
|
230
|
+
else:
|
|
231
|
+
errors.append(f"{file_entry['relative']}: {dl_result['error']}")
|
|
232
|
+
|
|
233
|
+
result_data: dict[str, Any] = {
|
|
234
|
+
"downloaded": downloaded,
|
|
235
|
+
"skipped": skipped,
|
|
236
|
+
"total": len(files),
|
|
237
|
+
"destination": str(portraits_dir),
|
|
238
|
+
}
|
|
239
|
+
if errors:
|
|
240
|
+
result_data["errors"] = errors[:5]
|
|
241
|
+
result_data["error_count"] = len(errors)
|
|
242
|
+
|
|
243
|
+
return {"success": True, "data": result_data}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15,7 +15,7 @@ from __future__ import annotations
|
|
|
15
15
|
import re
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
|
|
18
|
-
from pf.common.config import get_project_root
|
|
18
|
+
from pf.common.config import get_dist_root, get_project_root
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def load_agent_definition(agent_name: str, project_root: Path | None = None) -> str | None:
|
|
@@ -31,10 +31,17 @@ def load_agent_definition(agent_name: str, project_root: Path | None = None) ->
|
|
|
31
31
|
root = project_root or get_project_root()
|
|
32
32
|
agent_file = root / ".pennyfarthing" / "agents" / f"{agent_name}.md"
|
|
33
33
|
|
|
34
|
-
if
|
|
35
|
-
return
|
|
34
|
+
if agent_file.exists():
|
|
35
|
+
return agent_file.read_text()
|
|
36
|
+
|
|
37
|
+
# Fallback: pennyfarthing-dist via get_dist_root (npm context)
|
|
38
|
+
dist_root = get_dist_root(project_root=root)
|
|
39
|
+
if dist_root:
|
|
40
|
+
agent_file = dist_root / "agents" / f"{agent_name}.md"
|
|
41
|
+
if agent_file.exists():
|
|
42
|
+
return agent_file.read_text()
|
|
36
43
|
|
|
37
|
-
return
|
|
44
|
+
return None
|
|
38
45
|
|
|
39
46
|
|
|
40
47
|
def load_behavior_guide(project_root: Path | None = None) -> str | None:
|
|
@@ -49,10 +56,17 @@ def load_behavior_guide(project_root: Path | None = None) -> str | None:
|
|
|
49
56
|
root = project_root or get_project_root()
|
|
50
57
|
guide_file = root / ".pennyfarthing" / "guides" / "agent-behavior.md"
|
|
51
58
|
|
|
52
|
-
if
|
|
53
|
-
return
|
|
59
|
+
if guide_file.exists():
|
|
60
|
+
return guide_file.read_text()
|
|
61
|
+
|
|
62
|
+
# Fallback: pennyfarthing-dist via get_dist_root (npm context)
|
|
63
|
+
dist_root = get_dist_root(project_root=root)
|
|
64
|
+
if dist_root:
|
|
65
|
+
guide_file = dist_root / "guides" / "agent-behavior.md"
|
|
66
|
+
if guide_file.exists():
|
|
67
|
+
return guide_file.read_text()
|
|
54
68
|
|
|
55
|
-
return
|
|
69
|
+
return None
|
|
56
70
|
|
|
57
71
|
|
|
58
72
|
def load_sprint_context(project_root: Path | None = None) -> str | None:
|
|
@@ -15,7 +15,7 @@ from typing import Any
|
|
|
15
15
|
|
|
16
16
|
import yaml
|
|
17
17
|
|
|
18
|
-
from pf.common.config import get_project_root
|
|
18
|
+
from pf.common.config import get_dist_root, get_project_root
|
|
19
19
|
from pf.prime.models import WorkflowState, WorkflowStatus
|
|
20
20
|
|
|
21
21
|
|
|
@@ -133,7 +133,11 @@ def get_phase_owner(workflow: str, phase: str, project_root: Path) -> str | None
|
|
|
133
133
|
Returns:
|
|
134
134
|
Agent name (sm, tea, dev, reviewer), or None if not found
|
|
135
135
|
"""
|
|
136
|
-
|
|
136
|
+
dist_root = get_dist_root(project_root=project_root)
|
|
137
|
+
if dist_root:
|
|
138
|
+
workflow_path = dist_root / "workflows" / f"{workflow}.yaml"
|
|
139
|
+
else:
|
|
140
|
+
workflow_path = project_root / "pennyfarthing-dist" / "workflows" / f"{workflow}.yaml"
|
|
137
141
|
|
|
138
142
|
if not workflow_path.exists():
|
|
139
143
|
# Fallback to symlinked location
|
|
@@ -296,7 +300,11 @@ def get_phase_tandem_config(
|
|
|
296
300
|
or None if no tandem config on this phase.
|
|
297
301
|
"""
|
|
298
302
|
root = project_root or get_project_root()
|
|
299
|
-
|
|
303
|
+
dist_root = get_dist_root(project_root=root)
|
|
304
|
+
if dist_root:
|
|
305
|
+
workflow_path = dist_root / "workflows" / f"{workflow_name}.yaml"
|
|
306
|
+
else:
|
|
307
|
+
workflow_path = root / "pennyfarthing-dist" / "workflows" / f"{workflow_name}.yaml"
|
|
300
308
|
|
|
301
309
|
if not workflow_path.exists():
|
|
302
310
|
return None
|
|
File without changes
|
|
Binary file
|