@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,745 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DockviewWorkspace - Dockview-based panel management for Cyclist
|
|
3
|
+
*
|
|
4
|
+
* Story MSSCI-14001: Replace DockingWorkspace with Dockview
|
|
5
|
+
* Epic: epic-76 (Dockview Panel Migration)
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Three-region layout (left sidebar, center sacred, right sidebar)
|
|
9
|
+
* - Message view is sacred (fixed center, cannot be closed or moved)
|
|
10
|
+
* - Tabbed panels in sidebars with drag-and-drop
|
|
11
|
+
* - Responsive breakpoints (auto-collapse at <1024px)
|
|
12
|
+
* - Layout persistence via native Dockview toJSON/fromJSON
|
|
13
|
+
* - Theme integration via CSS custom properties
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import React, { useEffect, useRef, useCallback, useState } from 'react';
|
|
17
|
+
import { Button } from '@/components/ui/button';
|
|
18
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
|
19
|
+
import {
|
|
20
|
+
DockviewReact,
|
|
21
|
+
DockviewReadyEvent,
|
|
22
|
+
IDockviewPanelProps,
|
|
23
|
+
DockviewApi,
|
|
24
|
+
IDockviewPanel,
|
|
25
|
+
SerializedDockview,
|
|
26
|
+
DockviewDefaultTab,
|
|
27
|
+
} from 'dockview-react';
|
|
28
|
+
import 'dockview-react/dist/styles/dockview.css';
|
|
29
|
+
import { ErrorBoundary } from './ErrorBoundary';
|
|
30
|
+
import { panelRegistry, type PanelComponent } from './panel-registry';
|
|
31
|
+
import { useResponsiveLayout, MIN_DIMENSIONS, SIDEBAR_WIDTHS } from '../hooks/useResponsiveLayout';
|
|
32
|
+
import { useFocusPanel } from '../hooks/useFocusPanel.js';
|
|
33
|
+
import '../styles/dockview-theme.css';
|
|
34
|
+
|
|
35
|
+
// =============================================================================
|
|
36
|
+
// Panel Inventory - All available panels in Cyclist
|
|
37
|
+
// =============================================================================
|
|
38
|
+
|
|
39
|
+
export const PANEL_INVENTORY = {
|
|
40
|
+
// Left sidebar panels
|
|
41
|
+
GIT: 'git',
|
|
42
|
+
DIFFS: 'diffs',
|
|
43
|
+
DEBUG: 'debug',
|
|
44
|
+
AUDIT_LOG: 'audit-log',
|
|
45
|
+
// Center panel (sacred)
|
|
46
|
+
MESSAGE: 'message',
|
|
47
|
+
// Right sidebar panels
|
|
48
|
+
SPRINT: 'sprint',
|
|
49
|
+
WORKFLOW: 'workflow',
|
|
50
|
+
AC: 'ac',
|
|
51
|
+
TODO: 'todo',
|
|
52
|
+
SETTINGS: 'settings',
|
|
53
|
+
PROGRESS: 'progress',
|
|
54
|
+
TANDEM: 'tandem',
|
|
55
|
+
} as const;
|
|
56
|
+
|
|
57
|
+
export type PanelId = typeof PANEL_INVENTORY[keyof typeof PANEL_INVENTORY];
|
|
58
|
+
|
|
59
|
+
// =============================================================================
|
|
60
|
+
// Panel Component Registry
|
|
61
|
+
// =============================================================================
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Register a panel component by ID
|
|
65
|
+
*/
|
|
66
|
+
export function registerPanelComponent(id: string, component: PanelComponent): void {
|
|
67
|
+
panelRegistry.set(id, component);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// =============================================================================
|
|
71
|
+
// Global API Reference
|
|
72
|
+
// =============================================================================
|
|
73
|
+
|
|
74
|
+
let dockviewApiRef: DockviewApi | null = null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Get the Dockview API instance for external access
|
|
78
|
+
*/
|
|
79
|
+
export function getDockviewApi(): DockviewApi | null {
|
|
80
|
+
return dockviewApiRef;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Panel group definitions (needed for restore logic)
|
|
84
|
+
// Exported so layout persistence can merge missing panels
|
|
85
|
+
export const LEFT_SIDEBAR_PANELS = [PANEL_INVENTORY.GIT, PANEL_INVENTORY.DIFFS, PANEL_INVENTORY.DEBUG, PANEL_INVENTORY.AUDIT_LOG] as const;
|
|
86
|
+
export const RIGHT_SIDEBAR_PANELS = [
|
|
87
|
+
PANEL_INVENTORY.SPRINT,
|
|
88
|
+
PANEL_INVENTORY.WORKFLOW,
|
|
89
|
+
PANEL_INVENTORY.AC,
|
|
90
|
+
PANEL_INVENTORY.TODO,
|
|
91
|
+
PANEL_INVENTORY.SETTINGS,
|
|
92
|
+
PANEL_INVENTORY.TANDEM,
|
|
93
|
+
] as const;
|
|
94
|
+
|
|
95
|
+
// Title Case display names for tab headers (AC4: Story 75-5)
|
|
96
|
+
const PANEL_TITLES: Record<string, string> = {
|
|
97
|
+
git: 'Git',
|
|
98
|
+
diffs: 'Diffs',
|
|
99
|
+
debug: 'Debug',
|
|
100
|
+
'audit-log': 'Audit Log',
|
|
101
|
+
message: 'Message',
|
|
102
|
+
sprint: 'Sprint',
|
|
103
|
+
workflow: 'Workflow',
|
|
104
|
+
ac: 'AC',
|
|
105
|
+
todo: 'Todo',
|
|
106
|
+
settings: 'Settings',
|
|
107
|
+
progress: 'Progress',
|
|
108
|
+
tandem: 'Tandem',
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// Track closed panels for restoration
|
|
112
|
+
const closedPanels: Set<string> = new Set();
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Get list of closed panels that can be restored
|
|
116
|
+
*/
|
|
117
|
+
export function getClosedPanels(): string[] {
|
|
118
|
+
return Array.from(closedPanels);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Restore a previously closed panel
|
|
123
|
+
*/
|
|
124
|
+
export function restorePanel(panelId: string): boolean {
|
|
125
|
+
const api = dockviewApiRef;
|
|
126
|
+
if (!api) return false;
|
|
127
|
+
|
|
128
|
+
// If panel already exists in Dockview, nothing to restore
|
|
129
|
+
if (api.getPanel(panelId)) return false;
|
|
130
|
+
|
|
131
|
+
// Determine which group to add it to
|
|
132
|
+
const isLeftPanel = LEFT_SIDEBAR_PANELS.includes(panelId as any);
|
|
133
|
+
const isRightPanel = RIGHT_SIDEBAR_PANELS.includes(panelId as any);
|
|
134
|
+
|
|
135
|
+
// Find a reference panel in the appropriate group
|
|
136
|
+
let referencePanel: IDockviewPanel | undefined;
|
|
137
|
+
|
|
138
|
+
if (isLeftPanel) {
|
|
139
|
+
for (const id of LEFT_SIDEBAR_PANELS) {
|
|
140
|
+
const panel = api.getPanel(id);
|
|
141
|
+
if (panel) {
|
|
142
|
+
referencePanel = panel;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
} else if (isRightPanel) {
|
|
147
|
+
for (const id of RIGHT_SIDEBAR_PANELS) {
|
|
148
|
+
const panel = api.getPanel(id);
|
|
149
|
+
if (panel) {
|
|
150
|
+
referencePanel = panel;
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Add the panel back
|
|
157
|
+
api.addPanel({
|
|
158
|
+
id: panelId,
|
|
159
|
+
component: 'PanelAdapter',
|
|
160
|
+
params: { panelId },
|
|
161
|
+
position: referencePanel ? { referencePanel: referencePanel.id } : undefined,
|
|
162
|
+
title: PANEL_TITLES[panelId] || panelId,
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
closedPanels.delete(panelId);
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// =============================================================================
|
|
170
|
+
// Panel Adapter - Wraps existing panels for Dockview
|
|
171
|
+
// =============================================================================
|
|
172
|
+
|
|
173
|
+
interface PanelAdapterParams {
|
|
174
|
+
panelId: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function PanelAdapter({ params }: IDockviewPanelProps<PanelAdapterParams>): React.ReactElement | null {
|
|
178
|
+
const Component = panelRegistry.get(params.panelId);
|
|
179
|
+
|
|
180
|
+
if (!Component) {
|
|
181
|
+
console.warn(`[DockviewWorkspace] No component registered for panel: ${params.panelId}`);
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return (
|
|
186
|
+
<div data-testid={`panel-${params.panelId}`} className="dockview-panel-content">
|
|
187
|
+
<ErrorBoundary panelName={params.panelId}>
|
|
188
|
+
<div className="error-boundary-wrapper">
|
|
189
|
+
<Component />
|
|
190
|
+
</div>
|
|
191
|
+
</ErrorBoundary>
|
|
192
|
+
</div>
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// =============================================================================
|
|
197
|
+
// Types for Layout Persistence
|
|
198
|
+
// =============================================================================
|
|
199
|
+
|
|
200
|
+
// Re-export SerializedDockview for external use
|
|
201
|
+
export type { SerializedDockview };
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated Use SerializedDockview from dockview-react instead
|
|
205
|
+
* Kept for backward compatibility during migration
|
|
206
|
+
*/
|
|
207
|
+
export interface WorkspaceLayoutConfig {
|
|
208
|
+
leftSidebar: {
|
|
209
|
+
panels: string[];
|
|
210
|
+
width: number;
|
|
211
|
+
collapsed: boolean;
|
|
212
|
+
activePanel?: string;
|
|
213
|
+
};
|
|
214
|
+
center: {
|
|
215
|
+
panels: string[];
|
|
216
|
+
locked: boolean;
|
|
217
|
+
};
|
|
218
|
+
rightSidebar: {
|
|
219
|
+
panels: string[];
|
|
220
|
+
width: number;
|
|
221
|
+
collapsed: boolean;
|
|
222
|
+
activePanel?: string;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Create default workspace layout using native Dockview format
|
|
228
|
+
* This builds the initial three-region layout programmatically
|
|
229
|
+
*/
|
|
230
|
+
export function createDefaultDockviewLayout(): SerializedDockview {
|
|
231
|
+
// Build the default layout structure that matches what toJSON() produces
|
|
232
|
+
// This creates: [left sidebar] | [center message] | [right sidebar]
|
|
233
|
+
return {
|
|
234
|
+
grid: {
|
|
235
|
+
root: {
|
|
236
|
+
type: 'branch',
|
|
237
|
+
data: [
|
|
238
|
+
// Left sidebar group
|
|
239
|
+
{
|
|
240
|
+
type: 'leaf',
|
|
241
|
+
data: {
|
|
242
|
+
views: LEFT_SIDEBAR_PANELS.map(id => id),
|
|
243
|
+
activeView: LEFT_SIDEBAR_PANELS[0],
|
|
244
|
+
id: 'left-sidebar',
|
|
245
|
+
},
|
|
246
|
+
size: SIDEBAR_WIDTHS.medium,
|
|
247
|
+
},
|
|
248
|
+
// Center (message) group
|
|
249
|
+
{
|
|
250
|
+
type: 'leaf',
|
|
251
|
+
data: {
|
|
252
|
+
views: [PANEL_INVENTORY.MESSAGE],
|
|
253
|
+
activeView: PANEL_INVENTORY.MESSAGE,
|
|
254
|
+
id: 'center',
|
|
255
|
+
hideHeader: true,
|
|
256
|
+
},
|
|
257
|
+
size: 600, // Center takes remaining space
|
|
258
|
+
},
|
|
259
|
+
// Right sidebar group
|
|
260
|
+
{
|
|
261
|
+
type: 'leaf',
|
|
262
|
+
data: {
|
|
263
|
+
views: [...RIGHT_SIDEBAR_PANELS],
|
|
264
|
+
activeView: RIGHT_SIDEBAR_PANELS[0],
|
|
265
|
+
id: 'right-sidebar',
|
|
266
|
+
},
|
|
267
|
+
size: SIDEBAR_WIDTHS.medium,
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
size: 800, // Will be overridden by actual container height
|
|
271
|
+
},
|
|
272
|
+
width: 1200,
|
|
273
|
+
height: 800,
|
|
274
|
+
orientation: 'HORIZONTAL',
|
|
275
|
+
},
|
|
276
|
+
panels: {
|
|
277
|
+
// Left sidebar panels
|
|
278
|
+
...Object.fromEntries(LEFT_SIDEBAR_PANELS.map(id => [id, {
|
|
279
|
+
id,
|
|
280
|
+
contentComponent: 'PanelAdapter',
|
|
281
|
+
title: PANEL_TITLES[id] || id,
|
|
282
|
+
params: { panelId: id },
|
|
283
|
+
}])),
|
|
284
|
+
// Center panel
|
|
285
|
+
[PANEL_INVENTORY.MESSAGE]: {
|
|
286
|
+
id: PANEL_INVENTORY.MESSAGE,
|
|
287
|
+
contentComponent: 'PanelAdapter',
|
|
288
|
+
title: PANEL_TITLES[PANEL_INVENTORY.MESSAGE],
|
|
289
|
+
params: { panelId: PANEL_INVENTORY.MESSAGE },
|
|
290
|
+
},
|
|
291
|
+
// Right sidebar panels
|
|
292
|
+
...Object.fromEntries(RIGHT_SIDEBAR_PANELS.map(id => [id, {
|
|
293
|
+
id,
|
|
294
|
+
contentComponent: 'PanelAdapter',
|
|
295
|
+
title: PANEL_TITLES[id] || id,
|
|
296
|
+
params: { panelId: id },
|
|
297
|
+
}])),
|
|
298
|
+
},
|
|
299
|
+
activeGroup: 'center',
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @deprecated Use createDefaultDockviewLayout instead
|
|
305
|
+
* Kept for backward compatibility
|
|
306
|
+
*/
|
|
307
|
+
export function createWorkspaceLayout(): WorkspaceLayoutConfig {
|
|
308
|
+
return {
|
|
309
|
+
leftSidebar: {
|
|
310
|
+
panels: [...LEFT_SIDEBAR_PANELS],
|
|
311
|
+
width: SIDEBAR_WIDTHS.medium,
|
|
312
|
+
collapsed: false,
|
|
313
|
+
},
|
|
314
|
+
center: {
|
|
315
|
+
panels: [PANEL_INVENTORY.MESSAGE],
|
|
316
|
+
locked: true,
|
|
317
|
+
},
|
|
318
|
+
rightSidebar: {
|
|
319
|
+
panels: [...RIGHT_SIDEBAR_PANELS],
|
|
320
|
+
width: SIDEBAR_WIDTHS.medium,
|
|
321
|
+
collapsed: false,
|
|
322
|
+
},
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// =============================================================================
|
|
327
|
+
// Layout Migration (MSSCI-14188)
|
|
328
|
+
// =============================================================================
|
|
329
|
+
|
|
330
|
+
interface SimplifiedLayoutPanel {
|
|
331
|
+
id: string;
|
|
332
|
+
position?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface SimplifiedLayout {
|
|
336
|
+
panels: SimplifiedLayoutPanel[];
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Migrate old layout format that had "progress" panel to new format with
|
|
341
|
+
* separate workflow, ac, and todo panels.
|
|
342
|
+
*
|
|
343
|
+
* Story: MSSCI-14188 - Split Progress panel into Workflow, AC, and Todo panels
|
|
344
|
+
*/
|
|
345
|
+
export function migrateLayout(layout: SimplifiedLayout | null | undefined): SimplifiedLayout {
|
|
346
|
+
// Handle null/undefined gracefully
|
|
347
|
+
if (!layout || !layout.panels) {
|
|
348
|
+
return { panels: [] };
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Check if layout already has new panels (no migration needed)
|
|
352
|
+
const hasNewPanels = layout.panels.some(
|
|
353
|
+
(p) => p.id === 'workflow' || p.id === 'ac' || p.id === 'todo'
|
|
354
|
+
);
|
|
355
|
+
if (hasNewPanels) {
|
|
356
|
+
// Already migrated, just filter out any stale 'progress' panel
|
|
357
|
+
return {
|
|
358
|
+
panels: layout.panels.filter((p) => p.id !== 'progress'),
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Check if layout has old 'progress' panel that needs migration
|
|
363
|
+
const progressIndex = layout.panels.findIndex((p) => p.id === 'progress');
|
|
364
|
+
if (progressIndex === -1) {
|
|
365
|
+
// No progress panel to migrate
|
|
366
|
+
return layout;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// Get the position of the old progress panel
|
|
370
|
+
const progressPanel = layout.panels[progressIndex];
|
|
371
|
+
const position = progressPanel.position || 'right';
|
|
372
|
+
|
|
373
|
+
// Build new panels array with progress replaced by workflow, ac, todo
|
|
374
|
+
const newPanels: SimplifiedLayoutPanel[] = [];
|
|
375
|
+
|
|
376
|
+
for (let i = 0; i < layout.panels.length; i++) {
|
|
377
|
+
if (i === progressIndex) {
|
|
378
|
+
// Replace progress with three new panels at the same position
|
|
379
|
+
newPanels.push({ id: 'workflow', position });
|
|
380
|
+
newPanels.push({ id: 'ac', position });
|
|
381
|
+
newPanels.push({ id: 'todo', position });
|
|
382
|
+
} else {
|
|
383
|
+
newPanels.push(layout.panels[i]);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return { panels: newPanels };
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// =============================================================================
|
|
391
|
+
// DockviewWorkspace Component
|
|
392
|
+
// =============================================================================
|
|
393
|
+
|
|
394
|
+
export interface DockviewWorkspaceProps {
|
|
395
|
+
/** Native Dockview serialized layout (preferred) */
|
|
396
|
+
initialLayout?: SerializedDockview;
|
|
397
|
+
/** Callback when layout changes - receives native Dockview format */
|
|
398
|
+
onLayoutChange?: (layout: SerializedDockview) => void;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export function DockviewWorkspace({
|
|
402
|
+
initialLayout,
|
|
403
|
+
onLayoutChange,
|
|
404
|
+
}: DockviewWorkspaceProps): React.ReactElement {
|
|
405
|
+
const apiRef = useRef<DockviewApi | null>(null);
|
|
406
|
+
const [dockviewApi, setDockviewApi] = useState<DockviewApi | null>(null);
|
|
407
|
+
const { isSmall, isBelowMinimum, sidebarWidth } = useResponsiveLayout();
|
|
408
|
+
const [isReady, setIsReady] = useState(false);
|
|
409
|
+
const [closedPanelsList, setClosedPanelsList] = useState<string[]>([]);
|
|
410
|
+
const [showRestoreMenu, setShowRestoreMenu] = useState(false);
|
|
411
|
+
const saveTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
412
|
+
// Panel focus mode — stash/restore layout on /bc CLI events
|
|
413
|
+
useFocusPanel(dockviewApi);
|
|
414
|
+
|
|
415
|
+
// Track if responsive effect should apply - skip on initial load to respect saved collapsed state
|
|
416
|
+
const hasAppliedInitialLayout = useRef(false);
|
|
417
|
+
const previousIsSmall = useRef<boolean | null>(null);
|
|
418
|
+
|
|
419
|
+
// Update closed panels list when panels change
|
|
420
|
+
const updateClosedPanelsList = useCallback(() => {
|
|
421
|
+
setClosedPanelsList(Array.from(closedPanels));
|
|
422
|
+
}, []);
|
|
423
|
+
|
|
424
|
+
// Handle Dockview ready event
|
|
425
|
+
const onReady = useCallback((event: DockviewReadyEvent) => {
|
|
426
|
+
const api = event.api;
|
|
427
|
+
apiRef.current = api;
|
|
428
|
+
dockviewApiRef = api;
|
|
429
|
+
setDockviewApi(api);
|
|
430
|
+
|
|
431
|
+
// Use native fromJSON if we have a saved layout, otherwise build default
|
|
432
|
+
if (initialLayout && initialLayout.grid && initialLayout.panels) {
|
|
433
|
+
// Restore from native Dockview serialized format
|
|
434
|
+
try {
|
|
435
|
+
api.fromJSON(initialLayout);
|
|
436
|
+
|
|
437
|
+
// After restoring, lock the message panel's group and hide its tab bar
|
|
438
|
+
const messagePanel = api.getPanel(PANEL_INVENTORY.MESSAGE);
|
|
439
|
+
if (messagePanel?.group) {
|
|
440
|
+
messagePanel.group.locked = 'no-drop-target';
|
|
441
|
+
messagePanel.group.model.header.hidden = true;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
setIsReady(true);
|
|
445
|
+
return;
|
|
446
|
+
} catch (err) {
|
|
447
|
+
console.warn('[DockviewWorkspace] Failed to restore layout from JSON, building default:', err);
|
|
448
|
+
// Fall through to build default layout
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// Build default layout programmatically (for first-time users or failed restore)
|
|
453
|
+
// Add first panel to left sidebar (creates the first group)
|
|
454
|
+
const leftFirstPanel = api.addPanel({
|
|
455
|
+
id: LEFT_SIDEBAR_PANELS[0],
|
|
456
|
+
component: 'PanelAdapter',
|
|
457
|
+
params: { panelId: LEFT_SIDEBAR_PANELS[0] },
|
|
458
|
+
title: PANEL_TITLES[LEFT_SIDEBAR_PANELS[0]],
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
// Add remaining left sidebar panels to the same group
|
|
462
|
+
for (let i = 1; i < LEFT_SIDEBAR_PANELS.length; i++) {
|
|
463
|
+
const panelId = LEFT_SIDEBAR_PANELS[i];
|
|
464
|
+
if (panelRegistry.has(panelId)) {
|
|
465
|
+
api.addPanel({
|
|
466
|
+
id: panelId,
|
|
467
|
+
component: 'PanelAdapter',
|
|
468
|
+
params: { panelId },
|
|
469
|
+
position: { referencePanel: leftFirstPanel.id },
|
|
470
|
+
title: PANEL_TITLES[panelId],
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// Add message panel to center (creates new group to the right)
|
|
476
|
+
const messagePanel = api.addPanel({
|
|
477
|
+
id: PANEL_INVENTORY.MESSAGE,
|
|
478
|
+
component: 'PanelAdapter',
|
|
479
|
+
params: { panelId: PANEL_INVENTORY.MESSAGE },
|
|
480
|
+
position: { referencePanel: leftFirstPanel.id, direction: 'right' },
|
|
481
|
+
title: PANEL_TITLES[PANEL_INVENTORY.MESSAGE],
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
// Add first right sidebar panel (creates new group to the right of center)
|
|
485
|
+
const rightFirstPanel = api.addPanel({
|
|
486
|
+
id: RIGHT_SIDEBAR_PANELS[0],
|
|
487
|
+
component: 'PanelAdapter',
|
|
488
|
+
params: { panelId: RIGHT_SIDEBAR_PANELS[0] },
|
|
489
|
+
position: { referencePanel: messagePanel.id, direction: 'right' },
|
|
490
|
+
title: PANEL_TITLES[RIGHT_SIDEBAR_PANELS[0]],
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
// Add remaining right sidebar panels to the same group
|
|
494
|
+
for (let i = 1; i < RIGHT_SIDEBAR_PANELS.length; i++) {
|
|
495
|
+
const panelId = RIGHT_SIDEBAR_PANELS[i];
|
|
496
|
+
if (panelRegistry.has(panelId)) {
|
|
497
|
+
api.addPanel({
|
|
498
|
+
id: panelId,
|
|
499
|
+
component: 'PanelAdapter',
|
|
500
|
+
params: { panelId },
|
|
501
|
+
position: { referencePanel: rightFirstPanel.id },
|
|
502
|
+
title: PANEL_TITLES[panelId],
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// Lock the center group - MessagePanel cannot be closed or moved
|
|
508
|
+
// Hide the tab bar so users can't accidentally close the message tab
|
|
509
|
+
if (messagePanel?.group) {
|
|
510
|
+
messagePanel.group.locked = 'no-drop-target';
|
|
511
|
+
messagePanel.group.model.header.hidden = true;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// Set initial sidebar sizes
|
|
515
|
+
const leftGroup = leftFirstPanel.group;
|
|
516
|
+
const rightGroup = rightFirstPanel.group;
|
|
517
|
+
|
|
518
|
+
if (leftGroup) {
|
|
519
|
+
leftGroup.api.setSize({ width: SIDEBAR_WIDTHS.medium });
|
|
520
|
+
}
|
|
521
|
+
if (rightGroup) {
|
|
522
|
+
rightGroup.api.setSize({ width: SIDEBAR_WIDTHS.medium });
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
setIsReady(true);
|
|
526
|
+
}, [initialLayout]);
|
|
527
|
+
|
|
528
|
+
// Handle layout changes for persistence using native toJSON
|
|
529
|
+
const handleLayoutChange = useCallback(() => {
|
|
530
|
+
const api = apiRef.current;
|
|
531
|
+
if (!api || !onLayoutChange) return;
|
|
532
|
+
|
|
533
|
+
// Never save empty layouts — prevents corruption loop
|
|
534
|
+
if (api.panels.length === 0) return;
|
|
535
|
+
|
|
536
|
+
// Debounce saves
|
|
537
|
+
if (saveTimeoutRef.current) {
|
|
538
|
+
clearTimeout(saveTimeoutRef.current);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
saveTimeoutRef.current = setTimeout(() => {
|
|
542
|
+
// Use native Dockview toJSON for complete layout serialization
|
|
543
|
+
const serializedLayout = api.toJSON();
|
|
544
|
+
// Double-check: don't persist if serialization produced empty panels
|
|
545
|
+
if (serializedLayout.panels && Object.keys(serializedLayout.panels).length > 0) {
|
|
546
|
+
onLayoutChange(serializedLayout);
|
|
547
|
+
}
|
|
548
|
+
}, 300);
|
|
549
|
+
}, [onLayoutChange]);
|
|
550
|
+
|
|
551
|
+
// Subscribe to layout changes and track closed panels
|
|
552
|
+
useEffect(() => {
|
|
553
|
+
const api = apiRef.current;
|
|
554
|
+
if (!api || !isReady) return;
|
|
555
|
+
|
|
556
|
+
const disposables = [
|
|
557
|
+
api.onDidLayoutChange(() => handleLayoutChange()),
|
|
558
|
+
api.onDidAddPanel((e) => {
|
|
559
|
+
// Panel restored, remove from closed set
|
|
560
|
+
const panelId = e?.panel?.id;
|
|
561
|
+
if (panelId) {
|
|
562
|
+
closedPanels.delete(panelId);
|
|
563
|
+
}
|
|
564
|
+
updateClosedPanelsList();
|
|
565
|
+
handleLayoutChange();
|
|
566
|
+
}),
|
|
567
|
+
api.onDidRemovePanel((e) => {
|
|
568
|
+
// Track closed panels for restoration
|
|
569
|
+
const panelId = e?.panel?.id;
|
|
570
|
+
if (panelId) {
|
|
571
|
+
closedPanels.add(panelId);
|
|
572
|
+
updateClosedPanelsList();
|
|
573
|
+
}
|
|
574
|
+
handleLayoutChange();
|
|
575
|
+
}),
|
|
576
|
+
];
|
|
577
|
+
|
|
578
|
+
return () => {
|
|
579
|
+
disposables.forEach(d => d.dispose());
|
|
580
|
+
};
|
|
581
|
+
}, [isReady, handleLayoutChange]);
|
|
582
|
+
|
|
583
|
+
// Handle responsive breakpoints - only on viewport changes, not initial load
|
|
584
|
+
useEffect(() => {
|
|
585
|
+
const api = apiRef.current;
|
|
586
|
+
if (!api || !isReady) return;
|
|
587
|
+
|
|
588
|
+
// On first run after layout is ready, just record current state without changing anything
|
|
589
|
+
// This preserves the saved collapsed state from initialLayout
|
|
590
|
+
if (!hasAppliedInitialLayout.current) {
|
|
591
|
+
hasAppliedInitialLayout.current = true;
|
|
592
|
+
previousIsSmall.current = isSmall;
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// Only apply responsive changes when isSmall actually changes
|
|
597
|
+
if (previousIsSmall.current === isSmall) {
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
600
|
+
previousIsSmall.current = isSmall;
|
|
601
|
+
|
|
602
|
+
// Find groups by their panels (groups don't have fixed names)
|
|
603
|
+
const gitPanel = api.getPanel(PANEL_INVENTORY.GIT);
|
|
604
|
+
const sprintPanel = api.getPanel(PANEL_INVENTORY.SPRINT);
|
|
605
|
+
const leftGroup = gitPanel?.group;
|
|
606
|
+
const rightGroup = sprintPanel?.group;
|
|
607
|
+
|
|
608
|
+
if (isSmall) {
|
|
609
|
+
// Collapse sidebars at small viewport
|
|
610
|
+
leftGroup?.api.setSize({ width: 0 });
|
|
611
|
+
rightGroup?.api.setSize({ width: 0 });
|
|
612
|
+
} else {
|
|
613
|
+
// Restore sidebars to configured width when viewport expands
|
|
614
|
+
leftGroup?.api.setSize({ width: sidebarWidth });
|
|
615
|
+
rightGroup?.api.setSize({ width: sidebarWidth });
|
|
616
|
+
}
|
|
617
|
+
}, [isSmall, sidebarWidth, isReady]);
|
|
618
|
+
|
|
619
|
+
// Handle restoring a closed panel
|
|
620
|
+
const handleRestorePanel = useCallback((panelId: string) => {
|
|
621
|
+
restorePanel(panelId);
|
|
622
|
+
setShowRestoreMenu(false);
|
|
623
|
+
}, []);
|
|
624
|
+
|
|
625
|
+
// Cleanup on unmount
|
|
626
|
+
useEffect(() => {
|
|
627
|
+
return () => {
|
|
628
|
+
if (saveTimeoutRef.current) {
|
|
629
|
+
clearTimeout(saveTimeoutRef.current);
|
|
630
|
+
}
|
|
631
|
+
dockviewApiRef = null;
|
|
632
|
+
};
|
|
633
|
+
}, []);
|
|
634
|
+
|
|
635
|
+
// Listen for panel toggle commands via WebSocket (View menu integration)
|
|
636
|
+
useEffect(() => {
|
|
637
|
+
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
638
|
+
const ws = new WebSocket(`${protocol}//${window.location.host}/ws/settings`);
|
|
639
|
+
|
|
640
|
+
ws.onmessage = (event) => {
|
|
641
|
+
try {
|
|
642
|
+
const data = JSON.parse(event.data);
|
|
643
|
+
if (data.type === 'panel:toggle' && data.panelId) {
|
|
644
|
+
const api = dockviewApiRef;
|
|
645
|
+
if (!api) return;
|
|
646
|
+
const existing = api.getPanel(data.panelId);
|
|
647
|
+
if (existing) {
|
|
648
|
+
existing.api.close();
|
|
649
|
+
} else {
|
|
650
|
+
restorePanel(data.panelId);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
} catch {
|
|
654
|
+
// ignore parse errors
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
return () => ws.close();
|
|
659
|
+
}, []);
|
|
660
|
+
|
|
661
|
+
// Component map for Dockview
|
|
662
|
+
const components = {
|
|
663
|
+
PanelAdapter,
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
// Panel display names for the restore menu
|
|
667
|
+
const panelDisplayNames: Record<string, string> = {
|
|
668
|
+
git: 'Git',
|
|
669
|
+
diffs: 'Diffs',
|
|
670
|
+
debug: 'Debug',
|
|
671
|
+
'audit-log': 'Audit Log',
|
|
672
|
+
sprint: 'Sprint',
|
|
673
|
+
workflow: 'Workflow',
|
|
674
|
+
ac: 'AC',
|
|
675
|
+
todo: 'Todo',
|
|
676
|
+
hotspots: 'Hotspots',
|
|
677
|
+
settings: 'Settings',
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
return (
|
|
681
|
+
<div className="cyclist-dockview" data-dockview-group="container">
|
|
682
|
+
{/* Minimum dimension warning */}
|
|
683
|
+
{isBelowMinimum && (
|
|
684
|
+
<div
|
|
685
|
+
data-testid="min-dimension-warning"
|
|
686
|
+
className="min-dimension-warning"
|
|
687
|
+
role="alert"
|
|
688
|
+
>
|
|
689
|
+
Window is below minimum size ({MIN_DIMENSIONS.width}x{MIN_DIMENSIONS.height})
|
|
690
|
+
</div>
|
|
691
|
+
)}
|
|
692
|
+
|
|
693
|
+
{/* Panel restore button - shown when panels are closed */}
|
|
694
|
+
{closedPanelsList.length > 0 && (
|
|
695
|
+
<div className="panel-restore-container">
|
|
696
|
+
<TooltipProvider delayDuration={300}>
|
|
697
|
+
<Tooltip>
|
|
698
|
+
<TooltipTrigger asChild>
|
|
699
|
+
<Button
|
|
700
|
+
variant="outline"
|
|
701
|
+
size="sm"
|
|
702
|
+
className="panel-restore-button"
|
|
703
|
+
onClick={() => setShowRestoreMenu(!showRestoreMenu)}
|
|
704
|
+
aria-expanded={showRestoreMenu}
|
|
705
|
+
aria-haspopup="menu"
|
|
706
|
+
>
|
|
707
|
+
<span className="panel-restore-icon">+</span>
|
|
708
|
+
<span className="panel-restore-count">{closedPanelsList.length}</span>
|
|
709
|
+
</Button>
|
|
710
|
+
</TooltipTrigger>
|
|
711
|
+
<TooltipContent>Restore closed panels</TooltipContent>
|
|
712
|
+
</Tooltip>
|
|
713
|
+
</TooltipProvider>
|
|
714
|
+
|
|
715
|
+
{showRestoreMenu && (
|
|
716
|
+
<div className="panel-restore-menu" role="menu">
|
|
717
|
+
<div className="panel-restore-header">Restore Panel</div>
|
|
718
|
+
{closedPanelsList.map((panelId) => (
|
|
719
|
+
<Button
|
|
720
|
+
variant="ghost"
|
|
721
|
+
key={panelId}
|
|
722
|
+
className="panel-restore-item"
|
|
723
|
+
onClick={() => handleRestorePanel(panelId)}
|
|
724
|
+
role="menuitem"
|
|
725
|
+
>
|
|
726
|
+
{panelDisplayNames[panelId] || panelId}
|
|
727
|
+
</Button>
|
|
728
|
+
))}
|
|
729
|
+
</div>
|
|
730
|
+
)}
|
|
731
|
+
</div>
|
|
732
|
+
)}
|
|
733
|
+
|
|
734
|
+
<DockviewReact
|
|
735
|
+
className="dockview-container"
|
|
736
|
+
onReady={onReady}
|
|
737
|
+
components={components}
|
|
738
|
+
defaultTabComponent={(props) => <DockviewDefaultTab {...props} hideClose />}
|
|
739
|
+
watermarkComponent={() => null}
|
|
740
|
+
/>
|
|
741
|
+
</div>
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export default DockviewWorkspace;
|