@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
|
@@ -319,6 +319,53 @@ select option, select optgroup { background:var(--sheet); color:var(--ink); }
|
|
|
319
319
|
.lpick-o { font-size:.88rem; padding:.3rem .7rem .3rem 1.3rem; cursor:pointer; }
|
|
320
320
|
.lpick-o.lpick-cur { background:var(--hi); }
|
|
321
321
|
.lpick-none { padding:.4rem .7rem; font-size:.85rem; }
|
|
322
|
+
/* tasks and hours per feature, beside the scores */
|
|
323
|
+
.effort { text-align:right; } .effort b { display:block; font-family:var(--serif); font-size:1.5rem; font-variant-numeric:tabular-nums; } .effort span { display:block; font-size:.74rem; color:var(--ink-dim); }
|
|
324
|
+
.effort .stale { color:var(--mark); font-weight:600; }
|
|
325
|
+
.crow .chrs.zero { color:var(--mark); font-weight:600; font-size:.78rem; }
|
|
326
|
+
/* hover and pin: a highlight you can see, soft motion, real hit areas */
|
|
327
|
+
body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
|
|
328
|
+
h1, h2, h3 { text-wrap:balance; } .lead, .does, .sec-lead, .quiet, .anchor { text-wrap:pretty; }
|
|
329
|
+
:root { --hl-bg:color-mix(in srgb, var(--hi-line) 13%, var(--sheet)); --hl-ring:color-mix(in srgb, var(--hi-line) 45%, transparent); --ease:cubic-bezier(.2,0,0,1); }
|
|
330
|
+
.feat { padding-inline:1rem; margin-inline:-1rem; transition-property:background-color, box-shadow; transition-duration:.18s; transition-timing-function:var(--ease); }
|
|
331
|
+
.feat.hl { background:var(--hl-bg); box-shadow:inset 4px 0 0 var(--hi-line), inset 0 0 0 1px var(--hl-ring); }
|
|
332
|
+
.feat.cur { box-shadow:inset 4px 0 0 var(--hi-line), inset 0 0 0 2px var(--hi-line); }
|
|
333
|
+
.feat.hl .rail h3 { text-decoration:underline; text-decoration-color:var(--hi-line); text-decoration-thickness:2px; text-underline-offset:3px; }
|
|
334
|
+
.crow, .cmini, .chip, .cap, table.caps td, details.tasks summary { transition-property:background-color, border-color, box-shadow, color; transition-duration:.15s; transition-timing-function:var(--ease); }
|
|
335
|
+
.crow:hover { border-color:var(--rule); }
|
|
336
|
+
.crow.hl { background:var(--hl-bg); border-color:var(--hi-line); box-shadow:0 0 0 1px var(--hi-line); }
|
|
337
|
+
.crow.added.hl { box-shadow:0 0 0 1px var(--hi-line), 0 0 0 3px var(--ok); }
|
|
338
|
+
.cmini.hl, .chip.hl, .cap.hl { background:var(--hl-bg); border-color:var(--hi-line); }
|
|
339
|
+
table.caps tr.hl td { background:var(--hl-bg); }
|
|
340
|
+
.btn, .seg button { transition-property:scale, color, border-color, background-color; transition-duration:.12s; transition-timing-function:var(--ease); }
|
|
341
|
+
.btn:active, .seg button:active { scale:.96; }
|
|
342
|
+
.crow button { position:relative; } .crow button::after { content:''; position:absolute; inset:-.65rem -.45rem; }
|
|
343
|
+
.price, [data-total] { font-variant-numeric:tabular-nums; }
|
|
344
|
+
/* the task table per feature, and the links between a score and the tasks it cites (score review and estimate page) */
|
|
345
|
+
details.tasks { margin-top:.7rem; border:1px solid var(--grid); border-radius:.3rem; background:var(--paper); }
|
|
346
|
+
details.tasks summary { cursor:pointer; padding:.45rem .7rem; font-size:.76rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-dim); }
|
|
347
|
+
details.tasks summary:hover { color:var(--ink); }
|
|
348
|
+
details.tasks table { width:100%; border-collapse:collapse; font-size:.8rem; }
|
|
349
|
+
details.tasks th { text-align:left; font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-dim); padding:.3rem .7rem; border-top:1px solid var(--rule); }
|
|
350
|
+
details.tasks td { padding:.35rem .7rem; border-top:1px solid var(--grid); vertical-align:top; }
|
|
351
|
+
details.tasks .r { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
|
|
352
|
+
details.tasks td .dim { font-size:.72rem; }
|
|
353
|
+
.conf { font-size:.7rem; font-weight:700; } .conf.c-LOW { color:var(--mark); } .conf.c-MED { color:var(--hi-line); } .conf.c-HIGH { color:var(--ok); }
|
|
354
|
+
details.tasks td.n { color:var(--ink-dim); width:2.2rem; } details.tasks td.box { color:var(--ink-dim); font-size:.76rem; white-space:nowrap; }
|
|
355
|
+
details.tasks .step { display:inline-block; font-size:.68rem; color:var(--ink-dim); border:1px solid var(--rule); border-radius:.2rem; padding:0 .3rem; margin-right:.35rem; white-space:nowrap; text-transform:none; letter-spacing:0; }
|
|
356
|
+
details.tasks .step.new { color:var(--hi-line); border-color:var(--hi-line); }
|
|
357
|
+
details.tasks summary .warn, .fwarn { color:var(--hi-line); font-weight:700; text-transform:none; letter-spacing:0; }
|
|
358
|
+
details.tasks tbody tr { transition:background-color .12s var(--ease), box-shadow .12s var(--ease); }
|
|
359
|
+
details.tasks tbody tr.lit { background:var(--hl-bg); box-shadow:inset 3px 0 0 var(--hi-line); }
|
|
360
|
+
details.tasks tbody tr.flash { animation:rowflash 1.3s ease-out; }
|
|
361
|
+
@keyframes rowflash { 0%, 35% { background:var(--hl-bg); box-shadow:inset 3px 0 0 var(--hi-line); } }
|
|
362
|
+
.factor { transition:opacity .15s var(--ease); } .factor.fade { opacity:.35; }
|
|
363
|
+
.cites { display:flex; flex-wrap:wrap; gap:.2rem; margin-top:.35rem; }
|
|
364
|
+
.cite { font:inherit; font-size:.7rem; font-weight:600; padding:0 .4rem; border:1px solid var(--rule); border-radius:.8rem; background:var(--paper); color:var(--ink); cursor:pointer; font-variant-numeric:tabular-nums; }
|
|
365
|
+
.cite:hover, .cite:focus-visible, .cite.lit { background:var(--hl-bg); border-color:var(--hi-line); }
|
|
366
|
+
.cite.gone { text-decoration:line-through; color:var(--ink-dim); cursor:default; }
|
|
367
|
+
.fwarn { font-size:.7rem; margin-top:.3rem; }
|
|
368
|
+
@media (prefers-reduced-motion:reduce) { details.tasks tbody tr, .factor { transition:none; } details.tasks tbody tr.flash { animation:none; } }
|
|
322
369
|
</style>
|
|
323
370
|
</head>
|
|
324
371
|
<body>
|
|
@@ -365,7 +412,7 @@ select option, select optgroup { background:var(--sheet); color:var(--ink); }
|
|
|
365
412
|
<div class="actions">
|
|
366
413
|
<button class="btn" id="reset" type="button">Start over</button>
|
|
367
414
|
<button class="btn next" id="nextc" type="button" title="Jump to the next gap, changed or flagged item (n)">Next to check ↓</button>
|
|
368
|
-
<button class="btn primary" id="preview" type="button">Review & send →</button> <span class="quiet">You can reopen this page later; your changes stay in this browser.</span>
|
|
415
|
+
<button class="btn primary" id="preview" type="button">Review & send →</button> <span class="quiet" id="finishNote">You can reopen this page later; your changes stay in this browser.</span>
|
|
369
416
|
</div>
|
|
370
417
|
</div></div>
|
|
371
418
|
|
|
@@ -387,9 +434,10 @@ select option, select optgroup { background:var(--sheet); color:var(--ink); }
|
|
|
387
434
|
<script type="application/json" id="page-data"><!-- slot:DATA --></script>
|
|
388
435
|
<script type="module">
|
|
389
436
|
const PAGE = JSON.parse(document.getElementById('page-data').textContent);
|
|
390
|
-
const DATA = PAGE.data; const ENG = PAGE.eng; const IMPLEMENTS = PAGE.implements; const CAP_SCORES = PAGE.scores; const TASKS =
|
|
437
|
+
const DATA = PAGE.data; const ENG = PAGE.eng; const IMPLEMENTS = PAGE.implements; const CAP_SCORES = PAGE.scores; const TASKS = PAGE.tasks;
|
|
391
438
|
// FINAL: the Component-based page of the estimate, the same layout read-only after sign-off, plus tasks and hours
|
|
392
439
|
const FINAL = false;
|
|
440
|
+
const EFFORT = FINAL || Object.keys(TASKS).length > 0; // the Effort side: tasks and hours per feature
|
|
393
441
|
const K = ['tech', 'size', 'deps', 'unc', 'risk'];
|
|
394
442
|
const LABEL = { tech: 'Tech', size: 'Size', deps: 'Deps', unc: 'Uncertainty', risk: 'Risk' };
|
|
395
443
|
const ANCHOR = PAGE.anchor;
|
|
@@ -418,8 +466,25 @@ if (!FINAL) try { const v = JSON.parse(localStorage.getItem(STORE) || '{}');
|
|
|
418
466
|
for (const [o, src] of [[notes, v.notes], [reasons, v.reasons], [asks, v.asks]]) Object.assign(o, src || {});
|
|
419
467
|
for (const [id, sc] of Object.entries(v.scores || {})) if (cur[id]) Object.assign(cur[id], sc);
|
|
420
468
|
for (const [id, l] of Object.entries(v.links || {})) if (links[id]) links[id] = l.filter((c) => capById[c]); } catch { /* start fresh */ }
|
|
469
|
+
if (window.lavish) { for (const id of ['reset', 'nextc', 'saved']) $('#' + id).style.display = 'none'; document.head.insertAdjacentHTML('beforeend', '<style>.bar .in { padding:.35rem 1.5rem; } .bar .actions { flex-direction:column; align-items:flex-end; gap:.15rem; } #finishNote { font-size:.72rem; } .note, .reason { display:none !important; }</style>'); $('#preview').textContent = 'Finish → send to the agent'; $('#finishNote').textContent = "Edits are not kept: finish here, not with Send & End."; }
|
|
470
|
+
function finish() {
|
|
471
|
+
const gaps = notBuiltCount();
|
|
472
|
+
if (gaps) { $('#finishNote').textContent = gaps + (gaps === 1 ? ' feature' : ' features') + ' not built yet: link a component first.'; $('#goGap').click(); return; }
|
|
473
|
+
window.lavish.queuePrompt("Score review feedback, final: save the JSON that follows the `Context data:` line and fold it in with score-review.mjs --read.", { tag: 'score-feedback', queueKey: 'score-feedback', text: 'Score review feedback', data: window.__feedback() });
|
|
474
|
+
window.lavish.sendQueuedPrompts();
|
|
475
|
+
$('#preview').disabled = true; $('#finishNote').textContent = 'Sent. The agent takes it from here.';
|
|
476
|
+
}
|
|
477
|
+
const LAVISH_UNITS = '.who, .score-box > *, .factor, .crow, details.tasks tr:has(td), tr[data-cap], #strip > div, #unasked > *';
|
|
478
|
+
function toLavishUnit(e) {
|
|
479
|
+
if (!e.isTrusted || !document.getElementById('lavish-cursor-style') || e.target.closest?.('button, input, select, textarea, a[href], summary, label, [role], pre.wfchart, [data-lavish-ui], [data-lavish-action]')) return;
|
|
480
|
+
e.stopPropagation();
|
|
481
|
+
const unit = e.type !== 'mouseup' && e.target.closest?.(LAVISH_UNITS);
|
|
482
|
+
if (unit) unit.dispatchEvent(new MouseEvent(e.type, e));
|
|
483
|
+
}
|
|
484
|
+
if (window.lavish) for (const t of ['mouseover', 'click', 'mouseup']) addEventListener(t, toLavishUnit, true);
|
|
421
485
|
function save() {
|
|
422
486
|
if (FINAL) return;
|
|
487
|
+
if (window.lavish) return;
|
|
423
488
|
try { localStorage.setItem(STORE, JSON.stringify({ scores: cur, notes, reasons, links, asks }));
|
|
424
489
|
$('#saved').textContent = `Saved in this browser at ${new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}`; }
|
|
425
490
|
catch { $('#saved').textContent = 'This browser cannot save; copy the feedback before closing.'; }
|
|
@@ -454,7 +519,7 @@ const capRefs = (c) => new Set(c.steps.includes('*') ? stepsOfSys(c.sys) : c.ste
|
|
|
454
519
|
const stepName = (r) => r.slice(r.indexOf(':') + 1);
|
|
455
520
|
function diagrams(s) {
|
|
456
521
|
return flowsOf(s).map((fl) => { const m = flowCode(fl);
|
|
457
|
-
return `<p class="flow-name">${fl === s.main ? 'Main' : 'Sub'} · ${esc(fl.name)}</p><div class="flow" data-map="${esc(JSON.stringify(m.map))}"><pre class="
|
|
522
|
+
return `<p class="flow-name">${fl === s.main ? 'Main' : 'Sub'} · ${esc(fl.name)}</p><div class="flow" data-map="${esc(JSON.stringify(m.map))}"><pre class="wfchart">${esc(m.code)}</pre></div>`; }).join('');
|
|
458
523
|
}
|
|
459
524
|
function capRow(c) {
|
|
460
525
|
const steps = c.steps.includes('*') ? '<span class="chip">every step</span>' : c.steps.map((r) => `<span class="chip">${esc(stepName(r))}</span>`).join('') || '<span class="chip">off-step</span>';
|
|
@@ -474,16 +539,16 @@ function paintCap(c) {
|
|
|
474
539
|
// ---- feature cards, one section per system ----
|
|
475
540
|
function factorHtml(c, k) {
|
|
476
541
|
if (FINAL) { const n = cur[c.id][k];
|
|
477
|
-
return `<div class="factor ro"><div class="flabel">${LABEL[k]}<i>${WEIGHTS[k] * 100}%</i></div><div class="ro-n${n === 5 ? ' hot' : ''}">${n}<span>/5</span></div><p class="anchor">${esc(ANCHOR[k][n - 1])}</p></div>`; }
|
|
542
|
+
return `<div class="factor ro"><div class="flabel">${LABEL[k]}<i>${WEIGHTS[k] * 100}%</i></div><div class="ro-n${n === 5 ? ' hot' : ''}">${n}<span>/5</span></div><p class="anchor">${esc(ANCHOR[k][n - 1])}</p><div data-cites="${c.id}:${k}"></div></div>`; }
|
|
478
543
|
const pick = [1, 2, 3, 4, 5].map((n) => `<button type="button" data-f="${c.id}" data-k="${k}" data-n="${n}" title="${n} — ${esc(ANCHOR[k][n - 1])}">${n}</button>`).join('');
|
|
479
544
|
// the read-back contract: one hidden select per score, value 1–5, title = rubric anchor
|
|
480
545
|
const sel = `<select class="hide" data-id="${c.id}" data-key="${k}">${[1, 2, 3, 4, 5].map((n) => `<option value="${n}" title="${esc(ANCHOR[k][n - 1])}">${n}</option>`).join('')}</select>`;
|
|
481
546
|
return `<div class="factor" data-fk="${c.id}:${k}"><div class="flabel">${LABEL[k]}<i>${WEIGHTS[k] * 100}%</i></div>${sel}
|
|
482
|
-
<div class="pick">${pick}</div><p class="anchor"></p><div class="reason hide"><p class="was"></p><textarea data-reason="${c.id}:${k}" rows="2" placeholder="Why this score? e.g. no sample emails yet"></textarea></div></div>`;
|
|
547
|
+
<div class="pick">${pick}</div><p class="anchor"></p><div data-cites="${c.id}:${k}"></div><div class="reason hide"><p class="was"></p><textarea data-reason="${c.id}:${k}" rows="2" placeholder="Why this score? e.g. no sample emails yet"></textarea></div></div>`;
|
|
483
548
|
}
|
|
484
549
|
function capHtml(c) {
|
|
485
550
|
const who = `<div class="who"><div class="id">${c.id} · System ${sysNo(c.id)} · ${esc(c.sys.name.split(' (')[0])}<span data-ms="${c.id}"></span></div><h3>${esc(c.name)}</h3><p class="does">${esc(c.does)}</p></div>`;
|
|
486
|
-
const effort =
|
|
551
|
+
const effort = EFFORT ? `<div class="side-effort effort"><b data-hrs="${c.id}"></b><span>expected effort of its components</span><span class="stale" data-stale="${c.id}"></span></div>` : '';
|
|
487
552
|
const box = `<div class="score-box"><div class="side-score"><div class="verdict"><span class="total">Σ <b data-total="${c.id}"></b></span><span class="tier" data-tier="${c.id}"></span><span class="moved" data-moved="${c.id}"></span></div>
|
|
488
553
|
<div class="price" data-price="${c.id}"></div><div data-flag="${c.id}"></div></div>${effort}</div>`;
|
|
489
554
|
const note = FINAL ? '' : `<label class="note">Note in plain words (optional)<textarea data-note="${c.id}" rows="3" placeholder="e.g. scan rules need sample barcodes before we can price it tighter"></textarea></label>`;
|
|
@@ -491,14 +556,85 @@ function capHtml(c) {
|
|
|
491
556
|
<div class="builds" data-builtby="${c.id}"></div>
|
|
492
557
|
<div class="side-score"><div class="factors">${K.map((k) => factorHtml(c, k)).join('')}</div>${note}</div></article>`;
|
|
493
558
|
}
|
|
494
|
-
// ----
|
|
495
|
-
|
|
559
|
+
// ---- tasks per feature: one table across the components that build it ----
|
|
560
|
+
// TASKS[component]: [name, low, expected, high, confidence, assumptions, features, source, id].
|
|
561
|
+
// A task shared by k features counts 1/k of its hours on each card, so the
|
|
562
|
+
// cards add up to the project total.
|
|
563
|
+
const pert = (x) => x[2]; // expected hours from estimation.json (agentic baselines)
|
|
496
564
|
const hoursOf = (id) => Math.round((typeof TASKS === 'undefined' ? [] : TASKS[id] || []).reduce((n, x) => n + pert(x), 0));
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
565
|
+
const tasksFor = (id, capId) => (TASKS[id] || []).filter((x) => x[6].includes(capId));
|
|
566
|
+
const hrs1 = (n) => Math.round(n * 10) / 10; // one decimal: a 1/5 share of 7.3h is 1.5h, not 1h
|
|
567
|
+
const hoursFor = (id, capId) => hrs1(tasksFor(id, capId).reduce((n, x) => n + pert(x) / x[6].length, 0));
|
|
568
|
+
const sysHours = (ids) => Math.round(COMPS.flatMap((b) => TASKS[b.id] || []).filter((x) => x[6].some((f) => ids.includes(f))).reduce((n, x) => n + pert(x), 0));
|
|
569
|
+
function sharedNote(x, capId) {
|
|
570
|
+
const others = x[6].filter((f) => f !== capId);
|
|
571
|
+
return others.length ? `<div class="dim">shared with ${others.map(esc).join(', ')} · 1/${x[6].length} of its ${hrs1(pert(x))}h counted here</div>` : '';
|
|
572
|
+
}
|
|
573
|
+
// where a task comes from: "WF-002:Pack" shows as Pack (the card names the workflow); "new" is work the BA package never named
|
|
574
|
+
const stepTag = (src) => (src ? `<span class="step${src === 'new' ? ' new' : ''}">${esc(src.replace(/^WF-[^:]+:/, ''))}</span>` : '');
|
|
575
|
+
function taskRow([x, b], i, capId) {
|
|
576
|
+
const note = x[5] ? `<div class="dim">${esc(x[5])}</div>` : '';
|
|
577
|
+
return `<tr data-task="${esc(x[8])}"><td class="n">t${i + 1}</td><td class="task">${stepTag(x[7])}${esc(x[0])}${note}${sharedNote(x, capId)}</td><td class="box">${esc(b.name)}</td>`
|
|
578
|
+
+ `<td class="r">${x[1]} / ${x[2]} / ${x[3]}</td><td class="r share"><b>${hrs1(pert(x) / x[6].length)}h</b></td><td><span class="conf c-${x[4]}">${x[4]}</span></td></tr>`;
|
|
579
|
+
}
|
|
580
|
+
const featureTasks = (by, capId) => by.flatMap((bid) => tasksFor(bid, capId).map((x) => [x, compById[bid]]));
|
|
581
|
+
// new work (source "new") the Uncertainty score does not cite
|
|
582
|
+
const uncitedNew = (capId, rows) => rows.filter(([x]) => x[7] === 'new' && !(PAGE.cites?.[capId]?.unc.tasks ?? []).includes(x[8]));
|
|
583
|
+
function featureTasksHtml(by, capId) {
|
|
584
|
+
const rows = featureTasks(by, capId);
|
|
585
|
+
const hrs = hrs1(rows.reduce((n, [x]) => n + pert(x) / x[6].length, 0));
|
|
586
|
+
const fresh = rows.filter(([x]) => x[7] === 'new').length; const loose = uncitedNew(capId, rows).length;
|
|
587
|
+
const warn = loose ? ` <span class="warn">⚠ ${loose} new, not cited</span>` : '';
|
|
588
|
+
return `<details class="tasks"><summary>Tasks · ${rows.length} tasks · ${hrs}h · ${by.length} components${fresh ? ` · ${fresh} new` : ''}${warn}</summary>`
|
|
589
|
+
+ `<table><thead><tr><th>#</th><th>Task</th><th>Component</th><th class="r">Low / Expected / High h</th><th class="r">This feature</th><th>Confidence</th></tr></thead>`
|
|
590
|
+
+ `<tbody>${rows.map((r, i) => taskRow(r, i, capId)).join('')}</tbody></table></details>`;
|
|
591
|
+
}
|
|
592
|
+
// ---- each score's reason and the tasks it rests on (PAGE.cites) ----
|
|
593
|
+
// A cite lights its rows; a row lights the scores that cite it and fades the
|
|
594
|
+
// rest; clicking a cite opens the task table at that row.
|
|
595
|
+
const citeOf = (capId, k) => PAGE.cites?.[capId]?.[k] ?? { text: '', tasks: [] };
|
|
596
|
+
function citeChip(id, rows) {
|
|
597
|
+
const i = rows.findIndex(([x]) => x[8] === id);
|
|
598
|
+
return i < 0 ? `<span class="cite gone" title="no longer serves this feature">${esc(id)}</span>`
|
|
599
|
+
: `<button type="button" class="cite" data-task="${esc(id)}" title="${esc(rows[i][0][0])}">t${i + 1}</button>`;
|
|
600
|
+
}
|
|
601
|
+
function citesHtml(capId, k) {
|
|
602
|
+
const c = citeOf(capId, k); const rows = featureTasks(buildersOf(capId), capId);
|
|
603
|
+
const chips = c.tasks.map((id) => citeChip(id, rows)).join('');
|
|
604
|
+
const loose = k === 'unc' ? uncitedNew(capId, rows) : [];
|
|
605
|
+
const warn = loose.length ? `<div class="fwarn">⚠ new work not cited: ${loose.map(([x]) => esc(x[0])).join(', ')}</div>` : '';
|
|
606
|
+
return `${c.text ? `<p class="why">${esc(c.text)}</p>` : ''}${chips ? `<div class="cites">${chips}</div>` : ''}${warn}`;
|
|
607
|
+
}
|
|
608
|
+
function paintCites(capId) {
|
|
609
|
+
for (const k of K) { const el = $(`[data-cites="${capId}:${k}"]`); if (el) el.innerHTML = citesHtml(capId, k); }
|
|
501
610
|
}
|
|
611
|
+
const clearLit = (art) => art.querySelectorAll('.lit, .fade').forEach((e) => e.classList.remove('lit', 'fade'));
|
|
612
|
+
function lightCite(btn) {
|
|
613
|
+
const art = btn.closest('.feat'); clearLit(art); btn.classList.add('lit');
|
|
614
|
+
art.querySelectorAll(`tr[data-task="${btn.dataset.task}"]`).forEach((r) => r.classList.add('lit'));
|
|
615
|
+
}
|
|
616
|
+
function lightRow(tr) {
|
|
617
|
+
const art = tr.closest('.feat'); clearLit(art); tr.classList.add('lit');
|
|
618
|
+
art.querySelectorAll('.factor').forEach((f) => {
|
|
619
|
+
const hit = f.querySelectorAll(`.cite[data-task="${tr.dataset.task}"]`);
|
|
620
|
+
hit.forEach((b) => b.classList.add('lit')); if (!hit.length) f.classList.add('fade');
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
for (const t of ['mouseover', 'focusin']) {
|
|
624
|
+
document.addEventListener(t, (e) => {
|
|
625
|
+
if (document.getElementById('lavish-cursor-style')) return; // Lavish comment mode outlines units itself
|
|
626
|
+
const btn = e.target.closest?.('.cite[data-task]'); if (btn) { lightCite(btn); return; }
|
|
627
|
+
const tr = e.target.closest?.('details.tasks tr[data-task]'); if (tr) { lightRow(tr); return; }
|
|
628
|
+
const art = e.target.closest?.('.feat'); if (art) clearLit(art);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
document.addEventListener('click', (e) => {
|
|
632
|
+
const btn = e.target.closest?.('.cite[data-task]'); if (!btn) return;
|
|
633
|
+
const art = btn.closest('.feat'); art.querySelector('details.tasks').open = true;
|
|
634
|
+
const row = art.querySelector(`tr[data-task="${btn.dataset.task}"]`); if (!row) return;
|
|
635
|
+
row.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
|
636
|
+
row.classList.remove('flash'); void row.offsetWidth; row.classList.add('flash');
|
|
637
|
+
});
|
|
502
638
|
// the architecture document holds the C4 views; this page links there instead of redrawing them.
|
|
503
639
|
// PAGE.c3 maps a container's name to its id when it has components (a C3 view); the rest live in C2.
|
|
504
640
|
const ARCH = PAGE.arch;
|
|
@@ -567,12 +703,14 @@ document.addEventListener('mouseover', (e) => {
|
|
|
567
703
|
o.parentNode.querySelectorAll('.lpick-cur').forEach((x) => x.classList.remove('lpick-cur'));
|
|
568
704
|
o.classList.add('lpick-cur');
|
|
569
705
|
});
|
|
706
|
+
// a component newly linked to a feature has no task serving it until the agent writes one
|
|
707
|
+
const chrsHtml = (bid, capId) => (tasksFor(bid, capId).length ? `<span class="chrs">${hoursFor(bid, capId)}h</span>` : '<span class="chrs zero">0h · no tasks for this feature yet</span>');
|
|
570
708
|
// one row per component: its container, its name, and the other features it builds
|
|
571
709
|
function compRow(bid, capId, cls = '') {
|
|
572
710
|
const b = compById[bid]; const others = links[bid].filter((c) => c !== capId);
|
|
573
711
|
const also = alsoHtml(others);
|
|
574
712
|
const x = !FINAL && !cls.includes('removed') ? `<button type="button" data-unlink="${bid}:${capId}" title="This component does not build it">×</button>` : '';
|
|
575
|
-
return `<div class="crow${cls}" data-comp-chip="${bid}"><span class="ccont">${esc(b.container)}</span><b class="cname">${esc(b.name)}</b><span class="calso">${also}</span>${
|
|
713
|
+
return `<div class="crow${cls}" data-comp-chip="${bid}"><span class="ccont">${esc(b.container)}</span><b class="cname">${esc(b.name)}</b><span class="calso">${also}</span>${EFFORT && !cls.includes('removed') ? chrsHtml(bid, capId) : ''}${x}</div>`;
|
|
576
714
|
}
|
|
577
715
|
// the "Built by" panel on a feature card: rows (× unlinks), a picker to add one, or the gap
|
|
578
716
|
function paintBuilt(capId) {
|
|
@@ -581,14 +719,16 @@ function paintBuilt(capId) {
|
|
|
581
719
|
$(`[data-ms="${capId}"]`).textContent = ms ? ` · ${ms}` : '';
|
|
582
720
|
box.classList.toggle('none', !by.length);
|
|
583
721
|
const head = by.length ? `Built by <b>${by.length}</b> component${by.length > 1 ? 's' : ''} in <b>${conts.length}</b> container${conts.length > 1 ? 's' : ''}` : 'Not built yet';
|
|
584
|
-
|
|
585
|
-
|
|
722
|
+
const tasks = EFFORT ? featureTasksHtml(by, capId) : ''; paintCites(capId);
|
|
723
|
+
if (EFFORT) $(`[data-hrs="${capId}"]`).textContent = `${by.reduce((n, b) => n + hoursFor(b, capId), 0).toLocaleString('en-US')}h`;
|
|
724
|
+
if (FINAL) {
|
|
725
|
+
box.innerHTML = `<div class="bhead">${head}<span class="arch">${archLink(conts)}</span></div><div class="crows">${by.map((b) => compRow(b, capId)).join('')}</div>${tasks}`; return; }
|
|
586
726
|
const rows = by.map((b) => compRow(b, capId, was.includes(b) ? '' : ' added')).join('') + was.filter((b) => !by.includes(b)).map((b) => compRow(b, capId, ' removed')).join('');
|
|
587
727
|
const pick = pickerHtml(capId);
|
|
588
728
|
const gap = by.length ? '' : asks[capId] !== undefined
|
|
589
729
|
? `<div class="ask"><b>Asked the agent to add a component</b> <button type="button" class="btn" data-unask="${capId}">undo</button><textarea data-ask="${capId}" rows="1" placeholder="What should it cover? e.g. parse emails/faxes into a draft order">${esc(asks[capId])}</textarea></div>`
|
|
590
730
|
: `<div class="ask"><span class="gapnote">⚠ No component builds this, so nobody would build it.</span> <button type="button" class="btn" data-ask-btn="${capId}">Ask the agent to add one</button> <span class="dim">or link one</span></div>`;
|
|
591
|
-
box.innerHTML = `<div class="bhead">${head}${conts.length ? `<span class="arch">${archLink(conts)}</span>` : ''}</div>${gap}<div class="crows">${rows}</div>${pick}`;
|
|
731
|
+
box.innerHTML = `<div class="bhead">${head}${conts.length ? `<span class="arch">${archLink(conts)}</span>` : ''}</div>${gap}<div class="crows">${rows}</div>${pick}${tasks}`;
|
|
592
732
|
}
|
|
593
733
|
// components that build no feature: listed once below the cards, so they get a look
|
|
594
734
|
function paintUnasked() {
|
|
@@ -623,6 +763,7 @@ function paint(id) {
|
|
|
623
763
|
const inp = $('textarea', r); if (document.activeElement !== inp) inp.value = reasons[`${id}:${k}`] || '';
|
|
624
764
|
r.classList.toggle('missing', s[k] !== was && !(reasons[`${id}:${k}`] || '').trim());
|
|
625
765
|
});
|
|
766
|
+
if (EFFORT) $(`[data-stale="${id}"]`).textContent = ['tech', 'size', 'unc'].some((k) => s[k] !== orig(id)[k]) ? 'score moved: hours may need another look' : '';
|
|
626
767
|
paintBuilt(id);
|
|
627
768
|
}
|
|
628
769
|
function strip(sum) {
|
|
@@ -641,13 +782,12 @@ function strip(sum) {
|
|
|
641
782
|
function navHtml(count) {
|
|
642
783
|
const openName = openSys && DATA.systems.find((s) => s.id === openSys).name.split(' (')[0];
|
|
643
784
|
const toggle = `<div class="view seg" role="group" aria-label="Cards"><button type="button" data-cards="all" aria-pressed="${!sysFilter}" data-tip="Every feature card">All</button><button type="button" data-cards="wf" aria-pressed="${sysFilter}" data-tip="Only the feature cards of the system open in Systems & workflows above. Open another system there to switch.">Workflows${sysFilter ? ` · ${esc(openName)}` : ''}</button></div>`;
|
|
644
|
-
const sides = FINAL ? `<div class="view seg" role="group" aria-label="Card view"><button type="button" data-side="score" aria-pressed="${side === 'score'}" data-tip="Each feature's scores, tier and price, as signed off in the score review">Scoring</button><button type="button" data-side="effort" aria-pressed="${side === 'effort'}" data-tip="The components behind each feature, with their tasks and hours">Effort</button></div>` : '';
|
|
645
785
|
const jumps = DATA.systems.map((s) => { const n = s.features.filter((c) => capVisible({ ...c, sys: s })).length; const c = s.features.filter((x) => isChanged(x.id)).length;
|
|
646
786
|
return n ? `<a href="#${sid(s)}" data-tip="Jump to the ${esc(s.name)} cards (${n} shown)">${esc(s.name.split(' (')[0])} <span class="cnt">${n}</span>${c ? `<span class="n">${c} edited</span>` : ''}</a>` : ''; }).join('');
|
|
647
787
|
const FILTERS = [...(FINAL ? [] : [['edits', 'my edits', 'Cards where you moved a score or a component link']]),
|
|
648
788
|
['closer', 'needs a closer look', 'The pricing rule recommends a deep estimate: the range is ±40% or wider, or the price is $6,000 or more'],
|
|
649
789
|
['unlinked', 'unlinked', 'Not built yet: a feature no component builds (blocks sending). Also lists components that build no feature.']];
|
|
650
|
-
return `<div class="navrow">${toggle}
|
|
790
|
+
return `<div class="navrow">${toggle}</div>`
|
|
651
791
|
+ `<div class="navrow"><span class="navlbl" data-tip="Each system is a section of feature cards below">Jump to</span>${jumps}`
|
|
652
792
|
+ `<span class="filters"><span class="navlbl" data-tip="Narrow the cards; click again to clear. Combines with All | Workflows.">Show</span>${FILTERS.map(([f, label, tip]) =>
|
|
653
793
|
`<button type="button" data-filter="${f}" aria-pressed="${filter === f}" data-tip="${tip}">${label} <span class="cnt">${count[f]}</span></button>`).join('')}</span></div>`;
|
|
@@ -659,9 +799,9 @@ function totals() {
|
|
|
659
799
|
s.features.forEach((c) => { const p = price(cur[c.id]); sn += p.point; sw += price(orig(c.id)).point; tiers[p.tier] += 1; if (p.flag) flags += 1; if (isChanged(c.id)) changed += 1; });
|
|
660
800
|
now += sn; was += sw;
|
|
661
801
|
$(`[data-sec="${s.id}"]`).classList.toggle('hide', !s.features.some((c) => capVisible({ ...c, sys: s })));
|
|
662
|
-
const hrs =
|
|
802
|
+
const hrs = EFFORT ? new Set(s.features.flatMap((c) => buildersOf(c.id))) : null;
|
|
663
803
|
$(`[data-sub="${s.id}"]`).innerHTML = `<div class="side-score"><b>${money(sn)}</b><span>feature build subtotal</span>${Math.round(sn) !== Math.round(sw) ? `<span class="was"> · was ${money(sw)}</span>` : ''}</div>`
|
|
664
|
-
+ (
|
|
804
|
+
+ (EFFORT ? `<div class="side-effort"><b>${sysHours(s.features.map((c) => c.id)).toLocaleString('en-US')}h</b><span>${hrs.size} components, each task counted once</span></div>` : '');
|
|
665
805
|
});
|
|
666
806
|
CAPS.forEach(paintCap);
|
|
667
807
|
const covered = CAPS.filter((c) => buildersOf(c.id).length).length; const gaps = notBuiltCount();
|
|
@@ -685,7 +825,6 @@ function spine() {
|
|
|
685
825
|
`<button class="dot${isChanged(c.id) ? ' changed' : ''}${p.flag ? ' flag' : ''}" data-go="${c.id}" title="${c.id} ${esc(c.name)} · ${p.score.toFixed(1)} ${p.tier}"></button>`).join('')}</div>`).join('');
|
|
686
826
|
}
|
|
687
827
|
let filter = 'all';
|
|
688
|
-
let side = 'score'; // FINAL only: Scoring | Effort
|
|
689
828
|
let sysFilter = false; let openSys = null; // system open in Systems & workflows + the All | Workflows toggle
|
|
690
829
|
const PASS = { all: () => true, edits: (c) => isChanged(c.id), closer: (c) => !!price(cur[c.id]).flag, unlinked: (c) => notBuilt(c.id) };
|
|
691
830
|
const capVisible = (c) => PASS[filter](c) && (!sysFilter || c.sys.id === openSys);
|
|
@@ -756,8 +895,6 @@ function onNav(e) {
|
|
|
756
895
|
if (go && $(`#c-${go.dataset.go}`).classList.contains('hide')) { filter = 'all'; sysFilter = false; refresh(); }
|
|
757
896
|
const fl = e.target.closest('[data-filter]');
|
|
758
897
|
if (fl) { filter = filter === fl.dataset.filter ? 'all' : fl.dataset.filter; refresh(); if (filter === 'unlinked') { lastC = null; nextItem(true); } }
|
|
759
|
-
const sd = e.target.closest('[data-side]')?.dataset.side;
|
|
760
|
-
if (sd) { side = sd; document.body.classList.toggle('side-effort-on', side === 'effort'); totals(); }
|
|
761
898
|
const cards = e.target.closest('[data-cards]')?.dataset.cards;
|
|
762
899
|
if (cards) onCards(cards);
|
|
763
900
|
}
|
|
@@ -821,7 +958,7 @@ function jump(d) {
|
|
|
821
958
|
n[pin.i].scrollIntoView({ block: 'center', behavior: 'smooth' }); showPin();
|
|
822
959
|
}
|
|
823
960
|
function unpin() { pin = null; clearHl(); $('#pinbar').classList.add('hide'); }
|
|
824
|
-
document.addEventListener('mouseover', (e) => { if (pin) return; const h2 = hitAt(e.target); if (h2) highlight(...h2.hit); else clearHl(); });
|
|
961
|
+
document.addEventListener('mouseover', (e) => { if (pin || window.lavish) return; const h2 = hitAt(e.target); if (h2) highlight(...h2.hit); else clearHl(); });
|
|
825
962
|
document.addEventListener('click', (e) => {
|
|
826
963
|
if (e.target.closest('#pinbar')) return;
|
|
827
964
|
const h2 = hitAt(e.target); if (!h2) return;
|
|
@@ -847,7 +984,7 @@ function nextItem(onlyGaps) {
|
|
|
847
984
|
}
|
|
848
985
|
$('#nextc').onclick = () => nextItem(false);
|
|
849
986
|
document.addEventListener('keydown', (e) => { if (e.key === 'n' && !e.target.closest('input, textarea, select') && !pin) nextItem(false); });
|
|
850
|
-
$('#preview').onclick = () => {
|
|
987
|
+
$('#preview').onclick = () => { if (window.lavish) return finish();
|
|
851
988
|
const gaps = notBuiltCount();
|
|
852
989
|
$('#sum').innerHTML = summaryHtml(); $('#feedback').value = JSON.stringify(window.__feedback()); $('#copied').textContent = '';
|
|
853
990
|
$('#sendable').classList.toggle('hide', !!gaps); $('#copy').disabled = !!gaps; $('#goGap').classList.toggle('hide', !gaps);
|
|
@@ -862,7 +999,7 @@ $('#reset').onclick = () => { if (!armed) { armed = true; $('#reset').textConten
|
|
|
862
999
|
|
|
863
1000
|
// ---- theme + diagrams (mockup loads mermaid from a CDN; the real page inlines the skill's bundle) ----
|
|
864
1001
|
const dark = () => document.documentElement.dataset.theme === 'dark' || (!document.documentElement.dataset.theme && matchMedia('(prefers-color-scheme: dark)').matches);
|
|
865
|
-
const src = [...document.querySelectorAll('pre.
|
|
1002
|
+
const src = [...document.querySelectorAll('pre.wfchart')].map((p) => p.textContent);
|
|
866
1003
|
let mermaid; let drawing = false;
|
|
867
1004
|
// Mermaid cannot measure boxes inside a closed <details>, so every system opens
|
|
868
1005
|
// for the draw and the open one is restored afterwards; the toggle events that
|
|
@@ -875,7 +1012,7 @@ async function draw() {
|
|
|
875
1012
|
mermaid.initialize({ startOnLoad: false, theme: 'base', flowchart: { curve: 'basis', padding: 10 }, themeVariables: { fontFamily: 'system-ui,sans-serif', fontSize: '12px',
|
|
876
1013
|
background: t('--paper'), primaryColor: t('--sheet'), primaryTextColor: t('--ink'), primaryBorderColor: t('--meter'), lineColor: t('--ink-dim'), edgeLabelBackground: t('--paper'), textColor: t('--ink') } });
|
|
877
1014
|
all.forEach((d) => { d.open = true; });
|
|
878
|
-
const pres = [...document.querySelectorAll('#systems pre.
|
|
1015
|
+
const pres = [...document.querySelectorAll('#systems pre.wfchart')];
|
|
879
1016
|
pres.forEach((p, i) => { p.removeAttribute('data-processed'); p.textContent = src[i]; });
|
|
880
1017
|
await mermaid.run({ nodes: pres });
|
|
881
1018
|
if (pin) highlight(...pin.hit); // redraw makes new boxes; re-light a pinned selection
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
// pins the output to the committed asset). Usage: node build-template.mjs [--out <file>]
|
|
5
5
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
|
+
import { EFFORT_REPS, EFFORT_CSS } from './template/effort.mjs';
|
|
8
|
+
import { LAVISH_REPS } from './template/lavish.mjs';
|
|
7
9
|
|
|
8
10
|
const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
|
|
9
|
-
const M = at('
|
|
11
|
+
const M = at('../../../../../docs/mockups/estimate-workflow-mode/');
|
|
10
12
|
const outFlag = process.argv.indexOf('--out');
|
|
11
13
|
const OUT = outFlag > 0 ? process.argv[outFlag + 1] : at('../assets/score-review.html');
|
|
12
14
|
const base = readFileSync(`${M}score-review.base.html`, 'utf8');
|
|
@@ -68,6 +70,11 @@ rep(/document\.addEventListener\('click', \(e\) => \{\n const b = e\.target\.cl
|
|
|
68
70
|
rep(" const count = { edits: CAPS.filter((c) => isChanged(c.id)).length,", " repaintNav();\n}\nfunction repaintNav() {\n const count = { edits: CAPS.filter((c) => isChanged(c.id)).length,");
|
|
69
71
|
rep('diagrams need a connection in this mockup', 'diagrams need a connection');
|
|
70
72
|
|
|
73
|
+
// ---- Effort side: tasks and hours per feature, plus the hover polish ----
|
|
74
|
+
for (const [from, to] of EFFORT_REPS) rep(from, () => to);
|
|
75
|
+
// ---- Review & send under Lavish: queue the feedback to the agent ----
|
|
76
|
+
for (const [from, to] of LAVISH_REPS) rep(from, () => to);
|
|
77
|
+
|
|
71
78
|
const head = base.slice(0, base.indexOf('</style>')).replace('<title>Sin Kowa — score review</title>', '<title><!-- slot:TITLE --> — score review</title>');
|
|
72
|
-
writeFileSync(OUT, `${head}${css}${readFileSync(`${M}reading.css`, 'utf8')}${readFileSync(at('./template/also-builds.css'), 'utf8')}${readFileSync(at('./template/link-picker.css'), 'utf8')}</style>\n</head>\n<body>\n${body}`);
|
|
79
|
+
writeFileSync(OUT, `${head}${css}${readFileSync(`${M}reading.css`, 'utf8')}${readFileSync(at('./template/also-builds.css'), 'utf8')}${readFileSync(at('./template/link-picker.css'), 'utf8')}${EFFORT_CSS}</style>\n</head>\n<body>\n${body}`);
|
|
73
80
|
console.log(OUT);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Builds assets/estimate-template.html (the Workflow-based page) from the
|
|
2
|
+
// approved mockup. Like build-template.mjs, every change to the mockup is a
|
|
3
|
+
// rep() below; build-pages.test.mjs pins the output to the committed asset.
|
|
4
|
+
// Usage: node build-workflow-template.mjs [--out <file>]
|
|
5
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
|
|
8
|
+
const at = (rel) => fileURLToPath(new URL(rel, import.meta.url));
|
|
9
|
+
const M = at('../../../../../docs/mockups/estimate-workflow-mode/');
|
|
10
|
+
const outFlag = process.argv.indexOf('--out');
|
|
11
|
+
const OUT = outFlag > 0 ? process.argv[outFlag + 1] : at('../assets/estimate-template.html');
|
|
12
|
+
let html = readFileSync(`${M}estimate.src.html`, 'utf8');
|
|
13
|
+
|
|
14
|
+
// A function replacement: the inserted scripts contain `$'`, which a string
|
|
15
|
+
// replacement would expand.
|
|
16
|
+
function rep(from, to) {
|
|
17
|
+
const next = html.replace(from, () => to);
|
|
18
|
+
if (next === html) throw new Error(`workflow template builder: nothing matched ${String(from).slice(0, 60)}`);
|
|
19
|
+
html = next;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
rep('<title>Sin Kowa — estimate</title>', '<title><!-- slot:TITLE --> — estimate</title>');
|
|
23
|
+
rep('</style>', `${readFileSync(`${M}reading.css`, 'utf8')}</style>`); // as build-workflow.py
|
|
24
|
+
rep('<body class="client">', '<body>'); // internal page (spec 3 E8): the client gets the proposal
|
|
25
|
+
rep(/<span class="mock">[^<]*<\/span>\s*\n/, '');
|
|
26
|
+
rep('<h1>Sin Kowa Digital Transformation — estimate', '<h1><!-- slot:TITLE --> — estimate');
|
|
27
|
+
rep(/<p class="sub">[^<]*<\/p>/, '<p class="sub" id="subline"></p>');
|
|
28
|
+
rep('<a href="estimate-mockup.html" aria-current="page">', '<a href="estimate.html" aria-current="page">');
|
|
29
|
+
rep('<a href="estimate-feature-mockup.html">Component-based</a>', '<a href="estimate-components.html">Component-based</a>');
|
|
30
|
+
rep('`estimate-feature-mockup.html#step=', '`estimate-components.html#step=');
|
|
31
|
+
rep('What Sin Kowa can use at the end of each milestone.', 'What the client can use at the end of each milestone.');
|
|
32
|
+
rep('<script type="module">\n/*DATA*/\n/*ENG*/\n/*ROLLUP*/', [
|
|
33
|
+
'<script type="application/json" id="page-data"><!-- slot:DATA --></script>',
|
|
34
|
+
'<script type="module">',
|
|
35
|
+
readFileSync(at('./template/prelude.js'), 'utf8'),
|
|
36
|
+
readFileSync(at('./template/view.js'), 'utf8'),
|
|
37
|
+
].join('\n'));
|
|
38
|
+
rep('renderSummary(); renderSystems(); renderBreakdown(); renderRoadmap(); renderMethod();', [
|
|
39
|
+
"$('#subline').textContent = `${DATA.systems.length} systems · ${DATA.systems.reduce((n, s) => n + s.features.length, 0)} features · scope reviewed by the PO, scores reviewed internally · prices in ${PAGE.currency}`;",
|
|
40
|
+
'viewSummary(PAGE.view); viewGroups(PAGE); renderSystems(); renderBreakdown(); viewRoadmap(PAGE); viewMethod(PAGE.view);',
|
|
41
|
+
].join('\n'));
|
|
42
|
+
|
|
43
|
+
rep('diagrams need a connection in this mockup', 'diagrams need a connection');
|
|
44
|
+
rep('if (id) return { hit: fromFeat(id)', 'if (id && byId[id]) return { hit: fromFeat(id)'); // a milestone feature in no system has no diagram steps
|
|
45
|
+
rep('byId[id].sys.id === c.dataset.sys', 'byId[id]?.sys.id === c.dataset.sys');
|
|
46
|
+
// A system may have no workflow (BA 0.4.0): s.main is null, and nothing sets `missing`.
|
|
47
|
+
rep("${s.main.missing ? 'workflow suggested by us, confirmed by PO' : 'workflow from the PO\\'s document'}", "${s.main ? 'workflow from the PO\\'s document' : 'no workflow in the PO\\'s document'}");
|
|
48
|
+
rep('Each system has its workflows; each feature sits on the workflow steps it serves.', "A system has the workflows the PO's document draws; each feature sits on the steps it serves, or on none when its system has no workflow.");
|
|
49
|
+
|
|
50
|
+
// ---- one estimate page: the Component-based page is gone, so its tasks per
|
|
51
|
+
// feature, its idle components and its workbook download move here ----
|
|
52
|
+
const tpl = (n) => readFileSync(at(`./template/${n}`), 'utf8');
|
|
53
|
+
rep('</style>', `${tpl('tasks.css')}${tpl('estimate-page.css')}</style>`);
|
|
54
|
+
rep(' <nav class="view pages" aria-label="Estimate view"><a href="estimate.html" aria-current="page">Workflow-based</a><a href="estimate-components.html">Component-based</a></nav>\n', '');
|
|
55
|
+
rep(' <div class="buildup internal" id="buildup"></div>\n </section>', ' <div class="buildup internal" id="buildup"></div>\n <p class="internal"><button class="btn primary" id="xlsx" type="button" title="every feature as the v2 estimator workbook">↓ Download xlsx</button> <span class="quiet">Adjust stack familiarity or any score in the workbook; it reprices itself.</span></p>\n </section>');
|
|
56
|
+
rep(' <span class="internal">Hours and tasks per feature are on the Component-based page.</span>', ' <span class="internal">Each feature's tasks and hours fold open under it in Workflows & features.</span>');
|
|
57
|
+
rep(' <span class="internal">A pinned step opens on the Component-based page with its hours and tasks.</span>', ' <span class="internal">Open a feature's tasks to see the work behind its price.</span>');
|
|
58
|
+
rep('<ul id="exclude"></ul></div></div>\n </section>\n', '<ul id="exclude"></ul></div></div>\n </section>\n\n <section class="card internal hide" id="idle">\n <h2>Components that build no feature</h2>\n <p class="sec-lead">In the architecture, outside this price; each says why.</p>\n <ul id="idle-list"></ul>\n </section>\n');
|
|
59
|
+
rep(' <a class="btn internal hide" id="pinFeat" href="#">Hours & tasks on Component-based page →</a>\n', '');
|
|
60
|
+
rep("\n $('#pinFeat').classList.toggle('hide', !pin.ref); if (pin.ref) $('#pinFeat').href = `estimate-components.html#step=${encodeURIComponent(pin.ref)}`; }", ' }');
|
|
61
|
+
rep('<script type="application/json" id="page-data">', `<dialog id="xlsx-remind" aria-labelledby="xlsx-remind-title" style="max-width:32rem"><p><b id="xlsx-remind-title">Review the Project Roll-up tab</b></p>
|
|
62
|
+
<p>The workbook's last tab, Project Roll-up, sets the project context levels, the work outside features (foundation, QA, DevOps, PM…) and contingency. These change the final cost. Review and update them before you use the workbook's price.</p>
|
|
63
|
+
<div class="dlg-foot"><form method="dialog"><button class="btn primary">Got it</button></form></div></dialog>
|
|
64
|
+
|
|
65
|
+
<script type="application/json" id="page-data">`);
|
|
66
|
+
rep("// the client's features (business capabilities) on their workflow steps", `${tpl('feature-tasks.js')}${tpl('estimate-page.js')}{ // the shared workbook export, block-scoped so its helpers never collide with this page's
|
|
67
|
+
<!-- slot:XLSX -->
|
|
68
|
+
}
|
|
69
|
+
$('#xlsx').onclick = () => { window.__downloadXlsx(); $('#xlsx-remind').showModal(); }; // the download runs on; the reminder shows meanwhile
|
|
70
|
+
|
|
71
|
+
// the client's features (business capabilities) on their workflow steps`);
|
|
72
|
+
rep("<td>${steps}</td></tr>`; }).join('')}</table>`;", "<td>${steps}</td></tr>`\n + `<tr class=\"ftasks internal\"><td></td><td colspan=\"2\" data-ftasks=\"${f.id}\">${featTasksHtml(f.id)}</td></tr>`; }).join('')}</table>`;");
|
|
73
|
+
rep('viewRoadmap(PAGE); viewMethod(PAGE.view);', 'viewRoadmap(PAGE); viewMethod(PAGE.view); viewIdle(PAGE);');
|
|
74
|
+
|
|
75
|
+
writeFileSync(OUT, html);
|
|
76
|
+
console.log(OUT);
|
|
@@ -25,7 +25,7 @@ HERE = Path(__file__).resolve().parent
|
|
|
25
25
|
EXPORT_JS = HERE / '../../shared/assets/xlsx-export.js'
|
|
26
26
|
OUT = HERE / '../assets/estimator-system.xlsx'
|
|
27
27
|
CONTENTS = 1 | 2 | 4 | 16 # CellFlags VALUE | DATETIME | STRING | FORMULA: keeps the style
|
|
28
|
-
SPANNED_ROWS = (1, 2,
|
|
28
|
+
SPANNED_ROWS = (1, 2, 49) # title, subtitle, note: text in A, merged A:N
|
|
29
29
|
BALLPARK_XML = 'xl/worksheets/sheet2.xml'
|
|
30
30
|
# Both A and B stay in view while scrolling right. A hidden document's view
|
|
31
31
|
# ignores freezeAtPosition, so the pane is set in the saved sheet instead.
|
|
@@ -65,8 +65,8 @@ def add_system_column(doc: Any) -> None:
|
|
|
65
65
|
sh.Columns.insertByIndex(0, 1)
|
|
66
66
|
for r in SPANNED_ROWS:
|
|
67
67
|
span_from_a(sh, r)
|
|
68
|
-
copy_cells(sh, 'B6:
|
|
69
|
-
sh.getCellRangeByName('A7:
|
|
68
|
+
copy_cells(sh, 'B6:B47', 'A6') # header, feature cells and subtotal band: B's look
|
|
69
|
+
sh.getCellRangeByName('A7:A47').clearContents(CONTENTS)
|
|
70
70
|
sh.getCellRangeByName('A6').setString('SYSTEM / MODULE')
|
|
71
71
|
cols = sh.Columns
|
|
72
72
|
cols.getByIndex(0).Width = round(cols.getByIndex(1).Width * 24 / 30)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Tasks say where their work comes from (`source`: a BA workflow step in the
|
|
2
|
+
// package's own "WF-002:Pack" form, a requirement or rule id, or "new"), and
|
|
3
|
+
// scores name the tasks they rest on (`scores.<factor>.tasks`). A wrong
|
|
4
|
+
// reference is a finding; a missing one only warns, so older leads still pass.
|
|
5
|
+
import { isGrouped } from './groups.mjs';
|
|
6
|
+
|
|
7
|
+
const WORK_FACTORS = ['tech', 'size', 'deps', 'unc'];
|
|
8
|
+
const tasksOf = (inputs) => (inputs.components ?? []).flatMap((c) => c.tasks ?? []);
|
|
9
|
+
|
|
10
|
+
function knownSources(req) {
|
|
11
|
+
const ids = new Set(['new', ...(req.raw.requirements ?? []), ...(req.raw.businessRules ?? [])].map((x) => x.id ?? x));
|
|
12
|
+
for (const w of Object.values(req.workflows)) {
|
|
13
|
+
for (const s of [...(w.steps ?? []), ...(w.branches ?? []).map((b) => b.to)]) ids.add(`${w.id}:${s}`);
|
|
14
|
+
}
|
|
15
|
+
return ids;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// What carries scores: the groups when there are any, else each feature.
|
|
19
|
+
const scoredUnits = (inputs) => (isGrouped(inputs)
|
|
20
|
+
? inputs.featureGroups.map((g) => ({ id: g.id, scores: g.scores ?? {}, members: g.members }))
|
|
21
|
+
: (inputs.features ?? []).map((f) => ({ id: f.id, scores: f.scores ?? {}, members: [f.id] })));
|
|
22
|
+
const serves = (t, unit) => (t.features ?? []).some((f) => unit.members.includes(f));
|
|
23
|
+
|
|
24
|
+
function badCites(unit, byId) {
|
|
25
|
+
const out = [];
|
|
26
|
+
for (const [k, s] of Object.entries(unit.scores)) {
|
|
27
|
+
for (const id of s?.tasks ?? []) {
|
|
28
|
+
const t = byId.get(id);
|
|
29
|
+
if (!t || !serves(t, unit)) out.push(`${unit.id}: scores.${k}.tasks cites ${id}, which does not serve it`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function citeFindings(inputs, req) {
|
|
36
|
+
const tasks = tasksOf(inputs);
|
|
37
|
+
const known = knownSources(req);
|
|
38
|
+
const out = tasks.filter((t) => t.source !== undefined && !known.has(t.source))
|
|
39
|
+
.map((t) => `task ${t.id}: source "${t.source}" is not a workflow step, requirement id or "new"`);
|
|
40
|
+
const byId = new Map(tasks.map((t) => [t.id, t]));
|
|
41
|
+
for (const unit of scoredUnits(inputs)) out.push(...badCites(unit, byId));
|
|
42
|
+
return out;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function citeWarnings(inputs) {
|
|
46
|
+
const tasks = tasksOf(inputs);
|
|
47
|
+
const out = [];
|
|
48
|
+
const unsourced = tasks.filter((t) => t.source === undefined).length;
|
|
49
|
+
if (unsourced) out.push(`${unsourced} tasks have no source (a workflow step, requirement id or "new")`);
|
|
50
|
+
let uncited = 0;
|
|
51
|
+
for (const unit of scoredUnits(inputs)) {
|
|
52
|
+
const mine = tasks.filter((t) => serves(t, unit));
|
|
53
|
+
if (!mine.length) continue;
|
|
54
|
+
uncited += WORK_FACTORS.filter((k) => !unit.scores[k]?.tasks?.length).length;
|
|
55
|
+
const unc = new Set(unit.scores.unc?.tasks ?? []);
|
|
56
|
+
for (const t of mine) if (t.source === 'new' && !unc.has(t.id)) out.push(`${unit.id}: task ${t.id} is new work that Uncertainty does not cite`);
|
|
57
|
+
}
|
|
58
|
+
if (uncited) out.push(`${uncited} scores cite no task (Tech, Size, Deps and Uncertainty should)`);
|
|
59
|
+
return out;
|
|
60
|
+
}
|