@pennyfarthing/core 11.3.7 → 11.4.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.
Files changed (405) hide show
  1. package/README.md +1 -1
  2. package/package.json +17 -16
  3. package/packages/core/dist/public/css/react.css +1 -1
  4. package/packages/core/dist/public/js/react/react.js +24 -24
  5. package/packages/core/src/public/App.tsx +356 -0
  6. package/packages/core/src/public/components/AgentLoadDialog.tsx +202 -0
  7. package/packages/core/src/public/components/AgentPopup.tsx +308 -0
  8. package/packages/core/src/public/components/ApprovalModal/ApprovalModal.css +35 -0
  9. package/packages/core/src/public/components/ApprovalModal/index.tsx +632 -0
  10. package/packages/core/src/public/components/BikeRackIndex.tsx +53 -0
  11. package/packages/core/src/public/components/BikeRackWorkspace.tsx +217 -0
  12. package/packages/core/src/public/components/CommandPalette.tsx +554 -0
  13. package/packages/core/src/public/components/ConfirmDialog.tsx +168 -0
  14. package/packages/core/src/public/components/ContextIndicator/ContextIndicator.css +85 -0
  15. package/packages/core/src/public/components/ContextIndicator/index.tsx +330 -0
  16. package/packages/core/src/public/components/ContextSparkline.tsx +56 -0
  17. package/packages/core/src/public/components/ControlBar.tsx +636 -0
  18. package/packages/core/src/public/components/DeadCodeDialog.tsx +169 -0
  19. package/packages/core/src/public/components/DiffViewer.tsx +585 -0
  20. package/packages/core/src/public/components/DockviewWorkspace.tsx +749 -0
  21. package/packages/core/src/public/components/Editor.tsx +630 -0
  22. package/packages/core/src/public/components/ErrorBoundary.tsx +67 -0
  23. package/packages/core/src/public/components/FileTree.tsx +379 -0
  24. package/packages/core/src/public/components/FontPicker/FontPicker.css +276 -0
  25. package/packages/core/src/public/components/FontPicker/index.tsx +430 -0
  26. package/packages/core/src/public/components/FullFileTree.tsx +237 -0
  27. package/packages/core/src/public/components/HealthGauge.tsx +181 -0
  28. package/packages/core/src/public/components/Message.tsx +225 -0
  29. package/packages/core/src/public/components/MessageList.tsx +98 -0
  30. package/packages/core/src/public/components/MessageView.tsx +400 -0
  31. package/packages/core/src/public/components/ModeSwitch/ModeSwitch.css +165 -0
  32. package/packages/core/src/public/components/ModeSwitch/index.tsx +372 -0
  33. package/packages/core/src/public/components/PersonaHeader.tsx +242 -0
  34. package/packages/core/src/public/components/ProjectInfoBar.tsx +45 -0
  35. package/packages/core/src/public/components/QuickActions.tsx +267 -0
  36. package/packages/core/src/public/components/SpanTimeline.tsx +352 -0
  37. package/packages/core/src/public/components/StandalonePanel.tsx +82 -0
  38. package/packages/core/src/public/components/StatsStrip.tsx +162 -0
  39. package/packages/core/src/public/components/StreamingContent.tsx +77 -0
  40. package/packages/core/src/public/components/SubagentSpan.tsx +180 -0
  41. package/packages/core/src/public/components/TandemPortrait.tsx +72 -0
  42. package/packages/core/src/public/components/ThemePalette/ThemePalette.css +179 -0
  43. package/packages/core/src/public/components/ThemePalette/index.tsx +326 -0
  44. package/packages/core/src/public/components/ToolCallBlock.tsx +252 -0
  45. package/packages/core/src/public/components/ToolStack.tsx +209 -0
  46. package/packages/core/src/public/components/ToolStatus.tsx +57 -0
  47. package/packages/core/src/public/components/dialogs/CodeMarkersDialog.tsx +169 -0
  48. package/packages/core/src/public/components/dialogs/ComplexityDialog.tsx +163 -0
  49. package/packages/core/src/public/components/dialogs/DependenciesDialog.tsx +120 -0
  50. package/packages/core/src/public/components/dialogs/HotspotsDialog.tsx +451 -0
  51. package/packages/core/src/public/components/dialogs/ToolDialog.tsx +43 -0
  52. package/packages/core/src/public/components/panel-registry.ts +13 -0
  53. package/packages/core/src/public/components/panels/ACPanel.tsx +93 -0
  54. package/packages/core/src/public/components/panels/AcceptanceCriteriaPanel.tsx +104 -0
  55. package/packages/core/src/public/components/panels/AuditLogPanel.tsx +489 -0
  56. package/packages/core/src/public/components/panels/BackgroundPanel.tsx +115 -0
  57. package/packages/core/src/public/components/panels/BikeLanePanel.tsx +214 -0
  58. package/packages/core/src/public/components/panels/DebugPanel.tsx +344 -0
  59. package/packages/core/src/public/components/panels/DiffView.tsx +109 -0
  60. package/packages/core/src/public/components/panels/DiffsPanel.tsx +56 -0
  61. package/packages/core/src/public/components/panels/GitPanel.tsx +260 -0
  62. package/packages/core/src/public/components/panels/HotspotsPanel.tsx +365 -0
  63. package/packages/core/src/public/components/panels/MessageFeed.tsx +39 -0
  64. package/packages/core/src/public/components/panels/MessagePanel.tsx +497 -0
  65. package/packages/core/src/public/components/panels/ProgressPanel.tsx +189 -0
  66. package/packages/core/src/public/components/panels/SettingsPanel.tsx +361 -0
  67. package/packages/core/src/public/components/panels/SprintPanel.tsx +723 -0
  68. package/packages/core/src/public/components/panels/TandemPanel.tsx +104 -0
  69. package/packages/core/src/public/components/panels/TaskTracker.tsx +48 -0
  70. package/packages/core/src/public/components/panels/TeamPanel.tsx +64 -0
  71. package/packages/core/src/public/components/panels/TeamRoster.tsx +67 -0
  72. package/packages/core/src/public/components/panels/TodoPanel.tsx +142 -0
  73. package/packages/core/src/public/components/panels/WorkflowPanel.tsx +224 -0
  74. package/packages/core/src/public/components/panels/index.ts +24 -0
  75. package/packages/core/src/public/components/ui/alert-dialog.tsx +139 -0
  76. package/packages/core/src/public/components/ui/badge.tsx +36 -0
  77. package/packages/core/src/public/components/ui/button.tsx +57 -0
  78. package/packages/core/src/public/components/ui/checkbox.tsx +28 -0
  79. package/packages/core/src/public/components/ui/collapsible.tsx +9 -0
  80. package/packages/core/src/public/components/ui/command.tsx +151 -0
  81. package/packages/core/src/public/components/ui/dialog.tsx +120 -0
  82. package/packages/core/src/public/components/ui/popover.tsx +31 -0
  83. package/packages/core/src/public/components/ui/progress.tsx +28 -0
  84. package/packages/core/src/public/components/ui/scroll-area.tsx +46 -0
  85. package/packages/core/src/public/components/ui/select.tsx +157 -0
  86. package/packages/core/src/public/components/ui/separator.tsx +29 -0
  87. package/packages/core/src/public/components/ui/skeleton.tsx +15 -0
  88. package/packages/core/src/public/components/ui/switch.tsx +27 -0
  89. package/packages/core/src/public/components/ui/toggle-group.tsx +59 -0
  90. package/packages/core/src/public/components/ui/toggle.tsx +43 -0
  91. package/packages/core/src/public/components/ui/tooltip.tsx +30 -0
  92. package/packages/core/src/public/contexts/ClaudeContext.tsx +311 -0
  93. package/packages/core/src/public/contexts/MessageQueueContext.tsx +143 -0
  94. package/packages/core/src/public/css/theme-browser.css +550 -0
  95. package/packages/core/src/public/css/theme-system.css +630 -0
  96. package/packages/core/src/public/hooks/index.ts +49 -0
  97. package/packages/core/src/public/hooks/useAgentLoad.ts +105 -0
  98. package/packages/core/src/public/hooks/useBackgroundTasks.ts +131 -0
  99. package/packages/core/src/public/hooks/useClaude.ts +234 -0
  100. package/packages/core/src/public/hooks/useCodeMarkers.ts +101 -0
  101. package/packages/core/src/public/hooks/useColorScheme.ts +42 -0
  102. package/packages/core/src/public/hooks/useCommandHistory.ts +99 -0
  103. package/packages/core/src/public/hooks/useComplexity.ts +80 -0
  104. package/packages/core/src/public/hooks/useDeadCode.ts +99 -0
  105. package/packages/core/src/public/hooks/useDependencies.ts +82 -0
  106. package/packages/core/src/public/hooks/useDiffs.ts +143 -0
  107. package/packages/core/src/public/hooks/useFileBrowser.ts +73 -0
  108. package/packages/core/src/public/hooks/useFocusPanel.ts +137 -0
  109. package/packages/core/src/public/hooks/useGitStatus.ts +233 -0
  110. package/packages/core/src/public/hooks/useHealthScore.ts +71 -0
  111. package/packages/core/src/public/hooks/useHotspots.ts +123 -0
  112. package/packages/core/src/public/hooks/useLayoutPersistence.ts +141 -0
  113. package/packages/core/src/public/hooks/useMarkdownParser.ts +36 -0
  114. package/packages/core/src/public/hooks/useMarkerActions.ts +234 -0
  115. package/packages/core/src/public/hooks/useMessageQueue.ts +380 -0
  116. package/packages/core/src/public/hooks/useMessageStream.ts +131 -0
  117. package/packages/core/src/public/hooks/usePersona.ts +112 -0
  118. package/packages/core/src/public/hooks/usePlanModeExit.ts +105 -0
  119. package/packages/core/src/public/hooks/useResponsiveLayout.ts +173 -0
  120. package/packages/core/src/public/hooks/useSprint.ts +157 -0
  121. package/packages/core/src/public/hooks/useStatsStrip.ts +204 -0
  122. package/packages/core/src/public/hooks/useStory.ts +135 -0
  123. package/packages/core/src/public/hooks/useSubagentHelper.ts +64 -0
  124. package/packages/core/src/public/hooks/useSyntaxHighlighter.ts +52 -0
  125. package/packages/core/src/public/hooks/useTabCompletion.ts +124 -0
  126. package/packages/core/src/public/hooks/useTandemObservations.ts +165 -0
  127. package/packages/core/src/public/hooks/useTeamMembers.ts +273 -0
  128. package/packages/core/src/public/hooks/useTodos.ts +93 -0
  129. package/packages/core/src/public/hooks/useUserAvatar.ts +54 -0
  130. package/packages/core/src/public/images/cyclist-dark.png +0 -0
  131. package/packages/core/src/public/images/cyclist-light.png +0 -0
  132. package/packages/core/src/public/index.html +14 -0
  133. package/packages/core/src/public/index.tsx +10 -0
  134. package/packages/core/src/public/lib/utils.ts +6 -0
  135. package/packages/core/src/public/styles/dockview-theme.css +376 -0
  136. package/packages/core/src/public/styles/tailwind.css +4454 -0
  137. package/packages/core/src/public/types/message.ts +51 -0
  138. package/packages/core/src/public/utils/avatar-service.ts +73 -0
  139. package/packages/core/src/public/utils/color-presets.ts +940 -0
  140. package/packages/core/src/public/utils/font-presets.ts +362 -0
  141. package/packages/core/src/public/utils/formatDuration.ts +14 -0
  142. package/packages/core/src/public/utils/markdown.ts +249 -0
  143. package/packages/core/src/public/utils/messageFilters.ts +128 -0
  144. package/packages/core/src/public/utils/slash-commands.ts +341 -0
  145. package/packages/core/src/public/utils/subagent-display.ts +146 -0
  146. package/packages/core/src/public/utils/syntax.ts +219 -0
  147. package/packages/core/src/public/utils/toolIntentSummarizer.ts +199 -0
  148. package/packages/core/src/public/utils/toolStackGrouper.ts +106 -0
  149. package/packages/core/src/public/utils/toolTypeColors.ts +45 -0
  150. package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  151. package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
  152. package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
  153. package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  154. package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  155. package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  156. package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  157. package/pennyfarthing-dist/pf/bc/cli.py +0 -1
  158. package/pennyfarthing-dist/pf/bc/focus.py +0 -1
  159. package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  160. package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  161. package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  162. package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  163. package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  164. package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  165. package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  166. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  167. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  168. package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  169. package/pennyfarthing-dist/pf/bikerack/base_panel.py +0 -1
  170. package/pennyfarthing-dist/pf/bikerack/events.py +1 -7
  171. package/pennyfarthing-dist/pf/bikerack/git_panel.py +273 -10
  172. package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +21 -0
  173. package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +58 -1
  174. package/pennyfarthing-dist/pf/bikerack/tui.py +5 -20
  175. package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  176. package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  177. package/pennyfarthing-dist/pf/bmad/__pycache__/parser.cpython-314.pyc +0 -0
  178. package/pennyfarthing-dist/pf/bmad/parser.py +15 -9
  179. package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  180. package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  181. package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  182. package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  183. package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  184. package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  185. package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  186. package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  187. package/pennyfarthing-dist/pf/common/pr_config.py +27 -2
  188. package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  189. package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  190. package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  191. package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  192. package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  193. package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  194. package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  195. package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  196. package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  197. package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  198. package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  199. package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  200. package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  201. package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  202. package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  203. package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  204. package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  205. package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  206. package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  207. package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  208. package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  209. package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  210. package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  211. package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  212. package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  213. package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  214. package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  215. package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  216. package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  217. package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  218. package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  219. package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  220. package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  221. package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  222. package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  223. package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  224. package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  225. package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  226. package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  227. package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  228. package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  229. package/pennyfarthing-dist/pf/hooks/cyclist-pretooluse-hook.sh +0 -0
  230. package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  231. package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  232. package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  233. package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  234. package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  235. package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  236. package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  237. package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  238. package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  239. package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  240. package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  241. package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  242. package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  243. package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  244. package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  245. package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  246. package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  247. package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  248. package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  249. package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  250. package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  251. package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  252. package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  253. package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  254. package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  255. package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  256. package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  257. package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  258. package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  259. package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  260. package/pennyfarthing-dist/pf/settings/settings.py +44 -8
  261. package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  262. package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  263. package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  264. package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  265. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  266. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  267. package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  268. package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  269. package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  270. package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  271. package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  272. package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  273. package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  274. package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  275. package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  276. package/pennyfarthing-dist/pf/sprint/story_finish.py +14 -2
  277. package/pennyfarthing-dist/pf/sprint/validator.py +7 -7
  278. package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  279. package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  280. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  281. package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +44 -0
  282. package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  283. package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  284. package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  285. package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  286. package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  287. package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  288. package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  289. package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  290. package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  291. package/pennyfarthing-dist/scripts/core/agent-session.sh +0 -0
  292. package/pennyfarthing-dist/scripts/core/check-context.sh +0 -0
  293. package/pennyfarthing-dist/scripts/core/dialogue-manager.sh +0 -0
  294. package/pennyfarthing-dist/scripts/core/pf.sh +0 -0
  295. package/pennyfarthing-dist/scripts/core/phase-check-start.sh +0 -0
  296. package/pennyfarthing-dist/scripts/core/prime.sh +0 -0
  297. package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +0 -0
  298. package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +0 -0
  299. package/pennyfarthing-dist/scripts/git/git-status-all.sh +0 -0
  300. package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +0 -0
  301. package/pennyfarthing-dist/scripts/git/release.sh +0 -0
  302. package/pennyfarthing-dist/scripts/git/worktree-manager.sh +0 -0
  303. package/pennyfarthing-dist/scripts/health/drift-detection.sh +0 -0
  304. package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +0 -0
  305. package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +0 -0
  306. package/pennyfarthing-dist/scripts/hooks/context-warning.sh +0 -0
  307. package/pennyfarthing-dist/scripts/hooks/cyclist-pretooluse-hook.sh +0 -0
  308. package/pennyfarthing-dist/scripts/hooks/dispatcher-template.sh +0 -0
  309. package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +0 -0
  310. package/pennyfarthing-dist/scripts/hooks/post-merge.sh +0 -0
  311. package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +0 -0
  312. package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +0 -0
  313. package/pennyfarthing-dist/scripts/hooks/pre-push.sh +0 -0
  314. package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +0 -0
  315. package/pennyfarthing-dist/scripts/hooks/question_reflector_check.py +0 -0
  316. package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +0 -0
  317. package/pennyfarthing-dist/scripts/hooks/session-start.sh +0 -0
  318. package/pennyfarthing-dist/scripts/hooks/session-stop.sh +0 -0
  319. package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +0 -0
  320. package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +0 -0
  321. package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +0 -0
  322. package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +0 -0
  323. package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +0 -0
  324. package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +0 -0
  325. package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +0 -0
  326. package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +0 -0
  327. package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -0
  328. package/pennyfarthing-dist/scripts/lib/checkpoint.sh +0 -0
  329. package/pennyfarthing-dist/scripts/lib/common.sh +0 -0
  330. package/pennyfarthing-dist/scripts/lib/env.sh +0 -0
  331. package/pennyfarthing-dist/scripts/lib/file-lock.sh +0 -0
  332. package/pennyfarthing-dist/scripts/lib/find-root.sh +1 -1
  333. package/pennyfarthing-dist/scripts/lib/logging.sh +0 -0
  334. package/pennyfarthing-dist/scripts/lib/retry.sh +0 -0
  335. package/pennyfarthing-dist/scripts/lib/run-pf.sh +0 -0
  336. package/pennyfarthing-dist/scripts/maintenance/migrate-theme-schema.mjs +0 -0
  337. package/pennyfarthing-dist/scripts/maintenance/sidecar-health.sh +0 -0
  338. package/pennyfarthing-dist/scripts/misc/add-short-names.sh +0 -0
  339. package/pennyfarthing-dist/scripts/misc/add_short_names.py +0 -0
  340. package/pennyfarthing-dist/scripts/misc/backlog.sh +0 -0
  341. package/pennyfarthing-dist/scripts/misc/check-status.sh +0 -0
  342. package/pennyfarthing-dist/scripts/misc/find-related-work.sh +0 -0
  343. package/pennyfarthing-dist/scripts/misc/generate-skill-docs.sh +0 -0
  344. package/pennyfarthing-dist/scripts/misc/log-skill-usage.sh +0 -0
  345. package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +0 -0
  346. package/pennyfarthing-dist/scripts/misc/migrate_bmad_workflow.py +0 -1
  347. package/pennyfarthing-dist/scripts/misc/repo-scan.sh +0 -0
  348. package/pennyfarthing-dist/scripts/misc/repo-utils.sh +0 -0
  349. package/pennyfarthing-dist/scripts/misc/run-ci.sh +0 -0
  350. package/pennyfarthing-dist/scripts/misc/run-timestamp.sh +0 -0
  351. package/pennyfarthing-dist/scripts/misc/session-cleanup.sh +0 -0
  352. package/pennyfarthing-dist/scripts/misc/skill-usage-report.sh +0 -0
  353. package/pennyfarthing-dist/scripts/misc/statusline.sh +0 -0
  354. package/pennyfarthing-dist/scripts/misc/uninstall.sh +0 -0
  355. package/pennyfarthing-dist/scripts/misc/validate-subagent-frontmatter.sh +0 -0
  356. package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +13 -13
  357. package/pennyfarthing-dist/scripts/portraits/generate-portraits.sh +0 -0
  358. package/pennyfarthing-dist/scripts/portraits/generate-tandem-portraits.sh +0 -0
  359. package/pennyfarthing-dist/scripts/story/create-story.sh +0 -0
  360. package/pennyfarthing-dist/scripts/story/size-story.sh +0 -0
  361. package/pennyfarthing-dist/scripts/story/story-template.sh +0 -0
  362. package/pennyfarthing-dist/scripts/tests/check.test.sh +0 -0
  363. package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +0 -0
  364. package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +0 -0
  365. package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +0 -0
  366. package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +0 -0
  367. package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +0 -0
  368. package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +0 -0
  369. package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +0 -0
  370. package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +0 -0
  371. package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +0 -0
  372. package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +0 -0
  373. package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +0 -0
  374. package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +0 -0
  375. package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +0 -0
  376. package/pennyfarthing-dist/scripts/theme/list-themes.sh +0 -0
  377. package/pennyfarthing-dist/scripts/validation/validate-agent-schema.sh +0 -0
  378. package/pennyfarthing-dist/scripts/workflow/check.py +4 -6
  379. package/pennyfarthing-dist/scripts/workflow/check.sh +0 -0
  380. package/pennyfarthing-dist/scripts/workflow/complete-step.py +2 -2
  381. package/pennyfarthing-dist/scripts/workflow/finish-story.sh +0 -0
  382. package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +0 -0
  383. package/pennyfarthing-dist/scripts/workflow/get-workflow-type.py +0 -0
  384. package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +0 -0
  385. package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +0 -0
  386. package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +0 -0
  387. package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +0 -0
  388. package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +0 -0
  389. package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +0 -0
  390. package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +0 -0
  391. package/pennyfarthing-dist/skills/pf-story/scripts/create-story.sh +0 -0
  392. package/pennyfarthing-dist/skills/pf-story/scripts/size-story.sh +0 -0
  393. package/pennyfarthing-dist/skills/pf-story/scripts/story-template.sh +0 -0
  394. package/pennyfarthing-dist/skills/skill-registry.yaml +19 -0
  395. package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +41 -9
  396. package/pennyfarthing-dist/workflows/tdd-tandem.yaml +15 -2
  397. package/packages/core/dist/workflow/__test_context_watch__/.session/.tandem-turn-counter +0 -1
  398. package/packages/core/dist/workflow/__test_context_watch__/.session/95-6-session.md +0 -3
  399. package/packages/core/dist/workflow/__test_context_watch__/.session/95-6-tandem-architect.md +0 -6
  400. package/packages/core/dist/workflow/__test_file_watch__/.session/95-4-tandem-architect.md +0 -6
  401. package/packages/core/dist/workflow/__test_file_watch__/workdir/trigger.ts +0 -1
  402. package/packages/core/dist/workflow/__test_tool_watch__/.session/95-5-tandem-architect.md +0 -6
  403. package/packages/core/dist/workflow/__test_tool_watch__/.session/95-5-tandem-toolcalls.jsonl +0 -1
  404. package/pennyfarthing-dist/pf/bikerack/changed_panel.py +0 -201
  405. package/scripts/README.md +0 -41
