@pennyfarthing/core 11.2.2 → 11.3.1

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 (448) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
  3. package/packages/core/dist/cli/commands/doctor-legacy.test.js +2 -2
  4. package/packages/core/dist/cli/commands/doctor-legacy.test.js.map +1 -1
  5. package/packages/core/dist/cli/commands/doctor.d.ts +55 -0
  6. package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
  7. package/packages/core/dist/cli/commands/doctor.js +204 -23
  8. package/packages/core/dist/cli/commands/doctor.js.map +1 -1
  9. package/packages/core/dist/cli/commands/init.d.ts +12 -0
  10. package/packages/core/dist/cli/commands/init.d.ts.map +1 -1
  11. package/packages/core/dist/cli/commands/init.js +45 -0
  12. package/packages/core/dist/cli/commands/init.js.map +1 -1
  13. package/packages/core/dist/cli/commands/pyproject-install.test.d.ts +19 -0
  14. package/packages/core/dist/cli/commands/pyproject-install.test.d.ts.map +1 -0
  15. package/packages/core/dist/cli/commands/pyproject-install.test.js +261 -0
  16. package/packages/core/dist/cli/commands/pyproject-install.test.js.map +1 -0
  17. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
  18. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
  19. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
  20. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
  21. package/packages/core/dist/cli/commands/update-consolidation.test.js +14 -6
  22. package/packages/core/dist/cli/commands/update-consolidation.test.js.map +1 -1
  23. package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
  24. package/packages/core/dist/cli/commands/update.js +31 -2
  25. package/packages/core/dist/cli/commands/update.js.map +1 -1
  26. package/packages/core/dist/cli/cyclist-migration.test.d.ts +16 -0
  27. package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +1 -0
  28. package/packages/core/dist/cli/cyclist-migration.test.js +229 -0
  29. package/packages/core/dist/cli/cyclist-migration.test.js.map +1 -0
  30. package/packages/core/dist/cli/index.js +2 -0
  31. package/packages/core/dist/cli/index.js.map +1 -1
  32. package/packages/core/dist/cli/utils/python.d.ts.map +1 -1
  33. package/packages/core/dist/cli/utils/python.js +11 -0
  34. package/packages/core/dist/cli/utils/python.js.map +1 -1
  35. package/packages/core/dist/cli/utils/settings-hook-migration.test.d.ts +17 -0
  36. package/packages/core/dist/cli/utils/settings-hook-migration.test.d.ts.map +1 -0
  37. package/packages/core/dist/cli/utils/settings-hook-migration.test.js +382 -0
  38. package/packages/core/dist/cli/utils/settings-hook-migration.test.js.map +1 -0
  39. package/packages/core/dist/cli/utils/settings.d.ts.map +1 -1
  40. package/packages/core/dist/cli/utils/settings.js +15 -2
  41. package/packages/core/dist/cli/utils/settings.js.map +1 -1
  42. package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
  43. package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
  44. package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
  45. package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
  46. package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
  47. package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
  48. package/packages/core/dist/scripts/benchmark-integration.js +691 -0
  49. package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
  50. package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
  51. package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
  52. package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
  53. package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
  54. package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
  55. package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
  56. package/packages/core/dist/server/settings.d.ts.map +1 -1
  57. package/packages/core/dist/server/settings.js +5 -0
  58. package/packages/core/dist/server/settings.js.map +1 -1
  59. package/packages/core/dist/workflow/tandem-workflow-templates.test.js +7 -5
  60. package/packages/core/dist/workflow/tandem-workflow-templates.test.js.map +1 -1
  61. package/packages/core/dist/workflow/workflow-migration.test.js +6 -5
  62. package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
  63. package/pennyfarthing-dist/agents/dev.md +4 -2
  64. package/pennyfarthing-dist/agents/devops.md +2 -10
  65. package/pennyfarthing-dist/agents/reviewer-preflight.md +4 -5
  66. package/pennyfarthing-dist/agents/sm.md +4 -17
  67. package/pennyfarthing-dist/commands/pf-health-check.md +30 -11
  68. package/pennyfarthing-dist/gates/{confidence-sm.md → confidence.md} +16 -17
  69. package/pennyfarthing-dist/gates/dev-exit.md +75 -0
  70. package/pennyfarthing-dist/gates/merge-ready.md +49 -0
  71. package/pennyfarthing-dist/gates/release-ready.md +95 -0
  72. package/pennyfarthing-dist/gates/reviewer-preflight-check.md +90 -0
  73. package/pennyfarthing-dist/gates/sm-setup-exit.md +82 -0
  74. package/pennyfarthing-dist/guides/agent-behavior.md +88 -30
  75. package/pennyfarthing-dist/guides/gates.md +7 -2
  76. package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
  77. package/pennyfarthing-dist/scripts/lib/find-root.sh +5 -0
  78. package/pennyfarthing-dist/scripts/lib/run-pf.sh +4 -0
  79. package/pennyfarthing-dist/skills/pf-settings/skill.md +42 -0
  80. package/pennyfarthing-dist/skills/skill-registry.yaml +15 -0
  81. package/pennyfarthing-dist/templates/pyproject.toml +27 -0
  82. package/pennyfarthing-dist/workflows/bdd-tandem.yaml +7 -3
  83. package/pennyfarthing-dist/workflows/bdd.yaml +7 -3
  84. package/pennyfarthing-dist/workflows/installation-check/steps/step-01-foundation.md +77 -0
  85. package/pennyfarthing-dist/workflows/installation-check/steps/step-02-commands.md +82 -0
  86. package/pennyfarthing-dist/workflows/installation-check/steps/step-03-hooks.md +121 -0
  87. package/pennyfarthing-dist/workflows/installation-check/steps/step-04-scripts.md +83 -0
  88. package/pennyfarthing-dist/workflows/installation-check/steps/step-05-layout.md +81 -0
  89. package/pennyfarthing-dist/workflows/installation-check/steps/step-06-legacy.md +94 -0
  90. package/pennyfarthing-dist/workflows/installation-check/steps/step-07-tools.md +80 -0
  91. package/pennyfarthing-dist/workflows/installation-check/steps/step-08-summary.md +99 -0
  92. package/pennyfarthing-dist/workflows/installation-check/workflow.yaml +47 -0
  93. package/pennyfarthing-dist/workflows/tdd-tandem.yaml +7 -3
  94. package/pennyfarthing-dist/workflows/tdd.yaml +7 -3
  95. package/pennyfarthing-dist/workflows/trivial.yaml +7 -3
  96. package/pennyfarthing_scripts/__pycache__/__init__.cpython-311.pyc +0 -0
  97. package/pennyfarthing_scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  98. package/pennyfarthing_scripts/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
  99. package/pennyfarthing_scripts/__pycache__/cli.cpython-311.pyc +0 -0
  100. package/pennyfarthing_scripts/__pycache__/cli.cpython-314.pyc +0 -0
  101. package/pennyfarthing_scripts/__pycache__/config.cpython-314.pyc +0 -0
  102. package/pennyfarthing_scripts/__pycache__/context.cpython-311.pyc +0 -0
  103. package/pennyfarthing_scripts/__pycache__/context.cpython-314.pyc +0 -0
  104. package/pennyfarthing_scripts/__pycache__/hooks.cpython-314.pyc +0 -0
  105. package/pennyfarthing_scripts/__pycache__/jira.cpython-314.pyc +0 -0
  106. package/pennyfarthing_scripts/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
  107. package/pennyfarthing_scripts/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
  108. package/pennyfarthing_scripts/__pycache__/jira_sync.cpython-314.pyc +0 -0
  109. package/pennyfarthing_scripts/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
  110. package/pennyfarthing_scripts/__pycache__/output.cpython-314.pyc +0 -0
  111. package/pennyfarthing_scripts/__pycache__/patch_mode.cpython-314.pyc +0 -0
  112. package/pennyfarthing_scripts/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
  113. package/pennyfarthing_scripts/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
  114. package/pennyfarthing_scripts/__pycache__/session_start_hook.cpython-314.pyc +0 -0
  115. package/pennyfarthing_scripts/__pycache__/sprint.cpython-314.pyc +0 -0
  116. package/pennyfarthing_scripts/__pycache__/workflow.cpython-311.pyc +0 -0
  117. package/pennyfarthing_scripts/__pycache__/workflow.cpython-314.pyc +0 -0
  118. package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-311.pyc +0 -0
  119. package/pennyfarthing_scripts/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  120. package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-311.pyc +0 -0
  121. package/pennyfarthing_scripts/bc/__pycache__/cli.cpython-314.pyc +0 -0
  122. package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-311.pyc +0 -0
  123. package/pennyfarthing_scripts/bc/__pycache__/focus.cpython-314.pyc +0 -0
  124. package/pennyfarthing_scripts/bc/__pycache__/split.cpython-314.pyc +0 -0
  125. package/pennyfarthing_scripts/bc/cli.py +21 -0
  126. package/pennyfarthing_scripts/bc/focus.py +1 -0
  127. package/pennyfarthing_scripts/bc/split.py +52 -0
  128. package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
  129. package/pennyfarthing_scripts/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  130. package/pennyfarthing_scripts/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
  131. package/pennyfarthing_scripts/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  132. package/pennyfarthing_scripts/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  133. package/pennyfarthing_scripts/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  134. package/pennyfarthing_scripts/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  135. package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
  136. package/pennyfarthing_scripts/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  137. package/pennyfarthing_scripts/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  138. package/pennyfarthing_scripts/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  139. package/pennyfarthing_scripts/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  140. package/pennyfarthing_scripts/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  141. package/pennyfarthing_scripts/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  142. package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
  143. package/pennyfarthing_scripts/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  144. package/pennyfarthing_scripts/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  145. package/pennyfarthing_scripts/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  146. package/pennyfarthing_scripts/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  147. package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  148. package/pennyfarthing_scripts/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  149. package/pennyfarthing_scripts/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  150. package/pennyfarthing_scripts/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  151. package/pennyfarthing_scripts/bikerack/context_meter_footer.py +53 -3
  152. package/pennyfarthing_scripts/bikerack/tui.py +202 -8
  153. package/pennyfarthing_scripts/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
  154. package/pennyfarthing_scripts/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
  155. package/pennyfarthing_scripts/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
  156. package/pennyfarthing_scripts/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
  157. package/pennyfarthing_scripts/cli.py +5 -0
  158. package/pennyfarthing_scripts/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  159. package/pennyfarthing_scripts/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
  160. package/pennyfarthing_scripts/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  161. package/pennyfarthing_scripts/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
  162. package/pennyfarthing_scripts/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
  163. package/pennyfarthing_scripts/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  164. package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-311.pyc +0 -0
  165. package/pennyfarthing_scripts/common/__pycache__/__init__.cpython-314.pyc +0 -0
  166. package/pennyfarthing_scripts/common/__pycache__/config.cpython-311.pyc +0 -0
  167. package/pennyfarthing_scripts/common/__pycache__/config.cpython-314.pyc +0 -0
  168. package/pennyfarthing_scripts/common/__pycache__/output.cpython-311.pyc +0 -0
  169. package/pennyfarthing_scripts/common/__pycache__/output.cpython-314.pyc +0 -0
  170. package/pennyfarthing_scripts/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  171. package/pennyfarthing_scripts/common/__pycache__/themes.cpython-314.pyc +0 -0
  172. package/pennyfarthing_scripts/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  173. package/pennyfarthing_scripts/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
  174. package/pennyfarthing_scripts/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  175. package/pennyfarthing_scripts/complexity/__pycache__/cli.cpython-314.pyc +0 -0
  176. package/pennyfarthing_scripts/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
  177. package/pennyfarthing_scripts/complexity/__pycache__/models.cpython-314.pyc +0 -0
  178. package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
  179. package/pennyfarthing_scripts/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  180. package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-311.pyc +0 -0
  181. package/pennyfarthing_scripts/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  182. package/pennyfarthing_scripts/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
  183. package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
  184. package/pennyfarthing_scripts/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  185. package/pennyfarthing_scripts/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
  186. package/pennyfarthing_scripts/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  187. package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
  188. package/pennyfarthing_scripts/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  189. package/pennyfarthing_scripts/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
  190. package/pennyfarthing_scripts/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  191. package/pennyfarthing_scripts/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  192. package/pennyfarthing_scripts/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
  193. package/pennyfarthing_scripts/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  194. package/pennyfarthing_scripts/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
  195. package/pennyfarthing_scripts/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
  196. package/pennyfarthing_scripts/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  197. package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-311.pyc +0 -0
  198. package/pennyfarthing_scripts/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  199. package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-311.pyc +0 -0
  200. package/pennyfarthing_scripts/epic/__pycache__/cli.cpython-314.pyc +0 -0
  201. package/pennyfarthing_scripts/git/__pycache__/__init__.cpython-314.pyc +0 -0
  202. package/pennyfarthing_scripts/git/__pycache__/create_branches.cpython-314.pyc +0 -0
  203. package/pennyfarthing_scripts/git/__pycache__/status_all.cpython-314.pyc +0 -0
  204. package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
  205. package/pennyfarthing_scripts/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  206. package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-311.pyc +0 -0
  207. package/pennyfarthing_scripts/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  208. package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
  209. package/pennyfarthing_scripts/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  210. package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-311.pyc +0 -0
  211. package/pennyfarthing_scripts/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  212. package/pennyfarthing_scripts/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  213. package/pennyfarthing_scripts/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
  214. package/pennyfarthing_scripts/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
  215. package/pennyfarthing_scripts/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  216. package/pennyfarthing_scripts/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  217. package/pennyfarthing_scripts/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  218. package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
  219. package/pennyfarthing_scripts/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  220. package/pennyfarthing_scripts/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  221. package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
  222. package/pennyfarthing_scripts/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  223. package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
  224. package/pennyfarthing_scripts/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  225. package/pennyfarthing_scripts/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  226. package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-311.pyc +0 -0
  227. package/pennyfarthing_scripts/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  228. package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  229. package/pennyfarthing_scripts/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  230. package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
  231. package/pennyfarthing_scripts/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  232. package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-311.pyc +0 -0
  233. package/pennyfarthing_scripts/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  234. package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
  235. package/pennyfarthing_scripts/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  236. package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
  237. package/pennyfarthing_scripts/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  238. package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
  239. package/pennyfarthing_scripts/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  240. package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
  241. package/pennyfarthing_scripts/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  242. package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
  243. package/pennyfarthing_scripts/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  244. package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
  245. package/pennyfarthing_scripts/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  246. package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
  247. package/pennyfarthing_scripts/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  248. package/pennyfarthing_scripts/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  249. package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
  250. package/pennyfarthing_scripts/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  251. package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
  252. package/pennyfarthing_scripts/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  253. package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
  254. package/pennyfarthing_scripts/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  255. package/pennyfarthing_scripts/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
  256. package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
  257. package/pennyfarthing_scripts/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  258. package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
  259. package/pennyfarthing_scripts/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  260. package/pennyfarthing_scripts/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
  261. package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-311.pyc +0 -0
  262. package/pennyfarthing_scripts/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  263. package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-311.pyc +0 -0
  264. package/pennyfarthing_scripts/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  265. package/pennyfarthing_scripts/jira/__pycache__/__main__.cpython-314.pyc +0 -0
  266. package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
  267. package/pennyfarthing_scripts/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  268. package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-311.pyc +0 -0
  269. package/pennyfarthing_scripts/jira/__pycache__/claim.cpython-314.pyc +0 -0
  270. package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-311.pyc +0 -0
  271. package/pennyfarthing_scripts/jira/__pycache__/cli.cpython-314.pyc +0 -0
  272. package/pennyfarthing_scripts/jira/__pycache__/client.cpython-311.pyc +0 -0
  273. package/pennyfarthing_scripts/jira/__pycache__/client.cpython-314.pyc +0 -0
  274. package/pennyfarthing_scripts/jira/__pycache__/compat.cpython-314.pyc +0 -0
  275. package/pennyfarthing_scripts/jira/__pycache__/create.cpython-311.pyc +0 -0
  276. package/pennyfarthing_scripts/jira/__pycache__/create.cpython-314.pyc +0 -0
  277. package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-311.pyc +0 -0
  278. package/pennyfarthing_scripts/jira/__pycache__/epic.cpython-314.pyc +0 -0
  279. package/pennyfarthing_scripts/jira/__pycache__/mappings.cpython-314.pyc +0 -0
  280. package/pennyfarthing_scripts/jira/__pycache__/models.cpython-314.pyc +0 -0
  281. package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-311.pyc +0 -0
  282. package/pennyfarthing_scripts/jira/__pycache__/operations.cpython-314.pyc +0 -0
  283. package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
  284. package/pennyfarthing_scripts/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  285. package/pennyfarthing_scripts/jira/__pycache__/story.cpython-311.pyc +0 -0
  286. package/pennyfarthing_scripts/jira/__pycache__/story.cpython-314.pyc +0 -0
  287. package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-311.pyc +0 -0
  288. package/pennyfarthing_scripts/jira/__pycache__/sync.cpython-314.pyc +0 -0
  289. package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-311.pyc +0 -0
  290. package/pennyfarthing_scripts/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  291. package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-311.pyc +0 -0
  292. package/pennyfarthing_scripts/launch/__pycache__/cli.cpython-314.pyc +0 -0
  293. package/pennyfarthing_scripts/migration/__pycache__/__init__.cpython-314.pyc +0 -0
  294. package/pennyfarthing_scripts/migration/__pycache__/__main__.cpython-314.pyc +0 -0
  295. package/pennyfarthing_scripts/migration/__pycache__/cli.cpython-314.pyc +0 -0
  296. package/pennyfarthing_scripts/migration/__pycache__/session.cpython-314.pyc +0 -0
  297. package/pennyfarthing_scripts/migration/__pycache__/skill.cpython-314.pyc +0 -0
  298. package/pennyfarthing_scripts/migration/__pycache__/step.cpython-314.pyc +0 -0
  299. package/pennyfarthing_scripts/migration/__pycache__/validate.cpython-314.pyc +0 -0
  300. package/pennyfarthing_scripts/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
  301. package/pennyfarthing_scripts/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
  302. package/pennyfarthing_scripts/preflight/__pycache__/cli.cpython-314.pyc +0 -0
  303. package/pennyfarthing_scripts/preflight/__pycache__/finish.cpython-314.pyc +0 -0
  304. package/pennyfarthing_scripts/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  305. package/pennyfarthing_scripts/prime/__pycache__/__main__.cpython-314.pyc +0 -0
  306. package/pennyfarthing_scripts/prime/__pycache__/cli.cpython-314.pyc +0 -0
  307. package/pennyfarthing_scripts/prime/__pycache__/loader.cpython-314.pyc +0 -0
  308. package/pennyfarthing_scripts/prime/__pycache__/models.cpython-314.pyc +0 -0
  309. package/pennyfarthing_scripts/prime/__pycache__/persona.cpython-314.pyc +0 -0
  310. package/pennyfarthing_scripts/prime/__pycache__/session.cpython-314.pyc +0 -0
  311. package/pennyfarthing_scripts/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  312. package/pennyfarthing_scripts/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
  313. package/pennyfarthing_scripts/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  314. package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-311.pyc +0 -0
  315. package/pennyfarthing_scripts/session/__pycache__/__init__.cpython-314.pyc +0 -0
  316. package/pennyfarthing_scripts/session/__pycache__/cli.cpython-311.pyc +0 -0
  317. package/pennyfarthing_scripts/session/__pycache__/cli.cpython-314.pyc +0 -0
  318. package/pennyfarthing_scripts/settings/__init__.py +0 -0
  319. package/pennyfarthing_scripts/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  320. package/pennyfarthing_scripts/settings/__pycache__/cli.cpython-314.pyc +0 -0
  321. package/pennyfarthing_scripts/settings/__pycache__/settings.cpython-314.pyc +0 -0
  322. package/pennyfarthing_scripts/settings/cli.py +55 -0
  323. package/pennyfarthing_scripts/settings/settings.py +98 -0
  324. package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
  325. package/pennyfarthing_scripts/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  326. package/pennyfarthing_scripts/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
  327. package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-311.pyc +0 -0
  328. package/pennyfarthing_scripts/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  329. package/pennyfarthing_scripts/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  330. package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-311.pyc +0 -0
  331. package/pennyfarthing_scripts/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  332. package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
  333. package/pennyfarthing_scripts/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  334. package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
  335. package/pennyfarthing_scripts/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  336. package/pennyfarthing_scripts/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
  337. package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-311.pyc +0 -0
  338. package/pennyfarthing_scripts/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  339. package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-311.pyc +0 -0
  340. package/pennyfarthing_scripts/sprint/__pycache__/status.cpython-314.pyc +0 -0
  341. package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
  342. package/pennyfarthing_scripts/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  343. package/pennyfarthing_scripts/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  344. package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
  345. package/pennyfarthing_scripts/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  346. package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
  347. package/pennyfarthing_scripts/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  348. package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-311.pyc +0 -0
  349. package/pennyfarthing_scripts/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  350. package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-311.pyc +0 -0
  351. package/pennyfarthing_scripts/sprint/__pycache__/work.cpython-314.pyc +0 -0
  352. package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
  353. package/pennyfarthing_scripts/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  354. package/pennyfarthing_scripts/story/__pycache__/__init__.cpython-314.pyc +0 -0
  355. package/pennyfarthing_scripts/story/__pycache__/__main__.cpython-314.pyc +0 -0
  356. package/pennyfarthing_scripts/story/__pycache__/cli.cpython-314.pyc +0 -0
  357. package/pennyfarthing_scripts/story/__pycache__/create.cpython-314.pyc +0 -0
  358. package/pennyfarthing_scripts/story/__pycache__/size.cpython-314.pyc +0 -0
  359. package/pennyfarthing_scripts/story/__pycache__/template.cpython-314.pyc +0 -0
  360. package/pennyfarthing_scripts/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  361. package/pennyfarthing_scripts/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  362. package/pennyfarthing_scripts/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
  363. package/pennyfarthing_scripts/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
  364. package/pennyfarthing_scripts/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
  365. package/pennyfarthing_scripts/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
  366. package/pennyfarthing_scripts/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
  367. package/pennyfarthing_scripts/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
  368. package/pennyfarthing_scripts/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
  369. package/pennyfarthing_scripts/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
  370. package/pennyfarthing_scripts/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
  371. package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
  372. package/pennyfarthing_scripts/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
  373. package/pennyfarthing_scripts/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
  374. package/pennyfarthing_scripts/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
  375. package/pennyfarthing_scripts/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
  376. package/pennyfarthing_scripts/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  377. package/pennyfarthing_scripts/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
  378. package/pennyfarthing_scripts/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
  379. package/pennyfarthing_scripts/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
  380. package/pennyfarthing_scripts/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
  381. package/pennyfarthing_scripts/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
  382. package/pennyfarthing_scripts/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
  383. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
  384. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
  385. package/pennyfarthing_scripts/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  386. package/pennyfarthing_scripts/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
  387. package/pennyfarthing_scripts/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
  388. package/pennyfarthing_scripts/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
  389. package/pennyfarthing_scripts/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
  390. package/pennyfarthing_scripts/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
  391. package/pennyfarthing_scripts/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
  392. package/pennyfarthing_scripts/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
  393. package/pennyfarthing_scripts/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
  394. package/pennyfarthing_scripts/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
  395. package/pennyfarthing_scripts/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
  396. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
  397. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  398. package/pennyfarthing_scripts/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
  399. package/pennyfarthing_scripts/tests/test_confidence_sm_gate.py +17 -16
  400. package/pennyfarthing_scripts/tests/test_resolve_gate_file_field.py +45 -47
  401. package/pennyfarthing_scripts/tests/test_workflow_list_team.py +0 -4
  402. package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-311.pyc +0 -0
  403. package/pennyfarthing_scripts/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  404. package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-311.pyc +0 -0
  405. package/pennyfarthing_scripts/theme/__pycache__/cli.cpython-314.pyc +0 -0
  406. package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-311.pyc +0 -0
  407. package/pennyfarthing_scripts/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  408. package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-311.pyc +0 -0
  409. package/pennyfarthing_scripts/validate/__pycache__/cli.cpython-314.pyc +0 -0
  410. package/pennyfarthing_scripts/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
  411. package/pennyfarthing_scripts/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
  412. package/pennyfarthing_scripts/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
  413. package/pennyfarthing_scripts/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
  414. package/pennyfarthing_scripts/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
  415. package/pennyfarthing_scripts/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
  416. package/pennyfarthing_scripts/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
  417. package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
  418. package/pennyfarthing_scripts/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  419. package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-311.pyc +0 -0
  420. package/pennyfarthing_scripts/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  421. package/pennyfarthing_scripts/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  422. package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-311.pyc +0 -0
  423. package/pennyfarthing_scripts/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  424. package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-311.pyc +0 -0
  425. package/pennyfarthing_scripts/workflow/__pycache__/state.cpython-314.pyc +0 -0
  426. package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
  427. package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
  428. package/packages/core/dist/workflow/team-lifecycle.js +0 -217
  429. package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
  430. package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
  431. package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
  432. package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
  433. package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
  434. package/pennyfarthing_scripts/bikerack/__pycache__/portrait.cpython-314.pyc +0 -0
  435. package/pennyfarthing_scripts/gate/__pycache__/__init__.cpython-314.pyc +0 -0
  436. package/pennyfarthing_scripts/gate/__pycache__/cli.cpython-314.pyc +0 -0
  437. package/pennyfarthing_scripts/gate/__pycache__/validate.cpython-314.pyc +0 -0
  438. package/pennyfarthing_scripts/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
  439. package/pennyfarthing_scripts/git/__pycache__/repos.cpython-314.pyc +0 -0
  440. package/pennyfarthing_scripts/git/__pycache__/worktree.cpython-314.pyc +0 -0
  441. package/pennyfarthing_scripts/prime/__pycache__/heatmap.cpython-314.pyc +0 -0
  442. package/pennyfarthing_scripts/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
  443. package/pennyfarthing_scripts/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
  444. package/pennyfarthing_scripts/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
  445. package/pennyfarthing_scripts/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
  446. package/pennyfarthing_scripts/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
  447. package/pennyfarthing_scripts/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
  448. package/pennyfarthing_scripts/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
