@pennyfarthing/core 11.4.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1168) hide show
  1. package/README.md +9 -9
  2. package/package.json +3 -9
  3. package/packages/core/dist/cli/commands/command.js +9 -9
  4. package/packages/core/dist/cli/commands/command.js.map +1 -1
  5. package/packages/core/dist/cli/commands/cyclist.js +1 -1
  6. package/packages/core/dist/cli/commands/cyclist.js.map +1 -1
  7. package/packages/core/dist/cli/commands/cyclist.test.js +4 -4
  8. package/packages/core/dist/cli/commands/cyclist.test.js.map +1 -1
  9. package/packages/core/dist/cli/commands/doctor-legacy.test.js +2 -1
  10. package/packages/core/dist/cli/commands/doctor-legacy.test.js.map +1 -1
  11. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts +22 -0
  12. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.d.ts.map +1 -0
  13. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js +161 -0
  14. package/packages/core/dist/cli/commands/doctor-persona-config-false-negative.test.js.map +1 -0
  15. package/packages/core/dist/cli/commands/doctor.d.ts.map +1 -1
  16. package/packages/core/dist/cli/commands/doctor.js +190 -34
  17. package/packages/core/dist/cli/commands/doctor.js.map +1 -1
  18. package/packages/core/dist/cli/commands/e2e-upgrade.test.js +1 -1
  19. package/packages/core/dist/cli/commands/e2e-upgrade.test.js.map +1 -1
  20. package/packages/core/dist/cli/commands/hook-chaining.test.js +1 -1
  21. package/packages/core/dist/cli/commands/hook-chaining.test.js.map +1 -1
  22. package/packages/core/dist/cli/commands/init.d.ts.map +1 -1
  23. package/packages/core/dist/cli/commands/init.js +47 -18
  24. package/packages/core/dist/cli/commands/init.js.map +1 -1
  25. package/packages/core/dist/cli/commands/pyproject-install.test.js +1 -1
  26. package/packages/core/dist/cli/commands/pyproject-install.test.js.map +1 -1
  27. package/packages/core/dist/cli/commands/skill.js +9 -9
  28. package/packages/core/dist/cli/commands/skill.js.map +1 -1
  29. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts +17 -0
  30. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.d.ts.map +1 -0
  31. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js +470 -0
  32. package/packages/core/dist/cli/commands/stale-artifacts-cleanup.test.js.map +1 -0
  33. package/packages/core/dist/cli/commands/theme.js +3 -3
  34. package/packages/core/dist/cli/commands/theme.js.map +1 -1
  35. package/packages/core/dist/cli/commands/uninstall.js +1 -1
  36. package/packages/core/dist/cli/commands/uninstall.js.map +1 -1
  37. package/packages/core/dist/cli/commands/update.d.ts.map +1 -1
  38. package/packages/core/dist/cli/commands/update.js +71 -20
  39. package/packages/core/dist/cli/commands/update.js.map +1 -1
  40. package/packages/core/dist/cli/commands/version.js +1 -1
  41. package/packages/core/dist/cli/commands/version.js.map +1 -1
  42. package/packages/core/dist/cli/index.js +2 -30
  43. package/packages/core/dist/cli/index.js.map +1 -1
  44. package/packages/core/dist/cli/utils/constants.d.ts +2 -2
  45. package/packages/core/dist/cli/utils/constants.js +1 -1
  46. package/packages/core/dist/cli/utils/constants.js.map +1 -1
  47. package/packages/core/dist/cli/utils/files.d.ts +1 -1
  48. package/packages/core/dist/cli/utils/files.js +1 -1
  49. package/packages/core/dist/cli/utils/install-helpers.d.ts +25 -0
  50. package/packages/core/dist/cli/utils/install-helpers.d.ts.map +1 -0
  51. package/packages/core/dist/cli/utils/install-helpers.js +162 -0
  52. package/packages/core/dist/cli/utils/install-helpers.js.map +1 -0
  53. package/packages/core/dist/cli/utils/node-modules.d.ts +7 -0
  54. package/packages/core/dist/cli/utils/node-modules.d.ts.map +1 -1
  55. package/packages/core/dist/cli/utils/node-modules.js +39 -0
  56. package/packages/core/dist/cli/utils/node-modules.js.map +1 -1
  57. package/packages/core/dist/cli/utils/settings.d.ts +1 -1
  58. package/packages/core/dist/cli/utils/settings.d.ts.map +1 -1
  59. package/packages/core/dist/cli/utils/settings.js +40 -21
  60. package/packages/core/dist/cli/utils/settings.js.map +1 -1
  61. package/packages/core/dist/cli/utils/stale-artifacts.d.ts +59 -0
  62. package/packages/core/dist/cli/utils/stale-artifacts.d.ts.map +1 -0
  63. package/packages/core/dist/cli/utils/stale-artifacts.js +163 -0
  64. package/packages/core/dist/cli/utils/stale-artifacts.js.map +1 -0
  65. package/packages/core/dist/cli/utils/symlinks.d.ts +4 -0
  66. package/packages/core/dist/cli/utils/symlinks.d.ts.map +1 -1
  67. package/packages/core/dist/cli/utils/symlinks.js +25 -2
  68. package/packages/core/dist/cli/utils/symlinks.js.map +1 -1
  69. package/packages/core/dist/cli/workspace.test.js +4 -37
  70. package/packages/core/dist/cli/workspace.test.js.map +1 -1
  71. package/packages/core/dist/data-source.d.ts +42 -0
  72. package/packages/core/dist/data-source.d.ts.map +1 -0
  73. package/packages/core/dist/data-source.js +12 -0
  74. package/packages/core/dist/data-source.js.map +1 -0
  75. package/packages/core/dist/data-source.test.d.ts +16 -0
  76. package/packages/core/dist/data-source.test.d.ts.map +1 -0
  77. package/packages/core/dist/data-source.test.js +206 -0
  78. package/packages/core/dist/data-source.test.js.map +1 -0
  79. package/packages/core/dist/index.d.ts +1 -0
  80. package/packages/core/dist/index.d.ts.map +1 -1
  81. package/packages/core/dist/index.js.map +1 -1
  82. package/packages/core/dist/public/css/react.css +1 -1
  83. package/packages/core/dist/public/js/react/react.js +39 -39
  84. package/packages/core/dist/scripts/benchmark-integration.d.ts +182 -0
  85. package/packages/core/dist/scripts/benchmark-integration.d.ts.map +1 -0
  86. package/packages/core/dist/scripts/benchmark-integration.js +691 -0
  87. package/packages/core/dist/scripts/benchmark-integration.js.map +1 -0
  88. package/packages/core/dist/scripts/job-fair-aggregator.d.ts +150 -0
  89. package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +1 -0
  90. package/packages/core/dist/scripts/job-fair-aggregator.js +547 -0
  91. package/packages/core/dist/scripts/job-fair-aggregator.js.map +1 -0
  92. package/packages/core/dist/scripts/theme-detail.test.d.ts.map +1 -0
  93. package/packages/core/dist/scripts/theme-detail.test.js.map +1 -0
  94. package/packages/core/dist/server/api/context.d.ts.map +1 -1
  95. package/packages/core/dist/server/api/context.js +23 -5
  96. package/packages/core/dist/server/api/context.js.map +1 -1
  97. package/packages/core/dist/server/api/index.d.ts +0 -1
  98. package/packages/core/dist/server/api/index.d.ts.map +1 -1
  99. package/packages/core/dist/server/api/index.js +0 -2
  100. package/packages/core/dist/server/api/index.js.map +1 -1
  101. package/packages/core/dist/server/api/settings.d.ts.map +1 -1
  102. package/packages/core/dist/server/api/settings.js +6 -0
  103. package/packages/core/dist/server/api/settings.js.map +1 -1
  104. package/packages/core/dist/server/otlp-receiver.d.ts +2 -4
  105. package/packages/core/dist/server/otlp-receiver.d.ts.map +1 -1
  106. package/packages/core/dist/server/otlp-receiver.js +7 -18
  107. package/packages/core/dist/server/otlp-receiver.js.map +1 -1
  108. package/packages/core/dist/server/otlp-receiver.test.js +0 -27
  109. package/packages/core/dist/server/otlp-receiver.test.js.map +1 -1
  110. package/packages/core/dist/server/server.d.ts +2 -2
  111. package/packages/core/dist/server/server.d.ts.map +1 -1
  112. package/packages/core/dist/server/server.js +20 -5
  113. package/packages/core/dist/server/server.js.map +1 -1
  114. package/packages/core/dist/server/server.test.js +1 -1
  115. package/packages/core/dist/server/server.test.js.map +1 -1
  116. package/packages/core/dist/shared/generate-skill-docs.test.js +2 -2
  117. package/packages/core/dist/shared/skill-search.test.js +2 -2
  118. package/packages/core/dist/workflow/cross-entity-validation.d.ts.map +1 -1
  119. package/packages/core/dist/workflow/cross-entity-validation.js.map +1 -1
  120. package/packages/core/dist/workflow/tandem-workflow-templates.test.js +3 -3
  121. package/packages/core/dist/workflow/tandem-workflow-templates.test.js.map +1 -1
  122. package/packages/core/dist/workflow/workflow-migration.test.js +8 -8
  123. package/packages/core/dist/workflow/workflow-migration.test.js.map +1 -1
  124. package/packages/core/dist/workflow/workflow-schema.js +1 -1
  125. package/packages/core/dist/workflow/workflow-schema.js.map +1 -1
  126. package/packages/core/src/public/App.tsx +1 -4
  127. package/packages/core/src/public/components/DockviewWorkspace.tsx +0 -4
  128. package/packages/core/src/public/components/panels/SettingsPanel.tsx +83 -283
  129. package/packages/core/src/public/components/panels/SprintPanel.tsx +11 -1
  130. package/packages/core/src/public/components/panels/index.ts +0 -1
  131. package/packages/core/src/public/data-source.ts +117 -0
  132. package/packages/core/src/public/hooks/index.ts +0 -3
  133. package/packages/core/src/public/hooks/useAgentLoad.ts +1 -0
  134. package/packages/core/src/public/hooks/useCodeMarkers.ts +1 -0
  135. package/packages/core/src/public/hooks/useComplexity.ts +1 -0
  136. package/packages/core/src/public/hooks/useDataSource.ts +273 -0
  137. package/packages/core/src/public/hooks/useDeadCode.ts +1 -0
  138. package/packages/core/src/public/hooks/useDependencies.ts +1 -0
  139. package/packages/core/src/public/hooks/useDiffs.ts +46 -91
  140. package/packages/core/src/public/hooks/useGitStatus.ts +16 -77
  141. package/packages/core/src/public/hooks/useHealthScore.ts +1 -0
  142. package/packages/core/src/public/hooks/useHotspots.ts +1 -0
  143. package/packages/core/src/public/hooks/usePersona.ts +32 -67
  144. package/packages/core/src/public/hooks/useSprint.ts +23 -75
  145. package/packages/core/src/public/hooks/useStatsStrip.ts +47 -117
  146. package/packages/core/src/public/hooks/useStory.ts +11 -60
  147. package/packages/core/src/public/hooks/useTodos.ts +8 -61
  148. package/packages/core/src/public/images/cyclist-tandem-source.png +0 -0
  149. package/packages/core/src/public/index.ts +5 -0
  150. package/packages/core/src/public/styles/tailwind.css +15 -101
  151. package/packages/core/src/public/utils/slash-commands.ts +0 -4
  152. package/pennyfarthing-dist/agents/architect.md +8 -0
  153. package/pennyfarthing-dist/agents/ba.md +8 -0
  154. package/pennyfarthing-dist/agents/dev.md +10 -2
  155. package/pennyfarthing-dist/agents/devops.md +8 -0
  156. package/pennyfarthing-dist/agents/orchestrator.md +8 -0
  157. package/pennyfarthing-dist/agents/pm.md +8 -0
  158. package/pennyfarthing-dist/agents/reviewer.md +12 -4
  159. package/pennyfarthing-dist/agents/sm-setup.md +7 -7
  160. package/pennyfarthing-dist/agents/sm.md +20 -12
  161. package/pennyfarthing-dist/agents/tea.md +10 -2
  162. package/pennyfarthing-dist/agents/tech-writer.md +8 -0
  163. package/pennyfarthing-dist/agents/ux-designer.md +8 -0
  164. package/pennyfarthing-dist/commands/pf-architect.md +1 -1
  165. package/pennyfarthing-dist/commands/pf-ba.md +1 -1
  166. package/pennyfarthing-dist/commands/pf-dev.md +1 -1
  167. package/pennyfarthing-dist/commands/pf-devops.md +1 -1
  168. package/pennyfarthing-dist/commands/pf-health-check.md +1 -1
  169. package/pennyfarthing-dist/commands/pf-help.md +3 -2
  170. package/pennyfarthing-dist/commands/pf-orchestrator.md +1 -1
  171. package/pennyfarthing-dist/commands/pf-pm.md +1 -1
  172. package/pennyfarthing-dist/commands/pf-reviewer.md +1 -1
  173. package/pennyfarthing-dist/commands/pf-setup.md +4 -4
  174. package/pennyfarthing-dist/commands/pf-sm.md +1 -1
  175. package/pennyfarthing-dist/commands/pf-standalone.md +60 -0
  176. package/pennyfarthing-dist/commands/pf-tea.md +1 -1
  177. package/pennyfarthing-dist/commands/pf-tech-writer.md +1 -1
  178. package/pennyfarthing-dist/commands/pf-ux-designer.md +1 -1
  179. package/pennyfarthing-dist/commands/pf-work.md +1 -1
  180. package/pennyfarthing-dist/guides/agent-behavior.md +11 -11
  181. package/pennyfarthing-dist/guides/agent-tag-taxonomy.md +2 -2
  182. package/pennyfarthing-dist/guides/bikelane.md +1 -8
  183. package/pennyfarthing-dist/guides/bikerack.md +94 -0
  184. package/pennyfarthing-dist/guides/hooks.md +1 -1
  185. package/pennyfarthing-dist/guides/what-is-pennyfarthing.md +91 -0
  186. package/pennyfarthing-dist/guides/xml-tags.md +2 -2
  187. package/pennyfarthing-dist/personas/themes/discworld.yaml +14 -12
  188. package/pennyfarthing-dist/personas/themes/firefly.yaml +12 -12
  189. package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +14 -12
  190. package/pennyfarthing-dist/pyproject.toml +6 -2
  191. package/pennyfarthing-dist/scripts/core/agent-session.sh +4 -5
  192. package/pennyfarthing-dist/scripts/core/check-context.sh +10 -5
  193. package/pennyfarthing-dist/scripts/core/phase-check-start.sh +1 -2
  194. package/pennyfarthing-dist/scripts/core/prime.sh +1 -2
  195. package/pennyfarthing-dist/scripts/git/changelog-links.sh +216 -0
  196. package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +1 -2
  197. package/pennyfarthing-dist/scripts/git/git-status-all.sh +1 -2
  198. package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +1 -2
  199. package/pennyfarthing-dist/scripts/git/worktree-manager.sh +1 -2
  200. package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
  201. package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +2 -3
  202. package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +2 -3
  203. package/pennyfarthing-dist/scripts/hooks/context-warning.sh +2 -3
  204. package/pennyfarthing-dist/scripts/hooks/cyclist-pretooluse-hook.sh +2 -3
  205. package/pennyfarthing-dist/scripts/hooks/post-merge.sh +31 -1
  206. package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +6 -4
  207. package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +2 -3
  208. package/pennyfarthing-dist/scripts/hooks/pre-push.sh +1 -1
  209. package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +2 -3
  210. package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +2 -3
  211. package/pennyfarthing-dist/scripts/hooks/session-start.sh +2 -3
  212. package/pennyfarthing-dist/scripts/hooks/session-stop.sh +2 -3
  213. package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +2 -3
  214. package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +2 -3
  215. package/pennyfarthing-dist/scripts/lib/README.md +0 -1
  216. package/pennyfarthing-dist/scripts/misc/statusline.sh +2 -3
  217. package/pennyfarthing-dist/scripts/misc/uninstall.sh +1 -1
  218. package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +84 -8
  219. package/pennyfarthing-dist/scripts/portraits/generate-tandem-portraits.sh +7 -3
  220. package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +2 -2
  221. package/pennyfarthing-dist/scripts/theme/list-themes.sh +2 -18
  222. package/pennyfarthing-dist/scripts/workflow/finish-story.sh +1 -2
  223. package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +1 -2
  224. package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +1 -2
  225. package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +1 -2
  226. package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +1 -2
  227. package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +1 -2
  228. package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +1 -2
  229. package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +1 -2
  230. package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +1 -2
  231. package/pennyfarthing-dist/skills/pf-jira/usage.md +87 -145
  232. package/pennyfarthing-dist/skills/pf-settings/skill.md +41 -3
  233. package/pennyfarthing-dist/skills/pf-settings/usage.md +25 -0
  234. package/pennyfarthing-dist/skills/pf-sprint/skill.md +4 -0
  235. package/pennyfarthing-dist/skills/pf-sprint/usage.md +167 -173
  236. package/pennyfarthing-dist/skills/pf-theme/usage.md +17 -129
  237. package/pennyfarthing-dist/skills/pf-ux-tandem/SKILL.md +194 -0
  238. package/pennyfarthing-dist/skills/pf-workflow/usage.md +51 -128
  239. package/pennyfarthing-dist/skills/skill-registry.yaml +17 -21
  240. package/pennyfarthing-dist/src/pf/CLAUDE.md +213 -0
  241. package/pennyfarthing-dist/src/pf/__init__.py +17 -0
  242. package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-311.pyc +0 -0
  243. package/pennyfarthing-dist/src/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  244. package/pennyfarthing-dist/src/pf/__pycache__/bellmode_hook.cpython-314.pyc +0 -0
  245. package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-311.pyc +0 -0
  246. package/pennyfarthing-dist/src/pf/__pycache__/cli.cpython-314.pyc +0 -0
  247. package/pennyfarthing-dist/src/pf/__pycache__/config.cpython-314.pyc +0 -0
  248. package/pennyfarthing-dist/src/pf/__pycache__/config_migration.cpython-314.pyc +0 -0
  249. package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-311.pyc +0 -0
  250. package/pennyfarthing-dist/src/pf/__pycache__/context.cpython-314.pyc +0 -0
  251. package/pennyfarthing-dist/src/pf/__pycache__/hooks.cpython-314.pyc +0 -0
  252. package/pennyfarthing-dist/src/pf/__pycache__/jira.cpython-314.pyc +0 -0
  253. package/pennyfarthing-dist/src/pf/__pycache__/jira_bidirectional_sync.cpython-314.pyc +0 -0
  254. package/pennyfarthing-dist/src/pf/__pycache__/jira_epic_creation.cpython-314.pyc +0 -0
  255. package/pennyfarthing-dist/src/pf/__pycache__/jira_sync.cpython-314.pyc +0 -0
  256. package/pennyfarthing-dist/src/pf/__pycache__/jira_sync_story.cpython-314.pyc +0 -0
  257. package/pennyfarthing-dist/src/pf/__pycache__/output.cpython-314.pyc +0 -0
  258. package/pennyfarthing-dist/src/pf/__pycache__/patch_mode.cpython-314.pyc +0 -0
  259. package/pennyfarthing-dist/src/pf/__pycache__/pretooluse_hook.cpython-314.pyc +0 -0
  260. package/pennyfarthing-dist/src/pf/__pycache__/schema_validation_hook.cpython-314.pyc +0 -0
  261. package/pennyfarthing-dist/src/pf/__pycache__/session_start_hook.cpython-314.pyc +0 -0
  262. package/pennyfarthing-dist/src/pf/__pycache__/sprint.cpython-314.pyc +0 -0
  263. package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-311.pyc +0 -0
  264. package/pennyfarthing-dist/src/pf/__pycache__/workflow.cpython-314.pyc +0 -0
  265. package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-311.pyc +0 -0
  266. package/pennyfarthing-dist/src/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  267. package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-311.pyc +0 -0
  268. package/pennyfarthing-dist/src/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  269. package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-311.pyc +0 -0
  270. package/pennyfarthing-dist/src/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  271. package/pennyfarthing-dist/src/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  272. package/pennyfarthing-dist/src/pf/bc/cli.py +240 -0
  273. package/pennyfarthing-dist/src/pf/bc/focus.py +332 -0
  274. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-311.pyc +0 -0
  275. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  276. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/__main__.cpython-314.pyc +0 -0
  277. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  278. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  279. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  280. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  281. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-311.pyc +0 -0
  282. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  283. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  284. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  285. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  286. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  287. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  288. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-311.pyc +0 -0
  289. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  290. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/layout_order.cpython-314.pyc +0 -0
  291. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  292. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  293. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  294. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  295. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  296. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/story_detail_widget.cpython-314.pyc +0 -0
  297. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  298. package/pennyfarthing-dist/src/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  299. package/pennyfarthing-dist/src/pf/bikerack/audit_log_panel.py +631 -0
  300. package/pennyfarthing-dist/src/pf/bikerack/base_panel.py +186 -0
  301. package/pennyfarthing-dist/src/pf/bikerack/context_meter_footer.py +266 -0
  302. package/pennyfarthing-dist/src/pf/bikerack/debug_panel.py +451 -0
  303. package/pennyfarthing-dist/src/pf/bikerack/launcher.py +239 -0
  304. package/pennyfarthing-dist/src/pf/bikerack/layout_order.py +84 -0
  305. package/pennyfarthing-dist/src/pf/bikerack/portrait_resolver.py +191 -0
  306. package/pennyfarthing-dist/src/pf/bikerack/progress_panel.py +564 -0
  307. package/pennyfarthing-dist/src/pf/bikerack/sprint_panel.py +645 -0
  308. package/pennyfarthing-dist/src/pf/bikerack/story_detail_data.py +329 -0
  309. package/pennyfarthing-dist/src/pf/bikerack/story_detail_screen.py +283 -0
  310. package/pennyfarthing-dist/src/pf/bikerack/story_detail_widget.py +167 -0
  311. package/pennyfarthing-dist/src/pf/bikerack/tui.py +1170 -0
  312. package/pennyfarthing-dist/src/pf/bikerack/ws_client.py +203 -0
  313. package/pennyfarthing-dist/src/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  314. package/pennyfarthing-dist/src/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  315. package/pennyfarthing-dist/src/pf/bmad/cli.py +196 -0
  316. package/pennyfarthing-dist/src/pf/bmad/importer.py +199 -0
  317. package/pennyfarthing-dist/src/pf/bmad/parser.py +238 -0
  318. package/pennyfarthing-dist/src/pf/bmad/sync.py +462 -0
  319. package/pennyfarthing-dist/src/pf/bmad/test_parser.py +249 -0
  320. package/pennyfarthing-dist/src/pf/bmad/test_sync.py +220 -0
  321. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__init__.cpython-314.pyc +0 -0
  322. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/__main__.cpython-314.pyc +0 -0
  323. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/cli.cpython-314.pyc +0 -0
  324. package/pennyfarthing-dist/src/pf/brownfield/__pycache__/discover.cpython-314.pyc +0 -0
  325. package/pennyfarthing-dist/src/pf/brownfield/cli.py +130 -0
  326. package/pennyfarthing-dist/src/pf/cli.py +393 -0
  327. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  328. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/__main__.cpython-314.pyc +0 -0
  329. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  330. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/cli.cpython-314.pyc +0 -0
  331. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/formatters.cpython-314.pyc +0 -0
  332. package/pennyfarthing-dist/src/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  333. package/pennyfarthing-dist/src/pf/common/__init__.py +50 -0
  334. package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-311.pyc +0 -0
  335. package/pennyfarthing-dist/src/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  336. package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-311.pyc +0 -0
  337. package/pennyfarthing-dist/src/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  338. package/pennyfarthing-dist/src/pf/common/__pycache__/hooks.cpython-314.pyc +0 -0
  339. package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-311.pyc +0 -0
  340. package/pennyfarthing-dist/src/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  341. package/pennyfarthing-dist/src/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  342. package/pennyfarthing-dist/src/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  343. package/pennyfarthing-dist/src/pf/common/config.py +162 -0
  344. package/pennyfarthing-dist/src/pf/common/hooks.py +31 -0
  345. package/pennyfarthing-dist/src/pf/common/themes.py +354 -0
  346. package/pennyfarthing-dist/src/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  347. package/pennyfarthing-dist/src/pf/complexity/__pycache__/__main__.cpython-314.pyc +0 -0
  348. package/pennyfarthing-dist/src/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  349. package/pennyfarthing-dist/src/pf/complexity/__pycache__/cli.cpython-314.pyc +0 -0
  350. package/pennyfarthing-dist/src/pf/complexity/__pycache__/formatters.cpython-314.pyc +0 -0
  351. package/pennyfarthing-dist/src/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  352. package/pennyfarthing-dist/src/pf/config_migration.py +102 -0
  353. package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-311.pyc +0 -0
  354. package/pennyfarthing-dist/src/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  355. package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-311.pyc +0 -0
  356. package/pennyfarthing-dist/src/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  357. package/pennyfarthing-dist/src/pf/consultation/__pycache__/dialogue_manager.cpython-314.pyc +0 -0
  358. package/pennyfarthing-dist/src/pf/context.py +413 -0
  359. package/pennyfarthing-dist/src/pf/core/__init__.py +6 -0
  360. package/pennyfarthing-dist/src/pf/core/__pycache__/__init__.cpython-314.pyc +0 -0
  361. package/pennyfarthing-dist/src/pf/core/__pycache__/models.cpython-314.pyc +0 -0
  362. package/pennyfarthing-dist/src/pf/core/__pycache__/resolver.cpython-314.pyc +0 -0
  363. package/pennyfarthing-dist/src/pf/core/models.py +30 -0
  364. package/pennyfarthing-dist/src/pf/core/resolver.py +137 -0
  365. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-311.pyc +0 -0
  366. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  367. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/__main__.cpython-314.pyc +0 -0
  368. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  369. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-311.pyc +0 -0
  370. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  371. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/formatters.cpython-314.pyc +0 -0
  372. package/pennyfarthing-dist/src/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  373. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  374. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/__main__.cpython-314.pyc +0 -0
  375. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  376. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/cli.cpython-314.pyc +0 -0
  377. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/formatters.cpython-314.pyc +0 -0
  378. package/pennyfarthing-dist/src/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  379. package/pennyfarthing-dist/src/pf/docs/__init__.py +1 -0
  380. package/pennyfarthing-dist/src/pf/docs/__pycache__/__init__.cpython-314.pyc +0 -0
  381. package/pennyfarthing-dist/src/pf/docs/__pycache__/cli.cpython-314.pyc +0 -0
  382. package/pennyfarthing-dist/src/pf/docs/__pycache__/sync_skills.cpython-314.pyc +0 -0
  383. package/pennyfarthing-dist/src/pf/docs/cli.py +51 -0
  384. package/pennyfarthing-dist/src/pf/docs/sync_skills.py +489 -0
  385. package/pennyfarthing-dist/src/pf/doctor/__init__.py +6 -0
  386. package/pennyfarthing-dist/src/pf/doctor/__pycache__/__init__.cpython-314.pyc +0 -0
  387. package/pennyfarthing-dist/src/pf/doctor/__pycache__/checks.cpython-314.pyc +0 -0
  388. package/pennyfarthing-dist/src/pf/doctor/__pycache__/cli.cpython-314.pyc +0 -0
  389. package/pennyfarthing-dist/src/pf/doctor/__pycache__/core.cpython-314.pyc +0 -0
  390. package/pennyfarthing-dist/src/pf/doctor/__pycache__/models.cpython-314.pyc +0 -0
  391. package/pennyfarthing-dist/src/pf/doctor/checks.py +180 -0
  392. package/pennyfarthing-dist/src/pf/doctor/cli.py +52 -0
  393. package/pennyfarthing-dist/src/pf/doctor/core.py +63 -0
  394. package/pennyfarthing-dist/src/pf/doctor/models.py +29 -0
  395. package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-311.pyc +0 -0
  396. package/pennyfarthing-dist/src/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  397. package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-311.pyc +0 -0
  398. package/pennyfarthing-dist/src/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  399. package/pennyfarthing-dist/src/pf/git/__pycache__/__init__.cpython-314.pyc +0 -0
  400. package/pennyfarthing-dist/src/pf/git/__pycache__/create_branches.cpython-314.pyc +0 -0
  401. package/pennyfarthing-dist/src/pf/git/__pycache__/hooks_installer.cpython-314.pyc +0 -0
  402. package/pennyfarthing-dist/src/pf/git/__pycache__/repos.cpython-314.pyc +0 -0
  403. package/pennyfarthing-dist/src/pf/git/__pycache__/status_all.cpython-314.pyc +0 -0
  404. package/pennyfarthing-dist/src/pf/git/hooks_installer.py +152 -0
  405. package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-311.pyc +0 -0
  406. package/pennyfarthing-dist/src/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  407. package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-311.pyc +0 -0
  408. package/pennyfarthing-dist/src/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  409. package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-311.pyc +0 -0
  410. package/pennyfarthing-dist/src/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  411. package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-311.pyc +0 -0
  412. package/pennyfarthing-dist/src/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  413. package/pennyfarthing-dist/src/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  414. package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_file.cpython-314.pyc +0 -0
  415. package/pennyfarthing-dist/src/pf/handoff/__pycache__/gate_runner.cpython-314.pyc +0 -0
  416. package/pennyfarthing-dist/src/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  417. package/pennyfarthing-dist/src/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  418. package/pennyfarthing-dist/src/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  419. package/pennyfarthing-dist/src/pf/handoff/gate_file.py +109 -0
  420. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-311.pyc +0 -0
  421. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  422. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  423. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-311.pyc +0 -0
  424. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  425. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-311.pyc +0 -0
  426. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  427. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  428. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-311.pyc +0 -0
  429. package/pennyfarthing-dist/src/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  430. package/pennyfarthing-dist/src/pf/hooks/__init__.py +447 -0
  431. package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
  432. package/pennyfarthing-dist/src/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  433. package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-311.pyc +0 -0
  434. package/pennyfarthing-dist/src/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  435. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-311.pyc +0 -0
  436. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  437. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-311.pyc +0 -0
  438. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  439. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-311.pyc +0 -0
  440. package/pennyfarthing-dist/src/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  441. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-311.pyc +0 -0
  442. package/pennyfarthing-dist/src/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  443. package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-311.pyc +0 -0
  444. package/pennyfarthing-dist/src/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  445. package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-311.pyc +0 -0
  446. package/pennyfarthing-dist/src/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  447. package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-311.pyc +0 -0
  448. package/pennyfarthing-dist/src/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  449. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
  450. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  451. package/pennyfarthing-dist/src/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  452. package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-311.pyc +0 -0
  453. package/pennyfarthing-dist/src/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  454. package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-311.pyc +0 -0
  455. package/pennyfarthing-dist/src/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  456. package/pennyfarthing-dist/src/pf/hooks/cyclist_pretooluse.py +161 -0
  457. package/pennyfarthing-dist/src/pf/hooks/frontmatter.py +257 -0
  458. package/pennyfarthing-dist/src/pf/hooks/session_start.py +379 -0
  459. package/pennyfarthing-dist/src/pf/hooks/statusline.py +436 -0
  460. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-311.pyc +0 -0
  461. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  462. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/__main__.cpython-314.pyc +0 -0
  463. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-311.pyc +0 -0
  464. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  465. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-311.pyc +0 -0
  466. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  467. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/formatters.cpython-314.pyc +0 -0
  468. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-311.pyc +0 -0
  469. package/pennyfarthing-dist/src/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  470. package/pennyfarthing-dist/src/pf/init/__init__.py +1 -0
  471. package/pennyfarthing-dist/src/pf/init/__pycache__/__init__.cpython-314.pyc +0 -0
  472. package/pennyfarthing-dist/src/pf/init/__pycache__/cli.cpython-314.pyc +0 -0
  473. package/pennyfarthing-dist/src/pf/init/__pycache__/core.cpython-314.pyc +0 -0
  474. package/pennyfarthing-dist/src/pf/init/__pycache__/setup.cpython-314.pyc +0 -0
  475. package/pennyfarthing-dist/src/pf/init/cli.py +63 -0
  476. package/pennyfarthing-dist/src/pf/init/core.py +281 -0
  477. package/pennyfarthing-dist/src/pf/init/setup.py +474 -0
  478. package/pennyfarthing-dist/src/pf/jira/__init__.py +91 -0
  479. package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-311.pyc +0 -0
  480. package/pennyfarthing-dist/src/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  481. package/pennyfarthing-dist/src/pf/jira/__pycache__/__main__.cpython-314.pyc +0 -0
  482. package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-311.pyc +0 -0
  483. package/pennyfarthing-dist/src/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  484. package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-311.pyc +0 -0
  485. package/pennyfarthing-dist/src/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  486. package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-311.pyc +0 -0
  487. package/pennyfarthing-dist/src/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  488. package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-311.pyc +0 -0
  489. package/pennyfarthing-dist/src/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  490. package/pennyfarthing-dist/src/pf/jira/__pycache__/compat.cpython-314.pyc +0 -0
  491. package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-311.pyc +0 -0
  492. package/pennyfarthing-dist/src/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  493. package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-311.pyc +0 -0
  494. package/pennyfarthing-dist/src/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  495. package/pennyfarthing-dist/src/pf/jira/__pycache__/mappings.cpython-314.pyc +0 -0
  496. package/pennyfarthing-dist/src/pf/jira/__pycache__/models.cpython-314.pyc +0 -0
  497. package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-311.pyc +0 -0
  498. package/pennyfarthing-dist/src/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  499. package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-311.pyc +0 -0
  500. package/pennyfarthing-dist/src/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  501. package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-311.pyc +0 -0
  502. package/pennyfarthing-dist/src/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  503. package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-311.pyc +0 -0
  504. package/pennyfarthing-dist/src/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  505. package/pennyfarthing-dist/src/pf/jira/claim.py +232 -0
  506. package/pennyfarthing-dist/src/pf/jira/cli.py +472 -0
  507. package/pennyfarthing-dist/src/pf/jira/client.py +766 -0
  508. package/pennyfarthing-dist/src/pf/jira/reconcile.py +260 -0
  509. package/pennyfarthing-dist/src/pf/jira/story.py +223 -0
  510. package/pennyfarthing-dist/src/pf/jira/sync.py +350 -0
  511. package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-311.pyc +0 -0
  512. package/pennyfarthing-dist/src/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  513. package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-311.pyc +0 -0
  514. package/pennyfarthing-dist/src/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  515. package/pennyfarthing-dist/src/pf/migration/__init__.py +39 -0
  516. package/pennyfarthing-dist/src/pf/migration/__pycache__/__init__.cpython-314.pyc +0 -0
  517. package/pennyfarthing-dist/src/pf/migration/__pycache__/__main__.cpython-314.pyc +0 -0
  518. package/pennyfarthing-dist/src/pf/migration/__pycache__/cli.cpython-314.pyc +0 -0
  519. package/pennyfarthing-dist/src/pf/migration/__pycache__/session.cpython-314.pyc +0 -0
  520. package/pennyfarthing-dist/src/pf/migration/__pycache__/skill.cpython-314.pyc +0 -0
  521. package/pennyfarthing-dist/src/pf/migration/__pycache__/step.cpython-314.pyc +0 -0
  522. package/pennyfarthing-dist/src/pf/migration/__pycache__/validate.cpython-314.pyc +0 -0
  523. package/pennyfarthing-dist/src/pf/migration/cli.py +303 -0
  524. package/pennyfarthing-dist/src/pf/package/__pycache__/__init__.cpython-314.pyc +0 -0
  525. package/pennyfarthing-dist/src/pf/package/__pycache__/cli.cpython-314.pyc +0 -0
  526. package/pennyfarthing-dist/src/pf/package/__pycache__/discovery.cpython-314.pyc +0 -0
  527. package/pennyfarthing-dist/src/pf/package/__pycache__/portraits.cpython-314.pyc +0 -0
  528. package/pennyfarthing-dist/src/pf/package/cli.py +186 -0
  529. package/pennyfarthing-dist/src/pf/package/discovery.py +130 -0
  530. package/pennyfarthing-dist/src/pf/package/portraits.py +243 -0
  531. package/pennyfarthing-dist/src/pf/preflight/__pycache__/__init__.cpython-314.pyc +0 -0
  532. package/pennyfarthing-dist/src/pf/preflight/__pycache__/__main__.cpython-314.pyc +0 -0
  533. package/pennyfarthing-dist/src/pf/preflight/__pycache__/cli.cpython-314.pyc +0 -0
  534. package/pennyfarthing-dist/src/pf/preflight/__pycache__/finish.cpython-314.pyc +0 -0
  535. package/pennyfarthing-dist/src/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  536. package/pennyfarthing-dist/src/pf/prime/__pycache__/__main__.cpython-314.pyc +0 -0
  537. package/pennyfarthing-dist/src/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  538. package/pennyfarthing-dist/src/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  539. package/pennyfarthing-dist/src/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  540. package/pennyfarthing-dist/src/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  541. package/pennyfarthing-dist/src/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  542. package/pennyfarthing-dist/src/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  543. package/pennyfarthing-dist/src/pf/prime/__pycache__/version_sentinel.cpython-314.pyc +0 -0
  544. package/pennyfarthing-dist/src/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  545. package/pennyfarthing-dist/src/pf/prime/cli.py +721 -0
  546. package/pennyfarthing-dist/src/pf/prime/loader.py +322 -0
  547. package/pennyfarthing-dist/src/pf/prime/persona.py +305 -0
  548. package/pennyfarthing-dist/src/pf/prime/workflow.py +325 -0
  549. package/pennyfarthing-dist/src/pf/release/__pycache__/__init__.cpython-314.pyc +0 -0
  550. package/pennyfarthing-dist/src/pf/release/__pycache__/cli.cpython-314.pyc +0 -0
  551. package/pennyfarthing-dist/src/pf/release/__pycache__/deprecate.cpython-314.pyc +0 -0
  552. package/pennyfarthing-dist/src/pf/release/__pycache__/dry_run.cpython-314.pyc +0 -0
  553. package/pennyfarthing-dist/src/pf/release/cli.py +112 -0
  554. package/pennyfarthing-dist/src/pf/release/deprecate.py +187 -0
  555. package/pennyfarthing-dist/src/pf/release/dry_run.py +187 -0
  556. package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-311.pyc +0 -0
  557. package/pennyfarthing-dist/src/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  558. package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-311.pyc +0 -0
  559. package/pennyfarthing-dist/src/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  560. package/pennyfarthing-dist/src/pf/settings/__init__.py +0 -0
  561. package/pennyfarthing-dist/src/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  562. package/pennyfarthing-dist/src/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  563. package/pennyfarthing-dist/src/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  564. package/pennyfarthing-dist/src/pf/settings/settings.py +135 -0
  565. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-311.pyc +0 -0
  566. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  567. package/pennyfarthing-dist/src/pf/sprint/__pycache__/__main__.cpython-314.pyc +0 -0
  568. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-311.pyc +0 -0
  569. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  570. package/pennyfarthing-dist/src/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  571. package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-311.pyc +0 -0
  572. package/pennyfarthing-dist/src/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  573. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-311.pyc +0 -0
  574. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  575. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-311.pyc +0 -0
  576. package/pennyfarthing-dist/src/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  577. package/pennyfarthing-dist/src/pf/sprint/__pycache__/import_epic.cpython-314.pyc +0 -0
  578. package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-311.pyc +0 -0
  579. package/pennyfarthing-dist/src/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  580. package/pennyfarthing-dist/src/pf/sprint/__pycache__/shard_merge.cpython-314.pyc +0 -0
  581. package/pennyfarthing-dist/src/pf/sprint/__pycache__/standalone_add.cpython-314.pyc +0 -0
  582. package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-311.pyc +0 -0
  583. package/pennyfarthing-dist/src/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  584. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-311.pyc +0 -0
  585. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  586. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  587. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_transition.cpython-314.pyc +0 -0
  588. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-311.pyc +0 -0
  589. package/pennyfarthing-dist/src/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  590. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-311.pyc +0 -0
  591. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  592. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-311.pyc +0 -0
  593. package/pennyfarthing-dist/src/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  594. package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-311.pyc +0 -0
  595. package/pennyfarthing-dist/src/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  596. package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-311.pyc +0 -0
  597. package/pennyfarthing-dist/src/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  598. package/pennyfarthing-dist/src/pf/sprint/archive.py +164 -0
  599. package/pennyfarthing-dist/src/pf/sprint/cli.py +2206 -0
  600. package/pennyfarthing-dist/src/pf/sprint/loader.py +361 -0
  601. package/pennyfarthing-dist/src/pf/sprint/shard_merge.py +205 -0
  602. package/pennyfarthing-dist/src/pf/sprint/standalone_add.py +143 -0
  603. package/pennyfarthing-dist/src/pf/sprint/status.py +187 -0
  604. package/pennyfarthing-dist/src/pf/sprint/story_finish.py +229 -0
  605. package/pennyfarthing-dist/src/pf/sprint/story_transition.py +183 -0
  606. package/pennyfarthing-dist/src/pf/sprint/story_update.py +240 -0
  607. package/pennyfarthing-dist/src/pf/sprint/yaml_io.py +407 -0
  608. package/pennyfarthing-dist/src/pf/story/__pycache__/__init__.cpython-314.pyc +0 -0
  609. package/pennyfarthing-dist/src/pf/story/__pycache__/__main__.cpython-314.pyc +0 -0
  610. package/pennyfarthing-dist/src/pf/story/__pycache__/cli.cpython-314.pyc +0 -0
  611. package/pennyfarthing-dist/src/pf/story/__pycache__/create.cpython-314.pyc +0 -0
  612. package/pennyfarthing-dist/src/pf/story/__pycache__/size.cpython-314.pyc +0 -0
  613. package/pennyfarthing-dist/src/pf/story/__pycache__/template.cpython-314.pyc +0 -0
  614. package/pennyfarthing-dist/src/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  615. package/pennyfarthing-dist/src/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  616. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_1_gate_migration.cpython-314-pytest-9.0.2.pyc +0 -0
  617. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_108_2_remove_handoff_fallback.cpython-314-pytest-9.0.2.pyc +0 -0
  618. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_archive_epic.cpython-314-pytest-9.0.2.pyc +0 -0
  619. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bc.cpython-314-pytest-9.0.2.pyc +0 -0
  620. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_bikerack.cpython-314-pytest-9.0.2.pyc +0 -0
  621. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_brownfield.cpython-314-pytest-9.0.2.pyc +0 -0
  622. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_modules.cpython-314-pytest-9.0.2.pyc +0 -0
  623. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_cli_normalization.cpython-314-pytest-9.0.2.pyc +0 -0
  624. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_codemarkers.cpython-314-pytest-9.0.2.pyc +0 -0
  625. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_common.cpython-314-pytest-9.0.2.pyc +0 -0
  626. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_evaluation.cpython-314-pytest-9.0.2.pyc +0 -0
  627. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_confidence_sm_gate.cpython-314-pytest-9.0.2.pyc +0 -0
  628. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_config_consolidation.cpython-314-pytest-9.0.2.pyc +0 -0
  629. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dialogue_manager.cpython-314-pytest-9.0.2.pyc +0 -0
  630. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_dist_root.cpython-314-pytest-9.0.2.pyc +0 -0
  631. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_doctor.cpython-314-pytest-9.0.2.pyc +0 -0
  632. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_e2e_install_lifecycle.cpython-314-pytest-9.0.2.pyc +0 -0
  633. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_epic_shard_validation.cpython-314-pytest-9.0.2.pyc +0 -0
  634. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_event_driven_jira_sync.cpython-314-pytest-9.0.2.pyc +0 -0
  635. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_file_resolution.cpython-314-pytest-9.0.2.pyc +0 -0
  636. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_gate_runner.cpython-314-pytest-9.0.2.pyc +0 -0
  637. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_git_utils.cpython-314-pytest-9.0.2.pyc +0 -0
  638. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  639. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_handoff_e2e.cpython-314-pytest-9.0.2.pyc +0 -0
  640. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_healthscore.cpython-314-pytest-9.0.2.pyc +0 -0
  641. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314-pytest-9.0.2.pyc +0 -0
  642. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_auto_setup.cpython-314.pyc +0 -0
  643. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_init_command.cpython-314-pytest-9.0.2.pyc +0 -0
  644. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_jira_package.cpython-314-pytest-9.0.2.pyc +0 -0
  645. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_package_structure.cpython-314-pytest-9.0.2.pyc +0 -0
  646. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_patch_mode.cpython-314-pytest-9.0.2.pyc +0 -0
  647. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_prime.cpython-314-pytest-9.0.2.pyc +0 -0
  648. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_pypi_packaging.cpython-314-pytest-9.0.2.pyc +0 -0
  649. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_resolve_gate_file_field.cpython-314-pytest-9.0.2.pyc +0 -0
  650. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_package.cpython-314-pytest-9.0.2.pyc +0 -0
  651. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel.cpython-314-pytest-9.0.2.pyc +0 -0
  652. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_panel_provenance.cpython-314-pytest-9.0.2.pyc +0 -0
  653. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  654. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_add.cpython-314-pytest-9.0.2.pyc +0 -0
  655. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_package.cpython-314-pytest-9.0.2.pyc +0 -0
  656. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_transition.cpython-314-pytest-9.0.2.pyc +0 -0
  657. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_story_update.cpython-314-pytest-9.0.2.pyc +0 -0
  658. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tiers.cpython-314-pytest-9.0.2.pyc +0 -0
  659. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_token_counting.cpython-314-pytest-9.0.2.pyc +0 -0
  660. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_topology_loader.cpython-314-pytest-9.0.2.pyc +0 -0
  661. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_focus.cpython-314-pytest-9.0.2.pyc +0 -0
  662. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_tui_panel_persistence.cpython-314-pytest-9.0.2.pyc +0 -0
  663. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_upgrade_cleanup.cpython-314-pytest-9.0.2.pyc +0 -0
  664. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_validate_cmd.cpython-314-pytest-9.0.2.pyc +0 -0
  665. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_version_sentinel.cpython-314-pytest-9.0.2.pyc +0 -0
  666. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_check.cpython-314-pytest-9.0.2.pyc +0 -0
  667. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_cli.cpython-314-pytest-9.0.2.pyc +0 -0
  668. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_workflow_list_team.cpython-314-pytest-9.0.2.pyc +0 -0
  669. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_wrapper_removal.cpython-314-pytest-9.0.2.pyc +0 -0
  670. package/pennyfarthing-dist/src/pf/tests/__pycache__/test_yaml_io.cpython-314-pytest-9.0.2.pyc +0 -0
  671. package/pennyfarthing-dist/src/pf/tests/conftest.py +109 -0
  672. package/pennyfarthing-dist/src/pf/tests/test_108_1_gate_migration.py +541 -0
  673. package/pennyfarthing-dist/src/pf/tests/test_108_2_remove_handoff_fallback.py +340 -0
  674. package/pennyfarthing-dist/src/pf/tests/test_cli_modules.py +137 -0
  675. package/pennyfarthing-dist/src/pf/tests/test_codemarkers.py +672 -0
  676. package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_evaluation.py +252 -0
  677. package/pennyfarthing-dist/src/pf/tests/test_confidence_sm_gate.py +318 -0
  678. package/pennyfarthing-dist/src/pf/tests/test_config_consolidation.py +513 -0
  679. package/pennyfarthing-dist/src/pf/tests/test_dist_root.py +720 -0
  680. package/pennyfarthing-dist/src/pf/tests/test_doctor.py +457 -0
  681. package/pennyfarthing-dist/src/pf/tests/test_event_driven_jira_sync.py +588 -0
  682. package/pennyfarthing-dist/src/pf/tests/test_init_auto_setup.py +893 -0
  683. package/pennyfarthing-dist/src/pf/tests/test_init_command.py +814 -0
  684. package/pennyfarthing-dist/src/pf/tests/test_jira_package.py +331 -0
  685. package/pennyfarthing-dist/src/pf/tests/test_package_structure.py +314 -0
  686. package/pennyfarthing-dist/src/pf/tests/test_pypi_packaging.py +329 -0
  687. package/pennyfarthing-dist/src/pf/tests/test_resolve_gate_file_field.py +460 -0
  688. package/pennyfarthing-dist/src/pf/tests/test_sprint_panel.py +610 -0
  689. package/pennyfarthing-dist/src/pf/tests/test_sprint_panel_provenance.py +485 -0
  690. package/pennyfarthing-dist/src/pf/tests/test_story_transition.py +502 -0
  691. package/pennyfarthing-dist/src/pf/tests/test_upgrade_cleanup.py +251 -0
  692. package/pennyfarthing-dist/src/pf/tests/test_wrapper_removal.py +373 -0
  693. package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-311.pyc +0 -0
  694. package/pennyfarthing-dist/src/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  695. package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-311.pyc +0 -0
  696. package/pennyfarthing-dist/src/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  697. package/pennyfarthing-dist/src/pf/theme/cli.py +321 -0
  698. package/pennyfarthing-dist/src/pf/upgrade/__init__.py +1 -0
  699. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/__init__.cpython-314.pyc +0 -0
  700. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/cli.cpython-314.pyc +0 -0
  701. package/pennyfarthing-dist/src/pf/upgrade/__pycache__/core.cpython-314.pyc +0 -0
  702. package/pennyfarthing-dist/src/pf/upgrade/cli.py +62 -0
  703. package/pennyfarthing-dist/src/pf/upgrade/core.py +483 -0
  704. package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-311.pyc +0 -0
  705. package/pennyfarthing-dist/src/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  706. package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-311.pyc +0 -0
  707. package/pennyfarthing-dist/src/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  708. package/pennyfarthing-dist/src/pf/validate/adapters/__init__.py +0 -0
  709. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/__init__.cpython-314.pyc +0 -0
  710. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/agent.cpython-314.pyc +0 -0
  711. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/schema.cpython-314.pyc +0 -0
  712. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/skill_command.cpython-314.pyc +0 -0
  713. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/sprint.cpython-314.pyc +0 -0
  714. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/tandem_awareness.cpython-314.pyc +0 -0
  715. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/team_mode.cpython-314.pyc +0 -0
  716. package/pennyfarthing-dist/src/pf/validate/adapters/__pycache__/workflow.cpython-314.pyc +0 -0
  717. package/pennyfarthing-dist/src/pf/validate/adapters/agent.py +261 -0
  718. package/pennyfarthing-dist/src/pf/validate/adapters/skill_command.py +502 -0
  719. package/pennyfarthing-dist/src/pf/validate/adapters/tandem_awareness.py +260 -0
  720. package/pennyfarthing-dist/src/pf/validate/adapters/team_mode.py +329 -0
  721. package/pennyfarthing-dist/src/pf/validate/adapters/workflow.py +413 -0
  722. package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-311.pyc +0 -0
  723. package/pennyfarthing-dist/src/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  724. package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-311.pyc +0 -0
  725. package/pennyfarthing-dist/src/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  726. package/pennyfarthing-dist/src/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  727. package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-311.pyc +0 -0
  728. package/pennyfarthing-dist/src/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  729. package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-311.pyc +0 -0
  730. package/pennyfarthing-dist/src/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  731. package/pennyfarthing-dist/src/pf/workflow/__pycache__/team_lifecycle.cpython-314.pyc +0 -0
  732. package/pennyfarthing-dist/src/pf/workflow/cli.py +1109 -0
  733. package/pennyfarthing-dist/templates/justfile.template +71 -0
  734. package/pennyfarthing-dist/templates/preferences.yaml.template +5 -8
  735. package/pennyfarthing-dist/templates/pyproject.toml +9 -1
  736. package/pennyfarthing-dist/templates/settings.local.json.template +20 -11
  737. package/pennyfarthing-dist/templates/tmux-dev.template +45 -0
  738. package/pennyfarthing-dist/templates/tmux.conf.template +91 -0
  739. package/pennyfarthing-dist/workflows/installation-check/steps/step-01-foundation.md +2 -2
  740. package/pennyfarthing-dist/workflows/installation-check/steps/step-05-layout.md +1 -1
  741. package/pennyfarthing-dist/workflows/installation-check/steps/step-07-tools.md +6 -5
  742. package/pennyfarthing-dist/workflows/patch.yaml +5 -6
  743. package/pennyfarthing-dist/workflows/project-setup/steps/step-04-claude-md.md +59 -1
  744. package/pennyfarthing-dist/workflows/release/steps/step-01-preflight.md +4 -0
  745. package/pennyfarthing-dist/workflows/release/steps/step-02-bump.md +19 -9
  746. package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +67 -21
  747. package/pennyfarthing-dist/workflows/release/steps/step-11-finalize.md +41 -30
  748. package/pennyfarthing-dist/workflows/tdd-tandem.yaml +28 -8
  749. package/packages/core/bin/pennyfarthing.js +0 -14
  750. package/packages/core/dist/workflow/team-lifecycle.d.ts +0 -169
  751. package/packages/core/dist/workflow/team-lifecycle.d.ts.map +0 -1
  752. package/packages/core/dist/workflow/team-lifecycle.js +0 -217
  753. package/packages/core/dist/workflow/team-lifecycle.js.map +0 -1
  754. package/packages/core/dist/workflow/team-lifecycle.test.d.ts +0 -20
  755. package/packages/core/dist/workflow/team-lifecycle.test.d.ts.map +0 -1
  756. package/packages/core/dist/workflow/team-lifecycle.test.js +0 -966
  757. package/packages/core/dist/workflow/team-lifecycle.test.js.map +0 -1
  758. package/packages/core/src/public/components/BikeRackIndex.tsx +0 -53
  759. package/packages/core/src/public/components/BikeRackWorkspace.tsx +0 -217
  760. package/packages/core/src/public/components/FontPicker/FontPicker.css +0 -276
  761. package/packages/core/src/public/components/FontPicker/index.tsx +0 -430
  762. package/packages/core/src/public/components/StandalonePanel.tsx +0 -82
  763. package/packages/core/src/public/components/ThemePalette/ThemePalette.css +0 -179
  764. package/packages/core/src/public/components/ThemePalette/index.tsx +0 -326
  765. package/packages/core/src/public/components/panels/BackgroundPanel.tsx +0 -115
  766. package/packages/core/src/public/components/ui/switch.tsx +0 -27
  767. package/packages/core/src/public/hooks/useBackgroundTasks.ts +0 -131
  768. package/pennyfarthing-dist/commands/pf-permissions.md +0 -193
  769. package/pennyfarthing-dist/guides/permission-protocol.md +0 -188
  770. package/pennyfarthing-dist/pf/CLAUDE.md +0 -213
  771. package/pennyfarthing-dist/pf/__init__.py +0 -17
  772. package/pennyfarthing-dist/pf/__pycache__/__init__.cpython-314.pyc +0 -0
  773. package/pennyfarthing-dist/pf/__pycache__/cli.cpython-314.pyc +0 -0
  774. package/pennyfarthing-dist/pf/__pycache__/context.cpython-314.pyc +0 -0
  775. package/pennyfarthing-dist/pf/bc/__pycache__/__init__.cpython-314.pyc +0 -0
  776. package/pennyfarthing-dist/pf/bc/__pycache__/cli.cpython-314.pyc +0 -0
  777. package/pennyfarthing-dist/pf/bc/__pycache__/focus.cpython-314.pyc +0 -0
  778. package/pennyfarthing-dist/pf/bc/__pycache__/split.cpython-314.pyc +0 -0
  779. package/pennyfarthing-dist/pf/bc/cli.py +0 -241
  780. package/pennyfarthing-dist/pf/bc/focus.py +0 -333
  781. package/pennyfarthing-dist/pf/bikerack/__pycache__/__init__.cpython-314.pyc +0 -0
  782. package/pennyfarthing-dist/pf/bikerack/__pycache__/audit_log_panel.cpython-314.pyc +0 -0
  783. package/pennyfarthing-dist/pf/bikerack/__pycache__/background_panel.cpython-314.pyc +0 -0
  784. package/pennyfarthing-dist/pf/bikerack/__pycache__/base_panel.cpython-314.pyc +0 -0
  785. package/pennyfarthing-dist/pf/bikerack/__pycache__/changed_panel.cpython-314.pyc +0 -0
  786. package/pennyfarthing-dist/pf/bikerack/__pycache__/cli.cpython-314.pyc +0 -0
  787. package/pennyfarthing-dist/pf/bikerack/__pycache__/context_meter_footer.cpython-314.pyc +0 -0
  788. package/pennyfarthing-dist/pf/bikerack/__pycache__/debug_panel.cpython-314.pyc +0 -0
  789. package/pennyfarthing-dist/pf/bikerack/__pycache__/diffs_panel.cpython-314.pyc +0 -0
  790. package/pennyfarthing-dist/pf/bikerack/__pycache__/events.cpython-314.pyc +0 -0
  791. package/pennyfarthing-dist/pf/bikerack/__pycache__/git_panel.cpython-314.pyc +0 -0
  792. package/pennyfarthing-dist/pf/bikerack/__pycache__/launcher.cpython-314.pyc +0 -0
  793. package/pennyfarthing-dist/pf/bikerack/__pycache__/portrait_resolver.cpython-314.pyc +0 -0
  794. package/pennyfarthing-dist/pf/bikerack/__pycache__/progress_panel.cpython-314.pyc +0 -0
  795. package/pennyfarthing-dist/pf/bikerack/__pycache__/sprint_panel.cpython-314.pyc +0 -0
  796. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_data.cpython-314.pyc +0 -0
  797. package/pennyfarthing-dist/pf/bikerack/__pycache__/story_detail_screen.cpython-314.pyc +0 -0
  798. package/pennyfarthing-dist/pf/bikerack/__pycache__/tui.cpython-314.pyc +0 -0
  799. package/pennyfarthing-dist/pf/bikerack/__pycache__/ws_client.cpython-314.pyc +0 -0
  800. package/pennyfarthing-dist/pf/bikerack/audit_log_panel.py +0 -161
  801. package/pennyfarthing-dist/pf/bikerack/background_panel.py +0 -162
  802. package/pennyfarthing-dist/pf/bikerack/base_panel.py +0 -184
  803. package/pennyfarthing-dist/pf/bikerack/context_meter_footer.py +0 -138
  804. package/pennyfarthing-dist/pf/bikerack/debug_panel.py +0 -248
  805. package/pennyfarthing-dist/pf/bikerack/launcher.py +0 -240
  806. package/pennyfarthing-dist/pf/bikerack/portrait_resolver.py +0 -160
  807. package/pennyfarthing-dist/pf/bikerack/progress_panel.py +0 -314
  808. package/pennyfarthing-dist/pf/bikerack/sprint_panel.py +0 -492
  809. package/pennyfarthing-dist/pf/bikerack/story_detail_data.py +0 -247
  810. package/pennyfarthing-dist/pf/bikerack/story_detail_screen.py +0 -177
  811. package/pennyfarthing-dist/pf/bikerack/tui.py +0 -920
  812. package/pennyfarthing-dist/pf/bikerack/ws_client.py +0 -176
  813. package/pennyfarthing-dist/pf/bmad/__pycache__/__init__.cpython-314.pyc +0 -0
  814. package/pennyfarthing-dist/pf/bmad/__pycache__/cli.cpython-314.pyc +0 -0
  815. package/pennyfarthing-dist/pf/bmad/__pycache__/parser.cpython-314.pyc +0 -0
  816. package/pennyfarthing-dist/pf/bmad/cli.py +0 -197
  817. package/pennyfarthing-dist/pf/bmad/importer.py +0 -200
  818. package/pennyfarthing-dist/pf/bmad/parser.py +0 -239
  819. package/pennyfarthing-dist/pf/bmad/sync.py +0 -464
  820. package/pennyfarthing-dist/pf/bmad/test_parser.py +0 -253
  821. package/pennyfarthing-dist/pf/bmad/test_sync.py +0 -223
  822. package/pennyfarthing-dist/pf/brownfield/__main__.py +0 -8
  823. package/pennyfarthing-dist/pf/brownfield/cli.py +0 -130
  824. package/pennyfarthing-dist/pf/cli.py +0 -354
  825. package/pennyfarthing-dist/pf/codemarkers/__pycache__/__init__.cpython-314.pyc +0 -0
  826. package/pennyfarthing-dist/pf/codemarkers/__pycache__/analyze.cpython-314.pyc +0 -0
  827. package/pennyfarthing-dist/pf/codemarkers/__pycache__/models.cpython-314.pyc +0 -0
  828. package/pennyfarthing-dist/pf/common/__init__.py +0 -48
  829. package/pennyfarthing-dist/pf/common/__pycache__/__init__.cpython-314.pyc +0 -0
  830. package/pennyfarthing-dist/pf/common/__pycache__/config.cpython-314.pyc +0 -0
  831. package/pennyfarthing-dist/pf/common/__pycache__/output.cpython-314.pyc +0 -0
  832. package/pennyfarthing-dist/pf/common/__pycache__/pr_config.cpython-314.pyc +0 -0
  833. package/pennyfarthing-dist/pf/common/__pycache__/themes.cpython-314.pyc +0 -0
  834. package/pennyfarthing-dist/pf/common/config.py +0 -119
  835. package/pennyfarthing-dist/pf/common/themes.py +0 -253
  836. package/pennyfarthing-dist/pf/complexity/__pycache__/__init__.cpython-314.pyc +0 -0
  837. package/pennyfarthing-dist/pf/complexity/__pycache__/analyze.cpython-314.pyc +0 -0
  838. package/pennyfarthing-dist/pf/complexity/__pycache__/models.cpython-314.pyc +0 -0
  839. package/pennyfarthing-dist/pf/config.py +0 -21
  840. package/pennyfarthing-dist/pf/consultation/__pycache__/__init__.cpython-314.pyc +0 -0
  841. package/pennyfarthing-dist/pf/consultation/__pycache__/cli.cpython-314.pyc +0 -0
  842. package/pennyfarthing-dist/pf/context.py +0 -413
  843. package/pennyfarthing-dist/pf/deadcode/__pycache__/__init__.cpython-314.pyc +0 -0
  844. package/pennyfarthing-dist/pf/deadcode/__pycache__/analyze.cpython-314.pyc +0 -0
  845. package/pennyfarthing-dist/pf/deadcode/__pycache__/cli.cpython-314.pyc +0 -0
  846. package/pennyfarthing-dist/pf/deadcode/__pycache__/models.cpython-314.pyc +0 -0
  847. package/pennyfarthing-dist/pf/dependencies/__pycache__/__init__.cpython-314.pyc +0 -0
  848. package/pennyfarthing-dist/pf/dependencies/__pycache__/analyze.cpython-314.pyc +0 -0
  849. package/pennyfarthing-dist/pf/dependencies/__pycache__/models.cpython-314.pyc +0 -0
  850. package/pennyfarthing-dist/pf/epic/__pycache__/__init__.cpython-314.pyc +0 -0
  851. package/pennyfarthing-dist/pf/epic/__pycache__/cli.cpython-314.pyc +0 -0
  852. package/pennyfarthing-dist/pf/git/hooks_installer.py +0 -151
  853. package/pennyfarthing-dist/pf/git_group/__pycache__/__init__.cpython-314.pyc +0 -0
  854. package/pennyfarthing-dist/pf/git_group/__pycache__/cli.cpython-314.pyc +0 -0
  855. package/pennyfarthing-dist/pf/handoff/__pycache__/__init__.cpython-314.pyc +0 -0
  856. package/pennyfarthing-dist/pf/handoff/__pycache__/cli.cpython-314.pyc +0 -0
  857. package/pennyfarthing-dist/pf/handoff/__pycache__/complete_phase.cpython-314.pyc +0 -0
  858. package/pennyfarthing-dist/pf/handoff/__pycache__/marker.cpython-314.pyc +0 -0
  859. package/pennyfarthing-dist/pf/handoff/__pycache__/phase_check.cpython-314.pyc +0 -0
  860. package/pennyfarthing-dist/pf/handoff/__pycache__/resolve_gate.cpython-314.pyc +0 -0
  861. package/pennyfarthing-dist/pf/handoff/gate_file.py +0 -105
  862. package/pennyfarthing-dist/pf/healthscore/__pycache__/__init__.cpython-314.pyc +0 -0
  863. package/pennyfarthing-dist/pf/healthscore/__pycache__/__main__.cpython-314.pyc +0 -0
  864. package/pennyfarthing-dist/pf/healthscore/__pycache__/analyze.cpython-314.pyc +0 -0
  865. package/pennyfarthing-dist/pf/healthscore/__pycache__/cli.cpython-314.pyc +0 -0
  866. package/pennyfarthing-dist/pf/healthscore/__pycache__/formatters.cpython-314.pyc +0 -0
  867. package/pennyfarthing-dist/pf/healthscore/__pycache__/models.cpython-314.pyc +0 -0
  868. package/pennyfarthing-dist/pf/hooks/__init__.py +0 -442
  869. package/pennyfarthing-dist/pf/hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  870. package/pennyfarthing-dist/pf/hooks/__pycache__/bell_mode.cpython-314.pyc +0 -0
  871. package/pennyfarthing-dist/pf/hooks/__pycache__/cli.cpython-314.pyc +0 -0
  872. package/pennyfarthing-dist/pf/hooks/__pycache__/context_breaker.cpython-314.pyc +0 -0
  873. package/pennyfarthing-dist/pf/hooks/__pycache__/context_warning.cpython-314.pyc +0 -0
  874. package/pennyfarthing-dist/pf/hooks/__pycache__/cyclist_pretooluse.cpython-314.pyc +0 -0
  875. package/pennyfarthing-dist/pf/hooks/__pycache__/pre_edit_check.cpython-314.pyc +0 -0
  876. package/pennyfarthing-dist/pf/hooks/__pycache__/reflector_check.cpython-314.pyc +0 -0
  877. package/pennyfarthing-dist/pf/hooks/__pycache__/schema_validation.cpython-314.pyc +0 -0
  878. package/pennyfarthing-dist/pf/hooks/__pycache__/session_start.cpython-314.pyc +0 -0
  879. package/pennyfarthing-dist/pf/hooks/__pycache__/session_stop.cpython-314.pyc +0 -0
  880. package/pennyfarthing-dist/pf/hooks/__pycache__/sprint_yaml_validation.cpython-314.pyc +0 -0
  881. package/pennyfarthing-dist/pf/hooks/__pycache__/statusline.cpython-314.pyc +0 -0
  882. package/pennyfarthing-dist/pf/hooks/cyclist_pretooluse.py +0 -129
  883. package/pennyfarthing-dist/pf/hooks/session_start.py +0 -294
  884. package/pennyfarthing-dist/pf/hooks/statusline.py +0 -429
  885. package/pennyfarthing-dist/pf/hooks.py +0 -32
  886. package/pennyfarthing-dist/pf/hotspots/__pycache__/__init__.cpython-314.pyc +0 -0
  887. package/pennyfarthing-dist/pf/hotspots/__pycache__/analyze.cpython-314.pyc +0 -0
  888. package/pennyfarthing-dist/pf/hotspots/__pycache__/cli.cpython-314.pyc +0 -0
  889. package/pennyfarthing-dist/pf/hotspots/__pycache__/models.cpython-314.pyc +0 -0
  890. package/pennyfarthing-dist/pf/jira/__init__.py +0 -97
  891. package/pennyfarthing-dist/pf/jira/__pycache__/__init__.cpython-314.pyc +0 -0
  892. package/pennyfarthing-dist/pf/jira/__pycache__/bidirectional.cpython-314.pyc +0 -0
  893. package/pennyfarthing-dist/pf/jira/__pycache__/claim.cpython-314.pyc +0 -0
  894. package/pennyfarthing-dist/pf/jira/__pycache__/cli.cpython-314.pyc +0 -0
  895. package/pennyfarthing-dist/pf/jira/__pycache__/client.cpython-314.pyc +0 -0
  896. package/pennyfarthing-dist/pf/jira/__pycache__/create.cpython-314.pyc +0 -0
  897. package/pennyfarthing-dist/pf/jira/__pycache__/epic.cpython-314.pyc +0 -0
  898. package/pennyfarthing-dist/pf/jira/__pycache__/operations.cpython-314.pyc +0 -0
  899. package/pennyfarthing-dist/pf/jira/__pycache__/reconcile.cpython-314.pyc +0 -0
  900. package/pennyfarthing-dist/pf/jira/__pycache__/story.cpython-314.pyc +0 -0
  901. package/pennyfarthing-dist/pf/jira/__pycache__/sync.cpython-314.pyc +0 -0
  902. package/pennyfarthing-dist/pf/jira/claim.py +0 -232
  903. package/pennyfarthing-dist/pf/jira/cli.py +0 -362
  904. package/pennyfarthing-dist/pf/jira/client.py +0 -802
  905. package/pennyfarthing-dist/pf/jira/reconcile.py +0 -276
  906. package/pennyfarthing-dist/pf/jira/story.py +0 -221
  907. package/pennyfarthing-dist/pf/jira/sync.py +0 -350
  908. package/pennyfarthing-dist/pf/jira_bidirectional_sync.py +0 -37
  909. package/pennyfarthing-dist/pf/jira_epic_creation.py +0 -30
  910. package/pennyfarthing-dist/pf/jira_sync.py +0 -36
  911. package/pennyfarthing-dist/pf/jira_sync_story.py +0 -30
  912. package/pennyfarthing-dist/pf/launch/__pycache__/__init__.cpython-314.pyc +0 -0
  913. package/pennyfarthing-dist/pf/launch/__pycache__/cli.cpython-314.pyc +0 -0
  914. package/pennyfarthing-dist/pf/migration/__init__.py +0 -39
  915. package/pennyfarthing-dist/pf/migration/__main__.py +0 -10
  916. package/pennyfarthing-dist/pf/migration/cli.py +0 -304
  917. package/pennyfarthing-dist/pf/output.py +0 -37
  918. package/pennyfarthing-dist/pf/prime/__pycache__/__init__.cpython-314.pyc +0 -0
  919. package/pennyfarthing-dist/pf/prime/__pycache__/cli.cpython-314.pyc +0 -0
  920. package/pennyfarthing-dist/pf/prime/__pycache__/loader.cpython-314.pyc +0 -0
  921. package/pennyfarthing-dist/pf/prime/__pycache__/models.cpython-314.pyc +0 -0
  922. package/pennyfarthing-dist/pf/prime/__pycache__/persona.cpython-314.pyc +0 -0
  923. package/pennyfarthing-dist/pf/prime/__pycache__/session.cpython-314.pyc +0 -0
  924. package/pennyfarthing-dist/pf/prime/__pycache__/tiers.cpython-314.pyc +0 -0
  925. package/pennyfarthing-dist/pf/prime/__pycache__/workflow.cpython-314.pyc +0 -0
  926. package/pennyfarthing-dist/pf/prime/cli.py +0 -662
  927. package/pennyfarthing-dist/pf/prime/loader.py +0 -308
  928. package/pennyfarthing-dist/pf/prime/persona.py +0 -311
  929. package/pennyfarthing-dist/pf/prime/workflow.py +0 -317
  930. package/pennyfarthing-dist/pf/session/__pycache__/__init__.cpython-314.pyc +0 -0
  931. package/pennyfarthing-dist/pf/session/__pycache__/cli.cpython-314.pyc +0 -0
  932. package/pennyfarthing-dist/pf/settings/__pycache__/__init__.cpython-314.pyc +0 -0
  933. package/pennyfarthing-dist/pf/settings/__pycache__/cli.cpython-314.pyc +0 -0
  934. package/pennyfarthing-dist/pf/settings/__pycache__/settings.cpython-314.pyc +0 -0
  935. package/pennyfarthing-dist/pf/settings/settings.py +0 -134
  936. package/pennyfarthing-dist/pf/sprint/__pycache__/__init__.cpython-314.pyc +0 -0
  937. package/pennyfarthing-dist/pf/sprint/__pycache__/archive.cpython-314.pyc +0 -0
  938. package/pennyfarthing-dist/pf/sprint/__pycache__/archive_epic.cpython-314.pyc +0 -0
  939. package/pennyfarthing-dist/pf/sprint/__pycache__/cli.cpython-314.pyc +0 -0
  940. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_add.cpython-314.pyc +0 -0
  941. package/pennyfarthing-dist/pf/sprint/__pycache__/epic_update.cpython-314.pyc +0 -0
  942. package/pennyfarthing-dist/pf/sprint/__pycache__/loader.cpython-314.pyc +0 -0
  943. package/pennyfarthing-dist/pf/sprint/__pycache__/status.cpython-314.pyc +0 -0
  944. package/pennyfarthing-dist/pf/sprint/__pycache__/story_add.cpython-314.pyc +0 -0
  945. package/pennyfarthing-dist/pf/sprint/__pycache__/story_finish.cpython-314.pyc +0 -0
  946. package/pennyfarthing-dist/pf/sprint/__pycache__/story_update.cpython-314.pyc +0 -0
  947. package/pennyfarthing-dist/pf/sprint/__pycache__/validate_cmd.cpython-314.pyc +0 -0
  948. package/pennyfarthing-dist/pf/sprint/__pycache__/validator.cpython-314.pyc +0 -0
  949. package/pennyfarthing-dist/pf/sprint/__pycache__/work.cpython-314.pyc +0 -0
  950. package/pennyfarthing-dist/pf/sprint/__pycache__/yaml_io.cpython-314.pyc +0 -0
  951. package/pennyfarthing-dist/pf/sprint/archive.py +0 -164
  952. package/pennyfarthing-dist/pf/sprint/cli.py +0 -2021
  953. package/pennyfarthing-dist/pf/sprint/loader.py +0 -441
  954. package/pennyfarthing-dist/pf/sprint/status.py +0 -121
  955. package/pennyfarthing-dist/pf/sprint/story_finish.py +0 -239
  956. package/pennyfarthing-dist/pf/sprint/story_update.py +0 -222
  957. package/pennyfarthing-dist/pf/sprint/yaml_io.py +0 -433
  958. package/pennyfarthing-dist/pf/tests/__pycache__/__init__.cpython-314.pyc +0 -0
  959. package/pennyfarthing-dist/pf/tests/__pycache__/conftest.cpython-314-pytest-9.0.2.pyc +0 -0
  960. package/pennyfarthing-dist/pf/tests/__pycache__/test_sprint_validator.cpython-314-pytest-9.0.2.pyc +0 -0
  961. package/pennyfarthing-dist/pf/tests/conftest.py +0 -105
  962. package/pennyfarthing-dist/pf/tests/test_108_1_gate_migration.py +0 -540
  963. package/pennyfarthing-dist/pf/tests/test_108_2_remove_handoff_fallback.py +0 -339
  964. package/pennyfarthing-dist/pf/tests/test_cli_modules.py +0 -241
  965. package/pennyfarthing-dist/pf/tests/test_codemarkers.py +0 -687
  966. package/pennyfarthing-dist/pf/tests/test_confidence_sm_evaluation.py +0 -253
  967. package/pennyfarthing-dist/pf/tests/test_confidence_sm_gate.py +0 -316
  968. package/pennyfarthing-dist/pf/tests/test_jira_package.py +0 -331
  969. package/pennyfarthing-dist/pf/tests/test_package_structure.py +0 -359
  970. package/pennyfarthing-dist/pf/tests/test_resolve_gate_file_field.py +0 -460
  971. package/pennyfarthing-dist/pf/tests/test_sprint_panel.py +0 -610
  972. package/pennyfarthing-dist/pf/theme/__main__.py +0 -6
  973. package/pennyfarthing-dist/pf/theme/__pycache__/__init__.cpython-314.pyc +0 -0
  974. package/pennyfarthing-dist/pf/theme/__pycache__/cli.cpython-314.pyc +0 -0
  975. package/pennyfarthing-dist/pf/theme/cli.py +0 -310
  976. package/pennyfarthing-dist/pf/validate/__pycache__/__init__.cpython-314.pyc +0 -0
  977. package/pennyfarthing-dist/pf/validate/__pycache__/cli.cpython-314.pyc +0 -0
  978. package/pennyfarthing-dist/pf/validate/adapters/agent.py +0 -239
  979. package/pennyfarthing-dist/pf/validate/adapters/skill_command.py +0 -491
  980. package/pennyfarthing-dist/pf/validate/adapters/tandem_awareness.py +0 -254
  981. package/pennyfarthing-dist/pf/validate/adapters/team_mode.py +0 -323
  982. package/pennyfarthing-dist/pf/validate/adapters/workflow.py +0 -403
  983. package/pennyfarthing-dist/pf/workflow/__pycache__/__init__.cpython-314.pyc +0 -0
  984. package/pennyfarthing-dist/pf/workflow/__pycache__/cli.cpython-314.pyc +0 -0
  985. package/pennyfarthing-dist/pf/workflow/__pycache__/helpers.cpython-314.pyc +0 -0
  986. package/pennyfarthing-dist/pf/workflow/__pycache__/scale.cpython-314.pyc +0 -0
  987. package/pennyfarthing-dist/pf/workflow/__pycache__/state.cpython-314.pyc +0 -0
  988. package/pennyfarthing-dist/pf/workflow/cli.py +0 -1101
  989. package/pennyfarthing-dist/scripts/core/pf.sh +0 -5
  990. package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
  991. package/pennyfarthing-dist/scripts/lib/run-pf.sh +0 -44
  992. package/pennyfarthing-dist/skills/pf-permissions/skill.md +0 -157
  993. package/pennyfarthing-dist/templates/persona-config.yaml.template +0 -22
  994. package/scripts/postinstall.cjs +0 -34
  995. /package/pennyfarthing-dist/{pf → src/pf}/README.md +0 -0
  996. /package/pennyfarthing-dist/{pf → src/pf}/bc/__init__.py +0 -0
  997. /package/pennyfarthing-dist/{pf → src/pf}/bc/split.py +0 -0
  998. /package/pennyfarthing-dist/{pf → src/pf}/bellmode_hook.py +0 -0
  999. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__init__.py +0 -0
  1000. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/__main__.py +0 -0
  1001. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/cli.py +0 -0
  1002. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/diffs_panel.py +0 -0
  1003. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/events.py +0 -0
  1004. /package/pennyfarthing-dist/{pf → src/pf}/bikerack/git_panel.py +0 -0
  1005. /package/pennyfarthing-dist/{pf → src/pf}/bmad/__init__.py +0 -0
  1006. /package/pennyfarthing-dist/{pf → src/pf}/brownfield/__init__.py +0 -0
  1007. /package/pennyfarthing-dist/{pf → src/pf}/brownfield/discover.py +0 -0
  1008. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__init__.py +0 -0
  1009. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/__main__.py +0 -0
  1010. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/analyze.py +0 -0
  1011. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/cli.py +0 -0
  1012. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/formatters.py +0 -0
  1013. /package/pennyfarthing-dist/{pf → src/pf}/codemarkers/models.py +0 -0
  1014. /package/pennyfarthing-dist/{pf → src/pf}/common/output.py +0 -0
  1015. /package/pennyfarthing-dist/{pf → src/pf}/common/pr_config.py +0 -0
  1016. /package/pennyfarthing-dist/{pf → src/pf}/complexity/__init__.py +0 -0
  1017. /package/pennyfarthing-dist/{pf → src/pf}/complexity/__main__.py +0 -0
  1018. /package/pennyfarthing-dist/{pf → src/pf}/complexity/analyze.py +0 -0
  1019. /package/pennyfarthing-dist/{pf → src/pf}/complexity/cli.py +0 -0
  1020. /package/pennyfarthing-dist/{pf → src/pf}/complexity/formatters.py +0 -0
  1021. /package/pennyfarthing-dist/{pf → src/pf}/complexity/models.py +0 -0
  1022. /package/pennyfarthing-dist/{pf → src/pf}/consultation/__init__.py +0 -0
  1023. /package/pennyfarthing-dist/{pf → src/pf}/consultation/cli.py +0 -0
  1024. /package/pennyfarthing-dist/{pf → src/pf}/consultation/dialogue_manager.py +0 -0
  1025. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__init__.py +0 -0
  1026. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/__main__.py +0 -0
  1027. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/analyze.py +0 -0
  1028. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/cli.py +0 -0
  1029. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/formatters.py +0 -0
  1030. /package/pennyfarthing-dist/{pf → src/pf}/deadcode/models.py +0 -0
  1031. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__init__.py +0 -0
  1032. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/__main__.py +0 -0
  1033. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/analyze.py +0 -0
  1034. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/cli.py +0 -0
  1035. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/formatters.py +0 -0
  1036. /package/pennyfarthing-dist/{pf → src/pf}/dependencies/models.py +0 -0
  1037. /package/pennyfarthing-dist/{pf → src/pf}/epic/__init__.py +0 -0
  1038. /package/pennyfarthing-dist/{pf → src/pf}/epic/cli.py +0 -0
  1039. /package/pennyfarthing-dist/{pf → src/pf}/gate/__init__.py +0 -0
  1040. /package/pennyfarthing-dist/{pf → src/pf}/gate/cli.py +0 -0
  1041. /package/pennyfarthing-dist/{pf → src/pf}/gate/validate.py +0 -0
  1042. /package/pennyfarthing-dist/{pf → src/pf}/git/__init__.py +0 -0
  1043. /package/pennyfarthing-dist/{pf → src/pf}/git/create_branches.py +0 -0
  1044. /package/pennyfarthing-dist/{pf → src/pf}/git/repos.py +0 -0
  1045. /package/pennyfarthing-dist/{pf → src/pf}/git/status_all.py +0 -0
  1046. /package/pennyfarthing-dist/{pf → src/pf}/git/worktree.py +0 -0
  1047. /package/pennyfarthing-dist/{pf → src/pf}/git_group/__init__.py +0 -0
  1048. /package/pennyfarthing-dist/{pf → src/pf}/git_group/cli.py +0 -0
  1049. /package/pennyfarthing-dist/{pf → src/pf}/handoff/__init__.py +0 -0
  1050. /package/pennyfarthing-dist/{pf → src/pf}/handoff/cli.py +0 -0
  1051. /package/pennyfarthing-dist/{pf → src/pf}/handoff/complete_phase.py +0 -0
  1052. /package/pennyfarthing-dist/{pf → src/pf}/handoff/gate_runner.py +0 -0
  1053. /package/pennyfarthing-dist/{pf → src/pf}/handoff/marker.py +0 -0
  1054. /package/pennyfarthing-dist/{pf → src/pf}/handoff/phase_check.py +0 -0
  1055. /package/pennyfarthing-dist/{pf → src/pf}/handoff/resolve_gate.py +0 -0
  1056. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__init__.py +0 -0
  1057. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/__main__.py +0 -0
  1058. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/analyze.py +0 -0
  1059. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/cli.py +0 -0
  1060. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/formatters.py +0 -0
  1061. /package/pennyfarthing-dist/{pf → src/pf}/healthscore/models.py +0 -0
  1062. /package/pennyfarthing-dist/{pf → src/pf}/hooks/bell_mode.py +0 -0
  1063. /package/pennyfarthing-dist/{pf → src/pf}/hooks/cli.py +0 -0
  1064. /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_breaker.py +0 -0
  1065. /package/pennyfarthing-dist/{pf → src/pf}/hooks/context_warning.py +0 -0
  1066. /package/pennyfarthing-dist/{pf → src/pf}/hooks/cyclist-pretooluse-hook.sh +0 -0
  1067. /package/pennyfarthing-dist/{pf → src/pf}/hooks/pre_edit_check.py +0 -0
  1068. /package/pennyfarthing-dist/{pf → src/pf}/hooks/reflector_check.py +0 -0
  1069. /package/pennyfarthing-dist/{pf → src/pf}/hooks/schema_validation.py +0 -0
  1070. /package/pennyfarthing-dist/{pf → src/pf}/hooks/session_stop.py +0 -0
  1071. /package/pennyfarthing-dist/{pf → src/pf}/hooks/sprint_yaml_validation.py +0 -0
  1072. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__init__.py +0 -0
  1073. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/__main__.py +0 -0
  1074. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/analyze.py +0 -0
  1075. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/cli.py +0 -0
  1076. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/formatters.py +0 -0
  1077. /package/pennyfarthing-dist/{pf → src/pf}/hotspots/models.py +0 -0
  1078. /package/pennyfarthing-dist/{pf → src/pf}/jira/__main__.py +0 -0
  1079. /package/pennyfarthing-dist/{pf → src/pf}/jira/bidirectional.py +0 -0
  1080. /package/pennyfarthing-dist/{pf → src/pf}/jira/create.py +0 -0
  1081. /package/pennyfarthing-dist/{pf → src/pf}/jira/epic.py +0 -0
  1082. /package/pennyfarthing-dist/{pf → src/pf}/jira/operations.py +0 -0
  1083. /package/pennyfarthing-dist/{pf → src/pf}/launch/__init__.py +0 -0
  1084. /package/pennyfarthing-dist/{pf → src/pf}/launch/cli.py +0 -0
  1085. /package/pennyfarthing-dist/{pf → src/pf}/migration/session.py +0 -0
  1086. /package/pennyfarthing-dist/{pf → src/pf}/migration/skill.py +0 -0
  1087. /package/pennyfarthing-dist/{pf → src/pf}/migration/step.py +0 -0
  1088. /package/pennyfarthing-dist/{pf → src/pf}/migration/validate.py +0 -0
  1089. /package/pennyfarthing-dist/{pf/session → src/pf/package}/__init__.py +0 -0
  1090. /package/pennyfarthing-dist/{pf → src/pf}/patch_mode.py +0 -0
  1091. /package/pennyfarthing-dist/{pf → src/pf}/preflight/__init__.py +0 -0
  1092. /package/pennyfarthing-dist/{pf → src/pf}/preflight/__main__.py +0 -0
  1093. /package/pennyfarthing-dist/{pf → src/pf}/preflight/cli.py +0 -0
  1094. /package/pennyfarthing-dist/{pf → src/pf}/preflight/finish.py +0 -0
  1095. /package/pennyfarthing-dist/{pf → src/pf}/pretooluse_hook.py +0 -0
  1096. /package/pennyfarthing-dist/{pf → src/pf}/prime/__init__.py +0 -0
  1097. /package/pennyfarthing-dist/{pf → src/pf}/prime/__main__.py +0 -0
  1098. /package/pennyfarthing-dist/{pf → src/pf}/prime/heatmap.py +0 -0
  1099. /package/pennyfarthing-dist/{pf → src/pf}/prime/models.py +0 -0
  1100. /package/pennyfarthing-dist/{pf → src/pf}/prime/session.py +0 -0
  1101. /package/pennyfarthing-dist/{pf → src/pf}/prime/tiers.py +0 -0
  1102. /package/pennyfarthing-dist/{pf → src/pf}/prime/version_sentinel.py +0 -0
  1103. /package/pennyfarthing-dist/{pf/settings → src/pf/release}/__init__.py +0 -0
  1104. /package/pennyfarthing-dist/{pf → src/pf}/schema_validation_hook.py +0 -0
  1105. /package/pennyfarthing-dist/{pf/validate/adapters → src/pf/session}/__init__.py +0 -0
  1106. /package/pennyfarthing-dist/{pf → src/pf}/session/cli.py +0 -0
  1107. /package/pennyfarthing-dist/{pf → src/pf}/session_start_hook.py +0 -0
  1108. /package/pennyfarthing-dist/{pf → src/pf}/settings/cli.py +0 -0
  1109. /package/pennyfarthing-dist/{pf → src/pf}/sprint/__init__.py +0 -0
  1110. /package/pennyfarthing-dist/{pf → src/pf}/sprint/__main__.py +0 -0
  1111. /package/pennyfarthing-dist/{pf → src/pf}/sprint/archive_epic.py +0 -0
  1112. /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_add.py +0 -0
  1113. /package/pennyfarthing-dist/{pf → src/pf}/sprint/epic_update.py +0 -0
  1114. /package/pennyfarthing-dist/{pf → src/pf}/sprint/import_epic.py +0 -0
  1115. /package/pennyfarthing-dist/{pf → src/pf}/sprint/story_add.py +0 -0
  1116. /package/pennyfarthing-dist/{pf → src/pf}/sprint/validate_cmd.py +0 -0
  1117. /package/pennyfarthing-dist/{pf → src/pf}/sprint/validator.py +0 -0
  1118. /package/pennyfarthing-dist/{pf → src/pf}/sprint/work.py +0 -0
  1119. /package/pennyfarthing-dist/{pf → src/pf}/story/__init__.py +0 -0
  1120. /package/pennyfarthing-dist/{pf → src/pf}/story/__main__.py +0 -0
  1121. /package/pennyfarthing-dist/{pf → src/pf}/story/cli.py +0 -0
  1122. /package/pennyfarthing-dist/{pf → src/pf}/story/create.py +0 -0
  1123. /package/pennyfarthing-dist/{pf → src/pf}/story/size.py +0 -0
  1124. /package/pennyfarthing-dist/{pf → src/pf}/story/template.py +0 -0
  1125. /package/pennyfarthing-dist/{pf → src/pf}/swebench.py +0 -0
  1126. /package/pennyfarthing-dist/{pf → src/pf}/tests/__init__.py +0 -0
  1127. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_archive_epic.py +0 -0
  1128. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bc.py +0 -0
  1129. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_bikerack.py +0 -0
  1130. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_brownfield.py +0 -0
  1131. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_cli_normalization.py +0 -0
  1132. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_common.py +0 -0
  1133. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_dialogue_manager.py +0 -0
  1134. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_epic_shard_validation.py +0 -0
  1135. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_file_resolution.py +0 -0
  1136. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_gate_runner.py +0 -0
  1137. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_git_utils.py +0 -0
  1138. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_cli.py +0 -0
  1139. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_handoff_e2e.py +0 -0
  1140. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_healthscore.py +0 -0
  1141. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_patch_mode.py +0 -0
  1142. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_prime.py +0 -0
  1143. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_package.py +0 -0
  1144. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_sprint_validator.py +0 -0
  1145. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_add.py +0 -0
  1146. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_package.py +0 -0
  1147. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_story_update.py +0 -0
  1148. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tiers.py +0 -0
  1149. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_token_counting.py +0 -0
  1150. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_topology_loader.py +0 -0
  1151. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_focus.py +0 -0
  1152. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_tui_panel_persistence.py +0 -0
  1153. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_validate_cmd.py +0 -0
  1154. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_version_sentinel.py +0 -0
  1155. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_check.py +0 -0
  1156. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_workflow_list_team.py +0 -0
  1157. /package/pennyfarthing-dist/{pf → src/pf}/tests/test_yaml_io.py +0 -0
  1158. /package/pennyfarthing-dist/{pf → src/pf}/theme/__init__.py +0 -0
  1159. /package/pennyfarthing-dist/{pf → src/pf}/validate/__init__.py +0 -0
  1160. /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/schema.py +0 -0
  1161. /package/pennyfarthing-dist/{pf → src/pf}/validate/adapters/sprint.py +0 -0
  1162. /package/pennyfarthing-dist/{pf → src/pf}/validate/cli.py +0 -0
  1163. /package/pennyfarthing-dist/{pf → src/pf}/welcome_hook.py +0 -0
  1164. /package/pennyfarthing-dist/{pf → src/pf}/workflow/__init__.py +0 -0
  1165. /package/pennyfarthing-dist/{pf → src/pf}/workflow/helpers.py +0 -0
  1166. /package/pennyfarthing-dist/{pf → src/pf}/workflow/scale.py +0 -0
  1167. /package/pennyfarthing-dist/{pf → src/pf}/workflow/state.py +0 -0
  1168. /package/pennyfarthing-dist/{pf → src/pf}/workflow/team_lifecycle.py +0 -0
