prizmkit 1.1.100 → 1.1.101

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 (309) hide show
  1. package/bin/create-prizmkit.js +4 -4
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/dev-pipeline/.env.example +3 -3
  4. package/bundled/dev-pipeline/README.md +110 -90
  5. package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +1 -1
  6. package/bundled/dev-pipeline/cli.py +27 -0
  7. package/bundled/dev-pipeline/prizmkit_runtime/__init__.py +13 -0
  8. package/bundled/dev-pipeline/prizmkit_runtime/__main__.py +9 -0
  9. package/bundled/dev-pipeline/prizmkit_runtime/cli.py +193 -0
  10. package/bundled/dev-pipeline/prizmkit_runtime/commands.py +313 -0
  11. package/bundled/dev-pipeline/prizmkit_runtime/compat.py +32 -0
  12. package/bundled/dev-pipeline/prizmkit_runtime/config.py +410 -0
  13. package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +478 -0
  14. package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +734 -0
  15. package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +256 -0
  16. package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +109 -0
  17. package/bundled/dev-pipeline/prizmkit_runtime/paths.py +110 -0
  18. package/bundled/dev-pipeline/prizmkit_runtime/processes.py +373 -0
  19. package/bundled/dev-pipeline/prizmkit_runtime/reset.py +389 -0
  20. package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +51 -0
  21. package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +179 -0
  22. package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +345 -0
  23. package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +118 -0
  24. package/bundled/dev-pipeline/prizmkit_runtime/runner_recovery.py +187 -0
  25. package/bundled/dev-pipeline/prizmkit_runtime/runner_status.py +147 -0
  26. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +422 -0
  27. package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +552 -0
  28. package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
  29. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +38 -23
  30. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +20 -5
  31. package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +2 -2
  32. package/bundled/dev-pipeline/scripts/parse-stream-progress.py +39 -0
  33. package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +7 -1
  34. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +4 -0
  35. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +12 -3
  36. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +13 -3
  37. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +13 -3
  38. package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +2 -0
  39. package/bundled/dev-pipeline/templates/sections/log-size-awareness.md +9 -30
  40. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +15 -7
  41. package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +42 -29
  42. package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -39
  43. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +4 -0
  44. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +4 -0
  45. package/bundled/dev-pipeline/tests/test_auto_skip.py +436 -14
  46. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +104 -0
  47. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +40 -0
  48. package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1138 -0
  49. package/bundled/dev-pipeline/tests/test_unified_cli.py +1045 -0
  50. package/bundled/skills/_metadata.json +1 -1
  51. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +29 -34
  52. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +6 -5
  53. package/bundled/skills/feature-pipeline-launcher/SKILL.md +29 -35
  54. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +7 -6
  55. package/bundled/skills/feature-workflow/SKILL.md +3 -6
  56. package/bundled/skills/recovery-workflow/SKILL.md +23 -32
  57. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -35
  58. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +7 -6
  59. package/bundled/skills/refactor-workflow/SKILL.md +3 -6
  60. package/bundled/templates/hooks/commit-intent.json +2 -2
  61. package/bundled/templates/hooks/diff-prizm-docs.py +226 -0
  62. package/bundled/templates/hooks/prizm-pre-commit.py +45 -0
  63. package/bundled/templates/hooks/validate-prizm-docs.py +240 -0
  64. package/package.json +1 -1
  65. package/src/config.js +33 -12
  66. package/src/index.js +3 -6
  67. package/src/manifest.js +3 -2
  68. package/src/metadata.js +7 -18
  69. package/src/prompts.js +0 -12
  70. package/src/runtimes.js +18 -11
  71. package/src/scaffold.js +133 -116
  72. package/src/upgrade.js +1 -1
  73. package/bundled/dev-pipeline/launch-bugfix-daemon.sh +0 -500
  74. package/bundled/dev-pipeline/launch-feature-daemon.sh +0 -657
  75. package/bundled/dev-pipeline/launch-refactor-daemon.sh +0 -502
  76. package/bundled/dev-pipeline/lib/branch.sh +0 -326
  77. package/bundled/dev-pipeline/lib/common.sh +0 -1476
  78. package/bundled/dev-pipeline/lib/heartbeat.sh +0 -469
  79. package/bundled/dev-pipeline/reset-bug.sh +0 -425
  80. package/bundled/dev-pipeline/reset-feature.sh +0 -436
  81. package/bundled/dev-pipeline/reset-refactor.sh +0 -423
  82. package/bundled/dev-pipeline/run-bugfix.sh +0 -1430
  83. package/bundled/dev-pipeline/run-feature.sh +0 -1718
  84. package/bundled/dev-pipeline/run-recovery.sh +0 -648
  85. package/bundled/dev-pipeline/run-refactor.sh +0 -1463
  86. package/bundled/dev-pipeline/tests/test-path-resolution.sh +0 -100
  87. package/bundled/dev-pipeline-windows/.env.example +0 -36
  88. package/bundled/dev-pipeline-windows/README.md +0 -30
  89. package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +0 -533
  90. package/bundled/dev-pipeline-windows/assets/feature-list-example.json +0 -146
  91. package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +0 -137
  92. package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +0 -9
  93. package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +0 -9
  94. package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +0 -9
  95. package/bundled/dev-pipeline-windows/lib/branch.ps1 +0 -235
  96. package/bundled/dev-pipeline-windows/lib/common.ps1 +0 -991
  97. package/bundled/dev-pipeline-windows/lib/daemon.ps1 +0 -140
  98. package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +0 -1051
  99. package/bundled/dev-pipeline-windows/lib/reset.ps1 +0 -121
  100. package/bundled/dev-pipeline-windows/reset-bug.ps1 +0 -10
  101. package/bundled/dev-pipeline-windows/reset-feature.ps1 +0 -10
  102. package/bundled/dev-pipeline-windows/reset-refactor.ps1 +0 -10
  103. package/bundled/dev-pipeline-windows/run-bugfix.ps1 +0 -9
  104. package/bundled/dev-pipeline-windows/run-feature.ps1 +0 -9
  105. package/bundled/dev-pipeline-windows/run-recovery.ps1 +0 -179
  106. package/bundled/dev-pipeline-windows/run-refactor.ps1 +0 -9
  107. package/bundled/dev-pipeline-windows/scripts/check-session-status.py +0 -301
  108. package/bundled/dev-pipeline-windows/scripts/continuation.py +0 -374
  109. package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +0 -530
  110. package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +0 -2279
  111. package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +0 -763
  112. package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +0 -805
  113. package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +0 -841
  114. package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +0 -316
  115. package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +0 -134
  116. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +0 -382
  117. package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +0 -399
  118. package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +0 -1362
  119. package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +0 -191
  120. package/bundled/dev-pipeline-windows/scripts/prizmkit-test-gate.py +0 -446
  121. package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +0 -1121
  122. package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +0 -173
  123. package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +0 -1789
  124. package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +0 -1327
  125. package/bundled/dev-pipeline-windows/scripts/utils.py +0 -542
  126. package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +0 -7
  127. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +0 -7
  128. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +0 -65
  129. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +0 -5
  130. package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +0 -7
  131. package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +0 -73
  132. package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +0 -589
  133. package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +0 -710
  134. package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +0 -791
  135. package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +0 -263
  136. package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +0 -326
  137. package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +0 -237
  138. package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +0 -340
  139. package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +0 -270
  140. package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +0 -7
  141. package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +0 -91
  142. package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +0 -34
  143. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +0 -10
  144. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +0 -12
  145. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +0 -7
  146. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +0 -8
  147. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +0 -9
  148. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +0 -6
  149. package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +0 -21
  150. package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +0 -21
  151. package/bundled/dev-pipeline-windows/templates/sections/log-size-awareness.md +0 -41
  152. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +0 -283
  153. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +0 -112
  154. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +0 -168
  155. package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +0 -82
  156. package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +0 -75
  157. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +0 -23
  158. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +0 -14
  159. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +0 -19
  160. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +0 -63
  161. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +0 -42
  162. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +0 -44
  163. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +0 -59
  164. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +0 -39
  165. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +0 -27
  166. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +0 -27
  167. package/bundled/dev-pipeline-windows/templates/sections/phase-prizmkit-test.md +0 -39
  168. package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +0 -35
  169. package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +0 -35
  170. package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +0 -73
  171. package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +0 -13
  172. package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +0 -21
  173. package/bundled/dev-pipeline-windows/templates/sections/session-context.md +0 -5
  174. package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +0 -6
  175. package/bundled/dev-pipeline-windows/templates/sections/task-contract.md +0 -34
  176. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +0 -48
  177. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +0 -48
  178. package/bundled/dev-pipeline-windows/templates/session-status-schema.json +0 -83
  179. package/bundled/skills-windows/app-planner/SKILL.md +0 -296
  180. package/bundled/skills-windows/app-planner/assets/app-design-guide.md +0 -101
  181. package/bundled/skills-windows/app-planner/references/architecture-decisions.md +0 -52
  182. package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +0 -101
  183. package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +0 -71
  184. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +0 -108
  185. package/bundled/skills-windows/app-planner/references/project-brief-guide.md +0 -82
  186. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +0 -59
  187. package/bundled/skills-windows/app-planner/references/project-state-detection.md +0 -90
  188. package/bundled/skills-windows/app-planner/references/red-team-checklist.md +0 -40
  189. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +0 -619
  190. package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +0 -285
  191. package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +0 -249
  192. package/bundled/skills-windows/app-planner/references/rules/backend/question-manifest.json +0 -46
  193. package/bundled/skills-windows/app-planner/references/rules/backend/template.md +0 -173
  194. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +0 -382
  195. package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +0 -211
  196. package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +0 -184
  197. package/bundled/skills-windows/app-planner/references/rules/database/question-manifest.json +0 -39
  198. package/bundled/skills-windows/app-planner/references/rules/database/template.md +0 -158
  199. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +0 -820
  200. package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +0 -188
  201. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +0 -319
  202. package/bundled/skills-windows/app-planner/references/rules/frontend/question-manifest.json +0 -51
  203. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +0 -339
  204. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +0 -649
  205. package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +0 -290
  206. package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +0 -232
  207. package/bundled/skills-windows/app-planner/references/rules/mobile/question-manifest.json +0 -47
  208. package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +0 -175
  209. package/bundled/skills-windows/app-planner/references/rules-configuration.md +0 -46
  210. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +0 -379
  211. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +0 -41
  212. package/bundled/skills-windows/bug-planner/SKILL.md +0 -402
  213. package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +0 -43
  214. package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +0 -44
  215. package/bundled/skills-windows/bug-planner/references/error-recovery.md +0 -73
  216. package/bundled/skills-windows/bug-planner/references/input-formats.md +0 -53
  217. package/bundled/skills-windows/bug-planner/references/schema-validation.md +0 -25
  218. package/bundled/skills-windows/bug-planner/references/severity-rules.md +0 -16
  219. package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +0 -322
  220. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +0 -304
  221. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +0 -84
  222. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +0 -381
  223. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +0 -67
  224. package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +0 -462
  225. package/bundled/skills-windows/feature-planner/SKILL.md +0 -397
  226. package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +0 -64
  227. package/bundled/skills-windows/feature-planner/assets/planning-guide.md +0 -214
  228. package/bundled/skills-windows/feature-planner/references/browser-interaction.md +0 -59
  229. package/bundled/skills-windows/feature-planner/references/completeness-review.md +0 -57
  230. package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +0 -75
  231. package/bundled/skills-windows/feature-planner/references/error-recovery.md +0 -90
  232. package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +0 -112
  233. package/bundled/skills-windows/feature-planner/references/new-project-planning.md +0 -85
  234. package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +0 -1020
  235. package/bundled/skills-windows/feature-workflow/SKILL.md +0 -374
  236. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +0 -137
  237. package/bundled/skills-windows/prizm-kit/SKILL.md +0 -93
  238. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +0 -161
  239. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +0 -30
  240. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +0 -31
  241. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +0 -66
  242. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +0 -186
  243. package/bundled/skills-windows/prizmkit-committer/SKILL.md +0 -89
  244. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +0 -444
  245. package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +0 -115
  246. package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +0 -93
  247. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +0 -120
  248. package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +0 -46
  249. package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +0 -148
  250. package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +0 -62
  251. package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +0 -50
  252. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +0 -26
  253. package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +0 -42
  254. package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +0 -31
  255. package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +0 -37
  256. package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +0 -21
  257. package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +0 -59
  258. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
  259. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
  260. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +0 -20
  261. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +0 -56
  262. package/bundled/skills-windows/prizmkit-implement/SKILL.md +0 -71
  263. package/bundled/skills-windows/prizmkit-init/SKILL.md +0 -356
  264. package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +0 -82
  265. package/bundled/skills-windows/prizmkit-init/references/config-schema.md +0 -70
  266. package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +0 -41
  267. package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +0 -13
  268. package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +0 -9
  269. package/bundled/skills-windows/prizmkit-plan/SKILL.md +0 -102
  270. package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +0 -115
  271. package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +0 -73
  272. package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +0 -67
  273. package/bundled/skills-windows/prizmkit-plan/references/examples.md +0 -85
  274. package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +0 -60
  275. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +0 -129
  276. package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +0 -613
  277. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +0 -45
  278. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +0 -15
  279. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +0 -14
  280. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +0 -19
  281. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +0 -17
  282. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +0 -87
  283. package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +0 -50
  284. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +0 -43
  285. package/bundled/skills-windows/prizmkit-test/SKILL.md +0 -227
  286. package/bundled/skills-windows/prizmkit-test/references/boundary-coverage-protocol.md +0 -220
  287. package/bundled/skills-windows/prizmkit-test/references/examples.md +0 -143
  288. package/bundled/skills-windows/prizmkit-test/references/service-boundary-test-catalog.md +0 -225
  289. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +0 -109
  290. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +0 -111
  291. package/bundled/skills-windows/prizmkit-test/scripts/validate_boundary_report.py +0 -347
  292. package/bundled/skills-windows/recovery-workflow/SKILL.md +0 -355
  293. package/bundled/skills-windows/recovery-workflow/evals/evals.json +0 -46
  294. package/bundled/skills-windows/recovery-workflow/references/detection.md +0 -58
  295. package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +0 -544
  296. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +0 -346
  297. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +0 -72
  298. package/bundled/skills-windows/refactor-planner/SKILL.md +0 -398
  299. package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +0 -292
  300. package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +0 -301
  301. package/bundled/skills-windows/refactor-planner/references/fast-path.md +0 -59
  302. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +0 -135
  303. package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +0 -221
  304. package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +0 -858
  305. package/bundled/skills-windows/refactor-workflow/SKILL.md +0 -343
  306. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +0 -116
  307. package/bundled/templates/hooks/diff-prizm-docs.sh +0 -158
  308. package/bundled/templates/hooks/prizm-pre-commit.sh +0 -108
  309. package/bundled/templates/hooks/validate-prizm-docs.sh +0 -139
