@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.
- package/README.md +23 -5
- package/package.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/README.md +1 -1
- package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +2 -2
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-314.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-314.pyc +0 -0
- package/plugins/presales/.claude-plugin/plugin.json +9 -0
- package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +1 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/evals.json +5 -5
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-facts-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-package-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/browser.test.mjs +6 -2
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/check-quotes-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/inputs.test.mjs +6 -2
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-config-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-export-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-gen-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/record-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/render.test.mjs +22 -18
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-quotes-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-strategy-cli.test.mjs +5 -1
- package/plugins/{solution-architect → presales}/skills/estimate/README.md +14 -4
- package/plugins/{solution-architect → presales}/skills/estimate/classic/references/writing.md +1 -1
- package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/roadmap.mjs +9 -5
- package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/estimate-math.test.mjs +11 -0
- package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/project-price.test.mjs +10 -0
- package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/xlsx-export.test.mjs +12 -12
- package/plugins/{solution-architect → presales}/skills/estimate/evals/evals.json +1 -1
- package/plugins/presales/skills/estimate/shared/assets/xlsx-export.js +392 -0
- package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/project-price.mjs +6 -4
- package/plugins/presales/skills/estimate/workflow-based/FLOW.md +176 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/estimate-template.html +127 -10
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/assets/score-review.html +164 -27
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/build-template.mjs +9 -2
- package/plugins/presales/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +76 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/build-xlsx-template.py +3 -3
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/cites.mjs +60 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/groups.mjs +65 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/page-html.mjs +43 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/page-view.mjs +30 -4
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/rollup.mjs +43 -12
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/schema.mjs +23 -1
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +6 -1
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/score-html.mjs +23 -4
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-group-rows.mjs +20 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +81 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/lib/xlsx-tasks.mjs +25 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/render.mjs +8 -10
- package/plugins/presales/skills/estimate/workflow-based/scripts/score-review.mjs +81 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/cites.js +46 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/effort.css +22 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/effort.mjs +37 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/estimate-page.css +10 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/estimate-page.js +16 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/feature-tasks.js +33 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/lavish.mjs +39 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/template/tasks.css +25 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/view.js +21 -2
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/also-builds-browser.test.mjs +1 -3
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/browser.test.mjs +10 -7
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +10 -15
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +6 -2
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/cites.test.mjs +64 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/cli.test.mjs +1 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +5 -5
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +39 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/groups-browser.test.mjs +39 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/groups.test.mjs +156 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/link-picker-browser.test.mjs +1 -10
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/open-lavish.test.mjs +54 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/page-html.test.mjs +7 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +25 -21
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/render.test.mjs +5 -5
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-effort.test.mjs +104 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-lavish.test.mjs +193 -0
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/review-tasks.test.mjs +66 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/schema.test.mjs +15 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +10 -1
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/stage.mjs +16 -8
- package/plugins/presales/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +110 -0
- package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/validate.mjs +2 -0
- package/plugins/{solution-architect → presales}/skills/new-lead/README.md +1 -1
- package/plugins/{solution-architect → presales}/skills/new-lead/SKILL.md +1 -1
- package/plugins/{solution-architect → presales}/skills/new-lead/evals/evals.json +13 -13
- package/plugins/presales/skills/proposal/README.md +63 -0
- package/plugins/presales/skills/proposal/SKILL.md +91 -0
- package/plugins/presales/skills/proposal/assets/proposal-page.html +156 -0
- package/plugins/presales/skills/proposal/assets/roboto-widths.json +1 -0
- package/plugins/{solution-architect → presales}/skills/proposal/evals/evals.json +22 -22
- package/plugins/presales/skills/proposal/references/build.md +33 -0
- package/plugins/presales/skills/proposal/references/diagrams.md +123 -0
- package/plugins/presales/skills/proposal/references/interview.md +66 -0
- package/plugins/presales/skills/proposal/references/review.md +41 -0
- package/plugins/{solution-architect → presales}/skills/proposal/references/workflow.md +30 -22
- package/plugins/presales/skills/proposal/references/writing.md +167 -0
- package/plugins/presales/skills/proposal/scripts/build/arrows.mjs +70 -0
- package/plugins/presales/skills/proposal/scripts/build/brand.mjs +43 -0
- package/plugins/presales/skills/proposal/scripts/build/build.mjs +75 -0
- package/plugins/presales/skills/proposal/scripts/build/contents.mjs +42 -0
- package/plugins/presales/skills/proposal/scripts/build/docx-blocks.mjs +102 -0
- package/plugins/presales/skills/proposal/scripts/build/docx-doc.mjs +91 -0
- package/plugins/presales/skills/proposal/scripts/build/docx-inline.mjs +48 -0
- package/plugins/presales/skills/proposal/scripts/build/docx-table.mjs +75 -0
- package/plugins/presales/skills/proposal/scripts/build/figures.mjs +95 -0
- package/plugins/presales/skills/proposal/scripts/build/html.mjs +80 -0
- package/plugins/presales/skills/proposal/scripts/build/layout.mjs +48 -0
- package/plugins/presales/skills/proposal/scripts/build/notes.mjs +30 -0
- package/plugins/presales/skills/proposal/scripts/build/overlap.mjs +57 -0
- package/plugins/presales/skills/proposal/scripts/build/page.mjs +50 -0
- package/plugins/presales/skills/proposal/scripts/build/pdf.mjs +88 -0
- package/plugins/presales/skills/proposal/scripts/build/scope-ids.mjs +10 -0
- package/plugins/presales/skills/proposal/scripts/build/tool.mjs +35 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/derive.mjs +7 -1
- package/plugins/presales/skills/proposal/scripts/diagram/align.mjs +36 -0
- package/plugins/presales/skills/proposal/scripts/diagram/draw.mjs +81 -0
- package/plugins/presales/skills/proposal/scripts/diagram/grid.mjs +90 -0
- package/plugins/presales/skills/proposal/scripts/diagram/icons.mjs +30 -0
- package/plugins/presales/skills/proposal/scripts/diagram/index.mjs +23 -0
- package/plugins/presales/skills/proposal/scripts/diagram/layout.mjs +42 -0
- package/plugins/presales/skills/proposal/scripts/diagram/obstacles.mjs +49 -0
- package/plugins/presales/skills/proposal/scripts/diagram/pack.mjs +101 -0
- package/plugins/presales/skills/proposal/scripts/diagram/route.mjs +129 -0
- package/plugins/presales/skills/proposal/scripts/diagram/steps.mjs +74 -0
- package/plugins/presales/skills/proposal/scripts/diagram/style.mjs +61 -0
- package/plugins/presales/skills/proposal/scripts/diagram/text.mjs +28 -0
- package/plugins/presales/skills/proposal/scripts/lib/bans.mjs +82 -0
- package/plugins/presales/skills/proposal/scripts/lib/checks-client.mjs +74 -0
- package/plugins/presales/skills/proposal/scripts/lib/checks-doc.mjs +78 -0
- package/plugins/presales/skills/proposal/scripts/lib/checks.mjs +44 -0
- package/plugins/presales/skills/proposal/scripts/lib/citations.mjs +45 -0
- package/plugins/presales/skills/proposal/scripts/lib/diagram-spec.mjs +67 -0
- package/plugins/presales/skills/proposal/scripts/lib/figures.mjs +79 -0
- package/plugins/presales/skills/proposal/scripts/lib/load.mjs +42 -0
- package/plugins/presales/skills/proposal/scripts/lib/money.mjs +62 -0
- package/plugins/presales/skills/proposal/scripts/lib/parts.mjs +83 -0
- package/plugins/presales/skills/proposal/scripts/lib/price-source.mjs +74 -0
- package/plugins/presales/skills/proposal/scripts/lib/prose.mjs +55 -0
- package/plugins/presales/skills/proposal/scripts/lib/workbook.mjs +86 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-checks.mjs +7 -2
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-cli.mjs +16 -18
- package/plugins/presales/skills/proposal/scripts/lib/workflow-md.mjs +35 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-view.mjs +3 -3
- package/plugins/presales/skills/proposal/scripts/render.mjs +55 -0
- package/plugins/presales/skills/proposal/scripts/test/acme.mjs +28 -0
- package/plugins/presales/skills/proposal/scripts/test/bans.test.mjs +59 -0
- package/plugins/presales/skills/proposal/scripts/test/build.test.mjs +128 -0
- package/plugins/presales/skills/proposal/scripts/test/diagram.test.mjs +154 -0
- package/plugins/presales/skills/proposal/scripts/test/docs.test.mjs +13 -0
- package/plugins/presales/skills/proposal/scripts/test/e2e.test.mjs +20 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/evals-fixtures.test.mjs +8 -5
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/figures.test.mjs +29 -1
- package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/diagrams/aws-on-neutral.json +60 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/diagrams/booking.json +61 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/proposal-fail.md +49 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/proposal.md +72 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/acme/references.json +5 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/workbook-recalculated.xlsx +0 -0
- package/plugins/presales/skills/proposal/scripts/test/fixtures/workbook-unrecalculated.xlsx +0 -0
- package/plugins/presales/skills/proposal/scripts/test/layout.test.mjs +89 -0
- package/plugins/presales/skills/proposal/scripts/test/parts.test.mjs +112 -0
- package/plugins/presales/skills/proposal/scripts/test/prices.test.mjs +122 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/quality-gates.test.mjs +1 -1
- package/plugins/presales/skills/proposal/scripts/test/steps.test.mjs +38 -0
- package/plugins/presales/skills/proposal/scripts/test/validate.test.mjs +46 -0
- package/plugins/presales/skills/proposal/scripts/test/workbook.test.mjs +76 -0
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-checks.test.mjs +7 -2
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-view.test.mjs +15 -10
- package/plugins/{solution-architect → presales}/skills/proposal/scripts/validate.mjs +8 -3
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +0 -9
- package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +0 -336
- package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +0 -95
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +0 -1071
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +0 -85
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +0 -51
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +0 -44
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +0 -53
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +0 -46
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/feature-tasks.js +0 -21
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +0 -30
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +0 -59
- package/plugins/solution-architect/skills/proposal/README.md +0 -51
- package/plugins/solution-architect/skills/proposal/SKILL.md +0 -69
- package/plugins/solution-architect/skills/proposal/assets/proposal-template.html +0 -82
- package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +0 -143
- package/plugins/solution-architect/skills/proposal/references/interview.md +0 -60
- package/plugins/solution-architect/skills/proposal/references/review.md +0 -40
- package/plugins/solution-architect/skills/proposal/references/writing.md +0 -104
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +0 -58
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +0 -64
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +0 -21
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +0 -42
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +0 -56
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +0 -44
- package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +0 -34
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +0 -39
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +0 -30
- package/plugins/solution-architect/skills/proposal/scripts/render.mjs +0 -64
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +0 -147
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +0 -152
- package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +0 -57
- package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +0 -68
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +0 -30
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +0 -27
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +0 -51
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +0 -70
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +0 -41
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +0 -96
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +0 -25
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +0 -75
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/case.yaml +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/fixture.sh +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/inputs-written.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/no-proposal-md.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/skill-fired.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/graders/validate-then-render.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/proposal-workflow/prompt.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/case.yaml +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/fixture.sh +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/nothing-written.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/skill-fired.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-gate-no-architecture/prompt.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/case.yaml +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/fixture.sh +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/no-estimation-md.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/pages-or-stop.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/routed-to-workflow.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/skill-fired.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/graders/three-questions-max.md +0 -0
- /package/plugins/{solution-architect → presales}/evals/workflow-happy-path/prompt.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/README.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/SKILL.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/OFL.txt +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/mermaid-theme.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/section-help.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/assets/viewer-template.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/transcript-citations/C1-kickoff-call.txt +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/evals/fixtures/transcript-citations/E1-intro-email.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/extract.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/interview.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/likec4.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/project-types.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/quality-goals.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/research.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/rewriting.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/viewer.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/references/writing.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/ba-facts.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/check-quotes.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/drift.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/ba-package.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/cdp.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/chrome.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/companion-links.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-kinds.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-links.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-routes.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/doc-sections.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/drift.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/embed.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/er-entities.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/fonts.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/frontmatter.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/git-diff.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/inputs.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-config.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-extract.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/likec4-steps.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-defs.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-flows.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-inline.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-links.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-list.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-render.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-shape.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-tables.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-views.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/md-wide.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/nav.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/offline.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/port.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/quality-gate.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/section-help.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/slug-registry.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/state.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/strategy-sections.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-clusters.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-deployment.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-elections.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-links.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-model-tables.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-palette.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-provenance.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-quotes.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-strategy.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/lib/validate-tree.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-config.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-export.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/likec4-gen.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/record.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/render.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/serve.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/ba-package.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/companion-links.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-kinds.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-links.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-routes.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/doc-sections.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/drift.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/embed.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/er-entities.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/extract-workflow.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/broken/model.c4 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/pass/model.c4 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/adr/0001-sample.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimate.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimation.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model-broken.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/docs-pass/threat-model.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/sample-model.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fixtures/sample.c4 +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/fonts.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/frontmatter.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/git-diff.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-config.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-extract.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/likec4-steps.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-flows.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-links.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-provenance.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-render.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-tables.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-views.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/md-wide.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/nav.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/offline.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/quality-gates.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/research-workflow.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/rewriting.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/section-help.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/serve.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/state.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-clusters.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-deployment.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-elections.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-links.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-model-tables.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-provenance.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-quotes.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-strategy.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/validate-tree.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/test/viewer-template.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/scripts/validate.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/workflows/extract.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/analyze-requirements/workflows/research.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/SKILL.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/FLOW.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/estimate-template-agentic.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/estimate-template.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/assets/scores-review-template.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/agentic-estimation.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/ai-multipliers.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/interview.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/scoring-guide.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/slicing.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/task-shapes.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/references/techniques.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/compute.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/agentic-checks.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/checks.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/components.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/md-tables.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/redact.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/rollup.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/schema.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/score-csv.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/score-html.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/lib/scoring-checks.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/render.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/score-review.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/baselines.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/browser-agentic.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/browser.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/compute.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/e2e.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-estimation-fail.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-estimation-pass.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/agentic-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/booking-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/estimation-fail.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/estimation-pass.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/fixtures/measurements.jsonl +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/measurements.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/pricing.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/quality-gates.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/references.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/render.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/schema.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/score-review.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/scoring.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/url-state.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/validate.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/zip-store.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/test/zip.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/classic/scripts/validate.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/gate-check-northgate/northgate-email.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/agentic-task-schema.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/baselines.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/context-schema.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/estimate-math.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/inline.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/measurements.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/pricing.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/score-diff.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/scoring-schema.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/scoring.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/shared/lib/zip.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/references/hidden-work-by-type.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/references/linking.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/compute.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/requirements.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/also-builds.css +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/also-builds.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/arch-link.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/click.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/link-picker.css +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/link-picker.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/template/prelude.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/detail.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/index.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/start.sh +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/stats.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/dashboard/vendor/reactflow-bundle.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/entry.jsx +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/package-lock.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/assets/vendor-build/package.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/init-root.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lead-upsert.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/enrich.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/map-nodes.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/map.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/port.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/lib/registry.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/serve.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/e2e-workspace.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/enrich.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/index.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/proposal-non-tech.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/threat-model.html +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/notes.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/proposal-non-tech.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/rfp.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/fixtures/root/leads.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/init-root.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/lead-upsert.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/map.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/port.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/registry-io.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/registry.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/serve.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/stats.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/validate-cli.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/test/vendor-bundle.test.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/new-lead/scripts/validate.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-rivet-gym/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-rivet-gym/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/dist/mermaid.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/brief.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/dist/mermaid.js +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/jargon.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/sections.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/scripts/lib/workflow-lead.mjs +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +0 -0
- /package/plugins/{solution-architect → presales}/skills/proposal/scripts/test/workflow-stage.mjs +0 -0
- /package/plugins/{solution-architect → presales}/workflows/review-links.js +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Both estimate pages in Chrome with feature groups: the groups card lists
|
|
2
|
+
// each group with its members, and the Component-based page prices a group
|
|
3
|
+
// once (members show it, the subtotal counts it once).
|
|
4
|
+
import { test } from 'node:test';
|
|
5
|
+
import assert from 'node:assert/strict';
|
|
6
|
+
import { execFileSync } from 'node:child_process';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { pathToFileURL } from 'node:url';
|
|
9
|
+
import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
|
|
10
|
+
import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
|
|
11
|
+
import { staged, script, grouped } from './stage.mjs';
|
|
12
|
+
|
|
13
|
+
const skip = !findChrome();
|
|
14
|
+
const settle = () => new Promise((r) => setTimeout(r, 1500));
|
|
15
|
+
function pages(mutate) {
|
|
16
|
+
const dir = staged(mutate);
|
|
17
|
+
execFileSync('node', [script('render'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', join(dir, 'dist')]);
|
|
18
|
+
return (name) => pathToFileURL(join(dir, 'dist', name)).href;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
test('Workflow-based page: a Feature groups card lists each group and its members', { skip }, async () => {
|
|
22
|
+
const page = await openPage(pages(grouped)('estimate.html'));
|
|
23
|
+
try {
|
|
24
|
+
await settle();
|
|
25
|
+
assert.deepEqual(page.errors, []);
|
|
26
|
+
assert.equal(await page.eval(`document.querySelectorAll('#fgroups tr[data-group]').length`), 2);
|
|
27
|
+
assert.equal(await page.eval(`document.querySelectorAll('#fgroups tr[data-group="GRP-01"] .chip[data-f]').length`), 3);
|
|
28
|
+
assert.match(await page.eval(`document.getElementById('buildup').textContent`), /5 features in 2 scored groups/);
|
|
29
|
+
} finally { await page.close(); }
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
test('Workflow-based page: no groups card without featureGroups', { skip }, async () => {
|
|
33
|
+
const page = await openPage(pages()('estimate.html'));
|
|
34
|
+
try {
|
|
35
|
+
await settle();
|
|
36
|
+
assert.deepEqual(page.errors, []);
|
|
37
|
+
assert.equal(await page.eval(`document.getElementById('fgroups')`), null);
|
|
38
|
+
} finally { await page.close(); }
|
|
39
|
+
});
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// Feature groups: an optional featureGroups[] scores and prices several BA
|
|
2
|
+
// features as one unit. Without it nothing changes (the other tests pin that).
|
|
3
|
+
import { test } from 'node:test';
|
|
4
|
+
import assert from 'node:assert/strict';
|
|
5
|
+
import { spawnSync } from 'node:child_process';
|
|
6
|
+
import { mkdtempSync, readFileSync, writeFileSync, copyFileSync } from 'node:fs';
|
|
7
|
+
import { tmpdir } from 'node:os';
|
|
8
|
+
import { join } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
import { loadPair } from '../lib/requirements.mjs';
|
|
11
|
+
import { checkWorkflowInputs } from '../lib/schema.mjs';
|
|
12
|
+
import { computeWorkflowEstimation } from '../lib/rollup.mjs';
|
|
13
|
+
import { xlsxRows } from '../lib/xlsx-rows.mjs';
|
|
14
|
+
import { milestoneView, priceView, groupsView } from '../lib/page-view.mjs';
|
|
15
|
+
import { pageData } from '../lib/score-html.mjs';
|
|
16
|
+
import { featurePrice } from '../../../shared/lib/pricing.mjs';
|
|
17
|
+
import { scoreNumbers, loadGuide } from '../../../shared/lib/scoring.mjs';
|
|
18
|
+
import { staged, script, grouped } from './stage.mjs';
|
|
19
|
+
|
|
20
|
+
const fx = fileURLToPath(new URL('./fixtures/inputs-pass.json', import.meta.url));
|
|
21
|
+
const pageOf = (html) => JSON.parse(/<script type="application\/json" id="page-data">([\s\S]*?)<\/script>/.exec(html)[1]);
|
|
22
|
+
|
|
23
|
+
const pair = (mutate) => {
|
|
24
|
+
const { inputs, req } = loadPair(fx);
|
|
25
|
+
mutate?.(inputs);
|
|
26
|
+
return { inputs, req };
|
|
27
|
+
};
|
|
28
|
+
const findings = (mutate) => { const { inputs, req } = pair((i) => { grouped(i); mutate?.(i); }); return checkWorkflowInputs(inputs, req); };
|
|
29
|
+
|
|
30
|
+
test('schema: a grouped estimate with score-less features passes', () => {
|
|
31
|
+
assert.deepEqual(findings(), []);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test('schema: a member carrying its own scores is refused', () => {
|
|
35
|
+
const out = findings((i) => { i.features[0].scores = i.featureGroups[0].scores; });
|
|
36
|
+
assert.ok(out.includes('feature FEAT-001: scores belongs on its group when featureGroups is set'), out.join('\n'));
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
test('schema: every feature belongs to exactly one group', () => {
|
|
40
|
+
const none = findings((i) => { i.featureGroups[1].members = ['FEAT-004']; });
|
|
41
|
+
assert.ok(none.includes('feature FEAT-005: in no group — every feature belongs to one group'), none.join('\n'));
|
|
42
|
+
const two = findings((i) => { i.featureGroups[1].members.push('FEAT-001'); });
|
|
43
|
+
assert.ok(two.includes('feature FEAT-001: in GRP-01 and GRP-02 — a feature belongs to one group'), two.join('\n'));
|
|
44
|
+
const unknown = findings((i) => { i.featureGroups[1].members.push('FEAT-099'); });
|
|
45
|
+
assert.ok(unknown.includes('group GRP-02: member FEAT-099 is not in features[]'), unknown.join('\n'));
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('schema: group shape, ids and scores are checked; findings name the group', () => {
|
|
49
|
+
const out = findings((i) => {
|
|
50
|
+
i.featureGroups[0].id = 'G1';
|
|
51
|
+
i.featureGroups[1].name = '';
|
|
52
|
+
i.featureGroups[1].scores = { ...i.featureGroups[1].scores, unc: { n: 5, anchor: 'wrong', cite: 'x' } };
|
|
53
|
+
});
|
|
54
|
+
assert.ok(out.includes('group G1: id must look like GRP-01'), out.join('\n'));
|
|
55
|
+
assert.ok(out.includes('group GRP-02: name must be a non-empty string'), out.join('\n'));
|
|
56
|
+
assert.ok(out.includes("group GRP-02: scores.unc.anchor is not the guide's sentence for unc = 5"), out.join('\n'));
|
|
57
|
+
assert.deepEqual(findings((i) => { i.featureGroups[1].id = 'GRP-01'; })
|
|
58
|
+
.filter((m) => m.includes('duplicate')), ['group GRP-01: duplicate id']);
|
|
59
|
+
assert.ok(findings((i) => { i.featureGroups = []; }).includes('featureGroups must be a non-empty list when present'));
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
test('rollup: each group is priced once; members carry their group and no price', () => {
|
|
63
|
+
const { inputs, req } = pair(grouped);
|
|
64
|
+
const { computed } = computeWorkflowEstimation(inputs, req, []);
|
|
65
|
+
assert.deepEqual(Object.keys(computed.groups), ['GRP-01', 'GRP-02']);
|
|
66
|
+
const g1 = computed.groups['GRP-01'];
|
|
67
|
+
const p = featurePrice(scoreNumbers(inputs.featureGroups[0].scores));
|
|
68
|
+
assert.equal(g1.point, Math.round(p.point * 100) / 100);
|
|
69
|
+
assert.deepEqual(g1.members, ['FEAT-001', 'FEAT-002', 'FEAT-003']);
|
|
70
|
+
const f1 = computed.features['FEAT-001'];
|
|
71
|
+
assert.equal(f1.group, 'GRP-01');
|
|
72
|
+
for (const k of ['point', 'scoreTotal', 'tier', 'priceLow', 'priceHigh', 'flag']) assert.ok(!(k in f1), `${k} on a grouped feature`);
|
|
73
|
+
assert.equal(f1.name, 'Order pipeline & stage engine');
|
|
74
|
+
assert.deepEqual(f1.builtBy, ['api.stage', 'office']);
|
|
75
|
+
const sum = Object.values(computed.groups).reduce((n, g) => n + g.point, 0);
|
|
76
|
+
assert.ok(Math.abs(computed.price.featurePoints - sum) < 0.02);
|
|
77
|
+
// two priced units, so the integration overhead counts two
|
|
78
|
+
assert.equal(computed.price.overheads.lines.integration, 0.04);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test('rollup: a group lands in its members\' latest milestone and is built by all their components', () => {
|
|
82
|
+
const { inputs, req } = pair(grouped);
|
|
83
|
+
const { computed } = computeWorkflowEstimation(inputs, req, []);
|
|
84
|
+
for (const [id, g] of Object.entries(computed.groups)) {
|
|
85
|
+
const ms = g.members.map((m) => computed.features[m].milestone).filter(Boolean)
|
|
86
|
+
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }));
|
|
87
|
+
assert.equal(g.milestone, ms.at(-1), id);
|
|
88
|
+
assert.deepEqual(g.builtBy, [...new Set(g.members.flatMap((m) => computed.features[m].builtBy))].sort(), id);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
test('rollup: without featureGroups the estimate is unchanged and has no groups block', () => {
|
|
93
|
+
const { inputs, req } = pair();
|
|
94
|
+
const { computed } = computeWorkflowEstimation(inputs, req, []);
|
|
95
|
+
assert.ok(!('groups' in computed));
|
|
96
|
+
assert.ok('point' in computed.features['FEAT-001']);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
test('page view: groups listed with members; milestone shares still sum to the build', () => {
|
|
100
|
+
const { inputs, req } = pair(grouped);
|
|
101
|
+
const est = computeWorkflowEstimation(inputs, req, []);
|
|
102
|
+
const groups = groupsView(est);
|
|
103
|
+
assert.deepEqual(groups.map((g) => [g.id, g.members.map((m) => m.id)]),
|
|
104
|
+
[['GRP-01', ['FEAT-001', 'FEAT-002', 'FEAT-003']], ['GRP-02', ['FEAT-004', 'FEAT-005']]]);
|
|
105
|
+
assert.equal(groups[0].members[0].name, 'Order pipeline & stage engine');
|
|
106
|
+
assert.deepEqual(Object.keys(groups[0].scores), ['tech', 'size', 'deps', 'unc', 'risk']);
|
|
107
|
+
const share = milestoneView(est).reduce((n, m) => n + m.share, 0);
|
|
108
|
+
assert.ok(Math.abs(share - 1) < 0.02, String(share));
|
|
109
|
+
const v = priceView(est);
|
|
110
|
+
assert.equal(v.groupCount, 2);
|
|
111
|
+
assert.equal(v.featureCount, 5);
|
|
112
|
+
assert.equal(groupsView(computeWorkflowEstimation(...Object.values(pair()), [])), null);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
test('xlsx rows: one row per group with its members and their tasks', () => {
|
|
116
|
+
const { inputs, req } = pair(grouped);
|
|
117
|
+
const est = computeWorkflowEstimation(inputs, req, []);
|
|
118
|
+
const rows = xlsxRows(est, req);
|
|
119
|
+
assert.deepEqual(rows.map((r) => r.id), ['GRP-01', 'GRP-02']);
|
|
120
|
+
assert.equal(rows[0].code, 'FEAT-001, FEAT-002, FEAT-003');
|
|
121
|
+
assert.match(rows[0].does, /^FEAT-001 Order pipeline & stage engine; /);
|
|
122
|
+
assert.deepEqual(rows[0].scores, inputs.featureGroups[0].scores);
|
|
123
|
+
const ungrouped = xlsxRows(computeWorkflowEstimation(...Object.values(pair()), []), req);
|
|
124
|
+
const tasks = (rs) => rs.reduce((n, r) => n + r.tasks.length, 0);
|
|
125
|
+
assert.equal(tasks(rows), tasks(ungrouped)); // every task listed once, none dropped
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
test('components page data: members show their group\'s scores and know their group', () => {
|
|
129
|
+
const { inputs, req } = pair(grouped);
|
|
130
|
+
const d = pageData({ inputs, req, guide: loadGuide() });
|
|
131
|
+
assert.deepEqual(d.scores['FEAT-002'], d.scores['FEAT-001']);
|
|
132
|
+
assert.deepEqual(d.groupOf['FEAT-005'], { id: 'GRP-02', name: 'Office and billing', size: 2 });
|
|
133
|
+
assert.ok(!('groupOf' in pageData({ inputs: pair().inputs, req, guide: loadGuide() })));
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('compute, validate and render accept a grouped estimate; the estimate page carries the groups', () => {
|
|
137
|
+
const dir = staged(grouped);
|
|
138
|
+
const v = spawnSync('node', [script('validate'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json')]);
|
|
139
|
+
assert.equal(v.status, 0, String(v.stderr));
|
|
140
|
+
const r = spawnSync('node', [script('render'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', join(dir, 'dist')]);
|
|
141
|
+
assert.equal(r.status, 0, String(r.stderr));
|
|
142
|
+
const html = readFileSync(join(dir, 'dist', 'estimate.html'), 'utf8');
|
|
143
|
+
assert.match(html, /function viewGroups\(page\)/);
|
|
144
|
+
assert.match(html, /viewGroups\(PAGE\);/);
|
|
145
|
+
assert.deepEqual(pageOf(html).groups.map((g) => g.id), ['GRP-01', 'GRP-02']);
|
|
146
|
+
assert.equal(pageOf(html).xlsx.rows.length, 2);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
test('score-review refuses a grouped estimate', () => {
|
|
150
|
+
const dir = mkdtempSync(join(tmpdir(), 'wf-groups-'));
|
|
151
|
+
writeFileSync(join(dir, 'estimation-inputs.json'), JSON.stringify(grouped(JSON.parse(readFileSync(fx, 'utf8')))));
|
|
152
|
+
copyFileSync(fileURLToPath(new URL('./fixtures/requirements.json', import.meta.url)), join(dir, 'requirements.json'));
|
|
153
|
+
const r = spawnSync('node', [script('score-review'), '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html')]);
|
|
154
|
+
assert.equal(r.status, 1);
|
|
155
|
+
assert.match(String(r.stderr), /featureGroups is set/);
|
|
156
|
+
});
|
|
@@ -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
|
|
5
|
+
import { reviewPage } from './stage.mjs';
|
|
6
6
|
|
|
7
7
|
const skip = !findChrome();
|
|
8
8
|
const settle = () => new Promise((r) => setTimeout(r, 1500));
|
|
@@ -72,12 +72,3 @@ test('a mouse pick links it and does not pin; Esc clears and closes', { skip },
|
|
|
72
72
|
assert.equal(await isOpen(page), false);
|
|
73
73
|
assert.equal(await page.eval(`${BOX}.querySelector('input').value`), '');
|
|
74
74
|
}));
|
|
75
|
-
|
|
76
|
-
test('the read-only Component-based page has no picker', { skip }, async () => {
|
|
77
|
-
const page = await openPage(componentsPage());
|
|
78
|
-
try {
|
|
79
|
-
await settle();
|
|
80
|
-
assert.equal(await page.eval(`document.querySelectorAll('.lpick, select[data-link]').length`), 0);
|
|
81
|
-
assert.deepEqual(page.errors, []);
|
|
82
|
-
} finally { await page.close(); }
|
|
83
|
-
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// --write opens the page in Lavish itself, so every caller (any agent, any
|
|
2
|
+
// teammate) gets the review editor, not a bare HTML file.
|
|
3
|
+
import { test } from 'node:test';
|
|
4
|
+
import assert from 'node:assert/strict';
|
|
5
|
+
import { spawnSync } from 'node:child_process';
|
|
6
|
+
import { mkdtempSync, readFileSync, writeFileSync, copyFileSync, existsSync } from 'node:fs';
|
|
7
|
+
import { tmpdir } from 'node:os';
|
|
8
|
+
import { join } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
|
|
11
|
+
const fx = (n) => fileURLToPath(new URL(`./fixtures/${n}`, import.meta.url));
|
|
12
|
+
const script = fileURLToPath(new URL('../score-review.mjs', import.meta.url));
|
|
13
|
+
|
|
14
|
+
function stage(exitCode = 0) {
|
|
15
|
+
const dir = mkdtempSync(join(tmpdir(), 'wf-lavish-'));
|
|
16
|
+
copyFileSync(fx('inputs-pass.json'), join(dir, 'estimation-inputs.json'));
|
|
17
|
+
copyFileSync(fx('requirements.json'), join(dir, 'requirements.json'));
|
|
18
|
+
const log = join(dir, 'lavish.log');
|
|
19
|
+
const fake = join(dir, 'fake-lavish.mjs');
|
|
20
|
+
writeFileSync(fake, `import { writeFileSync } from 'node:fs';
|
|
21
|
+
writeFileSync(${JSON.stringify(log)}, JSON.stringify({ argv: process.argv.slice(2), telemetry: process.env.LAVISH_AXI_TELEMETRY }));
|
|
22
|
+
process.exit(${exitCode});`);
|
|
23
|
+
return { dir, log, fake };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const run = ({ dir, fake }, extra = []) => spawnSync('node', [script, '--write', join(dir, 'estimation-inputs.json'), '--out', join(dir, 'review.html'), ...extra], {
|
|
27
|
+
encoding: 'utf8', env: { ...process.env, LAVISH_AXI_FAKE: fake },
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('--write opens the written page in Lavish with telemetry off, and names the poll step', () => {
|
|
31
|
+
const s = stage();
|
|
32
|
+
const r = run(s);
|
|
33
|
+
assert.equal(r.status, 0, r.stderr);
|
|
34
|
+
const call = JSON.parse(readFileSync(s.log, 'utf8'));
|
|
35
|
+
assert.deepEqual(call.argv, [join(s.dir, 'review.html')]);
|
|
36
|
+
assert.equal(call.telemetry, '0');
|
|
37
|
+
assert.match(r.stdout, /lavish-axi@0\.1\.97 poll /);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
test('--no-open writes the page and leaves Lavish alone', () => {
|
|
41
|
+
const s = stage();
|
|
42
|
+
const r = run(s, ['--no-open']);
|
|
43
|
+
assert.equal(r.status, 0, r.stderr);
|
|
44
|
+
assert.ok(existsSync(join(s.dir, 'review.html')));
|
|
45
|
+
assert.equal(existsSync(s.log), false);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('Lavish failing to start keeps the page and points at the serve.mjs fallback', () => {
|
|
49
|
+
const s = stage(1);
|
|
50
|
+
const r = run(s);
|
|
51
|
+
assert.equal(r.status, 0, r.stderr);
|
|
52
|
+
assert.ok(existsSync(join(s.dir, 'review.html')));
|
|
53
|
+
assert.match(r.stderr, /serve\.mjs/);
|
|
54
|
+
});
|
|
@@ -12,3 +12,10 @@ test('each task row carries the features it serves, 7th', () => {
|
|
|
12
12
|
const out = taskTable(computeWorkflowEstimation(inputs, req, []));
|
|
13
13
|
assert.deepEqual(out['api.stage'].map((x) => x[6]), [['FEAT-001', 'FEAT-002'], ['FEAT-001']]);
|
|
14
14
|
});
|
|
15
|
+
|
|
16
|
+
test('each task row carries its source 8th and its id 9th', () => {
|
|
17
|
+
const { inputs, req } = loadPair(fx);
|
|
18
|
+
inputs.components.find((c) => c.id === 'api.stage').tasks[0].source = 'WF-002:Pack';
|
|
19
|
+
const out = taskTable(computeWorkflowEstimation(inputs, req, []));
|
|
20
|
+
assert.deepEqual(out['api.stage'].map((x) => [x[7], x[8]]), [['WF-002:Pack', 'stage-engine'], ['', 'stage-tests']]);
|
|
21
|
+
});
|
|
@@ -42,15 +42,18 @@ test('prices carry the currency code when it is not USD', { skip }, async () =>
|
|
|
42
42
|
} finally { await page.close(); }
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
// One estimate page: each feature row folds its tasks, components that build
|
|
46
|
+
// nothing are listed, and nothing links to the old Component-based page.
|
|
47
|
+
test('Workflow-based page: tasks per feature, components that build nothing, one page', { skip }, async () => {
|
|
48
|
+
const sourced = (i) => { i.components.find((c) => c.id === 'api.billing').tasks[0].source = 'FR-005'; };
|
|
49
|
+
const page = await openPage(pages(sourced)('estimate.html'));
|
|
47
50
|
try {
|
|
48
51
|
await settle();
|
|
49
52
|
assert.deepEqual(page.errors, []);
|
|
50
|
-
assert.
|
|
51
|
-
assert.
|
|
52
|
-
assert.match(await text(page, '#
|
|
53
|
-
assert.
|
|
53
|
+
assert.match(await text(page, '[data-ftasks="FEAT-005"] summary'), /Tasks · 3 tasks/);
|
|
54
|
+
assert.match(await text(page, '[data-ftasks="FEAT-005"] tr[data-task="billing-match"]'), /FR-005Three-way match/);
|
|
55
|
+
assert.match(await text(page, '#idle'), /Operations Database/);
|
|
56
|
+
assert.doesNotMatch(await page.eval('document.documentElement.outerHTML'), /estimate-components\.html|Component-based/);
|
|
54
57
|
} finally { await page.close(); }
|
|
55
58
|
});
|
|
56
59
|
|
|
@@ -63,7 +66,7 @@ async function exportedWorkbook(url) {
|
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
test('the workbook export: rows grouped by system, SYSTEM / MODULE in A, 8 tasks, familiarity level 1', { skip }, async () => {
|
|
66
|
-
const files = readZip(await exportedWorkbook(pages()('estimate
|
|
69
|
+
const files = readZip(await exportedWorkbook(pages()('estimate.html')));
|
|
67
70
|
const sheet = (n) => files.get(`xl/worksheets/${n}`).toString('utf8');
|
|
68
71
|
const inline = (ref, text) => new RegExp(`<c r="${ref}"[^>]*t="inlineStr"><is><t>${text}</t>`);
|
|
69
72
|
assert.match(sheet('sheet2.xml'), inline('A7', 'Warehouse operations'));
|
|
@@ -71,14 +74,24 @@ test('the workbook export: rows grouped by system, SYSTEM / MODULE in A, 8 tasks
|
|
|
71
74
|
assert.match(sheet('sheet2.xml'), inline('B8', 'Short-pack alert'));
|
|
72
75
|
assert.match(sheet('sheet2.xml'), inline('A9', 'Orders & invoicing'));
|
|
73
76
|
assert.match(sheet('sheet2.xml'), /<c r="H7"[^>]*><f[^>]*>[^<]*SUMPRODUCT/); // the export keeps a live formula
|
|
74
|
-
|
|
77
|
+
// 40 wired rows (7-46): the subtotal sums all of them and no overflow note is written.
|
|
78
|
+
assert.match(sheet('sheet2.xml'), /<c r="J47"[^>]*><f[^>]*>SUM\(\$J\$7:\$J\$46\)/);
|
|
79
|
+
assert.doesNotMatch(sheet('sheet2.xml'), /<c r="A48"/);
|
|
80
|
+
['MILESTONE', 'CONTAINER', 'WHY THIS TIER', 'FEATURE GROUP', 'SUB-FEATURE', 'WHAT IT COVERS'].forEach((h, i) => assert.match(sheet('sheet2.xml'), inline(`${'OPQRST'[i]}6`, h)));
|
|
81
|
+
assert.match(sheet('sheet2.xml'), inline('T7', 'Moves an order through each stage, with task views per role'));
|
|
82
|
+
// T is widened on its own; the template's O-AA band is split around it, never overlapped.
|
|
83
|
+
assert.match(sheet('sheet2.xml'), /<col [^>]*max="20" min="20"[^>]*width="70"/);
|
|
84
|
+
assert.match(sheet('sheet2.xml'), /<col [^>]*max="19" min="15"/);
|
|
85
|
+
assert.match(sheet('sheet2.xml'), /<col [^>]*max="27" min="21"/);
|
|
86
|
+
assert.match(sheet('sheet2.xml'), inline('R7', 'M1'));
|
|
87
|
+
assert.match(sheet('sheet2.xml'), inline('S8', 'M1.2'));
|
|
75
88
|
assert.equal((sheet('sheet6.xml').match(/<row r=/g) ?? []).length, 9); // header + 8 tasks
|
|
76
89
|
assert.match(sheet('sheet5.xml'), /<c r="C12"[^>]*><v>1<\/v>/); // stackFamiliarity
|
|
77
90
|
assert.match(files.get('xl/workbook.xml').toString('utf8'), /Task Breakdown[\s\S]*Score Rationale|Score Rationale[\s\S]*Task Breakdown/);
|
|
78
91
|
});
|
|
79
92
|
|
|
80
93
|
test('download xlsx starts the download, then reminds to review the Project Roll-up tab', { skip }, async () => {
|
|
81
|
-
const page = await openPage(pages()('estimate
|
|
94
|
+
const page = await openPage(pages()('estimate.html'));
|
|
82
95
|
try {
|
|
83
96
|
await settle();
|
|
84
97
|
await page.eval('window.__downloadXlsx = () => { window.__dl = 1; }');
|
|
@@ -105,7 +118,7 @@ function rollupOf(files) {
|
|
|
105
118
|
}
|
|
106
119
|
|
|
107
120
|
test('the workbook carries the project name, assumptions and exclusions', { skip }, async () => {
|
|
108
|
-
const files = readZip(await exportedWorkbook(pages()('estimate
|
|
121
|
+
const files = readZip(await exportedWorkbook(pages()('estimate.html')));
|
|
109
122
|
assert.match(files.get('xl/worksheets/sheet2.xml').toString('utf8'), /<c r="C3"[^>]*t="inlineStr"><is><t>sin-kowa-mini<\/t>/);
|
|
110
123
|
const { xml, cell, shared } = rollupOf(files);
|
|
111
124
|
assert.equal(cell('B61'), '<is><t>InvoiceNow is a data model only, with no live connection</t></is>');
|
|
@@ -120,7 +133,7 @@ test('the workbook carries the project name, assumptions and exclusions', { skip
|
|
|
120
133
|
|
|
121
134
|
test('more exclusions than slots: the last slot holds the rest', { skip }, async () => {
|
|
122
135
|
const more = (i) => { i.exclusions = Array.from({ length: 9 }, (_, n) => `extra ${n + 1}`); };
|
|
123
|
-
const { cell } = rollupOf(readZip(await exportedWorkbook(pages(more)('estimate
|
|
136
|
+
const { cell } = rollupOf(readZip(await exportedWorkbook(pages(more)('estimate.html'))));
|
|
124
137
|
assert.equal(cell('B77'), '<is><t>extra 7</t></is>');
|
|
125
138
|
assert.equal(cell('B78'), '<is><t>Also: extra 8; extra 9</t></is>');
|
|
126
139
|
});
|
|
@@ -139,7 +152,7 @@ function recalculated(bytes) {
|
|
|
139
152
|
test('recalculated in LibreOffice, the Roll-up range to present equals estimation.json', { skip: skip || noOffice }, async () => {
|
|
140
153
|
const dir = staged();
|
|
141
154
|
execFileSync('node', [renderer, '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', join(dir, 'dist')]);
|
|
142
|
-
const rollup = recalculated(await exportedWorkbook(pathToFileURL(join(dir, 'dist', 'estimate
|
|
155
|
+
const rollup = recalculated(await exportedWorkbook(pathToFileURL(join(dir, 'dist', 'estimate.html')).href))
|
|
143
156
|
.get('xl/worksheets/sheet5.xml').toString('utf8');
|
|
144
157
|
const value = (ref) => Number(new RegExp(`<c r="${ref}"[^>]*>(?:<f[^>]*>[^<]*</f>)?<v>([^<]*)</v>`).exec(rollup)?.[1]);
|
|
145
158
|
const { presentLow, presentHigh } = JSON.parse(readFileSync(join(dir, 'estimation.json'), 'utf8')).computed.price;
|
|
@@ -176,15 +189,6 @@ test('a system with no workflow: Workflow-based page draws it, the card says so,
|
|
|
176
189
|
} finally { await page.close(); }
|
|
177
190
|
});
|
|
178
191
|
|
|
179
|
-
test('a system with no workflow: Component-based page renders clean', { skip }, async () => {
|
|
180
|
-
const page = await openPage(pages(null, noFlowsAt)('estimate-components.html'));
|
|
181
|
-
try {
|
|
182
|
-
await settle();
|
|
183
|
-
assert.deepEqual(page.errors, []);
|
|
184
|
-
assert.match(await text(page, 'tr[data-cap="FEAT-003"]'), /off-step/);
|
|
185
|
-
} finally { await page.close(); }
|
|
186
|
-
});
|
|
187
|
-
|
|
188
192
|
test('a system with no workflow gets its card and its features, no diagram, no errors', { skip }, async () => {
|
|
189
193
|
const noWorkflow = (dir) => {
|
|
190
194
|
const file = join(dir, 'requirements.json');
|
|
@@ -8,7 +8,7 @@ import { staged, script } from './stage.mjs';
|
|
|
8
8
|
const pageOf = (html) => JSON.parse(/<script type="application\/json" id="page-data">([\s\S]*?)<\/script>/.exec(html)[1]);
|
|
9
9
|
const render = (dir, out = join(dir, 'dist')) => spawnSync('node', [script('render'), '--inputs', join(dir, 'estimation-inputs.json'), '--json', join(dir, 'estimation.json'), '--out', out]);
|
|
10
10
|
|
|
11
|
-
test('render writes
|
|
11
|
+
test('render writes one estimate page and warns when the viewer is missing', () => {
|
|
12
12
|
const dir = staged();
|
|
13
13
|
const r = render(dir);
|
|
14
14
|
assert.equal(r.status, 0, String(r.stderr));
|
|
@@ -19,10 +19,10 @@ test('render writes both pages and warns when the viewer is missing', () => {
|
|
|
19
19
|
assert.equal(p.data.systems.length, 2);
|
|
20
20
|
assert.deepEqual(p.register.exclusions, ['last-mile delivery tracking', 'Hosting and third-party subscription fees']);
|
|
21
21
|
assert.equal(p.view.price.presentLow, JSON.parse(readFileSync(join(dir, 'estimation.json'), 'utf8')).computed.price.presentLow);
|
|
22
|
-
|
|
23
|
-
assert.
|
|
24
|
-
assert.
|
|
25
|
-
assert.equal(
|
|
22
|
+
assert.deepEqual(p.tasks['api.billing'][0], ['Three-way match', 1, 2.17, 4, 'UNCALIBRATED', '', ['FEAT-005'], '', 'billing-match']);
|
|
23
|
+
assert.equal(p.xlsx.rows.length, 5);
|
|
24
|
+
assert.deepEqual(p.idle.map((c) => c.name), ['Operations Database']);
|
|
25
|
+
assert.equal(existsSync(join(dir, 'dist', 'estimate-components.html')), false, 'the Component-based page is gone');
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
test('no warning when the architecture viewer sits in dist/', () => {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// The score review's Effort side: the component tasks' hours per feature, live
|
|
2
|
+
// with the engineer's link edits, and a note where a moved score may change them.
|
|
3
|
+
import { test } from 'node:test';
|
|
4
|
+
import assert from 'node:assert/strict';
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
import { loadPair } from '../lib/requirements.mjs';
|
|
8
|
+
import { readFeedback } from '../lib/score-diff.mjs';
|
|
9
|
+
import { loadGuide } from '../../../shared/lib/scoring.mjs';
|
|
10
|
+
import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
|
|
11
|
+
import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
|
|
12
|
+
import { reviewPage } from './stage.mjs';
|
|
13
|
+
|
|
14
|
+
const fx = (n) => fileURLToPath(new URL(`./fixtures/${n}`, import.meta.url));
|
|
15
|
+
const asset = (n) => readFileSync(fileURLToPath(new URL(`../../assets/${n}`, import.meta.url)), 'utf8');
|
|
16
|
+
const skip = !findChrome();
|
|
17
|
+
const settle = () => new Promise((r) => setTimeout(r, 1500));
|
|
18
|
+
const calibrated = (i) => { i.measurementsPath = fx('measurements.jsonl'); };
|
|
19
|
+
const pageData = (url) => JSON.parse(readFileSync(new URL(url), 'utf8').match(/id="page-data">([\s\S]*?)<\/script>/)[1]);
|
|
20
|
+
|
|
21
|
+
test('readFeedback lists the features whose Tech, Size or Uncertainty moved as tasksToReview', () => {
|
|
22
|
+
const { inputs } = loadPair(fx('inputs-pass.json'));
|
|
23
|
+
const fb = JSON.parse(readFileSync(fx('feedback.json'), 'utf8')); // moves FEAT-002 risk only
|
|
24
|
+
assert.deepEqual(readFeedback({ inputs, feedback: fb, guide: loadGuide() }).tasksToReview, []);
|
|
25
|
+
const f1 = fb.features.find((f) => f.id === 'FEAT-001');
|
|
26
|
+
f1.scores.size = 5;
|
|
27
|
+
f1.scores.deps = 4; // deps alone would not count
|
|
28
|
+
assert.deepEqual(readFeedback({ inputs, feedback: fb, guide: loadGuide() }).tasksToReview, ['FEAT-001']);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test('--write carries each component task with its hours and features; no tasks, no hours', () => {
|
|
32
|
+
const rows = pageData(reviewPage(calibrated)).tasks['api.stage'];
|
|
33
|
+
assert.equal(rows.length, 2);
|
|
34
|
+
const [name, low, e, high, conf, , features] = rows[0];
|
|
35
|
+
assert.equal(name, 'Stage transitions with audit');
|
|
36
|
+
assert.ok(low <= e && e <= high && e > 0, `${low} ${e} ${high}`);
|
|
37
|
+
assert.equal(typeof conf, 'string');
|
|
38
|
+
assert.deepEqual(features, ['FEAT-001', 'FEAT-002']);
|
|
39
|
+
const bare = (i) => { calibrated(i); for (const c of i.components) delete c.tasks; };
|
|
40
|
+
assert.deepEqual(pageData(reviewPage(bare)).tasks, {});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const hrs = (page, id) => page.eval(`Number(document.querySelector('[data-hrs="${id}"]').textContent.replace(/[,h]/g, ''))`);
|
|
44
|
+
const click = (page, sel) => page.eval(`document.querySelector('${sel}').click()`);
|
|
45
|
+
const stale = (page, id) => page.eval(`document.querySelector('[data-stale="${id}"]').textContent`);
|
|
46
|
+
|
|
47
|
+
test('hours per feature follow link edits; a moved Size flags the hours', { skip }, async () => {
|
|
48
|
+
const page = await openPage(reviewPage(calibrated));
|
|
49
|
+
try {
|
|
50
|
+
await settle();
|
|
51
|
+
const before = await hrs(page, 'FEAT-001');
|
|
52
|
+
assert.ok(before > 0);
|
|
53
|
+
await click(page, '[data-unlink="office:FEAT-001"]');
|
|
54
|
+
assert.ok(await hrs(page, 'FEAT-001') < before, 'unlinking drops that component\'s hours');
|
|
55
|
+
assert.equal(await stale(page, 'FEAT-001'), '');
|
|
56
|
+
await click(page, '[data-fk="FEAT-001:size"] .pick button[data-n="5"]');
|
|
57
|
+
assert.match(await stale(page, 'FEAT-001'), /hours may need another look/);
|
|
58
|
+
await click(page, '[data-fk="FEAT-002:risk"] .pick button[data-n="5"]');
|
|
59
|
+
assert.equal(await stale(page, 'FEAT-002'), '', 'risk does not change the work');
|
|
60
|
+
assert.deepEqual(page.errors, []);
|
|
61
|
+
} finally { await page.close(); }
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
test('a hovered feature is lit with a solid tint and a bar', () => {
|
|
65
|
+
for (const n of ['score-review.html']) {
|
|
66
|
+
assert.match(asset(n), /\.feat\.hl \{ background:var\(--hl-bg\); box-shadow:inset 4px 0 0 var\(--hi-line\)/, n);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const BOX = `document.querySelector('[data-lpick="FEAT-001"]')`;
|
|
71
|
+
test('a component newly linked to a feature reads "no tasks for this feature yet"', { skip }, async () => {
|
|
72
|
+
const page = await openPage(reviewPage(calibrated));
|
|
73
|
+
try {
|
|
74
|
+
await settle();
|
|
75
|
+
await page.eval(`(() => { const i = ${BOX}.querySelector('input'); i.value = 'BILL'; i.dispatchEvent(new Event('input', { bubbles: true })); })()`);
|
|
76
|
+
await click(page, '[data-lpick="FEAT-001"] [data-lpick-id="api.billing"]');
|
|
77
|
+
const row = await page.eval(`document.querySelector('[data-builtby="FEAT-001"] [data-comp-chip="api.billing"] .chrs').textContent`);
|
|
78
|
+
assert.equal(row, '0h · no tasks for this feature yet');
|
|
79
|
+
assert.deepEqual(page.errors, []);
|
|
80
|
+
} finally { await page.close(); }
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
test('--write refuses a task it cannot price, with the finding instead of a crash', () => {
|
|
84
|
+
const noSeed = (i) => { calibrated(i); delete i.components.find((c) => c.id === 'api.stage').tasks[0].seedMinutes; };
|
|
85
|
+
assert.throws(() => reviewPage(noSeed), (e) => /task stage-engine: seedMinutes o, m, p must be positive numbers/.test(e.stderr) && !/TypeError/.test(e.stderr));
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// A task shared by k features shows this feature's share in Expected, so the
|
|
89
|
+
// row agrees with the "Nh for this feature" heading above it.
|
|
90
|
+
test('a shared task row shows this feature\'s share, with the whole task in the note', { skip }, async () => {
|
|
91
|
+
const page = await openPage(reviewPage(calibrated));
|
|
92
|
+
try {
|
|
93
|
+
await settle();
|
|
94
|
+
const r = JSON.parse(await page.eval(`(() => {
|
|
95
|
+
const t = JSON.parse(document.getElementById('page-data').textContent).tasks.office.find((x) => x[6].length === 3);
|
|
96
|
+
const row = [...document.querySelectorAll('[data-builtby="FEAT-001"] details.tasks tr')].find((tr) => tr.textContent.includes(t[0]));
|
|
97
|
+
return JSON.stringify({ whole: t[2], cell: row.querySelector('.share').textContent, note: row.querySelector('.task').textContent });
|
|
98
|
+
})()`));
|
|
99
|
+
const share = Math.round((r.whole / 3) * 10) / 10;
|
|
100
|
+
assert.equal(r.cell, `${share}h`);
|
|
101
|
+
assert.match(r.note, new RegExp(`1/3 of its ${Math.round(r.whole * 10) / 10}h counted here`));
|
|
102
|
+
assert.deepEqual(page.errors, []);
|
|
103
|
+
} finally { await page.close(); }
|
|
104
|
+
});
|