@pennyfarthing/core 11.4.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1168) hide show
  1. package/README.md +9 -9
  2. package/package.json +3 -9
  3. package/packages/core/dist/cli/commands/command.js +9 -9
  4. package/packages/core/dist/cli/commands/command.js.map +1 -1
  5. package/packages/core/dist/cli/commands/cyclist.js +1 -1
  6. package/packages/core/dist/cli/commands/cyclist.js.map +1 -1
  7. package/packages/core/dist/cli/commands/cyclist.test.js +4 -4
  8. package/packages/core/dist/cli/commands/cyclist.test.js.map +1 -1
  9. package/packages/core/dist/cli/commands/doctor-legacy.test.js +2 -1
  10. package/packages/core/dist/cli/commands/doctor-legacy.test.js.map +1 -1
  11. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts +22 -0
  12. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts.map +1 -0
  13. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js +161 -0
  14. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js.map +1 -0
  15. package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
  16. package/packages/core/dist/cli/commands/doctor.js +190 -34
  17. package/packages/core/dist/cli/commands/doctor.js.map +1 -1
  18. package/packages/core/dist/cli/commands/e2e-upgrade.test.js +1 -1
  19. package/packages/core/dist/cli/commands/e2e-upgrade.test.js.map +1 -1
  20. package/packages/core/dist/cli/commands/hook-chaining.test.js +1 -1
  21. package/packages/core/dist/cli/commands/hook-chaining.test.js.map +1 -1
  22. package/packages/core/dist/cli/commands/init.d.ts.map +1 -1
  23. package/packages/core/dist/cli/commands/init.js +47 -18
  24. package/packages/core/dist/cli/commands/init.js.map +1 -1
  25. package/packages/core/dist/cli/commands/pyproject-install.test.js +1 -1
  26. package/packages/core/dist/cli/commands/pyproject-install.test.js.map +1 -1
  27. package/packages/core/dist/cli/commands/skill.js +9 -9
  28. package/packages/core/dist/cli/commands/skill.js.map +1 -1
  29. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
  30. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
  31. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
  32. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
  33. package/packages/core/dist/cli/commands/theme.js +3 -3
  34. package/packages/core/dist/cli/commands/theme.js.map +1 -1
  35. package/packages/core/dist/cli/commands/uninstall.js +1 -1
  36. package/packages/core/dist/cli/commands/uninstall.js.map +1 -1
  37. package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
  38. package/packages/core/dist/cli/commands/update.js +71 -20
  39. package/packages/core/dist/cli/commands/update.js.map +1 -1
  40. package/packages/core/dist/cli/commands/version.js +1 -1
  41. package/packages/core/dist/cli/commands/version.js.map +1 -1
  42. package/packages/core/dist/cli/index.js +2 -30
  43. package/packages/core/dist/cli/index.js.map +1 -1
  44. package/packages/core/dist/cli/utils/constants.d.ts +2 -2
  45. package/packages/core/dist/cli/utils/constants.js +1 -1
  46. package/packages/core/dist/cli/utils/constants.js.map +1 -1
  47. package/packages/core/dist/cli/utils/files.d.ts +1 -1
  48. package/packages/core/dist/cli/utils/files.js +1 -1
  49. package/packages/core/dist/cli/utils/install-helpers.d.ts +25 -0
  50. package/packages/core/dist/cli/utils/install-helpers.d.ts.map +1 -0
  51. package/packages/core/dist/cli/utils/install-helpers.js +162 -0
  52. package/packages/core/dist/cli/utils/install-helpers.js.map +1 -0
  53. package/packages/core/dist/cli/utils/node-modules.d.ts +7 -0
  54. package/packages/core/dist/cli/utils/node-modules.d.ts.map +1 -1
  55. package/packages/core/dist/cli/utils/node-modules.js +39 -0
  56. package/packages/core/dist/cli/utils/node-modules.js.map +1 -1
  57. package/packages/core/dist/cli/utils/settings.d.ts +1 -1
  58. package/packages/core/dist/cli/utils/settings.d.ts.map +1 -1
  59. package/packages/core/dist/cli/utils/settings.js +40 -21
  60. package/packages/core/dist/cli/utils/settings.js.map +1 -1
  61. package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
  62. package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
  63. package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
  64. package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
  65. package/packages/core/dist/cli/utils/symlinks.d.ts +4 -0
  66. package/packages/core/dist/cli/utils/symlinks.d.ts.map +1 -1
  67. package/packages/core/dist/cli/utils/symlinks.js +25 -2
  68. package/packages/core/dist/cli/utils/symlinks.js.map +1 -1
  69. package/packages/core/dist/cli/workspace.test.js +4 -37
  70. package/packages/core/dist/cli/workspace.test.js.map +1 -1
  71. package/packages/core/dist/data-source.d.ts +42 -0
  72. package/packages/core/dist/data-source.d.ts.map +1 -0
  73. package/packages/core/dist/data-source.js +12 -0
  74. package/packages/core/dist/data-source.js.map +1 -0
  75. package/packages/core/dist/data-source.test.d.ts +16 -0
  76. package/packages/core/dist/data-source.test.d.ts.map +1 -0
  77. package/packages/core/dist/data-source.test.js +206 -0
  78. package/packages/core/dist/data-source.test.js.map +1 -0
  79. package/packages/core/dist/index.d.ts +1 -0
  80. package/packages/core/dist/index.d.ts.map +1 -1
  81. package/packages/core/dist/index.js.map +1 -1
  82. package/packages/core/dist/public/css/react.css +1 -1
  83. package/packages/core/dist/public/js/react/react.js +39 -39
  84. package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
  85. package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
  86. package/packages/core/dist/scripts/benchmark-integration.js +691 -0
  87. package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
  88. package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
  89. package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
  90. package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
  91. package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
  92. package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
  93. package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
  94. package/packages/core/dist/server/api/context.d.ts.map +1 -1
  95. package/packages/core/dist/server/api/context.js +23 -5
  96. package/packages/core/dist/server/api/context.js.map +1 -1
  97. package/packages/core/dist/server/api/index.d.ts +0 -1
  98. package/packages/core/dist/server/api/index.d.ts.map +1 -1
  99. package/packages/core/dist/server/api/index.js +0 -2
  100. package/packages/core/dist/server/api/index.js.map +1 -1
  101. package/packages/core/dist/server/api/settings.d.ts.map +1 -1
  102. package/packages/core/dist/server/api/settings.js +6 -0
  103. package/packages/core/dist/server/api/settings.js.map +1 -1
  104. package/packages/core/dist/server/otlp-receiver.d.ts +2 -4
  105. package/packages/core/dist/server/otlp-receiver.d.ts.map +1 -1
  106. package/packages/core/dist/server/otlp-receiver.js +7 -18
  107. package/packages/core/dist/server/otlp-receiver.js.map +1 -1
  108. package/packages/core/dist/server/otlp-receiver.test.js +0 -27
  109. package/packages/core/dist/server/otlp-receiver.test.js.map +1 -1
  110. package/packages/core/dist/server/server.d.ts +2 -2
  111. package/packages/core/dist/server/server.d.ts.map +1 -1
  112. package/packages/core/dist/server/server.js +20 -5
  113. package/packages/core/dist/server/server.js.map +1 -1
  114. package/packages/core/dist/server/server.test.js +1 -1
  115. package/packages/core/dist/server/server.test.js.map +1 -1
  116. package/packages/core/dist/shared/generate-skill-docs.test.js +2 -2
  117. package/packages/core/dist/shared/skill-search.test.js +2 -2
  118. package/packages/core/dist/workflow/cross-entity-validation.d.ts.map +1 -1
  119. package/packages/core/dist/workflow/cross-entity-validation.js.map +1 -1
  120. package/packages/core/dist/workflow/tandem-workflow-templates.test.js +3 -3
  121. package/packages/core/dist/workflow/tandem-workflow-templates.test.js.map +1 -1
  122. package/packages/core/dist/workflow/workflow-migration.test.js +8 -8
  123. package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
  124. package/packages/core/dist/workflow/workflow-schema.js +1 -1
  125. package/packages/core/dist/workflow/workflow-schema.js.map +1 -1
  126. package/packages/core/src/public/App.tsx +1 -4
  127. package/packages/core/src/public/components/DockviewWorkspace.tsx +0 -4
  128. package/packages/core/src/public/components/panels/SettingsPanel.tsx +83 -283
  129. package/packages/core/src/public/components/panels/SprintPanel.tsx +11 -1
  130. package/packages/core/src/public/components/panels/index.ts +0 -1
  131. package/packages/core/src/public/data-source.ts +117 -0
  132. package/packages/core/src/public/hooks/index.ts +0 -3
  133. package/packages/core/src/public/hooks/useAgentLoad.ts +1 -0
  134. package/packages/core/src/public/hooks/useCodeMarkers.ts +1 -0
  135. package/packages/core/src/public/hooks/useComplexity.ts +1 -0
  136. package/packages/core/src/public/hooks/useDataSource.ts +273 -0
  137. package/packages/core/src/public/hooks/useDeadCode.ts +1 -0
  138. package/packages/core/src/public/hooks/useDependencies.ts +1 -0
  139. package/packages/core/src/public/hooks/useDiffs.ts +46 -91
  140. package/packages/core/src/public/hooks/useGitStatus.ts +16 -77
  141. package/packages/core/src/public/hooks/useHealthScore.ts +1 -0
  142. package/packages/core/src/public/hooks/useHotspots.ts +1 -0
  143. package/packages/core/src/public/hooks/usePersona.ts +32 -67
  144. package/packages/core/src/public/hooks/useSprint.ts +23 -75
  145. package/packages/core/src/public/hooks/useStatsStrip.ts +47 -117
  146. package/packages/core/src/public/hooks/useStory.ts +11 -60
  147. package/packages/core/src/public/hooks/useTodos.ts +8 -61
  148. package/packages/core/src/public/images/cyclist-tandem-source.png +0 -0
  149. package/packages/core/src/public/index.ts +5 -0
  150. package/packages/core/src/public/styles/tailwind.css +15 -101
  151. package/packages/core/src/public/utils/slash-commands.ts +0 -4
  152. package/pennyfarthing-dist/agents/architect.md +8 -0
  153. package/pennyfarthing-dist/agents/ba.md +8 -0
  154. package/pennyfarthing-dist/agents/dev.md +10 -2
  155. package/pennyfarthing-dist/agents/devops.md +8 -0
  156. package/pennyfarthing-dist/agents/orchestrator.md +8 -0
  157. package/pennyfarthing-dist/agents/pm.md +8 -0
  158. package/pennyfarthing-dist/agents/reviewer.md +12 -4
  159. package/pennyfarthing-dist/agents/sm-setup.md +7 -7
  160. package/pennyfarthing-dist/agents/sm.md +20 -12
  161. package/pennyfarthing-dist/agents/tea.md +10 -2
  162. package/pennyfarthing-dist/agents/tech-writer.md +8 -0
  163. package/pennyfarthing-dist/agents/ux-designer.md +8 -0
  164. package/pennyfarthing-dist/commands/pf-architect.md +1 -1
  165. package/pennyfarthing-dist/commands/pf-ba.md +1 -1
  166. package/pennyfarthing-dist/commands/pf-dev.md +1 -1
  167. package/pennyfarthing-dist/commands/pf-devops.md +1 -1
  168. package/pennyfarthing-dist/commands/pf-health-check.md +1 -1
  169. package/pennyfarthing-dist/commands/pf-help.md +3 -2
  170. package/pennyfarthing-dist/commands/pf-orchestrator.md +1 -1
  171. package/pennyfarthing-dist/commands/pf-pm.md +1 -1
  172. package/pennyfarthing-dist/commands/pf-reviewer.md +1 -1
  173. package/pennyfarthing-dist/commands/pf-setup.md +4 -4
  174. package/pennyfarthing-dist/commands/pf-sm.md +1 -1
  175. package/pennyfarthing-dist/commands/pf-standalone.md +60 -0
  176. package/pennyfarthing-dist/commands/pf-tea.md +1 -1
  177. package/pennyfarthing-dist/commands/pf-tech-writer.md +1 -1
  178. package/pennyfarthing-dist/commands/pf-ux-designer.md +1 -1
  179. package/pennyfarthing-dist/commands/pf-work.md +1 -1
  180. package/pennyfarthing-dist/guides/agent-behavior.md +11 -11
  181. package/pennyfarthing-dist/guides/agent-tag-taxonomy.md +2 -2
  182. package/pennyfarthing-dist/guides/bikelane.md +1 -8
  183. package/pennyfarthing-dist/guides/bikerack.md +94 -0
  184. package/pennyfarthing-dist/guides/hooks.md +1 -1
  185. package/pennyfarthing-dist/guides/what-is-pennyfarthing.md +91 -0
  186. package/pennyfarthing-dist/guides/xml-tags.md +2 -2
  187. package/pennyfarthing-dist/personas/themes/discworld.yaml +14 -12
  188. package/pennyfarthing-dist/personas/themes/firefly.yaml +12 -12
  189. package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +14 -12
  190. package/pennyfarthing-dist/pyproject.toml +6 -2
  191. package/pennyfarthing-dist/scripts/core/agent-session.sh +4 -5
  192. package/pennyfarthing-dist/scripts/core/check-context.sh +10 -5
  193. package/pennyfarthing-dist/scripts/core/phase-check-start.sh +1 -2
  194. package/pennyfarthing-dist/scripts/core/prime.sh +1 -2
  195. package/pennyfarthing-dist/scripts/git/changelog-links.sh +216 -0
  196. package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +1 -2
  197. package/pennyfarthing-dist/scripts/git/git-status-all.sh +1 -2
  198. package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +1 -2
  199. package/pennyfarthing-dist/scripts/git/worktree-manager.sh +1 -2
  200. package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
  201. package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +2 -3
  202. package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +2 -3
  203. package/pennyfarthing-dist/scripts/hooks/context-warning.sh +2 -3
  204. package/pennyfarthing-dist/scripts/hooks/cyclist-pretooluse-hook.sh +2 -3
  205. package/pennyfarthing-dist/scripts/hooks/post-merge.sh +31 -1
  206. package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +6 -4
  207. package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +2 -3
  208. package/pennyfarthing-dist/scripts/hooks/pre-push.sh +1 -1
  209. package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +2 -3
  210. package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +2 -3
  211. package/pennyfarthing-dist/scripts/hooks/session-start.sh +2 -3
  212. package/pennyfarthing-dist/scripts/hooks/session-stop.sh +2 -3
  213. package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +2 -3
  214. package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +2 -3
  215. package/pennyfarthing-dist/scripts/lib/README.md +0 -1
  216. package/pennyfarthing-dist/scripts/misc/statusline.sh +2 -3
  217. package/pennyfarthing-dist/scripts/misc/uninstall.sh +1 -1
  218. package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +84 -8
  219. package/pennyfarthing-dist/scripts/portraits/generate-tandem-portraits.sh +7 -3
  220. package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +2 -2
  221. package/pennyfarthing-dist/scripts/theme/list-themes.sh +2 -18
  222. package/pennyfarthing-dist/scripts/workflow/finish-story.sh +1 -2
  223. package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +1 -2
  224. package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +1 -2
  225. package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +1 -2
  226. package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +1 -2
  227. package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +1 -2
  228. package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +1 -2
  229. package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +1 -2
  230. package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +1 -2
  231. package/pennyfarthing-dist/skills/pf-jira/usage.md +87 -145
  232. package/pennyfarthing-dist/skills/pf-settings/skill.md +41 -3
  233. package/pennyfarthing-dist/skills/pf-settings/usage.md +25 -0
  234. package/pennyfarthing-dist/skills/pf-sprint/skill.md +4 -0
  235. package/pennyfarthing-dist/skills/pf-sprint/usage.md +167 -173
  236. package/pennyfarthing-dist/skills/pf-theme/usage.md +17 -129
  237. package/pennyfarthing-dist/skills/pf-ux-tandem/SKILL.md +194 -0
  238. package/pennyfarthing-dist/skills/pf-workflow/usage.md +51 -128
  239. package/pennyfarthing-dist/skills/skill-registry.yaml +17 -21
  240. package/pennyfarthing-dist/src/pf/CLAUDE.md +213 -0
  241. package/pennyfarthing-dist/src/pf/__init__.py +17 -0
  242. package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-311.pyc +0 -0
  243. package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  244. package/pennyfarthing-dist/src/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
  245. package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-311.pyc +0 -0
  246. package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-314.pyc +0 -0
  247. package/pennyfarthing-dist/src/pf/__pycache__/config.cpython-314.pyc +0 -0
  248. package/pennyfarthing-dist/src/pf/__pycache__/config_migration.cpython-314.pyc +0 -0
  249. package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-311.pyc +0 -0
  250. package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-314.pyc +0 -0
  251. package/pennyfarthing-dist/src/pf/__pycache__/hooks.cpython-314.pyc +0 -0
  252. package/pennyfarthing-dist/src/pf/__pycache__/jira.cpython-314.pyc +0 -0
  253. package/pennyfarthing-dist/src/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
  254. package/pennyfarthing-dist/src/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
  255. package/pennyfarthing-dist/src/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
  256. package/pennyfarthing-dist/src/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
  257. package/pennyfarthing-dist/src/pf/__pycache__/output.cpython-314.pyc +0 -0
  258. package/pennyfarthing-dist/src/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
  259. package/pennyfarthing-dist/src/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
  260. package/pennyfarthing-dist/src/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
  261. package/pennyfarthing-dist/src/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
  262. package/pennyfarthing-dist/src/pf/__pycache__/sprint.cpython-314.pyc +0 -0
  263. package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-311.pyc +0 -0
  264. package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-314.pyc +0 -0
  265. package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
  266. package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  267. package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
  268. package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  269. package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
  270. package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  271. package/pennyfarthing-dist/src/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  272. package/pennyfarthing-dist/src/pf/bc/cli.py +240 -0
  273. package/pennyfarthing-dist/src/pf/bc/focus.py +332 -0
  274. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
  275. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  276. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
  277. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  278. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  279. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  280. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  281. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
  282. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  283. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  284. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  285. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  286. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  287. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  288. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
  289. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  290. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/layout_order.cpython-314.pyc +0 -0
  291. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  292. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  293. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  294. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  295. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  296. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_widget.cpython-314.pyc +0 -0
  297. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  298. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  299. package/pennyfarthing-dist/src/pf/bikerack/audit_log_panel.py +631 -0
  300. package/pennyfarthing-dist/src/pf/bikerack/base_panel.py +186 -0
  301. package/pennyfarthing-dist/src/pf/bikerack/context_meter_footer.py +266 -0
  302. package/pennyfarthing-dist/src/pf/bikerack/debug_panel.py +451 -0
  303. package/pennyfarthing-dist/src/pf/bikerack/launcher.py +239 -0
  304. package/pennyfarthing-dist/src/pf/bikerack/layout_order.py +84 -0
  305. package/pennyfarthing-dist/src/pf/bikerack/portrait_resolver.py +191 -0
  306. package/pennyfarthing-dist/src/pf/bikerack/progress_panel.py +564 -0
  307. package/pennyfarthing-dist/src/pf/bikerack/sprint_panel.py +645 -0
  308. package/pennyfarthing-dist/src/pf/bikerack/story_detail_data.py +329 -0
  309. package/pennyfarthing-dist/src/pf/bikerack/story_detail_screen.py +283 -0
  310. package/pennyfarthing-dist/src/pf/bikerack/story_detail_widget.py +167 -0
  311. package/pennyfarthing-dist/src/pf/bikerack/tui.py +1170 -0
  312. package/pennyfarthing-dist/src/pf/bikerack/ws_client.py +203 -0
  313. package/pennyfarthing-dist/src/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  314. package/pennyfarthing-dist/src/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  315. package/pennyfarthing-dist/src/pf/bmad/cli.py +196 -0
  316. package/pennyfarthing-dist/src/pf/bmad/importer.py +199 -0
  317. package/pennyfarthing-dist/src/pf/bmad/parser.py +238 -0
  318. package/pennyfarthing-dist/src/pf/bmad/sync.py +462 -0
  319. package/pennyfarthing-dist/src/pf/bmad/test_parser.py +249 -0
  320. package/pennyfarthing-dist/src/pf/bmad/test_sync.py +220 -0
  321. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
  322. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
  323. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
  324. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
  325. package/pennyfarthing-dist/src/pf/brownfield/cli.py +130 -0
  326. package/pennyfarthing-dist/src/pf/cli.py +393 -0
  327. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  328. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
  329. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  330. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
  331. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
  332. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  333. package/pennyfarthing-dist/src/pf/common/__init__.py +50 -0
  334. package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
  335. package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  336. package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-311.pyc +0 -0
  337. package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  338. package/pennyfarthing-dist/src/pf/common/__pycache__/hooks.cpython-314.pyc +0 -0
  339. package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-311.pyc +0 -0
  340. package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  341. package/pennyfarthing-dist/src/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  342. package/pennyfarthing-dist/src/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  343. package/pennyfarthing-dist/src/pf/common/config.py +162 -0
  344. package/pennyfarthing-dist/src/pf/common/hooks.py +31 -0
  345. package/pennyfarthing-dist/src/pf/common/themes.py +354 -0
  346. package/pennyfarthing-dist/src/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  347. package/pennyfarthing-dist/src/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
  348. package/pennyfarthing-dist/src/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  349. package/pennyfarthing-dist/src/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
  350. package/pennyfarthing-dist/src/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
  351. package/pennyfarthing-dist/src/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  352. package/pennyfarthing-dist/src/pf/config_migration.py +102 -0
  353. package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
  354. package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  355. package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
  356. package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  357. package/pennyfarthing-dist/src/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
  358. package/pennyfarthing-dist/src/pf/context.py +413 -0
  359. package/pennyfarthing-dist/src/pf/core/__init__.py +6 -0
  360. package/pennyfarthing-dist/src/pf/core/__pycache__/__init__.cpython-314.pyc +0 -0
  361. package/pennyfarthing-dist/src/pf/core/__pycache__/models.cpython-314.pyc +0 -0
  362. package/pennyfarthing-dist/src/pf/core/__pycache__/resolver.cpython-314.pyc +0 -0
  363. package/pennyfarthing-dist/src/pf/core/models.py +30 -0
  364. package/pennyfarthing-dist/src/pf/core/resolver.py +137 -0
  365. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
  366. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  367. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
  368. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  369. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
  370. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  371. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
  372. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  373. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  374. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
  375. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  376. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
  377. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
  378. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  379. package/pennyfarthing-dist/src/pf/docs/__init__.py +1 -0
  380. package/pennyfarthing-dist/src/pf/docs/__pycache__/__init__.cpython-314.pyc +0 -0
  381. package/pennyfarthing-dist/src/pf/docs/__pycache__/cli.cpython-314.pyc +0 -0
  382. package/pennyfarthing-dist/src/pf/docs/__pycache__/sync_skills.cpython-314.pyc +0 -0
  383. package/pennyfarthing-dist/src/pf/docs/cli.py +51 -0
  384. package/pennyfarthing-dist/src/pf/docs/sync_skills.py +489 -0
  385. package/pennyfarthing-dist/src/pf/doctor/__init__.py +6 -0
  386. package/pennyfarthing-dist/src/pf/doctor/__pycache__/__init__.cpython-314.pyc +0 -0
  387. package/pennyfarthing-dist/src/pf/doctor/__pycache__/checks.cpython-314.pyc +0 -0
  388. package/pennyfarthing-dist/src/pf/doctor/__pycache__/cli.cpython-314.pyc +0 -0
  389. package/pennyfarthing-dist/src/pf/doctor/__pycache__/core.cpython-314.pyc +0 -0
  390. package/pennyfarthing-dist/src/pf/doctor/__pycache__/models.cpython-314.pyc +0 -0
  391. package/pennyfarthing-dist/src/pf/doctor/checks.py +180 -0
  392. package/pennyfarthing-dist/src/pf/doctor/cli.py +52 -0
  393. package/pennyfarthing-dist/src/pf/doctor/core.py +63 -0
  394. package/pennyfarthing-dist/src/pf/doctor/models.py +29 -0
  395. package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
  396. package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  397. package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
  398. package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  399. package/pennyfarthing-dist/src/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
  400. package/pennyfarthing-dist/src/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
  401. package/pennyfarthing-dist/src/pf/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
  402. package/pennyfarthing-dist/src/pf/git/__pycache__/repos.cpython-314.pyc +0 -0
  403. package/pennyfarthing-dist/src/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
  404. package/pennyfarthing-dist/src/pf/git/hooks_installer.py +152 -0
  405. package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
  406. package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  407. package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
  408. package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  409. package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
  410. package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  411. package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
  412. package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  413. package/pennyfarthing-dist/src/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  414. package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
  415. package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
  416. package/pennyfarthing-dist/src/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  417. package/pennyfarthing-dist/src/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  418. package/pennyfarthing-dist/src/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  419. package/pennyfarthing-dist/src/pf/handoff/gate_file.py +109 -0
  420. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
  421. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  422. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  423. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
  424. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  425. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
  426. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  427. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  428. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
  429. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  430. package/pennyfarthing-dist/src/pf/hooks/__init__.py +447 -0
  431. package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  432. package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  433. package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
  434. package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  435. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
  436. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  437. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
  438. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  439. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
  440. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  441. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
  442. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  443. package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
  444. package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  445. package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
  446. package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  447. package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
  448. package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  449. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
  450. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  451. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  452. package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
  453. package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  454. package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
  455. package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  456. package/pennyfarthing-dist/src/pf/hooks/cyclist_pretooluse.py +161 -0
  457. package/pennyfarthing-dist/src/pf/hooks/frontmatter.py +257 -0
  458. package/pennyfarthing-dist/src/pf/hooks/session_start.py +379 -0
  459. package/pennyfarthing-dist/src/pf/hooks/statusline.py +436 -0
  460. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
  461. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  462. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
  463. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
  464. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  465. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
  466. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  467. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
  468. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
  469. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  470. package/pennyfarthing-dist/src/pf/init/__init__.py +1 -0
  471. package/pennyfarthing-dist/src/pf/init/__pycache__/__init__.cpython-314.pyc +0 -0
  472. package/pennyfarthing-dist/src/pf/init/__pycache__/cli.cpython-314.pyc +0 -0
  473. package/pennyfarthing-dist/src/pf/init/__pycache__/core.cpython-314.pyc +0 -0
  474. package/pennyfarthing-dist/src/pf/init/__pycache__/setup.cpython-314.pyc +0 -0
  475. package/pennyfarthing-dist/src/pf/init/cli.py +63 -0
  476. package/pennyfarthing-dist/src/pf/init/core.py +281 -0
  477. package/pennyfarthing-dist/src/pf/init/setup.py +474 -0
  478. package/pennyfarthing-dist/src/pf/jira/__init__.py +91 -0
  479. package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
  480. package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  481. package/pennyfarthing-dist/src/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
  482. package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
  483. package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  484. package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
  485. package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  486. package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
  487. package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  488. package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
  489. package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  490. package/pennyfarthing-dist/src/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
  491. package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
  492. package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  493. package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
  494. package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  495. package/pennyfarthing-dist/src/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
  496. package/pennyfarthing-dist/src/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
  497. package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
  498. package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  499. package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
  500. package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  501. package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
  502. package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  503. package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
  504. package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  505. package/pennyfarthing-dist/src/pf/jira/claim.py +232 -0
  506. package/pennyfarthing-dist/src/pf/jira/cli.py +472 -0
  507. package/pennyfarthing-dist/src/pf/jira/client.py +766 -0
  508. package/pennyfarthing-dist/src/pf/jira/reconcile.py +260 -0
  509. package/pennyfarthing-dist/src/pf/jira/story.py +223 -0
  510. package/pennyfarthing-dist/src/pf/jira/sync.py +350 -0
  511. package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
  512. package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  513. package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
  514. package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  515. package/pennyfarthing-dist/src/pf/migration/__init__.py +39 -0
  516. package/pennyfarthing-dist/src/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
  517. package/pennyfarthing-dist/src/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
  518. package/pennyfarthing-dist/src/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
  519. package/pennyfarthing-dist/src/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
  520. package/pennyfarthing-dist/src/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
  521. package/pennyfarthing-dist/src/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
  522. package/pennyfarthing-dist/src/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
  523. package/pennyfarthing-dist/src/pf/migration/cli.py +303 -0
  524. package/pennyfarthing-dist/src/pf/package/__pycache__/__init__.cpython-314.pyc +0 -0
  525. package/pennyfarthing-dist/src/pf/package/__pycache__/cli.cpython-314.pyc +0 -0
  526. package/pennyfarthing-dist/src/pf/package/__pycache__/discovery.cpython-314.pyc +0 -0
  527. package/pennyfarthing-dist/src/pf/package/__pycache__/portraits.cpython-314.pyc +0 -0
  528. package/pennyfarthing-dist/src/pf/package/cli.py +186 -0
  529. package/pennyfarthing-dist/src/pf/package/discovery.py +130 -0
  530. package/pennyfarthing-dist/src/pf/package/portraits.py +243 -0
  531. package/pennyfarthing-dist/src/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
  532. package/pennyfarthing-dist/src/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
  533. package/pennyfarthing-dist/src/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
  534. package/pennyfarthing-dist/src/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
  535. package/pennyfarthing-dist/src/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  536. package/pennyfarthing-dist/src/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
  537. package/pennyfarthing-dist/src/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  538. package/pennyfarthing-dist/src/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  539. package/pennyfarthing-dist/src/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  540. package/pennyfarthing-dist/src/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  541. package/pennyfarthing-dist/src/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  542. package/pennyfarthing-dist/src/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  543. package/pennyfarthing-dist/src/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
  544. package/pennyfarthing-dist/src/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  545. package/pennyfarthing-dist/src/pf/prime/cli.py +721 -0
  546. package/pennyfarthing-dist/src/pf/prime/loader.py +322 -0
  547. package/pennyfarthing-dist/src/pf/prime/persona.py +305 -0
  548. package/pennyfarthing-dist/src/pf/prime/workflow.py +325 -0
  549. package/pennyfarthing-dist/src/pf/release/__pycache__/__init__.cpython-314.pyc +0 -0
  550. package/pennyfarthing-dist/src/pf/release/__pycache__/cli.cpython-314.pyc +0 -0
  551. package/pennyfarthing-dist/src/pf/release/__pycache__/deprecate.cpython-314.pyc +0 -0
  552. package/pennyfarthing-dist/src/pf/release/__pycache__/dry_run.cpython-314.pyc +0 -0
  553. package/pennyfarthing-dist/src/pf/release/cli.py +112 -0
  554. package/pennyfarthing-dist/src/pf/release/deprecate.py +187 -0
  555. package/pennyfarthing-dist/src/pf/release/dry_run.py +187 -0
  556. package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
  557. package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  558. package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
  559. package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  560. package/pennyfarthing-dist/src/pf/settings/__init__.py +0 -0
  561. package/pennyfarthing-dist/src/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  562. package/pennyfarthing-dist/src/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  563. package/pennyfarthing-dist/src/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  564. package/pennyfarthing-dist/src/pf/settings/settings.py +135 -0
  565. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
  566. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  567. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
  568. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
  569. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  570. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  571. package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
  572. package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  573. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
  574. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  575. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
  576. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  577. package/pennyfarthing-dist/src/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
  578. package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
  579. package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  580. package/pennyfarthing-dist/src/pf/sprint/__pycache__/shard_merge.cpython-314.pyc +0 -0
  581. package/pennyfarthing-dist/src/pf/sprint/__pycache__/standalone_add.cpython-314.pyc +0 -0
  582. package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
  583. package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  584. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
  585. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  586. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  587. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_transition.cpython-314.pyc +0 -0
  588. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
  589. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  590. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
  591. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  592. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
  593. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  594. package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
  595. package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  596. package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
  597. package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  598. package/pennyfarthing-dist/src/pf/sprint/archive.py +164 -0
  599. package/pennyfarthing-dist/src/pf/sprint/cli.py +2206 -0
  600. package/pennyfarthing-dist/src/pf/sprint/loader.py +361 -0
  601. package/pennyfarthing-dist/src/pf/sprint/shard_merge.py +205 -0
  602. package/pennyfarthing-dist/src/pf/sprint/standalone_add.py +143 -0
  603. package/pennyfarthing-dist/src/pf/sprint/status.py +187 -0
  604. package/pennyfarthing-dist/src/pf/sprint/story_finish.py +229 -0
  605. package/pennyfarthing-dist/src/pf/sprint/story_transition.py +183 -0
  606. package/pennyfarthing-dist/src/pf/sprint/story_update.py +240 -0
  607. package/pennyfarthing-dist/src/pf/sprint/yaml_io.py +407 -0
  608. package/pennyfarthing-dist/src/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
  609. package/pennyfarthing-dist/src/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
  610. package/pennyfarthing-dist/src/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
  611. package/pennyfarthing-dist/src/pf/story/__pycache__/create.cpython-314.pyc +0 -0
  612. package/pennyfarthing-dist/src/pf/story/__pycache__/size.cpython-314.pyc +0 -0
  613. package/pennyfarthing-dist/src/pf/story/__pycache__/template.cpython-314.pyc +0 -0
  614. package/pennyfarthing-dist/src/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  615. package/pennyfarthing-dist/src/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  616. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
  617. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
  618. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
  619. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
  620. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
  621. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
  622. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
  623. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
  624. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
  625. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
  626. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
  627. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
  628. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_config_consolidation.cpython-314-pytest-9.0.2.pyc +0 -0
  629. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
  630. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dist_root.cpython-314-pytest-9.0.2.pyc +0 -0
  631. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_doctor.cpython-314-pytest-9.0.2.pyc +0 -0
  632. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_e2e_install_lifecycle.cpython-314-pytest-9.0.2.pyc +0 -0
  633. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
  634. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_event_driven_jira_sync.cpython-314-pytest-9.0.2.pyc +0 -0
  635. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
  636. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
  637. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
  638. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  639. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
  640. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
  641. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314-pytest-9.0.2.pyc +0 -0
  642. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314.pyc +0 -0
  643. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_command.cpython-314-pytest-9.0.2.pyc +0 -0
  644. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
  645. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
  646. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
  647. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
  648. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_pypi_packaging.cpython-314-pytest-9.0.2.pyc +0 -0
  649. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
  650. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
  651. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
  652. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel_provenance.cpython-314-pytest-9.0.2.pyc +0 -0
  653. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  654. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
  655. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
  656. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_transition.cpython-314-pytest-9.0.2.pyc +0 -0
  657. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
  658. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
  659. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
  660. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
  661. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
  662. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
  663. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_upgrade_cleanup.cpython-314-pytest-9.0.2.pyc +0 -0
  664. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
  665. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
  666. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
  667. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  668. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
  669. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_wrapper_removal.cpython-314-pytest-9.0.2.pyc +0 -0
  670. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
  671. package/pennyfarthing-dist/src/pf/tests/conftest.py +109 -0
  672. package/pennyfarthing-dist/src/pf/tests/test_108_1_gate_migration.py +541 -0
  673. package/pennyfarthing-dist/src/pf/tests/test_108_2_remove_handoff_fallback.py +340 -0
  674. package/pennyfarthing-dist/src/pf/tests/test_cli_modules.py +137 -0
  675. package/pennyfarthing-dist/src/pf/tests/test_codemarkers.py +672 -0
  676. package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_evaluation.py +252 -0
  677. package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_gate.py +318 -0
  678. package/pennyfarthing-dist/src/pf/tests/test_config_consolidation.py +513 -0
  679. package/pennyfarthing-dist/src/pf/tests/test_dist_root.py +720 -0
  680. package/pennyfarthing-dist/src/pf/tests/test_doctor.py +457 -0
  681. package/pennyfarthing-dist/src/pf/tests/test_event_driven_jira_sync.py +588 -0
  682. package/pennyfarthing-dist/src/pf/tests/test_init_auto_setup.py +893 -0
  683. package/pennyfarthing-dist/src/pf/tests/test_init_command.py +814 -0
  684. package/pennyfarthing-dist/src/pf/tests/test_jira_package.py +331 -0
  685. package/pennyfarthing-dist/src/pf/tests/test_package_structure.py +314 -0
  686. package/pennyfarthing-dist/src/pf/tests/test_pypi_packaging.py +329 -0
  687. package/pennyfarthing-dist/src/pf/tests/test_resolve_gate_file_field.py +460 -0
  688. package/pennyfarthing-dist/src/pf/tests/test_sprint_panel.py +610 -0
  689. package/pennyfarthing-dist/src/pf/tests/test_sprint_panel_provenance.py +485 -0
  690. package/pennyfarthing-dist/src/pf/tests/test_story_transition.py +502 -0
  691. package/pennyfarthing-dist/src/pf/tests/test_upgrade_cleanup.py +251 -0
  692. package/pennyfarthing-dist/src/pf/tests/test_wrapper_removal.py +373 -0
  693. package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
  694. package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  695. package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
  696. package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  697. package/pennyfarthing-dist/src/pf/theme/cli.py +321 -0
  698. package/pennyfarthing-dist/src/pf/upgrade/__init__.py +1 -0
  699. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/__init__.cpython-314.pyc +0 -0
  700. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/cli.cpython-314.pyc +0 -0
  701. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/core.cpython-314.pyc +0 -0
  702. package/pennyfarthing-dist/src/pf/upgrade/cli.py +62 -0
  703. package/pennyfarthing-dist/src/pf/upgrade/core.py +483 -0
  704. package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
  705. package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  706. package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
  707. package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  708. package/pennyfarthing-dist/src/pf/validate/adapters/__init__.py +0 -0
  709. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
  710. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
  711. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
  712. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
  713. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
  714. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
  715. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
  716. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
  717. package/pennyfarthing-dist/src/pf/validate/adapters/agent.py +261 -0
  718. package/pennyfarthing-dist/src/pf/validate/adapters/skill_command.py +502 -0
  719. package/pennyfarthing-dist/src/pf/validate/adapters/tandem_awareness.py +260 -0
  720. package/pennyfarthing-dist/src/pf/validate/adapters/team_mode.py +329 -0
  721. package/pennyfarthing-dist/src/pf/validate/adapters/workflow.py +413 -0
  722. package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
  723. package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  724. package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
  725. package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  726. package/pennyfarthing-dist/src/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  727. package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
  728. package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  729. package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
  730. package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  731. package/pennyfarthing-dist/src/pf/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
  732. package/pennyfarthing-dist/src/pf/workflow/cli.py +1109 -0
  733. package/pennyfarthing-dist/templates/justfile.template +71 -0
  734. package/pennyfarthing-dist/templates/preferences.yaml.template +5 -8
  735. package/pennyfarthing-dist/templates/pyproject.toml +9 -1
  736. package/pennyfarthing-dist/templates/settings.local.json.template +20 -11
  737. package/pennyfarthing-dist/templates/tmux-dev.template +45 -0
  738. package/pennyfarthing-dist/templates/tmux.conf.template +91 -0
  739. package/pennyfarthing-dist/workflows/installation-check/steps/step-01-foundation.md +2 -2
  740. package/pennyfarthing-dist/workflows/installation-check/steps/step-05-layout.md +1 -1
  741. package/pennyfarthing-dist/workflows/installation-check/steps/step-07-tools.md +6 -5
  742. package/pennyfarthing-dist/workflows/patch.yaml +5 -6
  743. package/pennyfarthing-dist/workflows/project-setup/steps/step-04-claude-md.md +59 -1
  744. package/pennyfarthing-dist/workflows/release/steps/step-01-preflight.md +4 -0
  745. package/pennyfarthing-dist/workflows/release/steps/step-02-bump.md +19 -9
  746. package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +67 -21
  747. package/pennyfarthing-dist/workflows/release/steps/step-11-finalize.md +41 -30
  748. package/pennyfarthing-dist/workflows/tdd-tandem.yaml +28 -8
  749. package/packages/core/bin/pennyfarthing.js +0 -14
  750. package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
  751. package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
  752. package/packages/core/dist/workflow/team-lifecycle.js +0 -217
  753. package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
  754. package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
  755. package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
  756. package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
  757. package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
  758. package/packages/core/src/public/components/BikeRackIndex.tsx +0 -53
  759. package/packages/core/src/public/components/BikeRackWorkspace.tsx +0 -217
  760. package/packages/core/src/public/components/FontPicker/FontPicker.css +0 -276
  761. package/packages/core/src/public/components/FontPicker/index.tsx +0 -430
  762. package/packages/core/src/public/components/StandalonePanel.tsx +0 -82
  763. package/packages/core/src/public/components/ThemePalette/ThemePalette.css +0 -179
  764. package/packages/core/src/public/components/ThemePalette/index.tsx +0 -326
  765. package/packages/core/src/public/components/panels/BackgroundPanel.tsx +0 -115
  766. package/packages/core/src/public/components/ui/switch.tsx +0 -27
  767. package/packages/core/src/public/hooks/useBackgroundTasks.ts +0 -131
  768. package/pennyfarthing-dist/commands/pf-permissions.md +0 -193
  769. package/pennyfarthing-dist/guides/permission-protocol.md +0 -188
  770. package/pennyfarthing-dist/pf/CLAUDE.md +0 -213
  771. package/pennyfarthing-dist/pf/__init__.py +0 -17
  772. package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  773. package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
  774. package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
  775. package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  776. package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  777. package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  778. package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  779. package/pennyfarthing-dist/pf/bc/cli.py +0 -241
  780. package/pennyfarthing-dist/pf/bc/focus.py +0 -333
  781. package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  782. package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  783. package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  784. package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  785. package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  786. package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  787. package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  788. package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  789. package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  790. package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  791. package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  792. package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  793. package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  794. package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  795. package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  796. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  797. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  798. package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  799. package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  800. package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +0 -161
  801. package/pennyfarthing-dist/pf/bikerack/background_panel.py +0 -162
  802. package/pennyfarthing-dist/pf/bikerack/base_panel.py +0 -184
  803. package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +0 -138
  804. package/pennyfarthing-dist/pf/bikerack/debug_panel.py +0 -248
  805. package/pennyfarthing-dist/pf/bikerack/launcher.py +0 -240
  806. package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +0 -160
  807. package/pennyfarthing-dist/pf/bikerack/progress_panel.py +0 -314
  808. package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +0 -492
  809. package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +0 -247
  810. package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +0 -177
  811. package/pennyfarthing-dist/pf/bikerack/tui.py +0 -920
  812. package/pennyfarthing-dist/pf/bikerack/ws_client.py +0 -176
  813. package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  814. package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  815. package/pennyfarthing-dist/pf/bmad/__pycache__/parser.cpython-314.pyc +0 -0
  816. package/pennyfarthing-dist/pf/bmad/cli.py +0 -197
  817. package/pennyfarthing-dist/pf/bmad/importer.py +0 -200
  818. package/pennyfarthing-dist/pf/bmad/parser.py +0 -239
  819. package/pennyfarthing-dist/pf/bmad/sync.py +0 -464
  820. package/pennyfarthing-dist/pf/bmad/test_parser.py +0 -253
  821. package/pennyfarthing-dist/pf/bmad/test_sync.py +0 -223
  822. package/pennyfarthing-dist/pf/brownfield/__main__.py +0 -8
  823. package/pennyfarthing-dist/pf/brownfield/cli.py +0 -130
  824. package/pennyfarthing-dist/pf/cli.py +0 -354
  825. package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  826. package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  827. package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  828. package/pennyfarthing-dist/pf/common/__init__.py +0 -48
  829. package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  830. package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  831. package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  832. package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  833. package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  834. package/pennyfarthing-dist/pf/common/config.py +0 -119
  835. package/pennyfarthing-dist/pf/common/themes.py +0 -253
  836. package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  837. package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  838. package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  839. package/pennyfarthing-dist/pf/config.py +0 -21
  840. package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  841. package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  842. package/pennyfarthing-dist/pf/context.py +0 -413
  843. package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  844. package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  845. package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  846. package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  847. package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  848. package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  849. package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  850. package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  851. package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  852. package/pennyfarthing-dist/pf/git/hooks_installer.py +0 -151
  853. package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  854. package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  855. package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  856. package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  857. package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  858. package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  859. package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  860. package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  861. package/pennyfarthing-dist/pf/handoff/gate_file.py +0 -105
  862. package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  863. package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  864. package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  865. package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  866. package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  867. package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  868. package/pennyfarthing-dist/pf/hooks/__init__.py +0 -442
  869. package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  870. package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  871. package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  872. package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  873. package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  874. package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  875. package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  876. package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  877. package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  878. package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  879. package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  880. package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  881. package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  882. package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +0 -129
  883. package/pennyfarthing-dist/pf/hooks/session_start.py +0 -294
  884. package/pennyfarthing-dist/pf/hooks/statusline.py +0 -429
  885. package/pennyfarthing-dist/pf/hooks.py +0 -32
  886. package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  887. package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  888. package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  889. package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  890. package/pennyfarthing-dist/pf/jira/__init__.py +0 -97
  891. package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  892. package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  893. package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  894. package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  895. package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  896. package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  897. package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  898. package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  899. package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  900. package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  901. package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  902. package/pennyfarthing-dist/pf/jira/claim.py +0 -232
  903. package/pennyfarthing-dist/pf/jira/cli.py +0 -362
  904. package/pennyfarthing-dist/pf/jira/client.py +0 -802
  905. package/pennyfarthing-dist/pf/jira/reconcile.py +0 -276
  906. package/pennyfarthing-dist/pf/jira/story.py +0 -221
  907. package/pennyfarthing-dist/pf/jira/sync.py +0 -350
  908. package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +0 -37
  909. package/pennyfarthing-dist/pf/jira_epic_creation.py +0 -30
  910. package/pennyfarthing-dist/pf/jira_sync.py +0 -36
  911. package/pennyfarthing-dist/pf/jira_sync_story.py +0 -30
  912. package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  913. package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  914. package/pennyfarthing-dist/pf/migration/__init__.py +0 -39
  915. package/pennyfarthing-dist/pf/migration/__main__.py +0 -10
  916. package/pennyfarthing-dist/pf/migration/cli.py +0 -304
  917. package/pennyfarthing-dist/pf/output.py +0 -37
  918. package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  919. package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  920. package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  921. package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  922. package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  923. package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  924. package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  925. package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  926. package/pennyfarthing-dist/pf/prime/cli.py +0 -662
  927. package/pennyfarthing-dist/pf/prime/loader.py +0 -308
  928. package/pennyfarthing-dist/pf/prime/persona.py +0 -311
  929. package/pennyfarthing-dist/pf/prime/workflow.py +0 -317
  930. package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  931. package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  932. package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  933. package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  934. package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  935. package/pennyfarthing-dist/pf/settings/settings.py +0 -134
  936. package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  937. package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  938. package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  939. package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  940. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  941. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  942. package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  943. package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  944. package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  945. package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  946. package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  947. package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  948. package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  949. package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  950. package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  951. package/pennyfarthing-dist/pf/sprint/archive.py +0 -164
  952. package/pennyfarthing-dist/pf/sprint/cli.py +0 -2021
  953. package/pennyfarthing-dist/pf/sprint/loader.py +0 -441
  954. package/pennyfarthing-dist/pf/sprint/status.py +0 -121
  955. package/pennyfarthing-dist/pf/sprint/story_finish.py +0 -239
  956. package/pennyfarthing-dist/pf/sprint/story_update.py +0 -222
  957. package/pennyfarthing-dist/pf/sprint/yaml_io.py +0 -433
  958. package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  959. package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  960. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  961. package/pennyfarthing-dist/pf/tests/conftest.py +0 -105
  962. package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +0 -540
  963. package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +0 -339
  964. package/pennyfarthing-dist/pf/tests/test_cli_modules.py +0 -241
  965. package/pennyfarthing-dist/pf/tests/test_codemarkers.py +0 -687
  966. package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +0 -253
  967. package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +0 -316
  968. package/pennyfarthing-dist/pf/tests/test_jira_package.py +0 -331
  969. package/pennyfarthing-dist/pf/tests/test_package_structure.py +0 -359
  970. package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +0 -460
  971. package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +0 -610
  972. package/pennyfarthing-dist/pf/theme/__main__.py +0 -6
  973. package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  974. package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  975. package/pennyfarthing-dist/pf/theme/cli.py +0 -310
  976. package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  977. package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  978. package/pennyfarthing-dist/pf/validate/adapters/agent.py +0 -239
  979. package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +0 -491
  980. package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +0 -254
  981. package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +0 -323
  982. package/pennyfarthing-dist/pf/validate/adapters/workflow.py +0 -403
  983. package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  984. package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  985. package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  986. package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  987. package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  988. package/pennyfarthing-dist/pf/workflow/cli.py +0 -1101
  989. package/pennyfarthing-dist/scripts/core/pf.sh +0 -5
  990. package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
  991. package/pennyfarthing-dist/scripts/lib/run-pf.sh +0 -44
  992. package/pennyfarthing-dist/skills/pf-permissions/skill.md +0 -157
  993. package/pennyfarthing-dist/templates/persona-config.yaml.template +0 -22
  994. package/scripts/postinstall.cjs +0 -34
  995. /package/pennyfarthing-dist/{pf → src/pf}/README.md +0 -0
  996. /package/pennyfarthing-dist/{pf → src/pf}/bc/__init__.py +0 -0
  997. /package/pennyfarthing-dist/{pf → src/pf}/bc/split.py +0 -0
  998. /package/pennyfarthing-dist/{pf → src/pf}/bellmode_hook.py +0 -0
  999. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__init__.py +0 -0
  1000. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__main__.py +0 -0
  1001. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/cli.py +0 -0
  1002. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/diffs_panel.py +0 -0
  1003. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/events.py +0 -0
  1004. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/git_panel.py +0 -0
  1005. /package/pennyfarthing-dist/{pf → src/pf}/bmad/__init__.py +0 -0
  1006. /package/pennyfarthing-dist/{pf → src/pf}/brownfield/__init__.py +0 -0
  1007. /package/pennyfarthing-dist/{pf → src/pf}/brownfield/discover.py +0 -0
  1008. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__init__.py +0 -0
  1009. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__main__.py +0 -0
  1010. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/analyze.py +0 -0
  1011. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/cli.py +0 -0
  1012. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/formatters.py +0 -0
  1013. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/models.py +0 -0
  1014. /package/pennyfarthing-dist/{pf → src/pf}/common/output.py +0 -0
  1015. /package/pennyfarthing-dist/{pf → src/pf}/common/pr_config.py +0 -0
  1016. /package/pennyfarthing-dist/{pf → src/pf}/complexity/__init__.py +0 -0
  1017. /package/pennyfarthing-dist/{pf → src/pf}/complexity/__main__.py +0 -0
  1018. /package/pennyfarthing-dist/{pf → src/pf}/complexity/analyze.py +0 -0
  1019. /package/pennyfarthing-dist/{pf → src/pf}/complexity/cli.py +0 -0
  1020. /package/pennyfarthing-dist/{pf → src/pf}/complexity/formatters.py +0 -0
  1021. /package/pennyfarthing-dist/{pf → src/pf}/complexity/models.py +0 -0
  1022. /package/pennyfarthing-dist/{pf → src/pf}/consultation/__init__.py +0 -0
  1023. /package/pennyfarthing-dist/{pf → src/pf}/consultation/cli.py +0 -0
  1024. /package/pennyfarthing-dist/{pf → src/pf}/consultation/dialogue_manager.py +0 -0
  1025. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__init__.py +0 -0
  1026. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__main__.py +0 -0
  1027. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/analyze.py +0 -0
  1028. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/cli.py +0 -0
  1029. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/formatters.py +0 -0
  1030. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/models.py +0 -0
  1031. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__init__.py +0 -0
  1032. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__main__.py +0 -0
  1033. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/analyze.py +0 -0
  1034. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/cli.py +0 -0
  1035. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/formatters.py +0 -0
  1036. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/models.py +0 -0
  1037. /package/pennyfarthing-dist/{pf → src/pf}/epic/__init__.py +0 -0
  1038. /package/pennyfarthing-dist/{pf → src/pf}/epic/cli.py +0 -0
  1039. /package/pennyfarthing-dist/{pf → src/pf}/gate/__init__.py +0 -0
  1040. /package/pennyfarthing-dist/{pf → src/pf}/gate/cli.py +0 -0
  1041. /package/pennyfarthing-dist/{pf → src/pf}/gate/validate.py +0 -0
  1042. /package/pennyfarthing-dist/{pf → src/pf}/git/__init__.py +0 -0
  1043. /package/pennyfarthing-dist/{pf → src/pf}/git/create_branches.py +0 -0
  1044. /package/pennyfarthing-dist/{pf → src/pf}/git/repos.py +0 -0
  1045. /package/pennyfarthing-dist/{pf → src/pf}/git/status_all.py +0 -0
  1046. /package/pennyfarthing-dist/{pf → src/pf}/git/worktree.py +0 -0
  1047. /package/pennyfarthing-dist/{pf → src/pf}/git_group/__init__.py +0 -0
  1048. /package/pennyfarthing-dist/{pf → src/pf}/git_group/cli.py +0 -0
  1049. /package/pennyfarthing-dist/{pf → src/pf}/handoff/__init__.py +0 -0
  1050. /package/pennyfarthing-dist/{pf → src/pf}/handoff/cli.py +0 -0
  1051. /package/pennyfarthing-dist/{pf → src/pf}/handoff/complete_phase.py +0 -0
  1052. /package/pennyfarthing-dist/{pf → src/pf}/handoff/gate_runner.py +0 -0
  1053. /package/pennyfarthing-dist/{pf → src/pf}/handoff/marker.py +0 -0
  1054. /package/pennyfarthing-dist/{pf → src/pf}/handoff/phase_check.py +0 -0
  1055. /package/pennyfarthing-dist/{pf → src/pf}/handoff/resolve_gate.py +0 -0
  1056. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__init__.py +0 -0
  1057. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__main__.py +0 -0
  1058. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/analyze.py +0 -0
  1059. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/cli.py +0 -0
  1060. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/formatters.py +0 -0
  1061. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/models.py +0 -0
  1062. /package/pennyfarthing-dist/{pf → src/pf}/hooks/bell_mode.py +0 -0
  1063. /package/pennyfarthing-dist/{pf → src/pf}/hooks/cli.py +0 -0
  1064. /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_breaker.py +0 -0
  1065. /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_warning.py +0 -0
  1066. /package/pennyfarthing-dist/{pf → src/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
  1067. /package/pennyfarthing-dist/{pf → src/pf}/hooks/pre_edit_check.py +0 -0
  1068. /package/pennyfarthing-dist/{pf → src/pf}/hooks/reflector_check.py +0 -0
  1069. /package/pennyfarthing-dist/{pf → src/pf}/hooks/schema_validation.py +0 -0
  1070. /package/pennyfarthing-dist/{pf → src/pf}/hooks/session_stop.py +0 -0
  1071. /package/pennyfarthing-dist/{pf → src/pf}/hooks/sprint_yaml_validation.py +0 -0
  1072. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__init__.py +0 -0
  1073. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__main__.py +0 -0
  1074. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/analyze.py +0 -0
  1075. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/cli.py +0 -0
  1076. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/formatters.py +0 -0
  1077. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/models.py +0 -0
  1078. /package/pennyfarthing-dist/{pf → src/pf}/jira/__main__.py +0 -0
  1079. /package/pennyfarthing-dist/{pf → src/pf}/jira/bidirectional.py +0 -0
  1080. /package/pennyfarthing-dist/{pf → src/pf}/jira/create.py +0 -0
  1081. /package/pennyfarthing-dist/{pf → src/pf}/jira/epic.py +0 -0
  1082. /package/pennyfarthing-dist/{pf → src/pf}/jira/operations.py +0 -0
  1083. /package/pennyfarthing-dist/{pf → src/pf}/launch/__init__.py +0 -0
  1084. /package/pennyfarthing-dist/{pf → src/pf}/launch/cli.py +0 -0
  1085. /package/pennyfarthing-dist/{pf → src/pf}/migration/session.py +0 -0
  1086. /package/pennyfarthing-dist/{pf → src/pf}/migration/skill.py +0 -0
  1087. /package/pennyfarthing-dist/{pf → src/pf}/migration/step.py +0 -0
  1088. /package/pennyfarthing-dist/{pf → src/pf}/migration/validate.py +0 -0
  1089. /package/pennyfarthing-dist/{pf/session → src/pf/package}/__init__.py +0 -0
  1090. /package/pennyfarthing-dist/{pf → src/pf}/patch_mode.py +0 -0
  1091. /package/pennyfarthing-dist/{pf → src/pf}/preflight/__init__.py +0 -0
  1092. /package/pennyfarthing-dist/{pf → src/pf}/preflight/__main__.py +0 -0
  1093. /package/pennyfarthing-dist/{pf → src/pf}/preflight/cli.py +0 -0
  1094. /package/pennyfarthing-dist/{pf → src/pf}/preflight/finish.py +0 -0
  1095. /package/pennyfarthing-dist/{pf → src/pf}/pretooluse_hook.py +0 -0
  1096. /package/pennyfarthing-dist/{pf → src/pf}/prime/__init__.py +0 -0
  1097. /package/pennyfarthing-dist/{pf → src/pf}/prime/__main__.py +0 -0
  1098. /package/pennyfarthing-dist/{pf → src/pf}/prime/heatmap.py +0 -0
  1099. /package/pennyfarthing-dist/{pf → src/pf}/prime/models.py +0 -0
  1100. /package/pennyfarthing-dist/{pf → src/pf}/prime/session.py +0 -0
  1101. /package/pennyfarthing-dist/{pf → src/pf}/prime/tiers.py +0 -0
  1102. /package/pennyfarthing-dist/{pf → src/pf}/prime/version_sentinel.py +0 -0
  1103. /package/pennyfarthing-dist/{pf/settings → src/pf/release}/__init__.py +0 -0
  1104. /package/pennyfarthing-dist/{pf → src/pf}/schema_validation_hook.py +0 -0
  1105. /package/pennyfarthing-dist/{pf/validate/adapters → src/pf/session}/__init__.py +0 -0
  1106. /package/pennyfarthing-dist/{pf → src/pf}/session/cli.py +0 -0
  1107. /package/pennyfarthing-dist/{pf → src/pf}/session_start_hook.py +0 -0
  1108. /package/pennyfarthing-dist/{pf → src/pf}/settings/cli.py +0 -0
  1109. /package/pennyfarthing-dist/{pf → src/pf}/sprint/__init__.py +0 -0
  1110. /package/pennyfarthing-dist/{pf → src/pf}/sprint/__main__.py +0 -0
  1111. /package/pennyfarthing-dist/{pf → src/pf}/sprint/archive_epic.py +0 -0
  1112. /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_add.py +0 -0
  1113. /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_update.py +0 -0
  1114. /package/pennyfarthing-dist/{pf → src/pf}/sprint/import_epic.py +0 -0
  1115. /package/pennyfarthing-dist/{pf → src/pf}/sprint/story_add.py +0 -0
  1116. /package/pennyfarthing-dist/{pf → src/pf}/sprint/validate_cmd.py +0 -0
  1117. /package/pennyfarthing-dist/{pf → src/pf}/sprint/validator.py +0 -0
  1118. /package/pennyfarthing-dist/{pf → src/pf}/sprint/work.py +0 -0
  1119. /package/pennyfarthing-dist/{pf → src/pf}/story/__init__.py +0 -0
  1120. /package/pennyfarthing-dist/{pf → src/pf}/story/__main__.py +0 -0
  1121. /package/pennyfarthing-dist/{pf → src/pf}/story/cli.py +0 -0
  1122. /package/pennyfarthing-dist/{pf → src/pf}/story/create.py +0 -0
  1123. /package/pennyfarthing-dist/{pf → src/pf}/story/size.py +0 -0
  1124. /package/pennyfarthing-dist/{pf → src/pf}/story/template.py +0 -0
  1125. /package/pennyfarthing-dist/{pf → src/pf}/swebench.py +0 -0
  1126. /package/pennyfarthing-dist/{pf → src/pf}/tests/__init__.py +0 -0
  1127. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_archive_epic.py +0 -0
  1128. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bc.py +0 -0
  1129. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bikerack.py +0 -0
  1130. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_brownfield.py +0 -0
  1131. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_cli_normalization.py +0 -0
  1132. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_common.py +0 -0
  1133. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_dialogue_manager.py +0 -0
  1134. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_epic_shard_validation.py +0 -0
  1135. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_file_resolution.py +0 -0
  1136. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_runner.py +0 -0
  1137. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_git_utils.py +0 -0
  1138. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_cli.py +0 -0
  1139. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_e2e.py +0 -0
  1140. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_healthscore.py +0 -0
  1141. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_patch_mode.py +0 -0
  1142. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_prime.py +0 -0
  1143. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_package.py +0 -0
  1144. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_validator.py +0 -0
  1145. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_add.py +0 -0
  1146. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_package.py +0 -0
  1147. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_update.py +0 -0
  1148. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tiers.py +0 -0
  1149. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_token_counting.py +0 -0
  1150. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_topology_loader.py +0 -0
  1151. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_focus.py +0 -0
  1152. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_panel_persistence.py +0 -0
  1153. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_validate_cmd.py +0 -0
  1154. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_version_sentinel.py +0 -0
  1155. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_check.py +0 -0
  1156. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_list_team.py +0 -0
  1157. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_yaml_io.py +0 -0
  1158. /package/pennyfarthing-dist/{pf → src/pf}/theme/__init__.py +0 -0
  1159. /package/pennyfarthing-dist/{pf → src/pf}/validate/__init__.py +0 -0
  1160. /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/schema.py +0 -0
  1161. /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/sprint.py +0 -0
  1162. /package/pennyfarthing-dist/{pf → src/pf}/validate/cli.py +0 -0
  1163. /package/pennyfarthing-dist/{pf → src/pf}/welcome_hook.py +0 -0
  1164. /package/pennyfarthing-dist/{pf → src/pf}/workflow/__init__.py +0 -0
  1165. /package/pennyfarthing-dist/{pf → src/pf}/workflow/helpers.py +0 -0
  1166. /package/pennyfarthing-dist/{pf → src/pf}/workflow/scale.py +0 -0
  1167. /package/pennyfarthing-dist/{pf → src/pf}/workflow/state.py +0 -0
  1168. /package/pennyfarthing-dist/{pf → src/pf}/workflow/team_lifecycle.py +0 -0
@@ -1,920 +0,0 @@
1
- """BikeRack TUI — Terminal-native dashboard built on Textual.
2
-
3
- Story 103-1: Textual app scaffold with basic layout.
4
- Story 103-4: Connection status indicator in TUI header.
5
- Story 103-6: SprintPanel as default panel on launch.
6
- Story 103-7: /bc TUI panel focus — subscribe to /ws/focus, switch panels.
7
- Story 103-9: Panel header chrome — icon + name indicator for active panel.
8
- Panel navigation: Mount all panels, tab bar, keyboard switching, command palette.
9
- """
10
-
11
- from __future__ import annotations
12
-
13
- import os
14
- from functools import partial
15
- from pathlib import Path
16
- from typing import Any
17
-
18
- from textual.app import App, ComposeResult
19
- from textual.binding import Binding
20
- from textual.command import Hit, Hits, Provider
21
- from textual.containers import Horizontal, VerticalScroll
22
- from textual.message import Message
23
- from textual.reactive import reactive
24
- from textual.widgets import Footer, Header, Static, Tab, Tabs
25
-
26
- from pf.bc.focus import get_last_panel, save_last_panel
27
- from pf.bikerack.audit_log_panel import AuditLogPanel
28
- from pf.bikerack.background_panel import BackgroundPanel
29
- from pf.bikerack.base_panel import get_panel_icon
30
- from pf.bikerack.context_meter_footer import ContextMeterFooter
31
- from pf.bikerack.debug_panel import DebugPanel
32
- from pf.bikerack.diffs_panel import DiffsPanel
33
- from pf.bikerack.git_panel import GitPanel
34
- from pf.bikerack.progress_panel import ProgressPanel
35
- from pf.bikerack.sprint_panel import SprintPanel
36
- from pf.bikerack.ws_client import ConnectionState, WheelHubClient
37
-
38
- STATE_DISPLAY: dict[ConnectionState, str] = {
39
- ConnectionState.CONNECTED: "[green]● Connected[/green]",
40
- ConnectionState.DISCONNECTED: "[red]● Disconnected[/red]",
41
- ConnectionState.RECONNECTING: "[yellow]● Reconnecting…[/yellow]",
42
- ConnectionState.CONNECTING: "[yellow]● Connecting…[/yellow]",
43
- }
44
-
45
- # Agent role colors for Rich markup (mapped from React AGENT_COLORS)
46
- AGENT_ROLE_COLORS: dict[str, str] = {
47
- "pm": "purple",
48
- "sm": "blue",
49
- "dev": "green",
50
- "tea": "cyan",
51
- "reviewer": "red",
52
- "architect": "dark_orange",
53
- "devops": "bright_cyan",
54
- "ux-designer": "magenta",
55
- "tech-writer": "white",
56
- "orchestrator": "bright_magenta",
57
- "ba": "bright_green",
58
- }
59
-
60
- AGENT_ABBREV: dict[str, str] = {
61
- "pm": "PM",
62
- "sm": "SM",
63
- "dev": "DEV",
64
- "tea": "TEA",
65
- "reviewer": "REV",
66
- "architect": "ARC",
67
- "devops": "OPS",
68
- "ux-designer": "UX",
69
- "tech-writer": "TW",
70
- "orchestrator": "ORC",
71
- "ba": "BA",
72
- }
73
-
74
- # Ordered panel registry: (key, display_name, widget_class)
75
- # Only panels with implemented widget classes are included.
76
- PANEL_REGISTRY: list[tuple[str, str]] = [
77
- ("sprint", "Sprint"),
78
- ("git", "Git"),
79
- ("diffs", "Diffs"),
80
- ("background", "Background"),
81
- ("audit-log", "Audit Log"),
82
- ("debug", "Debug"),
83
- ("progress", "Progress"),
84
- ]
85
-
86
- # Human-readable display names for panels (full set for external focus messages)
87
- PANEL_DISPLAY_NAMES: dict[str, str] = {
88
- "sprint": "Sprint",
89
- "git": "Git",
90
- "diffs": "Diffs",
91
- "todo": "Todo",
92
- "workflow": "Workflow",
93
- "background": "Background",
94
- "audit-log": "Audit Log",
95
- "ac": "Acceptance Criteria",
96
- "debug": "Debug",
97
- "progress": "Progress",
98
- "settings": "Settings",
99
- "tty": "TTY",
100
- }
101
-
102
- # Keys from PANEL_REGISTRY for fast lookup
103
- _PANEL_KEYS = [key for key, _ in PANEL_REGISTRY]
104
-
105
- # Split-pane layout presets: name → (left_panel, right_panel)
106
- # Story 110-4: Named presets for common side-by-side views.
107
- SPLIT_PRESETS: dict[str, tuple[str, str]] = {
108
- "sprint+diffs": ("sprint", "diffs"),
109
- "git+diffs": ("git", "diffs"),
110
- "progress+debug": ("progress", "debug"),
111
- }
112
-
113
-
114
- class BindingFooter(Footer):
115
- """Footer subclass that exposes active binding text via render().
116
-
117
- Textual's Footer uses compose() for visual content, so render() returns
118
- Blank. This override makes binding descriptions available through
119
- str(footer.render()) for programmatic inspection.
120
- """
121
-
122
- def render(self) -> Any:
123
- try:
124
- bindings = self.screen.active_bindings
125
- parts: list[str] = []
126
- for _, binding, _enabled, _tooltip in bindings.values():
127
- if binding.show:
128
- parts.append(f"{binding.key}:{binding.description}")
129
- if parts:
130
- return " ".join(parts)
131
- except Exception:
132
- pass
133
- return super().render()
134
-
135
-
136
- def _build_panel_tabs() -> list[Tab]:
137
- """Build Tab widgets for each panel in the registry."""
138
- tabs: list[Tab] = []
139
- for panel_key, display_name in PANEL_REGISTRY:
140
- icon = get_panel_icon(panel_key)
141
- label = f"{icon} {display_name}" if icon else display_name
142
- tabs.append(Tab(label, id=f"tab-{panel_key}"))
143
- return tabs
144
-
145
-
146
- PORTRAIT_SKELETON = """\
147
- [dim]┌────────┐
148
- │░░░░░░░░│
149
- │░░░▓▓░░░│
150
- │░░░░░░░░│
151
- └────────┘[/dim]"""
152
-
153
-
154
- class AgentHeader(Static):
155
- """Displays current agent persona from WheelHub /ws/persona channel.
156
-
157
- When a portrait image is available (resolved locally or provided via
158
- portraitPath in persona data), mounts a Horizontal layout container.
159
- Shows a skeleton placeholder while the image loads.
160
- Falls back to text-only when no portrait is found.
161
- """
162
-
163
- class PortraitLayoutUpdate(Message):
164
- """Internal message to update portrait layout asynchronously."""
165
-
166
- def __init__(self, portrait_path: Path | None) -> None:
167
- super().__init__()
168
- self.has_portrait = portrait_path is not None
169
- self.portrait_path = portrait_path
170
-
171
- def __init__(self, **kwargs: Any) -> None:
172
- super().__init__(**kwargs)
173
- self._is_streaming: bool = False
174
- self._persona_data: dict[str, Any] = {}
175
- self._header_text: str = ""
176
- self._current_portrait: Path | None = None
177
-
178
- def _apply_persona(self, data: dict[str, Any]) -> None:
179
- """Render persona data into the header."""
180
- if data.get("type") == "streaming":
181
- self._is_streaming = bool(data.get("isStreaming", False))
182
- self._render_header()
183
- return
184
-
185
- self._persona_data = data
186
- self._is_streaming = bool(data.get("isStreaming", False))
187
- self._render_header()
188
-
189
- def _resolve_portrait(self, data: dict[str, Any]) -> Path | None:
190
- """Get portrait path from persona data or resolve locally."""
191
- portrait_path = data.get("portraitPath")
192
- if portrait_path:
193
- p = Path(portrait_path)
194
- if p.exists():
195
- return p
196
- theme = data.get("theme", "")
197
- role = data.get("role", "")
198
- if theme and role:
199
- from pf.bikerack import portrait_resolver
200
-
201
- return portrait_resolver.resolve_portrait_path(theme, role)
202
- return None
203
-
204
- def _render_header(self) -> None:
205
- """Re-render the header from stored state."""
206
- data = self._persona_data
207
- char = data.get("character", "")
208
- role = data.get("role", "")
209
- role_desc = data.get("roleDescription", "")
210
- quote = data.get("quote", "")
211
- theme = data.get("theme", "")
212
-
213
- if not char:
214
- self.update("[dim]Waiting for agent...[/dim]")
215
- self.post_message(self.PortraitLayoutUpdate(portrait_path=None))
216
- return
217
-
218
- parts: list[str] = []
219
-
220
- # Role badge — escape brackets so Rich doesn't eat them as tags
221
- if role:
222
- abbrev = AGENT_ABBREV.get(role, role.upper()[:3])
223
- color = AGENT_ROLE_COLORS.get(role, "bright_magenta")
224
- parts.append(f"[bold {color}]\\[{abbrev}][/bold {color}]")
225
-
226
- # Character name
227
- parts.append(f"[bold]{char}[/bold]")
228
-
229
- # Theme name
230
- if theme:
231
- from pf.bikerack.base_panel import humanize_theme
232
-
233
- parts.append(f"[dim]{humanize_theme(theme)}[/dim]")
234
-
235
- # Streaming indicator
236
- if self._is_streaming:
237
- parts.append("[bold yellow]⚡[/bold yellow]")
238
-
239
- line = " ".join(parts)
240
-
241
- # Catchphrase subtitle (quote is a random catchphrase from the theme)
242
- if quote:
243
- line += f"\n[italic dim]\"{quote}\"[/italic dim]"
244
- elif role_desc:
245
- line += f"\n[dim]{role_desc}[/dim]"
246
-
247
- self._header_text = line
248
-
249
- # Check portrait and schedule layout update
250
- portrait = self._resolve_portrait(data)
251
- self.post_message(self.PortraitLayoutUpdate(portrait_path=portrait))
252
-
253
- async def on_agent_header_portrait_layout_update(
254
- self, event: PortraitLayoutUpdate
255
- ) -> None:
256
- """Mount or remove Horizontal portrait layout with text beside image.
257
-
258
- Shows a skeleton placeholder immediately while the real image loads
259
- to avoid a visible blank gap during image decode/render.
260
- """
261
- if event.has_portrait and event.portrait_path:
262
- if self._current_portrait == event.portrait_path:
263
- # Same portrait — just update text label if it exists
264
- try:
265
- text_widget = self.query_one("#agent-text", Static)
266
- text_widget.update(self._header_text)
267
- except Exception:
268
- pass
269
- return
270
-
271
- # New portrait or first time — full layout rebuild
272
- for child in list(self.query("Horizontal")):
273
- await child.remove()
274
-
275
- # Mount skeleton + text immediately so there's no blank gap
276
- self.update("")
277
- self._current_portrait = event.portrait_path
278
- skeleton = Static(PORTRAIT_SKELETON, id="portrait-skeleton")
279
- text = Static(self._header_text, id="agent-text")
280
- row = Horizontal(skeleton, text, id="portrait-row")
281
- await self.mount(row)
282
-
283
- # Now try to load the real image and swap it in
284
- try:
285
- from pf.bikerack.portrait_resolver import (
286
- detect_image_protocol,
287
- )
288
-
289
- protocol = detect_image_protocol()
290
- if protocol is None:
291
- # No image protocol — remove skeleton, fall back to text-only
292
- for child in list(self.query("Horizontal")):
293
- await child.remove()
294
- self.update(self._header_text)
295
- return
296
-
297
- if protocol == "kitty":
298
- from textual_image.widget import TGPImage as ImageWidget
299
- elif protocol == "sixel":
300
- from textual_image.widget import SixelImage as ImageWidget
301
- else:
302
- from textual_image.widget import HalfcellImage as ImageWidget
303
-
304
- img = ImageWidget(str(event.portrait_path), id="portrait-img")
305
- try:
306
- skel = self.query_one("#portrait-skeleton")
307
- await skel.remove()
308
- except Exception:
309
- pass
310
- await row.mount(img, before=0)
311
- except (ImportError, Exception):
312
- # textual-image not available — remove skeleton, text-only
313
- for child in list(self.query("Horizontal")):
314
- await child.remove()
315
- self.update(self._header_text)
316
- else:
317
- # No portrait — text-only
318
- for child in list(self.query("Horizontal")):
319
- await child.remove()
320
- self._current_portrait = None
321
- self.update(self._header_text)
322
-
323
-
324
- class ConnectionStatus(Static):
325
- """Displays WheelHub connection state with colored indicator."""
326
-
327
- connection_state: reactive[ConnectionState] = reactive(
328
- ConnectionState.DISCONNECTED
329
- )
330
-
331
- def watch_connection_state(self, state: ConnectionState) -> None:
332
- """Update display when connection state changes."""
333
- self.update(STATE_DISPLAY.get(state, "● Unknown"))
334
-
335
-
336
- class PanelCommands(Provider):
337
- """Command palette provider for panel switching."""
338
-
339
- async def search(self, query: str) -> Hits:
340
- matcher = self.matcher(query)
341
- for panel_key, display_name in PANEL_REGISTRY:
342
- icon = get_panel_icon(panel_key)
343
- label = f"{icon} {display_name}" if icon else display_name
344
- score = matcher.match(display_name)
345
- if score > 0:
346
- yield Hit(
347
- score,
348
- matcher.highlight(label),
349
- partial(self.app.action_switch_panel, panel_key),
350
- help=f"Switch to {display_name} panel",
351
- )
352
-
353
-
354
- class BikeRackApp(App):
355
- """BikeRack TUI application shell."""
356
-
357
- class PersonaUpdate(Message, bubble=False):
358
- """Persona data from WS — routed through Textual message system."""
359
-
360
- def __init__(self, data: dict[str, Any]) -> None:
361
- super().__init__()
362
- self.data = data
363
-
364
- class FocusUpdate(Message, bubble=False):
365
- """Focus change from WS — routed through Textual message system."""
366
-
367
- def __init__(self, focus: str | None, split_config: dict | None = None) -> None:
368
- super().__init__()
369
- self.focus = focus
370
- self.split_config = split_config
371
-
372
- class WsStateUpdate(Message, bubble=False):
373
- """WS connection state change — routed through Textual message system."""
374
-
375
- def __init__(self, state: ConnectionState) -> None:
376
- super().__init__()
377
- self.state = state
378
-
379
- TITLE = "BikeRack"
380
-
381
- CSS = """
382
- #agent-header {
383
- height: auto;
384
- max-height: 7;
385
- padding: 0 1;
386
- border-bottom: solid $accent;
387
- }
388
- #portrait-row {
389
- height: 5;
390
- width: 100%;
391
- }
392
- #portrait-img {
393
- width: 10;
394
- height: 5;
395
- margin: 0 1 0 0;
396
- }
397
- #agent-text {
398
- height: auto;
399
- width: 1fr;
400
- }
401
- #project-dir {
402
- height: 1;
403
- padding: 0 1;
404
- color: $text-muted;
405
- }
406
- Tabs {
407
- dock: top;
408
- }
409
- Tab.-active {
410
- color: $text;
411
- }
412
- Tab {
413
- color: $text-muted;
414
- }
415
- #connection-status {
416
- height: 1;
417
- }
418
- ContextMeterFooter {
419
- height: 1;
420
- }
421
- #split-container {
422
- display: none;
423
- height: 1fr;
424
- }
425
- #split-left {
426
- width: 1fr;
427
- }
428
- #split-right {
429
- width: 1fr;
430
- }
431
- """
432
-
433
- COMMANDS = App.COMMANDS | {PanelCommands}
434
-
435
- BINDINGS = [
436
- Binding("q", "quit", "Quit"),
437
- Binding("shift+s", "toggle_split", "Split"),
438
- Binding("1", "switch_panel('sprint')", "Sprint", show=False),
439
- Binding("2", "switch_panel('git')", "Git", show=False),
440
- Binding("3", "switch_panel('diffs')", "Diffs", show=False),
441
- Binding("4", "switch_panel('background')", "Background", show=False),
442
- Binding("5", "switch_panel('audit-log')", "Audit Log", show=False),
443
- Binding("6", "switch_panel('debug')", "Debug", show=False),
444
- Binding("7", "switch_panel('progress')", "Progress", show=False),
445
- Binding("bracketright", "next_panel", "]Next"),
446
- Binding("bracketleft", "prev_panel", "[Prev"),
447
- Binding("tab", "next_panel", show=False, priority=True),
448
- Binding("shift+tab", "prev_panel", show=False, priority=True),
449
- Binding("n", "next_diff_file", "Next file", show=False),
450
- Binding("p", "prev_diff_file", "Prev file", show=False),
451
- Binding("j", "next_epic", show=False),
452
- Binding("k", "prev_epic", show=False),
453
- Binding("e", "toggle_epic", show=False),
454
- ]
455
-
456
- def _get_dom_base(self):
457
- """Query the active screen so app.query() finds pushed screen widgets."""
458
- return self.screen
459
-
460
- def __init__(self, client=None, **kwargs):
461
- super().__init__(**kwargs)
462
- self._client = client
463
- self._focused_panel: str = "sprint"
464
- self._previous_panel: str | None = None
465
- self._programmatic_tab_count: int = 0
466
- self._context_meter: ContextMeterFooter | None = None
467
- # Split-pane state (Story 110-4)
468
- self._split_mode: bool = False
469
- self._active_split_pane: str = "left"
470
- self._split_left_key: str = "sprint"
471
- self._split_right_key: str = "diffs"
472
-
473
- def compose(self) -> ComposeResult:
474
- project_dir_name = Path(
475
- os.environ.get("CYCLIST_PROJECT_DIR", os.getcwd())
476
- ).name
477
- yield Header()
478
- yield AgentHeader(id="agent-header")
479
- yield Static(f"[dim]{project_dir_name}[/dim]", id="project-dir")
480
- yield Tabs(*_build_panel_tabs(), id="tab-bar")
481
- yield ConnectionStatus(
482
- STATE_DISPLAY[ConnectionState.DISCONNECTED],
483
- id="connection-status",
484
- )
485
- with VerticalScroll(id="main-content"):
486
- yield SprintPanel(client=self._client, id="panel-sprint")
487
- yield GitPanel(client=self._client, id="panel-git")
488
- yield DiffsPanel(client=self._client, id="panel-diffs")
489
- yield BackgroundPanel(client=self._client, id="panel-background")
490
- yield AuditLogPanel(client=self._client, id="panel-audit-log")
491
- yield DebugPanel(client=self._client, id="panel-debug")
492
- yield ProgressPanel(client=self._client, id="panel-progress")
493
- with Horizontal(id="split-container"):
494
- yield VerticalScroll(id="split-left")
495
- yield VerticalScroll(id="split-right")
496
- self._context_meter = ContextMeterFooter(client=self._client)
497
- yield self._context_meter
498
- yield BindingFooter()
499
-
500
- async def on_mount(self) -> None:
501
- # Restore last panel or default to sprint
502
- result = get_last_panel()
503
- initial = "sprint"
504
- if result.get("success") and result.get("last_panel"):
505
- last = result["last_panel"]
506
- if last in _PANEL_KEYS:
507
- initial = last
508
-
509
- self._focused_panel = initial
510
-
511
- # Hide all panels except the active one
512
- for panel_key in _PANEL_KEYS:
513
- widget_id = f"panel-{panel_key}"
514
- try:
515
- widget = self.query_one(f"#{widget_id}")
516
- widget.display = (panel_key == initial)
517
- except Exception:
518
- pass
519
-
520
- # Set tab bar active state and focus initial panel
521
- self._update_tab_bar(initial)
522
- try:
523
- initial_widget = self.query_one(f"#panel-{initial}")
524
- initial_widget.focus()
525
- except Exception:
526
- pass
527
-
528
- if self._client is not None:
529
- self._client.on_state_change(self._on_ws_state_change)
530
- self._client.subscribe("focus", self._handle_focus_message)
531
- self._client.subscribe("persona", self._handle_persona_message)
532
- self.run_worker(self._client.connect(), exclusive=True, name="ws-client")
533
-
534
- def action_switch_panel(self, key: str) -> None:
535
- """Switch to a panel by key."""
536
- if key not in _PANEL_KEYS:
537
- return
538
- if key == self._focused_panel:
539
- return
540
-
541
- # Hide current panel
542
- try:
543
- current = self.query_one(f"#panel-{self._focused_panel}")
544
- current.display = False
545
- except Exception:
546
- pass
547
-
548
- # Show target panel and focus it
549
- try:
550
- target = self.query_one(f"#panel-{key}")
551
- target.display = True
552
- target.focus()
553
- except Exception:
554
- pass
555
-
556
- self._previous_panel = self._focused_panel
557
- self._focused_panel = key
558
- save_last_panel(key, project_dir=None)
559
- self._update_tab_bar(key)
560
-
561
- # Refresh context meter on panel switch (110-12)
562
- if self._context_meter is not None:
563
- self._context_meter.request_refresh()
564
-
565
- def action_next_panel(self) -> None:
566
- """Cycle to the next panel, or toggle pane focus in split mode."""
567
- if self._split_mode:
568
- # In split mode, Tab toggles between left and right pane
569
- if self._active_split_pane == "left":
570
- self._active_split_pane = "right"
571
- try:
572
- self.query_one("#split-right").focus()
573
- except Exception:
574
- pass
575
- else:
576
- self._active_split_pane = "left"
577
- try:
578
- self.query_one("#split-left").focus()
579
- except Exception:
580
- pass
581
- return
582
- try:
583
- idx = _PANEL_KEYS.index(self._focused_panel)
584
- except ValueError:
585
- idx = 0
586
- next_idx = (idx + 1) % len(_PANEL_KEYS)
587
- self.action_switch_panel(_PANEL_KEYS[next_idx])
588
-
589
- def action_prev_panel(self) -> None:
590
- """Cycle to the previous panel."""
591
- try:
592
- idx = _PANEL_KEYS.index(self._focused_panel)
593
- except ValueError:
594
- idx = 0
595
- prev_idx = (idx - 1) % len(_PANEL_KEYS)
596
- self.action_switch_panel(_PANEL_KEYS[prev_idx])
597
-
598
- def action_next_diff_file(self) -> None:
599
- """Advance to next file in diffs panel."""
600
- if self._focused_panel == "diffs":
601
- try:
602
- panel = self.query_one("#panel-diffs", DiffsPanel)
603
- panel.next_file()
604
- except Exception:
605
- pass
606
-
607
- def action_prev_diff_file(self) -> None:
608
- """Go to previous file in diffs panel."""
609
- if self._focused_panel == "diffs":
610
- try:
611
- panel = self.query_one("#panel-diffs", DiffsPanel)
612
- panel.prev_file()
613
- except Exception:
614
- pass
615
-
616
- def action_next_epic(self) -> None:
617
- """Move to next epic in sprint panel."""
618
- if self._focused_panel == "sprint":
619
- try:
620
- panel = self.query_one("#panel-sprint", SprintPanel)
621
- panel.next_epic()
622
- except Exception:
623
- pass
624
-
625
- def action_prev_epic(self) -> None:
626
- """Move to previous epic in sprint panel."""
627
- if self._focused_panel == "sprint":
628
- try:
629
- panel = self.query_one("#panel-sprint", SprintPanel)
630
- panel.prev_epic()
631
- except Exception:
632
- pass
633
-
634
- def action_toggle_epic(self) -> None:
635
- """Toggle expand/collapse on selected epic in sprint panel."""
636
- if self._focused_panel == "sprint":
637
- try:
638
- panel = self.query_one("#panel-sprint", SprintPanel)
639
- panel.toggle_epic()
640
- except Exception:
641
- pass
642
-
643
- # ------------------------------------------------------------------
644
- # Split-pane layout (Story 110-4)
645
- # ------------------------------------------------------------------
646
-
647
- def _sync_reparent(self, widget: Any, new_parent: Any) -> None:
648
- """Move widget from current parent to new parent synchronously.
649
-
650
- Uses internal Textual DOM API so the move is visible immediately
651
- without awaiting an async mount/remove cycle.
652
- """
653
- old_parent = widget._parent
654
- if old_parent is not None:
655
- try:
656
- old_parent._nodes._remove(widget)
657
- except (ValueError, AttributeError):
658
- # Fallback: remove from internal list directly
659
- try:
660
- old_parent._nodes._nodes.remove(widget)
661
- except Exception:
662
- pass
663
- try:
664
- new_parent._nodes._append(widget)
665
- except AttributeError:
666
- new_parent._nodes._nodes.append(widget)
667
- widget._parent = new_parent
668
-
669
- def _enter_split(self, left_key: str, right_key: str) -> None:
670
- """Activate split mode with specified panels (synchronous)."""
671
- if left_key not in _PANEL_KEYS or right_key not in _PANEL_KEYS:
672
- return
673
- if left_key == right_key:
674
- return
675
-
676
- self._split_mode = True
677
- self._split_left_key = left_key
678
- self._split_right_key = right_key
679
- self._active_split_pane = "left"
680
-
681
- try:
682
- main_content = self.query_one("#main-content")
683
- split_container = self.query_one("#split-container")
684
- split_left = self.query_one("#split-left")
685
- split_right = self.query_one("#split-right")
686
- except Exception:
687
- return
688
-
689
- # Move left panel to split-left pane
690
- try:
691
- left_panel = self.query_one(f"#panel-{left_key}")
692
- left_panel.display = True
693
- self._sync_reparent(left_panel, split_left)
694
- except Exception:
695
- pass
696
-
697
- # Move right panel to split-right pane
698
- try:
699
- right_panel = self.query_one(f"#panel-{right_key}")
700
- right_panel.display = True
701
- self._sync_reparent(right_panel, split_right)
702
- except Exception:
703
- pass
704
-
705
- # Hide all other panels remaining in main-content
706
- for panel_key in _PANEL_KEYS:
707
- if panel_key not in (left_key, right_key):
708
- try:
709
- p = self.query_one(f"#panel-{panel_key}")
710
- p.display = False
711
- except Exception:
712
- pass
713
-
714
- main_content.display = False
715
- split_container.display = True
716
-
717
- def _exit_split(self) -> None:
718
- """Deactivate split mode, return panels to main-content."""
719
- self._split_mode = False
720
-
721
- try:
722
- main_content = self.query_one("#main-content")
723
- split_container = self.query_one("#split-container")
724
- split_left = self.query_one("#split-left")
725
- split_right = self.query_one("#split-right")
726
- except Exception:
727
- return
728
-
729
- # Move panels back from split panes to main-content
730
- for pane in (split_left, split_right):
731
- for child in list(pane.children):
732
- self._sync_reparent(child, main_content)
733
-
734
- split_container.display = False
735
- main_content.display = True
736
-
737
- # Restore single-panel visibility
738
- for panel_key in _PANEL_KEYS:
739
- try:
740
- p = self.query_one(f"#panel-{panel_key}")
741
- p.display = (panel_key == self._focused_panel)
742
- except Exception:
743
- pass
744
-
745
- def action_toggle_split(self) -> None:
746
- """Toggle split mode on/off (Shift+S keybinding)."""
747
- if self._split_mode:
748
- self._exit_split()
749
- else:
750
- # Default: current panel left, next panel right
751
- left_key = self._focused_panel
752
- try:
753
- idx = _PANEL_KEYS.index(left_key)
754
- except ValueError:
755
- idx = 0
756
- right_key = _PANEL_KEYS[(idx + 1) % len(_PANEL_KEYS)]
757
- self._enter_split(left_key, right_key)
758
-
759
- def action_apply_split_preset(self, name: str) -> None:
760
- """Apply a named split preset (synchronous)."""
761
- if name not in SPLIT_PRESETS:
762
- return
763
- left_key, right_key = SPLIT_PRESETS[name]
764
- if self._split_mode:
765
- self._exit_split()
766
- self._enter_split(left_key, right_key)
767
-
768
- def _update_tab_bar(self, panel_key: str) -> None:
769
- """Update the tab bar widget with the given panel key.
770
-
771
- Increments _programmatic_tab_count so the async TabActivated
772
- handler knows to ignore the event (prevents infinite ping-pong).
773
- """
774
- try:
775
- tab_bar = self.query_one("#tab-bar", Tabs)
776
- tab_id = f"tab-{panel_key}"
777
- if tab_bar.active != tab_id:
778
- self._programmatic_tab_count += 1
779
- tab_bar.active = tab_id
780
- except Exception:
781
- pass
782
-
783
- def on_tabs_tab_activated(self, event: Tabs.TabActivated) -> None:
784
- """Handle tab activation from the Tabs widget.
785
-
786
- Programmatic tabs.active changes fire TabActivated asynchronously.
787
- We use a counter to skip those and only react to genuine user clicks.
788
- """
789
- if self._programmatic_tab_count > 0:
790
- self._programmatic_tab_count -= 1
791
- return
792
- tab_id = event.tab.id or ""
793
- panel_key = tab_id.removeprefix("tab-")
794
- if panel_key in _PANEL_KEYS and panel_key != self._focused_panel:
795
- self.action_switch_panel(panel_key)
796
-
797
- def _handle_focus_message(self, message: dict[str, Any] | None) -> None:
798
- """Handle incoming focus channel messages.
799
-
800
- Expected format:
801
- Single panel: {type: 'update', focus: '<panel>'}
802
- Split layout: {type: 'update', focus: 'split', split: {left: ..., right: ...}}
803
- Split preset: {type: 'update', focus: 'split:<preset-name>'}
804
- Only 'update' messages trigger panel switches (matching React hook).
805
- Routes through Textual message system via post_message for proper repaint.
806
- """
807
- if message is None or not isinstance(message, dict):
808
- return
809
- if message.get("type") != "update":
810
- return
811
- if "focus" not in message:
812
- return
813
- split_config = message.get("split")
814
- self.post_message(self.FocusUpdate(message["focus"], split_config=split_config))
815
-
816
- def _handle_persona_message(self, message: dict[str, Any] | None) -> None:
817
- """Handle incoming persona channel messages.
818
-
819
- Routes through Textual message system via post_message for proper repaint.
820
- """
821
- if message is None or not isinstance(message, dict):
822
- return
823
- self.post_message(self.PersonaUpdate(message))
824
-
825
- def _on_ws_state_change(self, state: ConnectionState) -> None:
826
- """Handle WheelHub connection state changes.
827
-
828
- Routes through Textual message system via post_message for proper repaint.
829
- """
830
- self.post_message(self.WsStateUpdate(state))
831
-
832
- def on_bike_rack_app_persona_update(self, event: PersonaUpdate) -> None:
833
- """Apply persona data in Textual message context."""
834
- try:
835
- header = self.query_one("#agent-header", AgentHeader)
836
- header._apply_persona(event.data)
837
- except Exception:
838
- pass
839
-
840
- def on_bike_rack_app_focus_update(self, event: FocusUpdate) -> None:
841
- """Apply focus change in Textual message context."""
842
- focus = event.focus
843
- split_config = event.split_config
844
-
845
- if focus == "split" and split_config:
846
- # Explicit split layout: {focus: "split", split: {left: ..., right: ...}}
847
- left = split_config.get("left", "sprint")
848
- right = split_config.get("right", "diffs")
849
- if self._split_mode:
850
- self._exit_split()
851
- self._enter_split(left, right)
852
- elif focus is not None and focus.startswith("split:"):
853
- # Preset reference: {focus: "split:progress+debug"}
854
- preset_name = focus[len("split:"):]
855
- self.action_apply_split_preset(preset_name)
856
- elif focus is not None and focus in _PANEL_KEYS:
857
- # Single panel focus — exit split if active
858
- if self._split_mode:
859
- self._exit_split()
860
- self.action_switch_panel(focus)
861
- elif focus is not None:
862
- self._previous_panel = self._focused_panel
863
- self._focused_panel = focus
864
- save_last_panel(focus, project_dir=None)
865
-
866
- def on_bike_rack_app_ws_state_update(self, event: WsStateUpdate) -> None:
867
- """Apply connection state in Textual message context."""
868
- try:
869
- widget = self.query_one("#connection-status", ConnectionStatus)
870
- widget.connection_state = event.state
871
- except Exception:
872
- pass
873
-
874
-
875
- DEFAULT_PORT = 2898
876
-
877
-
878
- def main(
879
- port: int | None = None,
880
- project_dir: Path | None = None,
881
- ) -> None:
882
- """Launch BikeRack TUI as a standalone application.
883
-
884
- Args:
885
- port: Explicit WheelHub port. If None, reads from .bikerack-port file.
886
- project_dir: Project directory for port file discovery. Defaults to cwd.
887
- """
888
- # Detect terminal image protocol BEFORE App.run() claims the terminal
889
- from pf.bikerack import portrait_resolver
890
-
891
- portrait_resolver.detect_image_protocol()
892
-
893
- if port is None:
894
- if project_dir is not None:
895
- port_file = project_dir / ".bikerack-port"
896
- if port_file.exists():
897
- try:
898
- port = int(port_file.read_text().strip())
899
- except (ValueError, OSError):
900
- port = DEFAULT_PORT
901
- else:
902
- port = DEFAULT_PORT
903
- else:
904
- port = DEFAULT_PORT
905
-
906
- client = WheelHubClient(port=port)
907
- app = BikeRackApp(client=client)
908
- app.run()
909
-
910
-
911
- if __name__ == "__main__":
912
- import argparse
913
-
914
- parser = argparse.ArgumentParser(description="BikeRack TUI")
915
- parser.add_argument("--port", type=int, default=None, help="WheelHub port")
916
- parser.add_argument("--project-dir", type=str, default=None, help="Project directory")
917
- args = parser.parse_args()
918
-
919
- project_dir = Path(args.project_dir) if args.project_dir else None
920
- main(port=args.port, project_dir=project_dir)