@v11g/agents-rock 1.0.13 → 1.0.14

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 (572) hide show
  1. package/README.md +23 -5
  2. package/package.json +1 -1
  3. package/plugins/business-analyst/skills/business-analyst/README.md +1 -1
  4. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
  5. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-314.pyc +0 -0
  6. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-314.pyc +0 -0
  7. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-314.pyc +0 -0
  8. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-314.pyc +0 -0
  9. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-314.pyc +0 -0
  10. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-314.pyc +0 -0
  11. package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +1 -1
  12. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +2 -2
  13. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-314.pyc +0 -0
  14. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-314.pyc +0 -0
  15. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-314.pyc +0 -0
  16. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-314.pyc +0 -0
  17. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-314.pyc +0 -0
  18. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-314.pyc +0 -0
  19. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-314.pyc +0 -0
  20. package/plugins/presales/.claude-plugin/plugin.json +9 -0
  21. package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +1 -1
  22. package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/evals.json +5 -5
  23. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-facts-cli.test.mjs +5 -1
  24. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-package-cli.test.mjs +5 -1
  25. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/browser.test.mjs +6 -2
  26. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/check-quotes-cli.test.mjs +5 -1
  27. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +5 -1
  28. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/inputs.test.mjs +6 -2
  29. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-config-cli.test.mjs +5 -1
  30. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-export-cli.test.mjs +5 -1
  31. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-gen-cli.test.mjs +5 -1
  32. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/record-cli.test.mjs +5 -1
  33. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/render.test.mjs +22 -18
  34. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +5 -1
  35. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-quotes-cli.test.mjs +5 -1
  36. package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-strategy-cli.test.mjs +5 -1
  37. package/plugins/{solution-architect → presales}/skills/estimate/README.md +14 -4
  38. package/plugins/{solution-architect → presales}/skills/estimate/classic/references/writing.md +1 -1
  39. package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/roadmap.mjs +9 -5
  40. package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/estimate-math.test.mjs +11 -0
  41. package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/project-price.test.mjs +10 -0
  42. package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/xlsx-export.test.mjs +12 -12
  43. package/plugins/{solution-architect → presales}/skills/estimate/evals/evals.json +1 -1
  44. package/plugins/presales/skills/estimate/shared/assets/xlsx-export.js +392 -0
  45. package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/project-price.mjs +6 -4
  46. package/plugins/presales/skills/estimate/workflow-based/FLOW.md +176 -0
  47. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/estimate-template.html +127 -10
  48. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
  49. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/score-review.html +164 -27
  50. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/build-template.mjs +9 -2
  51. package/plugins/presales/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +76 -0
  52. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/build-xlsx-template.py +3 -3
  53. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/cites.mjs +60 -0
  54. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/groups.mjs +65 -0
  55. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/page-html.mjs +43 -0
  56. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/page-view.mjs +30 -4
  57. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/rollup.mjs +43 -12
  58. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/schema.mjs +23 -1
  59. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +6 -1
  60. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/score-html.mjs +23 -4
  61. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-group-rows.mjs +20 -0
  62. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +81 -0
  63. package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-tasks.mjs +25 -0
  64. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/render.mjs +8 -10
  65. package/plugins/presales/skills/estimate/workflow-based/scripts/score-review.mjs +81 -0
  66. package/plugins/presales/skills/estimate/workflow-based/scripts/template/cites.js +46 -0
  67. package/plugins/presales/skills/estimate/workflow-based/scripts/template/effort.css +22 -0
  68. package/plugins/presales/skills/estimate/workflow-based/scripts/template/effort.mjs +37 -0
  69. package/plugins/presales/skills/estimate/workflow-based/scripts/template/estimate-page.css +10 -0
  70. package/plugins/presales/skills/estimate/workflow-based/scripts/template/estimate-page.js +16 -0
  71. package/plugins/presales/skills/estimate/workflow-based/scripts/template/feature-tasks.js +33 -0
  72. package/plugins/presales/skills/estimate/workflow-based/scripts/template/lavish.mjs +39 -0
  73. package/plugins/presales/skills/estimate/workflow-based/scripts/template/tasks.css +25 -0
  74. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/view.js +21 -2
  75. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/also-builds-browser.test.mjs +1 -3
  76. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/browser.test.mjs +10 -7
  77. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +10 -15
  78. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +6 -2
  79. package/plugins/presales/skills/estimate/workflow-based/scripts/test/cites.test.mjs +64 -0
  80. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/cli.test.mjs +1 -0
  81. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +5 -5
  82. package/plugins/presales/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +39 -0
  83. package/plugins/presales/skills/estimate/workflow-based/scripts/test/groups-browser.test.mjs +39 -0
  84. package/plugins/presales/skills/estimate/workflow-based/scripts/test/groups.test.mjs +156 -0
  85. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/link-picker-browser.test.mjs +1 -10
  86. package/plugins/presales/skills/estimate/workflow-based/scripts/test/open-lavish.test.mjs +54 -0
  87. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/page-html.test.mjs +7 -0
  88. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +25 -21
  89. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/render.test.mjs +5 -5
  90. package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-effort.test.mjs +104 -0
  91. package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-lavish.test.mjs +193 -0
  92. package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-tasks.test.mjs +66 -0
  93. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/schema.test.mjs +15 -0
  94. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +10 -1
  95. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/stage.mjs +16 -8
  96. package/plugins/presales/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +110 -0
  97. package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/validate.mjs +2 -0
  98. package/plugins/{solution-architect → presales}/skills/new-lead/README.md +1 -1
  99. package/plugins/{solution-architect → presales}/skills/new-lead/SKILL.md +1 -1
  100. package/plugins/{solution-architect → presales}/skills/new-lead/evals/evals.json +13 -13
  101. package/plugins/presales/skills/proposal/README.md +63 -0
  102. package/plugins/presales/skills/proposal/SKILL.md +91 -0
  103. package/plugins/presales/skills/proposal/assets/proposal-page.html +156 -0
  104. package/plugins/presales/skills/proposal/assets/roboto-widths.json +1 -0
  105. package/plugins/{solution-architect → presales}/skills/proposal/evals/evals.json +22 -22
  106. package/plugins/presales/skills/proposal/references/build.md +33 -0
  107. package/plugins/presales/skills/proposal/references/diagrams.md +123 -0
  108. package/plugins/presales/skills/proposal/references/interview.md +66 -0
  109. package/plugins/presales/skills/proposal/references/review.md +41 -0
  110. package/plugins/{solution-architect → presales}/skills/proposal/references/workflow.md +30 -22
  111. package/plugins/presales/skills/proposal/references/writing.md +167 -0
  112. package/plugins/presales/skills/proposal/scripts/build/arrows.mjs +70 -0
  113. package/plugins/presales/skills/proposal/scripts/build/brand.mjs +43 -0
  114. package/plugins/presales/skills/proposal/scripts/build/build.mjs +75 -0
  115. package/plugins/presales/skills/proposal/scripts/build/contents.mjs +42 -0
  116. package/plugins/presales/skills/proposal/scripts/build/docx-blocks.mjs +102 -0
  117. package/plugins/presales/skills/proposal/scripts/build/docx-doc.mjs +91 -0
  118. package/plugins/presales/skills/proposal/scripts/build/docx-inline.mjs +48 -0
  119. package/plugins/presales/skills/proposal/scripts/build/docx-table.mjs +75 -0
  120. package/plugins/presales/skills/proposal/scripts/build/figures.mjs +95 -0
  121. package/plugins/presales/skills/proposal/scripts/build/html.mjs +80 -0
  122. package/plugins/presales/skills/proposal/scripts/build/layout.mjs +48 -0
  123. package/plugins/presales/skills/proposal/scripts/build/notes.mjs +30 -0
  124. package/plugins/presales/skills/proposal/scripts/build/overlap.mjs +57 -0
  125. package/plugins/presales/skills/proposal/scripts/build/page.mjs +50 -0
  126. package/plugins/presales/skills/proposal/scripts/build/pdf.mjs +88 -0
  127. package/plugins/presales/skills/proposal/scripts/build/scope-ids.mjs +10 -0
  128. package/plugins/presales/skills/proposal/scripts/build/tool.mjs +35 -0
  129. package/plugins/{solution-architect → presales}/skills/proposal/scripts/derive.mjs +7 -1
  130. package/plugins/presales/skills/proposal/scripts/diagram/align.mjs +36 -0
  131. package/plugins/presales/skills/proposal/scripts/diagram/draw.mjs +81 -0
  132. package/plugins/presales/skills/proposal/scripts/diagram/grid.mjs +90 -0
  133. package/plugins/presales/skills/proposal/scripts/diagram/icons.mjs +30 -0
  134. package/plugins/presales/skills/proposal/scripts/diagram/index.mjs +23 -0
  135. package/plugins/presales/skills/proposal/scripts/diagram/layout.mjs +42 -0
  136. package/plugins/presales/skills/proposal/scripts/diagram/obstacles.mjs +49 -0
  137. package/plugins/presales/skills/proposal/scripts/diagram/pack.mjs +101 -0
  138. package/plugins/presales/skills/proposal/scripts/diagram/route.mjs +129 -0
  139. package/plugins/presales/skills/proposal/scripts/diagram/steps.mjs +74 -0
  140. package/plugins/presales/skills/proposal/scripts/diagram/style.mjs +61 -0
  141. package/plugins/presales/skills/proposal/scripts/diagram/text.mjs +28 -0
  142. package/plugins/presales/skills/proposal/scripts/lib/bans.mjs +82 -0
  143. package/plugins/presales/skills/proposal/scripts/lib/checks-client.mjs +74 -0
  144. package/plugins/presales/skills/proposal/scripts/lib/checks-doc.mjs +78 -0
  145. package/plugins/presales/skills/proposal/scripts/lib/checks.mjs +44 -0
  146. package/plugins/presales/skills/proposal/scripts/lib/citations.mjs +45 -0
  147. package/plugins/presales/skills/proposal/scripts/lib/diagram-spec.mjs +67 -0
  148. package/plugins/presales/skills/proposal/scripts/lib/figures.mjs +79 -0
  149. package/plugins/presales/skills/proposal/scripts/lib/load.mjs +42 -0
  150. package/plugins/presales/skills/proposal/scripts/lib/money.mjs +62 -0
  151. package/plugins/presales/skills/proposal/scripts/lib/parts.mjs +83 -0
  152. package/plugins/presales/skills/proposal/scripts/lib/price-source.mjs +74 -0
  153. package/plugins/presales/skills/proposal/scripts/lib/prose.mjs +55 -0
  154. package/plugins/presales/skills/proposal/scripts/lib/workbook.mjs +86 -0
  155. package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-checks.mjs +7 -2
  156. package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-cli.mjs +16 -18
  157. package/plugins/presales/skills/proposal/scripts/lib/workflow-md.mjs +35 -0
  158. package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-view.mjs +3 -3
  159. package/plugins/presales/skills/proposal/scripts/render.mjs +55 -0
  160. package/plugins/presales/skills/proposal/scripts/test/acme.mjs +28 -0
  161. package/plugins/presales/skills/proposal/scripts/test/bans.test.mjs +59 -0
  162. package/plugins/presales/skills/proposal/scripts/test/build.test.mjs +128 -0
  163. package/plugins/presales/skills/proposal/scripts/test/diagram.test.mjs +154 -0
  164. package/plugins/presales/skills/proposal/scripts/test/docs.test.mjs +13 -0
  165. package/plugins/presales/skills/proposal/scripts/test/e2e.test.mjs +20 -0
  166. package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/evals-fixtures.test.mjs +8 -5
  167. package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/figures.test.mjs +29 -1
  168. package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/diagrams/aws-on-neutral.json +60 -0
  169. package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/diagrams/booking.json +61 -0
  170. package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/proposal-fail.md +49 -0
  171. package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/proposal.md +72 -0
  172. package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/references.json +5 -0
  173. package/plugins/presales/skills/proposal/scripts/test/fixtures/workbook-recalculated.xlsx +0 -0
  174. package/plugins/presales/skills/proposal/scripts/test/fixtures/workbook-unrecalculated.xlsx +0 -0
  175. package/plugins/presales/skills/proposal/scripts/test/layout.test.mjs +89 -0
  176. package/plugins/presales/skills/proposal/scripts/test/parts.test.mjs +112 -0
  177. package/plugins/presales/skills/proposal/scripts/test/prices.test.mjs +122 -0
  178. package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/quality-gates.test.mjs +1 -1
  179. package/plugins/presales/skills/proposal/scripts/test/steps.test.mjs +38 -0
  180. package/plugins/presales/skills/proposal/scripts/test/validate.test.mjs +46 -0
  181. package/plugins/presales/skills/proposal/scripts/test/workbook.test.mjs +76 -0
  182. package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-checks.test.mjs +7 -2
  183. package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-view.test.mjs +15 -10
  184. package/plugins/{solution-architect → presales}/skills/proposal/scripts/validate.mjs +8 -3
  185. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  186. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  187. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  188. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  189. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  190. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  191. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
  192. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
  193. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
  194. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
  195. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
  196. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
  197. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
  198. package/plugins/solution-architect/.claude-plugin/plugin.json +0 -9
  199. package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +0 -336
  200. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +0 -95
  201. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +0 -1071
  202. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +0 -85
  203. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +0 -51
  204. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +0 -44
  205. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +0 -53
  206. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +0 -46
  207. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/feature-tasks.js +0 -21
  208. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +0 -30
  209. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +0 -59
  210. package/plugins/solution-architect/skills/proposal/README.md +0 -51
  211. package/plugins/solution-architect/skills/proposal/SKILL.md +0 -69
  212. package/plugins/solution-architect/skills/proposal/assets/proposal-template.html +0 -82
  213. package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +0 -143
  214. package/plugins/solution-architect/skills/proposal/references/interview.md +0 -60
  215. package/plugins/solution-architect/skills/proposal/references/review.md +0 -40
  216. package/plugins/solution-architect/skills/proposal/references/writing.md +0 -104
  217. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +0 -58
  218. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +0 -64
  219. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +0 -21
  220. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +0 -42
  221. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +0 -56
  222. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +0 -44
  223. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +0 -34
  224. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +0 -39
  225. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +0 -30
  226. package/plugins/solution-architect/skills/proposal/scripts/render.mjs +0 -64
  227. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +0 -147
  228. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +0 -152
  229. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +0 -57
  230. package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +0 -68
  231. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +0 -30
  232. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +0 -27
  233. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +0 -51
  234. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +0 -70
  235. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +0 -41
  236. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +0 -96
  237. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +0 -25
  238. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +0 -75
  239. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/case.yaml +0 -0
  240. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/fixture.sh +0 -0
  241. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/inputs-written.md +0 -0
  242. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/no-proposal-md.md +0 -0
  243. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/skill-fired.md +0 -0
  244. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/validate-then-render.md +0 -0
  245. /package/plugins/{solution-architect → presales}/evals/proposal-workflow/prompt.md +0 -0
  246. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/case.yaml +0 -0
  247. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/fixture.sh +0 -0
  248. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +0 -0
  249. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/nothing-written.md +0 -0
  250. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/skill-fired.md +0 -0
  251. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +0 -0
  252. /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/prompt.md +0 -0
  253. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/case.yaml +0 -0
  254. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/fixture.sh +0 -0
  255. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/no-estimation-md.md +0 -0
  256. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/pages-or-stop.md +0 -0
  257. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/routed-to-workflow.md +0 -0
  258. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/skill-fired.md +0 -0
  259. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/three-questions-max.md +0 -0
  260. /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/prompt.md +0 -0
  261. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/README.md +0 -0
  262. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/SKILL.md +0 -0
  263. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/OFL.txt +0 -0
  264. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
  265. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
  266. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  267. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
  268. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
  269. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/mermaid-theme.json +0 -0
  270. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/section-help.json +0 -0
  271. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/viewer-template.html +0 -0
  272. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.json +0 -0
  273. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.md +0 -0
  274. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md +0 -0
  275. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/transcript-citations/C1-kickoff-call.txt +0 -0
  276. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/transcript-citations/E1-intro-email.md +0 -0
  277. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/extract.md +0 -0
  278. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/interview.md +0 -0
  279. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/likec4.md +0 -0
  280. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/project-types.md +0 -0
  281. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/quality-goals.md +0 -0
  282. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/research.md +0 -0
  283. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/rewriting.md +0 -0
  284. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/viewer.md +0 -0
  285. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/writing.md +0 -0
  286. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/ba-facts.mjs +0 -0
  287. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/check-quotes.mjs +0 -0
  288. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/drift.mjs +0 -0
  289. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/ba-package.mjs +0 -0
  290. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/cdp.mjs +0 -0
  291. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/chrome.mjs +0 -0
  292. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/companion-links.mjs +0 -0
  293. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-kinds.mjs +0 -0
  294. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-links.mjs +0 -0
  295. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-routes.mjs +0 -0
  296. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-sections.mjs +0 -0
  297. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/drift.mjs +0 -0
  298. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/embed.mjs +0 -0
  299. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/er-entities.mjs +0 -0
  300. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/fonts.mjs +0 -0
  301. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/frontmatter.mjs +0 -0
  302. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/git-diff.mjs +0 -0
  303. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/inputs.mjs +0 -0
  304. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-config.mjs +0 -0
  305. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-extract.mjs +0 -0
  306. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-steps.mjs +0 -0
  307. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-defs.mjs +0 -0
  308. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-flows.mjs +0 -0
  309. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-inline.mjs +0 -0
  310. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-links.mjs +0 -0
  311. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-list.mjs +0 -0
  312. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-render.mjs +0 -0
  313. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-shape.mjs +0 -0
  314. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-tables.mjs +0 -0
  315. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-views.mjs +0 -0
  316. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-wide.mjs +0 -0
  317. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/nav.mjs +0 -0
  318. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/offline.mjs +0 -0
  319. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/port.mjs +0 -0
  320. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/quality-gate.mjs +0 -0
  321. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/section-help.mjs +0 -0
  322. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/slug-registry.mjs +0 -0
  323. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/state.mjs +0 -0
  324. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/strategy-sections.mjs +0 -0
  325. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-clusters.mjs +0 -0
  326. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-deployment.mjs +0 -0
  327. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-elections.mjs +0 -0
  328. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-links.mjs +0 -0
  329. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-model-tables.mjs +0 -0
  330. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-palette.mjs +0 -0
  331. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-provenance.mjs +0 -0
  332. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-quotes.mjs +0 -0
  333. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-strategy.mjs +0 -0
  334. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-tree.mjs +0 -0
  335. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-config.mjs +0 -0
  336. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-export.mjs +0 -0
  337. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-gen.mjs +0 -0
  338. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/record.mjs +0 -0
  339. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/render.mjs +0 -0
  340. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/serve.mjs +0 -0
  341. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-package.test.mjs +0 -0
  342. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/companion-links.test.mjs +0 -0
  343. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-kinds.test.mjs +0 -0
  344. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-links.test.mjs +0 -0
  345. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-routes.test.mjs +0 -0
  346. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-sections.test.mjs +0 -0
  347. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/drift.test.mjs +0 -0
  348. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/embed.test.mjs +0 -0
  349. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/er-entities.test.mjs +0 -0
  350. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/extract-workflow.test.mjs +0 -0
  351. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/ARCHITECTURE.md +0 -0
  352. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/broken/model.c4 +0 -0
  353. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/pass/model.c4 +0 -0
  354. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/adr/0001-sample.md +0 -0
  355. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimate.html +0 -0
  356. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimation.md +0 -0
  357. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model-broken.json +0 -0
  358. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model.json +0 -0
  359. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/threat-model.md +0 -0
  360. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/sample-model.json +0 -0
  361. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/sample.c4 +0 -0
  362. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fonts.test.mjs +0 -0
  363. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/frontmatter.test.mjs +0 -0
  364. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/git-diff.test.mjs +0 -0
  365. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-config.test.mjs +0 -0
  366. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-extract.test.mjs +0 -0
  367. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-steps.test.mjs +0 -0
  368. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-flows.test.mjs +0 -0
  369. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-links.test.mjs +0 -0
  370. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-provenance.test.mjs +0 -0
  371. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-render.test.mjs +0 -0
  372. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-tables.test.mjs +0 -0
  373. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-views.test.mjs +0 -0
  374. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-wide.test.mjs +0 -0
  375. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/nav.test.mjs +0 -0
  376. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/offline.test.mjs +0 -0
  377. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +0 -0
  378. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/quality-gates.test.mjs +0 -0
  379. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/research-workflow.test.mjs +0 -0
  380. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/rewriting.test.mjs +0 -0
  381. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/section-help.test.mjs +0 -0
  382. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/serve.test.mjs +0 -0
  383. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/state.test.mjs +0 -0
  384. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-clusters.test.mjs +0 -0
  385. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-deployment.test.mjs +0 -0
  386. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-elections.test.mjs +0 -0
  387. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-links.test.mjs +0 -0
  388. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-model-tables.test.mjs +0 -0
  389. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-provenance.test.mjs +0 -0
  390. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-quotes.test.mjs +0 -0
  391. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-strategy.test.mjs +0 -0
  392. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-tree.test.mjs +0 -0
  393. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/viewer-template.test.mjs +0 -0
  394. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/validate.mjs +0 -0
  395. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/workflows/extract.js +0 -0
  396. /package/plugins/{solution-architect → presales}/skills/analyze-requirements/workflows/research.js +0 -0
  397. /package/plugins/{solution-architect → presales}/skills/estimate/SKILL.md +0 -0
  398. /package/plugins/{solution-architect → presales}/skills/estimate/classic/FLOW.md +0 -0
  399. /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/estimate-template-agentic.html +0 -0
  400. /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/estimate-template.html +0 -0
  401. /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/scores-review-template.html +0 -0
  402. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/agentic-estimation.md +0 -0
  403. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/ai-multipliers.md +0 -0
  404. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/interview.md +0 -0
  405. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/scoring-guide.md +0 -0
  406. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/slicing.md +0 -0
  407. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/task-shapes.md +0 -0
  408. /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/techniques.md +0 -0
  409. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/compute.mjs +0 -0
  410. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/agentic-checks.mjs +0 -0
  411. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/checks.mjs +0 -0
  412. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/components.mjs +0 -0
  413. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/md-tables.mjs +0 -0
  414. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/redact.mjs +0 -0
  415. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/rollup.mjs +0 -0
  416. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/schema.mjs +0 -0
  417. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/score-csv.mjs +0 -0
  418. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/score-html.mjs +0 -0
  419. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/scoring-checks.mjs +0 -0
  420. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/render.mjs +0 -0
  421. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/score-review.mjs +0 -0
  422. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/baselines.test.mjs +0 -0
  423. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/browser-agentic.test.mjs +0 -0
  424. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/browser.test.mjs +0 -0
  425. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/compute.test.mjs +0 -0
  426. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/e2e.test.mjs +0 -0
  427. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-estimation-fail.md +0 -0
  428. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-estimation-pass.md +0 -0
  429. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-inputs.json +0 -0
  430. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/booking-inputs.json +0 -0
  431. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/estimation-fail.md +0 -0
  432. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/estimation-pass.md +0 -0
  433. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/measurements.jsonl +0 -0
  434. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/measurements.test.mjs +0 -0
  435. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/pricing.test.mjs +0 -0
  436. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/quality-gates.test.mjs +0 -0
  437. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/references.test.mjs +0 -0
  438. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/render.test.mjs +0 -0
  439. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/schema.test.mjs +0 -0
  440. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/score-review.test.mjs +0 -0
  441. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/scoring.test.mjs +0 -0
  442. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/url-state.test.mjs +0 -0
  443. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/validate.test.mjs +0 -0
  444. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/zip-store.test.mjs +0 -0
  445. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/zip.mjs +0 -0
  446. /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/validate.mjs +0 -0
  447. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/gate-check-northgate/northgate-email.md +0 -0
  448. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl +0 -0
  449. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.json +0 -0
  450. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.md +0 -0
  451. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md +0 -0
  452. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.json +0 -0
  453. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.md +0 -0
  454. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +0 -0
  455. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +0 -0
  456. /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +0 -0
  457. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/agentic-task-schema.mjs +0 -0
  458. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/baselines.mjs +0 -0
  459. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/context-schema.mjs +0 -0
  460. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/estimate-math.mjs +0 -0
  461. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/inline.mjs +0 -0
  462. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/measurements.mjs +0 -0
  463. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/pricing.mjs +0 -0
  464. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/score-diff.mjs +0 -0
  465. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/scoring-schema.mjs +0 -0
  466. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/scoring.mjs +0 -0
  467. /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/zip.mjs +0 -0
  468. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/references/hidden-work-by-type.md +0 -0
  469. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/references/linking.md +0 -0
  470. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/compute.mjs +0 -0
  471. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +0 -0
  472. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/requirements.mjs +0 -0
  473. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +0 -0
  474. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/also-builds.css +0 -0
  475. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/also-builds.js +0 -0
  476. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/arch-link.js +0 -0
  477. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/click.js +0 -0
  478. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/link-picker.css +0 -0
  479. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/link-picker.js +0 -0
  480. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/prelude.js +0 -0
  481. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +0 -0
  482. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +0 -0
  483. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +0 -0
  484. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
  485. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +0 -0
  486. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +0 -0
  487. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +0 -0
  488. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +0 -0
  489. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +0 -0
  490. /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +0 -0
  491. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/detail.html +0 -0
  492. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/index.html +0 -0
  493. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/start.sh +0 -0
  494. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/stats.mjs +0 -0
  495. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/vendor/reactflow-bundle.js +0 -0
  496. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/entry.jsx +0 -0
  497. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/package-lock.json +0 -0
  498. /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/package.json +0 -0
  499. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md +0 -0
  500. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md +0 -0
  501. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html +0 -0
  502. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json +0 -0
  503. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md +0 -0
  504. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json +0 -0
  505. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md +0 -0
  506. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md +0 -0
  507. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md +0 -0
  508. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json +0 -0
  509. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md +0 -0
  510. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md +0 -0
  511. /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json +0 -0
  512. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/init-root.mjs +0 -0
  513. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lead-upsert.mjs +0 -0
  514. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/enrich.mjs +0 -0
  515. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/map-nodes.mjs +0 -0
  516. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/map.mjs +0 -0
  517. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/port.mjs +0 -0
  518. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/registry.mjs +0 -0
  519. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/serve.mjs +0 -0
  520. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/e2e-workspace.test.mjs +0 -0
  521. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/enrich.test.mjs +0 -0
  522. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/ARCHITECTURE.md +0 -0
  523. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/brief.md +0 -0
  524. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/index.html +0 -0
  525. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/proposal-non-tech.html +0 -0
  526. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/threat-model.html +0 -0
  527. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation-inputs.json +0 -0
  528. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation.json +0 -0
  529. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/notes.md +0 -0
  530. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/proposal-non-tech.md +0 -0
  531. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/rfp.md +0 -0
  532. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads.json +0 -0
  533. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/init-root.test.mjs +0 -0
  534. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/lead-upsert.test.mjs +0 -0
  535. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/map.test.mjs +0 -0
  536. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/port.test.mjs +0 -0
  537. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/registry-io.test.mjs +0 -0
  538. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/registry.test.mjs +0 -0
  539. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/serve.test.mjs +0 -0
  540. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/stats.test.mjs +0 -0
  541. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/validate-cli.test.mjs +0 -0
  542. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/vendor-bundle.test.mjs +0 -0
  543. /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/validate.mjs +0 -0
  544. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-rivet-gym/ARCHITECTURE.md +0 -0
  545. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-rivet-gym/brief.md +0 -0
  546. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +0 -0
  547. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +0 -0
  548. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +0 -0
  549. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +0 -0
  550. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/ARCHITECTURE.md +0 -0
  551. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/brief.md +0 -0
  552. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/dist/mermaid.js +0 -0
  553. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +0 -0
  554. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +0 -0
  555. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +0 -0
  556. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/ARCHITECTURE.md +0 -0
  557. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/brief.md +0 -0
  558. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/dist/mermaid.js +0 -0
  559. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +0 -0
  560. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +0 -0
  561. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +0 -0
  562. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +0 -0
  563. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +0 -0
  564. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +0 -0
  565. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
  566. /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +0 -0
  567. /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/jargon.mjs +0 -0
  568. /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/sections.mjs +0 -0
  569. /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-lead.mjs +0 -0
  570. /package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +0 -0
  571. /package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-stage.mjs +0 -0
  572. /package/plugins/{solution-architect → presales}/workflows/review-links.js +0 -0
