@pennyfarthing/core 7.4.1 → 7.5.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 (890) hide show
  1. package/{packages/core/dist → dist}/cli/utils/files.d.ts +0 -1
  2. package/dist/cli/utils/files.js +179 -0
  3. package/{packages/core/dist → dist}/cli/utils/manifest.d.ts +0 -1
  4. package/dist/cli/utils/manifest.js +93 -0
  5. package/{packages/core/dist → dist}/cli/utils/version.d.ts +0 -1
  6. package/dist/cli/utils/version.js +70 -0
  7. package/{packages/core/dist → dist}/index.d.ts +0 -1
  8. package/dist/index.js +48 -0
  9. package/{packages/core/dist → dist}/permissions/index.d.ts +0 -1
  10. package/dist/permissions/index.js +16 -0
  11. package/{packages/core/dist → dist}/permissions/permission-schema.d.ts +0 -1
  12. package/{packages/core/dist → dist}/permissions/permission-schema.js +13 -9
  13. package/{packages/core/dist → dist}/scripts/job-fair-aggregator.d.ts +0 -1
  14. package/dist/scripts/job-fair-aggregator.js +690 -0
  15. package/{packages/core/dist → dist}/workflow/index.d.ts +0 -1
  16. package/dist/workflow/index.js +31 -0
  17. package/{packages/core/dist → dist}/workflow/workflow-loader.d.ts +0 -1
  18. package/{packages/core/dist → dist}/workflow/workflow-loader.js +40 -34
  19. package/{packages/core/dist → dist}/workflow/workflow-permissions.d.ts +0 -1
  20. package/{packages/core/dist → dist}/workflow/workflow-permissions.js +14 -8
  21. package/{packages/core/dist → dist}/workflow/workflow-router.d.ts +0 -1
  22. package/{packages/core/dist → dist}/workflow/workflow-router.js +70 -51
  23. package/{packages/core/dist → dist}/workflow/workflow-schema.d.ts +0 -1
  24. package/{packages/core/dist → dist}/workflow/workflow-schema.js +62 -59
  25. package/package.json +36 -31
  26. package/LICENSE +0 -14
  27. package/README.md +0 -301
  28. package/packages/core/dist/bmad/context-reader.d.ts +0 -71
  29. package/packages/core/dist/bmad/context-reader.d.ts.map +0 -1
  30. package/packages/core/dist/bmad/context-reader.js +0 -369
  31. package/packages/core/dist/bmad/context-reader.js.map +0 -1
  32. package/packages/core/dist/bmad/context-reader.test.d.ts +0 -71
  33. package/packages/core/dist/bmad/context-reader.test.d.ts.map +0 -1
  34. package/packages/core/dist/bmad/context-reader.test.js +0 -878
  35. package/packages/core/dist/bmad/context-reader.test.js.map +0 -1
  36. package/packages/core/dist/bmad/epics-parser.d.ts +0 -61
  37. package/packages/core/dist/bmad/epics-parser.d.ts.map +0 -1
  38. package/packages/core/dist/bmad/epics-parser.js +0 -331
  39. package/packages/core/dist/bmad/epics-parser.js.map +0 -1
  40. package/packages/core/dist/bmad/epics-parser.test.d.ts +0 -7
  41. package/packages/core/dist/bmad/epics-parser.test.d.ts.map +0 -1
  42. package/packages/core/dist/bmad/epics-parser.test.js +0 -449
  43. package/packages/core/dist/bmad/epics-parser.test.js.map +0 -1
  44. package/packages/core/dist/bmad/index.d.ts +0 -11
  45. package/packages/core/dist/bmad/index.d.ts.map +0 -1
  46. package/packages/core/dist/bmad/index.js +0 -24
  47. package/packages/core/dist/bmad/index.js.map +0 -1
  48. package/packages/core/dist/bmad/status-sync.d.ts +0 -173
  49. package/packages/core/dist/bmad/status-sync.d.ts.map +0 -1
  50. package/packages/core/dist/bmad/status-sync.js +0 -463
  51. package/packages/core/dist/bmad/status-sync.js.map +0 -1
  52. package/packages/core/dist/bmad/status-sync.test.d.ts +0 -7
  53. package/packages/core/dist/bmad/status-sync.test.d.ts.map +0 -1
  54. package/packages/core/dist/bmad/status-sync.test.js +0 -702
  55. package/packages/core/dist/bmad/status-sync.test.js.map +0 -1
  56. package/packages/core/dist/bmad/story-exporter.d.ts +0 -55
  57. package/packages/core/dist/bmad/story-exporter.d.ts.map +0 -1
  58. package/packages/core/dist/bmad/story-exporter.js +0 -170
  59. package/packages/core/dist/bmad/story-exporter.js.map +0 -1
  60. package/packages/core/dist/bmad/story-exporter.test.d.ts +0 -51
  61. package/packages/core/dist/bmad/story-exporter.test.d.ts.map +0 -1
  62. package/packages/core/dist/bmad/story-exporter.test.js +0 -603
  63. package/packages/core/dist/bmad/story-exporter.test.js.map +0 -1
  64. package/packages/core/dist/bmad/story-parser.d.ts +0 -44
  65. package/packages/core/dist/bmad/story-parser.d.ts.map +0 -1
  66. package/packages/core/dist/bmad/story-parser.js +0 -307
  67. package/packages/core/dist/bmad/story-parser.js.map +0 -1
  68. package/packages/core/dist/bmad/story-parser.test.d.ts +0 -44
  69. package/packages/core/dist/bmad/story-parser.test.d.ts.map +0 -1
  70. package/packages/core/dist/bmad/story-parser.test.js +0 -693
  71. package/packages/core/dist/bmad/story-parser.test.js.map +0 -1
  72. package/packages/core/dist/cli/commands/command.d.ts +0 -28
  73. package/packages/core/dist/cli/commands/command.d.ts.map +0 -1
  74. package/packages/core/dist/cli/commands/command.js +0 -399
  75. package/packages/core/dist/cli/commands/command.js.map +0 -1
  76. package/packages/core/dist/cli/commands/cyclist.d.ts +0 -46
  77. package/packages/core/dist/cli/commands/cyclist.d.ts.map +0 -1
  78. package/packages/core/dist/cli/commands/cyclist.js +0 -196
  79. package/packages/core/dist/cli/commands/cyclist.js.map +0 -1
  80. package/packages/core/dist/cli/commands/cyclist.test.d.ts +0 -13
  81. package/packages/core/dist/cli/commands/cyclist.test.d.ts.map +0 -1
  82. package/packages/core/dist/cli/commands/cyclist.test.js +0 -245
  83. package/packages/core/dist/cli/commands/cyclist.test.js.map +0 -1
  84. package/packages/core/dist/cli/commands/doctor.d.ts +0 -9
  85. package/packages/core/dist/cli/commands/doctor.d.ts.map +0 -1
  86. package/packages/core/dist/cli/commands/doctor.js +0 -652
  87. package/packages/core/dist/cli/commands/doctor.js.map +0 -1
  88. package/packages/core/dist/cli/commands/init.d.ts +0 -8
  89. package/packages/core/dist/cli/commands/init.d.ts.map +0 -1
  90. package/packages/core/dist/cli/commands/init.js +0 -525
  91. package/packages/core/dist/cli/commands/init.js.map +0 -1
  92. package/packages/core/dist/cli/commands/skill.d.ts +0 -28
  93. package/packages/core/dist/cli/commands/skill.d.ts.map +0 -1
  94. package/packages/core/dist/cli/commands/skill.js +0 -416
  95. package/packages/core/dist/cli/commands/skill.js.map +0 -1
  96. package/packages/core/dist/cli/commands/theme.d.ts +0 -21
  97. package/packages/core/dist/cli/commands/theme.d.ts.map +0 -1
  98. package/packages/core/dist/cli/commands/theme.js +0 -201
  99. package/packages/core/dist/cli/commands/theme.js.map +0 -1
  100. package/packages/core/dist/cli/commands/uninstall.d.ts +0 -8
  101. package/packages/core/dist/cli/commands/uninstall.d.ts.map +0 -1
  102. package/packages/core/dist/cli/commands/uninstall.js +0 -237
  103. package/packages/core/dist/cli/commands/uninstall.js.map +0 -1
  104. package/packages/core/dist/cli/commands/update.d.ts +0 -9
  105. package/packages/core/dist/cli/commands/update.d.ts.map +0 -1
  106. package/packages/core/dist/cli/commands/update.js +0 -421
  107. package/packages/core/dist/cli/commands/update.js.map +0 -1
  108. package/packages/core/dist/cli/commands/version.d.ts +0 -2
  109. package/packages/core/dist/cli/commands/version.d.ts.map +0 -1
  110. package/packages/core/dist/cli/commands/version.js +0 -28
  111. package/packages/core/dist/cli/commands/version.js.map +0 -1
  112. package/packages/core/dist/cli/customization.test.d.ts +0 -12
  113. package/packages/core/dist/cli/customization.test.d.ts.map +0 -1
  114. package/packages/core/dist/cli/customization.test.js +0 -84
  115. package/packages/core/dist/cli/customization.test.js.map +0 -1
  116. package/packages/core/dist/cli/cyclist-migration.test.d.ts +0 -16
  117. package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +0 -1
  118. package/packages/core/dist/cli/cyclist-migration.test.js +0 -225
  119. package/packages/core/dist/cli/cyclist-migration.test.js.map +0 -1
  120. package/packages/core/dist/cli/index.d.ts +0 -3
  121. package/packages/core/dist/cli/index.d.ts.map +0 -1
  122. package/packages/core/dist/cli/index.js +0 -174
  123. package/packages/core/dist/cli/index.js.map +0 -1
  124. package/packages/core/dist/cli/ocean-profiles.test.d.ts +0 -13
  125. package/packages/core/dist/cli/ocean-profiles.test.d.ts.map +0 -1
  126. package/packages/core/dist/cli/ocean-profiles.test.js +0 -134
  127. package/packages/core/dist/cli/ocean-profiles.test.js.map +0 -1
  128. package/packages/core/dist/cli/theme-maker.test.d.ts +0 -11
  129. package/packages/core/dist/cli/theme-maker.test.d.ts.map +0 -1
  130. package/packages/core/dist/cli/theme-maker.test.js +0 -356
  131. package/packages/core/dist/cli/theme-maker.test.js.map +0 -1
  132. package/packages/core/dist/cli/utils/constants.d.ts +0 -66
  133. package/packages/core/dist/cli/utils/constants.d.ts.map +0 -1
  134. package/packages/core/dist/cli/utils/constants.js +0 -54
  135. package/packages/core/dist/cli/utils/constants.js.map +0 -1
  136. package/packages/core/dist/cli/utils/files.d.ts.map +0 -1
  137. package/packages/core/dist/cli/utils/files.js +0 -162
  138. package/packages/core/dist/cli/utils/files.js.map +0 -1
  139. package/packages/core/dist/cli/utils/logger.d.ts +0 -26
  140. package/packages/core/dist/cli/utils/logger.d.ts.map +0 -1
  141. package/packages/core/dist/cli/utils/logger.js +0 -88
  142. package/packages/core/dist/cli/utils/logger.js.map +0 -1
  143. package/packages/core/dist/cli/utils/manifest.d.ts.map +0 -1
  144. package/packages/core/dist/cli/utils/manifest.js +0 -90
  145. package/packages/core/dist/cli/utils/manifest.js.map +0 -1
  146. package/packages/core/dist/cli/utils/node-modules.d.ts +0 -6
  147. package/packages/core/dist/cli/utils/node-modules.d.ts.map +0 -1
  148. package/packages/core/dist/cli/utils/node-modules.js +0 -32
  149. package/packages/core/dist/cli/utils/node-modules.js.map +0 -1
  150. package/packages/core/dist/cli/utils/prompts.d.ts +0 -34
  151. package/packages/core/dist/cli/utils/prompts.d.ts.map +0 -1
  152. package/packages/core/dist/cli/utils/prompts.js +0 -93
  153. package/packages/core/dist/cli/utils/prompts.js.map +0 -1
  154. package/packages/core/dist/cli/utils/symlinks.d.ts +0 -29
  155. package/packages/core/dist/cli/utils/symlinks.d.ts.map +0 -1
  156. package/packages/core/dist/cli/utils/symlinks.js +0 -181
  157. package/packages/core/dist/cli/utils/symlinks.js.map +0 -1
  158. package/packages/core/dist/cli/utils/themes.d.ts +0 -101
  159. package/packages/core/dist/cli/utils/themes.d.ts.map +0 -1
  160. package/packages/core/dist/cli/utils/themes.js +0 -373
  161. package/packages/core/dist/cli/utils/themes.js.map +0 -1
  162. package/packages/core/dist/cli/utils/themes.test.d.ts +0 -12
  163. package/packages/core/dist/cli/utils/themes.test.d.ts.map +0 -1
  164. package/packages/core/dist/cli/utils/themes.test.js +0 -147
  165. package/packages/core/dist/cli/utils/themes.test.js.map +0 -1
  166. package/packages/core/dist/cli/utils/version.d.ts.map +0 -1
  167. package/packages/core/dist/cli/utils/version.js +0 -64
  168. package/packages/core/dist/cli/utils/version.js.map +0 -1
  169. package/packages/core/dist/cli/workspace.test.d.ts +0 -8
  170. package/packages/core/dist/cli/workspace.test.d.ts.map +0 -1
  171. package/packages/core/dist/cli/workspace.test.js +0 -156
  172. package/packages/core/dist/cli/workspace.test.js.map +0 -1
  173. package/packages/core/dist/index.d.ts.map +0 -1
  174. package/packages/core/dist/index.js +0 -20
  175. package/packages/core/dist/index.js.map +0 -1
  176. package/packages/core/dist/jira/jira-epic-creation.d.ts +0 -109
  177. package/packages/core/dist/jira/jira-epic-creation.d.ts.map +0 -1
  178. package/packages/core/dist/jira/jira-epic-creation.js +0 -253
  179. package/packages/core/dist/jira/jira-epic-creation.js.map +0 -1
  180. package/packages/core/dist/jira/jira-epic-creation.test.d.ts +0 -16
  181. package/packages/core/dist/jira/jira-epic-creation.test.d.ts.map +0 -1
  182. package/packages/core/dist/jira/jira-epic-creation.test.js +0 -387
  183. package/packages/core/dist/jira/jira-epic-creation.test.js.map +0 -1
  184. package/packages/core/dist/jira/jira-sprint-sync.d.ts +0 -247
  185. package/packages/core/dist/jira/jira-sprint-sync.d.ts.map +0 -1
  186. package/packages/core/dist/jira/jira-sprint-sync.js +0 -670
  187. package/packages/core/dist/jira/jira-sprint-sync.js.map +0 -1
  188. package/packages/core/dist/jira/jira-sprint-sync.test.d.ts +0 -16
  189. package/packages/core/dist/jira/jira-sprint-sync.test.d.ts.map +0 -1
  190. package/packages/core/dist/jira/jira-sprint-sync.test.js +0 -845
  191. package/packages/core/dist/jira/jira-sprint-sync.test.js.map +0 -1
  192. package/packages/core/dist/permissions/index.d.ts.map +0 -1
  193. package/packages/core/dist/permissions/index.js +0 -13
  194. package/packages/core/dist/permissions/index.js.map +0 -1
  195. package/packages/core/dist/permissions/permission-schema.d.ts.map +0 -1
  196. package/packages/core/dist/permissions/permission-schema.js.map +0 -1
  197. package/packages/core/dist/permissions/permission-schema.test.d.ts +0 -40
  198. package/packages/core/dist/permissions/permission-schema.test.d.ts.map +0 -1
  199. package/packages/core/dist/permissions/permission-schema.test.js +0 -367
  200. package/packages/core/dist/permissions/permission-schema.test.js.map +0 -1
  201. package/packages/core/dist/scripts/add-ocean-profiles.d.ts +0 -9
  202. package/packages/core/dist/scripts/add-ocean-profiles.d.ts.map +0 -1
  203. package/packages/core/dist/scripts/add-ocean-profiles.js +0 -695
  204. package/packages/core/dist/scripts/add-ocean-profiles.js.map +0 -1
  205. package/packages/core/dist/scripts/benchmark-integration.d.ts +0 -182
  206. package/packages/core/dist/scripts/benchmark-integration.d.ts.map +0 -1
  207. package/packages/core/dist/scripts/benchmark-integration.js +0 -691
  208. package/packages/core/dist/scripts/benchmark-integration.js.map +0 -1
  209. package/packages/core/dist/scripts/benchmark-integration.test.d.ts +0 -13
  210. package/packages/core/dist/scripts/benchmark-integration.test.d.ts.map +0 -1
  211. package/packages/core/dist/scripts/benchmark-integration.test.js +0 -680
  212. package/packages/core/dist/scripts/benchmark-integration.test.js.map +0 -1
  213. package/packages/core/dist/scripts/debugging-scenarios.test.d.ts +0 -18
  214. package/packages/core/dist/scripts/debugging-scenarios.test.d.ts.map +0 -1
  215. package/packages/core/dist/scripts/debugging-scenarios.test.js +0 -317
  216. package/packages/core/dist/scripts/debugging-scenarios.test.js.map +0 -1
  217. package/packages/core/dist/scripts/generate-all-spiders.d.ts +0 -10
  218. package/packages/core/dist/scripts/generate-all-spiders.d.ts.map +0 -1
  219. package/packages/core/dist/scripts/generate-all-spiders.js +0 -306
  220. package/packages/core/dist/scripts/generate-all-spiders.js.map +0 -1
  221. package/packages/core/dist/scripts/generate-report.d.ts +0 -65
  222. package/packages/core/dist/scripts/generate-report.d.ts.map +0 -1
  223. package/packages/core/dist/scripts/generate-report.js +0 -378
  224. package/packages/core/dist/scripts/generate-report.js.map +0 -1
  225. package/packages/core/dist/scripts/generate-report.test.d.ts +0 -13
  226. package/packages/core/dist/scripts/generate-report.test.d.ts.map +0 -1
  227. package/packages/core/dist/scripts/generate-report.test.js +0 -363
  228. package/packages/core/dist/scripts/generate-report.test.js.map +0 -1
  229. package/packages/core/dist/scripts/generate-spider-report.d.ts +0 -65
  230. package/packages/core/dist/scripts/generate-spider-report.d.ts.map +0 -1
  231. package/packages/core/dist/scripts/generate-spider-report.js +0 -366
  232. package/packages/core/dist/scripts/generate-spider-report.js.map +0 -1
  233. package/packages/core/dist/scripts/generate-spider-report.test.d.ts +0 -13
  234. package/packages/core/dist/scripts/generate-spider-report.test.d.ts.map +0 -1
  235. package/packages/core/dist/scripts/generate-spider-report.test.js +0 -367
  236. package/packages/core/dist/scripts/generate-spider-report.test.js.map +0 -1
  237. package/packages/core/dist/scripts/generate-spider.d.ts +0 -47
  238. package/packages/core/dist/scripts/generate-spider.d.ts.map +0 -1
  239. package/packages/core/dist/scripts/generate-spider.js +0 -338
  240. package/packages/core/dist/scripts/generate-spider.js.map +0 -1
  241. package/packages/core/dist/scripts/generate-spider.test.d.ts +0 -14
  242. package/packages/core/dist/scripts/generate-spider.test.d.ts.map +0 -1
  243. package/packages/core/dist/scripts/generate-spider.test.js +0 -271
  244. package/packages/core/dist/scripts/generate-spider.test.js.map +0 -1
  245. package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +0 -1
  246. package/packages/core/dist/scripts/job-fair-aggregator.js +0 -547
  247. package/packages/core/dist/scripts/job-fair-aggregator.js.map +0 -1
  248. package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts +0 -14
  249. package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts.map +0 -1
  250. package/packages/core/dist/scripts/job-fair-aggregator.test.js +0 -616
  251. package/packages/core/dist/scripts/job-fair-aggregator.test.js.map +0 -1
  252. package/packages/core/dist/scripts/run-ci.test.d.ts +0 -20
  253. package/packages/core/dist/scripts/run-ci.test.d.ts.map +0 -1
  254. package/packages/core/dist/scripts/run-ci.test.js +0 -127
  255. package/packages/core/dist/scripts/run-ci.test.js.map +0 -1
  256. package/packages/core/dist/scripts/theme-detail.test.d.ts +0 -10
  257. package/packages/core/dist/scripts/theme-detail.test.d.ts.map +0 -1
  258. package/packages/core/dist/scripts/theme-detail.test.js +0 -199
  259. package/packages/core/dist/scripts/theme-detail.test.js.map +0 -1
  260. package/packages/core/dist/scripts/validate-ocean-profiles.d.ts +0 -9
  261. package/packages/core/dist/scripts/validate-ocean-profiles.d.ts.map +0 -1
  262. package/packages/core/dist/scripts/validate-ocean-profiles.js +0 -130
  263. package/packages/core/dist/scripts/validate-ocean-profiles.js.map +0 -1
  264. package/packages/core/dist/workflow/gate-handler.d.ts +0 -94
  265. package/packages/core/dist/workflow/gate-handler.d.ts.map +0 -1
  266. package/packages/core/dist/workflow/gate-handler.js +0 -189
  267. package/packages/core/dist/workflow/gate-handler.js.map +0 -1
  268. package/packages/core/dist/workflow/gate-handler.test.d.ts +0 -14
  269. package/packages/core/dist/workflow/gate-handler.test.d.ts.map +0 -1
  270. package/packages/core/dist/workflow/gate-handler.test.js +0 -543
  271. package/packages/core/dist/workflow/gate-handler.test.js.map +0 -1
  272. package/packages/core/dist/workflow/generic-handoff.d.ts +0 -281
  273. package/packages/core/dist/workflow/generic-handoff.d.ts.map +0 -1
  274. package/packages/core/dist/workflow/generic-handoff.js +0 -411
  275. package/packages/core/dist/workflow/generic-handoff.js.map +0 -1
  276. package/packages/core/dist/workflow/generic-handoff.test.d.ts +0 -21
  277. package/packages/core/dist/workflow/generic-handoff.test.d.ts.map +0 -1
  278. package/packages/core/dist/workflow/generic-handoff.test.js +0 -499
  279. package/packages/core/dist/workflow/generic-handoff.test.js.map +0 -1
  280. package/packages/core/dist/workflow/generic-sm-finish.d.ts +0 -89
  281. package/packages/core/dist/workflow/generic-sm-finish.d.ts.map +0 -1
  282. package/packages/core/dist/workflow/generic-sm-finish.js +0 -157
  283. package/packages/core/dist/workflow/generic-sm-finish.js.map +0 -1
  284. package/packages/core/dist/workflow/generic-sm-setup.d.ts +0 -138
  285. package/packages/core/dist/workflow/generic-sm-setup.d.ts.map +0 -1
  286. package/packages/core/dist/workflow/generic-sm-setup.js +0 -382
  287. package/packages/core/dist/workflow/generic-sm-setup.js.map +0 -1
  288. package/packages/core/dist/workflow/handoff.d.ts +0 -281
  289. package/packages/core/dist/workflow/handoff.d.ts.map +0 -1
  290. package/packages/core/dist/workflow/handoff.js +0 -411
  291. package/packages/core/dist/workflow/handoff.js.map +0 -1
  292. package/packages/core/dist/workflow/handoff.test.d.ts +0 -21
  293. package/packages/core/dist/workflow/handoff.test.d.ts.map +0 -1
  294. package/packages/core/dist/workflow/handoff.test.js +0 -499
  295. package/packages/core/dist/workflow/handoff.test.js.map +0 -1
  296. package/packages/core/dist/workflow/index.d.ts.map +0 -1
  297. package/packages/core/dist/workflow/index.js +0 -24
  298. package/packages/core/dist/workflow/index.js.map +0 -1
  299. package/packages/core/dist/workflow/session-state.d.ts +0 -92
  300. package/packages/core/dist/workflow/session-state.d.ts.map +0 -1
  301. package/packages/core/dist/workflow/session-state.js +0 -198
  302. package/packages/core/dist/workflow/session-state.js.map +0 -1
  303. package/packages/core/dist/workflow/session-state.test.d.ts +0 -8
  304. package/packages/core/dist/workflow/session-state.test.d.ts.map +0 -1
  305. package/packages/core/dist/workflow/session-state.test.js +0 -551
  306. package/packages/core/dist/workflow/session-state.test.js.map +0 -1
  307. package/packages/core/dist/workflow/sm-subagents.test.d.ts +0 -23
  308. package/packages/core/dist/workflow/sm-subagents.test.d.ts.map +0 -1
  309. package/packages/core/dist/workflow/sm-subagents.test.js +0 -727
  310. package/packages/core/dist/workflow/sm-subagents.test.js.map +0 -1
  311. package/packages/core/dist/workflow/step-parser.d.ts +0 -45
  312. package/packages/core/dist/workflow/step-parser.d.ts.map +0 -1
  313. package/packages/core/dist/workflow/step-parser.js +0 -147
  314. package/packages/core/dist/workflow/step-parser.js.map +0 -1
  315. package/packages/core/dist/workflow/step-parser.test.d.ts +0 -14
  316. package/packages/core/dist/workflow/step-parser.test.d.ts.map +0 -1
  317. package/packages/core/dist/workflow/step-parser.test.js +0 -470
  318. package/packages/core/dist/workflow/step-parser.test.js.map +0 -1
  319. package/packages/core/dist/workflow/story-workflow-routing.test.d.ts +0 -17
  320. package/packages/core/dist/workflow/story-workflow-routing.test.d.ts.map +0 -1
  321. package/packages/core/dist/workflow/story-workflow-routing.test.js +0 -559
  322. package/packages/core/dist/workflow/story-workflow-routing.test.js.map +0 -1
  323. package/packages/core/dist/workflow/test-cache.d.ts +0 -131
  324. package/packages/core/dist/workflow/test-cache.d.ts.map +0 -1
  325. package/packages/core/dist/workflow/test-cache.js +0 -226
  326. package/packages/core/dist/workflow/test-cache.js.map +0 -1
  327. package/packages/core/dist/workflow/test-cache.test.d.ts +0 -17
  328. package/packages/core/dist/workflow/test-cache.test.d.ts.map +0 -1
  329. package/packages/core/dist/workflow/test-cache.test.js +0 -438
  330. package/packages/core/dist/workflow/test-cache.test.js.map +0 -1
  331. package/packages/core/dist/workflow/trimodal.d.ts +0 -86
  332. package/packages/core/dist/workflow/trimodal.d.ts.map +0 -1
  333. package/packages/core/dist/workflow/trimodal.js +0 -118
  334. package/packages/core/dist/workflow/trimodal.js.map +0 -1
  335. package/packages/core/dist/workflow/trimodal.test.d.ts +0 -11
  336. package/packages/core/dist/workflow/trimodal.test.d.ts.map +0 -1
  337. package/packages/core/dist/workflow/trimodal.test.js +0 -395
  338. package/packages/core/dist/workflow/trimodal.test.js.map +0 -1
  339. package/packages/core/dist/workflow/variable-resolver.d.ts +0 -67
  340. package/packages/core/dist/workflow/variable-resolver.d.ts.map +0 -1
  341. package/packages/core/dist/workflow/variable-resolver.js +0 -156
  342. package/packages/core/dist/workflow/variable-resolver.js.map +0 -1
  343. package/packages/core/dist/workflow/variable-resolver.test.d.ts +0 -14
  344. package/packages/core/dist/workflow/variable-resolver.test.d.ts.map +0 -1
  345. package/packages/core/dist/workflow/variable-resolver.test.js +0 -400
  346. package/packages/core/dist/workflow/variable-resolver.test.js.map +0 -1
  347. package/packages/core/dist/workflow/workflow-executor.d.ts +0 -163
  348. package/packages/core/dist/workflow/workflow-executor.d.ts.map +0 -1
  349. package/packages/core/dist/workflow/workflow-executor.js +0 -197
  350. package/packages/core/dist/workflow/workflow-executor.js.map +0 -1
  351. package/packages/core/dist/workflow/workflow-executor.test.d.ts +0 -8
  352. package/packages/core/dist/workflow/workflow-executor.test.d.ts.map +0 -1
  353. package/packages/core/dist/workflow/workflow-executor.test.js +0 -444
  354. package/packages/core/dist/workflow/workflow-executor.test.js.map +0 -1
  355. package/packages/core/dist/workflow/workflow-loader.d.ts.map +0 -1
  356. package/packages/core/dist/workflow/workflow-loader.js.map +0 -1
  357. package/packages/core/dist/workflow/workflow-loader.test.d.ts +0 -15
  358. package/packages/core/dist/workflow/workflow-loader.test.d.ts.map +0 -1
  359. package/packages/core/dist/workflow/workflow-loader.test.js +0 -354
  360. package/packages/core/dist/workflow/workflow-loader.test.js.map +0 -1
  361. package/packages/core/dist/workflow/workflow-migration.test.d.ts +0 -17
  362. package/packages/core/dist/workflow/workflow-migration.test.d.ts.map +0 -1
  363. package/packages/core/dist/workflow/workflow-migration.test.js +0 -371
  364. package/packages/core/dist/workflow/workflow-migration.test.js.map +0 -1
  365. package/packages/core/dist/workflow/workflow-permissions.d.ts.map +0 -1
  366. package/packages/core/dist/workflow/workflow-permissions.js.map +0 -1
  367. package/packages/core/dist/workflow/workflow-permissions.test.d.ts +0 -15
  368. package/packages/core/dist/workflow/workflow-permissions.test.d.ts.map +0 -1
  369. package/packages/core/dist/workflow/workflow-permissions.test.js +0 -301
  370. package/packages/core/dist/workflow/workflow-permissions.test.js.map +0 -1
  371. package/packages/core/dist/workflow/workflow-router.d.ts.map +0 -1
  372. package/packages/core/dist/workflow/workflow-router.js.map +0 -1
  373. package/packages/core/dist/workflow/workflow-router.test.d.ts +0 -20
  374. package/packages/core/dist/workflow/workflow-router.test.d.ts.map +0 -1
  375. package/packages/core/dist/workflow/workflow-router.test.js +0 -607
  376. package/packages/core/dist/workflow/workflow-router.test.js.map +0 -1
  377. package/packages/core/dist/workflow/workflow-schema.d.ts.map +0 -1
  378. package/packages/core/dist/workflow/workflow-schema.js.map +0 -1
  379. package/packages/core/dist/workflow/workflow-schema.test.d.ts +0 -45
  380. package/packages/core/dist/workflow/workflow-schema.test.d.ts.map +0 -1
  381. package/packages/core/dist/workflow/workflow-schema.test.js +0 -512
  382. package/packages/core/dist/workflow/workflow-schema.test.js.map +0 -1
  383. package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts +0 -18
  384. package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts.map +0 -1
  385. package/packages/core/dist/workflow/workflow-stepped-schema.test.js +0 -608
  386. package/packages/core/dist/workflow/workflow-stepped-schema.test.js.map +0 -1
  387. package/pennyfarthing-dist/agents/README.md +0 -340
  388. package/pennyfarthing-dist/agents/architect.md +0 -193
  389. package/pennyfarthing-dist/agents/dev.md +0 -254
  390. package/pennyfarthing-dist/agents/devops.md +0 -206
  391. package/pennyfarthing-dist/agents/handoff.md +0 -289
  392. package/pennyfarthing-dist/agents/orchestrator.md +0 -355
  393. package/pennyfarthing-dist/agents/pm.md +0 -169
  394. package/pennyfarthing-dist/agents/reviewer-preflight.md +0 -96
  395. package/pennyfarthing-dist/agents/reviewer.md +0 -382
  396. package/pennyfarthing-dist/agents/sm-file-summary.md +0 -58
  397. package/pennyfarthing-dist/agents/sm-finish.md +0 -61
  398. package/pennyfarthing-dist/agents/sm-handoff.md +0 -145
  399. package/pennyfarthing-dist/agents/sm-setup.md +0 -174
  400. package/pennyfarthing-dist/agents/sm.md +0 -632
  401. package/pennyfarthing-dist/agents/tea.md +0 -213
  402. package/pennyfarthing-dist/agents/tech-writer.md +0 -216
  403. package/pennyfarthing-dist/agents/testing-runner.md +0 -141
  404. package/pennyfarthing-dist/agents/ux-designer.md +0 -231
  405. package/pennyfarthing-dist/agents/workflow-status-check.md +0 -68
  406. package/pennyfarthing-dist/commands/architect.md +0 -62
  407. package/pennyfarthing-dist/commands/benchmark-control.md +0 -69
  408. package/pennyfarthing-dist/commands/benchmark.md +0 -467
  409. package/pennyfarthing-dist/commands/brainstorming.md +0 -91
  410. package/pennyfarthing-dist/commands/check.md +0 -156
  411. package/pennyfarthing-dist/commands/chore.md +0 -178
  412. package/pennyfarthing-dist/commands/close-epic.md +0 -139
  413. package/pennyfarthing-dist/commands/continue-session.md +0 -184
  414. package/pennyfarthing-dist/commands/create-branches-from-story.md +0 -358
  415. package/pennyfarthing-dist/commands/create-theme.md +0 -29
  416. package/pennyfarthing-dist/commands/dev.md +0 -60
  417. package/pennyfarthing-dist/commands/devops.md +0 -59
  418. package/pennyfarthing-dist/commands/git-cleanup.md +0 -340
  419. package/pennyfarthing-dist/commands/health-check.md +0 -108
  420. package/pennyfarthing-dist/commands/help.md +0 -264
  421. package/pennyfarthing-dist/commands/job-fair.md +0 -102
  422. package/pennyfarthing-dist/commands/list-themes.md +0 -21
  423. package/pennyfarthing-dist/commands/orchestrator.md +0 -56
  424. package/pennyfarthing-dist/commands/parallel-work.md +0 -71
  425. package/pennyfarthing-dist/commands/party-mode.md +0 -67
  426. package/pennyfarthing-dist/commands/permissions.md +0 -193
  427. package/pennyfarthing-dist/commands/pm.md +0 -60
  428. package/pennyfarthing-dist/commands/prime.md +0 -140
  429. package/pennyfarthing-dist/commands/release.md +0 -58
  430. package/pennyfarthing-dist/commands/repo-status.md +0 -49
  431. package/pennyfarthing-dist/commands/retro.md +0 -200
  432. package/pennyfarthing-dist/commands/reviewer.md +0 -64
  433. package/pennyfarthing-dist/commands/run-ci.md +0 -116
  434. package/pennyfarthing-dist/commands/set-theme.md +0 -56
  435. package/pennyfarthing-dist/commands/show-theme.md +0 -21
  436. package/pennyfarthing-dist/commands/sm.md +0 -70
  437. package/pennyfarthing-dist/commands/solo.md +0 -411
  438. package/pennyfarthing-dist/commands/sprint-planning.md +0 -109
  439. package/pennyfarthing-dist/commands/start-epic.md +0 -168
  440. package/pennyfarthing-dist/commands/sync-epic-to-jira.md +0 -184
  441. package/pennyfarthing-dist/commands/sync-work-with-sprint.md +0 -373
  442. package/pennyfarthing-dist/commands/tea.md +0 -63
  443. package/pennyfarthing-dist/commands/tech-writer.md +0 -53
  444. package/pennyfarthing-dist/commands/theme-maker.md +0 -671
  445. package/pennyfarthing-dist/commands/update-domain-docs.md +0 -83
  446. package/pennyfarthing-dist/commands/ux-designer.md +0 -62
  447. package/pennyfarthing-dist/commands/work.md +0 -122
  448. package/pennyfarthing-dist/commands/workflow.md +0 -21
  449. package/pennyfarthing-dist/guides/AGENT-COORDINATION.md +0 -480
  450. package/pennyfarthing-dist/guides/HOOKS.md +0 -230
  451. package/pennyfarthing-dist/guides/PROMPT-PATTERNS.md +0 -338
  452. package/pennyfarthing-dist/guides/SESSION-ARTIFACTS.md +0 -193
  453. package/pennyfarthing-dist/guides/agent-behavior.md +0 -238
  454. package/pennyfarthing-dist/guides/agent-template-strategic.md +0 -148
  455. package/pennyfarthing-dist/guides/agent-template-tactical.md +0 -162
  456. package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +0 -746
  457. package/pennyfarthing-dist/guides/patterns/fan-out-fan-in-pattern.md +0 -574
  458. package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +0 -488
  459. package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +0 -402
  460. package/pennyfarthing-dist/guides/permission-protocol.md +0 -188
  461. package/pennyfarthing-dist/guides/persona-loading.md +0 -46
  462. package/pennyfarthing-dist/guides/workflow-schema.md +0 -257
  463. package/pennyfarthing-dist/guides/worktree-mode.md +0 -113
  464. package/pennyfarthing-dist/output-styles/teaching.md +0 -33
  465. package/pennyfarthing-dist/output-styles/terse.md +0 -20
  466. package/pennyfarthing-dist/output-styles/verbose.md +0 -28
  467. package/pennyfarthing-dist/personas/themes/1984.yaml +0 -312
  468. package/pennyfarthing-dist/personas/themes/a-team.yaml +0 -207
  469. package/pennyfarthing-dist/personas/themes/agatha-christie.yaml +0 -300
  470. package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +0 -330
  471. package/pennyfarthing-dist/personas/themes/all-stars.yaml +0 -332
  472. package/pennyfarthing-dist/personas/themes/ancient-philosophers.yaml +0 -320
  473. package/pennyfarthing-dist/personas/themes/ancient-strategists.yaml +0 -306
  474. package/pennyfarthing-dist/personas/themes/arcane.yaml +0 -288
  475. package/pennyfarthing-dist/personas/themes/arthurian-mythos.yaml +0 -331
  476. package/pennyfarthing-dist/personas/themes/avatar-the-last-airbender.yaml +0 -288
  477. package/pennyfarthing-dist/personas/themes/babylon-5.yaml +0 -288
  478. package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +0 -288
  479. package/pennyfarthing-dist/personas/themes/better-call-saul.yaml +0 -288
  480. package/pennyfarthing-dist/personas/themes/big-lebowski.yaml +0 -300
  481. package/pennyfarthing-dist/personas/themes/black-sails.yaml +0 -300
  482. package/pennyfarthing-dist/personas/themes/blade-runner.yaml +0 -295
  483. package/pennyfarthing-dist/personas/themes/bobiverse.yaml +0 -288
  484. package/pennyfarthing-dist/personas/themes/breaking-bad.yaml +0 -327
  485. package/pennyfarthing-dist/personas/themes/catch-22.yaml +0 -316
  486. package/pennyfarthing-dist/personas/themes/classical-composers.yaml +0 -310
  487. package/pennyfarthing-dist/personas/themes/control.yaml +0 -197
  488. package/pennyfarthing-dist/personas/themes/count-of-monte-cristo.yaml +0 -320
  489. package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +0 -323
  490. package/pennyfarthing-dist/personas/themes/deadwood.yaml +0 -300
  491. package/pennyfarthing-dist/personas/themes/dickens.yaml +0 -320
  492. package/pennyfarthing-dist/personas/themes/discworld.yaml +0 -332
  493. package/pennyfarthing-dist/personas/themes/doctor-who.yaml +0 -290
  494. package/pennyfarthing-dist/personas/themes/don-quixote.yaml +0 -320
  495. package/pennyfarthing-dist/personas/themes/dune.yaml +0 -307
  496. package/pennyfarthing-dist/personas/themes/enlightenment-thinkers.yaml +0 -320
  497. package/pennyfarthing-dist/personas/themes/expeditionary-force.yaml +0 -288
  498. package/pennyfarthing-dist/personas/themes/fargo.yaml +0 -330
  499. package/pennyfarthing-dist/personas/themes/film-auteurs.yaml +0 -312
  500. package/pennyfarthing-dist/personas/themes/firefly.yaml +0 -328
  501. package/pennyfarthing-dist/personas/themes/foundation.yaml +0 -290
  502. package/pennyfarthing-dist/personas/themes/futurama.yaml +0 -321
  503. package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +0 -290
  504. package/pennyfarthing-dist/personas/themes/gilligans-island.yaml +0 -243
  505. package/pennyfarthing-dist/personas/themes/gothic-literature.yaml +0 -308
  506. package/pennyfarthing-dist/personas/themes/great-gatsby.yaml +0 -308
  507. package/pennyfarthing-dist/personas/themes/greek-mythology.yaml +0 -330
  508. package/pennyfarthing-dist/personas/themes/hannibal.yaml +0 -300
  509. package/pennyfarthing-dist/personas/themes/harry-potter.yaml +0 -324
  510. package/pennyfarthing-dist/personas/themes/his-dark-materials.yaml +0 -291
  511. package/pennyfarthing-dist/personas/themes/historical-figures.yaml +0 -288
  512. package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +0 -331
  513. package/pennyfarthing-dist/personas/themes/house-md.yaml +0 -321
  514. package/pennyfarthing-dist/personas/themes/imperial-radch.yaml +0 -289
  515. package/pennyfarthing-dist/personas/themes/inspector-morse.yaml +0 -300
  516. package/pennyfarthing-dist/personas/themes/jane-austen.yaml +0 -287
  517. package/pennyfarthing-dist/personas/themes/jazz-legends.yaml +0 -320
  518. package/pennyfarthing-dist/personas/themes/justified.yaml +0 -300
  519. package/pennyfarthing-dist/personas/themes/legion-of-doom.yaml +0 -219
  520. package/pennyfarthing-dist/personas/themes/les-miserables.yaml +0 -299
  521. package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +0 -334
  522. package/pennyfarthing-dist/personas/themes/lovecraft-mythos.yaml +0 -334
  523. package/pennyfarthing-dist/personas/themes/mad-max.yaml +0 -355
  524. package/pennyfarthing-dist/personas/themes/mad-men.yaml +0 -289
  525. package/pennyfarthing-dist/personas/themes/marvel-mcu.yaml +0 -300
  526. package/pennyfarthing-dist/personas/themes/mash.yaml +0 -337
  527. package/pennyfarthing-dist/personas/themes/mass-effect.yaml +0 -289
  528. package/pennyfarthing-dist/personas/themes/military-commanders.yaml +0 -306
  529. package/pennyfarthing-dist/personas/themes/moby-dick.yaml +0 -320
  530. package/pennyfarthing-dist/personas/themes/monty-python.yaml +0 -303
  531. package/pennyfarthing-dist/personas/themes/neuromancer.yaml +0 -300
  532. package/pennyfarthing-dist/personas/themes/norse-mythology.yaml +0 -329
  533. package/pennyfarthing-dist/personas/themes/parks-and-rec.yaml +0 -242
  534. package/pennyfarthing-dist/personas/themes/peaky-blinders.yaml +0 -298
  535. package/pennyfarthing-dist/personas/themes/princess-bride.yaml +0 -220
  536. package/pennyfarthing-dist/personas/themes/renaissance-masters.yaml +0 -320
  537. package/pennyfarthing-dist/personas/themes/rome.yaml +0 -300
  538. package/pennyfarthing-dist/personas/themes/russian-masters.yaml +0 -318
  539. package/pennyfarthing-dist/personas/themes/sandman.yaml +0 -288
  540. package/pennyfarthing-dist/personas/themes/scientific-revolutionaries.yaml +0 -320
  541. package/pennyfarthing-dist/personas/themes/shakespeare.yaml +0 -301
  542. package/pennyfarthing-dist/personas/themes/sherlock-holmes.yaml +0 -289
  543. package/pennyfarthing-dist/personas/themes/snow-crash.yaml +0 -288
  544. package/pennyfarthing-dist/personas/themes/software-pioneers.yaml +0 -300
  545. package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +0 -230
  546. package/pennyfarthing-dist/personas/themes/star-trek-tos.yaml +0 -210
  547. package/pennyfarthing-dist/personas/themes/star-wars.yaml +0 -303
  548. package/pennyfarthing-dist/personas/themes/succession.yaml +0 -300
  549. package/pennyfarthing-dist/personas/themes/superfriends.yaml +0 -208
  550. package/pennyfarthing-dist/personas/themes/ted-lasso.yaml +0 -236
  551. package/pennyfarthing-dist/personas/themes/the-americans.yaml +0 -300
  552. package/pennyfarthing-dist/personas/themes/the-crown.yaml +0 -300
  553. package/pennyfarthing-dist/personas/themes/the-expanse.yaml +0 -213
  554. package/pennyfarthing-dist/personas/themes/the-good-place.yaml +0 -322
  555. package/pennyfarthing-dist/personas/themes/the-matrix.yaml +0 -353
  556. package/pennyfarthing-dist/personas/themes/the-odyssey.yaml +0 -300
  557. package/pennyfarthing-dist/personas/themes/the-office.yaml +0 -330
  558. package/pennyfarthing-dist/personas/themes/the-simpsons.yaml +0 -308
  559. package/pennyfarthing-dist/personas/themes/the-sopranos.yaml +0 -300
  560. package/pennyfarthing-dist/personas/themes/the-wire.yaml +0 -311
  561. package/pennyfarthing-dist/personas/themes/the-witcher.yaml +0 -300
  562. package/pennyfarthing-dist/personas/themes/twin-peaks.yaml +0 -302
  563. package/pennyfarthing-dist/personas/themes/vorkosigan-saga.yaml +0 -300
  564. package/pennyfarthing-dist/personas/themes/watchmen.yaml +0 -291
  565. package/pennyfarthing-dist/personas/themes/west-wing.yaml +0 -291
  566. package/pennyfarthing-dist/personas/themes/world-explorers.yaml +0 -320
  567. package/pennyfarthing-dist/personas/themes/wwii-leaders.yaml +0 -307
  568. package/pennyfarthing-dist/personas/themes/x-files.yaml +0 -302
  569. package/pennyfarthing-dist/scripts/README.md +0 -68
  570. package/pennyfarthing-dist/scripts/core/README.md +0 -26
  571. package/pennyfarthing-dist/scripts/core/agent-session.sh +0 -378
  572. package/pennyfarthing-dist/scripts/core/check-context.sh +0 -243
  573. package/pennyfarthing-dist/scripts/core/handoff-marker.sh +0 -90
  574. package/pennyfarthing-dist/scripts/core/prime.sh +0 -136
  575. package/pennyfarthing-dist/scripts/core/run.sh +0 -75
  576. package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +0 -21
  577. package/pennyfarthing-dist/scripts/git/README.md +0 -25
  578. package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +0 -226
  579. package/pennyfarthing-dist/scripts/git/git-status-all.sh +0 -127
  580. package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +0 -91
  581. package/pennyfarthing-dist/scripts/git/release.sh +0 -198
  582. package/pennyfarthing-dist/scripts/git/worktree-manager.sh +0 -494
  583. package/pennyfarthing-dist/scripts/hooks/README.md +0 -32
  584. package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +0 -60
  585. package/pennyfarthing-dist/scripts/hooks/context-warning.sh +0 -65
  586. package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +0 -35
  587. package/pennyfarthing-dist/scripts/hooks/post-merge.sh +0 -166
  588. package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +0 -50
  589. package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +0 -71
  590. package/pennyfarthing-dist/scripts/hooks/pre-push.sh +0 -54
  591. package/pennyfarthing-dist/scripts/hooks/session-start.sh +0 -97
  592. package/pennyfarthing-dist/scripts/hooks/session-stop.sh +0 -58
  593. package/pennyfarthing-dist/scripts/jira/README.md +0 -33
  594. package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +0 -101
  595. package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +0 -97
  596. package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.mjs +0 -327
  597. package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.test.mjs +0 -503
  598. package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +0 -164
  599. package/pennyfarthing-dist/scripts/jira/jira-lib.mjs +0 -443
  600. package/pennyfarthing-dist/scripts/jira/jira-lib.sh +0 -464
  601. package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +0 -266
  602. package/pennyfarthing-dist/scripts/jira/jira-sync-story.mjs +0 -208
  603. package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +0 -8
  604. package/pennyfarthing-dist/scripts/jira/jira-sync.mjs +0 -198
  605. package/pennyfarthing-dist/scripts/jira/jira-sync.sh +0 -8
  606. package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +0 -104
  607. package/pennyfarthing-dist/scripts/jira/sync-epic-to-jira.sh +0 -16
  608. package/pennyfarthing-dist/scripts/lib/README.md +0 -29
  609. package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
  610. package/pennyfarthing-dist/scripts/lib/checkpoint.sh +0 -136
  611. package/pennyfarthing-dist/scripts/lib/common.sh +0 -157
  612. package/pennyfarthing-dist/scripts/lib/file-lock.sh +0 -269
  613. package/pennyfarthing-dist/scripts/lib/find-root.sh +0 -35
  614. package/pennyfarthing-dist/scripts/lib/logging.sh +0 -186
  615. package/pennyfarthing-dist/scripts/lib/retry.sh +0 -76
  616. package/pennyfarthing-dist/scripts/misc/README.md +0 -44
  617. package/pennyfarthing-dist/scripts/misc/add-short-names.mjs +0 -264
  618. package/pennyfarthing-dist/scripts/misc/backlog.sh +0 -91
  619. package/pennyfarthing-dist/scripts/misc/check-status.sh +0 -247
  620. package/pennyfarthing-dist/scripts/misc/deploy.sh +0 -284
  621. package/pennyfarthing-dist/scripts/misc/doctor-dogfood.sh +0 -392
  622. package/pennyfarthing-dist/scripts/misc/find-related-work.sh +0 -231
  623. package/pennyfarthing-dist/scripts/misc/generate-skill-docs.sh +0 -110
  624. package/pennyfarthing-dist/scripts/misc/log-skill-usage.sh +0 -74
  625. package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.mjs +0 -474
  626. package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +0 -9
  627. package/pennyfarthing-dist/scripts/misc/repo-scan.sh +0 -141
  628. package/pennyfarthing-dist/scripts/misc/repo-utils.sh +0 -778
  629. package/pennyfarthing-dist/scripts/misc/run-ci.sh +0 -219
  630. package/pennyfarthing-dist/scripts/misc/run-timestamp.sh +0 -7
  631. package/pennyfarthing-dist/scripts/misc/session-cleanup.sh +0 -319
  632. package/pennyfarthing-dist/scripts/misc/skill-usage-report.sh +0 -193
  633. package/pennyfarthing-dist/scripts/misc/statusline.sh +0 -259
  634. package/pennyfarthing-dist/scripts/misc/uninstall.sh +0 -270
  635. package/pennyfarthing-dist/scripts/misc/validate-subagent-frontmatter.sh +0 -160
  636. package/pennyfarthing-dist/scripts/sprint/README.md +0 -29
  637. package/pennyfarthing-dist/scripts/sprint/archive-story.sh +0 -135
  638. package/pennyfarthing-dist/scripts/sprint/available-stories.sh +0 -97
  639. package/pennyfarthing-dist/scripts/sprint/check-story.sh +0 -164
  640. package/pennyfarthing-dist/scripts/sprint/get-epic-field.sh +0 -58
  641. package/pennyfarthing-dist/scripts/sprint/get-story-field.sh +0 -69
  642. package/pennyfarthing-dist/scripts/sprint/list-future.sh +0 -151
  643. package/pennyfarthing-dist/scripts/sprint/new-sprint.sh +0 -116
  644. package/pennyfarthing-dist/scripts/sprint/promote-epic.sh +0 -164
  645. package/pennyfarthing-dist/scripts/sprint/sprint-common.sh +0 -421
  646. package/pennyfarthing-dist/scripts/sprint/sprint-info.sh +0 -39
  647. package/pennyfarthing-dist/scripts/sprint/sprint-metrics.sh +0 -241
  648. package/pennyfarthing-dist/scripts/sprint/sprint-status.sh +0 -134
  649. package/pennyfarthing-dist/scripts/story/README.md +0 -23
  650. package/pennyfarthing-dist/scripts/story/create-story.sh +0 -159
  651. package/pennyfarthing-dist/scripts/story/size-story.sh +0 -198
  652. package/pennyfarthing-dist/scripts/story/story-template.sh +0 -162
  653. package/pennyfarthing-dist/scripts/test/README.md +0 -23
  654. package/pennyfarthing-dist/scripts/test/ground-truth-judge.py +0 -289
  655. package/pennyfarthing-dist/scripts/test/swebench-judge.py +0 -400
  656. package/pennyfarthing-dist/scripts/test/test-cache.sh +0 -165
  657. package/pennyfarthing-dist/scripts/test/test-setup.sh +0 -337
  658. package/pennyfarthing-dist/scripts/tests/check.test.sh +0 -582
  659. package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +0 -515
  660. package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +0 -599
  661. package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +0 -332
  662. package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +0 -573
  663. package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +0 -859
  664. package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +0 -662
  665. package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +0 -589
  666. package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +0 -105
  667. package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +0 -597
  668. package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +0 -514
  669. package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +0 -517
  670. package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +0 -331
  671. package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +0 -647
  672. package/pennyfarthing-dist/scripts/theme/README.md +0 -22
  673. package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +0 -203
  674. package/pennyfarthing-dist/scripts/theme/list-themes.sh +0 -73
  675. package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +0 -97
  676. package/pennyfarthing-dist/scripts/workflow/README.md +0 -28
  677. package/pennyfarthing-dist/scripts/workflow/check.sh +0 -497
  678. package/pennyfarthing-dist/scripts/workflow/finish-story.sh +0 -159
  679. package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +0 -228
  680. package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +0 -91
  681. package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +0 -163
  682. package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +0 -138
  683. package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +0 -256
  684. package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +0 -167
  685. package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +0 -242
  686. package/pennyfarthing-dist/skills/changelog/SKILL.md +0 -367
  687. package/pennyfarthing-dist/skills/code-review/SKILL.md +0 -168
  688. package/pennyfarthing-dist/skills/context-engineering/SKILL.md +0 -274
  689. package/pennyfarthing-dist/skills/cyclist/SKILL.md +0 -88
  690. package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +0 -437
  691. package/pennyfarthing-dist/skills/finalize-run/SKILL.md +0 -258
  692. package/pennyfarthing-dist/skills/jira/SKILL.md +0 -484
  693. package/pennyfarthing-dist/skills/judge/SKILL.md +0 -579
  694. package/pennyfarthing-dist/skills/just/SKILL.md +0 -403
  695. package/pennyfarthing-dist/skills/mermaid/SKILL.md +0 -240
  696. package/pennyfarthing-dist/skills/otel/skill.md +0 -223
  697. package/pennyfarthing-dist/skills/permissions/skill.md +0 -172
  698. package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +0 -178
  699. package/pennyfarthing-dist/skills/skill-registry.schema.json +0 -107
  700. package/pennyfarthing-dist/skills/skill-registry.yaml +0 -357
  701. package/pennyfarthing-dist/skills/sprint/scripts/archive-story.sh +0 -101
  702. package/pennyfarthing-dist/skills/sprint/scripts/available-stories.sh +0 -97
  703. package/pennyfarthing-dist/skills/sprint/scripts/check-story.sh +0 -164
  704. package/pennyfarthing-dist/skills/sprint/scripts/create-jira-epic.sh +0 -101
  705. package/pennyfarthing-dist/skills/sprint/scripts/new-sprint.sh +0 -116
  706. package/pennyfarthing-dist/skills/sprint/scripts/promote-epic.sh +0 -164
  707. package/pennyfarthing-dist/skills/sprint/scripts/sprint-info.sh +0 -39
  708. package/pennyfarthing-dist/skills/sprint/scripts/sprint-status.sh +0 -147
  709. package/pennyfarthing-dist/skills/sprint/scripts/sync-epic-jira.sh +0 -104
  710. package/pennyfarthing-dist/skills/sprint/skill.md +0 -465
  711. package/pennyfarthing-dist/skills/story/scripts/create-story.sh +0 -159
  712. package/pennyfarthing-dist/skills/story/scripts/size-story.sh +0 -198
  713. package/pennyfarthing-dist/skills/story/scripts/story-template.sh +0 -162
  714. package/pennyfarthing-dist/skills/story/skill.md +0 -219
  715. package/pennyfarthing-dist/skills/systematic-debugging/SKILL.md +0 -390
  716. package/pennyfarthing-dist/skills/testing/SKILL.md +0 -99
  717. package/pennyfarthing-dist/skills/testing/references/troubleshooting.md +0 -124
  718. package/pennyfarthing-dist/skills/theme/skill.md +0 -129
  719. package/pennyfarthing-dist/skills/theme-creation/SKILL.md +0 -169
  720. package/pennyfarthing-dist/skills/workflow/scripts/list-workflows.sh +0 -91
  721. package/pennyfarthing-dist/skills/workflow/scripts/resume-workflow.sh +0 -163
  722. package/pennyfarthing-dist/skills/workflow/scripts/show-workflow.sh +0 -138
  723. package/pennyfarthing-dist/skills/workflow/scripts/start-workflow.sh +0 -273
  724. package/pennyfarthing-dist/skills/workflow/scripts/workflow-status.sh +0 -167
  725. package/pennyfarthing-dist/skills/workflow/skill.md +0 -337
  726. package/pennyfarthing-dist/skills/yq/SKILL.md +0 -264
  727. package/pennyfarthing-dist/templates/LEADERBOARD.schema.yaml +0 -187
  728. package/pennyfarthing-dist/templates/LEADERBOARD.template.md +0 -59
  729. package/pennyfarthing-dist/templates/agent-scopes.yaml.template +0 -276
  730. package/pennyfarthing-dist/templates/pennyfarthing-settings.yaml.template +0 -61
  731. package/pennyfarthing-dist/templates/persona-config.yaml.template +0 -22
  732. package/pennyfarthing-dist/templates/preferences.yaml.template +0 -15
  733. package/pennyfarthing-dist/templates/settings.local.json.template +0 -90
  734. package/pennyfarthing-dist/templates/setup-env.sh.template +0 -18
  735. package/pennyfarthing-dist/templates/shared-context.md.template +0 -70
  736. package/pennyfarthing-dist/templates/sidecar/decisions.md.template +0 -40
  737. package/pennyfarthing-dist/templates/sidecar/gotchas.md.template +0 -37
  738. package/pennyfarthing-dist/templates/sidecar/patterns.md.template +0 -34
  739. package/pennyfarthing-dist/workflows/agent-docs.yaml +0 -70
  740. package/pennyfarthing-dist/workflows/architecture/steps/step-01-initialize.md +0 -101
  741. package/pennyfarthing-dist/workflows/architecture/steps/step-01b-continue.md +0 -93
  742. package/pennyfarthing-dist/workflows/architecture/steps/step-02-context.md +0 -115
  743. package/pennyfarthing-dist/workflows/architecture/steps/step-03-patterns.md +0 -133
  744. package/pennyfarthing-dist/workflows/architecture/steps/step-04-components.md +0 -138
  745. package/pennyfarthing-dist/workflows/architecture/steps/step-05-interfaces.md +0 -133
  746. package/pennyfarthing-dist/workflows/architecture/steps/step-06-risks.md +0 -142
  747. package/pennyfarthing-dist/workflows/architecture/steps/step-07-document.md +0 -160
  748. package/pennyfarthing-dist/workflows/architecture/templates/architecture-decision.md +0 -102
  749. package/pennyfarthing-dist/workflows/architecture.yaml +0 -65
  750. package/pennyfarthing-dist/workflows/bdd.yaml +0 -60
  751. package/pennyfarthing-dist/workflows/brainstorming/brain-methods.csv +0 -62
  752. package/pennyfarthing-dist/workflows/brainstorming/checklist.md +0 -44
  753. package/pennyfarthing-dist/workflows/brainstorming/instructions.md +0 -736
  754. package/pennyfarthing-dist/workflows/brainstorming/workflow.yaml +0 -49
  755. package/pennyfarthing-dist/workflows/code-review/checklist.md +0 -23
  756. package/pennyfarthing-dist/workflows/code-review/instructions.md +0 -234
  757. package/pennyfarthing-dist/workflows/code-review/workflow.yaml +0 -51
  758. package/pennyfarthing-dist/workflows/dev-story/checklist.md +0 -80
  759. package/pennyfarthing-dist/workflows/dev-story/instructions.xml +0 -410
  760. package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +0 -50
  761. package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-01-validate-prerequisites.md +0 -256
  762. package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-02-design-epics.md +0 -233
  763. package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-03-create-stories.md +0 -272
  764. package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-04-final-validation.md +0 -145
  765. package/pennyfarthing-dist/workflows/epics-and-stories/templates/epics-template.md +0 -57
  766. package/pennyfarthing-dist/workflows/epics-and-stories/workflow.yaml +0 -27
  767. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-01-document-discovery.md +0 -190
  768. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-02-prd-analysis.md +0 -178
  769. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -179
  770. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-04-ux-alignment.md +0 -139
  771. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-05-epic-quality-review.md +0 -252
  772. package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-06-final-assessment.md +0 -133
  773. package/pennyfarthing-dist/workflows/implementation-readiness/templates/readiness-report-template.md +0 -4
  774. package/pennyfarthing-dist/workflows/implementation-readiness/workflow.yaml +0 -40
  775. package/pennyfarthing-dist/workflows/prd/data/domain-complexity.csv +0 -13
  776. package/pennyfarthing-dist/workflows/prd/data/prd-purpose.md +0 -197
  777. package/pennyfarthing-dist/workflows/prd/data/project-types.csv +0 -11
  778. package/pennyfarthing-dist/workflows/prd/steps-c/step-01-init.md +0 -191
  779. package/pennyfarthing-dist/workflows/prd/steps-c/step-01b-continue.md +0 -153
  780. package/pennyfarthing-dist/workflows/prd/steps-c/step-02-discovery.md +0 -224
  781. package/pennyfarthing-dist/workflows/prd/steps-c/step-03-success.md +0 -226
  782. package/pennyfarthing-dist/workflows/prd/steps-c/step-04-journeys.md +0 -213
  783. package/pennyfarthing-dist/workflows/prd/steps-c/step-05-domain.md +0 -207
  784. package/pennyfarthing-dist/workflows/prd/steps-c/step-06-innovation.md +0 -226
  785. package/pennyfarthing-dist/workflows/prd/steps-c/step-07-project-type.md +0 -237
  786. package/pennyfarthing-dist/workflows/prd/steps-c/step-08-scoping.md +0 -228
  787. package/pennyfarthing-dist/workflows/prd/steps-c/step-09-functional.md +0 -231
  788. package/pennyfarthing-dist/workflows/prd/steps-c/step-10-nonfunctional.md +0 -242
  789. package/pennyfarthing-dist/workflows/prd/steps-c/step-11-polish.md +0 -217
  790. package/pennyfarthing-dist/workflows/prd/steps-c/step-12-complete.md +0 -180
  791. package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01-discovery.md +0 -247
  792. package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01b-legacy-conversion.md +0 -208
  793. package/pennyfarthing-dist/workflows/prd/steps-e/step-e-02-review.md +0 -249
  794. package/pennyfarthing-dist/workflows/prd/steps-e/step-e-03-edit.md +0 -253
  795. package/pennyfarthing-dist/workflows/prd/steps-e/step-e-04-complete.md +0 -168
  796. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-01-discovery.md +0 -218
  797. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02-format-detection.md +0 -191
  798. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02b-parity-check.md +0 -209
  799. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-03-density-validation.md +0 -174
  800. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
  801. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-05-measurability-validation.md +0 -228
  802. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-06-traceability-validation.md +0 -217
  803. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
  804. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
  805. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-09-project-type-validation.md +0 -263
  806. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-10-smart-validation.md +0 -209
  807. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
  808. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-12-completeness-validation.md +0 -242
  809. package/pennyfarthing-dist/workflows/prd/steps-v/step-v-13-report-complete.md +0 -232
  810. package/pennyfarthing-dist/workflows/prd/templates/prd-template.md +0 -10
  811. package/pennyfarthing-dist/workflows/prd/workflow.yaml +0 -42
  812. package/pennyfarthing-dist/workflows/product-brief/steps/step-01-init.md +0 -177
  813. package/pennyfarthing-dist/workflows/product-brief/steps/step-01b-continue.md +0 -161
  814. package/pennyfarthing-dist/workflows/product-brief/steps/step-02-vision.md +0 -199
  815. package/pennyfarthing-dist/workflows/product-brief/steps/step-03-users.md +0 -202
  816. package/pennyfarthing-dist/workflows/product-brief/steps/step-04-metrics.md +0 -205
  817. package/pennyfarthing-dist/workflows/product-brief/steps/step-05-scope.md +0 -219
  818. package/pennyfarthing-dist/workflows/product-brief/steps/step-06-complete.md +0 -194
  819. package/pennyfarthing-dist/workflows/product-brief/templates/product-brief.template.md +0 -10
  820. package/pennyfarthing-dist/workflows/product-brief/workflow.yaml +0 -31
  821. package/pennyfarthing-dist/workflows/project-context/project-context-template.md +0 -21
  822. package/pennyfarthing-dist/workflows/project-context/steps/step-01-discover.md +0 -184
  823. package/pennyfarthing-dist/workflows/project-context/steps/step-02-generate.md +0 -318
  824. package/pennyfarthing-dist/workflows/project-context/steps/step-03-complete.md +0 -278
  825. package/pennyfarthing-dist/workflows/project-context/workflow.yaml +0 -27
  826. package/pennyfarthing-dist/workflows/quick-dev/steps/step-01-mode-detection.md +0 -156
  827. package/pennyfarthing-dist/workflows/quick-dev/steps/step-02-context-gathering.md +0 -120
  828. package/pennyfarthing-dist/workflows/quick-dev/steps/step-03-execute.md +0 -113
  829. package/pennyfarthing-dist/workflows/quick-dev/steps/step-04-self-check.md +0 -113
  830. package/pennyfarthing-dist/workflows/quick-dev/steps/step-05-adversarial-review.md +0 -106
  831. package/pennyfarthing-dist/workflows/quick-dev/steps/step-06-resolve-findings.md +0 -140
  832. package/pennyfarthing-dist/workflows/quick-dev/workflow.yaml +0 -27
  833. package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +0 -189
  834. package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +0 -144
  835. package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +0 -128
  836. package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +0 -191
  837. package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +0 -74
  838. package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +0 -27
  839. package/pennyfarthing-dist/workflows/research/steps-domain/step-01-init.md +0 -137
  840. package/pennyfarthing-dist/workflows/research/steps-domain/step-02-domain-analysis.md +0 -229
  841. package/pennyfarthing-dist/workflows/research/steps-domain/step-03-competitive-landscape.md +0 -238
  842. package/pennyfarthing-dist/workflows/research/steps-domain/step-04-regulatory-focus.md +0 -206
  843. package/pennyfarthing-dist/workflows/research/steps-domain/step-05-technical-trends.md +0 -234
  844. package/pennyfarthing-dist/workflows/research/steps-domain/step-06-research-synthesis.md +0 -443
  845. package/pennyfarthing-dist/workflows/research/steps-market/step-01-init.md +0 -182
  846. package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-behavior.md +0 -237
  847. package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-insights.md +0 -200
  848. package/pennyfarthing-dist/workflows/research/steps-market/step-03-customer-pain-points.md +0 -249
  849. package/pennyfarthing-dist/workflows/research/steps-market/step-04-customer-decisions.md +0 -259
  850. package/pennyfarthing-dist/workflows/research/steps-market/step-05-competitive-analysis.md +0 -177
  851. package/pennyfarthing-dist/workflows/research/steps-market/step-06-research-completion.md +0 -475
  852. package/pennyfarthing-dist/workflows/research/steps-technical/step-01-init.md +0 -137
  853. package/pennyfarthing-dist/workflows/research/steps-technical/step-02-technical-overview.md +0 -239
  854. package/pennyfarthing-dist/workflows/research/steps-technical/step-03-integration-patterns.md +0 -248
  855. package/pennyfarthing-dist/workflows/research/steps-technical/step-04-architectural-patterns.md +0 -202
  856. package/pennyfarthing-dist/workflows/research/steps-technical/step-05-implementation-research.md +0 -239
  857. package/pennyfarthing-dist/workflows/research/steps-technical/step-06-research-synthesis.md +0 -486
  858. package/pennyfarthing-dist/workflows/research/templates/research.template.md +0 -29
  859. package/pennyfarthing-dist/workflows/research/workflow.yaml +0 -45
  860. package/pennyfarthing-dist/workflows/retrospective/checklist.md +0 -31
  861. package/pennyfarthing-dist/workflows/retrospective/instructions.md +0 -1443
  862. package/pennyfarthing-dist/workflows/retrospective/workflow.yaml +0 -50
  863. package/pennyfarthing-dist/workflows/sprint-planning/checklist.md +0 -33
  864. package/pennyfarthing-dist/workflows/sprint-planning/sprint-status-template.yaml +0 -55
  865. package/pennyfarthing-dist/workflows/sprint-planning/steps/step-01-parse-epic-files.md +0 -54
  866. package/pennyfarthing-dist/workflows/sprint-planning/steps/step-02-build-sprint-status.md +0 -44
  867. package/pennyfarthing-dist/workflows/sprint-planning/steps/step-03-status-detection.md +0 -64
  868. package/pennyfarthing-dist/workflows/sprint-planning/steps/step-04-generate-status-file.md +0 -73
  869. package/pennyfarthing-dist/workflows/sprint-planning/steps/step-05-validate-and-report.md +0 -56
  870. package/pennyfarthing-dist/workflows/sprint-planning/workflow.yaml +0 -34
  871. package/pennyfarthing-dist/workflows/tdd.yaml +0 -50
  872. package/pennyfarthing-dist/workflows/trivial.yaml +0 -40
  873. package/pennyfarthing-dist/workflows/ux-design/steps/step-01-init.md +0 -135
  874. package/pennyfarthing-dist/workflows/ux-design/steps/step-01b-continue.md +0 -127
  875. package/pennyfarthing-dist/workflows/ux-design/steps/step-02-discovery.md +0 -190
  876. package/pennyfarthing-dist/workflows/ux-design/steps/step-03-core-experience.md +0 -216
  877. package/pennyfarthing-dist/workflows/ux-design/steps/step-04-emotional-response.md +0 -219
  878. package/pennyfarthing-dist/workflows/ux-design/steps/step-05-inspiration.md +0 -234
  879. package/pennyfarthing-dist/workflows/ux-design/steps/step-06-design-system.md +0 -252
  880. package/pennyfarthing-dist/workflows/ux-design/steps/step-07-defining-experience.md +0 -254
  881. package/pennyfarthing-dist/workflows/ux-design/steps/step-08-visual-foundation.md +0 -224
  882. package/pennyfarthing-dist/workflows/ux-design/steps/step-09-design-directions.md +0 -224
  883. package/pennyfarthing-dist/workflows/ux-design/steps/step-10-user-journeys.md +0 -241
  884. package/pennyfarthing-dist/workflows/ux-design/steps/step-11-component-strategy.md +0 -248
  885. package/pennyfarthing-dist/workflows/ux-design/steps/step-12-ux-patterns.md +0 -237
  886. package/pennyfarthing-dist/workflows/ux-design/steps/step-13-responsive-accessibility.md +0 -264
  887. package/pennyfarthing-dist/workflows/ux-design/steps/step-14-complete.md +0 -228
  888. package/pennyfarthing-dist/workflows/ux-design/ux-design-template.md +0 -13
  889. package/pennyfarthing-dist/workflows/ux-design/workflow.yaml +0 -41
  890. /package/{packages/core/bin → bin}/pennyfarthing.js +0 -0