@@ -0,0 +1,261 @@
1
+ /**
2
+ * Tests for Story 117-1: Ship pyproject.toml in npm package for consumer Python hooks
3
+ *
4
+ * The npm package bundles pennyfarthing_scripts/ Python source but no pyproject.toml.
5
+ * All hooks delegate to `uv run --project` which requires pyproject.toml.
6
+ * Consumer projects must manually create one. This story ships a template
7
+ * pyproject.toml and auto-generates it during init.
8
+ *
9
+ * Acceptance Criteria:
10
+ * AC1: pyproject.toml template included in npm package (pennyfarthing-dist/)
11
+ * AC2: Init generates pyproject.toml in consumer's .pennyfarthing/ directory
12
+ * AC3: run-pf.sh resolves .pennyfarthing/pyproject.toml for consumer projects
13
+ * AC4: Existing manual pyproject.toml files are not overwritten
14
+ * AC5: Tests verify pyproject.toml generation and hook execution
15
+ *
16
+ * Run with: cd packages/core && npm run build && npm test
17
+ */
18
+ import { describe, it, beforeEach, afterEach } from 'node:test';
19
+ import assert from 'node:assert';
20
+ import { existsSync, mkdirSync, rmSync, readFileSync, writeFileSync, symlinkSync, } from 'fs';
21
+ import { join, resolve, dirname } from 'path';
22
+ import { tmpdir } from 'os';
23
+ import { execSync, spawnSync } from 'child_process';
24
+ import { fileURLToPath } from 'url';
25
+ const __filename = fileURLToPath(import.meta.url);
26
+ const __dirname = dirname(__filename);
27
+ // Path to the CLI binary (compiled JS)
28
+ const CLI_BIN = resolve(__dirname, '../../../bin/pennyfarthing.js');
29
+ // Path to the real pennyfarthing-dist (for creating fake node_modules)
30
+ const REAL_PENNYFARTHING_DIST = resolve(__dirname, '../../../../../pennyfarthing-dist');
31
+ // Path to the repo root (pennyfarthing/)
32
+ const REPO_ROOT = resolve(__dirname, '../../../../..');
33
+ // ─── Helpers ───────────────────────────────────────────────────────
34
+ function createTestDir() {
35
+ const dir = join(tmpdir(), `pf-pyproject-${Date.now()}-${Math.random().toString(36).slice(2)}`);
36
+ mkdirSync(dir, { recursive: true });
37
+ return dir;
38
+ }
39
+ function setupNodeModules(testDir) {
40
+ const targetDir = join(testDir, 'node_modules/@pennyfarthing/core');
41
+ mkdirSync(targetDir, { recursive: true });
42
+ symlinkSync(REAL_PENNYFARTHING_DIST, join(targetDir, 'pennyfarthing-dist'));
43
+ }
44
+ function initGitRepo(testDir) {
45
+ execSync('git init', { cwd: testDir, stdio: 'pipe' });
46
+ writeFileSync(join(testDir, '.gitkeep'), '');
47
+ execSync('git add .gitkeep && git commit --no-gpg-sign -m "init"', {
48
+ cwd: testDir,
49
+ stdio: 'pipe',
50
+ env: {
51
+ ...process.env,
52
+ GIT_AUTHOR_NAME: 'Test',
53
+ GIT_AUTHOR_EMAIL: 'test@test.com',
54
+ GIT_COMMITTER_NAME: 'Test',
55
+ GIT_COMMITTER_EMAIL: 'test@test.com',
56
+ },
57
+ });
58
+ }
59
+ function runCLI(testDir, args) {
60
+ const result = spawnSync('node', [CLI_BIN, ...args], {
61
+ cwd: testDir,
62
+ stdio: 'pipe',
63
+ timeout: 30000,
64
+ env: {
65
+ ...process.env,
66
+ NODE_PATH: '',
67
+ FORCE_COLOR: '0',
68
+ NO_COLOR: '1',
69
+ },
70
+ });
71
+ return {
72
+ stdout: result.stdout?.toString() || '',
73
+ stderr: result.stderr?.toString() || '',
74
+ status: result.status,
75
+ };
76
+ }
77
+ // ─── Test Suites ──────────────────────────────────────────────────
78
+ describe('117-1: Ship pyproject.toml in npm package', () => {
79
+ let testDir;
80
+ beforeEach(() => {
81
+ testDir = createTestDir();
82
+ setupNodeModules(testDir);
83
+ initGitRepo(testDir);
84
+ });
85
+ afterEach(() => {
86
+ if (existsSync(testDir)) {
87
+ rmSync(testDir, { recursive: true, force: true });
88
+ }
89
+ });
90
+ // ─── AC1: Template included in pennyfarthing-dist ───────────────
91
+ describe('AC1: pyproject.toml template included in npm package', () => {
92
+ it('should have a pyproject.toml template in pennyfarthing-dist/templates/', () => {
93
+ const templatePath = join(REAL_PENNYFARTHING_DIST, 'templates/pyproject.toml');
94
+ assert.ok(existsSync(templatePath), `Template pyproject.toml should exist at pennyfarthing-dist/templates/pyproject.toml`);
95
+ });
96
+ it('template should declare pennyfarthing-scripts package', () => {
97
+ const templatePath = join(REAL_PENNYFARTHING_DIST, 'templates/pyproject.toml');
98
+ const content = readFileSync(templatePath, 'utf8');
99
+ assert.ok(content.includes('pennyfarthing-scripts'), 'Template should declare pennyfarthing-scripts as the package name');
100
+ });
101
+ it('template should have required Python dependencies', () => {
102
+ const templatePath = join(REAL_PENNYFARTHING_DIST, 'templates/pyproject.toml');
103
+ const content = readFileSync(templatePath, 'utf8');
104
+ const requiredDeps = ['pyyaml', 'click', 'httpx', 'ruamel.yaml'];
105
+ for (const dep of requiredDeps) {
106
+ assert.ok(content.toLowerCase().includes(dep.toLowerCase()), `Template should include dependency: ${dep}`);
107
+ }
108
+ });
109
+ it('template should declare pf CLI entry point', () => {
110
+ const templatePath = join(REAL_PENNYFARTHING_DIST, 'templates/pyproject.toml');
111
+ const content = readFileSync(templatePath, 'utf8');
112
+ assert.ok(content.includes('[project.scripts]'), 'Template should have [project.scripts] section');
113
+ assert.ok(content.includes('pennyfarthing_scripts.cli:main'), 'Template should declare pf entry point');
114
+ });
115
+ it('template should be listed in package.json files array', () => {
116
+ const pkgJsonPath = join(REPO_ROOT, 'package.json');
117
+ const pkgJson = JSON.parse(readFileSync(pkgJsonPath, 'utf8'));
118
+ const files = pkgJson.files || [];
119
+ const hasTemplateEntry = files.some((f) => f.includes('templates') && !f.includes('!'));
120
+ assert.ok(hasTemplateEntry, `package.json "files" should include templates directory. Got: ${JSON.stringify(files)}`);
121
+ });
122
+ });
123
+ // ─── AC2: Init generates pyproject.toml ─────────────────────────
124
+ describe('AC2: Init generates pyproject.toml in .pennyfarthing/', () => {
125
+ it('should create pyproject.toml in .pennyfarthing/ after init', () => {
126
+ const initResult = runCLI(testDir, ['init', '--force']);
127
+ assert.strictEqual(initResult.status, 0, `Init should succeed. stderr: ${initResult.stderr}`);
128
+ const pyprojectPath = join(testDir, '.pennyfarthing/pyproject.toml');
129
+ assert.ok(existsSync(pyprojectPath), 'Init should generate .pennyfarthing/pyproject.toml for consumer projects');
130
+ });
131
+ it('generated pyproject.toml should have correct package name', () => {
132
+ runCLI(testDir, ['init', '--force']);
133
+ const pyprojectPath = join(testDir, '.pennyfarthing/pyproject.toml');
134
+ const content = readFileSync(pyprojectPath, 'utf8');
135
+ assert.ok(content.includes('pennyfarthing-scripts'), 'Generated pyproject.toml should declare pennyfarthing-scripts');
136
+ });
137
+ it('generated pyproject.toml should point pennyfarthing_scripts to node_modules', () => {
138
+ runCLI(testDir, ['init', '--force']);
139
+ const pyprojectPath = join(testDir, '.pennyfarthing/pyproject.toml');
140
+ const content = readFileSync(pyprojectPath, 'utf8');
141
+ // The generated file should reference the pennyfarthing_scripts package
142
+ // from node_modules (where the npm package ships it)
143
+ assert.ok(content.includes('pennyfarthing_scripts'), 'Generated pyproject.toml should reference pennyfarthing_scripts package');
144
+ });
145
+ it('update command should also generate pyproject.toml if missing', () => {
146
+ // First init (won't create pyproject.toml with current code)
147
+ runCLI(testDir, ['init', '--force']);
148
+ // Remove pyproject.toml if it was created, to test update path
149
+ const pyprojectPath = join(testDir, '.pennyfarthing/pyproject.toml');
150
+ if (existsSync(pyprojectPath)) {
151
+ rmSync(pyprojectPath);
152
+ }
153
+ // Run update
154
+ const updateResult = runCLI(testDir, ['update']);
155
+ assert.strictEqual(updateResult.status, 0, `Update should succeed. stderr: ${updateResult.stderr}`);
156
+ assert.ok(existsSync(pyprojectPath), 'Update should regenerate .pennyfarthing/pyproject.toml if missing');
157
+ });
158
+ });
159
+ // ─── AC3: run-pf.sh resolves .pennyfarthing/pyproject.toml ──────
160
+ describe('AC3: run-pf.sh resolves consumer pyproject.toml', () => {
161
+ it('run-pf.sh should check .pennyfarthing/pyproject.toml as resolution path', () => {
162
+ const runPfPath = join(REAL_PENNYFARTHING_DIST, 'scripts/lib/run-pf.sh');
163
+ const content = readFileSync(runPfPath, 'utf8');
164
+ assert.ok(content.includes('.pennyfarthing/pyproject.toml'), 'run-pf.sh should have a resolution path for .pennyfarthing/pyproject.toml');
165
+ });
166
+ it('run-pf.sh should resolve .pennyfarthing/pyproject.toml after dogfooding and project root', () => {
167
+ const runPfPath = join(REAL_PENNYFARTHING_DIST, 'scripts/lib/run-pf.sh');
168
+ const content = readFileSync(runPfPath, 'utf8');
169
+ // The resolution order should be:
170
+ // 1. $PROJECT_ROOT/pennyfarthing/pyproject.toml (dogfooding)
171
+ // 2. $PROJECT_ROOT/pyproject.toml (consumer with own pyproject)
172
+ // 3. $PROJECT_ROOT/.pennyfarthing/pyproject.toml (consumer via npm install)
173
+ const dogfoodIdx = content.indexOf('pennyfarthing/pyproject.toml');
174
+ const projectRootIdx = content.indexOf('"$PROJECT_ROOT/pyproject.toml"');
175
+ const pennyfarthingIdx = content.indexOf('.pennyfarthing/pyproject.toml');
176
+ assert.ok(pennyfarthingIdx > projectRootIdx, '.pennyfarthing/pyproject.toml should be checked after $PROJECT_ROOT/pyproject.toml');
177
+ assert.ok(pennyfarthingIdx > dogfoodIdx, '.pennyfarthing/pyproject.toml should be checked after dogfooding path');
178
+ });
179
+ it('run-pf.sh should resolve pyproject.toml after init in consumer project', () => {
180
+ runCLI(testDir, ['init', '--force']);
181
+ // Simulate what run-pf.sh does: check resolution
182
+ const runPfPath = join(testDir, '.pennyfarthing/scripts/lib/run-pf.sh');
183
+ assert.ok(existsSync(runPfPath), 'run-pf.sh should exist in installed project');
184
+ // Run the resolution logic via bash
185
+ const result = spawnSync('bash', ['-c', `
186
+ export PROJECT_ROOT="${testDir}"
187
+ source "${runPfPath}"
188
+ echo "$_pf_project"
189
+ `], {
190
+ stdio: 'pipe',
191
+ timeout: 10000,
192
+ });
193
+ const resolvedPath = result.stdout?.toString().trim() || '';
194
+ assert.ok(resolvedPath.length > 0, `run-pf.sh should resolve a pyproject.toml path. stderr: ${result.stderr?.toString()}`);
195
+ assert.ok(!resolvedPath.includes('Error'), `run-pf.sh should not error. Got: ${resolvedPath}`);
196
+ });
197
+ });
198
+ // ─── AC4: Existing pyproject.toml not overwritten ───────────────
199
+ describe('AC4: Existing pyproject.toml files are not overwritten', () => {
200
+ it('should not overwrite existing .pennyfarthing/pyproject.toml', () => {
201
+ // Pre-create .pennyfarthing/ dir and a custom pyproject.toml
202
+ const pfDir = join(testDir, '.pennyfarthing');
203
+ mkdirSync(pfDir, { recursive: true });
204
+ const customContent = `[project]\nname = "my-custom-project"\nversion = "1.0.0"\n`;
205
+ writeFileSync(join(pfDir, 'pyproject.toml'), customContent);
206
+ // Run init
207
+ runCLI(testDir, ['init', '--force']);
208
+ // Verify custom content is preserved
209
+ const content = readFileSync(join(pfDir, 'pyproject.toml'), 'utf8');
210
+ assert.ok(content.includes('my-custom-project'), 'Init should NOT overwrite existing .pennyfarthing/pyproject.toml');
211
+ });
212
+ it('should not generate if project root already has pennyfarthing-scripts pyproject.toml', () => {
213
+ // Create a project-level pyproject.toml with pennyfarthing-scripts
214
+ writeFileSync(join(testDir, 'pyproject.toml'), `[project]\nname = "my-project"\n\n[project.optional-dependencies]\ndev = ["pennyfarthing-scripts"]\n`);
215
+ // Run init
216
+ runCLI(testDir, ['init', '--force']);
217
+ // .pennyfarthing/pyproject.toml should NOT be generated since
218
+ // run-pf.sh would already resolve via $PROJECT_ROOT/pyproject.toml
219
+ const pfPyproject = join(testDir, '.pennyfarthing/pyproject.toml');
220
+ assert.ok(!existsSync(pfPyproject), 'Should not generate .pennyfarthing/pyproject.toml when project root already has one with pennyfarthing-scripts');
221
+ });
222
+ it('should preserve custom pyproject.toml across updates', () => {
223
+ // Init first
224
+ runCLI(testDir, ['init', '--force']);
225
+ // Write a custom pyproject.toml after init
226
+ const pfPyproject = join(testDir, '.pennyfarthing/pyproject.toml');
227
+ const customContent = `[project]\nname = "pennyfarthing-scripts"\nversion = "99.0.0"\n# user customization\n`;
228
+ writeFileSync(pfPyproject, customContent);
229
+ // Run update
230
+ runCLI(testDir, ['update']);
231
+ // Verify custom content preserved
232
+ const content = readFileSync(pfPyproject, 'utf8');
233
+ assert.ok(content.includes('99.0.0'), 'Update should not overwrite user-customized pyproject.toml');
234
+ });
235
+ });
236
+ // ─── AC5: findLocalPyproject supports .pennyfarthing/ path ──────
237
+ describe('AC5: findLocalPyproject resolves .pennyfarthing/ path', () => {
238
+ it('findLocalPyproject should find pyproject.toml in .pennyfarthing/', async () => {
239
+ // Dynamically import the function
240
+ const { findLocalPyproject } = await import('../utils/python.js');
241
+ // Create a fake consumer layout
242
+ const consumerDir = createTestDir();
243
+ try {
244
+ const pfDir = join(consumerDir, '.pennyfarthing');
245
+ mkdirSync(pfDir, { recursive: true });
246
+ writeFileSync(join(pfDir, 'pyproject.toml'), `[project]\nname = "pennyfarthing-scripts"\n`);
247
+ // nodeModulesPath would be something like:
248
+ // /path/to/project/node_modules/@pennyfarthing/core/pennyfarthing-dist
249
+ const fakeNmPath = join(consumerDir, 'node_modules/@pennyfarthing/core/pennyfarthing-dist');
250
+ mkdirSync(fakeNmPath, { recursive: true });
251
+ const result = findLocalPyproject(fakeNmPath);
252
+ assert.ok(result !== null, 'findLocalPyproject should find .pennyfarthing/pyproject.toml');
253
+ assert.ok(result.includes('.pennyfarthing'), `Should resolve to .pennyfarthing/ path, got: ${result}`);
254
+ }
255
+ finally {
256
+ rmSync(consumerDir, { recursive: true, force: true });
257
+ }
258
+ });
259
+ });
260
+ });
261
+ //# sourceMappingURL=pyproject-install.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pyproject-install.test.js","sourceRoot":"","sources":["../../../src/cli/commands/pyproject-install.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,UAAU,EACV,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,uCAAuC;AACvC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAAC;AAEpE,uEAAuE;AACvE,MAAM,uBAAuB,GAAG,OAAO,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC;AAExF,yCAAyC;AACzC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;AAEvD,sEAAsE;AAEtE,SAAS,aAAa;IACpB,MAAM,GAAG,GAAG,IAAI,CACd,MAAM,EAAE,EACR,gBAAgB,IAAI,CAAC,GAAG,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AAgB,CAAC,CAAC;gBAClD,SAAS,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;gBACtC,aAAa,CACX,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,EAC7B,6CAA6C,CAC9C,CAAC;gBAEF,2CAA2C;gBAC3C,uEAAuE;gBACvE,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,qDAAqD,CAAC,CAAC;gBAC5F,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;gBAE3C,MAAM,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;gBAC9C,MAAM,CAAC,EAAE,CACP,MAAM,KAAK,IAAI,EACf,8DAA8D,CAC/D,CAAC;gBACF,MAAM,CAAC,EAAE,CACP,MAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAClC,gDAAgD,MAAM,EAAE,CACzD,CAAC;YACJ,CAAC;oBAAS,CAAC;gBACT,MAAM,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACxD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Tests for Story 117-3: Postinstall cleanup of stale pre-11.x artifacts
3
+ *
4
+ * AC1: Detects and removes stale artifacts from v8-10.x installations:
5
+ * - .claude/manifest.json (v8-era manifest)
6
+ * - .claude/personas/ directory
7
+ * - Non-prefixed commands (from old naming scheme)
8
+ * - Non-prefixed skills (from old naming scheme)
9
+ * AC2: Preserves user-created artifacts, only removes framework-created ones
10
+ * AC3: Cleanup runs during postinstall or via explicit update command
11
+ * AC4: Tests verify detection and removal logic
12
+ * AC5: No false positives on v11.x-native installations
13
+ *
14
+ * Run with: cd packages/core && npm run build && npm test
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=stale-artifacts-cleanup.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stale-artifacts-cleanup.test.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/stale-artifacts-cleanup.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}