@pennyfarthing/core 11.3.3 → 11.3.4

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 (1121) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/packages/core/dist/cli/commands/doctor.d.ts +1 -9
  4. package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
  5. package/packages/core/dist/cli/commands/doctor.js +51 -107
  6. package/packages/core/dist/cli/commands/doctor.js.map +1 -1
  7. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
  8. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
  9. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
  10. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
  11. package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
  12. package/packages/core/dist/cli/commands/update.js +26 -1
  13. package/packages/core/dist/cli/commands/update.js.map +1 -1
  14. package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
  15. package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
  16. package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
  17. package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
  18. package/packages/core/dist/cli/utils/python.d.ts +0 -1
  19. package/packages/core/dist/cli/utils/python.d.ts.map +1 -1
  20. package/packages/core/dist/cli/utils/python.js +1 -11
  21. package/packages/core/dist/cli/utils/python.js.map +1 -1
  22. package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
  23. package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
  24. package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
  25. package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
  26. package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
  27. package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
  28. package/packages/core/dist/scripts/benchmark-integration.js +691 -0
  29. package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
  30. package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
  31. package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
  32. package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
  33. package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
  34. package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
  35. package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
  36. package/packages/core/dist/server/paths.d.ts.map +1 -1
  37. package/packages/core/dist/server/paths.js +0 -6
  38. package/packages/core/dist/server/paths.js.map +1 -1
  39. package/pennyfarthing-dist/agents/sm-finish.md +2 -2
  40. package/pennyfarthing-dist/agents/testing-runner.md +1 -1
  41. package/pennyfarthing-dist/commands/pf-prime.md +1 -1
  42. package/pennyfarthing-dist/guides/agent-behavior.md +1 -1
  43. package/pennyfarthing-dist/guides/bikerack.md +1 -1
  44. package/pennyfarthing-dist/guides/brownfield-tools.md +7 -7
  45. package/pennyfarthing-dist/guides/gates.md +3 -3
  46. package/pennyfarthing-dist/guides/handoff-cli.md +6 -6
  47. package/pennyfarthing-dist/guides/prime.md +6 -6
  48. package/pennyfarthing-dist/guides/scale-levels.md +1 -1
  49. package/pennyfarthing-dist/personas/themes/firefly.yaml +4 -4
  50. package/pennyfarthing-dist/pf/CLAUDE.md +213 -0
  51. package/pennyfarthing-dist/pf/README.md +66 -0
  52. package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-311.pyc +0 -0
  53. package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  54. package/pennyfarthing-dist/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
  55. package/pennyfarthing-dist/pf/__pycache__/cli.cpython-311.pyc +0 -0
  56. package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
  57. package/pennyfarthing-dist/pf/__pycache__/config.cpython-314.pyc +0 -0
  58. package/pennyfarthing-dist/pf/__pycache__/context.cpython-311.pyc +0 -0
  59. package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
  60. package/pennyfarthing-dist/pf/__pycache__/hooks.cpython-314.pyc +0 -0
  61. package/pennyfarthing-dist/pf/__pycache__/jira.cpython-314.pyc +0 -0
  62. package/pennyfarthing-dist/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
  63. package/pennyfarthing-dist/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
  64. package/pennyfarthing-dist/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
  65. package/pennyfarthing-dist/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
  66. package/pennyfarthing-dist/pf/__pycache__/output.cpython-314.pyc +0 -0
  67. package/pennyfarthing-dist/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
  68. package/pennyfarthing-dist/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
  69. package/pennyfarthing-dist/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
  70. package/pennyfarthing-dist/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
  71. package/pennyfarthing-dist/pf/__pycache__/sprint.cpython-314.pyc +0 -0
  72. package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-311.pyc +0 -0
  73. package/pennyfarthing-dist/pf/__pycache__/workflow.cpython-314.pyc +0 -0
  74. package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
  75. package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  76. package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
  77. package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  78. package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
  79. package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  80. package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  81. package/pennyfarthing-dist/pf/bc/cli.py +242 -0
  82. package/pennyfarthing-dist/pf/bc/focus.py +334 -0
  83. package/pennyfarthing-dist/pf/bc/split.py +52 -0
  84. package/pennyfarthing-dist/pf/bellmode_hook.py +22 -0
  85. package/pennyfarthing-dist/pf/bikerack/__init__.py +44 -0
  86. package/pennyfarthing-dist/pf/bikerack/__main__.py +5 -0
  87. package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
  88. package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  89. package/pennyfarthing-dist/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
  90. package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  91. package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  92. package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  93. package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  94. package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
  95. package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  96. package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  97. package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  98. package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  99. package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  100. package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  101. package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
  102. package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  103. package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  104. package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  105. package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  106. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  107. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  108. package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  109. package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  110. package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +161 -0
  111. package/pennyfarthing-dist/pf/bikerack/background_panel.py +162 -0
  112. package/pennyfarthing-dist/pf/bikerack/changed_panel.py +201 -0
  113. package/pennyfarthing-dist/pf/bikerack/cli.py +145 -0
  114. package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +138 -0
  115. package/pennyfarthing-dist/pf/bikerack/debug_panel.py +248 -0
  116. package/pennyfarthing-dist/pf/bikerack/diffs_panel.py +409 -0
  117. package/pennyfarthing-dist/pf/bikerack/git_panel.py +139 -0
  118. package/pennyfarthing-dist/pf/bikerack/launcher.py +240 -0
  119. package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +139 -0
  120. package/pennyfarthing-dist/pf/bikerack/progress_panel.py +314 -0
  121. package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +435 -0
  122. package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +247 -0
  123. package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +177 -0
  124. package/pennyfarthing-dist/pf/bikerack/tui.py +935 -0
  125. package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  126. package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  127. package/pennyfarthing-dist/pf/bmad/cli.py +197 -0
  128. package/pennyfarthing-dist/pf/bmad/importer.py +200 -0
  129. package/pennyfarthing-dist/pf/bmad/sync.py +464 -0
  130. package/pennyfarthing-dist/pf/bmad/test_parser.py +253 -0
  131. package/pennyfarthing-dist/pf/bmad/test_sync.py +223 -0
  132. package/pennyfarthing-dist/pf/brownfield/__init__.py +35 -0
  133. package/pennyfarthing-dist/pf/brownfield/__main__.py +8 -0
  134. package/pennyfarthing-dist/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
  135. package/pennyfarthing-dist/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
  136. package/pennyfarthing-dist/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
  137. package/pennyfarthing-dist/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
  138. package/pennyfarthing-dist/pf/brownfield/cli.py +130 -0
  139. package/pennyfarthing-dist/pf/cli.py +354 -0
  140. package/pennyfarthing-dist/pf/codemarkers/__init__.py +23 -0
  141. package/pennyfarthing-dist/pf/codemarkers/__main__.py +6 -0
  142. package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  143. package/pennyfarthing-dist/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
  144. package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  145. package/pennyfarthing-dist/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
  146. package/pennyfarthing-dist/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
  147. package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  148. package/pennyfarthing-dist/pf/codemarkers/analyze.py +501 -0
  149. package/pennyfarthing-dist/pf/codemarkers/cli.py +179 -0
  150. package/pennyfarthing-dist/pf/codemarkers/formatters.py +88 -0
  151. package/pennyfarthing-dist/pf/common/__init__.py +48 -0
  152. package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
  153. package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  154. package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-311.pyc +0 -0
  155. package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  156. package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-311.pyc +0 -0
  157. package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  158. package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  159. package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  160. package/pennyfarthing-dist/pf/common/pr_config.py +38 -0
  161. package/pennyfarthing-dist/pf/common/themes.py +253 -0
  162. package/pennyfarthing-dist/pf/complexity/__init__.py +15 -0
  163. package/pennyfarthing-dist/pf/complexity/__main__.py +6 -0
  164. package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  165. package/pennyfarthing-dist/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
  166. package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  167. package/pennyfarthing-dist/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
  168. package/pennyfarthing-dist/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
  169. package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  170. package/pennyfarthing-dist/pf/complexity/analyze.py +207 -0
  171. package/pennyfarthing-dist/pf/complexity/cli.py +82 -0
  172. package/pennyfarthing-dist/pf/complexity/formatters.py +64 -0
  173. package/pennyfarthing-dist/pf/config.py +21 -0
  174. package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
  175. package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  176. package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
  177. package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  178. package/pennyfarthing-dist/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
  179. package/pennyfarthing-dist/pf/consultation/cli.py +149 -0
  180. package/pennyfarthing-dist/pf/deadcode/__main__.py +6 -0
  181. package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
  182. package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  183. package/pennyfarthing-dist/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
  184. package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  185. package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
  186. package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  187. package/pennyfarthing-dist/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
  188. package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  189. package/pennyfarthing-dist/pf/deadcode/analyze.py +322 -0
  190. package/pennyfarthing-dist/pf/deadcode/cli.py +163 -0
  191. package/pennyfarthing-dist/pf/deadcode/formatters.py +106 -0
  192. package/pennyfarthing-dist/pf/dependencies/__init__.py +20 -0
  193. package/pennyfarthing-dist/pf/dependencies/__main__.py +5 -0
  194. package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  195. package/pennyfarthing-dist/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
  196. package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  197. package/pennyfarthing-dist/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
  198. package/pennyfarthing-dist/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
  199. package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  200. package/pennyfarthing-dist/pf/dependencies/analyze.py +155 -0
  201. package/pennyfarthing-dist/pf/dependencies/cli.py +76 -0
  202. package/pennyfarthing-dist/pf/dependencies/formatters.py +63 -0
  203. package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
  204. package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  205. package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
  206. package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  207. package/pennyfarthing-dist/pf/gate/cli.py +56 -0
  208. package/pennyfarthing-dist/pf/git/__init__.py +40 -0
  209. package/pennyfarthing-dist/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
  210. package/pennyfarthing-dist/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
  211. package/pennyfarthing-dist/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
  212. package/pennyfarthing-dist/pf/git/create_branches.py +439 -0
  213. package/pennyfarthing-dist/pf/git/hooks_installer.py +151 -0
  214. package/pennyfarthing-dist/pf/git/repos.py +196 -0
  215. package/pennyfarthing-dist/pf/git/status_all.py +326 -0
  216. package/pennyfarthing-dist/pf/git/worktree.py +302 -0
  217. package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
  218. package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  219. package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
  220. package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  221. package/pennyfarthing-dist/pf/git_group/cli.py +203 -0
  222. package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
  223. package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  224. package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
  225. package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  226. package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  227. package/pennyfarthing-dist/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
  228. package/pennyfarthing-dist/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
  229. package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  230. package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  231. package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  232. package/pennyfarthing-dist/pf/handoff/cli.py +152 -0
  233. package/pennyfarthing-dist/pf/handoff/marker.py +109 -0
  234. package/pennyfarthing-dist/pf/handoff/phase_check.py +96 -0
  235. package/pennyfarthing-dist/pf/healthscore/__init__.py +21 -0
  236. package/pennyfarthing-dist/pf/healthscore/__main__.py +14 -0
  237. package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
  238. package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  239. package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  240. package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
  241. package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  242. package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
  243. package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  244. package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  245. package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
  246. package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  247. package/pennyfarthing-dist/pf/healthscore/analyze.py +606 -0
  248. package/pennyfarthing-dist/pf/healthscore/cli.py +80 -0
  249. package/pennyfarthing-dist/pf/healthscore/formatters.py +46 -0
  250. package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  251. package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  252. package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
  253. package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  254. package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
  255. package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  256. package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
  257. package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  258. package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
  259. package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  260. package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
  261. package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  262. package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
  263. package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  264. package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
  265. package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  266. package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
  267. package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  268. package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
  269. package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  270. package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  271. package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
  272. package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  273. package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
  274. package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  275. package/pennyfarthing-dist/pf/hooks/bell_mode.py +214 -0
  276. package/pennyfarthing-dist/pf/hooks/cli.py +96 -0
  277. package/pennyfarthing-dist/pf/hooks/context_breaker.py +104 -0
  278. package/pennyfarthing-dist/pf/hooks/context_warning.py +66 -0
  279. package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +129 -0
  280. package/pennyfarthing-dist/pf/hooks/schema_validation.py +202 -0
  281. package/pennyfarthing-dist/pf/hooks/session_start.py +294 -0
  282. package/pennyfarthing-dist/pf/hooks/sprint_yaml_validation.py +97 -0
  283. package/pennyfarthing-dist/pf/hooks/statusline.py +429 -0
  284. package/pennyfarthing-dist/pf/hooks.py +32 -0
  285. package/pennyfarthing-dist/pf/hotspots/__init__.py +31 -0
  286. package/pennyfarthing-dist/pf/hotspots/__main__.py +6 -0
  287. package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
  288. package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  289. package/pennyfarthing-dist/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
  290. package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
  291. package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  292. package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
  293. package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  294. package/pennyfarthing-dist/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
  295. package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
  296. package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  297. package/pennyfarthing-dist/pf/hotspots/analyze.py +613 -0
  298. package/pennyfarthing-dist/pf/hotspots/cli.py +154 -0
  299. package/pennyfarthing-dist/pf/hotspots/formatters.py +109 -0
  300. package/pennyfarthing-dist/pf/jira/__init__.py +97 -0
  301. package/pennyfarthing-dist/pf/jira/__main__.py +10 -0
  302. package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
  303. package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  304. package/pennyfarthing-dist/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
  305. package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
  306. package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  307. package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
  308. package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  309. package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
  310. package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  311. package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
  312. package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  313. package/pennyfarthing-dist/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
  314. package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
  315. package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  316. package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
  317. package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  318. package/pennyfarthing-dist/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
  319. package/pennyfarthing-dist/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
  320. package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
  321. package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  322. package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
  323. package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  324. package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
  325. package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  326. package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
  327. package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  328. package/pennyfarthing-dist/pf/jira/bidirectional.py +587 -0
  329. package/pennyfarthing-dist/pf/jira/claim.py +232 -0
  330. package/pennyfarthing-dist/pf/jira/cli.py +362 -0
  331. package/pennyfarthing-dist/pf/jira/client.py +802 -0
  332. package/pennyfarthing-dist/pf/jira/create.py +311 -0
  333. package/pennyfarthing-dist/pf/jira/epic.py +177 -0
  334. package/pennyfarthing-dist/pf/jira/operations.py +124 -0
  335. package/pennyfarthing-dist/pf/jira/reconcile.py +276 -0
  336. package/pennyfarthing-dist/pf/jira/story.py +221 -0
  337. package/pennyfarthing-dist/pf/jira/sync.py +350 -0
  338. package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +37 -0
  339. package/pennyfarthing-dist/pf/jira_epic_creation.py +30 -0
  340. package/pennyfarthing-dist/pf/jira_sync.py +36 -0
  341. package/pennyfarthing-dist/pf/jira_sync_story.py +30 -0
  342. package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
  343. package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  344. package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
  345. package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  346. package/pennyfarthing-dist/pf/launch/cli.py +231 -0
  347. package/pennyfarthing-dist/pf/migration/__init__.py +39 -0
  348. package/pennyfarthing-dist/pf/migration/__main__.py +10 -0
  349. package/pennyfarthing-dist/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
  350. package/pennyfarthing-dist/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
  351. package/pennyfarthing-dist/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
  352. package/pennyfarthing-dist/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
  353. package/pennyfarthing-dist/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
  354. package/pennyfarthing-dist/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
  355. package/pennyfarthing-dist/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
  356. package/pennyfarthing-dist/pf/migration/cli.py +304 -0
  357. package/pennyfarthing-dist/pf/migration/validate.py +285 -0
  358. package/pennyfarthing-dist/pf/output.py +37 -0
  359. package/pennyfarthing-dist/pf/patch_mode.py +449 -0
  360. package/pennyfarthing-dist/pf/preflight/__init__.py +17 -0
  361. package/pennyfarthing-dist/pf/preflight/__main__.py +10 -0
  362. package/pennyfarthing-dist/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
  363. package/pennyfarthing-dist/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
  364. package/pennyfarthing-dist/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
  365. package/pennyfarthing-dist/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
  366. package/pennyfarthing-dist/pf/preflight/cli.py +141 -0
  367. package/pennyfarthing-dist/pf/pretooluse_hook.py +10 -0
  368. package/pennyfarthing-dist/pf/prime/__init__.py +127 -0
  369. package/pennyfarthing-dist/pf/prime/__main__.py +8 -0
  370. package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  371. package/pennyfarthing-dist/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
  372. package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  373. package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  374. package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  375. package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  376. package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  377. package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  378. package/pennyfarthing-dist/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
  379. package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  380. package/pennyfarthing-dist/pf/prime/cli.py +662 -0
  381. package/pennyfarthing-dist/pf/prime/heatmap.py +643 -0
  382. package/pennyfarthing-dist/pf/prime/loader.py +308 -0
  383. package/pennyfarthing-dist/pf/prime/persona.py +311 -0
  384. package/pennyfarthing-dist/pf/prime/session.py +183 -0
  385. package/pennyfarthing-dist/pf/prime/tiers.py +214 -0
  386. package/pennyfarthing-dist/pf/prime/workflow.py +317 -0
  387. package/pennyfarthing-dist/pf/schema_validation_hook.py +10 -0
  388. package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
  389. package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  390. package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
  391. package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  392. package/pennyfarthing-dist/pf/session/cli.py +87 -0
  393. package/pennyfarthing-dist/pf/session_start_hook.py +10 -0
  394. package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  395. package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  396. package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  397. package/pennyfarthing-dist/pf/settings/cli.py +55 -0
  398. package/pennyfarthing-dist/pf/settings/settings.py +98 -0
  399. package/pennyfarthing-dist/pf/sprint/__init__.py +64 -0
  400. package/pennyfarthing-dist/pf/sprint/__main__.py +10 -0
  401. package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
  402. package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  403. package/pennyfarthing-dist/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
  404. package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
  405. package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  406. package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  407. package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
  408. package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  409. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
  410. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  411. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
  412. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  413. package/pennyfarthing-dist/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
  414. package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
  415. package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  416. package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
  417. package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  418. package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
  419. package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  420. package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  421. package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
  422. package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  423. package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
  424. package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  425. package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
  426. package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  427. package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
  428. package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  429. package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
  430. package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  431. package/pennyfarthing-dist/pf/sprint/archive.py +164 -0
  432. package/pennyfarthing-dist/pf/sprint/archive_epic.py +625 -0
  433. package/pennyfarthing-dist/pf/sprint/cli.py +2021 -0
  434. package/pennyfarthing-dist/pf/sprint/epic_add.py +186 -0
  435. package/pennyfarthing-dist/pf/sprint/epic_update.py +148 -0
  436. package/pennyfarthing-dist/pf/sprint/import_epic.py +455 -0
  437. package/pennyfarthing-dist/pf/sprint/loader.py +441 -0
  438. package/pennyfarthing-dist/pf/sprint/status.py +121 -0
  439. package/pennyfarthing-dist/pf/sprint/story_add.py +372 -0
  440. package/pennyfarthing-dist/pf/sprint/story_finish.py +227 -0
  441. package/pennyfarthing-dist/pf/sprint/story_update.py +222 -0
  442. package/pennyfarthing-dist/pf/sprint/validate_cmd.py +307 -0
  443. package/pennyfarthing-dist/pf/sprint/validator.py +694 -0
  444. package/pennyfarthing-dist/pf/sprint/work.py +229 -0
  445. package/pennyfarthing-dist/pf/story/__init__.py +65 -0
  446. package/pennyfarthing-dist/pf/story/__main__.py +10 -0
  447. package/pennyfarthing-dist/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
  448. package/pennyfarthing-dist/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
  449. package/pennyfarthing-dist/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
  450. package/pennyfarthing-dist/pf/story/__pycache__/create.cpython-314.pyc +0 -0
  451. package/pennyfarthing-dist/pf/story/__pycache__/size.cpython-314.pyc +0 -0
  452. package/pennyfarthing-dist/pf/story/__pycache__/template.cpython-314.pyc +0 -0
  453. package/pennyfarthing-dist/pf/story/cli.py +105 -0
  454. package/pennyfarthing-dist/pf/story/create.py +167 -0
  455. package/pennyfarthing-dist/pf/tests/__init__.py +1 -0
  456. package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  457. package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  458. package/pennyfarthing-dist/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
  459. package/pennyfarthing-dist/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
  460. package/pennyfarthing-dist/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
  461. package/pennyfarthing-dist/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
  462. package/pennyfarthing-dist/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
  463. package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
  464. package/pennyfarthing-dist/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
  465. package/pennyfarthing-dist/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
  466. package/pennyfarthing-dist/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
  467. package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
  468. package/pennyfarthing-dist/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
  469. package/pennyfarthing-dist/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
  470. package/pennyfarthing-dist/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
  471. package/pennyfarthing-dist/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
  472. package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  473. package/pennyfarthing-dist/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
  474. package/pennyfarthing-dist/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
  475. package/pennyfarthing-dist/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
  476. package/pennyfarthing-dist/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
  477. package/pennyfarthing-dist/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
  478. package/pennyfarthing-dist/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
  479. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
  480. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
  481. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  482. package/pennyfarthing-dist/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
  483. package/pennyfarthing-dist/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
  484. package/pennyfarthing-dist/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
  485. package/pennyfarthing-dist/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
  486. package/pennyfarthing-dist/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
  487. package/pennyfarthing-dist/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
  488. package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
  489. package/pennyfarthing-dist/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
  490. package/pennyfarthing-dist/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
  491. package/pennyfarthing-dist/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
  492. package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
  493. package/pennyfarthing-dist/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  494. package/pennyfarthing-dist/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
  495. package/pennyfarthing-dist/pf/tests/conftest.py +105 -0
  496. package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +540 -0
  497. package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +339 -0
  498. package/pennyfarthing-dist/pf/tests/test_archive_epic.py +185 -0
  499. package/pennyfarthing-dist/pf/tests/test_bc.py +490 -0
  500. package/pennyfarthing-dist/pf/tests/test_bikerack.py +785 -0
  501. package/pennyfarthing-dist/pf/tests/test_brownfield.py +839 -0
  502. package/pennyfarthing-dist/pf/tests/test_cli_modules.py +241 -0
  503. package/pennyfarthing-dist/pf/tests/test_cli_normalization.py +295 -0
  504. package/pennyfarthing-dist/pf/tests/test_codemarkers.py +687 -0
  505. package/pennyfarthing-dist/pf/tests/test_common.py +185 -0
  506. package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +253 -0
  507. package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +316 -0
  508. package/pennyfarthing-dist/pf/tests/test_dialogue_manager.py +810 -0
  509. package/pennyfarthing-dist/pf/tests/test_epic_shard_validation.py +699 -0
  510. package/pennyfarthing-dist/pf/tests/test_gate_file_resolution.py +341 -0
  511. package/pennyfarthing-dist/pf/tests/test_gate_runner.py +620 -0
  512. package/pennyfarthing-dist/pf/tests/test_git_utils.py +863 -0
  513. package/pennyfarthing-dist/pf/tests/test_handoff_cli.py +934 -0
  514. package/pennyfarthing-dist/pf/tests/test_handoff_e2e.py +454 -0
  515. package/pennyfarthing-dist/pf/tests/test_healthscore.py +516 -0
  516. package/pennyfarthing-dist/pf/tests/test_jira_package.py +331 -0
  517. package/pennyfarthing-dist/pf/tests/test_package_structure.py +359 -0
  518. package/pennyfarthing-dist/pf/tests/test_patch_mode.py +826 -0
  519. package/pennyfarthing-dist/pf/tests/test_prime.py +1068 -0
  520. package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +460 -0
  521. package/pennyfarthing-dist/pf/tests/test_sprint_package.py +397 -0
  522. package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +610 -0
  523. package/pennyfarthing-dist/pf/tests/test_sprint_validator.py +779 -0
  524. package/pennyfarthing-dist/pf/tests/test_story_add.py +917 -0
  525. package/pennyfarthing-dist/pf/tests/test_story_package.py +153 -0
  526. package/pennyfarthing-dist/pf/tests/test_story_update.py +764 -0
  527. package/pennyfarthing-dist/pf/tests/test_tiers.py +1091 -0
  528. package/pennyfarthing-dist/pf/tests/test_token_counting.py +565 -0
  529. package/pennyfarthing-dist/pf/tests/test_topology_loader.py +620 -0
  530. package/pennyfarthing-dist/pf/tests/test_tui_focus.py +411 -0
  531. package/pennyfarthing-dist/pf/tests/test_tui_panel_persistence.py +411 -0
  532. package/pennyfarthing-dist/pf/tests/test_validate_cmd.py +495 -0
  533. package/pennyfarthing-dist/pf/tests/test_version_sentinel.py +122 -0
  534. package/pennyfarthing-dist/pf/tests/test_workflow_check.py +338 -0
  535. package/pennyfarthing-dist/pf/tests/test_workflow_list_team.py +143 -0
  536. package/pennyfarthing-dist/pf/tests/test_yaml_io.py +812 -0
  537. package/pennyfarthing-dist/pf/theme/__main__.py +6 -0
  538. package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
  539. package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  540. package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
  541. package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  542. package/pennyfarthing-dist/pf/theme/cli.py +310 -0
  543. package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
  544. package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  545. package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
  546. package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  547. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
  548. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
  549. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
  550. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
  551. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
  552. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
  553. package/pennyfarthing-dist/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
  554. package/pennyfarthing-dist/pf/validate/adapters/agent.py +239 -0
  555. package/pennyfarthing-dist/pf/validate/adapters/schema.py +30 -0
  556. package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +491 -0
  557. package/pennyfarthing-dist/pf/validate/adapters/sprint.py +69 -0
  558. package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +254 -0
  559. package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +323 -0
  560. package/pennyfarthing-dist/pf/validate/adapters/workflow.py +403 -0
  561. package/pennyfarthing-dist/pf/validate/cli.py +164 -0
  562. package/pennyfarthing-dist/pf/welcome_hook.py +10 -0
  563. package/pennyfarthing-dist/pf/workflow/__init__.py +40 -0
  564. package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
  565. package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  566. package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
  567. package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  568. package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  569. package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
  570. package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  571. package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
  572. package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  573. package/pennyfarthing-dist/pf/workflow/cli.py +1101 -0
  574. package/pennyfarthing-dist/pf/workflow/helpers.py +241 -0
  575. package/pennyfarthing-dist/pyproject.toml +18 -0
  576. package/pennyfarthing-dist/scripts/core/agent-session.sh +3 -3
  577. package/pennyfarthing-dist/scripts/core/check-context.sh +8 -8
  578. package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
  579. package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +3 -3
  580. package/pennyfarthing-dist/scripts/jira/README.md +1 -1
  581. package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +1 -1
  582. package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +1 -1
  583. package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +1 -1
  584. package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +1 -1
  585. package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +1 -1
  586. package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +1 -1
  587. package/pennyfarthing-dist/scripts/lib/common.sh +3 -3
  588. package/pennyfarthing-dist/scripts/lib/run-pf.sh +11 -13
  589. package/pennyfarthing-dist/scripts/sprint/README.md +1 -1
  590. package/pennyfarthing-dist/scripts/story/create-story.sh +1 -1
  591. package/pennyfarthing-dist/scripts/story/size-story.sh +1 -1
  592. package/pennyfarthing-dist/scripts/story/story-template.sh +1 -1
  593. package/pennyfarthing-dist/scripts/theme/list-themes.sh +3 -3
  594. package/pennyfarthing-dist/templates/pyproject.toml +3 -3
  595. package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts +0 -16
  596. package/packages/core/dist/cli/utils/settings-pf-wrapper.test.d.ts.map +0 -1
  597. package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js +0 -377
  598. package/packages/core/dist/cli/utils/settings-pf-wrapper.test.js.map +0 -1
  599. package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
  600. package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
  601. package/packages/core/dist/workflow/team-lifecycle.js +0 -217
  602. package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
  603. package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
  604. package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
  605. package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
  606. package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
  607. package/packages/core/dist/workflow/workflow-graph-validation.d.ts +0 -65
  608. package/packages/core/dist/workflow/workflow-graph-validation.d.ts.map +0 -1
  609. package/packages/core/dist/workflow/workflow-graph-validation.js +0 -190
  610. package/packages/core/dist/workflow/workflow-graph-validation.js.map +0 -1
  611. package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts +0 -18
  612. package/packages/core/dist/workflow/workflow-graph-validation.test.d.ts.map +0 -1
  613. package/packages/core/dist/workflow/workflow-graph-validation.test.js +0 -706
  614. package/packages/core/dist/workflow/workflow-graph-validation.test.js.map +0 -1
  615. package/pennyfarthing_scripts/CLAUDE.md +0 -213
  616. package/pennyfarthing_scripts/README.md +0 -66
  617. package/pennyfarthing_scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  618. package/pennyfarthing_scripts/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
  619. package/pennyfarthing_scripts/__pycache__/cli.cpython-314.pyc +0 -0
  620. package/pennyfarthing_scripts/__pycache__/config.cpython-314.pyc +0 -0
  621. package/pennyfarthing_scripts/__pycache__/context.cpython-314.pyc +0 -0
  622. package/pennyfarthing_scripts/__pycache__/hooks.cpython-314.pyc +0 -0
  623. package/pennyfarthing_scripts/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
  624. package/pennyfarthing_scripts/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
  625. package/pennyfarthing_scripts/__pycache__/jira_sync.cpython-314.pyc +0 -0
  626. package/pennyfarthing_scripts/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
  627. package/pennyfarthing_scripts/__pycache__/output.cpython-314.pyc +0 -0
  628. package/pennyfarthing_scripts/__pycache__/patch_mode.cpython-314.pyc +0 -0
  629. package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
  630. package/pennyfarthing_scripts/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
  631. package/pennyfarthing_scripts/__pycache__/session_start_hook.cpython-314.pyc +0 -0
  632. package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
  633. package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  634. package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-314.pyc +0 -0
  635. package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-314.pyc +0 -0
  636. package/pennyfarthing_scripts/bc/__pycache__/split.cpython-314.pyc +0 -0
  637. package/pennyfarthing_scripts/bc/cli.py +0 -242
  638. package/pennyfarthing_scripts/bc/focus.py +0 -334
  639. package/pennyfarthing_scripts/bc/split.py +0 -52
  640. package/pennyfarthing_scripts/bellmode_hook.py +0 -22
  641. package/pennyfarthing_scripts/bikerack/__init__.py +0 -44
  642. package/pennyfarthing_scripts/bikerack/__main__.py +0 -5
  643. package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  644. package/pennyfarthing_scripts/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
  645. package/pennyfarthing_scripts/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  646. package/pennyfarthing_scripts/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  647. package/pennyfarthing_scripts/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  648. package/pennyfarthing_scripts/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  649. package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  650. package/pennyfarthing_scripts/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  651. package/pennyfarthing_scripts/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  652. package/pennyfarthing_scripts/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  653. package/pennyfarthing_scripts/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  654. package/pennyfarthing_scripts/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  655. package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  656. package/pennyfarthing_scripts/bikerack/__pycache__/portrait.cpython-314.pyc +0 -0
  657. package/pennyfarthing_scripts/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  658. package/pennyfarthing_scripts/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  659. package/pennyfarthing_scripts/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  660. package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  661. package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  662. package/pennyfarthing_scripts/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  663. package/pennyfarthing_scripts/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  664. package/pennyfarthing_scripts/bikerack/audit_log_panel.py +0 -161
  665. package/pennyfarthing_scripts/bikerack/background_panel.py +0 -162
  666. package/pennyfarthing_scripts/bikerack/changed_panel.py +0 -201
  667. package/pennyfarthing_scripts/bikerack/cli.py +0 -145
  668. package/pennyfarthing_scripts/bikerack/context_meter_footer.py +0 -138
  669. package/pennyfarthing_scripts/bikerack/debug_panel.py +0 -248
  670. package/pennyfarthing_scripts/bikerack/diffs_panel.py +0 -409
  671. package/pennyfarthing_scripts/bikerack/git_panel.py +0 -139
  672. package/pennyfarthing_scripts/bikerack/launcher.py +0 -240
  673. package/pennyfarthing_scripts/bikerack/portrait_resolver.py +0 -139
  674. package/pennyfarthing_scripts/bikerack/progress_panel.py +0 -314
  675. package/pennyfarthing_scripts/bikerack/sprint_panel.py +0 -435
  676. package/pennyfarthing_scripts/bikerack/story_detail_data.py +0 -247
  677. package/pennyfarthing_scripts/bikerack/story_detail_screen.py +0 -177
  678. package/pennyfarthing_scripts/bikerack/tui.py +0 -935
  679. package/pennyfarthing_scripts/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  680. package/pennyfarthing_scripts/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  681. package/pennyfarthing_scripts/bmad/__pycache__/parser.cpython-314.pyc +0 -0
  682. package/pennyfarthing_scripts/bmad/__pycache__/sync.cpython-314.pyc +0 -0
  683. package/pennyfarthing_scripts/bmad/__pycache__/test_parser.cpython-314-pytest-9.0.2.pyc +0 -0
  684. package/pennyfarthing_scripts/bmad/__pycache__/test_sync.cpython-314-pytest-9.0.2.pyc +0 -0
  685. package/pennyfarthing_scripts/bmad/cli.py +0 -197
  686. package/pennyfarthing_scripts/bmad/importer.py +0 -200
  687. package/pennyfarthing_scripts/bmad/sync.py +0 -464
  688. package/pennyfarthing_scripts/bmad/test_parser.py +0 -253
  689. package/pennyfarthing_scripts/bmad/test_sync.py +0 -223
  690. package/pennyfarthing_scripts/brownfield/__init__.py +0 -35
  691. package/pennyfarthing_scripts/brownfield/__main__.py +0 -8
  692. package/pennyfarthing_scripts/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
  693. package/pennyfarthing_scripts/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
  694. package/pennyfarthing_scripts/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
  695. package/pennyfarthing_scripts/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
  696. package/pennyfarthing_scripts/brownfield/cli.py +0 -130
  697. package/pennyfarthing_scripts/cli.py +0 -354
  698. package/pennyfarthing_scripts/codemarkers/__init__.py +0 -23
  699. package/pennyfarthing_scripts/codemarkers/__main__.py +0 -6
  700. package/pennyfarthing_scripts/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  701. package/pennyfarthing_scripts/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
  702. package/pennyfarthing_scripts/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  703. package/pennyfarthing_scripts/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
  704. package/pennyfarthing_scripts/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
  705. package/pennyfarthing_scripts/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  706. package/pennyfarthing_scripts/codemarkers/analyze.py +0 -501
  707. package/pennyfarthing_scripts/codemarkers/cli.py +0 -179
  708. package/pennyfarthing_scripts/codemarkers/formatters.py +0 -88
  709. package/pennyfarthing_scripts/common/__init__.py +0 -48
  710. package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-314.pyc +0 -0
  711. package/pennyfarthing_scripts/common/__pycache__/config.cpython-314.pyc +0 -0
  712. package/pennyfarthing_scripts/common/__pycache__/output.cpython-314.pyc +0 -0
  713. package/pennyfarthing_scripts/common/__pycache__/themes.cpython-314.pyc +0 -0
  714. package/pennyfarthing_scripts/common/pr_config.py +0 -38
  715. package/pennyfarthing_scripts/common/themes.py +0 -253
  716. package/pennyfarthing_scripts/complexity/__init__.py +0 -15
  717. package/pennyfarthing_scripts/complexity/__main__.py +0 -6
  718. package/pennyfarthing_scripts/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  719. package/pennyfarthing_scripts/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
  720. package/pennyfarthing_scripts/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  721. package/pennyfarthing_scripts/complexity/__pycache__/cli.cpython-314.pyc +0 -0
  722. package/pennyfarthing_scripts/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
  723. package/pennyfarthing_scripts/complexity/__pycache__/models.cpython-314.pyc +0 -0
  724. package/pennyfarthing_scripts/complexity/analyze.py +0 -207
  725. package/pennyfarthing_scripts/complexity/cli.py +0 -82
  726. package/pennyfarthing_scripts/complexity/formatters.py +0 -64
  727. package/pennyfarthing_scripts/config.py +0 -21
  728. package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  729. package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  730. package/pennyfarthing_scripts/consultation/cli.py +0 -149
  731. package/pennyfarthing_scripts/deadcode/__main__.py +0 -6
  732. package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  733. package/pennyfarthing_scripts/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
  734. package/pennyfarthing_scripts/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  735. package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  736. package/pennyfarthing_scripts/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
  737. package/pennyfarthing_scripts/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  738. package/pennyfarthing_scripts/deadcode/analyze.py +0 -322
  739. package/pennyfarthing_scripts/deadcode/cli.py +0 -163
  740. package/pennyfarthing_scripts/deadcode/formatters.py +0 -106
  741. package/pennyfarthing_scripts/dependencies/__init__.py +0 -20
  742. package/pennyfarthing_scripts/dependencies/__main__.py +0 -5
  743. package/pennyfarthing_scripts/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  744. package/pennyfarthing_scripts/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
  745. package/pennyfarthing_scripts/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  746. package/pennyfarthing_scripts/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
  747. package/pennyfarthing_scripts/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
  748. package/pennyfarthing_scripts/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  749. package/pennyfarthing_scripts/dependencies/analyze.py +0 -155
  750. package/pennyfarthing_scripts/dependencies/cli.py +0 -76
  751. package/pennyfarthing_scripts/dependencies/formatters.py +0 -63
  752. package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  753. package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-314.pyc +0 -0
  754. package/pennyfarthing_scripts/gate/__pycache__/__init__.cpython-314.pyc +0 -0
  755. package/pennyfarthing_scripts/gate/__pycache__/cli.cpython-314.pyc +0 -0
  756. package/pennyfarthing_scripts/gate/__pycache__/validate.cpython-314.pyc +0 -0
  757. package/pennyfarthing_scripts/gate/cli.py +0 -56
  758. package/pennyfarthing_scripts/git/__init__.py +0 -40
  759. package/pennyfarthing_scripts/git/__pycache__/__init__.cpython-314.pyc +0 -0
  760. package/pennyfarthing_scripts/git/__pycache__/create_branches.cpython-314.pyc +0 -0
  761. package/pennyfarthing_scripts/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
  762. package/pennyfarthing_scripts/git/__pycache__/repos.cpython-314.pyc +0 -0
  763. package/pennyfarthing_scripts/git/__pycache__/status_all.cpython-314.pyc +0 -0
  764. package/pennyfarthing_scripts/git/__pycache__/worktree.cpython-314.pyc +0 -0
  765. package/pennyfarthing_scripts/git/create_branches.py +0 -439
  766. package/pennyfarthing_scripts/git/hooks_installer.py +0 -151
  767. package/pennyfarthing_scripts/git/repos.py +0 -196
  768. package/pennyfarthing_scripts/git/status_all.py +0 -326
  769. package/pennyfarthing_scripts/git/worktree.py +0 -302
  770. package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  771. package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  772. package/pennyfarthing_scripts/git_group/cli.py +0 -203
  773. package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  774. package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  775. package/pennyfarthing_scripts/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  776. package/pennyfarthing_scripts/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
  777. package/pennyfarthing_scripts/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
  778. package/pennyfarthing_scripts/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  779. package/pennyfarthing_scripts/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  780. package/pennyfarthing_scripts/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  781. package/pennyfarthing_scripts/handoff/cli.py +0 -152
  782. package/pennyfarthing_scripts/handoff/marker.py +0 -109
  783. package/pennyfarthing_scripts/handoff/phase_check.py +0 -96
  784. package/pennyfarthing_scripts/healthscore/__init__.py +0 -21
  785. package/pennyfarthing_scripts/healthscore/__main__.py +0 -14
  786. package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  787. package/pennyfarthing_scripts/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  788. package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  789. package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  790. package/pennyfarthing_scripts/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  791. package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  792. package/pennyfarthing_scripts/healthscore/analyze.py +0 -606
  793. package/pennyfarthing_scripts/healthscore/cli.py +0 -80
  794. package/pennyfarthing_scripts/healthscore/formatters.py +0 -46
  795. package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  796. package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  797. package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  798. package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  799. package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  800. package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  801. package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  802. package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  803. package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  804. package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  805. package/pennyfarthing_scripts/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  806. package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  807. package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  808. package/pennyfarthing_scripts/hooks/bell_mode.py +0 -214
  809. package/pennyfarthing_scripts/hooks/cli.py +0 -96
  810. package/pennyfarthing_scripts/hooks/context_breaker.py +0 -104
  811. package/pennyfarthing_scripts/hooks/context_warning.py +0 -66
  812. package/pennyfarthing_scripts/hooks/cyclist_pretooluse.py +0 -129
  813. package/pennyfarthing_scripts/hooks/schema_validation.py +0 -202
  814. package/pennyfarthing_scripts/hooks/session_start.py +0 -294
  815. package/pennyfarthing_scripts/hooks/sprint_yaml_validation.py +0 -97
  816. package/pennyfarthing_scripts/hooks/statusline.py +0 -429
  817. package/pennyfarthing_scripts/hooks.py +0 -32
  818. package/pennyfarthing_scripts/hotspots/__init__.py +0 -31
  819. package/pennyfarthing_scripts/hotspots/__main__.py +0 -6
  820. package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  821. package/pennyfarthing_scripts/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
  822. package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  823. package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  824. package/pennyfarthing_scripts/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
  825. package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  826. package/pennyfarthing_scripts/hotspots/analyze.py +0 -613
  827. package/pennyfarthing_scripts/hotspots/cli.py +0 -154
  828. package/pennyfarthing_scripts/hotspots/formatters.py +0 -109
  829. package/pennyfarthing_scripts/jira/__init__.py +0 -97
  830. package/pennyfarthing_scripts/jira/__main__.py +0 -10
  831. package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  832. package/pennyfarthing_scripts/jira/__pycache__/__main__.cpython-314.pyc +0 -0
  833. package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  834. package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-314.pyc +0 -0
  835. package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-314.pyc +0 -0
  836. package/pennyfarthing_scripts/jira/__pycache__/client.cpython-314.pyc +0 -0
  837. package/pennyfarthing_scripts/jira/__pycache__/create.cpython-314.pyc +0 -0
  838. package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-314.pyc +0 -0
  839. package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-314.pyc +0 -0
  840. package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  841. package/pennyfarthing_scripts/jira/__pycache__/story.cpython-314.pyc +0 -0
  842. package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-314.pyc +0 -0
  843. package/pennyfarthing_scripts/jira/bidirectional.py +0 -587
  844. package/pennyfarthing_scripts/jira/claim.py +0 -232
  845. package/pennyfarthing_scripts/jira/cli.py +0 -362
  846. package/pennyfarthing_scripts/jira/client.py +0 -802
  847. package/pennyfarthing_scripts/jira/create.py +0 -311
  848. package/pennyfarthing_scripts/jira/epic.py +0 -177
  849. package/pennyfarthing_scripts/jira/operations.py +0 -124
  850. package/pennyfarthing_scripts/jira/reconcile.py +0 -276
  851. package/pennyfarthing_scripts/jira/story.py +0 -221
  852. package/pennyfarthing_scripts/jira/sync.py +0 -350
  853. package/pennyfarthing_scripts/jira_bidirectional_sync.py +0 -37
  854. package/pennyfarthing_scripts/jira_epic_creation.py +0 -30
  855. package/pennyfarthing_scripts/jira_sync.py +0 -36
  856. package/pennyfarthing_scripts/jira_sync_story.py +0 -30
  857. package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  858. package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-314.pyc +0 -0
  859. package/pennyfarthing_scripts/launch/cli.py +0 -231
  860. package/pennyfarthing_scripts/migration/__init__.py +0 -39
  861. package/pennyfarthing_scripts/migration/__main__.py +0 -10
  862. package/pennyfarthing_scripts/migration/__pycache__/__init__.cpython-314.pyc +0 -0
  863. package/pennyfarthing_scripts/migration/__pycache__/session.cpython-314.pyc +0 -0
  864. package/pennyfarthing_scripts/migration/__pycache__/skill.cpython-314.pyc +0 -0
  865. package/pennyfarthing_scripts/migration/__pycache__/step.cpython-314.pyc +0 -0
  866. package/pennyfarthing_scripts/migration/__pycache__/validate.cpython-314.pyc +0 -0
  867. package/pennyfarthing_scripts/migration/cli.py +0 -304
  868. package/pennyfarthing_scripts/migration/validate.py +0 -285
  869. package/pennyfarthing_scripts/output.py +0 -37
  870. package/pennyfarthing_scripts/patch_mode.py +0 -449
  871. package/pennyfarthing_scripts/preflight/__init__.py +0 -17
  872. package/pennyfarthing_scripts/preflight/__main__.py +0 -10
  873. package/pennyfarthing_scripts/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
  874. package/pennyfarthing_scripts/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
  875. package/pennyfarthing_scripts/preflight/__pycache__/cli.cpython-314.pyc +0 -0
  876. package/pennyfarthing_scripts/preflight/__pycache__/finish.cpython-314.pyc +0 -0
  877. package/pennyfarthing_scripts/preflight/cli.py +0 -141
  878. package/pennyfarthing_scripts/pretooluse_hook.py +0 -10
  879. package/pennyfarthing_scripts/prime/__init__.py +0 -127
  880. package/pennyfarthing_scripts/prime/__main__.py +0 -8
  881. package/pennyfarthing_scripts/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  882. package/pennyfarthing_scripts/prime/__pycache__/cli.cpython-314.pyc +0 -0
  883. package/pennyfarthing_scripts/prime/__pycache__/heatmap.cpython-314.pyc +0 -0
  884. package/pennyfarthing_scripts/prime/__pycache__/loader.cpython-314.pyc +0 -0
  885. package/pennyfarthing_scripts/prime/__pycache__/models.cpython-314.pyc +0 -0
  886. package/pennyfarthing_scripts/prime/__pycache__/persona.cpython-314.pyc +0 -0
  887. package/pennyfarthing_scripts/prime/__pycache__/session.cpython-314.pyc +0 -0
  888. package/pennyfarthing_scripts/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  889. package/pennyfarthing_scripts/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
  890. package/pennyfarthing_scripts/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  891. package/pennyfarthing_scripts/prime/cli.py +0 -662
  892. package/pennyfarthing_scripts/prime/heatmap.py +0 -643
  893. package/pennyfarthing_scripts/prime/loader.py +0 -308
  894. package/pennyfarthing_scripts/prime/persona.py +0 -311
  895. package/pennyfarthing_scripts/prime/session.py +0 -183
  896. package/pennyfarthing_scripts/prime/tiers.py +0 -214
  897. package/pennyfarthing_scripts/prime/workflow.py +0 -317
  898. package/pennyfarthing_scripts/schema_validation_hook.py +0 -10
  899. package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-314.pyc +0 -0
  900. package/pennyfarthing_scripts/session/__pycache__/cli.cpython-314.pyc +0 -0
  901. package/pennyfarthing_scripts/session/cli.py +0 -87
  902. package/pennyfarthing_scripts/session_start_hook.py +0 -10
  903. package/pennyfarthing_scripts/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  904. package/pennyfarthing_scripts/settings/__pycache__/cli.cpython-314.pyc +0 -0
  905. package/pennyfarthing_scripts/settings/__pycache__/settings.cpython-314.pyc +0 -0
  906. package/pennyfarthing_scripts/settings/cli.py +0 -55
  907. package/pennyfarthing_scripts/settings/settings.py +0 -98
  908. package/pennyfarthing_scripts/sprint/__init__.py +0 -64
  909. package/pennyfarthing_scripts/sprint/__main__.py +0 -10
  910. package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  911. package/pennyfarthing_scripts/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
  912. package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  913. package/pennyfarthing_scripts/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  914. package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  915. package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  916. package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  917. package/pennyfarthing_scripts/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
  918. package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  919. package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-314.pyc +0 -0
  920. package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  921. package/pennyfarthing_scripts/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  922. package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  923. package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  924. package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  925. package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-314.pyc +0 -0
  926. package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  927. package/pennyfarthing_scripts/sprint/archive.py +0 -164
  928. package/pennyfarthing_scripts/sprint/archive_epic.py +0 -625
  929. package/pennyfarthing_scripts/sprint/cli.py +0 -2021
  930. package/pennyfarthing_scripts/sprint/epic_add.py +0 -186
  931. package/pennyfarthing_scripts/sprint/epic_update.py +0 -148
  932. package/pennyfarthing_scripts/sprint/import_epic.py +0 -455
  933. package/pennyfarthing_scripts/sprint/loader.py +0 -441
  934. package/pennyfarthing_scripts/sprint/status.py +0 -121
  935. package/pennyfarthing_scripts/sprint/story_add.py +0 -372
  936. package/pennyfarthing_scripts/sprint/story_finish.py +0 -227
  937. package/pennyfarthing_scripts/sprint/story_update.py +0 -222
  938. package/pennyfarthing_scripts/sprint/validate_cmd.py +0 -307
  939. package/pennyfarthing_scripts/sprint/validator.py +0 -694
  940. package/pennyfarthing_scripts/sprint/work.py +0 -229
  941. package/pennyfarthing_scripts/story/__init__.py +0 -65
  942. package/pennyfarthing_scripts/story/__main__.py +0 -10
  943. package/pennyfarthing_scripts/story/__pycache__/__init__.cpython-314.pyc +0 -0
  944. package/pennyfarthing_scripts/story/__pycache__/__main__.cpython-314.pyc +0 -0
  945. package/pennyfarthing_scripts/story/__pycache__/cli.cpython-314.pyc +0 -0
  946. package/pennyfarthing_scripts/story/__pycache__/create.cpython-314.pyc +0 -0
  947. package/pennyfarthing_scripts/story/__pycache__/size.cpython-314.pyc +0 -0
  948. package/pennyfarthing_scripts/story/__pycache__/template.cpython-314.pyc +0 -0
  949. package/pennyfarthing_scripts/story/cli.py +0 -105
  950. package/pennyfarthing_scripts/story/create.py +0 -167
  951. package/pennyfarthing_scripts/tests/__init__.py +0 -1
  952. package/pennyfarthing_scripts/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  953. package/pennyfarthing_scripts/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  954. package/pennyfarthing_scripts/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
  955. package/pennyfarthing_scripts/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
  956. package/pennyfarthing_scripts/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
  957. package/pennyfarthing_scripts/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
  958. package/pennyfarthing_scripts/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
  959. package/pennyfarthing_scripts/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
  960. package/pennyfarthing_scripts/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
  961. package/pennyfarthing_scripts/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
  962. package/pennyfarthing_scripts/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
  963. package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
  964. package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
  965. package/pennyfarthing_scripts/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
  966. package/pennyfarthing_scripts/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
  967. package/pennyfarthing_scripts/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
  968. package/pennyfarthing_scripts/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
  969. package/pennyfarthing_scripts/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  970. package/pennyfarthing_scripts/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
  971. package/pennyfarthing_scripts/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
  972. package/pennyfarthing_scripts/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
  973. package/pennyfarthing_scripts/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
  974. package/pennyfarthing_scripts/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
  975. package/pennyfarthing_scripts/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
  976. package/pennyfarthing_scripts/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
  977. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
  978. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
  979. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  980. package/pennyfarthing_scripts/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
  981. package/pennyfarthing_scripts/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
  982. package/pennyfarthing_scripts/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
  983. package/pennyfarthing_scripts/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
  984. package/pennyfarthing_scripts/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
  985. package/pennyfarthing_scripts/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
  986. package/pennyfarthing_scripts/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
  987. package/pennyfarthing_scripts/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
  988. package/pennyfarthing_scripts/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
  989. package/pennyfarthing_scripts/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
  990. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
  991. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
  992. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314.pyc +0 -0
  993. package/pennyfarthing_scripts/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
  994. package/pennyfarthing_scripts/tests/conftest.py +0 -105
  995. package/pennyfarthing_scripts/tests/test_108_1_gate_migration.py +0 -540
  996. package/pennyfarthing_scripts/tests/test_108_2_remove_handoff_fallback.py +0 -339
  997. package/pennyfarthing_scripts/tests/test_archive_epic.py +0 -185
  998. package/pennyfarthing_scripts/tests/test_bc.py +0 -490
  999. package/pennyfarthing_scripts/tests/test_bikerack.py +0 -785
  1000. package/pennyfarthing_scripts/tests/test_brownfield.py +0 -839
  1001. package/pennyfarthing_scripts/tests/test_cli_modules.py +0 -241
  1002. package/pennyfarthing_scripts/tests/test_cli_normalization.py +0 -295
  1003. package/pennyfarthing_scripts/tests/test_codemarkers.py +0 -687
  1004. package/pennyfarthing_scripts/tests/test_common.py +0 -185
  1005. package/pennyfarthing_scripts/tests/test_confidence_sm_evaluation.py +0 -253
  1006. package/pennyfarthing_scripts/tests/test_confidence_sm_gate.py +0 -316
  1007. package/pennyfarthing_scripts/tests/test_dialogue_manager.py +0 -810
  1008. package/pennyfarthing_scripts/tests/test_epic_shard_validation.py +0 -699
  1009. package/pennyfarthing_scripts/tests/test_gate_file_resolution.py +0 -341
  1010. package/pennyfarthing_scripts/tests/test_gate_runner.py +0 -620
  1011. package/pennyfarthing_scripts/tests/test_git_utils.py +0 -863
  1012. package/pennyfarthing_scripts/tests/test_handoff_cli.py +0 -934
  1013. package/pennyfarthing_scripts/tests/test_handoff_e2e.py +0 -454
  1014. package/pennyfarthing_scripts/tests/test_healthscore.py +0 -516
  1015. package/pennyfarthing_scripts/tests/test_jira_package.py +0 -331
  1016. package/pennyfarthing_scripts/tests/test_package_structure.py +0 -359
  1017. package/pennyfarthing_scripts/tests/test_patch_mode.py +0 -826
  1018. package/pennyfarthing_scripts/tests/test_prime.py +0 -1068
  1019. package/pennyfarthing_scripts/tests/test_resolve_gate_file_field.py +0 -462
  1020. package/pennyfarthing_scripts/tests/test_sprint_package.py +0 -397
  1021. package/pennyfarthing_scripts/tests/test_sprint_panel.py +0 -610
  1022. package/pennyfarthing_scripts/tests/test_sprint_validator.py +0 -779
  1023. package/pennyfarthing_scripts/tests/test_story_add.py +0 -917
  1024. package/pennyfarthing_scripts/tests/test_story_package.py +0 -153
  1025. package/pennyfarthing_scripts/tests/test_story_update.py +0 -764
  1026. package/pennyfarthing_scripts/tests/test_tiers.py +0 -1091
  1027. package/pennyfarthing_scripts/tests/test_token_counting.py +0 -565
  1028. package/pennyfarthing_scripts/tests/test_topology_loader.py +0 -620
  1029. package/pennyfarthing_scripts/tests/test_tui_focus.py +0 -411
  1030. package/pennyfarthing_scripts/tests/test_tui_panel_persistence.py +0 -411
  1031. package/pennyfarthing_scripts/tests/test_validate_cmd.py +0 -495
  1032. package/pennyfarthing_scripts/tests/test_version_sentinel.py +0 -122
  1033. package/pennyfarthing_scripts/tests/test_workflow_check.py +0 -338
  1034. package/pennyfarthing_scripts/tests/test_workflow_list_team.py +0 -143
  1035. package/pennyfarthing_scripts/tests/test_yaml_io.py +0 -812
  1036. package/pennyfarthing_scripts/theme/__main__.py +0 -6
  1037. package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  1038. package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-314.pyc +0 -0
  1039. package/pennyfarthing_scripts/theme/cli.py +0 -310
  1040. package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  1041. package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-314.pyc +0 -0
  1042. package/pennyfarthing_scripts/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
  1043. package/pennyfarthing_scripts/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
  1044. package/pennyfarthing_scripts/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
  1045. package/pennyfarthing_scripts/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
  1046. package/pennyfarthing_scripts/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
  1047. package/pennyfarthing_scripts/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
  1048. package/pennyfarthing_scripts/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
  1049. package/pennyfarthing_scripts/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
  1050. package/pennyfarthing_scripts/validate/adapters/agent.py +0 -239
  1051. package/pennyfarthing_scripts/validate/adapters/schema.py +0 -30
  1052. package/pennyfarthing_scripts/validate/adapters/skill_command.py +0 -491
  1053. package/pennyfarthing_scripts/validate/adapters/sprint.py +0 -69
  1054. package/pennyfarthing_scripts/validate/adapters/tandem_awareness.py +0 -254
  1055. package/pennyfarthing_scripts/validate/adapters/team_mode.py +0 -323
  1056. package/pennyfarthing_scripts/validate/adapters/workflow.py +0 -403
  1057. package/pennyfarthing_scripts/validate/cli.py +0 -164
  1058. package/pennyfarthing_scripts/welcome_hook.py +0 -10
  1059. package/pennyfarthing_scripts/workflow/__init__.py +0 -40
  1060. package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  1061. package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  1062. package/pennyfarthing_scripts/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  1063. package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  1064. package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-314.pyc +0 -0
  1065. package/pennyfarthing_scripts/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
  1066. package/pennyfarthing_scripts/workflow/cli.py +0 -1101
  1067. package/pennyfarthing_scripts/workflow/helpers.py +0 -241
  1068. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/__init__.py +0 -0
  1069. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bc/__init__.py +0 -0
  1070. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/base_panel.py +0 -0
  1071. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/events.py +0 -0
  1072. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bikerack/ws_client.py +0 -0
  1073. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/__init__.py +0 -0
  1074. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/bmad/parser.py +0 -0
  1075. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/brownfield/discover.py +0 -0
  1076. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/codemarkers/models.py +0 -0
  1077. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/config.py +0 -0
  1078. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/common/output.py +0 -0
  1079. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/complexity/models.py +0 -0
  1080. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/__init__.py +0 -0
  1081. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/consultation/dialogue_manager.py +0 -0
  1082. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/context.py +0 -0
  1083. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/__init__.py +0 -0
  1084. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/deadcode/models.py +0 -0
  1085. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/dependencies/models.py +0 -0
  1086. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/__init__.py +0 -0
  1087. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/epic/cli.py +0 -0
  1088. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/__init__.py +0 -0
  1089. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/gate/validate.py +0 -0
  1090. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/git_group/__init__.py +0 -0
  1091. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/__init__.py +0 -0
  1092. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/complete_phase.py +0 -0
  1093. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_file.py +0 -0
  1094. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/gate_runner.py +0 -0
  1095. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/handoff/resolve_gate.py +0 -0
  1096. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/healthscore/models.py +0 -0
  1097. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/__init__.py +0 -0
  1098. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
  1099. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/pre_edit_check.py +0 -0
  1100. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/reflector_check.py +0 -0
  1101. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hooks/session_stop.py +0 -0
  1102. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/hotspots/models.py +0 -0
  1103. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/launch/__init__.py +0 -0
  1104. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/session.py +0 -0
  1105. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/skill.py +0 -0
  1106. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/migration/step.py +0 -0
  1107. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/preflight/finish.py +0 -0
  1108. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/models.py +0 -0
  1109. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/prime/version_sentinel.py +0 -0
  1110. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/session/__init__.py +0 -0
  1111. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/settings/__init__.py +0 -0
  1112. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/sprint/yaml_io.py +0 -0
  1113. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/size.py +0 -0
  1114. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/story/template.py +0 -0
  1115. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/swebench.py +0 -0
  1116. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/theme/__init__.py +0 -0
  1117. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/__init__.py +0 -0
  1118. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/validate/adapters/__init__.py +0 -0
  1119. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/scale.py +0 -0
  1120. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/state.py +0 -0
  1121. /package/{pennyfarthing_scripts → pennyfarthing-dist/pf}/workflow/team_lifecycle.py +0 -0
