@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,46 @@
1
+ // ---- each score's reason and the tasks it rests on (PAGE.cites) ----
2
+ // A cite lights its rows; a row lights the scores that cite it and fades the
3
+ // rest; clicking a cite opens the task table at that row.
4
+ const citeOf = (capId, k) => PAGE.cites?.[capId]?.[k] ?? { text: '', tasks: [] };
5
+ function citeChip(id, rows) {
6
+ const i = rows.findIndex(([x]) => x[8] === id);
7
+ return i < 0 ? `<span class="cite gone" title="no longer serves this feature">${esc(id)}</span>`
8
+ : `<button type="button" class="cite" data-task="${esc(id)}" title="${esc(rows[i][0][0])}">t${i + 1}</button>`;
9
+ }
10
+ function citesHtml(capId, k) {
11
+ const c = citeOf(capId, k); const rows = featureTasks(buildersOf(capId), capId);
12
+ const chips = c.tasks.map((id) => citeChip(id, rows)).join('');
13
+ const loose = k === 'unc' ? uncitedNew(capId, rows) : [];
14
+ const warn = loose.length ? `<div class="fwarn">⚠ new work not cited: ${loose.map(([x]) => esc(x[0])).join(', ')}</div>` : '';
15
+ return `${c.text ? `<p class="why">${esc(c.text)}</p>` : ''}${chips ? `<div class="cites">${chips}</div>` : ''}${warn}`;
16
+ }
17
+ function paintCites(capId) {
18
+ for (const k of K) { const el = $(`[data-cites="${capId}:${k}"]`); if (el) el.innerHTML = citesHtml(capId, k); }
19
+ }
20
+ const clearLit = (art) => art.querySelectorAll('.lit, .fade').forEach((e) => e.classList.remove('lit', 'fade'));
21
+ function lightCite(btn) {
22
+ const art = btn.closest('.feat'); clearLit(art); btn.classList.add('lit');
23
+ art.querySelectorAll(`tr[data-task="${btn.dataset.task}"]`).forEach((r) => r.classList.add('lit'));
24
+ }
25
+ function lightRow(tr) {
26
+ const art = tr.closest('.feat'); clearLit(art); tr.classList.add('lit');
27
+ art.querySelectorAll('.factor').forEach((f) => {
28
+ const hit = f.querySelectorAll(`.cite[data-task="${tr.dataset.task}"]`);
29
+ hit.forEach((b) => b.classList.add('lit')); if (!hit.length) f.classList.add('fade');
30
+ });
31
+ }
32
+ for (const t of ['mouseover', 'focusin']) {
33
+ document.addEventListener(t, (e) => {
34
+ if (document.getElementById('lavish-cursor-style')) return; // Lavish comment mode outlines units itself
35
+ const btn = e.target.closest?.('.cite[data-task]'); if (btn) { lightCite(btn); return; }
36
+ const tr = e.target.closest?.('details.tasks tr[data-task]'); if (tr) { lightRow(tr); return; }
37
+ const art = e.target.closest?.('.feat'); if (art) clearLit(art);
38
+ });
39
+ }
40
+ document.addEventListener('click', (e) => {
41
+ const btn = e.target.closest?.('.cite[data-task]'); if (!btn) return;
42
+ const art = btn.closest('.feat'); art.querySelector('details.tasks').open = true;
43
+ const row = art.querySelector(`tr[data-task="${btn.dataset.task}"]`); if (!row) return;
44
+ row.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
45
+ row.classList.remove('flash'); void row.offsetWidth; row.classList.add('flash');
46
+ });
@@ -0,0 +1,22 @@
1
+ /* tasks and hours per feature, beside the scores */
2
+ .effort { text-align:right; } .effort b { display:block; font-family:var(--serif); font-size:1.5rem; font-variant-numeric:tabular-nums; } .effort span { display:block; font-size:.74rem; color:var(--ink-dim); }
3
+ .effort .stale { color:var(--mark); font-weight:600; }
4
+ .crow .chrs.zero { color:var(--mark); font-weight:600; font-size:.78rem; }
5
+ /* hover and pin: a highlight you can see, soft motion, real hit areas */
6
+ body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
7
+ h1, h2, h3 { text-wrap:balance; } .lead, .does, .sec-lead, .quiet, .anchor { text-wrap:pretty; }
8
+ :root { --hl-bg:color-mix(in srgb, var(--hi-line) 13%, var(--sheet)); --hl-ring:color-mix(in srgb, var(--hi-line) 45%, transparent); --ease:cubic-bezier(.2,0,0,1); }
9
+ .feat { padding-inline:1rem; margin-inline:-1rem; transition-property:background-color, box-shadow; transition-duration:.18s; transition-timing-function:var(--ease); }
10
+ .feat.hl { background:var(--hl-bg); box-shadow:inset 4px 0 0 var(--hi-line), inset 0 0 0 1px var(--hl-ring); }
11
+ .feat.cur { box-shadow:inset 4px 0 0 var(--hi-line), inset 0 0 0 2px var(--hi-line); }
12
+ .feat.hl .rail h3 { text-decoration:underline; text-decoration-color:var(--hi-line); text-decoration-thickness:2px; text-underline-offset:3px; }
13
+ .crow, .cmini, .chip, .cap, table.caps td, details.tasks summary { transition-property:background-color, border-color, box-shadow, color; transition-duration:.15s; transition-timing-function:var(--ease); }
14
+ .crow:hover { border-color:var(--rule); }
15
+ .crow.hl { background:var(--hl-bg); border-color:var(--hi-line); box-shadow:0 0 0 1px var(--hi-line); }
16
+ .crow.added.hl { box-shadow:0 0 0 1px var(--hi-line), 0 0 0 3px var(--ok); }
17
+ .cmini.hl, .chip.hl, .cap.hl { background:var(--hl-bg); border-color:var(--hi-line); }
18
+ table.caps tr.hl td { background:var(--hl-bg); }
19
+ .btn, .seg button { transition-property:scale, color, border-color, background-color; transition-duration:.12s; transition-timing-function:var(--ease); }
20
+ .btn:active, .seg button:active { scale:.96; }
21
+ .crow button { position:relative; } .crow button::after { content:''; position:absolute; inset:-.65rem -.45rem; }
22
+ .price, [data-total] { font-variant-numeric:tabular-nums; }
@@ -0,0 +1,37 @@
1
+ // Tasks and hours beside the scores, as build-template.mjs reps: each feature
2
+ // card holds one table of the tasks that serve it, live with the engineer's
3
+ // link edits; each score shows its reason and the tasks it cites; hours a
4
+ // moved Tech/Size/Uncertainty may have outdated are flagged.
5
+ import { readFileSync } from 'node:fs';
6
+
7
+ const at = (rel) => new URL(rel, import.meta.url);
8
+ export const EFFORT_CSS = readFileSync(at('./effort.css'), 'utf8') + readFileSync(at('./tasks.css'), 'utf8');
9
+
10
+ const STALE = " if (EFFORT) $(`[data-stale=\"${id}\"]`).textContent = ['tech', 'size', 'unc'].some((k) => s[k] !== orig(id)[k]) ? 'score moved: hours may need another look' : '';\n";
11
+
12
+ export const EFFORT_REPS = [
13
+ ['const TASKS = {};', 'const TASKS = PAGE.tasks;'],
14
+ ['const FINAL = false;', 'const FINAL = false;\nconst EFFORT = FINAL || Object.keys(TASKS).length > 0; // the Effort side: tasks and hours per feature'],
15
+ [/\/\/ ---- components: tasks and hours \(Component-based page only\) ----\n[\s\S]*?<\/table><\/details>`;\n\}\n/, readFileSync(at('./feature-tasks.js'), 'utf8') + readFileSync(at('./cites.js'), 'utf8')],
16
+ ['const effort = FINAL ? `<div class="side-effort effort"><b data-hrs="${c.id}"></b><span>expected effort of its components</span></div>`',
17
+ 'const effort = EFFORT ? `<div class="side-effort effort"><b data-hrs="${c.id}"></b><span>expected effort of its components</span><span class="stale" data-stale="${c.id}"></span></div>`'],
18
+ ["${FINAL ? `<span class=\"chrs\">${hoursOf(bid)}h</span>` : ''}", "${EFFORT && !cls.includes('removed') ? chrsHtml(bid, capId) : ''}"],
19
+ ['// one row per component: its container', "// a component newly linked to a feature has no task serving it until the agent writes one\nconst chrsHtml = (bid, capId) => (tasksFor(bid, capId).length ? `<span class=\"chrs\">${hoursFor(bid, capId)}h</span>` : '<span class=\"chrs zero\">0h · no tasks for this feature yet</span>');\n// one row per component: its container"],
20
+ [" if (FINAL) { const h = by.reduce((n, b) => n + hoursOf(b), 0); $(`[data-hrs=\"${capId}\"]`).textContent = `${h.toLocaleString('en-US')}h`;\n",
21
+ " const tasks = EFFORT ? featureTasksHtml(by, capId) : ''; paintCites(capId);\n if (EFFORT) $(`[data-hrs=\"${capId}\"]`).textContent = `${by.reduce((n, b) => n + hoursFor(b, capId), 0).toLocaleString('en-US')}h`;\n if (FINAL) {\n"],
22
+ ["${by.map((b) => tasksHtml(compById[b])).join('')}`; return; }", '${tasks}`; return; }'],
23
+ ['</div>${gap}<div class="crows">${rows}</div>${pick}`;', '</div>${gap}<div class="crows">${rows}</div>${pick}${tasks}`;'],
24
+ [' paintBuilt(id);\n', `${STALE} paintBuilt(id);\n`],
25
+ // one view: the Scoring | Effort switch goes, tasks and hours sit beside the scores
26
+ [/ const sides = FINAL \? [^\n]*\n/, ''],
27
+ ['${toggle}${sides}', '${toggle}'],
28
+ [/let side = 'score';[^\n]*\n/, ''],
29
+ [/ const sd = e\.target\.closest\('\[data-side\]'\)[^\n]*\n if \(sd\) [^\n]*\n/, ''],
30
+ // each score's reason and cited tasks, painted by paintCites()
31
+ ['<p class="anchor">${esc(ANCHOR[k][n - 1])}</p></div>`; }', '<p class="anchor">${esc(ANCHOR[k][n - 1])}</p><div data-cites="${c.id}:${k}"></div></div>`; }'],
32
+ ['<div class="pick">${pick}</div><p class="anchor"></p>', '<div class="pick">${pick}</div><p class="anchor"></p><div data-cites="${c.id}:${k}"></div>'],
33
+ ['data-tip="Each feature&#39;s scores, tier and price, as signed off in the score review"', 'data-tip="Each feature&#39;s scores, tier and price"'],
34
+ ['const hrs = FINAL ?', 'const hrs = EFFORT ?'],
35
+ ["+ (FINAL ? `<div class=\"side-effort\"><b>${[...hrs].reduce((n, b) => n + hoursOf(b), 0).toLocaleString('en-US')}h</b><span>${hrs.size} components, each counted once</span></div>` : '');",
36
+ "+ (EFFORT ? `<div class=\"side-effort\"><b>${sysHours(s.features.map((c) => c.id)).toLocaleString('en-US')}h</b><span>${hrs.size} components, each task counted once</span></div>` : '');"],
37
+ ];
@@ -0,0 +1,10 @@
1
+ /* one estimate page: the tokens tasks.css needs, the workbook reminder, the idle components */
2
+ :root { --hl-bg:color-mix(in srgb, var(--hi-line) 13%, var(--sheet)); --ease:cubic-bezier(.2,0,0,1); }
3
+ .btn.primary { background:var(--ink); color:var(--sheet); border-color:var(--ink); }
4
+ .quiet { font-size:.8rem; color:var(--ink-dim); }
5
+ dialog { border:1px solid var(--rule); background:var(--sheet); color:var(--ink); padding:1rem 1.2rem; box-shadow:0 18px 60px #0006; border-radius:.4rem; }
6
+ dialog::backdrop { background:rgb(10 14 18 / .45); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
7
+ .dlg-foot { display:flex; justify-content:flex-end; align-items:center; gap:.5rem; margin-top:.8rem; border-top:1px solid var(--rule); padding-top:.8rem; }
8
+ tr.ftasks > td { border-top:0; padding-top:0; }
9
+ tr.ftasks details.tasks { margin-top:0; }
10
+ #idle-list li { margin:.2rem 0; }
@@ -0,0 +1,16 @@
1
+ // ---- one estimate page: each feature's tasks, the components that build nothing, the workbook ----
2
+ // The tasks are feature-tasks.js's table, read-only; the workbook export is
3
+ // the shared xlsx-export.js, inlined at the XLSX slot below this script.
4
+ const TASKS = PAGE.tasks; const COMPS = PAGE.comps;
5
+ const compById = Object.fromEntries(COMPS.map((c) => [c.id, c]));
6
+ const featTasksHtml = (id) => featureTasksHtml(COMPS.map((c) => c.id).filter((b) => tasksFor(b, id).length), id);
7
+ function viewIdle(page) {
8
+ $('#idle').classList.toggle('hide', !page.idle.length);
9
+ $('#idle-list').innerHTML = page.idle.map((c) => `<li><b>${esc(c.name)}</b> · ${esc(c.reason)}</li>`).join('');
10
+ }
11
+ const XLSX_SOURCE = {
12
+ rows: () => PAGE.xlsx.rows, container: (row) => row.container, levels: () => PAGE.xlsx.levels,
13
+ template: () => PAGE.xlsx.template, system: (row) => row.system, // the SYSTEM / MODULE workbook (estimator-system.xlsx)
14
+ register: () => PAGE.xlsx.register, // project name, assumptions, exclusions
15
+ coverage: () => PAGE.xlsx.coverage, // source-document items and the feature that builds each, or null
16
+ };
@@ -0,0 +1,33 @@
1
+ // ---- tasks per feature: one table across the components that build it ----
2
+ // TASKS[component]: [name, low, expected, high, confidence, assumptions, features, source, id].
3
+ // A task shared by k features counts 1/k of its hours on each card, so the
4
+ // cards add up to the project total.
5
+ const pert = (x) => x[2]; // expected hours from estimation.json (agentic baselines)
6
+ const hoursOf = (id) => Math.round((typeof TASKS === 'undefined' ? [] : TASKS[id] || []).reduce((n, x) => n + pert(x), 0));
7
+ const tasksFor = (id, capId) => (TASKS[id] || []).filter((x) => x[6].includes(capId));
8
+ const hrs1 = (n) => Math.round(n * 10) / 10; // one decimal: a 1/5 share of 7.3h is 1.5h, not 1h
9
+ const hoursFor = (id, capId) => hrs1(tasksFor(id, capId).reduce((n, x) => n + pert(x) / x[6].length, 0));
10
+ const sysHours = (ids) => Math.round(COMPS.flatMap((b) => TASKS[b.id] || []).filter((x) => x[6].some((f) => ids.includes(f))).reduce((n, x) => n + pert(x), 0));
11
+ function sharedNote(x, capId) {
12
+ const others = x[6].filter((f) => f !== capId);
13
+ return others.length ? `<div class="dim">shared with ${others.map(esc).join(', ')} · 1/${x[6].length} of its ${hrs1(pert(x))}h counted here</div>` : '';
14
+ }
15
+ // where a task comes from: "WF-002:Pack" shows as Pack (the card names the workflow); "new" is work the BA package never named
16
+ const stepTag = (src) => (src ? `<span class="step${src === 'new' ? ' new' : ''}">${esc(src.replace(/^WF-[^:]+:/, ''))}</span>` : '');
17
+ function taskRow([x, b], i, capId) {
18
+ const note = x[5] ? `<div class="dim">${esc(x[5])}</div>` : '';
19
+ return `<tr data-task="${esc(x[8])}"><td class="n">t${i + 1}</td><td class="task">${stepTag(x[7])}${esc(x[0])}${note}${sharedNote(x, capId)}</td><td class="box">${esc(b.name)}</td>`
20
+ + `<td class="r">${x[1]} / ${x[2]} / ${x[3]}</td><td class="r share"><b>${hrs1(pert(x) / x[6].length)}h</b></td><td><span class="conf c-${x[4]}">${x[4]}</span></td></tr>`;
21
+ }
22
+ const featureTasks = (by, capId) => by.flatMap((bid) => tasksFor(bid, capId).map((x) => [x, compById[bid]]));
23
+ // new work (source "new") the Uncertainty score does not cite
24
+ const uncitedNew = (capId, rows) => rows.filter(([x]) => x[7] === 'new' && !(PAGE.cites?.[capId]?.unc.tasks ?? []).includes(x[8]));
25
+ function featureTasksHtml(by, capId) {
26
+ const rows = featureTasks(by, capId);
27
+ const hrs = hrs1(rows.reduce((n, [x]) => n + pert(x) / x[6].length, 0));
28
+ const fresh = rows.filter(([x]) => x[7] === 'new').length; const loose = uncitedNew(capId, rows).length;
29
+ const warn = loose ? ` <span class="warn">⚠ ${loose} new, not cited</span>` : '';
30
+ return `<details class="tasks"><summary>Tasks · ${rows.length} tasks · ${hrs}h · ${by.length} components${fresh ? ` · ${fresh} new` : ''}${warn}</summary>`
31
+ + `<table><thead><tr><th>#</th><th>Task</th><th>Component</th><th class="r">Low / Expected / High h</th><th class="r">This feature</th><th>Confidence</th></tr></thead>`
32
+ + `<tbody>${rows.map((r, i) => taskRow(r, i, capId)).join('')}</tbody></table></details>`;
33
+ }
@@ -0,0 +1,39 @@
1
+ // Opened through Lavish (FLOW.md step 7): the footer is one thin band whose one
2
+ // button sends the engineer's final scores straight to the agent; the page's own
3
+ // free-text boxes (plain-words note, why this score) go, since Lavish notes carry
4
+ // that talk; notes land on whole estimate units, Lavish's outline replaces the
5
+ // page's hover highlight, and the page says it keeps no edits (Lavish runs it
6
+ // without browser storage). Opened any other way, nothing changes.
7
+ const PROMPT = 'Score review feedback, final: save the JSON that follows the `Context data:` line and fold it in with score-review.mjs --read.';
8
+ // Lavish's own Send & End sits outside this sandboxed page and cannot carry the
9
+ // scores, so the page sends them itself: queued once, sent at once.
10
+ const FINISH = `if (window.lavish) { for (const id of ['reset', 'nextc', 'saved']) $('#' + id).style.display = 'none'; document.head.insertAdjacentHTML('beforeend', '<style>.bar .in { padding:.35rem 1.5rem; } .bar .actions { flex-direction:column; align-items:flex-end; gap:.15rem; } #finishNote { font-size:.72rem; } .note, .reason { display:none !important; }</style>'); $('#preview').textContent = 'Finish → send to the agent'; $('#finishNote').textContent = "Edits are not kept: finish here, not with Send & End."; }
11
+ function finish() {
12
+ const gaps = notBuiltCount();
13
+ if (gaps) { $('#finishNote').textContent = gaps + (gaps === 1 ? ' feature' : ' features') + ' not built yet: link a component first.'; $('#goGap').click(); return; }
14
+ window.lavish.queuePrompt(${JSON.stringify(PROMPT)}, { tag: 'score-feedback', queueKey: 'score-feedback', text: 'Score review feedback', data: window.__feedback() });
15
+ window.lavish.sendQueuedPrompts();
16
+ $('#preview').disabled = true; $('#finishNote').textContent = 'Sent. The agent takes it from here.';
17
+ }
18
+ `;
19
+ // In Lavish's comment mode a note lands on a whole estimate unit (a score, a
20
+ // component row, a task row, a feature's head, price or hours, a total), never
21
+ // on part of one, and nothing else takes a note. Controls pass through, so
22
+ // scoring still works. shortcut: comment mode is read from Lavish 0.1.97's
23
+ // #lavish-cursor-style; re-check it when the pinned version moves.
24
+ const STARTUP = `${FINISH}const LAVISH_UNITS = '.who, .score-box > *, .factor, .crow, details.tasks tr:has(td), tr[data-cap], #strip > div, #unasked > *';
25
+ function toLavishUnit(e) {
26
+ if (!e.isTrusted || !document.getElementById('lavish-cursor-style') || e.target.closest?.('button, input, select, textarea, a[href], summary, label, [role], pre.wfchart, [data-lavish-ui], [data-lavish-action]')) return;
27
+ e.stopPropagation();
28
+ const unit = e.type !== 'mouseup' && e.target.closest?.(LAVISH_UNITS);
29
+ if (unit) unit.dispatchEvent(new MouseEvent(e.type, e));
30
+ }
31
+ if (window.lavish) for (const t of ['mouseover', 'click', 'mouseup']) addEventListener(t, toLavishUnit, true);
32
+ `;
33
+
34
+ export const LAVISH_REPS = [
35
+ ['<span class="quiet">You can reopen this page later;', '<span class="quiet" id="finishNote">You can reopen this page later;'],
36
+ ["$('#preview').onclick = () => {\n", "$('#preview').onclick = () => { if (window.lavish) return finish();\n"],
37
+ ["document.addEventListener('mouseover', (e) => { if (pin) return;", "document.addEventListener('mouseover', (e) => { if (pin || window.lavish) return;"],
38
+ ['function save() {\n if (FINAL) return;\n', `${STARTUP}function save() {\n if (FINAL) return;\n if (window.lavish) return;\n`],
39
+ ];
@@ -0,0 +1,25 @@
1
+ /* the task table per feature, and the links between a score and the tasks it cites (score review and estimate page) */
2
+ details.tasks { margin-top:.7rem; border:1px solid var(--grid); border-radius:.3rem; background:var(--paper); }
3
+ details.tasks summary { cursor:pointer; padding:.45rem .7rem; font-size:.76rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-dim); }
4
+ details.tasks summary:hover { color:var(--ink); }
5
+ details.tasks table { width:100%; border-collapse:collapse; font-size:.8rem; }
6
+ details.tasks th { text-align:left; font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-dim); padding:.3rem .7rem; border-top:1px solid var(--rule); }
7
+ details.tasks td { padding:.35rem .7rem; border-top:1px solid var(--grid); vertical-align:top; }
8
+ details.tasks .r { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
9
+ details.tasks td .dim { font-size:.72rem; }
10
+ .conf { font-size:.7rem; font-weight:700; } .conf.c-LOW { color:var(--mark); } .conf.c-MED { color:var(--hi-line); } .conf.c-HIGH { color:var(--ok); }
11
+ details.tasks td.n { color:var(--ink-dim); width:2.2rem; } details.tasks td.box { color:var(--ink-dim); font-size:.76rem; white-space:nowrap; }
12
+ details.tasks .step { display:inline-block; font-size:.68rem; color:var(--ink-dim); border:1px solid var(--rule); border-radius:.2rem; padding:0 .3rem; margin-right:.35rem; white-space:nowrap; text-transform:none; letter-spacing:0; }
13
+ details.tasks .step.new { color:var(--hi-line); border-color:var(--hi-line); }
14
+ details.tasks summary .warn, .fwarn { color:var(--hi-line); font-weight:700; text-transform:none; letter-spacing:0; }
15
+ details.tasks tbody tr { transition:background-color .12s var(--ease), box-shadow .12s var(--ease); }
16
+ details.tasks tbody tr.lit { background:var(--hl-bg); box-shadow:inset 3px 0 0 var(--hi-line); }
17
+ details.tasks tbody tr.flash { animation:rowflash 1.3s ease-out; }
18
+ @keyframes rowflash { 0%, 35% { background:var(--hl-bg); box-shadow:inset 3px 0 0 var(--hi-line); } }
19
+ .factor { transition:opacity .15s var(--ease); } .factor.fade { opacity:.35; }
20
+ .cites { display:flex; flex-wrap:wrap; gap:.2rem; margin-top:.35rem; }
21
+ .cite { font:inherit; font-size:.7rem; font-weight:600; padding:0 .4rem; border:1px solid var(--rule); border-radius:.8rem; background:var(--paper); color:var(--ink); cursor:pointer; font-variant-numeric:tabular-nums; }
22
+ .cite:hover, .cite:focus-visible, .cite.lit { background:var(--hl-bg); border-color:var(--hi-line); }
23
+ .cite.gone { text-decoration:line-through; color:var(--ink-dim); cursor:default; }
24
+ .fwarn { font-size:.7rem; margin-top:.3rem; }
25
+ @media (prefers-reduced-motion:reduce) { details.tasks tbody tr, .factor { transition:none; } details.tasks tbody tr.flash { animation:none; } }
@@ -1,4 +1,4 @@
1
- // ---- price sections, shared by the Workflow-based and Component-based pages ----
1
+ // ---- price sections of the estimate page ----
2
2
  // Every amount arrives computed in PAGE (scripts/lib/page-view.mjs); this
3
3
  // formats and places them and prices nothing.
4
4
  const viewMoney = (n) => `${PAGE.currency === 'USD' ? '$' : `${PAGE.currency} `}${Math.round(n).toLocaleString('en-US')}`;
@@ -18,7 +18,7 @@ function viewSummary(v) {
18
18
  const p = v.price; const base = p.adjustedBase; const out = base + p.overheads.amount;
19
19
  viewHeadline(p);
20
20
  const rows = [
21
- { lbl: 'Feature build', note: `${v.featureCount} scored features`, from: 0, to: p.featurePoints, amt: viewMoney(p.featurePoints) },
21
+ { lbl: 'Feature build', note: v.groupCount ? `${v.featureCount} features in ${v.groupCount} scored groups` : `${v.featureCount} scored features`, from: 0, to: p.featurePoints, amt: viewMoney(p.featurePoints) },
22
22
  { lbl: `× ${p.contextMultiplier.toFixed(2)} project context`, note: 'spec quality, decisions, compliance, familiarity', from: p.featurePoints, to: base, amt: `+${viewMoney(base - p.featurePoints)}` },
23
23
  { lbl: `+ ${Math.round(p.overheads.totalPct * 100)}% work outside features`, note: 'foundation, discovery, UX, QA, DevOps, docs, PM, integration', from: base, to: out, amt: `+${viewMoney(p.overheads.amount)}` },
24
24
  { lbl: `+ ${(p.contingencyRate * 100).toFixed(1)}% contingency`, note: 'known unknowns inside the agreed scope', from: out, to: p.p50, amt: `+${viewMoney(p.contingencyAmount)}` },
@@ -27,6 +27,25 @@ function viewSummary(v) {
27
27
  ];
28
28
  $('#buildup').innerHTML = `<h3>How the price builds up</h3>${rows.map((r) => viewBuRow(r, p.presentHigh || 1)).join('')}`;
29
29
  }
30
+ // Feature groups, when the estimate has them: each scored and priced once,
31
+ // its members listed under it. A card placed right after the summary.
32
+ function viewGroupRow(g) {
33
+ const sc = ['tech', 'size', 'deps', 'unc', 'risk'].map((k) => g.scores[k]).join(' · ');
34
+ return `<tr data-group="${esc(g.id)}"><td><span class="dim num">${esc(g.id)}</span> <b>${esc(g.name)}</b>${g.note ? `<div class="dim">${esc(g.note)}</div>` : ''}
35
+ <div>${g.members.map((f) => `<span class="chip" data-f="${esc(f.id)}" title="${esc(f.system ?? '')}">${esc(f.id)} ${esc(f.name)}</span>`).join('')}</div></td>
36
+ <td class="r num">${sc}</td><td class="r num">${g.scoreTotal.toFixed(1)} · ${esc(g.tier)}</td>
37
+ <td class="r num"><b>${viewMoney(g.point)}</b><div class="dim">${viewMoney(g.low)}–${viewMoney(g.high)}</div>${g.flag ? `<div class="dim">⚑ ${esc(g.flag)}</div>` : ''}</td></tr>`;
38
+ }
39
+ function viewGroups(page) {
40
+ if (!page.groups || document.getElementById('fgroups')) return;
41
+ const total = page.groups.reduce((n, g) => n + g.point, 0);
42
+ const sec = document.createElement('section');
43
+ sec.className = 'card'; sec.id = 'fgroups';
44
+ sec.innerHTML = `<h2>Feature groups</h2><p class="sec-lead">${page.view.featureCount} features in ${page.groups.length} groups. Each group is scored and priced once; its features are listed under it.</p>
45
+ <table class="kv fgroups"><tr><th>Group and its features</th><th class="r">Tech · Size · Deps · Unc · Risk</th><th class="r">Σ · tier</th><th class="r">Price</th></tr>
46
+ ${page.groups.map(viewGroupRow).join('')}<tr class="sum"><td colspan="3">Feature build</td><td class="r">${viewMoney(total)}</td></tr></table>`;
47
+ document.getElementById('summary').after(sec);
48
+ }
30
49
  function viewMs(m) {
31
50
  const n = m.features.length;
32
51
  return `<div class="m"><div class="dim num">${n} feature${n === 1 ? '' : 's'} finished<span class="internal"> · ${m.components} components</span></div>
@@ -2,7 +2,7 @@ import { test } from 'node:test';
2
2
  import assert from 'node:assert/strict';
3
3
  import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
4
4
  import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
5
- import { reviewPage, componentsPage } from './stage.mjs';
5
+ import { reviewPage } from './stage.mjs';
6
6
 
7
7
  const skip = !findChrome();
8
8
  const settle = () => new Promise((r) => setTimeout(r, 1500));
@@ -40,8 +40,6 @@ async function foldsAndUnfolds(url) {
40
40
 
41
41
  test('score review: 3+ other features fold behind "…N more" and unfold', { skip }, () => foldsAndUnfolds(reviewPage(wide)));
42
42
 
43
- test('estimate (component-based): the same fold', { skip }, () => foldsAndUnfolds(componentsPage(wide)));
44
-
45
43
  test('two other features show both chips and no button', { skip }, async () => {
46
44
  const page = await openPage(reviewPage());
47
45
  try {
@@ -19,7 +19,7 @@ function buildPage(mutate) {
19
19
  if (mutate) mutate(inputs);
20
20
  writeFileSync(join(dir, 'estimation-inputs.json'), JSON.stringify(inputs));
21
21
  copyFileSync(fx('requirements.json'), join(dir, 'requirements.json'));
22
- execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
22
+ execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), '--no-open']);
23
23
  return pathToFileURL(join(dir, 'review.html')).href;
24
24
  }
25
25
 
@@ -27,6 +27,11 @@ const settle = () => new Promise((r) => setTimeout(r, 1500));
27
27
  // The lock lives in the Review & send dialog: opening it sets Copy feedback's state.
28
28
  const sendLocked = (page) => page.eval(`(() => { document.getElementById('preview').click(); const d = document.getElementById('copy').disabled; document.getElementById('dlg').close(); return d; })()`);
29
29
  const count = (page) => page.eval(`[...document.querySelectorAll('[id^="c-FEAT"]:not(.hide)')].length`);
30
+ // Polls the card count until it reaches `want` (or 5 s pass), so a slow machine does not fail a fixed sleep.
31
+ const countReaches = async (page, want) => {
32
+ for (let i = 0; i < 50 && (await count(page)) !== want; i += 1) await new Promise((r) => setTimeout(r, 100));
33
+ return count(page);
34
+ };
30
35
 
31
36
  test('renders five cards, no console errors, send unlocked', { skip }, async () => {
32
37
  const page = await openPage(buildPage());
@@ -57,12 +62,10 @@ test('opening a system switches the cards to that system', { skip }, async () =>
57
62
  try {
58
63
  await settle();
59
64
  await page.eval(`document.querySelectorAll('details.capsys > summary')[1].click()`);
60
- await new Promise((r) => setTimeout(r, 400));
61
- assert.equal(await count(page), 3); // SYS-002: FEAT-003, FEAT-004, FEAT-005
65
+ assert.equal(await countReaches(page, 3), 3); // SYS-002: FEAT-003, FEAT-004, FEAT-005
62
66
  assert.equal(await page.eval(`document.querySelector('[data-cards="wf"]').getAttribute('aria-pressed')`), 'true');
63
67
  await page.eval(`document.querySelectorAll('details.capsys > summary')[1].click()`);
64
- await new Promise((r) => setTimeout(r, 400));
65
- assert.equal(await count(page), 5);
68
+ assert.equal(await countReaches(page, 5), 5);
66
69
  } finally { await page.close(); }
67
70
  });
68
71
 
@@ -82,7 +85,7 @@ test('a feature covering every step renders the "every step" chip, no errors', {
82
85
  writeFileSync(join(dir, 'requirements.json'), JSON.stringify(req));
83
86
  const inputs = JSON.parse(readFileSync(fx('inputs-pass.json'), 'utf8'));
84
87
  writeFileSync(join(dir, 'estimation-inputs.json'), JSON.stringify(inputs));
85
- execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
88
+ execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), '--no-open']);
86
89
  const page = await openPage(pathToFileURL(join(dir, 'review.html')).href);
87
90
  try {
88
91
  await settle();
@@ -117,7 +120,7 @@ test('a system with no workflow renders clean on the score review', { skip }, as
117
120
  copyFileSync(fx('requirements.json'), join(dir, 'requirements.json'));
118
121
  noFlowsAt(dir);
119
122
  writeFileSync(join(dir, 'estimation-inputs.json'), readFileSync(fx('inputs-pass.json'), 'utf8'));
120
- execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
123
+ execFileSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), '--no-open']);
121
124
  const page = await openPage(pathToFileURL(join(dir, 'review.html')).href);
122
125
  try {
123
126
  await settle();
@@ -1,12 +1,15 @@
1
1
  import { test } from 'node:test';
2
2
  import assert from 'node:assert/strict';
3
3
  import { execFileSync } from 'node:child_process';
4
- import { mkdtempSync, readFileSync } from 'node:fs';
4
+ import { existsSync, mkdtempSync, readFileSync } from 'node:fs';
5
5
  import { tmpdir } from 'node:os';
6
6
  import { join } from 'node:path';
7
7
  import { fileURLToPath } from 'node:url';
8
8
 
9
9
  const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
10
+ // The approved mockups the builders start from are kept outside this repo;
11
+ // the pins run wherever docs/mockups/estimate-workflow-mode/ is present.
12
+ const skip = !existsSync(at('../../../../../../docs/mockups/estimate-workflow-mode/')) && 'docs/mockups/estimate-workflow-mode/ is not in this checkout';
10
13
 
11
14
  // Every edit to a template lives in its builder, so a rebuild from the mockup
12
15
  // never silently undoes one (as build-template.test.mjs does for the review).
@@ -16,28 +19,20 @@ function pinned(builder, asset) {
16
19
  assert.equal(readFileSync(out, 'utf8'), readFileSync(at(asset), 'utf8'));
17
20
  }
18
21
 
19
- test('build-workflow-template.mjs reproduces assets/estimate-template.html', () => {
22
+ test('build-workflow-template.mjs reproduces assets/estimate-template.html', { skip }, () => {
20
23
  pinned('../build-workflow-template.mjs', '../../assets/estimate-template.html');
21
24
  });
22
25
 
23
26
  test('the Workflow-based template has its slots, no mockup leftovers, internal parts visible', () => {
24
27
  const t = readFileSync(at('../../assets/estimate-template.html'), 'utf8');
25
- assert.deepEqual([...new Set([...t.matchAll(/<!-- slot:(\w+) -->/g)].map((m) => m[1]))].sort(), ['DATA', 'TITLE']);
28
+ assert.deepEqual([...new Set([...t.matchAll(/<!-- slot:(\w+) -->/g)].map((m) => m[1]))].sort(), ['DATA', 'TITLE', 'XLSX']);
26
29
  for (const gone of ['MOCKUP', 'Sin Kowa', 'estimate-feature-mockup.html', 'estimate-mockup.html', '/*DATA*/', '<body class="client">']) {
27
30
  assert.ok(!t.includes(gone), `template still carries ${gone}`);
28
31
  }
29
- assert.ok(t.includes('href="estimate-components.html"'));
32
+ assert.ok(!t.includes('estimate-components.html'), 'one estimate page: nothing links to the Component-based page');
30
33
  });
31
34
 
32
- test('build-components-template.mjs reproduces assets/estimate-components.html', () => {
33
- pinned('../build-components-template.mjs', '../../assets/estimate-components.html');
34
- });
35
-
36
- test('the Component-based template is the review read-only, with tasks, price and export', () => {
37
- const t = readFileSync(at('../../assets/estimate-components.html'), 'utf8');
38
- assert.deepEqual([...new Set([...t.matchAll(/<!-- slot:(\w+) -->/g)].map((m) => m[1]))].sort(), ['DATA', 'MATH', 'TITLE', 'XLSX']);
39
- for (const want of ['const FINAL = true;', 'const TASKS = PAGE.tasks;', 'id="xlsx"', 'href="estimate.html"', 'id="method"', 'const XLSX_SOURCE']) {
40
- assert.ok(t.includes(want), `template lacks ${want}`);
41
- }
42
- assert.ok(!t.includes('architecture.html'));
35
+ test('the workbook download is the page\'s primary button', () => {
36
+ const html = readFileSync(at('../../assets/estimate-template.html'), 'utf8');
37
+ assert.match(html, /<button class="btn primary" id="xlsx"[^>]*>↓ Download xlsx<\/button>/);
43
38
  });
@@ -1,17 +1,21 @@
1
1
  import { test } from 'node:test';
2
2
  import assert from 'node:assert/strict';
3
3
  import { execFileSync } from 'node:child_process';
4
- import { mkdtempSync, readFileSync } from 'node:fs';
4
+ import { existsSync, mkdtempSync, readFileSync } from 'node:fs';
5
5
  import { tmpdir } from 'node:os';
6
6
  import { join } from 'node:path';
7
7
  import { fileURLToPath } from 'node:url';
8
8
 
9
9
  const builder = fileURLToPath(new URL('../build-template.mjs', import.meta.url));
10
10
  const committed = fileURLToPath(new URL('../../assets/score-review.html', import.meta.url));
11
+ // The approved mockups the builder starts from are kept outside this repo; the
12
+ // pin runs wherever docs/mockups/estimate-workflow-mode/ is present.
13
+ const mockups = fileURLToPath(new URL('../../../../../../docs/mockups/estimate-workflow-mode/', import.meta.url));
14
+ const skip = !existsSync(mockups) && 'docs/mockups/estimate-workflow-mode/ is not in this checkout';
11
15
 
12
16
  // Every edit to the template lives in the builder, so a rebuild from the
13
17
  // mockup never silently undoes one.
14
- test('build-template.mjs reproduces assets/score-review.html byte for byte', () => {
18
+ test('build-template.mjs reproduces assets/score-review.html byte for byte', { skip }, () => {
15
19
  const out = join(mkdtempSync(join(tmpdir(), 'wf-tpl-')), 'score-review.html');
16
20
  execFileSync('node', [builder, '--out', out], { cwd: tmpdir() });
17
21
  assert.equal(readFileSync(out, 'utf8'), readFileSync(committed, 'utf8'));
@@ -0,0 +1,64 @@
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 { citeFindings, citeWarnings } from '../lib/cites.mjs';
6
+ import { checkWorkflowInputs } from '../lib/schema.mjs';
7
+ import { grouped } from './stage.mjs';
8
+
9
+ const fx = fileURLToPath(new URL('./fixtures/inputs-pass.json', import.meta.url));
10
+ const load = () => loadPair(fx);
11
+ const task = (inputs, id) => inputs.components.flatMap((c) => c.tasks ?? []).find((t) => t.id === id);
12
+
13
+ test('a task source may be a workflow step, a branch target, a requirement or rule id, or new', () => {
14
+ const { inputs, req } = load();
15
+ task(inputs, 'stage-engine').source = 'WF-002:Pack';
16
+ task(inputs, 'notify-impl').source = 'WF-002:Short-pack alert';
17
+ task(inputs, 'orders-impl').source = 'FR-003';
18
+ task(inputs, 'billing-match').source = 'BR-001';
19
+ task(inputs, 'drafter-impl').source = 'new';
20
+ assert.deepEqual(citeFindings(inputs, req), []);
21
+ });
22
+
23
+ test('a source that names nothing in the BA package is refused', () => {
24
+ const { inputs, req } = load();
25
+ task(inputs, 'stage-engine').source = 'WF-002:Storing';
26
+ assert.deepEqual(citeFindings(inputs, req), ['task stage-engine: source "WF-002:Storing" is not a workflow step, requirement id or "new"']);
27
+ });
28
+
29
+ test('a score may cite only tasks that serve its feature', () => {
30
+ const { inputs, req } = load();
31
+ inputs.features.find((f) => f.id === 'FEAT-001').scores.size.tasks = ['stage-engine', 'drafter-impl', 'nope'];
32
+ assert.deepEqual(citeFindings(inputs, req), [
33
+ 'FEAT-001: scores.size.tasks cites drafter-impl, which does not serve it',
34
+ 'FEAT-001: scores.size.tasks cites nope, which does not serve it',
35
+ ]);
36
+ });
37
+
38
+ test('the inputs check carries the cite findings', () => {
39
+ const { inputs, req } = load();
40
+ task(inputs, 'stage-engine').source = 'WF-009:Pack';
41
+ assert.ok(checkWorkflowInputs(inputs, req).some((f) => f.startsWith('task stage-engine: source')));
42
+ });
43
+
44
+ test('missing sources and uncited scores warn, they do not fail', () => {
45
+ const { inputs } = load();
46
+ const w = citeWarnings(inputs);
47
+ assert.ok(w.includes('8 tasks have no source (a workflow step, requirement id or "new")'));
48
+ assert.ok(w.some((x) => /^\d+ scores cite no task/.test(x)));
49
+ });
50
+
51
+ test('new work that Uncertainty does not cite is named', () => {
52
+ const { inputs } = load();
53
+ task(inputs, 'notify-impl').source = 'new';
54
+ assert.ok(citeWarnings(inputs).includes('FEAT-002: task notify-impl is new work that Uncertainty does not cite'));
55
+ inputs.features.find((f) => f.id === 'FEAT-002').scores.unc.tasks = ['notify-impl'];
56
+ assert.ok(!citeWarnings(inputs).some((x) => x.includes('notify-impl is new')));
57
+ });
58
+
59
+ test('a grouped estimate: a group cites the tasks of any of its members, and nothing else', () => {
60
+ const { inputs, req } = load();
61
+ grouped(inputs); // GRP-01 = FEAT-001..003, GRP-02 = FEAT-004..005
62
+ inputs.featureGroups[0].scores = { ...inputs.featureGroups[0].scores, size: { ...inputs.featureGroups[0].scores.size, tasks: ['orders-impl', 'drafter-impl'] } };
63
+ assert.deepEqual(citeFindings(inputs, req), ['GRP-01: scores.size.tasks cites drafter-impl, which does not serve it']);
64
+ });
@@ -39,6 +39,7 @@ test('validate exits 0 on a clean pair and 1 when estimation.json is stale', ()
39
39
  execFileSync('node', [script('compute'), '--inputs', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'estimation.json')]);
40
40
  const ok = spawnSync('node', [script('validate'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json')]);
41
41
  assert.equal(ok.status, 0, String(ok.stderr));
42
+ assert.match(String(ok.stderr), /^warning: 8 tasks have no source/m); // warns, still exits 0
42
43
  const est = JSON.parse(readFileSync(join(dir, 'estimation.json'), 'utf8'));
43
44
  est.computed.features['FEAT-001'].point += 1;
44
45
  writeFileSync(join(dir, 'estimation.json'), JSON.stringify(est));
@@ -26,23 +26,23 @@ function sheets(file) {
26
26
  return { xml: (part) => files.get(part).toString('utf8'), text };
27
27
  }
28
28
 
29
- test('Ballpark: SYSTEM / MODULE in A, FEATURE / WORK ITEM in B, A7..A36 are real cells', () => {
29
+ test('Ballpark: SYSTEM / MODULE in A, FEATURE / WORK ITEM in B, A7..A46 are real cells', () => {
30
30
  const { xml, text } = sheets(TEMPLATE);
31
31
  assert.equal(text(BALLPARK, 'A6'), 'SYSTEM / MODULE');
32
32
  assert.equal(text(BALLPARK, 'B6'), 'FEATURE / WORK ITEM');
33
- for (let r = 7; r <= 36; r += 1) assert.match(xml(BALLPARK), new RegExp(`<c r="A${r}" s="\\d+"`), `no cell A${r}`);
33
+ for (let r = 7; r <= 46; r += 1) assert.match(xml(BALLPARK), new RegExp(`<c r="A${r}" s="\\d+"`), `no cell A${r}`);
34
34
  });
35
35
 
36
36
  test('Ballpark: formulas, merges, pane and validation follow the shift', () => {
37
37
  const ballpark = sheets(TEMPLATE).xml(BALLPARK);
38
38
  assert.match(ballpark, /<c r="H7"[^>]*><f[^>]*>[^<]*SUMPRODUCT\(\$C7:\$G7/);
39
39
  assert.match(ballpark, /<pane xSplit="2" ySplit="6" topLeftCell="C7"/);
40
- for (const ref of ['A1:N1', 'A2:N2', 'A39:N39']) assert.match(ballpark, new RegExp(`<mergeCell ref="${ref}"/>`));
41
- assert.match(ballpark, /<dataValidation [^>]*sqref="C7:G36"/);
40
+ for (const ref of ['A1:N1', 'A2:N2', 'A49:N49']) assert.match(ballpark, new RegExp(`<mergeCell ref="${ref}"/>`));
41
+ assert.match(ballpark, /<dataValidation [^>]*sqref="C7:G46"/);
42
42
  });
43
43
 
44
44
  test("Roll-up's subtotal link points at the shifted Ballpark subtotal", () => {
45
- assert.match(sheets(TEMPLATE).xml(ROLLUP), /<c r="C6"[^>]*><f[^>]*>(?:'|&apos;)Ballpark Estimator(?:'|&apos;)!\$J\$37</);
45
+ assert.match(sheets(TEMPLATE).xml(ROLLUP), /<c r="C6"[^>]*><f[^>]*>(?:'|&apos;)Ballpark Estimator(?:'|&apos;)!\$J\$47</);
46
46
  });
47
47
 
48
48
  const canRebuild = spawnSync('/usr/bin/python3', ['-c', 'import uno'], { stdio: 'ignore' }).status === 0
@@ -0,0 +1,39 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { execFileSync } from 'node:child_process';
4
+ import { join } from 'node:path';
5
+ import { pathToFileURL } 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 { staged, script } from './stage.mjs';
9
+
10
+ const skip = !findChrome();
11
+ const settle = () => new Promise((r) => setTimeout(r, 1500));
12
+ // stage-engine serves FEAT-001 and FEAT-002; stage-tests moves to FEAT-002 only
13
+ const split = (i) => { i.components.find((c) => c.id === 'api.stage').tasks[1].features = ['FEAT-002']; };
14
+ function estimatePage(mutate) {
15
+ const dir = staged(mutate);
16
+ execFileSync('node', [script('render'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', join(dir, 'dist')]);
17
+ return pathToFileURL(join(dir, 'dist', 'estimate.html')).href;
18
+ }
19
+
20
+ const rows = (page, f) => page.eval(`JSON.stringify([...document.querySelectorAll('[data-ftasks="${f}"] tbody tr')].map((tr) => tr.querySelector('.task').textContent))`).then(JSON.parse);
21
+ const hrs = (s) => Number(s.match(/([\d.]+)h/)[1]);
22
+ const featureHours = (page) => page.eval(`JSON.stringify([...document.querySelectorAll('[data-ftasks] summary')].map((s) => s.textContent))`).then(JSON.parse);
23
+ const total = (page) => page.eval(`[...document.querySelectorAll('#xcheck tr')].find((tr) => tr.textContent.includes('Expected effort')).lastChild.textContent`);
24
+
25
+ test('a feature lists only the tasks that serve it; feature hours add up to the total', { skip }, async () => {
26
+ const page = await openPage(estimatePage(split));
27
+ try {
28
+ await settle();
29
+ const one = await rows(page, 'FEAT-001');
30
+ assert.ok(one.some((t) => t.startsWith('Stage transitions with audit')));
31
+ assert.ok(!one.some((t) => t.startsWith('Transition tests')));
32
+ const two = await rows(page, 'FEAT-002');
33
+ assert.ok(two.some((t) => t.startsWith('Transition tests')));
34
+ assert.match(two.find((t) => t.startsWith('Stage transitions')), /shared with FEAT-001/);
35
+ const sum = (await featureHours(page)).reduce((n, s) => n + hrs(s), 0);
36
+ assert.ok(Math.abs(sum - hrs(await total(page))) <= 5, `features ${sum}h vs total ${await total(page)}`);
37
+ assert.deepEqual(page.errors, []);
38
+ } finally { await page.close(); }
39
+ });