@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,143 +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: 52rem; 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
|
-
.tools { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: 1rem; }
|
|
32
|
-
.tools button {
|
|
33
|
-
font: inherit; font-size: .85rem; color: var(--ink); background: var(--wash);
|
|
34
|
-
border: 1px solid var(--line); border-radius: .3rem; padding: .35rem .8rem; cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
.tools button:hover { border-color: var(--accent); color: var(--accent); }
|
|
37
|
-
h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .4rem; }
|
|
38
|
-
.byline { color: var(--muted); margin: 0 0 1.6rem; }
|
|
39
|
-
h2 {
|
|
40
|
-
font-size: 1.25rem; margin-top: 2.6rem; padding-top: 1.2rem;
|
|
41
|
-
border-top: 1px solid var(--line); color: var(--accent);
|
|
42
|
-
}
|
|
43
|
-
h2 .sysno { color: var(--muted); font-weight: 500; }
|
|
44
|
-
h3 {
|
|
45
|
-
font-size: .85rem; text-transform: uppercase; letter-spacing: .07em;
|
|
46
|
-
color: var(--muted); font-weight: 600; margin: 1.6rem 0 .3rem;
|
|
47
|
-
}
|
|
48
|
-
p { max-width: 68ch; }
|
|
49
|
-
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
|
|
50
|
-
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
51
|
-
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
|
|
52
|
-
td:first-child { font-weight: 600; width: 34%; }
|
|
53
|
-
.flow-name { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 1.2rem 0 .3rem; }
|
|
54
|
-
.diagram-shell { margin: 0 0 1rem; padding: 1rem; background: var(--wash); border-radius: 8px; overflow-x: auto; }
|
|
55
|
-
.mermaid-canvas { white-space: pre; font-size: .8rem; color: var(--muted); }
|
|
56
|
-
.mermaid-canvas svg { max-width: 100%; height: auto; }
|
|
57
|
-
.price { display: flex; flex-wrap: wrap; gap: 1rem; margin: .8rem 0 1rem; }
|
|
58
|
-
.price > div { flex: 1 1 14rem; background: var(--wash); border: 1px solid var(--line); border-radius: .3rem; padding: .8rem 1rem; }
|
|
59
|
-
.price span { display: block; font-size: .8rem; color: var(--muted); }
|
|
60
|
-
.price b { display: block; font-size: 1.5rem; font-weight: 600; margin: .15rem 0; font-variant-numeric: tabular-nums; }
|
|
61
|
-
@media print {
|
|
62
|
-
nav, .tools { display: none; }
|
|
63
|
-
main { margin: 0 auto; padding: 0; max-width: none; }
|
|
64
|
-
section.system { break-before: page; }
|
|
65
|
-
h2, h3, .flow-name { break-after: avoid; }
|
|
66
|
-
table, .diagram-shell, .price { break-inside: avoid; }
|
|
67
|
-
@page { size: A4; margin: 22mm 18mm; }
|
|
68
|
-
}
|
|
69
|
-
</style>
|
|
70
|
-
</head>
|
|
71
|
-
<body>
|
|
72
|
-
<nav aria-label="Sections">
|
|
73
|
-
<!-- slot:NAV -->
|
|
74
|
-
</nav>
|
|
75
|
-
<main>
|
|
76
|
-
<div class="tools"><button id="pdf" type="button">Download PDF</button><button id="docx" type="button">Download DOCX</button></div>
|
|
77
|
-
<!-- slot:CONTENT -->
|
|
78
|
-
</main>
|
|
79
|
-
<script type="application/json" id="proposal-data"><!-- slot:DATA --></script>
|
|
80
|
-
<script>
|
|
81
|
-
<!-- slot:MERMAID_BUNDLE -->
|
|
82
|
-
</script>
|
|
83
|
-
<script type="module">
|
|
84
|
-
// A module, so the inlined writer's names stay out of the page's global scope.
|
|
85
|
-
<!-- slot:DOCX -->
|
|
86
|
-
const PROPOSAL = JSON.parse(document.getElementById('proposal-data').textContent);
|
|
87
|
-
// Plain SVG text labels: a canvas refuses to export a drawing with HTML labels.
|
|
88
|
-
// No error picture: a diagram that fails stays empty and shows its steps instead.
|
|
89
|
-
mermaid.initialize({ startOnLoad: false, theme: 'neutral', htmlLabels: false, flowchart: { htmlLabels: false }, fontFamily: '"IBM Plex Sans", sans-serif', suppressErrorRendering: true });
|
|
90
|
-
const drawn = mermaid.run({ querySelector: '.mermaid-canvas' }).catch(() => null).then(() => {
|
|
91
|
-
const flows = PROPOSAL.systems.flatMap((s) => s.flows);
|
|
92
|
-
document.querySelectorAll('.mermaid-canvas').forEach((c, i) => { if (!c.querySelector('svg')) c.textContent = flows[i].steps; });
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
async function svgPng(svg) {
|
|
96
|
-
const { width, height } = svg.getBoundingClientRect();
|
|
97
|
-
const copy = svg.cloneNode(true);
|
|
98
|
-
copy.setAttribute('width', width);
|
|
99
|
-
copy.setAttribute('height', height);
|
|
100
|
-
const img = new Image();
|
|
101
|
-
img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(copy))}`;
|
|
102
|
-
await img.decode();
|
|
103
|
-
const canvas = document.createElement('canvas');
|
|
104
|
-
canvas.width = Math.ceil(width * 2);
|
|
105
|
-
canvas.height = Math.ceil(height * 2);
|
|
106
|
-
const ctx = canvas.getContext('2d');
|
|
107
|
-
ctx.fillStyle = '#fff';
|
|
108
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
109
|
-
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
|
110
|
-
const blob = await new Promise((ok) => canvas.toBlob(ok, 'image/png'));
|
|
111
|
-
return { bytes: new Uint8Array(await blob.arrayBuffer()), width: Math.round(width), height: Math.round(height) };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// One entry per workflow in page order; a diagram that did not draw is null
|
|
115
|
-
// and the DOCX writes its steps instead.
|
|
116
|
-
async function diagramImages() {
|
|
117
|
-
await drawn;
|
|
118
|
-
const canvases = [...document.querySelectorAll('.mermaid-canvas')];
|
|
119
|
-
return Promise.all(canvases.map((c) => {
|
|
120
|
-
const svg = c.querySelector('svg');
|
|
121
|
-
return svg ? svgPng(svg).catch(() => null) : null;
|
|
122
|
-
}));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const docxBytes = async () => buildDocx(PROPOSAL, await diagramImages());
|
|
126
|
-
window.__buildDocx = async () => {
|
|
127
|
-
const bytes = await docxBytes();
|
|
128
|
-
let s = '';
|
|
129
|
-
for (let i = 0; i < bytes.length; i += 0x8000) s += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
|
|
130
|
-
return btoa(s);
|
|
131
|
-
};
|
|
132
|
-
document.getElementById('pdf').onclick = () => window.print();
|
|
133
|
-
document.getElementById('docx').onclick = async () => {
|
|
134
|
-
const blob = new Blob([await docxBytes()], { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' });
|
|
135
|
-
const a = document.createElement('a');
|
|
136
|
-
a.href = URL.createObjectURL(blob);
|
|
137
|
-
a.download = PROPOSAL.file;
|
|
138
|
-
a.click();
|
|
139
|
-
URL.revokeObjectURL(a.href);
|
|
140
|
-
};
|
|
141
|
-
</script>
|
|
142
|
-
</body>
|
|
143
|
-
</html>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Interview — prereq gate, client context, profile
|
|
2
|
-
|
|
3
|
-
Read before asking anything. Pre-fill from evidence, ask only holes, one
|
|
4
|
-
question at a time.
|
|
5
|
-
|
|
6
|
-
## 0. Prereq gate + evidence load
|
|
7
|
-
|
|
8
|
-
Both files must exist or the skill stops:
|
|
9
|
-
|
|
10
|
-
- No ARCHITECTURE.md → stop: "run the analyze-requirements skill first."
|
|
11
|
-
- No estimation.json → stop: "run the estimate skill first."
|
|
12
|
-
|
|
13
|
-
Read ARCHITECTURE.md, estimation.json, and estimation.md. Load the firm
|
|
14
|
-
profile (see §3). Then state what is already known: scope, milestones,
|
|
15
|
-
cost, risks, tech stack. The user corrects anything stale before questions
|
|
16
|
-
begin.
|
|
17
|
-
|
|
18
|
-
## 1. Client context — the only-human-knows questions
|
|
19
|
-
|
|
20
|
-
1. Client name, and who decides (owner? IT manager? founder?).
|
|
21
|
-
2. **Tech level: non-tech / low-tech / technical.** This sets the document's
|
|
22
|
-
language everywhere — non-tech bans jargon outright (the validator
|
|
23
|
-
enforces a deny-list; `jargon_allow` in frontmatter overrides per term
|
|
24
|
-
when the client themselves uses it).
|
|
25
|
-
3. The client's business problem, in their words — seeds Background &
|
|
26
|
-
Objectives.
|
|
27
|
-
4. What the client cares about most: price, speed, or reliability — shapes
|
|
28
|
-
the Executive Summary's emphasis.
|
|
29
|
-
5. Validity period — default 30 days from today; compute the date for
|
|
30
|
-
`valid_until`.
|
|
31
|
-
|
|
32
|
-
## 2. Gaps + confirmation
|
|
33
|
-
|
|
34
|
-
- Out-of-scope items beyond what estimation.md already excludes?
|
|
35
|
-
- Anything the client already rejected or demanded (constraints)?
|
|
36
|
-
- Anything in ARCHITECTURE.md or estimation.md that conflicts or is unclear
|
|
37
|
-
→ ask, never guess.
|
|
38
|
-
|
|
39
|
-
## 3. Firm profile
|
|
40
|
-
|
|
41
|
-
Lookup order: `<project>/.claude/proposal-profile.json` →
|
|
42
|
-
`~/.claude/proposal-profile.json` → none. Project scope wins when both exist.
|
|
43
|
-
|
|
44
|
-
Shape:
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
{
|
|
48
|
-
"firm": "Code Engine Studio",
|
|
49
|
-
"contact": "hello@codeenginestudio.com",
|
|
50
|
-
"website": "https://codeenginestudio.com",
|
|
51
|
-
"blurb": "One-paragraph plain-language introduction.",
|
|
52
|
-
"relevant_work": [{ "name": "Clinic scheduler", "oneliner": "what it was, outcome" }]
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
- Found → show it, confirm or edit; save edits back to the same scope.
|
|
57
|
-
- Not found → interview the fields, then ask: "store globally
|
|
58
|
-
(~/.claude/proposal-profile.json) or project-level
|
|
59
|
-
(.claude/proposal-profile.json)?" and write the chosen file.
|
|
60
|
-
- Corrupt/unreadable → warn, re-interview, rewrite.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Fresh-eyes review — subagent charter
|
|
2
|
-
|
|
3
|
-
Run after `validate.mjs` first exits 0, before human review. Dispatch one
|
|
4
|
-
general-purpose subagent with **only**: proposal.md, estimation.json, and
|
|
5
|
-
the client tech level. No interview context — it must read the document the
|
|
6
|
-
way the client will.
|
|
7
|
-
|
|
8
|
-
## Charter (the subagent checks exactly these)
|
|
9
|
-
|
|
10
|
-
1. **Comprehension** — would a reader at the stated tech level understand
|
|
11
|
-
every sentence? Flag anything too technical; this catches jargon beyond
|
|
12
|
-
the deny-list.
|
|
13
|
-
2. **Executive summary** — does page one answer what we build and what it
|
|
14
|
-
costs?
|
|
15
|
-
3. **Honesty** — persuasive is fine, hype is not. Flag any claim the
|
|
16
|
-
document itself cannot back.
|
|
17
|
-
4. **Leaks** — anything internal: staffing detail, rates, provenance
|
|
18
|
-
words, confidence internals, a delivery duration or date (the estimate
|
|
19
|
-
produces no timeline).
|
|
20
|
-
5. **Contradictions** — scope vs out-of-scope, price table vs summary,
|
|
21
|
-
milestones vs delivery prose.
|
|
22
|
-
|
|
23
|
-
Return findings as a list; no rewrites.
|
|
24
|
-
|
|
25
|
-
## Workflow mode
|
|
26
|
-
|
|
27
|
-
Run after `render.mjs` first writes `dist/proposal.html`, before human
|
|
28
|
-
review. Dispatch one general-purpose subagent with **only**:
|
|
29
|
-
`dist/proposal.html`, estimation.json, and the client tech level. Same
|
|
30
|
-
charter, read against the page text, except item 2, which becomes: does
|
|
31
|
-
the Scope section say what we build, and the Cost section what it costs?
|
|
32
|
-
Findings are fixed in `proposal-inputs.json` (the only text you wrote);
|
|
33
|
-
a finding about a system, feature, assumption or exclusion goes back to
|
|
34
|
-
the BA package or the estimate, never into the proposal.
|
|
35
|
-
|
|
36
|
-
## Loop bound
|
|
37
|
-
|
|
38
|
-
Fix findings → re-run `validate.mjs` → one findings-only re-review, then
|
|
39
|
-
stop. Human review of proposal.md is the final gate regardless of what the
|
|
40
|
-
review found.
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Writing — frontmatter contract, nine sections, language rules
|
|
2
|
-
|
|
3
|
-
Read while writing proposal.md. The validator enforces everything below;
|
|
4
|
-
a document that satisfies this file passes `validate.mjs` by construction.
|
|
5
|
-
|
|
6
|
-
## 1. Frontmatter (flat keys — the shared parser is flat key:value)
|
|
7
|
-
|
|
8
|
-
```yaml
|
|
9
|
-
---
|
|
10
|
-
client: Acme Corp
|
|
11
|
-
client_tech_level: non-tech # non-tech | low-tech | technical
|
|
12
|
-
currency: USD
|
|
13
|
-
valid_until: 2026-09-06 # ISO date, must be in the future
|
|
14
|
-
jargon_allow: [] # optional, JSON array
|
|
15
|
-
source_architecture: ../ARCHITECTURE.md
|
|
16
|
-
source_estimation: ../estimation.json
|
|
17
|
-
---
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## 2. Numbers — the one rule that matters most
|
|
21
|
-
|
|
22
|
-
**Never write a number that `scripts/derive.mjs` did not output.** Run it
|
|
23
|
-
first, keep proposal-figures.json open, and use only those values: the cost
|
|
24
|
-
range, the single-number figure, and the per-milestone splits. Money is
|
|
25
|
-
written `$8,000` (en-US grouping). The validator extracts every money amount
|
|
26
|
-
in the document and refuses any value the derivation didn't produce — and it
|
|
27
|
-
recomputes the figures from estimation.json itself, so editing
|
|
28
|
-
proposal-figures.json by hand changes nothing.
|
|
29
|
-
|
|
30
|
-
The proposal carries no timeline: the estimate scores and prices features,
|
|
31
|
-
it does not schedule them, so there is no duration figure to quote — never
|
|
32
|
-
write a number of months or weeks, and the Investment & Timeline table never
|
|
33
|
-
carries a Duration column.
|
|
34
|
-
|
|
35
|
-
Rates never appear — no staffing detail of any kind does; the estimate
|
|
36
|
-
prices a package, not rates or a team roster.
|
|
37
|
-
|
|
38
|
-
## 3. The nine sections, in order (all `##`, exact names)
|
|
39
|
-
|
|
40
|
-
1. **Executive Summary** — problem, solution, headline cost range. One page.
|
|
41
|
-
The headline range is mandatory: the validator requires cost low/high to
|
|
42
|
-
appear.
|
|
43
|
-
2. **Background & Objectives** — the client's problem in their words, then
|
|
44
|
-
measurable goals.
|
|
45
|
-
3. **Proposed Solution** — what we build, in the client's language, plus
|
|
46
|
-
exactly the depth the tech level allows (see §4). Must contain one
|
|
47
|
-
`mermaid` code fence — non-tech gets boxes-and-arrows with ≤ 6 nodes.
|
|
48
|
-
4. **Scope** — in-scope features as a table, phrased as client outcomes.
|
|
49
|
-
More than ~8 rows: split into several tables grouped under `###`
|
|
50
|
-
subheads named after product areas the client recognizes. `###` lines
|
|
51
|
-
do not break section slicing; each table still validates on its own.
|
|
52
|
-
5. **Out of Scope & Assumptions** — explicit exclusions (from estimation.md
|
|
53
|
-
plus the interview) and the assumptions the estimate rests on.
|
|
54
|
-
6. **Delivery Approach** — milestones, ways of working, QA, communication
|
|
55
|
-
cadence, and the client-relevant risks with mitigations. The full risk
|
|
56
|
-
register stays internal.
|
|
57
|
-
7. **Investment & Timeline** — the milestone table: an Investment column
|
|
58
|
-
from the figures, then the bold total line and the sentence explaining
|
|
59
|
-
the range reflects estimation confidence.
|
|
60
|
-
8. **About <firm>** — blurb, relevant work, contact, from the profile. The
|
|
61
|
-
jargon scan skips this section.
|
|
62
|
-
9. **Next Steps** — the valid_until date in prose, the acceptance path,
|
|
63
|
-
and a call to action.
|
|
64
|
-
|
|
65
|
-
## 4. Tech-level language
|
|
66
|
-
|
|
67
|
-
- **non-tech** — plain words only; analogies over architecture; the
|
|
68
|
-
deny-list (scripts/lib/jargon.mjs — e.g. api, kubernetes, backend) fails
|
|
69
|
-
validation outside About. Diagram shows what the client sees, not
|
|
70
|
-
containers.
|
|
71
|
-
- **low-tech** — everyday product vocabulary is fine (website, app,
|
|
72
|
-
database); no infrastructure or tooling terms.
|
|
73
|
-
- **technical** — full stack detail welcome; the diagram may show
|
|
74
|
-
containers and technology labels.
|
|
75
|
-
|
|
76
|
-
## 5. What must never appear
|
|
77
|
-
|
|
78
|
-
A `scenario` frontmatter key (removed — the estimate produces one price, not
|
|
79
|
-
a menu of staffing scenarios), a `## Team` section, a Duration column,
|
|
80
|
-
provenance vocabulary (`observed`/`stated`/`researched`/`proposed` as table
|
|
81
|
-
cells or a `src` column), `data-internal`, placeholder text of any spelling,
|
|
82
|
-
empty tables, and any number the derivation didn't produce — all of these
|
|
83
|
-
fail `validate.mjs`. Rates, internal risk ids, and confidence internals must
|
|
84
|
-
never appear either, but no script can recognize them reliably: the
|
|
85
|
-
fresh-eyes review (`references/review.md` charter item 4) and your own
|
|
86
|
-
read before rendering are the gate for those. Unknowns are honest
|
|
87
|
-
absences — if something isn't known, say so in plain words or leave it
|
|
88
|
-
out.
|
|
89
|
-
|
|
90
|
-
## 6. Placement + commands
|
|
91
|
-
|
|
92
|
-
proposal.md, proposal-figures.json beside ARCHITECTURE.md/estimation.md.
|
|
93
|
-
Run from `plugins/solution-architect/skills/proposal/`:
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
node scripts/derive.mjs --estimation <dir>/estimation.json --out <dir>/proposal-figures.json
|
|
97
|
-
node scripts/validate.mjs --md <dir>/proposal.md --estimation <dir>/estimation.json
|
|
98
|
-
node scripts/render.mjs --md <dir>/proposal.md --estimation <dir>/estimation.json --mermaid-bundle <path> --out <out-dir>
|
|
99
|
-
node ../analyze-requirements/scripts/serve.mjs <out-dir>
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
`<out-dir>` is `<dir>/dist/` — the one rendered-pages folder, shared with the
|
|
103
|
-
analyze-requirements viewer (proposal.html ships beside index.html and
|
|
104
|
-
estimate.html).
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Client-safety half of the proposal gate: every number traces to the
|
|
2
|
-
// derived figures, nothing internal leaks, and non-tech documents carry no
|
|
3
|
-
// jargon outside the About section.
|
|
4
|
-
import { deriveFigures } from './figures.mjs';
|
|
5
|
-
import { sectionText, escapeRegExp } from './sections.mjs';
|
|
6
|
-
import { JARGON } from './jargon.mjs';
|
|
7
|
-
|
|
8
|
-
const flat = (f) => [
|
|
9
|
-
f.cost.low, f.cost.high, f.singleNumber,
|
|
10
|
-
...f.milestones.flatMap((m) => [m.cost.low, m.cost.high]),
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
function checkMoney(md, figures, out) {
|
|
14
|
-
const allowed = new Set(flat(figures));
|
|
15
|
-
for (const m of md.matchAll(/[$€£]\s?([\d,]+(?:\.\d+)?)/g)) {
|
|
16
|
-
const n = Number(m[1].replaceAll(',', ''));
|
|
17
|
-
if (!allowed.has(n)) out.push(`money amount ${m[0].trim()} not derived from estimation.json`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function checkHeadline(md, figures, out) {
|
|
22
|
-
const summary = sectionText(md, 'Executive Summary') ?? '';
|
|
23
|
-
for (const n of [figures.cost.low, figures.cost.high]) {
|
|
24
|
-
if (!summary.includes(n.toLocaleString('en-US'))) {
|
|
25
|
-
out.push(`headline cost bound ${n.toLocaleString('en-US')} missing from Executive Summary`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function checkLeaks({ md }, out) {
|
|
31
|
-
if (/\|\s*src\s*\|/i.test(md)) out.push('leak: provenance "src" column');
|
|
32
|
-
if (/data-internal/.test(md)) out.push('leak: data-internal marker');
|
|
33
|
-
for (const word of ['observed', 'stated', 'researched', 'proposed']) {
|
|
34
|
-
if (new RegExp(`\\|\\s*${word}\\s*\\|`).test(md)) out.push(`leak: provenance cell "${word}"`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function checkJargon({ md, fm }, out) {
|
|
39
|
-
if (fm.client_tech_level !== 'non-tech') return;
|
|
40
|
-
const allow = new Set((Array.isArray(fm.jargon_allow) ? fm.jargon_allow : []).map((w) => w.toLowerCase()));
|
|
41
|
-
const about = sectionText(md, 'About');
|
|
42
|
-
const scanned = md.replace(/^---\n[\s\S]*?\n---/, '').replace(about ?? '', '');
|
|
43
|
-
for (const term of JARGON) {
|
|
44
|
-
if (allow.has(term)) continue;
|
|
45
|
-
if (new RegExp(`(?<![\\w/])${escapeRegExp(term)}(?:e?s)?(?![\\w/])`, 'i').test(scanned)) {
|
|
46
|
-
out.push(`jargon for a non-tech client: "${term}" (rewrite plainly or add to jargon_allow)`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function checkClient({ md, fm, estimation }, out = []) {
|
|
52
|
-
const figures = deriveFigures(estimation);
|
|
53
|
-
checkMoney(md, figures, out);
|
|
54
|
-
checkHeadline(md, figures, out);
|
|
55
|
-
checkLeaks({ md }, out);
|
|
56
|
-
checkJargon({ md, fm }, out);
|
|
57
|
-
return out;
|
|
58
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Structural half of the proposal gate: frontmatter contract, the nine
|
|
2
|
-
// sections, placeholder scan, future validity. Client-safety checks live
|
|
3
|
-
// in checks-client.mjs.
|
|
4
|
-
import { SECTIONS, sectionText, tables } from './sections.mjs';
|
|
5
|
-
|
|
6
|
-
const FM_KEYS = ['client', 'client_tech_level', 'currency',
|
|
7
|
-
'valid_until', 'source_architecture', 'source_estimation'];
|
|
8
|
-
const TECH_LEVELS = ['non-tech', 'low-tech', 'technical'];
|
|
9
|
-
const DURATION_HEADER = /\|\s*Duration\s*\|/i;
|
|
10
|
-
|
|
11
|
-
function checkFrontmatter({ fm, today }, out) {
|
|
12
|
-
for (const key of FM_KEYS) {
|
|
13
|
-
if (!fm[key]) out.push(`frontmatter: missing "${key}"`);
|
|
14
|
-
}
|
|
15
|
-
if (fm.client_tech_level && !TECH_LEVELS.includes(fm.client_tech_level)) {
|
|
16
|
-
out.push(`frontmatter: client_tech_level must be ${TECH_LEVELS.join('|')}`);
|
|
17
|
-
}
|
|
18
|
-
checkValidUntil(fm.valid_until, today, out);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Both of these priced a team. The estimate prices a package now, so a
|
|
22
|
-
// document still carrying either is showing a number nothing computed.
|
|
23
|
-
function checkRemoved({ fm, md }, out) {
|
|
24
|
-
if ('scenario' in fm) out.push('frontmatter: "scenario" was removed — the estimate has one price');
|
|
25
|
-
if (/^##\s+Team\s*$/m.test(md)) out.push('the Team section was removed — this estimate prices a package, not a staffing plan');
|
|
26
|
-
const investment = sectionText(md, 'Investment & Timeline') ?? '';
|
|
27
|
-
if (DURATION_HEADER.test(investment)) {
|
|
28
|
-
out.push('Investment & Timeline must not carry a Duration column — the estimate produces no timeline');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function checkValidUntil(raw, today, out) {
|
|
33
|
-
if (!raw) return;
|
|
34
|
-
const wellFormed = /^\d{4}-\d{2}-\d{2}$/.test(raw) && !Number.isNaN(Date.parse(raw));
|
|
35
|
-
if (!wellFormed) { out.push('frontmatter: valid_until must be an ISO date (YYYY-MM-DD)'); return; }
|
|
36
|
-
if (new Date(raw) <= today) out.push(`frontmatter: valid_until ${raw} is not in the future`);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function checkSections(md, out) {
|
|
40
|
-
for (const name of SECTIONS) {
|
|
41
|
-
const body = sectionText(md, name);
|
|
42
|
-
if (body === null) { out.push(`missing ## ${name} section`); continue; }
|
|
43
|
-
if (!body.trim()) out.push(`## ${name} section is empty`);
|
|
44
|
-
}
|
|
45
|
-
const solution = sectionText(md, 'Proposed Solution');
|
|
46
|
-
if (solution !== null && !solution.includes('```mermaid')) {
|
|
47
|
-
out.push('Proposed Solution has no mermaid diagram');
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function checkPlaceholders(md, out) {
|
|
52
|
-
if (/\[TODO\]|\bTBD\b|\bTODO\b|lorem ipsum/i.test(md)) out.push('placeholder text found (TODO/TBD/lorem ipsum)');
|
|
53
|
-
for (const t of tables(md)) {
|
|
54
|
-
if (t.rows.length === 0) out.push(`empty table under header "${t.header.join(' | ')}"`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function checkDoc({ fm, md, today }, out = []) {
|
|
59
|
-
checkFrontmatter({ fm, today }, out);
|
|
60
|
-
checkRemoved({ fm, md }, out);
|
|
61
|
-
checkSections(md, out);
|
|
62
|
-
checkPlaceholders(md, out);
|
|
63
|
-
return out;
|
|
64
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// The proposal gate. validate.mjs prints these findings; render.mjs runs
|
|
2
|
-
// the same function and refuses to write proposal.html on any finding.
|
|
3
|
-
// Figures are recomputed from estimation.json here — proposal-figures.json
|
|
4
|
-
// is an authoring aid, never an input, so hand-edited figures cannot pass.
|
|
5
|
-
import { parseFrontmatter } from '../../../analyze-requirements/scripts/lib/frontmatter.mjs';
|
|
6
|
-
import { checkDoc } from './checks-doc.mjs';
|
|
7
|
-
import { checkClient } from './checks-client.mjs';
|
|
8
|
-
|
|
9
|
-
export function checkProposal({ md, estimation, today = new Date() }) {
|
|
10
|
-
const { data: fm, error } = parseFrontmatter(md);
|
|
11
|
-
if (!fm) return [`frontmatter: ${error}`];
|
|
12
|
-
const out = checkDoc({ fm, md, today });
|
|
13
|
-
// checkClient derives its figures from the estimate itself; an unpriced
|
|
14
|
-
// estimate can't quote a client, but that's a finding, not a crash.
|
|
15
|
-
try {
|
|
16
|
-
checkClient({ md, fm, estimation }, out);
|
|
17
|
-
} catch (e) {
|
|
18
|
-
out.push(`cannot check client-facing figures: ${e.message}`);
|
|
19
|
-
}
|
|
20
|
-
return out;
|
|
21
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// document.xml for the proposal: the same page data the HTML prints, in the
|
|
2
|
-
// same order, as Word headings, paragraphs, tables and lists. Diagrams are
|
|
3
|
-
// the page's drawn workflows as PNGs; a workflow with no image (the drawing
|
|
4
|
-
// failed) falls back to its steps written out.
|
|
5
|
-
import { para, bullets, table, image } from './docx-xml.mjs';
|
|
6
|
-
|
|
7
|
-
const NS = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" '
|
|
8
|
-
+ 'xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" '
|
|
9
|
-
+ 'xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';
|
|
10
|
-
const SECTION = '<w:sectPr><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:top="1134" w:right="1134" w:bottom="1134" w:left="1134" w:header="709" w:footer="709" w:gutter="0"/></w:sectPr>';
|
|
11
|
-
|
|
12
|
-
function scopeXml({ scope }) {
|
|
13
|
-
const head = scope.mapLabel ? ['System', scope.mapLabel] : ['System'];
|
|
14
|
-
const rows = scope.systems.map((s) => (scope.mapLabel ? [s.name, s.map] : [s.name]));
|
|
15
|
-
return para('Scope: what this proposal covers', 'Heading1') + para(scope.intro) + table(head, rows) + para(scope.outLine);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function systemXml(s, { images, first }) {
|
|
19
|
-
const flows = s.flows.map((f, i) => {
|
|
20
|
-
const img = images[first + i];
|
|
21
|
-
return para(f.label, 'Heading3') + (img ? image(img, first + i + 1) : para(f.steps));
|
|
22
|
-
}).join('');
|
|
23
|
-
return para(`System ${s.no}: ${s.name}`, 'Heading1') + para(s.purpose) + para(s.extra) + flows
|
|
24
|
-
+ table(['Feature', 'What it does'], s.features.map((f) => [f.name, f.does]));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function closingXml({ milestones, register, cost }) {
|
|
28
|
-
return para('Milestones', 'Heading1') + para(milestones.lead)
|
|
29
|
-
+ table(['Milestone', 'Includes', 'What it demonstrates'], milestones.rows.map((m) => [m.title, m.includes, m.demonstrates]))
|
|
30
|
-
+ para('Assumptions & exclusions', 'Heading1') + para(register.lead)
|
|
31
|
-
+ para('Assumptions', 'Heading2') + bullets(register.assumptions) + para('Exclusions', 'Heading2') + bullets(register.exclusions)
|
|
32
|
-
+ para('Cost estimate', 'Heading1') + para(cost.lead)
|
|
33
|
-
+ table(['Range', 'If one fixed number is needed'], [[cost.range, cost.single], [cost.rangeNote, cost.singleNote]]);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// images[k] belongs to the k-th workflow in page order (null when not drawn).
|
|
37
|
-
export function documentXml(view, images) {
|
|
38
|
-
const firsts = view.systems.map((_, i) => view.systems.slice(0, i).reduce((n, s) => n + s.flows.length, 0));
|
|
39
|
-
const body = para(view.title, 'Title') + para(view.byline, 'Subtitle') + scopeXml(view)
|
|
40
|
-
+ view.systems.map((s, i) => systemXml(s, { images, first: firsts[i] })).join('') + closingXml(view);
|
|
41
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<w:document ${NS}><w:body>${body}${SECTION}</w:body></w:document>`;
|
|
42
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// The DOCX package around document.xml: content types, relationships, the
|
|
2
|
-
// built-in styles the body uses, one bullet list, and the diagram PNGs.
|
|
3
|
-
// Standard Word styles only — the team restyles the copy they send.
|
|
4
|
-
import { zipStore } from '../../../estimate/shared/lib/zip.mjs';
|
|
5
|
-
import { documentXml } from './docx-body.mjs';
|
|
6
|
-
|
|
7
|
-
const XML = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n';
|
|
8
|
-
const W = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"';
|
|
9
|
-
const REL = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships';
|
|
10
|
-
const MAIN = 'application/vnd.openxmlformats-officedocument.wordprocessingml';
|
|
11
|
-
|
|
12
|
-
const CONTENT_TYPES = `${XML}<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">`
|
|
13
|
-
+ '<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>'
|
|
14
|
-
+ '<Default Extension="xml" ContentType="application/xml"/><Default Extension="png" ContentType="image/png"/>'
|
|
15
|
-
+ `<Override PartName="/word/document.xml" ContentType="${MAIN}.document.main+xml"/>`
|
|
16
|
-
+ `<Override PartName="/word/styles.xml" ContentType="${MAIN}.styles+xml"/>`
|
|
17
|
-
+ `<Override PartName="/word/numbering.xml" ContentType="${MAIN}.numbering+xml"/></Types>`;
|
|
18
|
-
|
|
19
|
-
const ROOT_RELS = `${XML}<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`
|
|
20
|
-
+ `<Relationship Id="rId1" Type="${REL}/officeDocument" Target="word/document.xml"/></Relationships>`;
|
|
21
|
-
|
|
22
|
-
const pStyle = (id, name, props) => `<w:style w:type="paragraph" w:styleId="${id}"><w:name w:val="${name}"/><w:basedOn w:val="Normal"/><w:next w:val="Normal"/>${props}</w:style>`;
|
|
23
|
-
const heading = (level, size, color) => pStyle(`Heading${level}`, `heading ${level}`,
|
|
24
|
-
`<w:pPr><w:keepNext/><w:spacing w:before="${level === 1 ? 360 : 240}" w:after="120"/><w:outlineLvl w:val="${level - 1}"/></w:pPr><w:rPr><w:b/><w:color w:val="${color}"/><w:sz w:val="${size}"/></w:rPr>`);
|
|
25
|
-
const BORDER = ['top', 'left', 'bottom', 'right', 'insideH', 'insideV'].map((b) => `<w:${b} w:val="single" w:sz="4" w:space="0" w:color="D9DDE3"/>`).join('');
|
|
26
|
-
|
|
27
|
-
const STYLES = `${XML}<w:styles ${W}><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri" w:cs="Calibri"/><w:sz w:val="22"/></w:rPr></w:rPrDefault>`
|
|
28
|
-
+ '<w:pPrDefault><w:pPr><w:spacing w:after="120" w:line="276" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults>'
|
|
29
|
-
+ '<w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/></w:style>'
|
|
30
|
-
+ pStyle('Title', 'Title', '<w:pPr><w:spacing w:after="80"/></w:pPr><w:rPr><w:b/><w:sz w:val="44"/></w:rPr>')
|
|
31
|
-
+ pStyle('Subtitle', 'Subtitle', '<w:rPr><w:color w:val="5C6470"/><w:sz w:val="24"/></w:rPr>')
|
|
32
|
-
+ heading(1, 32, '0F5C5A') + heading(2, 24, '1A1D21') + heading(3, 22, '5C6470')
|
|
33
|
-
+ pStyle('ListParagraph', 'List Paragraph', '<w:pPr><w:ind w:left="720"/></w:pPr>')
|
|
34
|
-
+ `<w:style w:type="table" w:styleId="TableGrid"><w:name w:val="Table Grid"/><w:tblPr><w:tblBorders>${BORDER}</w:tblBorders>`
|
|
35
|
-
+ '<w:tblCellMar><w:top w:w="60" w:type="dxa"/><w:left w:w="100" w:type="dxa"/><w:bottom w:w="60" w:type="dxa"/><w:right w:w="100" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style></w:styles>';
|
|
36
|
-
|
|
37
|
-
const NUMBERING = `${XML}<w:numbering ${W}><w:abstractNum w:abstractNumId="0"><w:multiLevelType w:val="hybridMultilevel"/>`
|
|
38
|
-
+ '<w:lvl w:ilvl="0"><w:start w:val="1"/><w:numFmt w:val="bullet"/><w:lvlText w:val="•"/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="720" w:hanging="360"/></w:pPr></w:lvl>'
|
|
39
|
-
+ '</w:abstractNum><w:num w:numId="1"><w:abstractNumId w:val="0"/></w:num></w:numbering>';
|
|
40
|
-
|
|
41
|
-
function documentRels(images) {
|
|
42
|
-
const media = images.map((img, i) => (img ? `<Relationship Id="rIdImg${i + 1}" Type="${REL}/image" Target="media/image${i + 1}.png"/>` : '')).join('');
|
|
43
|
-
return `${XML}<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`
|
|
44
|
-
+ `<Relationship Id="rIdStyles" Type="${REL}/styles" Target="styles.xml"/><Relationship Id="rIdNumbering" Type="${REL}/numbering" Target="numbering.xml"/>${media}</Relationships>`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// images: one entry per workflow in page order, { bytes, width, height } or null.
|
|
48
|
-
export function buildDocx(view, images) {
|
|
49
|
-
const enc = new TextEncoder();
|
|
50
|
-
const files = new Map([
|
|
51
|
-
['[Content_Types].xml', CONTENT_TYPES], ['_rels/.rels', ROOT_RELS], ['word/document.xml', documentXml(view, images)],
|
|
52
|
-
['word/_rels/document.xml.rels', documentRels(images)], ['word/styles.xml', STYLES], ['word/numbering.xml', NUMBERING],
|
|
53
|
-
].map(([path, xml]) => [path, enc.encode(xml)]));
|
|
54
|
-
images.forEach((img, i) => { if (img) files.set(`word/media/image${i + 1}.png`, img.bytes); });
|
|
55
|
-
return zipStore(files);
|
|
56
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// WordprocessingML pieces for the proposal's DOCX: paragraphs, tables, bullet
|
|
2
|
-
// lists and inline images, in the styles docx-package.mjs defines. Pure
|
|
3
|
-
// strings, no DOM: Node tests read exactly what the page writes. Like the
|
|
4
|
-
// zip writer it ships twice, imported here and inlined into the page.
|
|
5
|
-
const TEXT_WIDTH = 9638; // twips: A4 width less two 2 cm margins
|
|
6
|
-
const EMU_PER_PX = 9525;
|
|
7
|
-
const EMU_PER_TWIP = 635;
|
|
8
|
-
|
|
9
|
-
// Control characters other than tab/newline are not allowed in XML 1.0.
|
|
10
|
-
export const xmlText = (s) => String(s).replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f]/g, '')
|
|
11
|
-
.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>');
|
|
12
|
-
|
|
13
|
-
const run = (text, bold) => `<w:r>${bold ? '<w:rPr><w:b/></w:rPr>' : ''}<w:t xml:space="preserve">${xmlText(text)}</w:t></w:r>`;
|
|
14
|
-
|
|
15
|
-
export function para(text, style) {
|
|
16
|
-
if (!text) return '';
|
|
17
|
-
return `<w:p>${style ? `<w:pPr><w:pStyle w:val="${style}"/></w:pPr>` : ''}${run(text)}</w:p>`;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const bullets = (items) => items.map((t) => `<w:p><w:pPr><w:pStyle w:val="ListParagraph"/><w:numPr><w:ilvl w:val="0"/><w:numId w:val="1"/></w:numPr></w:pPr>${run(t)}</w:p>`).join('');
|
|
21
|
-
|
|
22
|
-
function row(cells, head) {
|
|
23
|
-
const cell = (c) => `<w:tc><w:p>${run(c, head)}</w:p></w:tc>`;
|
|
24
|
-
return `<w:tr>${head ? '<w:trPr><w:tblHeader/></w:trPr>' : ''}${cells.map(cell).join('')}</w:tr>`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function table(head, rows) {
|
|
28
|
-
const col = Math.floor(TEXT_WIDTH / head.length);
|
|
29
|
-
const grid = head.map(() => `<w:gridCol w:w="${col}"/>`).join('');
|
|
30
|
-
return `<w:tbl><w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="5000" w:type="pct"/></w:tblPr><w:tblGrid>${grid}</w:tblGrid>${row(head, true)}${rows.map((r) => row(r, false)).join('')}</w:tbl><w:p/>`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// One diagram, scaled down to the text width, never up. n is the image's
|
|
34
|
-
// 1-based number: its media file, relationship id and drawing id.
|
|
35
|
-
export function image(img, n) {
|
|
36
|
-
const scale = Math.min(1, (TEXT_WIDTH * EMU_PER_TWIP) / (img.width * EMU_PER_PX));
|
|
37
|
-
const cx = Math.round(img.width * EMU_PER_PX * scale);
|
|
38
|
-
const cy = Math.round(img.height * EMU_PER_PX * scale);
|
|
39
|
-
const pic = `<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="${n}" name="diagram${n}.png"/><pic:cNvPicPr/></pic:nvPicPr>`
|
|
40
|
-
+ `<pic:blipFill><a:blip r:embed="rIdImg${n}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill>`
|
|
41
|
-
+ `<pic:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${cx}" cy="${cy}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic>`;
|
|
42
|
-
return `<w:p><w:r><w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${cx}" cy="${cy}"/><wp:docPr id="${n}" name="Diagram ${n}"/>`
|
|
43
|
-
+ `<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">${pic}</a:graphicData></a:graphic></wp:inline></w:drawing></w:r></w:p>`;
|
|
44
|
-
}
|