@@ -0,0 +1,193 @@
1
+ // Opened through Lavish (window.lavish present), the footer's one button sends
2
+ // the engineer's final decision to the agent instead of copy and paste.
3
+ import { test } from 'node:test';
4
+ import assert from 'node:assert/strict';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
7
+ import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
8
+ import { reviewPage } from './stage.mjs';
9
+
10
+ const skip = !findChrome();
11
+ const settle = () => new Promise((r) => setTimeout(r, 1500));
12
+ const calibrated = (i) => { i.measurementsPath = fileURLToPath(new URL('./fixtures/measurements.jsonl', import.meta.url)); };
13
+ const FAKE = 'window.lavish = { queuePrompt: (p, o) => { window.__queued = { p, o }; }, sendQueuedPrompts: () => { window.__sent = (window.__sent || 0) + 1; } };';
14
+ const send = `(() => { document.getElementById('preview').click(); const b = document.getElementById('copy'); const label = b.textContent; b.click(); return label; })()`;
15
+ const shown = (page, id) => page.eval(`getComputedStyle(document.getElementById('${id}')).display !== 'none'`);
16
+ const text = (page, id) => page.eval(`document.getElementById('${id}').textContent`);
17
+
18
+ test('under Lavish, one footer button sends the final decision to the agent', { skip }, async () => {
19
+ const page = await openPage(reviewPage(calibrated));
20
+ try {
21
+ await settle();
22
+ await underLavish(page);
23
+ assert.equal(await shown(page, 'reset'), false, 'no Start over');
24
+ assert.equal(await shown(page, 'nextc'), false, 'no Next to check');
25
+ assert.equal(await text(page, 'preview'), 'Finish → send to the agent');
26
+ assert.match(await text(page, 'finishNote'), /finish here, not with Send & End/);
27
+ await page.eval(`document.querySelector('[data-fk="FEAT-001:size"] .pick button[data-n="5"]').click()`);
28
+ await page.eval(`document.getElementById('preview').click()`);
29
+ assert.equal(await page.eval(`document.getElementById('dlg').open`), false, 'no preview pop-up');
30
+ const { p, o } = JSON.parse(await page.eval('JSON.stringify(window.__queued)'));
31
+ assert.match(p, /score-review\.mjs --read/);
32
+ assert.match(p, /follows the `Context data:` line/, 'Lavish appends data to the prompt; there is no data field');
33
+ assert.equal(o.tag, 'score-feedback');
34
+ assert.equal(o.queueKey, 'score-feedback');
35
+ assert.deepEqual(o.data, JSON.parse(await page.eval('JSON.stringify(window.__feedback())')));
36
+ assert.equal(o.data.features.find((f) => f.id === 'FEAT-001').scores.size, 5, 'the latest decision');
37
+ assert.equal(await page.eval('window.__sent'), 1, 'sent, not left in the queue');
38
+ assert.match(await text(page, 'finishNote'), /Sent/);
39
+ assert.equal(await page.eval(`document.getElementById('preview').disabled`), true, 'sent once');
40
+ assert.deepEqual(page.errors, []);
41
+ } finally { await page.close(); }
42
+ });
43
+
44
+ test('under Lavish, Finish with a feature not built yet sends nothing and says why', { skip }, async () => {
45
+ const page = await openPage(reviewPage(calibrated));
46
+ try {
47
+ await settle();
48
+ await underLavish(page);
49
+ await page.eval(`(() => { let b; while ((b = document.querySelector('[data-unlink$=":FEAT-001"]'))) b.click(); })()`);
50
+ await page.eval(`document.getElementById('preview').click()`);
51
+ assert.equal(await page.eval('window.__queued'), undefined);
52
+ assert.equal(await page.eval('window.__sent'), undefined);
53
+ assert.match(await text(page, 'finishNote'), /not built yet/);
54
+ assert.deepEqual(page.errors, []);
55
+ } finally { await page.close(); }
56
+ });
57
+
58
+ test('without Lavish, the footer is unchanged and Review & send still copies', { skip }, async () => {
59
+ const page = await openPage(reviewPage(calibrated));
60
+ try {
61
+ await settle();
62
+ assert.equal(await shown(page, 'reset'), true);
63
+ assert.equal(await shown(page, 'nextc'), true);
64
+ assert.equal(await page.eval(send), 'Copy feedback');
65
+ assert.equal(await page.eval('window.__queued'), undefined);
66
+ } finally { await page.close(); }
67
+ });
68
+
69
+ // Lavish's SDK is in the page before its script runs; the fake must be too.
70
+ async function underLavish(page) {
71
+ await page.send('Page.enable');
72
+ await page.send('Page.addScriptToEvaluateOnNewDocument', { source: FAKE });
73
+ await page.eval('location.reload()');
74
+ await settle();
75
+ }
76
+ const lit = (page) => page.eval(`(() => { document.querySelector('.dot').dispatchEvent(new MouseEvent('mouseover', { bubbles: true })); return document.querySelectorAll('.hl').length; })()`);
77
+ // Lavish in comment mode adds #lavish-cursor-style and listens on document in
78
+ // the capture phase; this fake records which element each real mouse event reaches.
79
+ const COMMENT_MODE = `${FAKE} window.__seen = []; addEventListener('DOMContentLoaded', () => {
80
+ const s = document.createElement('style'); s.id = 'lavish-cursor-style'; document.head.append(s);
81
+ for (const t of ['mouseover', 'click']) document.addEventListener(t, (e) => window.__seen.push(t + ' ' + e.target.className), true); });`;
82
+ async function hover(page, sel) {
83
+ const { x, y } = JSON.parse(await page.eval(`(() => { const el = document.querySelector('${sel}'); el.scrollIntoView({ block: 'center' }); const r = el.getBoundingClientRect(); return JSON.stringify({ x: r.left + 3, y: r.top + 3 }); })()`));
84
+ await page.send('Input.dispatchMouseEvent', { type: 'mouseMoved', x: 1, y: 1 });
85
+ await page.eval('window.__seen = []');
86
+ await page.send('Input.dispatchMouseEvent', { type: 'mouseMoved', x, y });
87
+ return JSON.parse(await page.eval('JSON.stringify(window.__seen)'));
88
+ }
89
+
90
+ test('in Lavish comment mode, notes land on whole estimate units and nowhere else', { skip }, async () => {
91
+ const page = await openPage(reviewPage(calibrated));
92
+ try {
93
+ await settle();
94
+ await page.send('Page.enable');
95
+ await page.send('Page.addScriptToEvaluateOnNewDocument', { source: COMMENT_MODE });
96
+ await page.eval('location.reload()');
97
+ await settle();
98
+ await page.eval(`document.querySelectorAll('details').forEach((d) => { d.open = true; })`);
99
+ assert.deepEqual(await hover(page, '[data-fk="FEAT-001:tech"] .flabel'), ['mouseover factor'], 'a score: the whole block');
100
+ assert.deepEqual(await hover(page, '.crow .cname'), ['mouseover crow'], 'a component: the row');
101
+ assert.deepEqual(await hover(page, 'details.guide td'), [], 'the scoring guide takes no note');
102
+ assert.deepEqual(await hover(page, '.howto'), [], 'nor does page chrome');
103
+ const btn = '[data-fk="FEAT-001:size"] .pick button[data-n="5"]';
104
+ await hover(page, btn);
105
+ const { x, y } = JSON.parse(await page.eval(`(() => { const r = document.querySelector('${btn}').getBoundingClientRect(); return JSON.stringify({ x: r.left + r.width / 2, y: r.top + r.height / 2 }); })()`));
106
+ for (const type of ['mousePressed', 'mouseReleased']) await page.send('Input.dispatchMouseEvent', { type, x, y, button: 'left', clickCount: 1 });
107
+ assert.equal(await page.eval(`window.__feedback().features.find((f) => f.id === 'FEAT-001').scores.size`), 5, 'a score button still scores');
108
+ await page.eval(`(() => { const i = document.querySelector('[data-lpick="FEAT-001"] input'); i.value = 'a'; i.dispatchEvent(new Event('input', { bubbles: true })); })()`);
109
+ assert.match((await hover(page, '[data-lpick="FEAT-001"] .lpick-o')).join(), /^mouseover lpick-o\b/, 'a picker option is a control: it passes through');
110
+ await page.eval(`document.querySelector('[data-lpick="FEAT-001"] .lpick-list').classList.add('hide')`);
111
+ await page.eval(`document.querySelector('details.tasks').open = true`); // the task table is folded by default
112
+ assert.deepEqual(await hover(page, 'details.tasks td'), ['mouseover '], 'a task: the row');
113
+ assert.deepEqual(page.errors, []);
114
+ } finally { await page.close(); }
115
+ });
116
+
117
+ test('under Lavish: hover lights nothing (Lavish outlines), and the page says edits are not kept', { skip }, async () => {
118
+ const page = await openPage(reviewPage(calibrated));
119
+ try {
120
+ await settle();
121
+ assert.ok(await lit(page) > 0, 'without Lavish, hover lights the related cards');
122
+ await underLavish(page);
123
+ assert.equal(await lit(page), 0);
124
+ const note = () => text(page, 'finishNote');
125
+ assert.match(await note(), /not kept/);
126
+ await page.eval(`document.querySelector('[data-fk="FEAT-001:size"] .pick button[data-n="5"]').click()`);
127
+ assert.match(await note(), /not kept/);
128
+ assert.deepEqual(page.errors, []);
129
+ } finally { await page.close(); }
130
+ });
131
+
132
+ test('under Lavish the footer is one thin band: no second save line', { skip }, async () => {
133
+ const page = await openPage(reviewPage(calibrated));
134
+ try {
135
+ await page.send('Emulation.setDeviceMetricsOverride', { width: 860, height: 700, deviceScaleFactor: 1, mobile: false });
136
+ await settle();
137
+ await underLavish(page);
138
+ assert.equal(await shown(page, 'saved'), false, 'the note says it; no second line');
139
+ assert.ok(await page.eval(`document.querySelector('.bar').offsetHeight`) <= 72, 'thin: button and note, no more');
140
+ assert.deepEqual(page.errors, []);
141
+ } finally { await page.close(); }
142
+ });
143
+
144
+ test('under Lavish, the note sits under the button, beside the counts, even on a narrow panel', { skip }, async () => {
145
+ const page = await openPage(reviewPage(calibrated));
146
+ try {
147
+ await page.send('Emulation.setDeviceMetricsOverride', { width: 700, height: 700, deviceScaleFactor: 1, mobile: false });
148
+ await settle();
149
+ await underLavish(page);
150
+ const r = JSON.parse(await page.eval(`JSON.stringify(Object.fromEntries(['stat', 'preview', 'finishNote'].map((id) => { const b = document.getElementById(id).getBoundingClientRect(); return [id, { top: b.top, bottom: b.bottom, right: b.right }]; })))`));
151
+ assert.ok(r.finishNote.top >= r.preview.bottom, 'note under the button');
152
+ assert.ok(Math.abs(r.finishNote.right - r.preview.right) < 2, 'right-aligned with it');
153
+ assert.ok(r.stat.top >= r.preview.top - 2 && r.stat.bottom <= r.finishNote.bottom + 2, 'counts stay in the same band');
154
+ assert.deepEqual(page.errors, []);
155
+ } finally { await page.close(); }
156
+ });
157
+
158
+ // Under Lavish the engineer talks to the agent through notes on the cards, so the
159
+ // page's own free-text boxes go: Finish carries the scores and nothing to answer.
160
+ const boxes = (page) => page.eval(`(() => { document.querySelector('[data-fk="FEAT-001:size"] .pick button[data-n="5"]').click();
161
+ return ['[data-note="FEAT-001"]', '[data-reason="FEAT-001:size"]'].map((s) => getComputedStyle(document.querySelector(s).closest('.note, .reason')).display !== 'none'); })()`);
162
+ test('under Lavish, no "Note in plain words" and no "Why this score?" boxes', { skip }, async () => {
163
+ const page = await openPage(reviewPage(calibrated));
164
+ try {
165
+ await settle();
166
+ assert.deepEqual(await boxes(page), [true, true], 'without Lavish both boxes show');
167
+ await underLavish(page);
168
+ assert.deepEqual(await boxes(page), [false, false]);
169
+ assert.deepEqual(page.errors, []);
170
+ } finally { await page.close(); }
171
+ });
172
+
173
+ // Lavish draws its note card in a shadow root under a [data-lavish-ui] host; from
174
+ // outside, a click on its buttons reads as a click on the host.
175
+ test('in Lavish comment mode, the buttons on Lavish\'s own note card still work', { skip }, async () => {
176
+ const page = await openPage(reviewPage(calibrated));
177
+ try {
178
+ await settle();
179
+ await page.send('Page.enable');
180
+ await page.send('Page.addScriptToEvaluateOnNewDocument', { source: COMMENT_MODE });
181
+ await page.eval('location.reload()');
182
+ await settle();
183
+ const { x, y } = JSON.parse(await page.eval(`(() => {
184
+ const host = document.createElement('div'); host.setAttribute('data-lavish-ui', '');
185
+ host.style.cssText = 'position:fixed; top:100px; left:100px; z-index:99';
186
+ const b = document.createElement('button'); b.textContent = 'Queue'; b.onclick = () => { window.__queuedNote = true; };
187
+ host.attachShadow({ mode: 'open' }).append(b); document.body.append(host);
188
+ const r = b.getBoundingClientRect(); return JSON.stringify({ x: r.left + 3, y: r.top + 3 }); })()`));
189
+ for (const type of ['mousePressed', 'mouseReleased']) await page.send('Input.dispatchMouseEvent', { type, x, y, button: 'left', clickCount: 1 });
190
+ assert.equal(await page.eval('window.__queuedNote'), true);
191
+ assert.deepEqual(page.errors, []);
192
+ } finally { await page.close(); }
193
+ });
@@ -0,0 +1,66 @@
1
+ // Option B of the score review: each feature card holds one task table across
2
+ // its components, and each score names the tasks it rests on. Hovering a cite
3
+ // lights its rows; hovering a row lights the scores that cite it.
4
+ import { test } from 'node:test';
5
+ import assert from 'node:assert/strict';
6
+ import { fileURLToPath } from 'node:url';
7
+ import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
8
+ import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
9
+ import { reviewPage } from './stage.mjs';
10
+
11
+ const skip = !findChrome();
12
+ const settle = () => new Promise((r) => setTimeout(r, 1500));
13
+ const fx = fileURLToPath(new URL('./fixtures/measurements.jsonl', import.meta.url));
14
+ const task = (i, id) => i.components.flatMap((c) => c.tasks ?? []).find((t) => t.id === id);
15
+ function cited(i) {
16
+ i.measurementsPath = fx;
17
+ task(i, 'stage-engine').source = 'WF-002:Pack';
18
+ task(i, 'notify-impl').source = 'new';
19
+ const f1 = i.features.find((f) => f.id === 'FEAT-001');
20
+ f1.scores.size.tasks = ['stage-engine', 'stage-tests'];
21
+ f1.scores.tech.tasks = ['stage-engine'];
22
+ }
23
+ const ev = (page, js) => page.eval(`(() => { ${js} })()`);
24
+ const hover = (sel) => `document.querySelector('${sel}').dispatchEvent(new MouseEvent('mouseover', { bubbles: true }));`;
25
+
26
+ test('one task table per card, across its components, with step tag and box', { skip }, async () => {
27
+ const page = await openPage(reviewPage(cited));
28
+ try {
29
+ await settle();
30
+ const rows = JSON.parse(await ev(page, `return JSON.stringify([...document.querySelectorAll('#c-FEAT-001 details.tasks tbody tr')].map((tr) => [tr.dataset.task, tr.querySelector('.step')?.textContent ?? '', tr.querySelector('.box').textContent]));`));
31
+ assert.deepEqual(rows.map((r) => r[0]), ['stage-engine', 'stage-tests', 'office-screens']);
32
+ assert.deepEqual(rows[0].slice(1), ['Pack', 'Stage Engine']);
33
+ assert.equal(await ev(page, "return document.querySelectorAll('#c-FEAT-001 details.tasks').length"), 1);
34
+ assert.equal(await ev(page, "return document.querySelector('[data-side]')"), null, 'no Scoring/Effort switch');
35
+ assert.ok(await ev(page, "return document.querySelector('[data-hrs=\"FEAT-001\"]').offsetParent !== null"), 'hours show beside the scores');
36
+ assert.deepEqual(page.errors, []);
37
+ } finally { await page.close(); }
38
+ });
39
+
40
+ test('a score shows its reason and its tasks; cites and rows light each other', { skip }, async () => {
41
+ const page = await openPage(reviewPage(cited));
42
+ try {
43
+ await settle();
44
+ assert.equal(await ev(page, "return document.querySelector('[data-fk=\"FEAT-001:tech\"] .why').textContent"), 'five stages, role-scoped views');
45
+ assert.equal(await ev(page, "return [...document.querySelectorAll('[data-fk=\"FEAT-001:size\"] .cite')].map((b) => b.dataset.task).join()"), 'stage-engine,stage-tests');
46
+ await ev(page, hover('[data-fk="FEAT-001:size"] .cite[data-task="stage-tests"]'));
47
+ assert.equal(await ev(page, "return [...document.querySelectorAll('#c-FEAT-001 tr.lit')].map((r) => r.dataset.task).join()"), 'stage-tests');
48
+ await ev(page, hover('#c-FEAT-001 tr[data-task="stage-engine"]'));
49
+ assert.equal(await ev(page, "return [...document.querySelectorAll('#c-FEAT-001 .cite.lit')].map((b) => b.closest('.factor').dataset.fk).join()"), 'FEAT-001:tech,FEAT-001:size');
50
+ assert.ok(await ev(page, "return document.querySelector('[data-fk=\"FEAT-001:risk\"]').classList.contains('fade')"));
51
+ await ev(page, "document.querySelector('[data-fk=\"FEAT-001:tech\"] .cite').click();");
52
+ assert.ok(await ev(page, "return document.querySelector('#c-FEAT-001 details.tasks').open"), 'a cite opens the table');
53
+ assert.deepEqual(page.errors, []);
54
+ } finally { await page.close(); }
55
+ });
56
+
57
+ test('new work Uncertainty does not cite is flagged on the card', { skip }, async () => {
58
+ const page = await openPage(reviewPage(cited));
59
+ try {
60
+ await settle();
61
+ assert.match(await ev(page, "return document.querySelector('#c-FEAT-002 details.tasks summary').textContent"), /⚠ 1 new, not cited/);
62
+ assert.match(await ev(page, "return document.querySelector('[data-fk=\"FEAT-002:unc\"] .fwarn').textContent"), /Alert delivery/);
63
+ assert.equal(await ev(page, "return document.querySelector('[data-fk=\"FEAT-001:unc\"] .fwarn')"), null);
64
+ assert.deepEqual(page.errors, []);
65
+ } finally { await page.close(); }
66
+ });
@@ -62,3 +62,18 @@ test('req null → only the file finding', () => {
62
62
  const { inputs } = load();
63
63
  assert.deepEqual(checkWorkflowInputs(inputs, null), ['requirements: file not found']);
64
64
  });