@@ -0,0 +1,143 @@
1
+ /**
2
+ * MessageQueueContext
3
+ *
4
+ * React context for shared message queue state.
5
+ * Story MSSCI-14191 - Bug fix for dual hook instances
6
+ *
7
+ * THE BUG: Editor.tsx and MessagePanel.tsx each called useMessageQueue() separately,
8
+ * creating TWO independent state instances. Editor displayed the queue correctly,
9
+ * but MessagePanel's injectMessage and handleTurnComplete operated on an empty queue.
10
+ *
11
+ * THE FIX: This context wraps useMessageQueue and provides a single shared instance
12
+ * to all components that need queue access.
13
+ */
14
+
15
+ import React, { createContext, useContext, useMemo } from 'react';
16
+ import {
17
+ useMessageQueue,
18
+ QueuedMessage,
19
+ BellConsumedCallback,
20
+ InjectDependencies,
21
+ } from '../hooks/useMessageQueue';
22
+
23
+ // =============================================================================
24
+ // Types
25
+ // =============================================================================
26
+
27
+ interface MessageQueueContextValue {
28
+ queue: QueuedMessage[];
29
+ queueCount: number;
30
+ isProcessing: boolean;
31
+ bellMode: boolean;
32
+ queuePaused: boolean;
33
+ queueMessage: (message: QueuedMessage) => boolean;
34
+ dequeueMessage: () => QueuedMessage | null;
35
+ removeFromQueue: (index: number) => void;
36
+ clearQueue: () => void;
37
+ setProcessing: (value: boolean) => void;
38
+ setBellMode: (value: boolean) => void;
39
+ pauseQueue: () => void;
40
+ resumeQueue: () => void;
41
+ handleTurnComplete: (onSubmit: (text: string, images: QueuedMessage['images']) => void) => void;
42
+ onBellConsumed: (callback: BellConsumedCallback) => () => void;
43
+ injectMessage: (index: number, deps: InjectDependencies) => Promise<boolean>;
44
+ }
45
+
46
+ // =============================================================================
47
+ // Context
48
+ // =============================================================================
49
+
50
+ const MessageQueueContext = createContext<MessageQueueContextValue | null>(null);
51
+
52
+ // =============================================================================
53
+ // Provider
54
+ // =============================================================================
55
+
56
+ interface MessageQueueProviderProps {
57
+ children: React.ReactNode;
58
+ }
59
+
60
+ export function MessageQueueProvider({ children }: MessageQueueProviderProps): React.ReactElement {
61
+ // Single instance of useMessageQueue for the entire app
62
+ const {
63
+ queue,
64
+ queueCount,
65
+ isProcessing,
66
+ bellMode,
67
+ queuePaused,
68
+ queueMessage,
69
+ dequeueMessage,
70
+ removeFromQueue,
71
+ clearQueue,
72
+ setProcessing,
73
+ setBellMode,
74
+ pauseQueue,
75
+ resumeQueue,
76
+ handleTurnComplete,
77
+ onBellConsumed,
78
+ injectMessage,
79
+ } = useMessageQueue();
80
+
81
+ const value = useMemo(() => ({
82
+ queue,
83
+ queueCount,
84
+ isProcessing,
85
+ bellMode,
86
+ queuePaused,
87
+ queueMessage,
88
+ dequeueMessage,
89
+ removeFromQueue,
90
+ clearQueue,
91
+ setProcessing,
92
+ setBellMode,
93
+ pauseQueue,
94
+ resumeQueue,
95
+ handleTurnComplete,
96
+ onBellConsumed,
97
+ injectMessage,
98
+ }), [
99
+ queue,
100
+ queueCount,
101
+ isProcessing,
102
+ bellMode,
103
+ queuePaused,
104
+ queueMessage,
105
+ dequeueMessage,
106
+ removeFromQueue,
107
+ clearQueue,
108
+ setProcessing,
109
+ setBellMode,
110
+ pauseQueue,
111
+ resumeQueue,
112
+ handleTurnComplete,
113
+ onBellConsumed,
114
+ injectMessage,
115
+ ]);
116
+
117
+ return (
118
+ <MessageQueueContext.Provider value={value}>
119
+ {children}
120
+ </MessageQueueContext.Provider>
121
+ );
122
+ }
123
+
124
+ // =============================================================================
125
+ // Hook
126
+ // =============================================================================
127
+
128
+ /**
129
+ * Use the shared message queue context.
130
+ * This replaces direct useMessageQueue() calls in components that need shared state.
131
+ */
132
+ export function useMessageQueueContext(): MessageQueueContextValue {
133
+ const context = useContext(MessageQueueContext);
134
+ if (!context) {
135
+ throw new Error('useMessageQueueContext must be used within a MessageQueueProvider');
136
+ }
137
+ return context;
138
+ }
139
+
140
+ // Re-export types for convenience
141
+ export type { QueuedMessage, BellConsumedCallback, InjectDependencies };
142
+
143
+ export default MessageQueueContext;
@@ -0,0 +1,550 @@
1
+ /**
2
+ * Theme Browser Styles (Story 24-5)
3
+ *
4
+ * Styles for the searchable, filterable theme browser component.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Browser Container
9
+ ============================================================================= */
10
+
11
+
12
+ .theme-browser-header {
13
+ display: flex;
14
+ gap: 12px;
15
+ padding: 12px;
16
+ border-bottom: 1px solid var(--border-color, #e0e0e0);
17
+ background: var(--header-bg, #f5f5f5);
18
+ }
19
+
20
+ .theme-browser-content {
21
+ display: flex;
22
+ gap: 16px;
23
+ flex: 1;
24
+ overflow-y: auto;
25
+ padding: 12px;
26
+ min-height: 300px;
27
+ max-height: 400px;
28
+ }
29
+
30
+ /* Grid wrapper takes remaining space (24-6) */
31
+ .theme-grid-wrapper {
32
+ flex: 1 1 auto;
33
+ min-width: 350px; /* Ensure cards don't get cut off */
34
+ overflow-y: auto;
35
+ }
36
+
37
+ .theme-browser-footer {
38
+ display: flex;
39
+ justify-content: flex-end;
40
+ gap: 8px;
41
+ padding: 12px;
42
+ border-top: 1px solid var(--border-color, #e0e0e0);
43
+ background: var(--footer-bg, #f5f5f5);
44
+ }
45
+
46
+ /* =============================================================================
47
+ Search and Filter Controls
48
+ ============================================================================= */
49
+
50
+ .theme-search-input {
51
+ flex: 1;
52
+ padding: 8px 12px;
53
+ border: 1px solid var(--input-border, #ccc);
54
+ border-radius: 4px;
55
+ font-size: 14px;
56
+ background: var(--input-bg, #fff);
57
+ color: var(--input-color, #333);
58
+ }
59
+
60
+ .theme-search-input:focus {
61
+ outline: none;
62
+ border-color: var(--accent-color, #0066cc);
63
+ box-shadow: 0 0 0 2px var(--accent-shadow, rgba(0, 102, 204, 0.2));
64
+ }
65
+
66
+ .theme-search-input::placeholder {
67
+ color: var(--placeholder-color, #999);
68
+ }
69
+
70
+ .theme-category-filter {
71
+ padding: 8px 12px;
72
+ border: 1px solid var(--input-border, #ccc);
73
+ border-radius: 4px;
74
+ font-size: 14px;
75
+ background: var(--input-bg, #fff);
76
+ color: var(--input-color, #333);
77
+ min-width: 150px;
78
+ }
79
+
80
+ .theme-category-filter:focus {
81
+ outline: none;
82
+ border-color: var(--accent-color, #0066cc);
83
+ }
84
+
85
+ /* =============================================================================
86
+ Theme Grid
87
+ ============================================================================= */
88
+
89
+ .theme-grid {
90
+ display: grid;
91
+ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
92
+ gap: 12px;
93
+ }
94
+
95
+ /* =============================================================================
96
+ Theme Card
97
+ ============================================================================= */
98
+
99
+ .theme-card {
100
+ display: flex;
101
+ flex-direction: column;
102
+ padding: 12px;
103
+ border: 2px solid var(--card-border, #e0e0e0);
104
+ border-radius: 8px;
105
+ background: var(--card-bg, #fff);
106
+ cursor: pointer;
107
+ transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
108
+ }
109
+
110
+ .theme-card:hover {
111
+ border-color: var(--card-hover-border, #b0b0b0);
112
+ box-shadow: 0 2px 8px var(--card-hover-shadow, rgba(0, 0, 0, 0.1));
113
+ }
114
+
115
+ .theme-card:focus {
116
+ outline: none;
117
+ border-color: var(--accent-color, #0066cc);
118
+ box-shadow: 0 0 0 3px var(--accent-shadow, rgba(0, 102, 204, 0.3));
119
+ }
120
+
121
+ .theme-card.selected {
122
+ border-color: var(--selected-border, #0066cc);
123
+ background: var(--selected-bg, #e6f2ff);
124
+ box-shadow: 0 0 0 3px var(--selected-shadow, rgba(0, 102, 204, 0.2));
125
+ }
126
+
127
+ .theme-card.selected:hover {
128
+ border-color: var(--selected-border, #0066cc);
129
+ }
130
+
131
+ /* =============================================================================
132
+ Card Content
133
+ ============================================================================= */
134
+
135
+ .theme-card-name {
136
+ font-weight: 600;
137
+ font-size: 14px;
138
+ color: var(--card-name-color, #333);
139
+ margin-bottom: 6px;
140
+ line-height: 1.3;
141
+ }
142
+
143
+ .theme-card-description {
144
+ font-size: 12px;
145
+ color: var(--card-desc-color, #666);
146
+ line-height: 1.4;
147
+ flex: 1;
148
+ margin-bottom: 8px;
149
+ }
150
+
151
+ .theme-card-footer {
152
+ display: flex;
153
+ justify-content: space-between;
154
+ align-items: center;
155
+ font-size: 11px;
156
+ padding-top: 8px;
157
+ border-top: 1px solid var(--card-divider, #eee);
158
+ }
159
+
160
+ .theme-card-category {
161
+ color: var(--card-category-color, #888);
162
+ background: var(--card-category-bg, #f0f0f0);
163
+ padding: 2px 6px;
164
+ border-radius: 3px;
165
+ }
166
+
167
+ .theme-card-tier {
168
+ font-weight: 500;
169
+ }
170
+
171
+ /* =============================================================================
172
+ Tier Colors
173
+ ============================================================================= */
174
+
175
+ .tier-s .theme-card-tier {
176
+ color: var(--tier-s-color, #ffd700);
177
+ text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
178
+ }
179
+
180
+ .tier-s {
181
+ border-left: 3px solid var(--tier-s-color, #ffd700);
182
+ }
183
+
184
+ .tier-a .theme-card-tier {
185
+ color: var(--tier-a-color, #c0c0c0);
186
+ }
187
+
188
+ .tier-a {
189
+ border-left: 3px solid var(--tier-a-color, #c0c0c0);
190
+ }
191
+
192
+ .tier-b .theme-card-tier {
193
+ color: var(--tier-b-color, #cd7f32);
194
+ }
195
+
196
+ .tier-b {
197
+ border-left: 3px solid var(--tier-b-color, #cd7f32);
198
+ }
199
+
200
+ .tier-u .theme-card-tier {
201
+ color: var(--tier-u-color, #888);
202
+ }
203
+
204
+ .tier-u {
205
+ border-left: 3px solid var(--tier-u-color, #888);
206
+ }
207
+
208
+ /* =============================================================================
209
+ Loading and Empty States
210
+ ============================================================================= */
211
+
212
+ .theme-browser-loading,
213
+ .theme-browser-empty {
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ padding: 40px;
218
+ color: var(--empty-color, #888);
219
+ font-size: 14px;
220
+ }
221
+
222
+ .theme-browser-loading {
223
+ font-style: italic;
224
+ }
225
+
226
+ /* =============================================================================
227
+ Buttons
228
+ ============================================================================= */
229
+
230
+ .theme-browser-apply,
231
+ .theme-browser-cancel {
232
+ padding: 8px 16px;
233
+ border-radius: 4px;
234
+ font-size: 14px;
235
+ cursor: pointer;
236
+ transition: background-color 0.15s ease;
237
+ }
238
+
239
+ .theme-browser-cancel {
240
+ background: var(--cancel-bg, #f0f0f0);
241
+ border: 1px solid var(--cancel-border, #ccc);
242
+ color: var(--cancel-color, #333);
243
+ }
244
+
245
+ .theme-browser-cancel:hover {
246
+ background: var(--cancel-hover-bg, #e0e0e0);
247
+ }
248
+
249
+ .theme-browser-apply {
250
+ background: var(--apply-bg, #0066cc);
251
+ border: 1px solid var(--apply-border, #0055aa);
252
+ color: var(--apply-color, #fff);
253
+ }
254
+
255
+ .theme-browser-apply:hover:not(:disabled) {
256
+ background: var(--apply-hover-bg, #0055aa);
257
+ }
258
+
259
+ .theme-browser-apply:disabled {
260
+ background: var(--apply-disabled-bg, #ccc);
261
+ border-color: var(--apply-disabled-border, #bbb);
262
+ cursor: not-allowed;
263
+ opacity: 0.6;
264
+ }
265
+
266
+ /* =============================================================================
267
+ Dark Mode Support (via CSS variables)
268
+ ============================================================================= */
269
+
270
+ @media (prefers-color-scheme: dark) {
271
+ .theme-browser-header,
272
+ .theme-browser-footer {
273
+ --header-bg: #2a2a2a;
274
+ --footer-bg: #2a2a2a;
275
+ --border-color: #444;
276
+ }
277
+
278
+ .theme-search-input,
279
+ .theme-category-filter {
280
+ --input-bg: #333;
281
+ --input-border: #555;
282
+ --input-color: #eee;
283
+ --placeholder-color: #777;
284
+ }
285
+
286
+ .theme-card {
287
+ --card-bg: #2a2a2a;
288
+ --card-border: #444;
289
+ --card-hover-border: #666;
290
+ --card-hover-shadow: rgba(0, 0, 0, 0.3);
291
+ --card-name-color: #eee;
292
+ --card-desc-color: #aaa;
293
+ --card-category-bg: #444;
294
+ --card-category-color: #aaa;
295
+ --card-divider: #444;
296
+ }
297
+
298
+ .theme-card.selected {
299
+ --selected-bg: #1a3a5a;
300
+ --selected-border: #4499dd;
301
+ }
302
+
303
+ .theme-browser-cancel {
304
+ --cancel-bg: #444;
305
+ --cancel-border: #555;
306
+ --cancel-color: #eee;
307
+ --cancel-hover-bg: #555;
308
+ }
309
+
310
+ .theme-preview-panel {
311
+ --preview-bg: #2a2a2a;
312
+ --preview-border: #444;
313
+ --preview-title-color: #eee;
314
+ --preview-meta-color: #aaa;
315
+ --preview-desc-color: #ccc;
316
+ --preview-role-bg: #444;
317
+ --preview-role-color: #ddd;
318
+ --preview-char-color: #eee;
319
+ --preview-quote-border: #666;
320
+ --preview-quote-color: #bbb;
321
+ --preview-empty-color: #777;
322
+ }
323
+ }
324
+
325
+ /* =============================================================================
326
+ Preview Panel (Story 24-6)
327
+ ============================================================================= */
328
+
329
+ .theme-preview-panel {
330
+ width: 280px;
331
+ flex-shrink: 0;
332
+ border-left: 1px solid var(--preview-border, #e0e0e0);
333
+ padding: 16px;
334
+ overflow-y: auto;
335
+ background: var(--preview-bg, #fff);
336
+ }
337
+
338
+ .theme-preview-content {
339
+ display: flex;
340
+ flex-direction: column;
341
+ gap: 12px;
342
+ }
343
+
344
+ .theme-preview-empty {
345
+ display: flex;
346
+ align-items: center;
347
+ justify-content: center;
348
+ height: 100%;
349
+ color: var(--preview-empty-color, #888);
350
+ font-style: italic;
351
+ text-align: center;
352
+ padding: 20px;
353
+ }
354
+
355
+ .preview-title {
356
+ margin: 0;
357
+ font-size: 18px;
358
+ font-weight: 600;
359
+ color: var(--preview-title-color, #333);
360
+ }
361
+
362
+ .preview-meta {
363
+ font-size: 12px;
364
+ color: var(--preview-meta-color, #666);
365
+ }
366
+
367
+ .preview-description {
368
+ margin: 0;
369
+ font-size: 13px;
370
+ line-height: 1.5;
371
+ color: var(--preview-desc-color, #555);
372
+ }
373
+
374
+ /* Agents list */
375
+ .preview-agents {
376
+ margin-top: 8px;
377
+ }
378
+
379
+ .preview-agents h4 {
380
+ margin: 0 0 8px 0;
381
+ font-size: 12px;
382
+ font-weight: 600;
383
+ text-transform: uppercase;
384
+ letter-spacing: 0.5px;
385
+ color: var(--preview-meta-color, #666);
386
+ }
387
+
388
+ .preview-agent {
389
+ display: flex;
390
+ align-items: center;
391
+ gap: 8px;
392
+ padding: 4px 0;
393
+ border-bottom: 1px solid var(--card-divider, #eee);
394
+ }
395
+
396
+ .preview-agent:last-child {
397
+ border-bottom: none;
398
+ }
399
+
400
+ .preview-agent-role {
401
+ font-size: 10px;
402
+ font-weight: 600;
403
+ text-transform: uppercase;
404
+ padding: 2px 6px;
405
+ border-radius: 3px;
406
+ background: var(--preview-role-bg, #f0f0f0);
407
+ color: var(--preview-role-color, #666);
408
+ min-width: 60px;
409
+ text-align: center;
410
+ }
411
+
412
+ .preview-agent-character {
413
+ font-size: 13px;
414
+ color: var(--preview-char-color, #333);
415
+ }
416
+
417
+ /* Quote styling */
418
+ .preview-quote {
419
+ margin: 8px 0 0 0;
420
+ padding: 10px 12px;
421
+ border-left: 3px solid var(--preview-quote-border, #ccc);
422
+ font-style: italic;
423
+ font-size: 13px;
424
+ color: var(--preview-quote-color, #666);
425
+ background: var(--card-category-bg, rgba(0, 0, 0, 0.03));
426
+ border-radius: 0 4px 4px 0;
427
+ }
428
+
429
+ /* Tier styling for preview panel */
430
+ .theme-preview-panel.tier-s {
431
+ border-left-color: var(--tier-s-color, #ffd700);
432
+ }
433
+
434
+ .theme-preview-panel.tier-s .preview-title {
435
+ color: var(--tier-s-color, #ffd700);
436
+ }
437
+
438
+ .theme-preview-panel.tier-a {
439
+ border-left-color: var(--tier-a-color, #c0c0c0);
440
+ }
441
+
442
+ .theme-preview-panel.tier-b {
443
+ border-left-color: var(--tier-b-color, #cd7f32);
444
+ }
445
+
446
+ .theme-preview-panel.tier-u {
447
+ border-left-color: var(--tier-u-color, #888);
448
+ }
449
+
450
+ /* =============================================================================
451
+ Favorites Section (Story 24-7)
452
+ ============================================================================= */
453
+
454
+ .theme-favorites-section {
455
+ margin-bottom: 16px;
456
+ padding-bottom: 16px;
457
+ border-bottom: 1px solid var(--border-color, #e0e0e0);
458
+ }
459
+
460
+ .theme-favorites-header {
461
+ display: flex;
462
+ align-items: center;
463
+ gap: 6px;
464
+ margin-bottom: 12px;
465
+ font-size: 14px;
466
+ font-weight: 600;
467
+ color: var(--favorites-header-color, #333);
468
+ }
469
+
470
+ .favorites-icon {
471
+ color: var(--favorites-star-color, #ffc107);
472
+ font-size: 16px;
473
+ }
474
+
475
+ .favorites-count {
476
+ font-weight: 400;
477
+ color: var(--favorites-count-color, #666);
478
+ font-size: 12px;
479
+ }
480
+
481
+ .theme-all-header {
482
+ margin-bottom: 12px;
483
+ font-size: 14px;
484
+ font-weight: 600;
485
+ color: var(--all-header-color, #333);
486
+ }
487
+
488
+ /* Favorite button on card */
489
+ .theme-card-favorite {
490
+ position: absolute;
491
+ top: 8px;
492
+ right: 8px;
493
+ width: 24px;
494
+ height: 24px;
495
+ padding: 0;
496
+ border: none;
497
+ background: transparent;
498
+ cursor: pointer;
499
+ font-size: 16px;
500
+ line-height: 1;
501
+ color: var(--favorite-inactive-color, #ccc);
502
+ transition: color 0.15s ease, transform 0.1s ease;
503
+ z-index: 1;
504
+ }
505
+
506
+ .theme-card-favorite:hover {
507
+ color: var(--favorite-hover-color, #ffc107);
508
+ transform: scale(1.15);
509
+ }
510
+
511
+ .theme-card-favorite.is-favorite {
512
+ color: var(--favorite-active-color, #ffc107);
513
+ }
514
+
515
+ .theme-card-favorite:focus {
516
+ outline: none;
517
+ }
518
+
519
+ /* Card needs relative positioning for absolute favorite button */
520
+ .theme-card {
521
+ position: relative;
522
+ }
523
+
524
+ /* Adjust card name to not overlap favorite button */
525
+ .theme-card-name {
526
+ padding-right: 28px;
527
+ }
528
+
529
+ /* Dark mode support for favorites */
530
+ @media (prefers-color-scheme: dark) {
531
+ .theme-favorites-section {
532
+ --border-color: #444;
533
+ }
534
+
535
+ .theme-favorites-header,
536
+ .theme-all-header {
537
+ --favorites-header-color: #eee;
538
+ --all-header-color: #eee;
539
+ }
540
+
541
+ .favorites-count {
542
+ --favorites-count-color: #aaa;
543
+ }
544
+
545
+ .theme-card-favorite {
546
+ --favorite-inactive-color: #555;
547
+ --favorite-hover-color: #ffc107;
548
+ --favorite-active-color: #ffc107;
549
+ }
550
+ }