@@ -1,382 +0,0 @@
1
- /**
2
- * Generic SM Setup - Combines story-setup + work-research
3
- *
4
- * Provides two modes:
5
- * 1. Research mode: Scan backlog, batch Jira query, recommend stories
6
- * 2. Setup mode: Claim Jira, create branches, write session file
7
- */
8
- import { readFileSync, existsSync, writeFileSync } from 'node:fs';
9
- import { join } from 'node:path';
10
- /**
11
- * Parse YAML manually (simple parser for sprint YAML structure)
12
- * This avoids external dependencies like js-yaml
13
- */
14
- function parseSprintYaml(content) {
15
- const lines = content.split('\n');
16
- // Extract sprint section
17
- let sprintNumber;
18
- let sprintGoal;
19
- let completedPoints;
20
- let totalPoints;
21
- const stories = [];
22
- let currentEpicId;
23
- let inStoriesSection = false;
24
- let currentStory = null;
25
- let storyIndent = 0;
26
- for (let i = 0; i < lines.length; i++) {
27
- const line = lines[i];
28
- const trimmed = line.trim();
29
- const indent = line.length - line.trimStart().length;
30
- // Sprint metadata (any indent)
31
- if (trimmed.startsWith('number:') && !inStoriesSection) {
32
- sprintNumber = parseInt(trimmed.replace('number:', '').trim(), 10);
33
- }
34
- else if (trimmed.startsWith('goal:') && !inStoriesSection) {
35
- sprintGoal = trimmed.replace('goal:', '').trim().replace(/^["']|["']$/g, '');
36
- }
37
- else if (trimmed.startsWith('completed_points:')) {
38
- completedPoints = parseInt(trimmed.replace('completed_points:', '').trim(), 10);
39
- }
40
- else if (trimmed.startsWith('total_points:')) {
41
- totalPoints = parseInt(trimmed.replace('total_points:', '').trim(), 10);
42
- }
43
- // Epic detection: " - id: 31" at indent 2
44
- else if (trimmed.startsWith('- id:') && indent === 2) {
45
- const epicId = parseInt(trimmed.replace('- id:', '').trim(), 10);
46
- if (!isNaN(epicId)) {
47
- currentEpicId = epicId;
48
- inStoriesSection = false;
49
- }
50
- }
51
- // Stories section marker
52
- else if (trimmed === 'stories:') {
53
- inStoriesSection = true;
54
- }
55
- // Story item: " - id: ..." at indent 6 or more (after stories:)
56
- else if (inStoriesSection && trimmed.startsWith('- id:')) {
57
- // Save previous story
58
- if (currentStory && currentStory.id) {
59
- stories.push({
60
- id: currentStory.id,
61
- title: currentStory.title || '',
62
- status: currentStory.status || 'backlog',
63
- points: currentStory.points,
64
- priority: currentStory.priority,
65
- epic: currentEpicId,
66
- assigned_to: currentStory.assigned_to
67
- });
68
- }
69
- // Start new story
70
- storyIndent = indent;
71
- const storyId = trimmed.replace('- id:', '').trim().replace(/^["']|["']$/g, '');
72
- currentStory = { id: storyId, epic: currentEpicId };
73
- }
74
- // Story properties (must be indented more than story item)
75
- else if (currentStory && indent > storyIndent) {
76
- if (trimmed.startsWith('title:')) {
77
- currentStory.title = trimmed.replace('title:', '').trim().replace(/^["']|["']$/g, '');
78
- }
79
- else if (trimmed.startsWith('status:')) {
80
- currentStory.status = trimmed.replace('status:', '').trim();
81
- }
82
- else if (trimmed.startsWith('points:')) {
83
- currentStory.points = parseInt(trimmed.replace('points:', '').trim(), 10);
84
- }
85
- else if (trimmed.startsWith('priority:')) {
86
- currentStory.priority = trimmed.replace('priority:', '').trim();
87
- }
88
- else if (trimmed.startsWith('assigned_to:')) {
89
- currentStory.assigned_to = trimmed.replace('assigned_to:', '').trim().replace(/^["']|["']$/g, '');
90
- }
91
- }
92
- // Exit stories section when we hit something at lower indent
93
- else if (inStoriesSection && trimmed && indent <= 2 && !trimmed.startsWith('-')) {
94
- // Save last story before exiting
95
- if (currentStory && currentStory.id) {
96
- stories.push({
97
- id: currentStory.id,
98
- title: currentStory.title || '',
99
- status: currentStory.status || 'backlog',
100
- points: currentStory.points,
101
- priority: currentStory.priority,
102
- epic: currentEpicId,
103
- assigned_to: currentStory.assigned_to
104
- });
105
- currentStory = null;
106
- }
107
- inStoriesSection = false;
108
- }
109
- }
110
- // Don't forget the last story
111
- if (currentStory && currentStory.id) {
112
- stories.push({
113
- id: currentStory.id,
114
- title: currentStory.title || '',
115
- status: currentStory.status || 'backlog',
116
- points: currentStory.points,
117
- priority: currentStory.priority,
118
- epic: currentEpicId,
119
- assigned_to: currentStory.assigned_to
120
- });
121
- }
122
- return {
123
- sprint: { number: sprintNumber, goal: sprintGoal },
124
- summary: { completed_points: completedPoints, total_points: totalPoints },
125
- stories
126
- };
127
- }
128
- /**
129
- * Research backlog for available stories
130
- *
131
- * Scans sprint YAML and returns available (unassigned, backlog) stories
132
- * sorted by priority then points.
133
- *
134
- * @param params - Research parameters
135
- * @returns Research result with available stories
136
- */
137
- export async function researchBacklog(params) {
138
- const { sprintPath } = params;
139
- // Check if file exists
140
- if (!existsSync(sprintPath)) {
141
- return {
142
- success: false,
143
- availableStories: [],
144
- error: `Sprint file not found: ${sprintPath}`
145
- };
146
- }
147
- try {
148
- const content = readFileSync(sprintPath, 'utf-8');
149
- const parsed = parseSprintYaml(content);
150
- const sprint = parsed.sprint;
151
- const summary = parsed.summary;
152
- const allStories = parsed.stories || [];
153
- // Filter: only backlog stories without assigned_to
154
- const availableStories = allStories.filter(story => {
155
- const hasAssignee = 'assigned_to' in story && story.assigned_to;
156
- const isBacklog = story.status === 'backlog';
157
- return isBacklog && !hasAssignee;
158
- });
159
- // Sort by priority (P1 < P2 < undefined) then by points ascending
160
- const priorityOrder = { 'P1': 1, 'P2': 2, 'P3': 3 };
161
- availableStories.sort((a, b) => {
162
- const aPriority = priorityOrder[a.priority || ''] || 99;
163
- const bPriority = priorityOrder[b.priority || ''] || 99;
164
- if (aPriority !== bPriority) {
165
- return aPriority - bPriority;
166
- }
167
- return (a.points || 0) - (b.points || 0);
168
- });
169
- return {
170
- success: true,
171
- availableStories,
172
- sprintNumber: sprint?.number,
173
- sprintGoal: sprint?.goal,
174
- completedPoints: summary?.completed_points,
175
- totalPoints: summary?.total_points
176
- };
177
- }
178
- catch (error) {
179
- return {
180
- success: false,
181
- availableStories: [],
182
- error: `Failed to parse sprint YAML: ${error}`
183
- };
184
- }
185
- }
186
- /**
187
- * Convert title to kebab-case slug for branch naming
188
- */
189
- function slugify(title) {
190
- return title
191
- .toLowerCase()
192
- .replace(/[^a-z0-9]+/g, '-')
193
- .replace(/^-|-$/g, '');
194
- }
195
- /**
196
- * Setup a story for development
197
- *
198
- * Creates session file with story context, calculates branch name,
199
- * initializes workflow tracking with Phase History table.
200
- *
201
- * @param params - Setup parameters
202
- * @returns Setup result with session file path and branch name
203
- */
204
- export async function setupStory(params) {
205
- const { storyId, title, points, epic, repos, sessionDir, workflow, assignee, jiraKey, acceptanceCriteria, checkEpicContext: shouldCheckContext, contextDir } = params;
206
- // Collect warnings for non-blocking issues
207
- const warnings = [];
208
- // Check epic context if gate is enabled
209
- if (shouldCheckContext && contextDir) {
210
- const contextCheck = await checkEpicContext({ epicId: epic, contextDir });
211
- if (!contextCheck.exists) {
212
- // Warn but don't block (soft gate initially)
213
- warnings.push(`Missing epic context: ${contextCheck.message}`);
214
- }
215
- }
216
- // Calculate branch name
217
- const slug = slugify(title);
218
- const branchName = `feat/${storyId}-${slug}`;
219
- // Session file path
220
- const sessionPath = join(sessionDir, `${storyId}-session.md`);
221
- // Check if session file already exists
222
- if (existsSync(sessionPath)) {
223
- return {
224
- success: false,
225
- error: `Session file already exists: ${sessionPath}`
226
- };
227
- }
228
- // Generate ISO timestamp
229
- const now = new Date().toISOString();
230
- // Build session file content
231
- const lines = [
232
- `# Story ${storyId} Session`,
233
- '',
234
- `**Story ID:** ${storyId}`,
235
- `**Title:** ${title}`,
236
- `**Points:** ${points}`,
237
- `**Epic:** ${epic}`,
238
- `**Repos:** ${repos}`,
239
- `**Status:** in_progress`
240
- ];
241
- if (assignee) {
242
- lines.push(`**Assignee:** ${assignee}`);
243
- }
244
- if (jiraKey) {
245
- lines.push(`**Jira:** ${jiraKey}`);
246
- }
247
- // Acceptance criteria section
248
- if (acceptanceCriteria && acceptanceCriteria.length > 0) {
249
- lines.push('');
250
- lines.push('## Acceptance Criteria');
251
- lines.push('');
252
- for (const ac of acceptanceCriteria) {
253
- lines.push(`- [ ] ${ac}`);
254
- }
255
- }
256
- // Workflow tracking section
257
- lines.push('');
258
- lines.push('## Workflow Tracking');
259
- lines.push('');
260
- lines.push(`**Workflow:** ${workflow}`);
261
- lines.push(`**Phase:** setup`);
262
- lines.push(`**Phase Started:** ${now}`);
263
- lines.push('');
264
- lines.push('### Phase History');
265
- lines.push('| Phase | Started | Ended | Duration |');
266
- lines.push('|-------|---------|-------|----------|');
267
- lines.push(`| setup | ${now} | - | - |`);
268
- lines.push('');
269
- // Write file
270
- try {
271
- writeFileSync(sessionPath, lines.join('\n'));
272
- return {
273
- success: true,
274
- sessionFile: sessionPath,
275
- branchName,
276
- warnings
277
- };
278
- }
279
- catch (error) {
280
- return {
281
- success: false,
282
- error: `Failed to write session file: ${error}`
283
- };
284
- }
285
- }
286
- /**
287
- * Check if epic context file exists
288
- *
289
- * Validates that sprint/context/context-epic-{N}.md exists before story setup.
290
- * This ensures stories don't start without understanding their epic's technical landscape.
291
- *
292
- * @param params - Check parameters with epicId and contextDir
293
- * @returns Result indicating if context exists, with path or message
294
- */
295
- export async function checkEpicContext(params) {
296
- const { epicId, contextDir } = params;
297
- const filename = `context-epic-${epicId}.md`;
298
- const expectedPath = join(contextDir, filename);
299
- if (existsSync(expectedPath)) {
300
- return {
301
- exists: true,
302
- path: expectedPath
303
- };
304
- }
305
- return {
306
- exists: false,
307
- message: `Epic ${epicId} is missing technical context. Create ${filename} before starting stories.`,
308
- expectedPath
309
- };
310
- }
311
- /**
312
- * Create epic context file from template
313
- *
314
- * Creates a new epic context file with standard sections.
315
- * Will not overwrite existing files to preserve valuable context.
316
- *
317
- * @param params - Creation parameters with epicId, title, contextDir, and optional content
318
- * @returns Result with success status and file path
319
- */
320
- export async function createEpicContext(params) {
321
- const { epicId, epicTitle, contextDir, content } = params;
322
- const filename = `context-epic-${epicId}.md`;
323
- const filePath = join(contextDir, filename);
324
- // Don't overwrite existing context
325
- if (existsSync(filePath)) {
326
- return {
327
- success: false,
328
- error: `Epic context file already exists: ${filePath}`
329
- };
330
- }
331
- // Build content from template or provided content
332
- let fileContent;
333
- if (content) {
334
- // Use provided content with header
335
- fileContent = `# Epic ${epicId}: ${epicTitle} - Technical Context\n\n${content}`;
336
- }
337
- else {
338
- // Use standard template
339
- fileContent = `# Epic ${epicId}: ${epicTitle} - Technical Context
340
-
341
- ## Epic Overview
342
- - Goal: [One sentence describing the epic goal]
343
- - Stories: [count] totaling [points] pts
344
- - Status: in_progress
345
-
346
- ## Technical Landscape
347
- [2-3 paragraphs describing the technical domain, key challenges, and approach]
348
-
349
- ## Key Files
350
- | File | Purpose |
351
- |------|---------|
352
- | path/to/file | Description |
353
-
354
- ## Patterns & Conventions
355
- - Pattern 1: Description
356
- - Pattern 2: Description
357
-
358
- ## Dependencies & Risks
359
- - Dependency: Description
360
- - Risk: Mitigation
361
-
362
- ## Story Sequence
363
- | Story | Title | Depends On |
364
- |-------|-------|------------|
365
- | ${epicId}-1 | First story | None |
366
- `;
367
- }
368
- try {
369
- writeFileSync(filePath, fileContent);
370
- return {
371
- success: true,
372
- path: filePath
373
- };
374
- }
375
- catch (error) {
376
- return {
377
- success: false,
378
- error: `Failed to create epic context: ${error}`
379
- };
380
- }
381
- }
382
- //# sourceMappingURL=generic-sm-setup.js.map
@@ -1 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AAI,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzB,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,qCAAqC,QAAQ,EAAE;SACvD,CAAC;IACJ,CAAC;IAED,kDAAkD;IAClD,IAAI,WAAmB,CAAC;IACxB,IAAI,OAAO,EAAE,CAAC;QACZ,mCAAmC;QACnC,WAAW,GAAG,UAAU,MAAM,KAAK,SAAS,2BAA2B,OAAO,EAAE,CAAC;IACnF,CAAC;SAAM,CAAC;QACN,wBAAwB;QACxB,WAAW,GAAG,UAAU,MAAM,KAAK,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;IA0B5C,MAAM;CACT,CAAC;IACA,CAAC;IAED,IAAI,CAAC;QACH,aAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACrC,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,kCAAkC,KAAK,EAAE;SACjD,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,281 +0,0 @@
1
- /**
2
- * Workflow-Driven Handoff
3
- *
4
- * Replaces hardcoded handoff files with workflow-driven logic.
5
- * Reads phase requirements from workflow definitions.
6
- *
7
- * Provides functions to:
8
- * - Find current phase in a workflow
9
- * - Determine next phase (forward or rejection loop)
10
- * - Check gate conditions based on gate type
11
- * - Format session file updates for phase transitions
12
- */
13
- import type { WorkflowDefinition, WorkflowPhase } from './workflow-schema.js';
14
- /**
15
- * Context for gate checks - provides test results, verdicts, etc.
16
- */
17
- export interface GateContext {
18
- /** For tests_fail gate: are tests currently failing? */
19
- testsRed?: boolean;
20
- /** For tests_pass gate: are all tests passing? */
21
- testsGreen?: boolean;
22
- /** Number of passing tests */
23
- testPassCount?: number;
24
- /** Number of failing tests */
25
- testFailCount?: number;
26
- /** For approval gate: approved or rejected */
27
- verdict?: 'approved' | 'rejected';
28
- }
29
- /**
30
- * Options for getNextPhase to handle rejection loops
31
- */
32
- export interface NextPhaseOptions {
33
- /** For approval gates: determines forward vs loop-back */
34
- verdict?: 'approved' | 'rejected';
35
- }
36
- /**
37
- * Result of checking a gate condition
38
- */
39
- export interface GateCheckResult {
40
- /** Whether the gate check passed */
41
- passed: boolean;
42
- /** Gate type that was checked (undefined if phase has no gate) */
43
- gateType?: string;
44
- /** Human-readable message (especially on failure) */
45
- message?: string;
46
- }
47
- /**
48
- * Context for handoff operations
49
- */
50
- export interface HandoffContext {
51
- /** Story ID being worked on */
52
- storyId: string;
53
- /** Current workflow name */
54
- workflowName: string;
55
- /** Current phase name */
56
- currentPhase: string;
57
- /** Session file path */
58
- sessionFile: string;
59
- }
60
- /**
61
- * Result of a handoff operation
62
- */
63
- export interface HandoffResult {
64
- /** Whether handoff succeeded */
65
- success: boolean;
66
- /** Next phase to transition to */
67
- nextPhase?: string;
68
- /** Next agent to invoke */
69
- nextAgent?: string;
70
- /** Error message if failed */
71
- error?: string;
72
- }
73
- /**
74
- * Parameters for formatting phase transition
75
- */
76
- export interface PhaseTransitionParams {
77
- workflowName: string;
78
- fromPhase: string;
79
- toPhase: string;
80
- startedAt: string;
81
- endedAt: string;
82
- isRejection?: boolean;
83
- }
84
- /**
85
- * Find a phase by name in a workflow definition
86
- *
87
- * @param workflow - The workflow definition to search
88
- * @param phaseName - Name of the phase to find
89
- * @returns The phase definition or null if not found
90
- *
91
- * @example
92
- * ```typescript
93
- * const phase = findCurrentPhase(workflow, 'red');
94
- * if (phase) {
95
- * console.log(`Found phase: ${phase.name}, agent: ${phase.agent}`);
96
- * }
97
- * ```
98
- */
99
- export declare function findCurrentPhase(workflow: WorkflowDefinition, phaseName: string): WorkflowPhase | null;
100
- /**
101
- * Get the next phase in the workflow
102
- *
103
- * For normal progression, returns the next phase in sequence.
104
- * For rejection (verdict='rejected'), returns the phase to loop back to
105
- * (typically the most recent phase with a tests_pass gate).
106
- *
107
- * @param workflow - The workflow definition
108
- * @param currentPhaseName - Name of the current phase
109
- * @param options - Options for handling rejection loops
110
- * @returns The next phase or null if at end/not found
111
- *
112
- * @example
113
- * ```typescript
114
- * // Normal progression
115
- * const next = getNextPhase(workflow, 'red');
116
- *
117
- * // Rejection loop
118
- * const next = getNextPhase(workflow, 'review', { verdict: 'rejected' });
119
- * ```
120
- */
121
- export declare function getNextPhase(workflow: WorkflowDefinition, currentPhaseName: string, options?: NextPhaseOptions): WorkflowPhase | null;
122
- /**
123
- * Check if a gate condition is satisfied
124
- *
125
- * Gate types:
126
- * - tests_fail: testsRed must be true
127
- * - tests_pass: testsGreen must be true
128
- * - approval: verdict must be provided (approved or rejected)
129
- * - manual: always passes
130
- * - (none): always passes
131
- *
132
- * @param workflow - The workflow definition
133
- * @param phaseName - Name of the phase to check
134
- * @param context - Gate check context with test results, verdicts, etc.
135
- * @returns Gate check result
136
- *
137
- * @example
138
- * ```typescript
139
- * const result = checkGate(workflow, 'red', { testsRed: true });
140
- * if (result.passed) {
141
- * // Proceed with handoff
142
- * }
143
- * ```
144
- */
145
- export declare function checkGate(workflow: WorkflowDefinition, phaseName: string, context: GateContext): GateCheckResult;
146
- /**
147
- * Format the workflow tracking section for a session file update
148
- *
149
- * @param params - Phase transition parameters
150
- * @returns Markdown string for the workflow tracking section
151
- *
152
- * @example
153
- * ```typescript
154
- * const markdown = formatPhaseTransition({
155
- * workflowName: 'tdd',
156
- * fromPhase: 'red',
157
- * toPhase: 'green',
158
- * startedAt: '2026-01-13T14:00:00Z',
159
- * endedAt: '2026-01-13T14:30:00Z'
160
- * });
161
- * ```
162
- */
163
- export declare function formatPhaseTransition(params: PhaseTransitionParams): string;
164
- /**
165
- * Calculate duration between two ISO 8601 timestamps
166
- *
167
- * @param startedAt - Start timestamp
168
- * @param endedAt - End timestamp
169
- * @returns Formatted duration string (e.g., "30m", "2h 30m", "45s")
170
- */
171
- export declare function calculateDuration(startedAt: string, endedAt: string): string;
172
- /**
173
- * Handoff mode type - auto triggers immediately, manual prompts first
174
- */
175
- export type HandoffMode = 'auto' | 'manual';
176
- /**
177
- * Handoff behavior based on mode
178
- */
179
- export interface HandoffBehavior {
180
- /** What action to take */
181
- action: 'immediate' | 'prompt';
182
- /** Whether user confirmation is required */
183
- requiresConfirmation: boolean;
184
- /** Message to show user (for prompt action) */
185
- message?: string;
186
- }
187
- /**
188
- * Entry for handoff history tracking
189
- */
190
- export interface HandoffHistoryEntry {
191
- phase: string;
192
- agent: string;
193
- timestamp: string;
194
- handoffMode: HandoffMode;
195
- }
196
- /**
197
- * Read handoff mode from Cyclist settings file
198
- * Returns 'manual' as default if file doesn't exist or is invalid
199
- *
200
- * @param settingsPath - Path to the settings file (JSON or YAML)
201
- * @returns The handoff mode setting
202
- */
203
- export declare function readHandoffMode(settingsPath: string): HandoffMode;
204
- /**
205
- * Parse handoff mode from JSON string
206
- * Handles both new format (handoff_mode) and legacy format (auto_handoff boolean)
207
- *
208
- * @param jsonContent - JSON string containing settings
209
- * @returns The handoff mode setting
210
- */
211
- export declare function parseHandoffModeFromJson(jsonContent: string): HandoffMode;
212
- /**
213
- * Parse handoff mode from YAML string
214
- * Handles both new format (handoff_mode) and legacy format (auto_handoff boolean)
215
- *
216
- * @param yamlContent - YAML string containing settings
217
- * @returns The handoff mode setting
218
- */
219
- export declare function parseHandoffModeFromYaml(yamlContent: string): HandoffMode;
220
- /**
221
- * Get handoff behavior based on mode
222
- *
223
- * @param mode - The handoff mode setting
224
- * @returns Behavior configuration for the mode
225
- */
226
- export declare function getHandoffBehavior(mode: HandoffMode): HandoffBehavior;
227
- /**
228
- * Format handoff history entry for session file
229
- * Creates a markdown section with table row for the handoff
230
- *
231
- * @param entry - Handoff history entry to format
232
- * @returns Markdown string for the handoff history section
233
- */
234
- export declare function formatHandoffHistory(entry: HandoffHistoryEntry): string;
235
- /**
236
- * Threshold for context percentage to trigger context clear
237
- * When auto mode is enabled and context exceeds this threshold, emit CONTEXT_CLEAR
238
- */
239
- export declare const CONTEXT_CLEAR_THRESHOLD = 60;
240
- /**
241
- * Parameters for context clear marker decision
242
- */
243
- export interface ContextClearParams {
244
- /** Current handoff mode from settings */
245
- handoffMode: HandoffMode;
246
- /** Current context usage percentage (0-100) */
247
- contextPercent: number;
248
- /** Next agent to load after clear (for marker value) */
249
- nextAgent?: string;
250
- }
251
- /**
252
- * Determine if CONTEXT_CLEAR marker should be emitted
253
- *
254
- * Returns true when:
255
- * - handoffMode is 'auto'
256
- * - contextPercent exceeds CONTEXT_CLEAR_THRESHOLD
257
- *
258
- * @param params - Context clear parameters
259
- * @returns true if CONTEXT_CLEAR should be emitted
260
- */
261
- export declare function shouldEmitContextClear(params: ContextClearParams): boolean;
262
- /**
263
- * Format the CYCLIST marker for context clear or regular handoff
264
- *
265
- * When auto mode and high context: returns CONTEXT_CLEAR marker
266
- * Otherwise: returns regular HANDOFF marker
267
- *
268
- * @param params - Context clear parameters including nextAgent
269
- * @returns Marker string (<!-- CYCLIST:CONTEXT_CLEAR:/agent --> or <!-- CYCLIST:HANDOFF:/agent -->)
270
- */
271
- export declare function formatContextClearMarker(params: ContextClearParams): string;
272
- /**
273
- * Format a human-readable output message for context clear handoffs
274
- *
275
- * Includes context percentage and the marker for Cyclist to detect
276
- *
277
- * @param params - Context clear parameters
278
- * @returns Formatted output string for display
279
- */
280
- export declare function formatContextClearOutput(params: ContextClearParams): string;
281
- //# sourceMappingURL=handoff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/workflow/handoff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8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