@@ -0,0 +1,814 @@
1
+ """Tests for pf init command.
2
+
3
+ Story 126-2: Rewrite pf init in Python — directory structure,
4
+ commands/skills, settings.
5
+
6
+ Tests verify:
7
+ 1. pf init creates .pennyfarthing/ directory structure
8
+ 2. pf init creates .claude/ directory structure
9
+ 3. Commands copied with pf-* prefix
10
+ 4. Skills copied with pf-* prefix
11
+ 5. Minimal settings.local.json written (5 hooks only)
12
+ 6. .gitignore updated
13
+ 7. Idempotent — running twice produces same result
14
+ 8. --dry-run shows what would be done without doing it
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import json
20
+ from pathlib import Path
21
+
22
+ import pytest
23
+ from click.testing import CliRunner
24
+
25
+ # ---------------------------------------------------------------------------
26
+ # Fixtures
27
+ # ---------------------------------------------------------------------------
28
+
29
+
30
+ @pytest.fixture
31
+ def runner() -> CliRunner:
32
+ """Click CLI test runner."""
33
+ return CliRunner()
34
+
35
+
36
+ @pytest.fixture
37
+ def target_dir(tmp_path: Path) -> Path:
38
+ """Empty target directory simulating a fresh project."""
39
+ target = tmp_path / "my-project"
40
+ target.mkdir()
41
+ return target
42
+
43
+
44
+ @pytest.fixture
45
+ def mock_dist(tmp_path: Path) -> Path:
46
+ """Minimal mock pennyfarthing-dist with sample commands and skills.
47
+
48
+ Layout:
49
+ pennyfarthing-dist/
50
+ commands/
51
+ pf-sprint.md
52
+ pf-dev.md
53
+ pf-tea.md
54
+ internal-only.md (should NOT be copied)
55
+ skills/
56
+ pf-testing/
57
+ pf-testing.md
58
+ references/
59
+ patterns.md
60
+ pf-sprint/
61
+ pf-sprint.md
62
+ internal-skill/ (should NOT be copied)
63
+ internal.md
64
+ """
65
+ dist = tmp_path / "pennyfarthing-dist"
66
+ dist.mkdir()
67
+
68
+ # Commands
69
+ commands_dir = dist / "commands"
70
+ commands_dir.mkdir()
71
+ (commands_dir / "pf-sprint.md").write_text(
72
+ "---\nname: pf-sprint\n---\n# Sprint command\n"
73
+ )
74
+ (commands_dir / "pf-dev.md").write_text(
75
+ "---\nname: pf-dev\n---\n# Dev command\n"
76
+ )
77
+ (commands_dir / "pf-tea.md").write_text(
78
+ "---\nname: pf-tea\n---\n# Tea command\n"
79
+ )
80
+ # Non-pf command — must NOT be copied
81
+ (commands_dir / "internal-only.md").write_text(
82
+ "---\nname: internal\n---\n# Internal\n"
83
+ )
84
+
85
+ # Skills
86
+ skills_dir = dist / "skills"
87
+ skills_dir.mkdir()
88
+
89
+ skill1 = skills_dir / "pf-testing"
90
+ skill1.mkdir()
91
+ (skill1 / "pf-testing.md").write_text("# Testing skill\n")
92
+ (skill1 / "references").mkdir()
93
+ (skill1 / "references" / "patterns.md").write_text("# Patterns\n")
94
+
95
+ skill2 = skills_dir / "pf-sprint"
96
+ skill2.mkdir()
97
+ (skill2 / "pf-sprint.md").write_text("# Sprint skill\n")
98
+
99
+ # Non-pf skill — must NOT be copied
100
+ internal_skill = skills_dir / "internal-skill"
101
+ internal_skill.mkdir()
102
+ (internal_skill / "internal.md").write_text("# Internal\n")
103
+
104
+ return dist
105
+
106
+
107
+ # ===================================================================
108
+ # AC 1: pf init creates .pennyfarthing/ directory structure
109
+ # ===================================================================
110
+
111
+
112
+ class TestPennyfarthingDirCreation:
113
+ """AC: pf init creates .pennyfarthing/ directory structure."""
114
+
115
+ def test_creates_pennyfarthing_root(self, target_dir: Path, mock_dist: Path) -> None:
116
+ """Should create .pennyfarthing/ directory."""
117
+ from pf.init.core import init_project
118
+
119
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
120
+
121
+ assert result["success"] is True
122
+ assert (target_dir / ".pennyfarthing").is_dir()
123
+
124
+ def test_creates_commands_subdir(self, target_dir: Path, mock_dist: Path) -> None:
125
+ """Should create .pennyfarthing/commands/."""
126
+ from pf.init.core import init_project
127
+
128
+ init_project(target_dir=target_dir, dist_root=mock_dist)
129
+
130
+ assert (target_dir / ".pennyfarthing" / "commands").is_dir()
131
+
132
+ def test_creates_skills_subdir(self, target_dir: Path, mock_dist: Path) -> None:
133
+ """Should create .pennyfarthing/skills/."""
134
+ from pf.init.core import init_project
135
+
136
+ init_project(target_dir=target_dir, dist_root=mock_dist)
137
+
138
+ assert (target_dir / ".pennyfarthing" / "skills").is_dir()
139
+
140
+ def test_creates_scripts_tree(self, target_dir: Path, mock_dist: Path) -> None:
141
+ """Should create .pennyfarthing/scripts/ and scripts/lib/."""
142
+ from pf.init.core import init_project
143
+
144
+ init_project(target_dir=target_dir, dist_root=mock_dist)
145
+
146
+ assert (target_dir / ".pennyfarthing" / "scripts").is_dir()
147
+ assert (target_dir / ".pennyfarthing" / "scripts" / "lib").is_dir()
148
+
149
+
150
+ # ===================================================================
151
+ # AC 2: pf init creates .claude/ directory structure
152
+ # ===================================================================
153
+
154
+
155
+ class TestClaudeDirCreation:
156
+ """AC: pf init creates .claude/ directory structure."""
157
+
158
+ def test_creates_claude_root(self, target_dir: Path, mock_dist: Path) -> None:
159
+ """Should create .claude/ directory."""
160
+ from pf.init.core import init_project
161
+
162
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
163
+
164
+ assert result["success"] is True
165
+ assert (target_dir / ".claude").is_dir()
166
+
167
+ def test_creates_claude_commands(self, target_dir: Path, mock_dist: Path) -> None:
168
+ """Should create .claude/commands/ for Claude Code command access."""
169
+ from pf.init.core import init_project
170
+
171
+ init_project(target_dir=target_dir, dist_root=mock_dist)
172
+
173
+ assert (target_dir / ".claude" / "commands").is_dir()
174
+
175
+ def test_creates_claude_skills(self, target_dir: Path, mock_dist: Path) -> None:
176
+ """Should create .claude/skills/ for Claude Code skill access."""
177
+ from pf.init.core import init_project
178
+
179
+ init_project(target_dir=target_dir, dist_root=mock_dist)
180
+
181
+ assert (target_dir / ".claude" / "skills").is_dir()
182
+
183
+
184
+ # ===================================================================
185
+ # AC 3: Commands copied with pf-* prefix
186
+ # ===================================================================
187
+
188
+
189
+ class TestCommandsCopy:
190
+ """AC: Commands and skills copied with pf-* prefix."""
191
+
192
+ def test_copies_pf_prefixed_commands(self, target_dir: Path, mock_dist: Path) -> None:
193
+ """Should copy all pf-*.md commands to .pennyfarthing/commands/."""
194
+ from pf.init.core import init_project
195
+
196
+ init_project(target_dir=target_dir, dist_root=mock_dist)
197
+
198
+ commands_dir = target_dir / ".pennyfarthing" / "commands"
199
+ assert (commands_dir / "pf-sprint.md").is_file()
200
+ assert (commands_dir / "pf-dev.md").is_file()
201
+ assert (commands_dir / "pf-tea.md").is_file()
202
+
203
+ def test_preserves_command_content(self, target_dir: Path, mock_dist: Path) -> None:
204
+ """Copied commands should have identical content to source."""
205
+ from pf.init.core import init_project
206
+
207
+ init_project(target_dir=target_dir, dist_root=mock_dist)
208
+
209
+ source = (mock_dist / "commands" / "pf-sprint.md").read_text()
210
+ copied = (target_dir / ".pennyfarthing" / "commands" / "pf-sprint.md").read_text()
211
+ assert source == copied
212
+
213
+ def test_skips_non_pf_commands(self, target_dir: Path, mock_dist: Path) -> None:
214
+ """Should NOT copy commands without pf-* prefix."""
215
+ from pf.init.core import init_project
216
+
217
+ init_project(target_dir=target_dir, dist_root=mock_dist)
218
+
219
+ commands_dir = target_dir / ".pennyfarthing" / "commands"
220
+ assert not (commands_dir / "internal-only.md").exists()
221
+
222
+ def test_copies_commands_to_claude_dir(self, target_dir: Path, mock_dist: Path) -> None:
223
+ """Should also make pf-* commands accessible from .claude/commands/."""
224
+ from pf.init.core import init_project
225
+
226
+ init_project(target_dir=target_dir, dist_root=mock_dist)
227
+
228
+ claude_commands = target_dir / ".claude" / "commands"
229
+ pf_commands = list(claude_commands.glob("pf-*.md"))
230
+ assert len(pf_commands) >= 3
231
+
232
+
233
+ # ===================================================================
234
+ # AC 4: Skills copied with pf-* prefix
235
+ # ===================================================================
236
+
237
+
238
+ class TestSkillsCopy:
239
+ """AC: Skills copied with pf-* prefix."""
240
+
241
+ def test_copies_pf_prefixed_skills(self, target_dir: Path, mock_dist: Path) -> None:
242
+ """Should copy all pf-* skill directories."""
243
+ from pf.init.core import init_project
244
+
245
+ init_project(target_dir=target_dir, dist_root=mock_dist)
246
+
247
+ skills_dir = target_dir / ".pennyfarthing" / "skills"
248
+ assert (skills_dir / "pf-testing").is_dir()
249
+ assert (skills_dir / "pf-sprint").is_dir()
250
+
251
+ def test_copies_skill_contents_recursively(self, target_dir: Path, mock_dist: Path) -> None:
252
+ """Copied skills should include all nested files and directories."""
253
+ from pf.init.core import init_project
254
+
255
+ init_project(target_dir=target_dir, dist_root=mock_dist)
256
+
257
+ skill_dir = target_dir / ".pennyfarthing" / "skills" / "pf-testing"
258
+ assert (skill_dir / "pf-testing.md").is_file()
259
+ assert (skill_dir / "references" / "patterns.md").is_file()
260
+
261
+ def test_preserves_skill_content(self, target_dir: Path, mock_dist: Path) -> None:
262
+ """Copied skill files should have identical content to source."""
263
+ from pf.init.core import init_project
264
+
265
+ init_project(target_dir=target_dir, dist_root=mock_dist)
266
+
267
+ source = (mock_dist / "skills" / "pf-testing" / "pf-testing.md").read_text()
268
+ copied = (
269
+ target_dir / ".pennyfarthing" / "skills" / "pf-testing" / "pf-testing.md"
270
+ ).read_text()
271
+ assert source == copied
272
+
273
+ def test_skips_non_pf_skills(self, target_dir: Path, mock_dist: Path) -> None:
274
+ """Should NOT copy skills without pf-* prefix."""
275
+ from pf.init.core import init_project
276
+
277
+ init_project(target_dir=target_dir, dist_root=mock_dist)
278
+
279
+ skills_dir = target_dir / ".pennyfarthing" / "skills"
280
+ assert not (skills_dir / "internal-skill").exists()
281
+
282
+ def test_copies_skills_to_claude_dir(self, target_dir: Path, mock_dist: Path) -> None:
283
+ """Should also make pf-* skills accessible from .claude/skills/."""
284
+ from pf.init.core import init_project
285
+
286
+ init_project(target_dir=target_dir, dist_root=mock_dist)
287
+
288
+ claude_skills = target_dir / ".claude" / "skills"
289
+ pf_skills = [d for d in claude_skills.iterdir() if d.name.startswith("pf-")]
290
+ assert len(pf_skills) >= 2
291
+
292
+
293
+ # ===================================================================
294
+ # AC 5: Minimal settings.local.json written (5 hooks only)
295
+ # ===================================================================
296
+
297
+
298
+ class TestSettingsFile:
299
+ """AC: Minimal settings.local.json written (5 hooks only)."""
300
+
301
+ def test_creates_settings_file(self, target_dir: Path, mock_dist: Path) -> None:
302
+ """Should create .claude/settings.local.json."""
303
+ from pf.init.core import init_project
304
+
305
+ init_project(target_dir=target_dir, dist_root=mock_dist)
306
+
307
+ settings_path = target_dir / ".claude" / "settings.local.json"
308
+ assert settings_path.is_file()
309
+
310
+ def test_settings_is_valid_json(self, target_dir: Path, mock_dist: Path) -> None:
311
+ """settings.local.json should be valid JSON."""
312
+ from pf.init.core import init_project
313
+
314
+ init_project(target_dir=target_dir, dist_root=mock_dist)
315
+
316
+ settings_path = target_dir / ".claude" / "settings.local.json"
317
+ data = json.loads(settings_path.read_text())
318
+ assert isinstance(data, dict)
319
+
320
+ def test_settings_has_hooks_section(self, target_dir: Path, mock_dist: Path) -> None:
321
+ """settings.local.json should contain a hooks configuration."""
322
+ from pf.init.core import init_project
323
+
324
+ init_project(target_dir=target_dir, dist_root=mock_dist)
325
+
326
+ settings_path = target_dir / ".claude" / "settings.local.json"
327
+ data = json.loads(settings_path.read_text())
328
+ assert "hooks" in data
329
+
330
+ def test_settings_has_exactly_five_hooks(self, target_dir: Path, mock_dist: Path) -> None:
331
+ """settings.local.json should have exactly 5 essential hook entries."""
332
+ from pf.init.core import init_project
333
+
334
+ init_project(target_dir=target_dir, dist_root=mock_dist)
335
+
336
+ settings_path = target_dir / ".claude" / "settings.local.json"
337
+ data = json.loads(settings_path.read_text())
338
+ hooks = data.get("hooks", {})
339
+
340
+ # Count total hook entries across all hook types
341
+ total_hooks = sum(len(entries) for entries in hooks.values())
342
+ assert total_hooks == 5, f"Expected 5 hooks, got {total_hooks}"
343
+
344
+ def test_settings_has_session_start_hook(self, target_dir: Path, mock_dist: Path) -> None:
345
+ """Should include session-start hook under SessionStart."""
346
+ from pf.init.core import init_project
347
+
348
+ init_project(target_dir=target_dir, dist_root=mock_dist)
349
+
350
+ settings_path = target_dir / ".claude" / "settings.local.json"
351
+ data = json.loads(settings_path.read_text())
352
+ hooks = data.get("hooks", {})
353
+ assert "SessionStart" in hooks
354
+ session_start = hooks["SessionStart"]
355
+ commands = _extract_hook_commands(session_start)
356
+ assert any("session-start" in cmd for cmd in commands)
357
+
358
+ def test_settings_has_session_stop_hook(self, target_dir: Path, mock_dist: Path) -> None:
359
+ """Should include session-stop hook under Stop."""
360
+ from pf.init.core import init_project
361
+
362
+ init_project(target_dir=target_dir, dist_root=mock_dist)
363
+
364
+ settings_path = target_dir / ".claude" / "settings.local.json"
365
+ data = json.loads(settings_path.read_text())
366
+ hooks = data.get("hooks", {})
367
+ assert "Stop" in hooks
368
+ stop = hooks["Stop"]
369
+ commands = _extract_hook_commands(stop)
370
+ assert any("session-stop" in cmd for cmd in commands)
371
+
372
+ def test_settings_has_pre_edit_check_hook(self, target_dir: Path, mock_dist: Path) -> None:
373
+ """Should include pre-edit-check hook under PreToolUse."""
374
+ from pf.init.core import init_project
375
+
376
+ init_project(target_dir=target_dir, dist_root=mock_dist)
377
+
378
+ settings_path = target_dir / ".claude" / "settings.local.json"
379
+ data = json.loads(settings_path.read_text())
380
+ hooks = data.get("hooks", {})
381
+ pre_tool = hooks.get("PreToolUse", [])
382
+ commands = _extract_hook_commands(pre_tool)
383
+ assert any("pre-edit-check" in cmd for cmd in commands)
384
+
385
+ def test_settings_has_context_warning_hook(self, target_dir: Path, mock_dist: Path) -> None:
386
+ """Should include context-warning hook under PreToolUse."""
387
+ from pf.init.core import init_project
388
+
389
+ init_project(target_dir=target_dir, dist_root=mock_dist)
390
+
391
+ settings_path = target_dir / ".claude" / "settings.local.json"
392
+ data = json.loads(settings_path.read_text())
393
+ hooks = data.get("hooks", {})
394
+ pre_tool = hooks.get("PreToolUse", [])
395
+ commands = _extract_hook_commands(pre_tool)
396
+ assert any("context-warning" in cmd for cmd in commands)
397
+
398
+ def test_settings_has_bell_mode_hook(self, target_dir: Path, mock_dist: Path) -> None:
399
+ """Should include bell-mode hook under PostToolUse."""
400
+ from pf.init.core import init_project
401
+
402
+ init_project(target_dir=target_dir, dist_root=mock_dist)
403
+
404
+ settings_path = target_dir / ".claude" / "settings.local.json"
405
+ data = json.loads(settings_path.read_text())
406
+ hooks = data.get("hooks", {})
407
+ post_tool = hooks.get("PostToolUse", [])
408
+ commands = _extract_hook_commands(post_tool)
409
+ assert any("bell-mode" in cmd for cmd in commands)
410
+
411
+
412
+ # ===================================================================
413
+ # AC 6: .gitignore updated
414
+ # ===================================================================
415
+
416
+
417
+ class TestGitignoreUpdate:
418
+ """AC: .gitignore updated."""
419
+
420
+ def test_creates_gitignore_if_missing(self, target_dir: Path, mock_dist: Path) -> None:
421
+ """Should create .gitignore if it doesn't exist."""
422
+ from pf.init.core import init_project
423
+
424
+ init_project(target_dir=target_dir, dist_root=mock_dist)
425
+
426
+ assert (target_dir / ".gitignore").is_file()
427
+
428
+ def test_adds_pennyfarthing_entries(self, target_dir: Path, mock_dist: Path) -> None:
429
+ """Should add pennyfarthing-related entries to .gitignore."""
430
+ from pf.init.core import init_project
431
+
432
+ init_project(target_dir=target_dir, dist_root=mock_dist)
433
+
434
+ content = (target_dir / ".gitignore").read_text()
435
+ # Should include config.local.yaml (local-only setting)
436
+ assert ".pennyfarthing/config.local.yaml" in content
437
+
438
+ def test_adds_session_entries(self, target_dir: Path, mock_dist: Path) -> None:
439
+ """Should add .session/ entries to .gitignore."""
440
+ from pf.init.core import init_project
441
+
442
+ init_project(target_dir=target_dir, dist_root=mock_dist)
443
+
444
+ content = (target_dir / ".gitignore").read_text()
445
+ assert ".session/" in content or ".session/*" in content
446
+
447
+ def test_adds_claude_settings_entry(self, target_dir: Path, mock_dist: Path) -> None:
448
+ """Should add .claude/settings.local.json to .gitignore."""
449
+ from pf.init.core import init_project
450
+
451
+ init_project(target_dir=target_dir, dist_root=mock_dist)
452
+
453
+ content = (target_dir / ".gitignore").read_text()
454
+ assert ".claude/settings.local.json" in content
455
+
456
+ def test_appends_to_existing_gitignore(self, target_dir: Path, mock_dist: Path) -> None:
457
+ """Should append to existing .gitignore without overwriting."""
458
+ from pf.init.core import init_project
459
+
460
+ existing = "node_modules/\n*.log\n"
461
+ (target_dir / ".gitignore").write_text(existing)
462
+
463
+ init_project(target_dir=target_dir, dist_root=mock_dist)
464
+
465
+ content = (target_dir / ".gitignore").read_text()
466
+ # Original entries preserved
467
+ assert "node_modules/" in content
468
+ assert "*.log" in content
469
+
470
+
471
+ # ===================================================================
472
+ # AC 7: Idempotent — running twice produces same result
473
+ # ===================================================================
474
+
475
+
476
+ class TestIdempotency:
477
+ """AC: Idempotent — running twice produces same result."""
478
+
479
+ def test_running_twice_both_succeed(self, target_dir: Path, mock_dist: Path) -> None:
480
+ """Running pf init twice should both return success."""
481
+ from pf.init.core import init_project
482
+
483
+ result1 = init_project(target_dir=target_dir, dist_root=mock_dist)
484
+ result2 = init_project(target_dir=target_dir, dist_root=mock_dist)
485
+
486
+ assert result1["success"] is True
487
+ assert result2["success"] is True
488
+
489
+ def test_running_twice_same_directories(self, target_dir: Path, mock_dist: Path) -> None:
490
+ """Running pf init twice should produce identical directory structure."""
491
+ from pf.init.core import init_project
492
+
493
+ init_project(target_dir=target_dir, dist_root=mock_dist)
494
+ dirs_after_first = _snapshot_dirs(target_dir)
495
+
496
+ init_project(target_dir=target_dir, dist_root=mock_dist)
497
+ dirs_after_second = _snapshot_dirs(target_dir)
498
+
499
+ assert dirs_after_first == dirs_after_second
500
+
501
+ def test_running_twice_same_files(self, target_dir: Path, mock_dist: Path) -> None:
502
+ """Running pf init twice should produce identical file set."""
503
+ from pf.init.core import init_project
504
+
505
+ init_project(target_dir=target_dir, dist_root=mock_dist)
506
+ files_after_first = _snapshot_files(target_dir)
507
+
508
+ init_project(target_dir=target_dir, dist_root=mock_dist)
509
+ files_after_second = _snapshot_files(target_dir)
510
+
511
+ assert files_after_first == files_after_second
512
+
513
+ def test_gitignore_no_duplicate_entries(self, target_dir: Path, mock_dist: Path) -> None:
514
+ """Running twice should not duplicate .gitignore entries."""
515
+ from pf.init.core import init_project
516
+
517
+ init_project(target_dir=target_dir, dist_root=mock_dist)
518
+ init_project(target_dir=target_dir, dist_root=mock_dist)
519
+
520
+ content = (target_dir / ".gitignore").read_text()
521
+ lines = [
522
+ line.strip()
523
+ for line in content.splitlines()
524
+ if line.strip() and not line.startswith("#")
525
+ ]
526
+ assert len(lines) == len(set(lines)), "Duplicate entries found in .gitignore"
527
+
528
+ def test_settings_not_corrupted_on_rerun(self, target_dir: Path, mock_dist: Path) -> None:
529
+ """Running twice should not corrupt settings.local.json."""
530
+ from pf.init.core import init_project
531
+
532
+ init_project(target_dir=target_dir, dist_root=mock_dist)
533
+ first_settings = json.loads(
534
+ (target_dir / ".claude" / "settings.local.json").read_text()
535
+ )
536
+
537
+ init_project(target_dir=target_dir, dist_root=mock_dist)
538
+ second_settings = json.loads(
539
+ (target_dir / ".claude" / "settings.local.json").read_text()
540
+ )
541
+
542
+ assert first_settings == second_settings
543
+
544
+
545
+ # ===================================================================
546
+ # AC 8: --dry-run shows what would be done without doing it
547
+ # ===================================================================
548
+
549
+
550
+ class TestDryRun:
551
+ """AC: --dry-run flag shows what would be done without doing it."""
552
+
553
+ def test_dry_run_creates_no_directories(self, target_dir: Path, mock_dist: Path) -> None:
554
+ """--dry-run should not create any directories."""
555
+ from pf.init.core import init_project
556
+
557
+ init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
558
+
559
+ assert not (target_dir / ".pennyfarthing").exists()
560
+ assert not (target_dir / ".claude").exists()
561
+
562
+ def test_dry_run_creates_no_files(self, target_dir: Path, mock_dist: Path) -> None:
563
+ """--dry-run should not create any files."""
564
+ from pf.init.core import init_project
565
+
566
+ init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
567
+
568
+ created_files = list(target_dir.rglob("*"))
569
+ assert len(created_files) == 0
570
+
571
+ def test_dry_run_returns_success(self, target_dir: Path, mock_dist: Path) -> None:
572
+ """--dry-run should return success with a plan."""
573
+ from pf.init.core import init_project
574
+
575
+ result = init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
576
+
577
+ assert result["success"] is True
578
+
579
+ def test_dry_run_returns_plan(self, target_dir: Path, mock_dist: Path) -> None:
580
+ """--dry-run should return a plan describing what would be done."""
581
+ from pf.init.core import init_project
582
+
583
+ result = init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
584
+
585
+ assert "data" in result
586
+ plan = result["data"]
587
+ # Plan should describe directories and files
588
+ assert "directories" in plan or "actions" in plan
589
+
590
+ def test_dry_run_lists_commands_to_copy(self, target_dir: Path, mock_dist: Path) -> None:
591
+ """--dry-run plan should list commands that would be copied."""
592
+ from pf.init.core import init_project
593
+
594
+ result = init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
595
+
596
+ plan_str = str(result.get("data", {}))
597
+ assert "pf-sprint" in plan_str or "commands" in plan_str
598
+
599
+ def test_dry_run_then_real_run(self, target_dir: Path, mock_dist: Path) -> None:
600
+ """Dry run followed by real run should work correctly."""
601
+ from pf.init.core import init_project
602
+
603
+ init_project(target_dir=target_dir, dist_root=mock_dist, dry_run=True)
604
+ assert not (target_dir / ".pennyfarthing").exists()
605
+
606
+ real_result = init_project(target_dir=target_dir, dist_root=mock_dist)
607
+ assert real_result["success"] is True
608
+ assert (target_dir / ".pennyfarthing").is_dir()
609
+
610
+
611
+ # ===================================================================
612
+ # CLI integration tests
613
+ # ===================================================================
614
+
615
+
616
+ class TestCliInvocation:
617
+ """Test the Click CLI command integration."""
618
+
619
+ def test_init_command_exists(self) -> None:
620
+ """pf init should be importable as a Click command."""
621
+ from pf.init.cli import init as init_cmd
622
+
623
+ assert init_cmd is not None
624
+ assert hasattr(init_cmd, "callback")
625
+
626
+ def test_init_help(self, runner: CliRunner) -> None:
627
+ """pf init --help should show help text."""
628
+ from pf.init.cli import init as init_cmd
629
+
630
+ result = runner.invoke(init_cmd, ["--help"])
631
+
632
+ assert result.exit_code == 0
633
+ assert "initialize" in result.output.lower() or "init" in result.output.lower()
634
+
635
+ def test_init_has_dry_run_option(self, runner: CliRunner) -> None:
636
+ """pf init should accept --dry-run flag."""
637
+ from pf.init.cli import init as init_cmd
638
+
639
+ result = runner.invoke(init_cmd, ["--help"])
640
+
641
+ assert "--dry-run" in result.output
642
+
643
+
644
+ # ===================================================================
645
+ # Result format tests
646
+ # ===================================================================
647
+
648
+
649
+ class TestResultFormat:
650
+ """Verify result objects follow {success, data?, error?} convention."""
651
+
652
+ def test_success_result_has_required_keys(self, target_dir: Path, mock_dist: Path) -> None:
653
+ """Successful init should return {success: True, data: {...}}."""
654
+ from pf.init.core import init_project
655
+
656
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
657
+
658
+ assert "success" in result
659
+ assert result["success"] is True
660
+ assert "data" in result
661
+
662
+ def test_result_data_has_summary(self, target_dir: Path, mock_dist: Path) -> None:
663
+ """Result data should include summary of what was created/copied."""
664
+ from pf.init.core import init_project
665
+
666
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
667
+
668
+ data = result.get("data", {})
669
+ # Should report what was done
670
+ assert "commands_copied" in data or "summary" in data
671
+
672
+ def test_error_result_for_invalid_dist_root(self, target_dir: Path, tmp_path: Path) -> None:
673
+ """Should return error for nonexistent dist_root."""
674
+ from pf.init.core import init_project
675
+
676
+ bad_dist = tmp_path / "nonexistent"
677
+ result = init_project(target_dir=target_dir, dist_root=bad_dist)
678
+
679
+ assert result["success"] is False
680
+ assert "error" in result
681
+
682
+ def test_error_result_for_invalid_target(self, tmp_path: Path, mock_dist: Path) -> None:
683
+ """Should return error for nonexistent target_dir."""
684
+ from pf.init.core import init_project
685
+
686
+ bad_target = tmp_path / "does-not-exist"
687
+ result = init_project(target_dir=bad_target, dist_root=mock_dist)
688
+
689
+ assert result["success"] is False
690
+ assert "error" in result
691
+
692
+
693
+ # ===================================================================
694
+ # Init manifest
695
+ # ===================================================================
696
+
697
+
698
+ class TestInitManifest:
699
+ """Verify init-manifest.json is written for upgrade tracking."""
700
+
701
+ def test_creates_manifest(self, target_dir: Path, mock_dist: Path) -> None:
702
+ """Should create .pennyfarthing/init-manifest.json."""
703
+ from pf.init.core import init_project
704
+
705
+ init_project(target_dir=target_dir, dist_root=mock_dist)
706
+
707
+ manifest_path = target_dir / ".pennyfarthing" / "init-manifest.json"
708
+ assert manifest_path.is_file()
709
+
710
+ def test_manifest_has_version(self, target_dir: Path, mock_dist: Path) -> None:
711
+ """Manifest should record pf version."""
712
+ from pf import __version__
713
+ from pf.init.core import init_project
714
+
715
+ init_project(target_dir=target_dir, dist_root=mock_dist)
716
+
717
+ manifest = json.loads(
718
+ (target_dir / ".pennyfarthing" / "init-manifest.json").read_text()
719
+ )
720
+ assert manifest["pf_version"] == __version__
721
+
722
+ def test_manifest_has_timestamp(self, target_dir: Path, mock_dist: Path) -> None:
723
+ """Manifest should record initialization timestamp."""
724
+ from pf.init.core import init_project
725
+
726
+ init_project(target_dir=target_dir, dist_root=mock_dist)
727
+
728
+ manifest = json.loads(
729
+ (target_dir / ".pennyfarthing" / "init-manifest.json").read_text()
730
+ )
731
+ assert "initialized_at" in manifest
732
+ # Should be a valid ISO timestamp
733
+ assert "T" in manifest["initialized_at"]
734
+
735
+ def test_manifest_has_counts(self, target_dir: Path, mock_dist: Path) -> None:
736
+ """Manifest should record what was copied."""
737
+ from pf.init.core import init_project
738
+
739
+ init_project(target_dir=target_dir, dist_root=mock_dist)
740
+
741
+ manifest = json.loads(
742
+ (target_dir / ".pennyfarthing" / "init-manifest.json").read_text()
743
+ )
744
+ assert manifest["commands_copied"] == 3
745
+ assert manifest["skills_copied"] == 2
746
+
747
+
748
+ # ===================================================================
749
+ # Settings guard (don't overwrite existing)
750
+ # ===================================================================
751
+
752
+
753
+ class TestSettingsGuard:
754
+ """Verify settings.local.json is not overwritten on re-init."""
755
+
756
+ def test_preserves_existing_settings(self, target_dir: Path, mock_dist: Path) -> None:
757
+ """Re-init should NOT overwrite user-modified settings."""
758
+ from pf.init.core import init_project
759
+
760
+ init_project(target_dir=target_dir, dist_root=mock_dist)
761
+
762
+ # Simulate user adding a custom key
763
+ settings_path = target_dir / ".claude" / "settings.local.json"
764
+ data = json.loads(settings_path.read_text())
765
+ data["custom_key"] = "user_value"
766
+ settings_path.write_text(json.dumps(data, indent=2) + "\n")
767
+
768
+ # Re-init
769
+ init_project(target_dir=target_dir, dist_root=mock_dist)
770
+
771
+ preserved = json.loads(settings_path.read_text())
772
+ assert preserved.get("custom_key") == "user_value"
773
+
774
+ def test_settings_written_false_on_rerun(self, target_dir: Path, mock_dist: Path) -> None:
775
+ """Result should report settings_written=False when file existed."""
776
+ from pf.init.core import init_project
777
+
778
+ init_project(target_dir=target_dir, dist_root=mock_dist)
779
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
780
+
781
+ assert result["data"]["settings_written"] is False
782
+
783
+ def test_settings_written_true_on_first_run(self, target_dir: Path, mock_dist: Path) -> None:
784
+ """Result should report settings_written=True on fresh init."""
785
+ from pf.init.core import init_project
786
+
787
+ result = init_project(target_dir=target_dir, dist_root=mock_dist)
788
+
789
+ assert result["data"]["settings_written"] is True
790
+
791
+
792
+ # ---------------------------------------------------------------------------
793
+ # Helpers
794
+ # ---------------------------------------------------------------------------
795
+
796
+
797
+ def _extract_hook_commands(hook_entries: list[dict]) -> list[str]:
798
+ """Extract command strings from a list of hook entry dicts."""
799
+ commands = []
800
+ for entry in hook_entries:
801
+ for hook in entry.get("hooks", []):
802
+ if "command" in hook:
803
+ commands.append(hook["command"])
804
+ return commands
805
+
806
+
807
+ def _snapshot_dirs(root: Path) -> set[str]:
808
+ """Snapshot all directory paths relative to root."""
809
+ return {str(p.relative_to(root)) for p in root.rglob("*") if p.is_dir()}
810
+
811
+
812
+ def _snapshot_files(root: Path) -> set[str]:
813
+ """Snapshot all file paths relative to root."""
814
+ return {str(p.relative_to(root)) for p in root.rglob("*") if p.is_file()}