65
+
66
+ // Overhead lines a reviewer restated for one project (estimation-inputs.json `overheadRates`).
67
+ function withRates(rates, source = 'final workbook review') {
68
+ const { inputs, req } = load();
69
+ inputs.overheadRates = rates;
70
+ if (source !== undefined) inputs.overheadSource = source;
71
+ return checkWorkflowInputs(inputs, req);
72
+ }
73
+
74
+ test('restated overhead lines are valid when each is a known line, a fraction, and the source is given', () => {
75
+ assert.deepEqual(withRates({ discovery: 0.1, qa: 0.25 }), []);
76
+ assert.ok(withRates({ coffee: 0.1 }).some((f) => /overheadRates.coffee: not an overhead line/.test(f)));
77
+ assert.ok(withRates({ qa: 25 }).some((f) => /overheadRates.qa: must be a fraction/.test(f)));
78
+ assert.ok(withRates({ qa: 0.25 }, '').some((f) => /needs overheadSource/.test(f)));
79
+ });
@@ -28,6 +28,13 @@ test('pageData maps the BA package and inputs into the page shape', () => {
28
28
  assert.deepEqual(d.implements['office'], ['FEAT-001', 'FEAT-003', 'FEAT-005']);
29
29
  assert.deepEqual(d.scores['FEAT-001'], [3, 3, 2, 3, 3]);
30
30
  assert.equal(d.anchor.tech.length, 5);
31
+ assert.deepEqual(d.cites['FEAT-001'].tech, { text: 'five stages, role-scoped views', tasks: [] });
32
+ });
33
+
34
+ test('pageData carries the tasks a score cites', () => {
35
+ const { inputs, req } = loadPair(fx('inputs-pass.json'));
36
+ inputs.features[0].scores.size.tasks = ['stage-engine', 'stage-tests'];
37
+ assert.deepEqual(pageData({ inputs, req, guide: loadGuide() }).cites['FEAT-001'].size.tasks, ['stage-engine', 'stage-tests']);
31
38
  });