@@ -1,374 +0,0 @@
1
- """Continuation prompt and durable handoff helpers for pipeline prompt generators."""
2
-
3
- import os
4
-
5
- SUPPORTED_CONTINUATION_MODES = {"context_overflow"}
6
- TASK_TYPES = {"feature", "bugfix", "refactor"}
7
-
8
-
9
- def add_continuation_args(parser, default_task_type):
10
- """Add continuation-mode CLI arguments to a prompt generator parser."""
11
- parser.add_argument(
12
- "--continuation-mode",
13
- choices=sorted(SUPPORTED_CONTINUATION_MODES),
14
- default="",
15
- help="Continuation recovery mode, currently context_overflow.",
16
- )
17
- parser.add_argument(
18
- "--previous-session-id",
19
- default="",
20
- help="Session ID that triggered this continuation.",
21
- )
22
- parser.add_argument(
23
- "--continuation-count",
24
- default="0",
25
- help="Cumulative continuation count for this task.",
26
- )
27
- parser.add_argument(
28
- "--context-overflow-count",
29
- default="0",
30
- help="Cumulative context overflow count for this task.",
31
- )
32
- parser.add_argument(
33
- "--task-type",
34
- choices=sorted(TASK_TYPES),
35
- default=default_task_type,
36
- help="Task type for continuation handoff metadata.",
37
- )
38
- parser.add_argument(
39
- "--active-dev-branch",
40
- default="",
41
- help="Development branch being reused by the continuation.",
42
- )
43
- parser.add_argument(
44
- "--base-branch",
45
- default="",
46
- help="Base branch preserved across continuation sessions.",
47
- )
48
- parser.add_argument(
49
- "--continuation-summary-path",
50
- default="",
51
- help="Durable continuation summary artifact path.",
52
- )
53
-
54
-
55
- def is_continuation(args):
56
- """Return True when continuation mode is active."""
57
- return bool(getattr(args, "continuation_mode", ""))
58
-
59
-
60
- def _safe_int(value, default=0):
61
- try:
62
- parsed = int(value)
63
- except (TypeError, ValueError):
64
- return default
65
- return parsed if parsed >= 0 else default
66
-
67
-
68
- def _norm(path):
69
- return str(path).replace(os.sep, "/")
70
-
71
-
72
- def _rel_path(project_root, path):
73
- """Return a stable project-relative path when possible."""
74
- if not path:
75
- return "(not available)"
76
- text = str(path)
77
- if text.startswith(".prizmkit/") or text.startswith(".prizmkit\\"):
78
- return _norm(text)
79
- try:
80
- abs_path = os.path.abspath(text)
81
- root = os.path.abspath(project_root)
82
- rel = os.path.relpath(abs_path, root)
83
- if not rel.startswith(".."): # keep paths under the project concise
84
- return _norm(rel)
85
- except ValueError:
86
- pass
87
- return _norm(text)
88
-
89
-
90
- def _dedupe(items):
91
- result = []
92
- seen = set()
93
- for item in items:
94
- if not item:
95
- continue
96
- key = _norm(item)
97
- if key in seen:
98
- continue
99
- seen.add(key)
100
- result.append(item)
101
- return result
102
-
103
-
104
- def continuation_summary_paths(task_type, task_id, task_slug, override_path=""):
105
- """Return all durable continuation summary paths to write."""
106
- if task_type == "feature":
107
- default_path = os.path.join(
108
- ".prizmkit", "specs", task_slug, "continuation-summary.md",
109
- )
110
- return _dedupe([override_path, default_path])
111
-
112
- task_dir = "bugfix" if task_type == "bugfix" else "refactor"
113
- task_local = os.path.join(
114
- ".prizmkit", task_dir, task_id, "continuation-summary.md",
115
- )
116
- specs_path = os.path.join(
117
- ".prizmkit", "specs", task_slug or task_id, "continuation-summary.md",
118
- )
119
- return _dedupe([override_path, specs_path, task_local])
120
-
121
-
122
- def durable_paths(task_type, task_id, task_slug):
123
- """Return stable durable artifact paths for a task."""
124
- if task_type == "feature":
125
- artifact_dir = os.path.join(".prizmkit", "specs", task_slug)
126
- elif task_type == "bugfix":
127
- artifact_dir = os.path.join(".prizmkit", "bugfix", task_id)
128
- else:
129
- artifact_dir = os.path.join(".prizmkit", "refactor", task_id)
130
-
131
- return {
132
- "artifact_dir": artifact_dir,
133
- "checkpoint": os.path.join(artifact_dir, "workflow-checkpoint.json"),
134
- "plan": os.path.join(artifact_dir, "plan.md"),
135
- "context_snapshot": os.path.join(artifact_dir, "context-snapshot.md"),
136
- "failure_log": os.path.join(artifact_dir, "failure-log.md"),
137
- }
138
-
139
-
140
- def runtime_paths(args, project_root, task_type, task_id, previous_session_id):
141
- """Return fresh runtime paths for the new session and previous log pointer."""
142
- output_path = getattr(args, "output", "")
143
- session_dir = os.path.dirname(os.path.abspath(output_path)) if output_path else ""
144
- logs_dir = os.path.join(session_dir, "logs") if session_dir else ""
145
- session_status = os.path.join(session_dir, "session-status.json") if session_dir else ""
146
-
147
- state_dir = getattr(args, "state_dir", "") or os.path.join(
148
- ".prizmkit", "state", "features" if task_type == "feature" else task_type,
149
- )
150
- previous_log = "(unknown)"
151
- if previous_session_id:
152
- previous_log = os.path.join(
153
- state_dir, task_id, "sessions", previous_session_id, "logs", "session.log",
154
- )
155
-
156
- return {
157
- "session_dir": _rel_path(project_root, session_dir),
158
- "bootstrap_prompt": _rel_path(project_root, output_path),
159
- "session_log": _rel_path(project_root, os.path.join(logs_dir, "session.log")),
160
- "progress_json": _rel_path(project_root, os.path.join(logs_dir, "progress.json")),
161
- "log_monitor_status": _rel_path(project_root, os.path.join(logs_dir, "log-monitor-status.txt")),
162
- "log_monitor_baseline": _rel_path(project_root, os.path.join(logs_dir, "log-monitor-baseline.txt")),
163
- "pid_file": _rel_path(project_root, os.path.join(logs_dir, "ai.pid")),
164
- "session_status": _rel_path(project_root, session_status),
165
- "previous_session_log": _rel_path(project_root, previous_log),
166
- }
167
-
168
-
169
- def checkpoint_cursor(checkpoint):
170
- """Summarize current checkpoint state and cursor."""
171
- steps = checkpoint.get("steps", []) if isinstance(checkpoint, dict) else []
172
- completed = []
173
- skipped = []
174
- in_progress = []
175
- pending = []
176
- failed = []
177
- first_cursor = None
178
-
179
- for step in steps:
180
- skill = step.get("skill", "unknown")
181
- label = "{} ({})".format(step.get("id", "?"), skill)
182
- status = step.get("status", "pending")
183
- if status == "completed":
184
- completed.append(label)
185
- elif status == "skipped":
186
- skipped.append(label)
187
- elif status == "in_progress":
188
- in_progress.append(label)
189
- if first_cursor is None:
190
- first_cursor = label
191
- elif status == "failed":
192
- failed.append(label)
193
- if first_cursor is None:
194
- first_cursor = label
195
- else:
196
- pending.append(label)
197
- if first_cursor is None:
198
- first_cursor = label
199
-
200
- if first_cursor is None:
201
- first_cursor = "(all checkpoint steps completed or skipped)"
202
-
203
- return {
204
- "completed": completed,
205
- "skipped": skipped,
206
- "in_progress": in_progress,
207
- "pending": pending,
208
- "failed": failed,
209
- "first_cursor": first_cursor,
210
- }
211
-
212
-
213
- def _list_or_none(values):
214
- if not values:
215
- return "- (none)"
216
- return "\n".join("- {}".format(value) for value in values)
217
-
218
-
219
- def _build_summary(context):
220
- cursor = context["cursor"]
221
- durable = context["durable"]
222
- runtime = context["runtime"]
223
- summary_paths = context["summary_paths"]
224
- lines = [
225
- "# Continuation Summary",
226
- "",
227
- "## Reason",
228
- "",
229
- "- Continuation mode: {}".format(context["mode"]),
230
- "- This continuation was started after context overflow.",
231
- "- This artifact is the durable handoff summary; do not rely on the previous full transcript.",
232
- "",
233
- "## Previous Session",
234
- "",
235
- "- Previous session id: {}".format(context["previous_session_id"] or "(unknown)"),
236
- "- Previous session log: {}".format(runtime["previous_session_log"]),
237
- "- Previous full session.log should only be read if synthesized artifacts are insufficient.",
238
- "",
239
- "## Task Identity",
240
- "",
241
- "- Task type: {}".format(context["task_type"]),
242
- "- Task id: {}".format(context["task_id"]),
243
- "- Task slug: {}".format(context["task_slug"]),
244
- "- Active dev branch: {}".format(context["active_dev_branch"] or "(preserve current worktree branch)"),
245
- "- Base branch: {}".format(context["base_branch"] or "(unknown)"),
246
- "- Continuation count: {}".format(context["continuation_count"]),
247
- "- Context overflow count: {}".format(context["context_overflow_count"]),
248
- "",
249
- "## Observed Partial Progress",
250
- "",
251
- "- First pending/in-progress checkpoint step: {}".format(cursor["first_cursor"]),
252
- "- Completed checkpoint steps:",
253
- _list_or_none(cursor["completed"]),
254
- "- Skipped checkpoint steps:",
255
- _list_or_none(cursor["skipped"]),
256
- "- In-progress checkpoint steps:",
257
- _list_or_none(cursor["in_progress"]),
258
- "- Pending checkpoint steps:",
259
- _list_or_none(cursor["pending"]),
260
- "- Failed checkpoint steps:",
261
- _list_or_none(cursor["failed"]),
262
- "",
263
- "## Durable Pointers",
264
- "",
265
- "- Start with current worktree state: `git status` and `git diff`.",
266
- "- Durable task artifact directory: {}".format(_norm(durable["artifact_dir"])),
267
- "- Workflow checkpoint: {}".format(_norm(durable["checkpoint"])),
268
- "- Context snapshot: {}".format(_norm(durable["context_snapshot"])),
269
- "- Plan: {}".format(_norm(durable["plan"])),
270
- "- Failure log: {}".format(_norm(durable["failure_log"])),
271
- "- Continuation summaries:",
272
- _list_or_none([_norm(path) for path in summary_paths]),
273
- "",
274
- ]
275
- return "\n".join(lines)
276
-
277
-
278
- def _build_addendum(context):
279
- cursor = context["cursor"]
280
- durable = context["durable"]
281
- runtime = context["runtime"]
282
- summary_paths = context["summary_paths"]
283
- lines = [
284
- "## Continuation Addendum — Context Overflow Recovery",
285
- "",
286
- "This is an automatic continuation after context overflow.",
287
- "This is a fresh headless AI CLI session for the same task.",
288
- "Continue on the current branch/worktree.",
289
- "Do not reset, clean, switch branches, or discard work.",
290
- "",
291
- "### Required First Actions",
292
- "",
293
- "- Start with `git status` and `git diff`.",
294
- "- Reuse the same durable task artifact directory: `{}`.".format(_norm(durable["artifact_dir"])),
295
- "- Treat completed/skipped checkpoint steps as already done.",
296
- "- Continue from the first pending/in-progress checkpoint step: `{}`.".format(cursor["first_cursor"]),
297
- "- Do not read the previous full `session.log` unless explicitly necessary.",
298
- "- If previous runtime context is needed, prefer synthesized artifacts and summaries over logs.",
299
- "- Do not attempt `/compact` as the recovery mechanism.",
300
- "",
301
- "### Preserved Durable Context",
302
- "",
303
- "- Task type: `{}`".format(context["task_type"]),
304
- "- Task id: `{}`".format(context["task_id"]),
305
- "- Task slug: `{}`".format(context["task_slug"]),
306
- "- Dev branch: `{}`".format(context["active_dev_branch"] or "(current branch)"),
307
- "- Base branch: `{}`".format(context["base_branch"] or "(unknown)"),
308
- "- Checkpoint path: `{}`".format(_norm(durable["checkpoint"])),
309
- "- Plan path: `{}`".format(_norm(durable["plan"])),
310
- "- Context snapshot path: `{}`".format(_norm(durable["context_snapshot"])),
311
- "- Failure log path: `{}`".format(_norm(durable["failure_log"])),
312
- "- Continuation summary path(s): `{}`".format(", ".join(_norm(p) for p in summary_paths)),
313
- "- Continuation count: `{}`".format(context["continuation_count"]),
314
- "- Context overflow count: `{}`".format(context["context_overflow_count"]),
315
- "- Previous session id: `{}`".format(context["previous_session_id"] or "(unknown)"),
316
- "- Previous session log reference: `{}`".format(runtime["previous_session_log"]),
317
- "",
318
- "### Fresh Session Runtime Paths",
319
- "",
320
- "- Fresh session directory: `{}`".format(runtime["session_dir"]),
321
- "- Generated bootstrap prompt path: `{}`".format(runtime["bootstrap_prompt"]),
322
- "- Session log path: `{}`".format(runtime["session_log"]),
323
- "- Progress JSON path: `{}`".format(runtime["progress_json"]),
324
- "- Log monitor status path: `{}`".format(runtime["log_monitor_status"]),
325
- "- Log monitor baseline path: `{}`".format(runtime["log_monitor_baseline"]),
326
- "- PID file: `{}`".format(runtime["pid_file"]),
327
- "- Session status file: `{}`".format(runtime["session_status"]),
328
- "",
329
- ]
330
- return "\n".join(lines)
331
-
332
-
333
- def append_continuation_handoff(rendered_prompt, args, project_root, task_type,
334
- task_id, task_slug, checkpoint,
335
- summary_paths=None):
336
- """Write continuation summaries and append the addendum to a prompt."""
337
- if not is_continuation(args):
338
- return rendered_prompt
339
-
340
- mode = getattr(args, "continuation_mode", "")
341
- if mode not in SUPPORTED_CONTINUATION_MODES:
342
- raise ValueError("Unsupported continuation mode: {}".format(mode))
343
-
344
- durable = durable_paths(task_type, task_id, task_slug)
345
- paths = summary_paths or continuation_summary_paths(
346
- task_type, task_id, task_slug, getattr(args, "continuation_summary_path", ""),
347
- )
348
- paths = [_rel_path(project_root, path) for path in paths]
349
- previous_session_id = getattr(args, "previous_session_id", "")
350
- context = {
351
- "mode": mode,
352
- "task_type": task_type,
353
- "task_id": task_id,
354
- "task_slug": task_slug,
355
- "previous_session_id": previous_session_id,
356
- "continuation_count": _safe_int(getattr(args, "continuation_count", 0)),
357
- "context_overflow_count": _safe_int(getattr(args, "context_overflow_count", 0)),
358
- "active_dev_branch": getattr(args, "active_dev_branch", ""),
359
- "base_branch": getattr(args, "base_branch", ""),
360
- "durable": durable,
361
- "runtime": runtime_paths(args, project_root, task_type, task_id, previous_session_id),
362
- "cursor": checkpoint_cursor(checkpoint or {}),
363
- "summary_paths": paths,
364
- }
365
-
366
- summary_text = _build_summary(context)
367
- for summary_path in paths:
368
- abs_summary = os.path.join(project_root, summary_path)
369
- os.makedirs(os.path.dirname(abs_summary), exist_ok=True)
370
- with open(abs_summary, "w", encoding="utf-8") as f:
371
- f.write(summary_text)
372
-
373
- addendum = _build_addendum(context)
374
- return rendered_prompt.rstrip() + "\n\n" + addendum