@@ -0,0 +1,129 @@
1
+ """
2
+ Cyclist PreToolUse Hook — route tool approval through WheelHub.
3
+
4
+ When Cyclist is running, sends approval requests to WheelHub's /api/hook-request
5
+ endpoint. Falls back to Claude Code's built-in permissions when Cyclist is not active.
6
+
7
+ Consolidates pretooluse_hook.py into the hooks subpackage.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import sys
13
+ from pathlib import Path
14
+
15
+ from pf.hooks import (
16
+ HookResponse,
17
+ find_project_root,
18
+ get_context_state,
19
+ is_cyclist_running,
20
+ load_settings,
21
+ output_hook_response,
22
+ read_stdin_json,
23
+ send_to_cyclist,
24
+ )
25
+
26
+
27
+ def _resolve_agent(session_id: str | None, project_root: Path | None) -> str | None:
28
+ """Resolve agent name from session file."""
29
+ if not project_root:
30
+ return None
31
+
32
+ agents_dir = project_root / ".session" / "agents"
33
+ if not agents_dir.is_dir():
34
+ return None
35
+
36
+ if session_id:
37
+ agent_file = agents_dir / session_id
38
+ if agent_file.is_file():
39
+ try:
40
+ return agent_file.read_text().strip() or None
41
+ except OSError:
42
+ pass
43
+
44
+ try:
45
+ agent_files = sorted(
46
+ (f for f in agents_dir.iterdir() if f.is_file()),
47
+ key=lambda f: f.stat().st_mtime,
48
+ reverse=True,
49
+ )
50
+ if agent_files:
51
+ return agent_files[0].read_text().strip() or None
52
+ except OSError:
53
+ pass
54
+
55
+ return None
56
+
57
+
58
+ def main() -> None:
59
+ """Main entry point for PreToolUse hook."""
60
+ try:
61
+ tool_data = read_stdin_json()
62
+ tool_name = tool_data.get("tool_name", "")
63
+ tool_id = tool_data.get("tool_use_id", "")
64
+ tool_input = tool_data.get("tool_input", {})
65
+ session_id = tool_data.get("session_id")
66
+
67
+ project_root = find_project_root()
68
+ agent_name = _resolve_agent(session_id, project_root)
69
+
70
+ if not is_cyclist_running(project_root):
71
+ sys.exit(0)
72
+
73
+ settings = load_settings(project_root)
74
+ if settings.permission_mode == "accept":
75
+ output_hook_response(HookResponse(
76
+ event_name="PreToolUse",
77
+ decision="allow",
78
+ reason="Auto-accept mode enabled",
79
+ ))
80
+ sys.exit(0)
81
+
82
+ context = get_context_state(project_root)
83
+ request_data = {
84
+ "toolName": tool_name,
85
+ "toolId": tool_id,
86
+ "input": tool_input,
87
+ "sessionId": session_id,
88
+ "context": {
89
+ "percentage": context.percentage,
90
+ "isHigh": context.is_high,
91
+ "isCritical": context.is_critical,
92
+ },
93
+ }
94
+ if agent_name:
95
+ request_data["agent"] = agent_name
96
+
97
+ response = send_to_cyclist(
98
+ endpoint="/api/hook-request",
99
+ data=request_data,
100
+ project_root=project_root,
101
+ )
102
+
103
+ if response is None:
104
+ output_hook_response(HookResponse(
105
+ event_name="PreToolUse",
106
+ decision="ask",
107
+ reason="Could not connect to WheelHub",
108
+ ))
109
+ sys.exit(0)
110
+
111
+ decision = response.get("decision", "ask")
112
+ reason = response.get("reason", "")
113
+ data = response.get("data")
114
+
115
+ output_hook_response(HookResponse(
116
+ event_name="PreToolUse",
117
+ decision=decision,
118
+ reason=reason,
119
+ updated_input=data,
120
+ ))
121
+ sys.exit(0)
122
+
123
+ except Exception as e:
124
+ print(f"[pretooluse-hook] Error: {e}", file=sys.stderr)
125
+ sys.exit(0)
126
+
127
+
128
+ if __name__ == "__main__":
129
+ main()
@@ -0,0 +1,202 @@
1
+ """
2
+ Schema validation hook (PreToolUse) — validate XML schema on Write operations.
3
+
4
+ Validates session, skill, and workflow step files to ensure they have
5
+ required tags and attributes. Blocks the Write if validation fails.
6
+
7
+ Consolidates schema_validation_hook.py into the hooks subpackage.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import re
13
+ import sys
14
+
15
+ from pf.hooks import (
16
+ HookResponse,
17
+ output_hook_response,
18
+ read_stdin_json,
19
+ )
20
+
21
+ # =============================================================================
22
+ # File Type Detection
23
+ # =============================================================================
24
+
25
+ SKILL_REQUIRED_TAGS = ["run", "output"]
26
+ STEP_REQUIRED_TAGS = ["purpose", "instructions", "output"]
27
+ STEP_META_FIELDS = ["step", "workflow", "agent", "next"]
28
+
29
+
30
+ def _is_session_file(file_path: str) -> bool:
31
+ return file_path.endswith("-session.md") and ".session/" in file_path
32
+
33
+
34
+ def _is_skill_file(file_path: str) -> bool:
35
+ return file_path.endswith("/SKILL.md") and "/skills/" in file_path
36
+
37
+
38
+ def _is_step_file(file_path: str) -> bool:
39
+ from pathlib import Path
40
+ path = Path(file_path)
41
+ return (
42
+ path.name.startswith("step-")
43
+ and path.name.endswith(".md")
44
+ and "/workflows/" in file_path
45
+ and "/steps/" in file_path
46
+ )
47
+
48
+
49
+ def _get_file_type(file_path: str) -> str | None:
50
+ if _is_session_file(file_path):
51
+ return "session"
52
+ elif _is_skill_file(file_path):
53
+ return "skill"
54
+ elif _is_step_file(file_path):
55
+ return "step"
56
+ return None
57
+
58
+
59
+ def _has_tag(content: str, tag: str) -> bool:
60
+ return f"<{tag}>" in content or f"<{tag} " in content
61
+
62
+
63
+ def _validate_session(content: str) -> list[str]:
64
+ errors = []
65
+ if "<session" not in content:
66
+ return [] # Old markdown format — warn but don't block
67
+ if not re.search(r'<session\s+story="[^"]+"', content):
68
+ errors.append("Missing story attribute on <session>")
69
+ if not re.search(r'<session[^>]+workflow="[^"]+"', content):
70
+ errors.append("Missing workflow attribute on <session>")
71
+ if not _has_tag(content, "meta"):
72
+ errors.append("Missing <meta> section")
73
+ else:
74
+ if "<jira>" not in content:
75
+ errors.append("Missing <jira> in <meta>")
76
+ if "<started>" not in content:
77
+ errors.append("Missing <started> in <meta>")
78
+ if not _has_tag(content, "status"):
79
+ errors.append("Missing <status> element")
80
+ elif 'phase="' not in content:
81
+ errors.append("Missing phase attribute on <status>")
82
+ return errors
83
+
84
+
85
+ def _validate_skill(content: str) -> list[str]:
86
+ errors = []
87
+ if not content.startswith("---\n"):
88
+ errors.append("Missing YAML frontmatter")
89
+ else:
90
+ parts = content.split("---", 2)
91
+ if len(parts) >= 2:
92
+ frontmatter = parts[1]
93
+ if "name:" not in frontmatter:
94
+ errors.append("Missing 'name' in frontmatter")
95
+ if "description:" not in frontmatter:
96
+ errors.append("Missing 'description' in frontmatter")
97
+ for tag in SKILL_REQUIRED_TAGS:
98
+ if not _has_tag(content, tag):
99
+ errors.append(f"Missing <{tag}> tag (required)")
100
+ return errors
101
+
102
+
103
+ def _validate_step(content: str) -> list[str]:
104
+ errors = []
105
+ for tag in STEP_REQUIRED_TAGS:
106
+ if not _has_tag(content, tag):
107
+ errors.append(f"Missing <{tag}> tag")
108
+ if _has_tag(content, "step-meta"):
109
+ meta_match = re.search(r"<step-meta>(.+?)</step-meta>", content, re.DOTALL)
110
+ if meta_match:
111
+ meta_content = meta_match.group(1)
112
+ for field_name in STEP_META_FIELDS:
113
+ if f"{field_name}:" not in meta_content:
114
+ errors.append(f"Missing '{field_name}' in step-meta")
115
+ return errors
116
+
117
+
118
+ def _validate_content(file_path: str, content: str) -> list[str]:
119
+ file_type = _get_file_type(file_path)
120
+ if file_type == "session":
121
+ return _validate_session(content)
122
+ elif file_type == "skill":
123
+ return _validate_skill(content)
124
+ elif file_type == "step":
125
+ return _validate_step(content)
126
+ return []
127
+
128
+
129
+ # =============================================================================
130
+ # Entry Point
131
+ # =============================================================================
132
+
133
+
134
+ def main() -> None:
135
+ """Main entry point for schema validation hook."""
136
+ try:
137
+ tool_data = read_stdin_json()
138
+ tool_name = tool_data.get("tool_name", "")
139
+ tool_input = tool_data.get("tool_input", {})
140
+
141
+ if tool_name not in ("Write", "Edit"):
142
+ output_hook_response(HookResponse(
143
+ event_name="PreToolUse",
144
+ decision="allow",
145
+ reason="Not a Write/Edit operation",
146
+ ))
147
+ sys.exit(0)
148
+
149
+ file_path = tool_input.get("file_path", "")
150
+ if not file_path:
151
+ output_hook_response(HookResponse(
152
+ event_name="PreToolUse",
153
+ decision="allow",
154
+ reason="No file path",
155
+ ))
156
+ sys.exit(0)
157
+
158
+ file_type = _get_file_type(file_path)
159
+ if not file_type:
160
+ output_hook_response(HookResponse(
161
+ event_name="PreToolUse",
162
+ decision="allow",
163
+ reason="Not a session/skill/step file",
164
+ ))
165
+ sys.exit(0)
166
+
167
+ if tool_name == "Write":
168
+ content = tool_input.get("content", "")
169
+ else:
170
+ output_hook_response(HookResponse(
171
+ event_name="PreToolUse",
172
+ decision="allow",
173
+ reason="Edit operations validated post-hoc",
174
+ ))
175
+ sys.exit(0)
176
+
177
+ errors = _validate_content(file_path, content)
178
+ if errors:
179
+ error_msg = f"Schema validation failed for {file_type} file:\n"
180
+ error_msg += "\n".join(f" - {e}" for e in errors)
181
+ error_msg += f"\n\nFile: {file_path}"
182
+ output_hook_response(HookResponse(
183
+ event_name="PreToolUse",
184
+ decision="deny",
185
+ reason=error_msg,
186
+ ))
187
+ sys.exit(0)
188
+
189
+ output_hook_response(HookResponse(
190
+ event_name="PreToolUse",
191
+ decision="allow",
192
+ reason=f"Schema validation passed for {file_type} file",
193
+ ))
194
+ sys.exit(0)
195
+
196
+ except Exception as e:
197
+ print(f"[schema-validation-hook] Error: {e}", file=sys.stderr)
198
+ sys.exit(0)
199
+
200
+
201
+ if __name__ == "__main__":
202
+ main()
@@ -0,0 +1,294 @@
1
+ """
2
+ SessionStart hook — initialize environment for Claude Code session.
3
+
4
+ Consolidates session_start_hook.py and welcome_hook.py into a single module.
5
+
6
+ Handles:
7
+ 1. Session directory setup and logging
8
+ 2. Checkpoint validation (cross-session drift detection)
9
+ 3. WheelHub auto-start (ensure BikeRack server is running)
10
+ 4. OTEL auto-configuration via CLAUDE_ENV_FILE
11
+ 5. Welcome message display (CLI ASCII art or Cyclist API)
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import os
18
+ import subprocess
19
+ import sys
20
+ from datetime import UTC, datetime
21
+ from pathlib import Path
22
+
23
+ from pf.hooks import (
24
+ is_cyclist_running,
25
+ load_settings,
26
+ send_to_cyclist,
27
+ )
28
+
29
+ # =============================================================================
30
+ # Session Setup
31
+ # =============================================================================
32
+
33
+
34
+ def _read_input() -> dict:
35
+ """Read JSON from stdin (hook protocol)."""
36
+ raw = sys.stdin.read()
37
+ try:
38
+ return json.loads(raw)
39
+ except (json.JSONDecodeError, ValueError):
40
+ return {}
41
+
42
+
43
+ def _setup_session_dir(project_dir: Path, session_id: str, source_type: str) -> None:
44
+ """Ensure .session directory exists and log session start."""
45
+ session_dir = project_dir / ".session"
46
+ session_dir.mkdir(parents=True, exist_ok=True)
47
+ (session_dir / "agents").mkdir(exist_ok=True)
48
+
49
+ timestamp = datetime.now(UTC).isoformat()
50
+ log_file = session_dir / "session-log.txt"
51
+ with open(log_file, "a") as f:
52
+ f.write(f"{timestamp} | Session {source_type}: {session_id}\n")
53
+
54
+
55
+ # =============================================================================
56
+ # Checkpoint Validation
57
+ # =============================================================================
58
+
59
+
60
+ def _validate_checkpoint(project_dir: Path) -> None:
61
+ """Validate previous session checkpoint for cross-session drift detection."""
62
+ try:
63
+ checkpoint_file = project_dir / ".session" / "checkpoints.log"
64
+ if not checkpoint_file.exists():
65
+ return
66
+
67
+ # Read the last session_state checkpoint
68
+ prev_state = ""
69
+ with open(checkpoint_file) as f:
70
+ for line in f:
71
+ if "|session_state|" in line:
72
+ prev_state = line.strip().split("|", 2)[-1] if "|" in line else ""
73
+
74
+ if not prev_state:
75
+ return
76
+
77
+ # Parse checkpoint data
78
+ fields = {}
79
+ for part in prev_state.split(";"):
80
+ if "=" in part:
81
+ k, v = part.split("=", 1)
82
+ fields[k] = v
83
+
84
+ prev_sha = fields.get("sha", "")
85
+ if not prev_sha:
86
+ return
87
+
88
+ # Get current git SHA
89
+ result = subprocess.run(
90
+ ["git", "rev-parse", "--short", "HEAD"],
91
+ capture_output=True,
92
+ text=True,
93
+ cwd=str(project_dir),
94
+ timeout=5,
95
+ )
96
+ current_sha = result.stdout.strip()
97
+ if not current_sha or current_sha == prev_sha:
98
+ return
99
+
100
+ # Log drift
101
+ timestamp = datetime.now(UTC).isoformat()
102
+ session_dir = project_dir / ".session"
103
+
104
+ warning = f"CROSS_SESSION_DRIFT: Git changed (was: {prev_sha}, now: {current_sha})"
105
+ if fields.get("story"):
106
+ warning += f" | Story: {fields['story']}"
107
+ if fields.get("agent"):
108
+ warning += f" | Agent: {fields['agent']}"
109
+
110
+ with open(session_dir / "session-log.txt", "a") as f:
111
+ f.write(f"{timestamp} | {warning}\n")
112
+
113
+ drift_entry = f"{timestamp} | prev_sha={prev_sha} | current_sha={current_sha}"
114
+ for key in ("story", "agent", "phase"):
115
+ if fields.get(key):
116
+ drift_entry += f" | {key}={fields[key]}"
117
+ with open(session_dir / "drift-log.txt", "a") as f:
118
+ f.write(drift_entry + "\n")
119
+
120
+ except Exception:
121
+ pass
122
+
123
+
124
+ # =============================================================================
125
+ # WheelHub Auto-Start
126
+ # =============================================================================
127
+
128
+
129
+ def _ensure_wheelhub(project_dir: Path) -> int | None:
130
+ """Auto-start WheelHub if not already running. Returns port or None."""
131
+ from pf.bikerack.launcher import (
132
+ is_already_running,
133
+ poll_for_port_file,
134
+ start_wheelhub,
135
+ write_pid_file,
136
+ )
137
+
138
+ # Skip if full Cyclist is running
139
+ cyclist_port_file = project_dir / ".bikerack-port"
140
+ if cyclist_port_file.exists():
141
+ try:
142
+ return int(cyclist_port_file.read_text().strip())
143
+ except (ValueError, OSError):
144
+ return None
145
+
146
+ # Check if BikeRack WheelHub is already running
147
+ running, _pid, port = is_already_running(project_dir)
148
+ if running:
149
+ return port
150
+
151
+ # Start WheelHub
152
+ try:
153
+ proc = start_wheelhub(project_dir)
154
+ write_pid_file(project_dir, proc.pid)
155
+ return poll_for_port_file(project_dir)
156
+ except Exception:
157
+ return None
158
+
159
+
160
+ # =============================================================================
161
+ # Environment File
162
+ # =============================================================================
163
+
164
+
165
+ def _write_env_file(project_dir: Path, session_id: str, otel_port: int | None) -> None:
166
+ """Write environment variables to CLAUDE_ENV_FILE."""
167
+ env_file = os.environ.get("CLAUDE_ENV_FILE")
168
+ if not env_file:
169
+ return
170
+
171
+ lines = [
172
+ "# Pennyfarthing core environment",
173
+ f'export PROJECT_ROOT="{project_dir}"',
174
+ f'export SESSION_ID="{session_id}"',
175
+ ]
176
+
177
+ if otel_port is not None:
178
+ from pf.bikerack.launcher import build_otel_env
179
+
180
+ lines.append("# OTEL auto-configuration for Cyclist/WheelHub")
181
+ for key, value in build_otel_env(otel_port).items():
182
+ lines.append(f'export {key}="{value}"')
183
+
184
+ with open(env_file, "a") as f:
185
+ f.write("\n".join(lines) + "\n")
186
+
187
+
188
+ # =============================================================================
189
+ # Welcome Message
190
+ # =============================================================================
191
+
192
+
193
+ def _get_welcome_lock_path(project_root: Path) -> Path:
194
+ """Get path to welcome shown lock file."""
195
+ session_id = os.environ.get("CLAUDE_SESSION_ID", str(os.getpid()))
196
+ session_dir = project_root / ".session"
197
+ session_dir.mkdir(parents=True, exist_ok=True)
198
+ return session_dir / f".welcome-shown-{session_id}"
199
+
200
+
201
+ def _get_project_name(project_root: Path) -> str:
202
+ """Get project name from package.json or directory name."""
203
+ package_json = project_root / "package.json"
204
+ if package_json.exists():
205
+ try:
206
+ with open(package_json) as f:
207
+ data = json.load(f)
208
+ name = data.get("name")
209
+ if name:
210
+ return name
211
+ except (json.JSONDecodeError, OSError):
212
+ pass
213
+ return project_root.name
214
+
215
+
216
+ def _display_cli_welcome(project_name: str, theme: str | None) -> None:
217
+ """Display ASCII art welcome for CLI mode."""
218
+ print("""
219
+ ___
220
+ / \\
221
+ | | Welcome to
222
+ | | \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
223
+ \\___/ \u2551 \u2554\u2550\u2557\u2554\u2550\u2557\u2554\u2557\u2554\u2554\u2557\u2554\u2566\u2550\u2557\u2554\u2550\u2557\u2554\u2550\u2557\u2554\u2550\u2557\u2566\u2554\u2550\u2557 \u2551
224
+ \u2551 \u2551 \u2560\u2550\u2569\u2551\u2563 \u2551\u2551\u2551\u2551\u2551\u2551 \u2560\u2563 \u2560\u2550\u2563\u2560\u2566\u2569 \u2551 \u2560\u2550\u2563 \u2551
225
+ \u2551 \u2551 \u2569 \u255a\u2550\u255d\u255d\u255a\u255d\u255d\u255a\u255d\u2569 \u2569 \u2569\u2569\u255a\u2550 \u2569 \u2569 \u2569 \u2551
226
+ \u2554\u2550\u2569\u2550\u2557 \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d
227
+ / \\
228
+ \u2502 O \u2502 Agent-powered development with style
229
+ \\ /
230
+ \u255a\u2550\u2550\u2550\u255d
231
+ """)
232
+
233
+ if project_name:
234
+ print(f" Project: {project_name}")
235
+ if theme:
236
+ print(f" Theme: {theme}")
237
+ print()
238
+
239
+
240
+ def _show_welcome(project_dir: Path) -> None:
241
+ """Show welcome message (once per session)."""
242
+ lock_path = _get_welcome_lock_path(project_dir)
243
+ if lock_path.exists():
244
+ return
245
+
246
+ lock_path.touch()
247
+
248
+ project_name = _get_project_name(project_dir)
249
+ settings = load_settings(project_dir)
250
+ theme = settings.theme
251
+
252
+ if is_cyclist_running(project_dir):
253
+ try:
254
+ send_to_cyclist(
255
+ endpoint="/api/welcome",
256
+ data={"project": project_name or "", "theme": theme or ""},
257
+ project_root=project_dir,
258
+ timeout=5,
259
+ )
260
+ except Exception:
261
+ pass
262
+ else:
263
+ _display_cli_welcome(project_name, theme)
264
+
265
+
266
+ # =============================================================================
267
+ # Entry Point
268
+ # =============================================================================
269
+
270
+
271
+ def main() -> None:
272
+ """Entry point for SessionStart hook."""
273
+ try:
274
+ input_data = _read_input()
275
+ session_id = input_data.get("session_id", "unknown")
276
+ source_type = input_data.get("source", "unknown")
277
+
278
+ project_dir = Path(os.environ.get("CLAUDE_PROJECT_DIR", os.getcwd()))
279
+
280
+ _setup_session_dir(project_dir, session_id, source_type)
281
+ _validate_checkpoint(project_dir)
282
+
283
+ otel_port = _ensure_wheelhub(project_dir)
284
+ _write_env_file(project_dir, session_id, otel_port)
285
+ _show_welcome(project_dir)
286
+
287
+ except Exception:
288
+ pass
289
+
290
+ sys.exit(0)
291
+
292
+
293
+ if __name__ == "__main__":
294
+ main()