@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
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// Builds assets/estimate-components.html (the Component-based page) from the
|
|
2
|
-
// score-review template: the same page read-only (FINAL), plus tasks and
|
|
3
|
-
// hours, the price sections and the workbook export — what the mockup's
|
|
4
|
-
// build-score.py does for estimate-feature-mockup.html. Every change is a
|
|
5
|
-
// rep(); build-pages.test.mjs pins the output. Usage: node build-components-template.mjs [--out <file>]
|
|
6
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
|
7
|
-
import { fileURLToPath } from 'node:url';
|
|
8
|
-
|
|
9
|
-
const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
|
|
10
|
-
const M = at('../../../../../../docs/mockups/estimate-workflow-mode/');
|
|
11
|
-
const outFlag = process.argv.indexOf('--out');
|
|
12
|
-
const OUT = outFlag > 0 ? process.argv[outFlag + 1] : at('../assets/estimate-components.html');
|
|
13
|
-
let html = readFileSync(at('../assets/score-review.html'), 'utf8');
|
|
14
|
-
const py = readFileSync(`${M}build-score.py`, 'utf8');
|
|
15
|
-
const est = readFileSync(`${M}estimate.src.html`, 'utf8');
|
|
16
|
-
|
|
17
|
-
// `to` may be a function; a string is wrapped so `$'` in inserted scripts is never expanded.
|
|
18
|
-
function rep(from, to) {
|
|
19
|
-
const next = html.replace(from, typeof to === 'function' ? to : () => to);
|
|
20
|
-
if (next === html) throw new Error(`components template builder: nothing matched ${String(from).slice(0, 60)}`);
|
|
21
|
-
html = next;
|
|
22
|
-
}
|
|
23
|
-
function between(src, start, end) {
|
|
24
|
-
const a = src.indexOf(start);
|
|
25
|
-
const b = src.indexOf(end, a + start.length);
|
|
26
|
-
if (a < 0 || b < 0) throw new Error(`components template builder: no ${start}`);
|
|
27
|
-
return src.slice(a + start.length, b);
|
|
28
|
-
}
|
|
29
|
-
// The final page's CSS, exactly as build-score.py assembles FCSS.
|
|
30
|
-
const cut = (a, b) => est.slice(est.indexOf(a), est.indexOf(b));
|
|
31
|
-
const fcss = between(py, "FCSS = '''", "'''") + cut('/* summary */', '/* systems */')
|
|
32
|
-
+ cut('/* roadmap */', '/* internal-only').replace('repeat(3,minmax(0,1fr))', 'repeat(4,minmax(0,1fr))')
|
|
33
|
-
+ between(py, "repeat(4,minmax(0,1fr))') + '''", "'''");
|
|
34
|
-
|
|
35
|
-
rep('</style>', `${fcss}</style>`);
|
|
36
|
-
rep('<title><!-- slot:TITLE --> — score review</title>', '<title><!-- slot:TITLE --> — estimate (component-based)</title>');
|
|
37
|
-
rep('<h1><!-- slot:TITLE --> — score review', '<h1><!-- slot:TITLE --> — estimate');
|
|
38
|
-
rep(/<p class="sub">After the PO's scope review · <span id="subcount"><\/span>[^<]*<\/p>/,
|
|
39
|
-
'<p class="sub">Component-based view · <span id="subcount"></span> · scores signed off in the score review</p>');
|
|
40
|
-
rep(' <button class="btn" id="theme" type="button">Dark</button>\n </div>',
|
|
41
|
-
' <div class="head-ctl"><nav class="view pages" aria-label="Estimate view"><a href="estimate.html">Workflow-based</a><a href="estimate-components.html" aria-current="page">Component-based</a></nav>\n <button class="btn" id="theme" type="button">Dark</button></div>\n </div>');
|
|
42
|
-
rep(/<p class="lead">[\s\S]*?<\/p>/, `<p class="lead">The engineer's view of the estimate: the signed-off score review, read-only, with the price on top. <b>Scoring</b> shows each feature's scores and price; <b>Effort</b> shows the components behind it, with their hours and tasks. The client receives the proposal.</p>
|
|
43
|
-
<section class="card" id="summary"><h2>Summary</h2><p class="sec-lead">The price for this scope, from the features below.</p>
|
|
44
|
-
<div class="headline" id="headline"></div><div class="buildup" id="buildup"></div>
|
|
45
|
-
<p><button class="btn" id="xlsx" type="button" title="every feature as the v2 estimator workbook">download xlsx</button> <span class="quiet">Adjust stack familiarity or any score in the workbook; it reprices itself.</span></p></section>`);
|
|
46
|
-
rep(' <details class="guide">', ` <section class="card" id="roadmap"><h2>Milestones</h2><p class="sec-lead">Each milestone lists the client's features it finishes. Its range is its share of the build applied to the project range.</p><div class="ms" id="ms"></div></section>
|
|
47
|
-
<section class="card" id="register"><h2>Assumptions & exclusions</h2><p class="sec-lead">Shared word for word with the proposal.</p>
|
|
48
|
-
<div class="twocol"><div><h3>Assumptions</h3><ul id="assume"></ul></div><div><h3>Exclusions</h3><ul id="exclude"></ul></div></div></section>
|
|
49
|
-
<section class="card" id="method"><h2>Method</h2><p class="sec-lead">Estimator v2: five weighted scores per feature price it on continuous bands; the project roll-up adds the work feature scoring never captures.</p>
|
|
50
|
-
<div class="twocol"><div><h3>Project context factors</h3><table class="kv" id="ctx"></table></div><div><h3>Work outside the features</h3><table class="kv" id="ovh"></table></div></div>
|
|
51
|
-
<div class="twocol"><div><h3>Contingency</h3><table class="kv" id="cont"></table></div><div><h3>Range</h3><table class="kv" id="rng"></table></div></div>
|
|
52
|
-
<h3>Cross-check: the engineering work behind the price</h3><p class="sec-lead">If the implied rate sits far from what the team costs, the scores or the task list need another look.</p><table class="kv" id="xcheck" style="max-width:40rem"></table></section>
|
|
53
|
-
<details class="guide">`);
|
|
54
|
-
rep(/<span class="howto-page">You score the <b>features<\/b>[\s\S]*?<\/span>/,
|
|
55
|
-
'<span class="howto-page"><b>Scoring</b> shows each feature's scores and price; <b>Effort</b> the components behind it, with tasks and hours. Containers and components are the ones in the architecture document: <a class="archlink" href="index.html#panel-containers" target="_blank" rel="noopener">C2 containers ↗</a></span>');
|
|
56
|
-
rep('const FINAL = false;', 'const FINAL = true;');
|
|
57
|
-
rep('const TASKS = {};', 'const TASKS = PAGE.tasks;');
|
|
58
|
-
// Tasks and hours per feature: a card lists the tasks that serve it.
|
|
59
|
-
rep(/\/\/ ---- components: tasks and hours \(Component-based page only\) ----\n[\s\S]*?<\/table><\/details>`;\n\}\n/, readFileSync(at('./template/feature-tasks.js'), 'utf8'));
|
|
60
|
-
rep('<span class="chrs">${hoursOf(bid)}h</span>', '<span class="chrs">${hoursFor(bid, capId)}h</span>');
|
|
61
|
-
rep('by.reduce((n, b) => n + hoursOf(b), 0)', 'by.reduce((n, b) => n + hoursFor(b, capId), 0)');
|
|
62
|
-
rep('tasksHtml(compById[b])', 'tasksHtml(compById[b], capId)');
|
|
63
|
-
rep("${[...hrs].reduce((n, b) => n + hoursOf(b), 0).toLocaleString('en-US')}h</b><span>${hrs.size} components, each counted once</span>",
|
|
64
|
-
"${sysHours(s.features.map((c) => c.id)).toLocaleString('en-US')}h</b><span>${hrs.size} components, each task counted once</span>");
|
|
65
|
-
rep(/draw\(\)\.then\(\(\) => \{ if \(FINAL\) setTimeout\(pinFromHash, 150\); \}\);\n/, (m) => `${m}${readFileSync(at('./template/view.js'), 'utf8')}
|
|
66
|
-
viewSummary(PAGE.view); viewRoadmap(PAGE); viewMethod(PAGE.view);
|
|
67
|
-
const XLSX_SOURCE = {
|
|
68
|
-
rows: () => PAGE.xlsx.rows, container: (row) => row.container, levels: () => PAGE.xlsx.levels,
|
|
69
|
-
template: () => PAGE.xlsx.template, system: (row) => row.system, // the SYSTEM / MODULE workbook (estimator-system.xlsx)
|
|
70
|
-
register: () => PAGE.xlsx.register, // project name, assumptions, exclusions
|
|
71
|
-
};
|
|
72
|
-
{ // the shared workbook export, block-scoped so its helpers never collide with this page's
|
|
73
|
-
<!-- slot:XLSX -->
|
|
74
|
-
}
|
|
75
|
-
$('#xlsx').onclick = () => { window.__downloadXlsx(); $('#xlsx-remind').showModal(); }; // the download runs on; the reminder shows meanwhile
|
|
76
|
-
`);
|
|
77
|
-
|
|
78
|
-
// After the download: the Roll-up tab holds what the scores never price.
|
|
79
|
-
rep('<dialog id="dlg">', `<dialog id="xlsx-remind" aria-labelledby="xlsx-remind-title" style="max-width:32rem"><p><b id="xlsx-remind-title">Review the Project Roll-up tab</b></p>
|
|
80
|
-
<p>The workbook's last tab, Project Roll-up, sets the project context levels, the work outside features (foundation, QA, DevOps, PM…) and contingency. These change the final cost. Review and update them before you use the workbook's price.</p>
|
|
81
|
-
<div class="dlg-foot"><form method="dialog"><button class="btn primary">Got it</button></form></div></dialog>
|
|
82
|
-
<dialog id="dlg">`);
|
|
83
|
-
|
|
84
|
-
writeFileSync(OUT, html);
|
|
85
|
-
console.log(OUT);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Builds assets/estimate-template.html (the Workflow-based page) from the
|
|
2
|
-
// approved mockup. Like build-template.mjs, every change to the mockup is a
|
|
3
|
-
// rep() below; build-pages.test.mjs pins the output to the committed asset.
|
|
4
|
-
// Usage: node build-workflow-template.mjs [--out <file>]
|
|
5
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
|
|
8
|
-
const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
|
|
9
|
-
const M = at('../../../../../../docs/mockups/estimate-workflow-mode/');
|
|
10
|
-
const outFlag = process.argv.indexOf('--out');
|
|
11
|
-
const OUT = outFlag > 0 ? process.argv[outFlag + 1] : at('../assets/estimate-template.html');
|
|
12
|
-
let html = readFileSync(`${M}estimate.src.html`, 'utf8');
|
|
13
|
-
|
|
14
|
-
// A function replacement: the inserted scripts contain `$'`, which a string
|
|
15
|
-
// replacement would expand.
|
|
16
|
-
function rep(from, to) {
|
|
17
|
-
const next = html.replace(from, () => to);
|
|
18
|
-
if (next === html) throw new Error(`workflow template builder: nothing matched ${String(from).slice(0, 60)}`);
|
|
19
|
-
html = next;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
rep('<title>Sin Kowa — estimate</title>', '<title><!-- slot:TITLE --> — estimate</title>');
|
|
23
|
-
rep('</style>', `${readFileSync(`${M}reading.css`, 'utf8')}</style>`); // as build-workflow.py
|
|
24
|
-
rep('<body class="client">', '<body>'); // internal page (spec 3 E8): the client gets the proposal
|
|
25
|
-
rep(/<span class="mock">[^<]*<\/span>\s*\n/, '');
|
|
26
|
-
rep('<h1>Sin Kowa Digital Transformation — estimate', '<h1><!-- slot:TITLE --> — estimate');
|
|
27
|
-
rep(/<p class="sub">[^<]*<\/p>/, '<p class="sub" id="subline"></p>');
|
|
28
|
-
rep('<a href="estimate-mockup.html" aria-current="page">', '<a href="estimate.html" aria-current="page">');
|
|
29
|
-
rep('<a href="estimate-feature-mockup.html">Component-based</a>', '<a href="estimate-components.html">Component-based</a>');
|
|
30
|
-
rep('`estimate-feature-mockup.html#step=', '`estimate-components.html#step=');
|
|
31
|
-
rep('What Sin Kowa can use at the end of each milestone.', 'What the client can use at the end of each milestone.');
|
|
32
|
-
rep('<script type="module">\n/*DATA*/\n/*ENG*/\n/*ROLLUP*/', [
|
|
33
|
-
'<script type="application/json" id="page-data"><!-- slot:DATA --></script>',
|
|
34
|
-
'<script type="module">',
|
|
35
|
-
readFileSync(at('./template/prelude.js'), 'utf8'),
|
|
36
|
-
readFileSync(at('./template/view.js'), 'utf8'),
|
|
37
|
-
].join('\n'));
|
|
38
|
-
rep('renderSummary(); renderSystems(); renderBreakdown(); renderRoadmap(); renderMethod();', [
|
|
39
|
-
"$('#subline').textContent = `${DATA.systems.length} systems · ${DATA.systems.reduce((n, s) => n + s.features.length, 0)} features · scope reviewed by the PO, scores reviewed internally · prices in ${PAGE.currency}`;",
|
|
40
|
-
'viewSummary(PAGE.view); renderSystems(); renderBreakdown(); viewRoadmap(PAGE); viewMethod(PAGE.view);',
|
|
41
|
-
].join('\n'));
|
|
42
|
-
|
|
43
|
-
rep('diagrams need a connection in this mockup', 'diagrams need a connection');
|
|
44
|
-
rep('if (id) return { hit: fromFeat(id)', 'if (id && byId[id]) return { hit: fromFeat(id)'); // a milestone feature in no system has no diagram steps
|
|
45
|
-
rep('byId[id].sys.id === c.dataset.sys', 'byId[id]?.sys.id === c.dataset.sys');
|
|
46
|
-
// A system may have no workflow (BA 0.4.0): s.main is null, and nothing sets `missing`.
|
|
47
|
-
rep("${s.main.missing ? 'workflow suggested by us, confirmed by PO' : 'workflow from the PO\\'s document'}", "${s.main ? 'workflow from the PO\\'s document' : 'no workflow in the PO\\'s document'}");
|
|
48
|
-
rep('Each system has its workflows; each feature sits on the workflow steps it serves.', "A system has the workflows the PO's document draws; each feature sits on the steps it serves, or on none when its system has no workflow.");
|
|
49
|
-
|
|
50
|
-
writeFileSync(OUT, html);
|
|
51
|
-
console.log(OUT);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Fills the two estimate templates. Both pages are internal (spec 3 E2): the
|
|
2
|
-
// client gets the proposal. Numbers come from estimation.json through
|
|
3
|
-
// page-view.mjs; the templates only format them.
|
|
4
|
-
import { embed } from '../../../../analyze-requirements/scripts/lib/embed.mjs';
|
|
5
|
-
import { inlineModule, extractExports } from '../../../shared/lib/inline.mjs';
|
|
6
|
-
import { pageData, systemData, MATH_EXPORTS } from './score-html.mjs';
|
|
7
|
-
import { priceView, milestoneView, registerView } from './page-view.mjs';
|
|
8
|
-
import { xlsxRows } from './xlsx-rows.mjs';
|
|
9
|
-
|
|
10
|
-
const json = (v) => JSON.stringify(v).replaceAll('</script', '<\\/script');
|
|
11
|
-
|
|
12
|
-
function common(est, req) {
|
|
13
|
-
return { currency: est.inputs.currency ?? 'USD', view: priceView(est), milestones: milestoneView(est), register: registerView(est, req) };
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// The Effort side's task rows: [name, low, expected, high hours, confidence, assumptions, features].
|
|
17
|
-
export function taskTable(est) {
|
|
18
|
-
const out = {};
|
|
19
|
-
for (const c of est.inputs.components) {
|
|
20
|
-
const done = est.computed.components[c.id]?.tasks ?? {};
|
|
21
|
-
if (c.tasks?.length) out[c.id] = c.tasks.map((t) => [t.name, done[t.id].low, done[t.id].e, done[t.id].high, done[t.id].confidence, (t.assumptions ?? []).join('; '), t.features]);
|
|
22
|
-
}
|
|
23
|
-
return out;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function workflowHtml({ est, req, template }) {
|
|
27
|
-
const data = { project: est.inputs.project, mapLabel: req.mapLabel, systems: req.systems.map((s) => systemData(s, req)) };
|
|
28
|
-
return embed({ template, slots: { TITLE: est.inputs.project, DATA: json({ ...common(est, req), data }) } });
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function componentsHtml({ est, req, assets }) {
|
|
32
|
-
const page = {
|
|
33
|
-
...pageData({ inputs: est.inputs, req, guide: assets.guide }), ...common(est, req),
|
|
34
|
-
tasks: taskTable(est),
|
|
35
|
-
xlsx: {
|
|
36
|
-
rows: xlsxRows(est, req), levels: est.inputs.contextLevels, template: assets.xlsxTemplate,
|
|
37
|
-
register: { project: est.inputs.project, ...registerView(est, req) },
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
return embed({
|
|
41
|
-
template: assets.template,
|
|
42
|
-
slots: { TITLE: est.inputs.project, DATA: json(page), MATH: inlineModule(extractExports(assets.mathSrc, MATH_EXPORTS)), XLSX: assets.xlsxSrc },
|
|
43
|
-
});
|
|
44
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Feeds the shared v2 workbook export (shared/assets/xlsx-export.js) rows in
|
|
2
|
-
// the shape the classic page passes it: one per feature, its tasks under it.
|
|
3
|
-
// Workflow tasks live on components, so each task goes under the first feature
|
|
4
|
-
// it serves — listed once, never dropped. Rows come grouped by system, for the
|
|
5
|
-
// workbook's SYSTEM / MODULE column.
|
|
6
|
-
import { mainBuilder } from './rollup.mjs';
|
|
7
|
-
import { featureProvenance } from './requirements.mjs';
|
|
8
|
-
|
|
9
|
-
// The pages' order: systems as requirements.json lists them, each system's
|
|
10
|
-
// features in its own order, then any feature no system claims.
|
|
11
|
-
function systemOrder(inputs, req) {
|
|
12
|
-
const placed = req.systems.flatMap((s) => (s.features ?? []).map((id) => [id, s.name]));
|
|
13
|
-
const ids = new Set(inputs.features.map((f) => f.id));
|
|
14
|
-
const loose = inputs.features.filter((f) => !placed.some(([id]) => id === f.id)).map((f) => [f.id, '']);
|
|
15
|
-
const seen = new Set(); // a feature two systems list is priced once, under the first
|
|
16
|
-
return [...placed.filter(([id]) => ids.has(id) && !seen.has(id) && seen.add(id)), ...loose];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function containerName(c, components) {
|
|
20
|
-
if (!c) return '';
|
|
21
|
-
return (c.parent && components.find((x) => x.id === c.parent))?.name ?? c.name;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function taskRow(t, done) {
|
|
25
|
-
return {
|
|
26
|
-
name: t.name, category: t.shape, o: done[t.id].low, m: done[t.id].e, p: done[t.id].high,
|
|
27
|
-
confidence: done[t.id].confidence, assumptions: t.assumptions ?? [],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Feature id → its task rows, in roster order then task order.
|
|
32
|
-
function taskOwners(inputs, computed) {
|
|
33
|
-
const owners = {};
|
|
34
|
-
for (const c of inputs.components) {
|
|
35
|
-
for (const t of c.tasks ?? []) {
|
|
36
|
-
const first = inputs.features.find((f) => t.features.includes(f.id));
|
|
37
|
-
(owners[first.id] ??= []).push(taskRow(t, computed.components[c.id].tasks));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return owners;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function xlsxRows(est, req) {
|
|
44
|
-
const { inputs, computed } = est;
|
|
45
|
-
const owners = taskOwners(inputs, computed);
|
|
46
|
-
const byId = Object.fromEntries(inputs.features.map((f) => [f.id, f]));
|
|
47
|
-
return systemOrder(inputs, req).map(([id, system]) => [byId[id], system]).map(([f, system]) => ({
|
|
48
|
-
id: f.id, system, name: req.features[f.id].name, scores: f.scores, scoreNote: f.scoreNote ?? '',
|
|
49
|
-
scoreProvenance: f.scoreProvenance, provenance: featureProvenance(req.features[f.id]),
|
|
50
|
-
milestone: computed.features[f.id].milestone ?? '', container: containerName(mainBuilder(f.id, inputs.components), inputs.components),
|
|
51
|
-
tasks: owners[f.id] ?? [],
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// Score review round-trip for workflow mode. --write renders the review page
|
|
2
|
-
// from inputs + the BA package; --read folds the page's feedback JSON back
|
|
3
|
-
// into scores, component links and asks. It scores nothing itself.
|
|
4
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
|
5
|
-
import { loadPair } from './lib/requirements.mjs';
|
|
6
|
-
import { toHtml } from './lib/score-html.mjs';
|
|
7
|
-
import { readFeedback } from './lib/score-diff.mjs';
|
|
8
|
-
import { loadGuide } from '../../shared/lib/scoring.mjs';
|
|
9
|
-
|
|
10
|
-
const templatePath = new URL('../assets/score-review.html', import.meta.url).pathname;
|
|
11
|
-
const mathPath = new URL('../../shared/lib/pricing.mjs', import.meta.url).pathname;
|
|
12
|
-
|
|
13
|
-
function parseArgs(argv) {
|
|
14
|
-
const args = {};
|
|
15
|
-
for (let i = 0; i < argv.length; i += 1) {
|
|
16
|
-
if (argv[i].startsWith('--')) args[argv[i].slice(2)] = argv[++i];
|
|
17
|
-
}
|
|
18
|
-
return args;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function requirePair(path) {
|
|
22
|
-
const pair = loadPair(path);
|
|
23
|
-
if (!pair.req) { console.error('requirements: file not found (inputs.requirements must point at the BA package)'); process.exit(1); }
|
|
24
|
-
return pair;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function write(args) {
|
|
28
|
-
const { inputs, req } = requirePair(args.write);
|
|
29
|
-
const html = toHtml({ inputs, req, guide: loadGuide(), template: readFileSync(templatePath, 'utf8'), mathSrc: readFileSync(mathPath, 'utf8') });
|
|
30
|
-
writeFileSync(args.out, html);
|
|
31
|
-
console.log(args.out);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function read(args) {
|
|
35
|
-
const { inputs } = requirePair(args.inputs);
|
|
36
|
-
const feedback = JSON.parse(readFileSync(args.read, 'utf8'));
|
|
37
|
-
console.log(JSON.stringify(readFeedback({ inputs, feedback, guide: loadGuide() }), null, 2));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const args = parseArgs(process.argv.slice(2));
|
|
41
|
-
if (args.write && args.out) write(args);
|
|
42
|
-
else if (args.read && args.inputs) read(args);
|
|
43
|
-
else {
|
|
44
|
-
console.error('usage: score-review.mjs --write estimation-inputs.json --out review.html\n score-review.mjs --read feedback.json --inputs estimation-inputs.json');
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/feature-tasks.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// ---- components: tasks and hours, per feature (Component-based page only) ----
|
|
2
|
-
// TASKS[component]: [name, low, expected, high, confidence, assumptions, features].
|
|
3
|
-
// A task shared by k features counts 1/k of its hours on each card, so the
|
|
4
|
-
// cards add up to the project total.
|
|
5
|
-
const pert = (x) => x[2]; // expected hours from estimation.json (agentic baselines)
|
|
6
|
-
const hoursOf = (id) => Math.round((TASKS[id] || []).reduce((n, x) => n + pert(x), 0));
|
|
7
|
-
const tasksFor = (id, capId) => (TASKS[id] || []).filter((x) => x[6].includes(capId));
|
|
8
|
-
const hoursFor = (id, capId) => Math.round(tasksFor(id, capId).reduce((n, x) => n + pert(x) / x[6].length, 0));
|
|
9
|
-
const sysHours = (ids) => Math.round(COMPS.flatMap((b) => TASKS[b.id] || []).filter((x) => x[6].some((f) => ids.includes(f))).reduce((n, x) => n + pert(x), 0));
|
|
10
|
-
function sharedNote(x, capId) {
|
|
11
|
-
const others = x[6].filter((f) => f !== capId);
|
|
12
|
-
return others.length ? `<div class="dim">shared with ${others.map(esc).join(', ')} · 1/${x[6].length} of its hours counted here</div>` : '';
|
|
13
|
-
}
|
|
14
|
-
function taskRow(x, capId) {
|
|
15
|
-
const note = x[5] ? `<div class="dim">${esc(x[5])}</div>` : '';
|
|
16
|
-
return `<tr><td>${esc(x[0])}${note}${sharedNote(x, capId)}</td><td class="r">${x[1]} / ${x[2]} / ${x[3]}</td><td class="r"><b>${Math.round(pert(x))}h</b></td><td><span class="conf c-${x[4]}">${x[4]}</span></td></tr>`;
|
|
17
|
-
}
|
|
18
|
-
function tasksHtml(b, capId) {
|
|
19
|
-
const ts = tasksFor(b.id, capId);
|
|
20
|
-
return `<details class="tasks side-effort"><summary>${esc(b.name)} · ${ts.length} tasks · ${hoursFor(b.id, capId)}h for this feature</summary><table><tr><th>Task</th><th class="r">Low / Expected / High h</th><th class="r">Expected</th><th>Confidence</th></tr>${ts.map((x) => taskRow(x, capId)).join('')}</table></details>`;
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { test } from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { findChrome } from '../../../../analyze-requirements/scripts/lib/chrome.mjs';
|
|
4
|
-
import { openPage } from '../../../../analyze-requirements/scripts/lib/cdp.mjs';
|
|
5
|
-
import { componentsPage } from './stage.mjs';
|
|
6
|
-
|
|
7
|
-
const skip = !findChrome();
|
|
8
|
-
const settle = () => new Promise((r) => setTimeout(r, 1500));
|
|
9
|
-
// stage-engine serves FEAT-001 and FEAT-002; stage-tests moves to FEAT-002 only
|
|
10
|
-
const split = (i) => { i.components.find((c) => c.id === 'api.stage').tasks[1].features = ['FEAT-002']; };
|
|
11
|
-
|
|
12
|
-
const STAGE = (cap) => `[...document.querySelectorAll('#c-${cap} details.tasks')].find((d) => d.querySelector('summary').textContent.startsWith('Stage Engine'))`;
|
|
13
|
-
const taskNames = (page, cap) => page.eval(`[...${STAGE(cap)}.querySelectorAll('tr td:first-child')].map((td) => td.firstChild.textContent)`);
|
|
14
|
-
const firstRow = (page, cap) => page.eval(`${STAGE(cap)}.querySelector('tr td:first-child').textContent`);
|
|
15
|
-
const hrs = (s) => Number(s.replace(/[,h]/g, ''));
|
|
16
|
-
const cardSum = (page) => page.eval(`[...document.querySelectorAll('[data-hrs]')].map((b) => b.textContent)`);
|
|
17
|
-
const total = (page) => page.eval(`[...document.querySelectorAll('#strip div')].find((d) => d.textContent.includes('expected effort')).querySelector('b').textContent`);
|
|
18
|
-
|
|
19
|
-
test('a feature card lists only the tasks that serve it; card hours add up to the total', { skip }, async () => {
|
|
20
|
-
const page = await openPage(componentsPage(split));
|
|
21
|
-
try {
|
|
22
|
-
await settle();
|
|
23
|
-
assert.deepEqual(await taskNames(page, 'FEAT-001'), ['Stage transitions with audit']);
|
|
24
|
-
assert.deepEqual(await taskNames(page, 'FEAT-002'), ['Stage transitions with audit', 'Transition tests']);
|
|
25
|
-
assert.match(await firstRow(page, 'FEAT-002'), /shared with FEAT-001/);
|
|
26
|
-
const sum = (await cardSum(page)).reduce((n, s) => n + hrs(s), 0);
|
|
27
|
-
assert.ok(Math.abs(sum - hrs(await total(page))) <= 5, `cards ${sum}h vs total ${await total(page)}`);
|
|
28
|
-
assert.deepEqual(page.errors, []);
|
|
29
|
-
} finally { await page.close(); }
|
|
30
|
-
});
|
package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { test } from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import { loadPair } from '../lib/requirements.mjs';
|
|
5
|
-
import { computeWorkflowEstimation } from '../lib/rollup.mjs';
|
|
6
|
-
import { xlsxRows } from '../lib/xlsx-rows.mjs';
|
|
7
|
-
|
|
8
|
-
const fx = fileURLToPath(new URL('./fixtures/inputs-pass.json', import.meta.url));
|
|
9
|
-
function rows(editReq, editInputs) {
|
|
10
|
-
const { inputs, req } = loadPair(fx);
|
|
11
|
-
if (editReq) editReq(req);
|
|
12
|
-
if (editInputs) editInputs(inputs);
|
|
13
|
-
return xlsxRows(computeWorkflowEstimation(inputs, req, []), req);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
test('one row per feature, grouped by system in requirements order, main builder sets milestone and container', () => {
|
|
17
|
-
const r = rows();
|
|
18
|
-
assert.deepEqual(r.map((x) => [x.id, x.system]), [
|
|
19
|
-
['FEAT-001', 'Warehouse operations'], ['FEAT-002', 'Warehouse operations'],
|
|
20
|
-
['FEAT-003', 'Orders & invoicing'], ['FEAT-004', 'Orders & invoicing'], ['FEAT-005', 'Orders & invoicing'],
|
|
21
|
-
]);
|
|
22
|
-
const f1 = r[0];
|
|
23
|
-
assert.equal(f1.name, 'Order pipeline & stage engine');
|
|
24
|
-
assert.equal(f1.milestone, 'M1 - Walking skeleton');
|
|
25
|
-
assert.equal(f1.container, 'Core API'); // main builder api.stage, parent api
|
|
26
|
-
assert.equal(f1.provenance, 'stated');
|
|
27
|
-
assert.equal(r.find((x) => x.id === 'FEAT-004').provenance, 'proposed'); // BA label "recommended"
|
|
28
|
-
assert.equal(f1.scores.tech.n, 3);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
test('a feature in no system goes last, with a blank system', () => {
|
|
32
|
-
const r = rows((req) => { req.systems[0].features = ['FEAT-002']; });
|
|
33
|
-
assert.deepEqual(r.map((x) => [x.id, x.system]), [
|
|
34
|
-
['FEAT-002', 'Warehouse operations'], ['FEAT-003', 'Orders & invoicing'], ['FEAT-004', 'Orders & invoicing'],
|
|
35
|
-
['FEAT-005', 'Orders & invoicing'], ['FEAT-001', ''],
|
|
36
|
-
]);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
test('a feature two systems list gets one row, under the first system', () => {
|
|
40
|
-
const r = rows((req) => { req.systems[1].features = ['FEAT-001', ...req.systems[1].features]; });
|
|
41
|
-
assert.deepEqual(r.filter((x) => x.id === 'FEAT-001').map((x) => x.system), ['Warehouse operations']);
|
|
42
|
-
assert.equal(r.length, 5);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test('every task appears once, under the first feature it serves', () => {
|
|
46
|
-
const r = rows(undefined, (i) => { i.components.find((c) => c.id === 'api.stage').tasks[1].features = ['FEAT-002']; });
|
|
47
|
-
const all = r.flatMap((x) => x.tasks.map((t) => t.name));
|
|
48
|
-
assert.equal(all.length, 8);
|
|
49
|
-
assert.equal(new Set(all).size, 8);
|
|
50
|
-
assert.deepEqual(r[0].tasks.map((t) => t.name), ['Stage transitions with audit', 'Orders, quotes and invoicing screens']);
|
|
51
|
-
assert.deepEqual(r[1].tasks.map((t) => t.name), ['Transition tests', 'Alert delivery']);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
test('task hours map to o / m / p and the shape becomes the category', () => {
|
|
55
|
-
const t = rows().find((x) => x.id === 'FEAT-005').tasks.find((x) => x.name === 'Three-way match');
|
|
56
|
-
assert.deepEqual({ o: t.o, m: t.m, p: t.p, category: t.category, confidence: t.confidence },
|
|
57
|
-
{ o: 1, m: 2.17, p: 4, category: 'small_implementation', confidence: 'UNCALIBRATED' });
|
|
58
|
-
assert.deepEqual(t.assumptions, []);
|
|
59
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# proposal
|
|
2
|
-
|
|
3
|
-
Pre-sales client proposal assembled from the analyze-requirements and estimate skills'
|
|
4
|
-
outputs: `proposal.md` as the editable source of truth and `proposal.html`
|
|
5
|
-
as a self-contained, print-ready page you can send to a client or print to
|
|
6
|
-
PDF.
|
|
7
|
-
|
|
8
|
-
## What it needs
|
|
9
|
-
|
|
10
|
-
Both are hard prerequisites — the skill stops without them:
|
|
11
|
-
|
|
12
|
-
- `ARCHITECTURE.md` (analyze-requirements skill)
|
|
13
|
-
- `estimation.json` (estimate skill)
|
|
14
|
-
|
|
15
|
-
## What it asks
|
|
16
|
-
|
|
17
|
-
A short interview: who the client is, how technical they are (a non-tech
|
|
18
|
-
client gets a jargon-free document, enforced by the validator), and how long
|
|
19
|
-
the proposal stays valid. Your firm profile is asked once and cached
|
|
20
|
-
(`.claude/proposal-profile.json`, project or global scope — your choice).
|
|
21
|
-
|
|
22
|
-
## What it guarantees
|
|
23
|
-
|
|
24
|
-
- Every number traces to `estimation.json` — the validator recomputes the
|
|
25
|
-
client-facing ranges and refuses anything hand-invented.
|
|
26
|
-
- The client sees one price: the estimate's own presented range and single
|
|
27
|
-
number, split across milestones by effort share. An estimate with no
|
|
28
|
-
scored features (agentic delivery) has no price to quote, and the skill
|
|
29
|
-
refuses rather than send a $0.
|
|
30
|
-
- No internal leakage: feature scores, tiers, the pricing working, provenance
|
|
31
|
-
tags, and the internal risk register never appear.
|
|
32
|
-
- Validation gates rendering; a fresh-eyes subagent review and your own
|
|
33
|
-
sign-off gate delivery.
|
|
34
|
-
|
|
35
|
-
## Pipeline
|
|
36
|
-
|
|
37
|
-
interview → derive.mjs → proposal.md → validate.mjs → fresh-eyes review →
|
|
38
|
-
human review → render.mjs → serve.mjs
|
|
39
|
-
|
|
40
|
-
## Workflow mode
|
|
41
|
-
|
|
42
|
-
When the estimate is in workflow mode (`scopeMode: "workflow"`), the skill
|
|
43
|
-
builds a Systems & Workflows page instead: scope, each system with its
|
|
44
|
-
workflow diagrams and features, milestones, assumptions & exclusions and the
|
|
45
|
-
price, all from the BA package and the estimate. The agent writes only the
|
|
46
|
-
sentences (`proposal-inputs.json`); there is no proposal.md. The page has
|
|
47
|
-
Download PDF and Download DOCX buttons. Prices are USD. See
|
|
48
|
-
`references/workflow.md`.
|
|
49
|
-
|
|
50
|
-
interview → proposal-inputs.json → validate.mjs → render.mjs → fresh-eyes
|
|
51
|
-
review → serve.mjs → human review on the page
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: proposal
|
|
3
|
-
description: Assemble a pre-sales client proposal from analyze-requirements and estimate outputs — interviewed client context, the estimate's price as a range, and a print-ready client page. Use when the user asks for a proposal, a client pitch document, a quote document, or "something I can send the client".
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# proposal
|
|
7
|
-
|
|
8
|
-
Assemble a pre-sales client proposal: proposal.md as the source of truth and
|
|
9
|
-
a self-contained, print-ready proposal.html the user can send or print to
|
|
10
|
-
PDF.
|
|
11
|
-
|
|
12
|
-
## Hard rules
|
|
13
|
-
|
|
14
|
-
1. Assembly only — never re-analyze. Architecture facts come from
|
|
15
|
-
ARCHITECTURE.md; every number comes from estimation.json via
|
|
16
|
-
`scripts/derive.mjs`. A number the derivation didn't produce does not
|
|
17
|
-
go in the document.
|
|
18
|
-
2. Both prerequisites are hard: no ARCHITECTURE.md or no estimation.json →
|
|
19
|
-
stop and name the skill to run (`analyze-requirements` / `estimate`).
|
|
20
|
-
3. The client sees one price — the cost range and single-number figure the
|
|
21
|
-
estimate computed. No staffing plan, internal scoring, or timeline
|
|
22
|
-
leaks.
|
|
23
|
-
4. `node scripts/validate.mjs` must exit 0 before the page renders;
|
|
24
|
-
`render.mjs` re-runs the same checks and refuses on findings.
|
|
25
|
-
5. Human review of proposal.md before anything is rendered for or sent to
|
|
26
|
-
a client.
|
|
27
|
-
|
|
28
|
-
## Mode
|
|
29
|
-
|
|
30
|
-
Read `estimation.json` first. `inputs.scopeMode` is `"workflow"` → follow
|
|
31
|
-
`references/workflow.md` instead of the flow below: the proposal is built
|
|
32
|
-
from the BA package and the estimate as a Systems & Workflows page, you
|
|
33
|
-
write only its sentences (`proposal-inputs.json`), and there is no
|
|
34
|
-
proposal.md and no derive step. Anything else → the classic flow below.
|
|
35
|
-
|
|
36
|
-
## Flow
|
|
37
|
-
|
|
38
|
-
1. **Prereq gate**: ARCHITECTURE.md and estimation.json both exist, or stop.
|
|
39
|
-
2. **Interview**: follow `references/interview.md` — client context, tech
|
|
40
|
-
level, validity, firm profile (with storage-scope choice).
|
|
41
|
-
3. **Figures**: `node scripts/derive.mjs --estimation <dir>/estimation.json
|
|
42
|
-
--out <dir>/proposal-figures.json` — the only numbers allowed in the
|
|
43
|
-
document. It refuses an unpriced estimate (no scored features — QUICK
|
|
44
|
-
depth or agentic mode); stop there and name the `estimate` skill, to be
|
|
45
|
-
re-run with scored features. Never quote such an estimate at $0.
|
|
46
|
-
4. **Write**: proposal.md per `references/writing.md` (nine sections,
|
|
47
|
-
frontmatter contract, tech-level language).
|
|
48
|
-
5. **Validate**: `node scripts/validate.mjs --md <dir>/proposal.md
|
|
49
|
-
--estimation <dir>/estimation.json` — fix findings, re-run until clean.
|
|
50
|
-
6. **Fresh-eyes review**: dispatch a subagent per `references/review.md`;
|
|
51
|
-
fix findings, re-run validate; one re-review cycle max.
|
|
52
|
-
7. **Human review**: show the user proposal.md and wait for approval.
|
|
53
|
-
8. **Render**: `node scripts/render.mjs --md <dir>/proposal.md
|
|
54
|
-
--estimation <dir>/estimation.json --mermaid-bundle <path> --out <dir>/dist`
|
|
55
|
-
— reuse the mermaid bundle built for the analyze-requirements viewer
|
|
56
|
-
(analyze-requirements `references/viewer.md` §1). `<dir>/dist/` is the one
|
|
57
|
-
rendered-pages folder: proposal.html ships beside index.html and
|
|
58
|
-
estimate.html; proposal.html itself carries no link back.
|
|
59
|
-
9. **Serve**: `node ../analyze-requirements/scripts/serve.mjs <dir>`; report the URL.
|
|
60
|
-
|
|
61
|
-
## Placement
|
|
62
|
-
|
|
63
|
-
proposal.md lives beside ARCHITECTURE.md and estimation.md. proposal.html
|
|
64
|
-
follows the estimate.html rule: into the rendered viewer's directory when
|
|
65
|
-
one exists, else beside proposal.md.
|
|
66
|
-
|
|
67
|
-
## Dependency
|
|
68
|
-
|
|
69
|
-
Node ≥ 20. Scripts are dependency-free.
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title><!-- slot:TITLE --></title>
|
|
7
|
-
<style>
|
|
8
|
-
<!-- slot:FONTS -->
|
|
9
|
-
:root {
|
|
10
|
-
--ink: #1a1d21; --muted: #5c6470; --line: #d9dde3;
|
|
11
|
-
--accent: #0f5c5a; --bg: #ffffff; --wash: #f6f7f9;
|
|
12
|
-
}
|
|
13
|
-
* { box-sizing: border-box; }
|
|
14
|
-
body {
|
|
15
|
-
margin: 0; background: var(--bg); color: var(--ink);
|
|
16
|
-
font: 16px/1.65 "IBM Plex Sans", system-ui, sans-serif;
|
|
17
|
-
}
|
|
18
|
-
nav {
|
|
19
|
-
position: fixed; top: 0; left: 0; bottom: 0; width: 230px;
|
|
20
|
-
padding: 2.5rem 1.5rem; border-right: 1px solid var(--line);
|
|
21
|
-
background: var(--wash); overflow-y: auto;
|
|
22
|
-
}
|
|
23
|
-
nav a {
|
|
24
|
-
display: block; color: var(--muted); text-decoration: none;
|
|
25
|
-
font-size: .85rem; padding: .3rem 0;
|
|
26
|
-
}
|
|
27
|
-
nav a:hover { color: var(--accent); }
|
|
28
|
-
main { max-width: 72ch; margin: 0 auto; padding: 3rem 2rem 5rem; }
|
|
29
|
-
@media (min-width: 980px) { main { margin-left: 270px; } }
|
|
30
|
-
@media (max-width: 979px) { nav { display: none; } }
|
|
31
|
-
h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.01em; }
|
|
32
|
-
h2 {
|
|
33
|
-
font-size: 1.25rem; margin-top: 2.6rem; padding-top: 1.2rem;
|
|
34
|
-
border-top: 1px solid var(--line); color: var(--accent);
|
|
35
|
-
}
|
|
36
|
-
h3 {
|
|
37
|
-
font-size: .85rem; text-transform: uppercase; letter-spacing: .07em;
|
|
38
|
-
color: var(--muted); font-weight: 600; margin: 1.6rem 0 .3rem;
|
|
39
|
-
}
|
|
40
|
-
dl.def-grid { margin: 0 0 .4rem; border-top: 1px solid var(--line); padding-top: .2rem; }
|
|
41
|
-
.def-grid .def {
|
|
42
|
-
display: grid; grid-template-columns: 220px 1fr; gap: 0 1.5rem;
|
|
43
|
-
padding: .5rem 0;
|
|
44
|
-
}
|
|
45
|
-
.def-grid dt { font-weight: 600; font-size: .95rem; }
|
|
46
|
-
.def-grid dd { margin: 0; color: var(--muted); }
|
|
47
|
-
@media (max-width: 640px) {
|
|
48
|
-
.def-grid .def { grid-template-columns: 1fr; gap: .15rem; }
|
|
49
|
-
}
|
|
50
|
-
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
|
|
51
|
-
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
|
|
52
|
-
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
|
|
53
|
-
strong { font-weight: 600; }
|
|
54
|
-
code, pre { font-family: "IBM Plex Mono", monospace; font-size: .9em; }
|
|
55
|
-
.diagram-shell { margin: 1.5rem 0; padding: 1rem; background: var(--wash); border-radius: 8px; }
|
|
56
|
-
.mermaid-canvas svg { max-width: 100%; height: auto; }
|
|
57
|
-
@media print {
|
|
58
|
-
nav { display: none; }
|
|
59
|
-
main { margin: 0 auto; padding: 0; max-width: none; }
|
|
60
|
-
h2, h3 { break-after: avoid; }
|
|
61
|
-
table, .diagram-shell { break-inside: avoid; }
|
|
62
|
-
.def-grid .def { break-inside: avoid; }
|
|
63
|
-
@page { size: A4; margin: 22mm 18mm; }
|
|
64
|
-
}
|
|
65
|
-
</style>
|
|
66
|
-
</head>
|
|
67
|
-
<body>
|
|
68
|
-
<nav aria-label="Sections">
|
|
69
|
-
<!-- slot:NAV -->
|
|
70
|
-
</nav>
|
|
71
|
-
<main>
|
|
72
|
-
<!-- slot:CONTENT -->
|
|
73
|
-
</main>
|
|
74
|
-
<script>
|
|
75
|
-
<!-- slot:MERMAID_BUNDLE -->
|
|
76
|
-
</script>
|
|
77
|
-
<script>
|
|
78
|
-
mermaid.initialize({ startOnLoad: false, theme: 'neutral', fontFamily: '"IBM Plex Sans", sans-serif' });
|
|
79
|
-
mermaid.run({ querySelector: '.mermaid-canvas' });
|
|
80
|
-
</script>
|
|
81
|
-
</body>
|
|
82
|
-
</html>
|