32
39
 
33
40
  test('diffLinks and applyLinks move FEAT-004 from the drafter to orders', () => {
@@ -68,12 +75,14 @@ test('CLI --write embeds the page data; --read prints the review object', () =>
68
75
  const dir = mkdtempSync(join(tmpdir(), 'wf-sr-'));
69
76
  copyFileSync(fx('inputs-pass.json'), join(dir, 'estimation-inputs.json'));
70
77
  copyFileSync(fx('requirements.json'), join(dir, 'requirements.json'));
71
- execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
78
+ execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), '--no-open']);
72
79
  const html = readFileSync(join(dir, 'review.html'), 'utf8');
73
80
  assert.match(html, /<title>sin-kowa-mini — score review<\/title>/);
74
81
  const data = JSON.parse(html.match(/<script type="application\/json" id="page-data">([\s\S]*?)<\/script>/)[1]);
75
82
  assert.equal(data.data.systems.length, 2);
76
83
  assert.doesNotMatch(html, /slot:/);
84
+ // Lavish turns any .mermaid element into its own whiteboard, blanking our diagrams
85
+ assert.doesNotMatch(html, /class="mermaid|\.mermaid\b/);
77
86
  writeFileSync(join(dir, 'feedback.json'), JSON.stringify(feedback()));
78
87
  const out = JSON.parse(execFileSync('node', [script, '--read', join(dir, 'feedback.json'), '--inputs', join(dir, 'estimation-inputs.json')], { encoding: 'utf8' }));
79
88
  assert.equal(out.links.length, 2);
@@ -19,6 +19,21 @@ export function staged(mutate) {
19
19
  return dir;
20
20
  }
21
21
 
22
+ // The fixture's five features in two groups; each group borrows the scores of
23
+ // its first member so the anchors stay the guide's own sentences.
24
+ export function grouped(inputs) {
25
+ const byId = Object.fromEntries(inputs.features.map((f) => [f.id, f]));
26
+ const group = (id, name, members) => ({
27
+ id, name, members, scoreNote: `${name} scored as one unit`, scoreProvenance: 'proposed', scores: byId[members[0]].scores,
28
+ });
29
+ inputs.featureGroups = [
30
+ group('GRP-01', 'Warehouse flow', ['FEAT-001', 'FEAT-002', 'FEAT-003']),
31
+ group('GRP-02', 'Office and billing', ['FEAT-004', 'FEAT-005']),
32
+ ];
33
+ inputs.features = inputs.features.map((f) => ({ id: f.id }));
34
+ return inputs;
35
+ }
36
+
22
37
  // SYS-002 as a PO document that lists features but draws no workflow: the
23
38
  // system owns none and its features sit on no step (BA 0.4.0 allows it).
24
39
  export function noFlowsAt(dir) {
@@ -38,13 +53,6 @@ export function reviewPage(mutate) {
38
53
  if (mutate) mutate(inputs);
39
54
  writeFileSync(join(dir, 'estimation-inputs.json'), JSON.stringify(inputs));
40
55
  copyFileSync(fx('requirements.json'), join(dir, 'requirements.json'));
41
- execFileSync('node', [script('score-review'), '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
56
+ execFileSync('node', [script('score-review'), '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), '--no-open']);
42
57
  return pathToFileURL(join(dir, 'review.html')).href;
43
58
  }
44
-
45
- // The Component-based estimate page for the fixture lead, as a file URL.
46
- export function componentsPage(mutate) {
47
- const dir = staged(mutate);
48
- execFileSync('node', [script('render'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', join(dir, 'dist')]);
49
- return pathToFileURL(join(dir, 'dist', 'estimate-components.html')).href;
50
- }
@@ -0,0 +1,110 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { loadPair } from '../lib/requirements.mjs';
5
+ import { computeWorkflowEstimation } from '../lib/rollup.mjs';
6
+ import { xlsxRows, coverageRows } from '../lib/xlsx-rows.mjs';
7
+
8
+ const fx = fileURLToPath(new URL('./fixtures/inputs-pass.json', import.meta.url));
9
+ function rows(editReq, editInputs) {
10
+ const { inputs, req } = loadPair(fx);
11
+ if (editReq) editReq(req);
12
+ if (editInputs) editInputs(inputs);
13
+ return xlsxRows(computeWorkflowEstimation(inputs, req, []), req);
14
+ }
15
+
16
+ test('one row per feature, grouped by system in requirements order, main builder sets milestone and container', () => {
17
+ const r = rows();
18
+ assert.deepEqual(r.map((x) => [x.id, x.system]), [
19
+ ['FEAT-001', 'Warehouse operations'], ['FEAT-002', 'Warehouse operations'],
20
+ ['FEAT-003', 'Orders & invoicing'], ['FEAT-004', 'Orders & invoicing'], ['FEAT-005', 'Orders & invoicing'],
21
+ ]);
22
+ const f1 = r[0];
23
+ assert.equal(f1.name, 'Order pipeline & stage engine');
24
+ assert.equal(f1.milestone, 'M1 - Walking skeleton');
25
+ assert.equal(f1.container, 'Core API'); // main builder api.stage, parent api
26
+ assert.equal(f1.provenance, 'stated');
27
+ assert.equal(r.find((x) => x.id === 'FEAT-004').provenance, 'proposed'); // BA label "recommended"
28
+ assert.equal(f1.scores.tech.n, 3);
29
+ });
30
+
31
+ test('a feature in no system goes last, with a blank system', () => {
32
+ const r = rows((req) => { req.systems[0].features = ['FEAT-002']; });
33
+ assert.deepEqual(r.map((x) => [x.id, x.system]), [
34
+ ['FEAT-002', 'Warehouse operations'], ['FEAT-003', 'Orders & invoicing'], ['FEAT-004', 'Orders & invoicing'],
35
+ ['FEAT-005', 'Orders & invoicing'], ['FEAT-001', ''],
36
+ ]);
37
+ assert.deepEqual(r.at(-1).group + r.at(-1).code, ''); // a loose feature has no codes
38
+ });
39
+
40
+ test('group and sub-feature codes follow the systems and their features in order', () => {
41
+ assert.deepEqual(rows().map((x) => [x.id, x.group, x.code]), [
42
+ ['FEAT-001', 'M1', 'M1.1'], ['FEAT-002', 'M1', 'M1.2'],
43
+ ['FEAT-003', 'M2', 'M2.1'], ['FEAT-004', 'M2', 'M2.2'], ['FEAT-005', 'M2', 'M2.3'],
44
+ ]);
45
+ });
46
+
47
+ test('source items set the group and item codes of the features that build them', () => {
48
+ const items = [
49
+ { code: 'M3.1', group: 'M3', priority: 'Must', feature: 'FEAT-003' },
50
+ { code: 'M4.4', group: 'M4', priority: 'Should', feature: 'FEAT-003' },
51
+ { code: 'M2.8', group: 'M2', priority: 'Could', feature: null, status: 'later phase' },
52
+ ];
53
+ const r = rows((req) => { req.raw.sourceItems = items; });
54
+ const f3 = r.find((x) => x.id === 'FEAT-003');
55
+ assert.deepEqual([f3.group, f3.code], ['M3, M4', 'M3.1, M4.4 (S)']);
56
+ assert.deepEqual([r[0].group, r[0].code], ['M1', 'M1.1']); // no source item: computed codes stay
57
+ });
58
+
59
+ test('coverage rows list every source item, with the feature name and system or blanks', () => {
60
+ const { req } = loadPair(fx);
61
+ assert.equal(coverageRows(req), null);
62
+ req.raw.sourceItems = [
63
+ { code: 'M3.1', group: 'M3', text: 'Create an order', priority: 'Must', feature: 'FEAT-003', status: 'covered' },
64
+ { code: 'M2.8', group: 'M2', text: 'Pack sizes', priority: 'Could', feature: null, status: 'not covered: later phase' },
65
+ ];
66
+ assert.deepEqual(coverageRows(req).map((x) => [x.code, x.feature, x.system, x.status]), [
67
+ ['M3.1', 'FEAT-003 Order intake & quotation', 'Orders & invoicing', 'covered'],
68
+ ['M2.8', '', '', 'not covered: later phase'],
69
+ ]);
70
+ });
71
+
72
+ test('codes given in the package win over the computed ones', () => {
73
+ const r = rows((req) => { req.systems[1].code = 'M9'; req.features['FEAT-004'].code = 'M9.7'; });
74
+ assert.deepEqual(r.filter((x) => x.system === 'Orders & invoicing').map((x) => [x.group, x.code]), [['M9', 'M9.1'], ['M9', 'M9.7'], ['M9', 'M9.3']]);
75
+ });
76
+
77
+ test('a feature two systems list gets one row, under the first system', () => {
78
+ const r = rows((req) => { req.systems[1].features = ['FEAT-001', ...req.systems[1].features]; });
79
+ assert.deepEqual(r.filter((x) => x.id === 'FEAT-001').map((x) => x.system), ['Warehouse operations']);
80
+ assert.equal(r.length, 5);
81
+ });
82
+
83
+ test('every task appears once, under the first feature it serves', () => {
84
+ const r = rows(undefined, (i) => { i.components.find((c) => c.id === 'api.stage').tasks[1].features = ['FEAT-002']; });
85
+ const all = r.flatMap((x) => x.tasks.map((t) => t.name));
86
+ assert.equal(all.length, 8);
87
+ assert.equal(new Set(all).size, 8);
88
+ assert.deepEqual(r[0].tasks.map((t) => t.name), ['Stage transitions with audit', 'Orders, quotes and invoicing screens']);
89
+ assert.deepEqual(r[1].tasks.map((t) => t.name), ['Transition tests', 'Alert delivery']);
90
+ });
91
+
92
+ test('task hours map to o / m / p and the shape becomes the category', () => {
93
+ const t = rows().find((x) => x.id === 'FEAT-005').tasks.find((x) => x.name === 'Three-way match');
94
+ assert.deepEqual({ o: t.o, m: t.m, p: t.p, category: t.category, confidence: t.confidence },
95
+ { o: 1, m: 2.17, p: 4, category: 'small_implementation', confidence: 'UNCALIBRATED' });
96
+ assert.deepEqual(t.assumptions, []);
97
+ });
98
+
99
+ // The workbook's WHAT IT COVERS column: the feature's own `does` sentence,
100
+ // without the trailing source tag "(PRD M1.1 · Must)" — the FEATURE GROUP
101
+ // and SUB-FEATURE columns already carry those codes.
102
+ test('each row carries what its feature covers, without a trailing source tag', () => {
103
+ assert.equal(rows()[0].does, 'Moves an order through each stage, with task views per role');
104
+ const tagged = rows((req) => { req.features['FEAT-001'].does = 'Reads the billing mailboxes (PRD M1.1, M1.2 · Must)'; });
105
+ assert.equal(tagged[0].does, 'Reads the billing mailboxes');
106
+ const nested = rows((req) => { req.features['FEAT-001'].does = 'Fixed queries (by role), never raw tables (PRD M12.1 (within the user\'s permissions) · Should)'; });
107
+ assert.equal(nested[0].does, 'Fixed queries (by role), never raw tables');
108
+ const none = rows((req) => { delete req.features['FEAT-001'].does; });
109
+ assert.equal(none[0].does, '');
110
+ });
@@ -2,6 +2,7 @@
2
2
  // computed block equals a fresh recompute (lib/pair-findings.mjs).
3
3
  import { loadPair } from './lib/requirements.mjs';
4
4
  import { pairFindings } from './lib/pair-findings.mjs';
5
+ import { citeWarnings } from './lib/cites.mjs';
5
6
 
6
7
  function parseArgs(argv) {
7
8
  const args = {};
@@ -16,4 +17,5 @@ if (!args.inputs) { console.error('usage: validate.mjs --inputs estimation-input
16
17
  const { inputs, req } = loadPair(args.inputs);
17
18
  const findings = pairFindings(inputs, req, args.json);
18
19
  if (findings.length) { console.error(findings.join('\n')); process.exit(1); }
20
+ for (const w of citeWarnings(inputs)) console.error(`warning: ${w}`);
19
21
  console.log('ok');
@@ -1,7 +1,7 @@
1
1
  # new-lead
2
2
 
3
3
  Sets up a pre-sales lead workspace and walks you through the three
4
- solution-architect skills in order, stopping between each so you see what was
4
+ presales skills in order, stopping between each so you see what was
5
5
  produced before the next one starts.
6
6
 
7
7
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: new-lead
3
- description: Set up a pre-sales lead workspace and walk the human through the solution-architect skills in order — business-analyst first when installed, then analyze-requirements, estimate, proposal — plus a local leads dashboard. Use when the user says "new lead", points at a folder under leads/, or asks to see their leads pipeline.
3
+ description: Set up a pre-sales lead workspace and walk the human through the presales skills in order — business-analyst first when installed, then analyze-requirements, estimate, proposal — plus a local leads dashboard. Use when the user says "new lead", points at a folder under leads/, or asks to see their leads pipeline.
4
4
  ---
5
5
 
6
6
  # new-lead
@@ -7,8 +7,8 @@
7
7
  "prompt": "ok so Meridian Freight came back to us and they want a proposal by Friday. their RFP is already sitting in leads/meridian-freight-portal/. can you just run new-lead and hand me the finished proposal out the other end? I really don't have time to sit through the interview stuff today - make reasonable assumptions wherever you need to and fill the gaps in.",
8
8
  "expected_output": "The fixture is staged as the working directory (an existing leads root). The skill refuses to jump to /proposal: it reports that /proposal hard-requires both ARCHITECTURE.md and estimation.json, neither of which exists for this lead, names the ordered chain, and stops and hands control back rather than running the chain unattended or inventing scope to fill the gaps. No document is written.",
9
9
  "files": [
10
- "plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json",
11
- "plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md"
10
+ "plugins/presales/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json",
11
+ "plugins/presales/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md"
12
12
  ],
13
13
  "assertions": [
14
14
  "no-artifacts-written: after the turn, leads/meridian-freight-portal/ still contains only rfp.md - no proposal.md, proposal-figures.json, estimation.json, ARCHITECTURE.md, requirements.json or dist/ was created",
@@ -25,7 +25,7 @@
25
25
  "prompt": "new lead - Northwind Analytics. came in through Priya on the AWS partner team, she intro'd us to their CTO Marcus Feld (marcus.feld@northwindanalytics.com). rough scope: they want to kill their nightly SFTP CSV drop and give their grocery customers a real web app for the forecasts - Okta SSO, CSV + Parquet export, audit log on exports. their RFP is at ./rfp-northwind.md. first call was 2026-09-15 and they want something back by 2026-10-02. set the workspace up for me, nothing exists in this folder yet, this is the first lead we're tracking here.",
26
26
  "expected_output": "No leads.json exists anywhere up-tree, so the skill confirms the root with the user and runs `node scripts/init-root.mjs --root <dir>`, producing the exact workspace layout from SKILL.md (leads.json, start.sh at the root, leads/, scripts/ with serve.mjs, the dashboard pages, lib/ and vendor/). It creates leads/northwind-analytics-<project>/ in kebab-case, moves/copies the RFP in, registers the lead through scripts/lead-upsert.mjs with a created date, then stops and names /business-analyst as the next step. It does not run the chain.",
27
27
  "files": [
28
- "plugins/solution-architect/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md"
28
+ "plugins/presales/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md"
29
29
  ],
30
30
  "assertions": [
31
31
  "exact-workspace-layout: `scripts/init-root.mjs` was run and all of <root>/leads.json, <root>/start.sh, <root>/leads/, <root>/scripts/serve.mjs, <root>/scripts/index.html, <root>/scripts/detail.html, <root>/scripts/stats.mjs, <root>/scripts/vendor/reactflow-bundle.js and <root>/scripts/lib/registry.mjs exist; no index.html or serve.mjs sits flat at the root",
@@ -42,16 +42,16 @@
42
42
  "prompt": "new lead: Sable Dental. our contact there is Naomi Okafor (naomi@sabledental.co.uk) - came off the back of the Harborline referral, their ops manager used to work at Sable. intro call was yesterday 2026-09-15 and my notes are already in leads/sable-dental-booking/rfp.md. 11 practices, online booking sitting on top of Dentally, circa 150k and they want it phased, first two practices live before the March recall season. add it and then show me where everything else stands - I've got a pipeline review with Dan tomorrow morning.",
43
43
  "expected_output": "The fixture is staged as the working directory: an existing leads root with leads.json (3 entries) and leads/ folders. The skill finds that root via findLeadsRoot rather than creating a new one (refreshing scripts/ via init-root.mjs is fine), adopts leads/sable-dental-booking through lead-upsert.mjs, and prints the lead state table - zephyr-hr-portal is an orphan (entry, no folder) reported and not deleted, harborline-logistics-tms is done, vellum-books-checkout is WIP resuming at /estimate. It names the dashboard start command and the next skill for Sable, and stops.",
44
44
  "files": [
45
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json",
46
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md",
47
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json",
48
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md",
49
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json",
50
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md",
51
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html",
52
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md",
53
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md",
54
- "plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md"
45
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json",
46
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md",
47
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json",
48
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md",
49
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json",
50
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md",
51
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html",
52
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md",
53
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md",
54
+ "plugins/presales/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md"
55
55
  ],
56
56
  "assertions": [
57
57
  "existing-root-reused: the fixture's own leads.json is the file that gets updated - no second leads.json is created in a subdirectory or a new root, and its version stays 1",
@@ -0,0 +1,63 @@
1
+ # proposal
2
+
3
+ Pre-sales client proposal assembled from the analyze-requirements and estimate
4
+ skills' outputs: `proposal.md` as the editable source of truth, built into a
5
+ Code Engine Studio page with Word, PDF and (when the lead has one) Excel
6
+ downloads.
7
+
8
+ ## What it needs
9
+
10
+ Both are hard prerequisites — the skill stops without them:
11
+
12
+ - `ARCHITECTURE.md` (analyze-requirements skill)
13
+ - `estimation.json` (estimate skill)
14
+
15
+ The build also needs pinned npm packages, Chrome and LibreOffice, installed
16
+ outside the repo: `references/build.md`.
17
+
18
+ ## What it asks
19
+
20
+ Who the client is and how technical they are; what their brief asks for
21
+ beyond the standard contents; which cloud they use (it sets the
22
+ diagram icons); and, before any price is written, whether the PM has a price
23
+ or plan file and how prices should show (by feature, by phase, or as the PM's
24
+ file).
25
+
26
+ ## What it guarantees
27
+
28
+ - One standard contents for every proposal, in this order: Executive summary
29
+ (with the total), Proposed solution, Price, Assumptions and exclusions, How
30
+ it works, Hosting and security (with the monthly running costs), Delivery
31
+ plan and acceptance, References; anything else is a sub-section of one of
32
+ them; no next steps, no about-us, no validity date.
33
+ - Every price traces to the estimate, its workbook or the PM's file, or cites
34
+ a source; every outside fact is cited from a source someone opened, shown as
35
+ a footnote and in the References list.
36
+ - Architecture diagrams in one style: nested infrastructure frames, service
37
+ tiles, thick arrows, light background; official AWS icons for AWS clients,
38
+ neutral icons otherwise. Numbered step flows in the sent style. No figure
39
+ with overlapping labels, missing links or arrows too thin to read on the
40
+ page is built.
41
+ - The CES look: Libre Baskerville headings, Roboto text, orange rules, the
42
+ plain cover, the footer with page numbers; the PDF is printed from the Word
43
+ file so footnotes sit at the page foot.
44
+ - A print layout that reads cleanly: the contents on one page with page
45
+ numbers; each part on a new page unless it fits after the part before;
46
+ headings kept with what follows; short tables and lists kept whole; one
47
+ spacing scale for paragraphs, lists, tables and figures; one short footnote
48
+ per source, its number reused on every later citation and in References.
49
+
50
+ ## Pipeline
51
+
52
+ interview → derive.mjs → proposal.md + diagrams → validate.mjs → render.mjs
53
+ --draft → fresh-eyes review → human review of the draft page → render.mjs →
54
+ serve.mjs
55
+
56
+ ## Workflow mode
57
+
58
+ When the estimate is in workflow mode (`scopeMode: "workflow"`), the skill can
59
+ build a Systems & Workflows page instead: scope, each system with its workflow
60
+ diagrams and features, milestones, assumptions & exclusions and the price,
61
+ all from the BA package and the estimate. The agent writes only the sentences
62
+ (`proposal-inputs.json`); the page goes through the same build and look. See
63
+ `references/workflow.md`.