@v11g/agents-rock 1.0.9 → 1.0.10
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 +1 -0
- package/package.json +2 -2
- package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
- package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
- package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
- package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
- package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
- package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
- package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
- package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
- package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
- package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
- package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
- package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
- 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/business-analyst/scripts/lib/checks.mjs +12 -6
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
- package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
- package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
- package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
- package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
- package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
- package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -0
- package/plugins/solution-architect/skills/estimate/README.md +18 -3
- package/plugins/solution-architect/skills/estimate/SKILL.md +18 -75
- package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
- package/plugins/solution-architect/skills/estimate/classic/assets/estimate-template.html +1337 -0
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
- package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/rollup.mjs +5 -5
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +4 -26
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +8 -7
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser-agentic.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +6 -6
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/estimate-math.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/pricing.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/project-price.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +6 -6
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/render.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +6 -6
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/xlsx-export.test.mjs +3 -3
- package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
- package/plugins/solution-architect/skills/estimate/evals/evals.json +37 -2
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
- package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
- package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
- package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/context-schema.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +8 -0
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
- package/plugins/solution-architect/skills/proposal/README.md +13 -0
- package/plugins/solution-architect/skills/proposal/SKILL.md +8 -0
- package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
- package/plugins/solution-architect/skills/proposal/references/review.md +11 -0
- package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
- package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +2 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +9 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +2 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +2 -2
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
- package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
- package/plugins/solution-architect/workflows/review-links.js +61 -0
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +0 -1677
- /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +0 -0
- /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/ai-multipliers.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/redact.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/estimate-math.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/pricing.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/project-price.mjs +0 -0
- /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title><!-- slot:TITLE --> — estimate</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme:light;
|
|
10
|
+
--paper:#e8ecef; --sheet:#fbfcfd; --ink:#141c24; --ink-dim:#5d6c78;
|
|
11
|
+
--rule:#d3dbe1; --grid:#edf1f4; --meter:#44586a; --mark:#b4232f; --mark-soft:#b4232f14;
|
|
12
|
+
--ok:#2f6b4a; --ok-soft:#2f6b4a14; --hi:#fbf1cf; --hi-line:#c8960c;
|
|
13
|
+
--c1:#44586a; --c2:#7d96ab; --c3:#a9bccb; --c4:#cdd8e1;
|
|
14
|
+
--t-s:#dfe6ec; --t-s-ink:#4a5a68; --t-m:#c3d2df; --t-m-ink:#2b3d4c; --t-l:#7d96ab; --t-l-ink:#fff; --t-xl:#2f4a60; --t-xl-ink:#fff;
|
|
15
|
+
--serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Liberation Serif",serif;
|
|
16
|
+
--sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
17
|
+
}
|
|
18
|
+
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) {
|
|
19
|
+
color-scheme:dark; --paper:#11171c; --sheet:#1a2229; --ink:#e6ecf1; --ink-dim:#93a3b0;
|
|
20
|
+
--rule:#2c3740; --grid:#222c34; --meter:#8fa8bb; --mark:#e26c60; --mark-soft:#e26c6021;
|
|
21
|
+
--ok:#7cc39a; --ok-soft:#7cc39a1c; --hi:#3b3519; --hi-line:#d9a92a;
|
|
22
|
+
--c1:#bacdda; --c2:#8fa8bb; --c3:#5f7688; --c4:#3a4a57;
|
|
23
|
+
--t-s:#263039; --t-s-ink:#9fb0bd; --t-m:#3a4a57; --t-m-ink:#d3dfe8; --t-l:#7d96ab; --t-l-ink:#0f161b; --t-xl:#bacdda; --t-xl-ink:#0f161b; } }
|
|
24
|
+
:root[data-theme="dark"] {
|
|
25
|
+
color-scheme:dark; --paper:#11171c; --sheet:#1a2229; --ink:#e6ecf1; --ink-dim:#93a3b0;
|
|
26
|
+
--rule:#2c3740; --grid:#222c34; --meter:#8fa8bb; --mark:#e26c60; --mark-soft:#e26c6021;
|
|
27
|
+
--ok:#7cc39a; --ok-soft:#7cc39a1c; --hi:#3b3519; --hi-line:#d9a92a;
|
|
28
|
+
--c1:#bacdda; --c2:#8fa8bb; --c3:#5f7688; --c4:#3a4a57;
|
|
29
|
+
--t-s:#263039; --t-s-ink:#9fb0bd; --t-m:#3a4a57; --t-m-ink:#d3dfe8; --t-l:#7d96ab; --t-l-ink:#0f161b; --t-xl:#bacdda; --t-xl-ink:#0f161b; }
|
|
30
|
+
* { box-sizing:border-box; }
|
|
31
|
+
body { margin:0; padding:2rem 1.5rem 4rem; background:var(--paper); color:var(--ink); font-family:var(--sans); font-size:.9rem; line-height:1.5; }
|
|
32
|
+
.page { max-width:84rem; margin:0 auto; }
|
|
33
|
+
:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
|
|
34
|
+
button { font:inherit; color:var(--ink); }
|
|
35
|
+
.hide { display:none !important; }
|
|
36
|
+
.num { font-variant-numeric:tabular-nums; }
|
|
37
|
+
.mock { background:var(--mark); color:#fff; font-size:.72rem; font-weight:600; letter-spacing:.04em; padding:.2rem .6rem; display:inline-block; border-radius:.2rem; margin-bottom:.8rem; }
|
|
38
|
+
.head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
|
|
39
|
+
.head-ctl { display:flex; gap:.5rem; align-items:center; }
|
|
40
|
+
h1 { font-family:var(--serif); font-size:2.1rem; font-weight:600; letter-spacing:-.015em; margin:0; }
|
|
41
|
+
.sub { margin:.15rem 0 1rem; color:var(--ink-dim); font-size:.82rem; }
|
|
42
|
+
.btn { font-size:.78rem; font-weight:600; padding:.3rem .7rem; color:var(--ink-dim); background:var(--sheet); border:1px solid var(--rule); border-radius:.2rem; cursor:pointer; }
|
|
43
|
+
.btn:hover { color:var(--ink); border-color:var(--ink-dim); }
|
|
44
|
+
.view { display:inline-flex; border:1px solid var(--rule); border-radius:.25rem; overflow:hidden; }
|
|
45
|
+
.view button { border:0; background:var(--sheet); color:var(--ink-dim); font-size:.78rem; font-weight:600; padding:.3rem .75rem; cursor:pointer; }
|
|
46
|
+
.view button[aria-pressed="true"] { background:var(--ink); color:var(--sheet); }
|
|
47
|
+
nav.toc { position:sticky; top:0; z-index:5; display:flex; gap:.4rem; flex-wrap:wrap; padding:.6rem 0; background:var(--paper); border-bottom:1px solid var(--rule); margin-bottom:1.2rem; }
|
|
48
|
+
nav.toc a { font-size:.8rem; text-decoration:none; color:var(--ink-dim); padding:.25rem .65rem; border:1px solid var(--rule); border-radius:1rem; background:var(--sheet); }
|
|
49
|
+
nav.toc a:hover { color:var(--ink); }
|
|
50
|
+
section.card { background:var(--sheet); border:1px solid var(--rule); padding:1.3rem 1.4rem; margin-bottom:1.4rem; scroll-margin-top:3.5rem; }
|
|
51
|
+
h2 { font-family:var(--serif); font-size:1.45rem; font-weight:600; margin:0 0 .2rem; }
|
|
52
|
+
.sec-lead { margin:0 0 1rem; color:var(--ink-dim); max-width:72ch; font-size:.84rem; }
|
|
53
|
+
h3 { font-size:.74rem; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-dim); margin:1.2rem 0 .5rem; font-weight:700; }
|
|
54
|
+
|
|
55
|
+
/* summary */
|
|
56
|
+
.headline { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; border:1px solid var(--rule); }
|
|
57
|
+
.headline > div { padding:.9rem 1.1rem; border-left:1px solid var(--rule); }
|
|
58
|
+
.headline > div:first-child { border-left:0; background:var(--paper); }
|
|
59
|
+
.headline b { display:block; font-family:var(--serif); font-size:1.5rem; font-variant-numeric:tabular-nums; line-height:1.2; }
|
|
60
|
+
.headline .big b { font-size:2rem; }
|
|
61
|
+
.headline span { font-size:.74rem; color:var(--ink-dim); }
|
|
62
|
+
.buildup { margin-top:1.2rem; }
|
|
63
|
+
.bu-row { display:grid; grid-template-columns:16rem 1fr 7rem; gap:.8rem; align-items:center; padding:.25rem 0; font-size:.84rem; }
|
|
64
|
+
.bu-row .lbl small { display:block; color:var(--ink-dim); font-size:.72rem; }
|
|
65
|
+
.bu-bar { height:1.1rem; position:relative; background:var(--grid); border-radius:.15rem; }
|
|
66
|
+
.bu-bar i { position:absolute; top:0; bottom:0; border-radius:.15rem; background:var(--c2); }
|
|
67
|
+
.bu-row.total { border-top:1px solid var(--rule); margin-top:.3rem; padding-top:.5rem; font-weight:700; }
|
|
68
|
+
.bu-row.total .bu-bar i { background:var(--c1); }
|
|
69
|
+
.bu-row .amt { text-align:right; font-variant-numeric:tabular-nums; }
|
|
70
|
+
.bu-row.range .bu-bar i { background:repeating-linear-gradient(90deg,var(--hi-line) 0 6px,transparent 6px 9px); opacity:.8; }
|
|
71
|
+
|
|
72
|
+
/* systems */
|
|
73
|
+
.systems { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; }
|
|
74
|
+
.sys { border:1px solid var(--rule); border-radius:.3rem; padding:.9rem 1rem; background:var(--sheet); cursor:pointer; text-align:left; }
|
|
75
|
+
.sys:hover, .sys.hl { border-color:var(--hi-line); background:var(--hi); }
|
|
76
|
+
.sys .eyebrow { font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-dim); font-weight:700; }
|
|
77
|
+
.sys h4 { font-family:var(--serif); font-size:1.08rem; margin:.1rem 0 .5rem; font-weight:600; }
|
|
78
|
+
.sys .amt { font-family:var(--serif); font-size:1.35rem; font-variant-numeric:tabular-nums; }
|
|
79
|
+
.sys .meta { font-size:.74rem; color:var(--ink-dim); margin:.1rem 0 .5rem; }
|
|
80
|
+
|
|
81
|
+
/* breakdown */
|
|
82
|
+
.sys-block { border-top:1px solid var(--rule); padding-top:1rem; margin-top:1rem; scroll-margin-top:3.5rem; }
|
|
83
|
+
.sys-block:first-of-type { border-top:0; margin-top:0; padding-top:0; }
|
|
84
|
+
.sb-head { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; }
|
|
85
|
+
.sb-head h4 { font-family:var(--serif); font-size:1.2rem; margin:0; }
|
|
86
|
+
.sb-head .amt { font-variant-numeric:tabular-nums; font-size:.9rem; } .sb-head .amt b { font-family:var(--serif); font-size:1.15rem; }
|
|
87
|
+
.flow { border:1px solid var(--grid); background:var(--paper); padding:.6rem; overflow-x:auto; margin:.4rem 0; }
|
|
88
|
+
.flow-name { font-size:.72rem; color:var(--ink-dim); margin:.5rem 0 0; }
|
|
89
|
+
.flow g.node { cursor:pointer; }
|
|
90
|
+
.flow g.node.hl rect, .flow g.node.hl polygon { stroke:var(--hi-line) !important; stroke-width:3px !important; }
|
|
91
|
+
.flow g.node.cur rect, .flow g.node.cur polygon { stroke-width:5px !important; }
|
|
92
|
+
table.bd { width:100%; border-collapse:collapse; font-size:.83rem; margin-top:.5rem; }
|
|
93
|
+
table.bd th { text-align:left; font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-dim); font-weight:600; padding:.35rem .5rem; border-bottom:1px solid var(--rule); }
|
|
94
|
+
table.bd td { padding:.45rem .5rem; border-bottom:1px solid var(--grid); vertical-align:top; }
|
|
95
|
+
table.bd td.r, table.bd th.r { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
|
|
96
|
+
table.bd tr[data-feat] { cursor:pointer; }
|
|
97
|
+
table.bd tr.hl td { background:var(--hi); }
|
|
98
|
+
table.bd tr.cur td { box-shadow:inset 0 2px 0 var(--hi-line), inset 0 -2px 0 var(--hi-line); }
|
|
99
|
+
.fname { font-weight:600; } .fdoes { color:var(--ink-dim); font-size:.78rem; }
|
|
100
|
+
.chip { display:inline-block; font-size:.7rem; padding:0 .4rem; margin:0 .2rem .2rem 0; border:1px solid var(--rule); border-radius:.8rem; background:var(--paper); white-space:nowrap; }
|
|
101
|
+
.chip.hl { background:var(--hi); border-color:var(--hi-line); }
|
|
102
|
+
.tier { font-size:.72rem; font-weight:700; padding:.05rem .4rem; border:1px solid var(--rule); border-radius:.2rem; }
|
|
103
|
+
.tier.t-S { background:var(--t-s); color:var(--t-s-ink); } .tier.t-M { background:var(--t-m); color:var(--t-m-ink); }
|
|
104
|
+
.tier.t-L { background:var(--t-l); color:var(--t-l-ink); border-color:var(--t-l); } .tier.t-XL { background:var(--t-xl); color:var(--t-xl-ink); border-color:var(--t-xl); }
|
|
105
|
+
.flag { font-size:.7rem; font-weight:700; color:var(--hi-line); }
|
|
106
|
+
.dim { color:var(--ink-dim); }
|
|
107
|
+
|
|
108
|
+
/* roadmap */
|
|
109
|
+
.ms { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; }
|
|
110
|
+
.m { border:1px solid var(--rule); border-radius:.3rem; padding:.9rem 1rem; }
|
|
111
|
+
.m h4 { margin:.1rem 0 .3rem; font-family:var(--serif); font-size:1.05rem; }
|
|
112
|
+
.m .demo { font-size:.8rem; color:var(--ink-dim); margin:0 0 .6rem; }
|
|
113
|
+
.m .amt { font-variant-numeric:tabular-nums; font-size:.84rem; margin-bottom:.5rem; } .m .amt b { font-family:var(--serif); font-size:1.15rem; }
|
|
114
|
+
.m .chip { cursor:pointer; }
|
|
115
|
+
|
|
116
|
+
/* register + method */
|
|
117
|
+
.twocol { display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; }
|
|
118
|
+
.twocol ul { margin:.2rem 0; padding-left:1.1rem; } .twocol li { margin:.25rem 0; font-size:.84rem; }
|
|
119
|
+
table.kv { width:100%; border-collapse:collapse; font-size:.82rem; }
|
|
120
|
+
table.kv td, table.kv th { padding:.35rem .5rem; border-bottom:1px solid var(--grid); text-align:left; }
|
|
121
|
+
table.kv th { font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-dim); font-weight:600; border-bottom-color:var(--rule); }
|
|
122
|
+
table.kv td.r, table.kv th.r { text-align:right; font-variant-numeric:tabular-nums; }
|
|
123
|
+
table.kv tr.sum td { font-weight:700; border-top:1px solid var(--rule); }
|
|
124
|
+
|
|
125
|
+
/* internal-only parts disappear in client view */
|
|
126
|
+
body.client .internal { display:none !important; }
|
|
127
|
+
|
|
128
|
+
.pinbar { position:fixed; right:1.2rem; bottom:1.2rem; z-index:11; display:flex; gap:.4rem; align-items:center; background:var(--sheet);
|
|
129
|
+
border:1px solid var(--hi-line); box-shadow:0 4px 18px #0002; padding:.45rem .6rem; border-radius:.3rem; max-width:calc(100% - 2.4rem); }
|
|
130
|
+
.pin-txt { display:flex; flex-direction:column; min-width:0; margin-right:.3rem; }
|
|
131
|
+
.pin-txt b { font-size:.8rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:22rem; }
|
|
132
|
+
.pin-txt small { font-size:.72rem; color:var(--ink-dim); }
|
|
133
|
+
@media (max-width:980px) { .systems, .ms { grid-template-columns:repeat(2,minmax(0,1fr)); } .headline { grid-template-columns:1fr 1fr; } .twocol { grid-template-columns:1fr; } }
|
|
134
|
+
@media (max-width:640px) { .systems, .ms, .headline { grid-template-columns:1fr; } .bu-row { grid-template-columns:1fr 6rem; } .bu-row .bu-bar { display:none; } }
|
|
135
|
+
.chip.none { color:var(--mark); border-color:var(--mark); }
|
|
136
|
+
.view.pages a { display:inline-block; text-decoration:none; color:var(--ink-dim); background:var(--sheet); font-size:.78rem; font-weight:600; padding:.3rem .75rem; }
|
|
137
|
+
.view.pages a[aria-current="page"] { background:var(--ink); color:var(--sheet); }
|
|
138
|
+
/* long-reading comfort: bigger type, wider leading, shorter lines, calmer contrast */
|
|
139
|
+
body { font-size:1rem; line-height:1.65; }
|
|
140
|
+
.page { max-width:76rem; }
|
|
141
|
+
h1 { font-size:2.35rem; line-height:1.15; }
|
|
142
|
+
h2, section.card h2, section.system h2 { font-size:1.65rem; line-height:1.25; }
|
|
143
|
+
.sub { font-size:.9rem; }
|
|
144
|
+
.lead, .sec-lead, p.quiet { font-size:.98rem; line-height:1.7; max-width:68ch; }
|
|
145
|
+
.does, .fdoes, .demo, .anchor, .why, .meta, .spine-note, .bhead .hint { font-size:.9rem; line-height:1.6; }
|
|
146
|
+
section.card, section.system { padding:1.9rem 2.1rem; margin-bottom:2.2rem; }
|
|
147
|
+
.eyebrow, section.card h3, th, .bhead, .flabel { font-size:.76rem !important; letter-spacing:.06em; }
|
|
148
|
+
table.bd, table.caps, table.kv, details.tasks table, .sum table { font-size:.92rem; line-height:1.55; }
|
|
149
|
+
table.bd td, table.caps td, table.kv td, details.tasks td { padding-top:.55rem; padding-bottom:.55rem; }
|
|
150
|
+
.chip { font-size:.78rem; padding:.05rem .5rem; }
|
|
151
|
+
.twocol li { font-size:.96rem; line-height:1.65; margin:.4rem 0; }
|
|
152
|
+
.headline span { font-size:.84rem; }
|
|
153
|
+
.m .demo { font-size:.92rem; }
|
|
154
|
+
.feat { padding-top:1.6rem; padding-bottom:1.7rem; }
|
|
155
|
+
.rail h3 { font-size:1.25rem; margin-bottom:.25rem; }
|
|
156
|
+
.rail .does { font-size:.92rem; line-height:1.6; } .rail .id { font-size:.8rem; }
|
|
157
|
+
.cap { font-size:.84rem; }
|
|
158
|
+
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { --ink:#dbe2e8; --ink-dim:#a3b2be; } }
|
|
159
|
+
:root[data-theme="dark"] { --ink:#dbe2e8; --ink-dim:#a3b2be; }
|
|
160
|
+
.sys .meta, .sys .eyebrow { font-size:.82rem !important; line-height:1.5; }
|
|
161
|
+
body.client .headline { grid-template-columns:1.4fr 1fr; }
|
|
162
|
+
/* every page: tables, strips, nav chips, hints and small notes */
|
|
163
|
+
table td { font-size:.92rem; line-height:1.55; }
|
|
164
|
+
.strip span, .legend, .pin-hint, small, nav.sys a, nav.toc a, p.map, .hint, .gone-note, .gapnote, .saved, .pin-txt small, .zones, label { font-size:.85rem; line-height:1.5; }
|
|
165
|
+
.pick button, .seg button, .view button, .btn { font-size:.84rem; }
|
|
166
|
+
textarea, input, select { font-size:.92rem; }
|
|
167
|
+
.flow-name { font-size:.84rem; } .cap .csys { font-size:.76rem; } .cap .cid { font-size:.78rem; } .flagchip { font-size:.78rem; }
|
|
168
|
+
|
|
169
|
+
/* how to read: the System → Feature → Block chain at the top of every page */
|
|
170
|
+
.howto { margin:0 0 1.4rem; padding:.85rem 1rem .8rem; border:1px solid var(--rule); border-radius:.35rem; background:var(--sheet); max-width:60rem; }
|
|
171
|
+
.howto-t { display:block; font-size:.74rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-dim); margin-bottom:.55rem; }
|
|
172
|
+
.howto-chain { display:flex; flex-wrap:wrap; align-items:stretch; gap:.45rem; }
|
|
173
|
+
.howto-chain > span { flex:1 1 12rem; display:flex; flex-direction:column; gap:.1rem; padding:.5rem .7rem; border:1px solid var(--grid); border-radius:.3rem; background:var(--paper); font-size:.9rem; line-height:1.4; }
|
|
174
|
+
.howto-chain > span b { font-family:var(--serif); font-size:1.05rem; }
|
|
175
|
+
.howto-chain small { font-size:.8rem; color:var(--ink-dim); }
|
|
176
|
+
.howto-chain > i { align-self:center; font-style:normal; color:var(--ink-dim); }
|
|
177
|
+
.howto-rule { margin:.6rem 0 0; font-size:.9rem; color:var(--ink-dim); max-width:68ch; }
|
|
178
|
+
.howto-rule b { color:var(--ink); }
|
|
179
|
+
.howto-page { display:block; margin-top:.25rem; color:var(--ink); }
|
|
180
|
+
@media (max-width:640px) { .howto-chain > i { display:none; } }
|
|
181
|
+
|
|
182
|
+
/* native dropdowns follow the theme: dark popups in dark mode, readable option text */
|
|
183
|
+
:root { color-scheme:light; }
|
|
184
|
+
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { color-scheme:dark; } }
|
|
185
|
+
:root[data-theme="dark"] { color-scheme:dark; }
|
|
186
|
+
select option, select optgroup { background:var(--sheet); color:var(--ink); }
|
|
187
|
+
</style>
|
|
188
|
+
</head>
|
|
189
|
+
<body>
|
|
190
|
+
<div class="page">
|
|
191
|
+
<div class="head">
|
|
192
|
+
<div>
|
|
193
|
+
<h1><!-- slot:TITLE --> — estimate</h1>
|
|
194
|
+
<p class="sub" id="subline"></p>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="head-ctl">
|
|
197
|
+
<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>
|
|
198
|
+
<button class="btn" id="theme" type="button">Dark</button>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
<nav class="toc">
|
|
202
|
+
<a href="#summary">Summary</a><a href="#systems">By system</a><a href="#breakdown">Workflows & features</a>
|
|
203
|
+
<a href="#roadmap">Milestones</a><a href="#register">Assumptions & exclusions</a><a href="#method" class="internal">Method</a>
|
|
204
|
+
</nav>
|
|
205
|
+
<div class="howto"><b class="howto-t">How to read this page</b>
|
|
206
|
+
<div class="howto-chain"><span><b>System</b>a part of the business<small>e.g. Warehouse Mgmt System</small></span><i>→</i><span><b>Workflow</b>the steps work moves through<small>e.g. Order In → Pack → Pack Review</small></span><i>→</i><span><b>Feature</b>something you asked for, on the steps it serves<small>e.g. F04 Order intake & quotation entry</small></span></div>
|
|
207
|
+
<p class="howto-rule">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. The price covers every feature on this page, and each milestone lists the features it finishes.</p></div>
|
|
208
|
+
|
|
209
|
+
<section class="card" id="summary">
|
|
210
|
+
<h2>Summary</h2>
|
|
211
|
+
<p class="sec-lead">The price for this scope, stated once. Lead with the range; if a single fixed number is unavoidable, quote the confident figure.</p>
|
|
212
|
+
<div class="headline" id="headline"></div>
|
|
213
|
+
<div class="buildup internal" id="buildup"></div>
|
|
214
|
+
</section>
|
|
215
|
+
|
|
216
|
+
<section class="card" id="systems">
|
|
217
|
+
<h2>By system</h2>
|
|
218
|
+
<p class="sec-lead">The systems and workflows the PO confirmed. The price is quoted for the whole project and per milestone, not per system: shared features such as notifications serve several systems at once. <span class="internal">Hours and tasks per feature are on the Component-based page.</span></p>
|
|
219
|
+
<div class="systems" id="syscards"></div>
|
|
220
|
+
</section>
|
|
221
|
+
|
|
222
|
+
<section class="card" id="breakdown">
|
|
223
|
+
<h2>Workflows & features</h2>
|
|
224
|
+
<p class="sec-lead">Every feature sits on the workflow step it serves. Hover a diagram box or a feature to see the connections; click to pin them. <span class="internal">A pinned step opens on the Component-based page with its hours and tasks.</span></p>
|
|
225
|
+
<div id="blocks"></div>
|
|
226
|
+
</section>
|
|
227
|
+
|
|
228
|
+
<section class="card" id="roadmap">
|
|
229
|
+
<h2>Milestones</h2>
|
|
230
|
+
<p class="sec-lead">What the client can use at the end of each milestone. A feature is finished when everything it needs is built. <span class="internal">Each milestone's range is its share of the build applied to the project range.</span></p>
|
|
231
|
+
<div class="ms" id="ms"></div>
|
|
232
|
+
</section>
|
|
233
|
+
|
|
234
|
+
<section class="card" id="register">
|
|
235
|
+
<h2>Assumptions & exclusions</h2>
|
|
236
|
+
<p class="sec-lead">What this price rests on, and what it does not cover. Shared word for word with the proposal.</p>
|
|
237
|
+
<div class="twocol"><div><h3>Assumptions</h3><ul id="assume"></ul></div><div><h3>Exclusions</h3><ul id="exclude"></ul></div></div>
|
|
238
|
+
</section>
|
|
239
|
+
|
|
240
|
+
<section class="card internal" id="method">
|
|
241
|
+
<h2>Method</h2>
|
|
242
|
+
<p class="sec-lead">Estimator v2: five weighted scores per feature price it on continuous bands; the project roll-up adds the work feature scoring never captures.</p>
|
|
243
|
+
<div class="twocol"><div><h3>Project context factors</h3><table class="kv" id="ctx"></table></div>
|
|
244
|
+
<div><h3>Work outside the features</h3><table class="kv" id="ovh"></table></div></div>
|
|
245
|
+
<div class="twocol"><div><h3>Contingency</h3><table class="kv" id="cont"></table></div><div><h3>Range</h3><table class="kv" id="rng"></table></div></div>
|
|
246
|
+
<h3>Cross-check: the engineering work behind the price</h3><p class="sec-lead">Hours from the components' tasks. If the implied rate sits far from what the team costs, the scores or the task list need another look.</p><table class="kv" id="xcheck" style="max-width:40rem"></table>
|
|
247
|
+
</section>
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<div class="pinbar hide" id="pinbar" role="status">
|
|
251
|
+
<span>📌</span><div class="pin-txt"><b id="pinLabel"></b><small id="pinCount"></small></div>
|
|
252
|
+
<a class="btn internal hide" id="pinFeat" href="#">Hours & tasks on Component-based page →</a>
|
|
253
|
+
<button class="btn" id="pinPrev" type="button" title="Previous (k)">↑</button>
|
|
254
|
+
<button class="btn" id="pinNext" type="button" title="Next (j)">↓ Next</button>
|
|
255
|
+
<button class="btn" id="pinClear" type="button" title="Esc">Clear</button>
|
|
256
|
+
</div>
|
|
257
|
+
|
|
258
|
+
<script type="application/json" id="page-data"><!-- slot:DATA --></script>
|
|
259
|
+
<script type="module">
|
|
260
|
+
const PAGE = JSON.parse(document.getElementById('page-data').textContent);
|
|
261
|
+
const DATA = PAGE.data;
|
|
262
|
+
const $ = (s, el = document) => el.querySelector(s);
|
|
263
|
+
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
|
|
264
|
+
|
|
265
|
+
// ---- price sections, shared by the Workflow-based and Component-based pages ----
|
|
266
|
+
// Every amount arrives computed in PAGE (scripts/lib/page-view.mjs); this
|
|
267
|
+
// formats and places them and prices nothing.
|
|
268
|
+
const viewMoney = (n) => `${PAGE.currency === 'USD' ? '$' : `${PAGE.currency} `}${Math.round(n).toLocaleString('en-US')}`;
|
|
269
|
+
const viewKv = (rows, sum) => rows.map(([a, b]) => `<tr><td>${a}</td><td class="r">${b}</td></tr>`).join('')
|
|
270
|
+
+ `<tr class="sum"><td>${sum[0]}</td><td class="r">${sum[1]}</td></tr>`;
|
|
271
|
+
function viewBuRow(r, max) {
|
|
272
|
+
return `<div class="bu-row ${r.cls ?? ''}"><div class="lbl">${r.lbl}<small>${r.note}</small></div>
|
|
273
|
+
<div class="bu-bar"><i style="left:${r.from / max * 100}%;width:${Math.max(0.4, (r.to - r.from) / max * 100)}%"></i></div><div class="amt">${r.amt}</div></div>`;
|
|
274
|
+
}
|
|
275
|
+
function viewHeadline(p) {
|
|
276
|
+
$('#headline').innerHTML = `<div class="big"><span>Range to present</span><b>${viewMoney(p.presentLow)} – ${viewMoney(p.presentHigh)}</b><span>expected cost to worst realistic case</span></div>
|
|
277
|
+
<div><span>If one fixed number is unavoidable</span><b>${viewMoney(p.singleNumber)}</b><span>confident figure (80% chance at or under)</span></div>
|
|
278
|
+
<div><span>Expected cost</span><b>${viewMoney(p.p50)}</b><span>half the time lower, half higher</span></div>
|
|
279
|
+
<div><span>Implied accuracy</span><b>±${Math.round(p.impliedAccuracy * 100)}%</b><span>under 30%: a ballpark you can quote</span></div>`;
|
|
280
|
+
}
|
|
281
|
+
function viewSummary(v) {
|
|
282
|
+
const p = v.price; const base = p.adjustedBase; const out = base + p.overheads.amount;
|
|
283
|
+
viewHeadline(p);
|
|
284
|
+
const rows = [
|
|
285
|
+
{ lbl: 'Feature build', note: `${v.featureCount} scored features`, from: 0, to: p.featurePoints, amt: viewMoney(p.featurePoints) },
|
|
286
|
+
{ lbl: `× ${p.contextMultiplier.toFixed(2)} project context`, note: 'spec quality, decisions, compliance, familiarity', from: p.featurePoints, to: base, amt: `+${viewMoney(base - p.featurePoints)}` },
|
|
287
|
+
{ lbl: `+ ${Math.round(p.overheads.totalPct * 100)}% work outside features`, note: 'foundation, discovery, UX, QA, DevOps, docs, PM, integration', from: base, to: out, amt: `+${viewMoney(p.overheads.amount)}` },
|
|
288
|
+
{ lbl: `+ ${(p.contingencyRate * 100).toFixed(1)}% contingency`, note: 'known unknowns inside the agreed scope', from: out, to: p.p50, amt: `+${viewMoney(p.contingencyAmount)}` },
|
|
289
|
+
{ lbl: '= Expected cost', note: '', from: 0, to: p.p50, amt: viewMoney(p.p50), cls: 'total' },
|
|
290
|
+
{ lbl: 'Range to present', note: 'expected cost → worst realistic case, rounded up to 500', from: p.presentLow, to: p.presentHigh, amt: `${viewMoney(p.presentLow)}–${viewMoney(p.presentHigh)}`, cls: 'range' },
|
|
291
|
+
];
|
|
292
|
+
$('#buildup').innerHTML = `<h3>How the price builds up</h3>${rows.map((r) => viewBuRow(r, p.presentHigh || 1)).join('')}`;
|
|
293
|
+
}
|
|
294
|
+
function viewMs(m) {
|
|
295
|
+
const n = m.features.length;
|
|
296
|
+
return `<div class="m"><div class="dim num">${n} feature${n === 1 ? '' : 's'} finished<span class="internal"> · ${m.components} components</span></div>
|
|
297
|
+
<h4>${esc(m.title)}</h4>
|
|
298
|
+
<div class="amt internal"><b>${viewMoney(m.low)}–${viewMoney(m.high)}</b> · ${Math.round(m.share * 100)}% of the build</div>
|
|
299
|
+
<div>${m.features.map((f) => `<span class="chip" data-f="${esc(f.id)}" title="${esc(f.system ?? '')}">${esc(f.name)}</span>`).join('')}</div></div>`;
|
|
300
|
+
}
|
|
301
|
+
function viewRoadmap(page) {
|
|
302
|
+
$('#ms').innerHTML = page.milestones.map(viewMs).join('');
|
|
303
|
+
$('#assume').innerHTML = page.register.assumptions.map((a) => `<li>${esc(a)}</li>`).join('');
|
|
304
|
+
$('#exclude').innerHTML = page.register.exclusions.map((a) => `<li>${esc(a)}</li>`).join('');
|
|
305
|
+
}
|
|
306
|
+
function viewContext(v) {
|
|
307
|
+
$('#ctx').innerHTML = `<tr><th>Factor</th><th>Level</th><th class="r">Multiplier</th></tr>${v.context.map((c) =>
|
|
308
|
+
`<tr><td>${esc(c.label)}</td><td>${c.level} · ${esc(c.anchor)}</td><td class="r">${c.multiplier.toFixed(2)}</td></tr>`).join('')}
|
|
309
|
+
<tr class="sum"><td colspan="2">Composite (1 + sum of deviations, cap 2.5)</td><td class="r">${v.price.contextMultiplier.toFixed(2)}</td></tr>`;
|
|
310
|
+
}
|
|
311
|
+
function viewOverheads(v) {
|
|
312
|
+
const o = v.price.overheads;
|
|
313
|
+
$('#ovh').innerHTML = `<tr><th>Cost line</th><th class="r">% of base</th><th class="r">Amount</th></tr>${v.overheads.map((r) =>
|
|
314
|
+
`<tr><td>${esc(r.label)}</td><td class="r">${Math.round(r.pct * 100)}%</td><td class="r">${viewMoney(r.amount)}</td></tr>`).join('')}
|
|
315
|
+
<tr class="sum"><td>Total</td><td class="r">${Math.round(o.totalPct * 100)}%</td><td class="r">${viewMoney(o.amount)}</td></tr>`;
|
|
316
|
+
}
|
|
317
|
+
function viewMethod(v) {
|
|
318
|
+
const p = v.price; const e = v.effort;
|
|
319
|
+
viewContext(v); viewOverheads(v);
|
|
320
|
+
$('#cont').innerHTML = viewKv([['Average uncertainty across features', v.avgUnc.toFixed(2)], ['Average risk across features', v.avgRisk.toFixed(2)],
|
|
321
|
+
['Rate: 5% + 2% × uncertainty + 2% × risk', `${(p.contingencyRate * 100).toFixed(1)}%`]], ['On build + outside work', viewMoney(p.contingencyAmount)]);
|
|
322
|
+
$('#rng').innerHTML = viewKv([['Optimistic (20% chance at or under)', viewMoney(p.p20)], ['Expected cost', viewMoney(p.p50)],
|
|
323
|
+
['Confident (80%)', viewMoney(p.p80)], ['Worst realistic case (95%)', viewMoney(p.p95)]],
|
|
324
|
+
['Presented: expected → worst, rounded up to 500', `${viewMoney(p.presentLow)}–${viewMoney(p.presentHigh)}`]);
|
|
325
|
+
$('#xcheck').innerHTML = viewKv([['Components', e.components], ['Tasks', e.tasks], ['Expected effort (agentic baselines)', `${Math.round(e.hours).toLocaleString('en-US')}h`]],
|
|
326
|
+
['Implied rate at the expected cost', e.rate === null ? '—' : `${viewMoney(e.rate)}/h`]);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// the client's features (business capabilities) on their workflow steps; priced through the engineering features above
|
|
330
|
+
const FEATS = DATA.systems.flatMap((s) => s.features.map((f) => ({ ...f, sys: s })));
|
|
331
|
+
const byId = Object.fromEntries(FEATS.map((f) => [f.id, f]));
|
|
332
|
+
|
|
333
|
+
// ---- systems ----
|
|
334
|
+
function renderSystems() {
|
|
335
|
+
$('#syscards').innerHTML = DATA.systems.map((s, i) => {
|
|
336
|
+
return `<button type="button" class="sys" data-sys="${s.id}"><div class="eyebrow">System ${i + 1}</div><h4>${esc(s.name)}</h4>
|
|
337
|
+
<div class="meta">${s.features.length} features · ${s.main ? 'workflow from the PO\'s document' : 'no workflow in the PO\'s document'}${s.subs.length ? ` · ${s.subs.length} sub-workflow` : ''}</div></button>`;
|
|
338
|
+
}).join('');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function flowCode(fl) {
|
|
342
|
+
const ids = new Map(); const id = (n) => { if (!ids.has(n)) ids.set(n, `n${ids.size}`); return ids.get(n); };
|
|
343
|
+
const L = ['flowchart LR'];
|
|
344
|
+
fl.steps.forEach((st, i) => { if (i) L.push(` ${id(fl.steps[i - 1])} --> ${id(st)}`); });
|
|
345
|
+
fl.branches.forEach((b) => L.push(` ${id(b.from)} -.-> ${id(b.to)}`));
|
|
346
|
+
const map = {}; for (const [n, i] of ids) { L.push(` ${i}["${n.replace(/"/g, "'")}"]`); map[i] = `${fl.id}:${n}`; }
|
|
347
|
+
return { code: L.join('\n'), map };
|
|
348
|
+
}
|
|
349
|
+
const flowsOf = (s) => [s.main, ...s.subs].filter(Boolean);
|
|
350
|
+
const stepName = (r) => r.slice(r.indexOf(':') + 1);
|
|
351
|
+
function featureView(s) {
|
|
352
|
+
return `<table class="bd"><tr><th>ID</th><th>Feature</th><th>Workflow steps</th></tr>${s.features.map((f0) => {
|
|
353
|
+
const f = byId[f0.id];
|
|
354
|
+
const steps = f.steps.includes('*') ? '<span class="chip">every system</span>' : f.steps.length ? f.steps.map((r) => `<span class="chip">${esc(stepName(r))}</span>`).join('') : '<span class="chip">not on a workflow step</span>';
|
|
355
|
+
return `<tr data-feat="${f.id}"><td class="dim num">${f.id}</td><td><div class="fname">${esc(f.name)}</div><div class="fdoes">${esc(f.does)}</div></td><td>${steps}</td></tr>`; }).join('')}</table>`;
|
|
356
|
+
}
|
|
357
|
+
function renderBreakdown() {
|
|
358
|
+
$('#blocks').innerHTML = DATA.systems.map((s, i) => {
|
|
359
|
+
const flows = flowsOf(s).map((fl) => { const m = flowCode(fl);
|
|
360
|
+
return `<p class="flow-name">${fl === s.main ? 'Main workflow' : 'Sub-workflow'} · ${esc(fl.name)}</p><div class="flow" data-map="${esc(JSON.stringify(m.map))}"><pre class="mermaid">${esc(m.code)}</pre></div>`; }).join('');
|
|
361
|
+
return `<div class="sys-block" id="b-${s.id}"><div class="sb-head"><h4>System ${i + 1} · ${esc(s.name)}</h4><span class="amt">${s.features.length} features</span></div>
|
|
362
|
+
${flows}${featureView(s)}</div>`;
|
|
363
|
+
}).join('');
|
|
364
|
+
}
|
|
365
|
+
// ---- hover previews, click pins: diagram box ↔ feature row ↔ system card ↔ milestone chip ----
|
|
366
|
+
const refsOfFeat = (f) => new Set(f.steps.includes('*') ? flowsOf(f.sys).flatMap((fl) => [...fl.steps, ...fl.branches.map((b) => b.to)].map((st) => `${fl.id}:${st}`)) : f.steps);
|
|
367
|
+
const fromStep = (ref) => [new Set([ref]), new Set(FEATS.filter((f) => f.steps.includes(ref)).map((f) => f.id))];
|
|
368
|
+
const fromFeat = (id) => [refsOfFeat(byId[id]), new Set([id])];
|
|
369
|
+
const fromSys = (sid) => { const s = DATA.systems.find((x) => x.id === sid);
|
|
370
|
+
return [new Set(flowsOf(s).flatMap((fl) => [...fl.steps, ...fl.branches.map((b) => b.to)].map((st) => `${fl.id}:${st}`))), new Set(s.features.map((f) => f.id))]; };
|
|
371
|
+
function highlight(refs, feats) {
|
|
372
|
+
document.querySelectorAll('tr[data-feat]').forEach((t) => t.classList.toggle('hl', feats.has(t.dataset.feat)));
|
|
373
|
+
document.querySelectorAll('.chip[data-f]').forEach((c) => c.classList.toggle('hl', feats.has(c.dataset.f)));
|
|
374
|
+
document.querySelectorAll('.sys').forEach((c) => c.classList.toggle('hl', [...feats].some((id) => byId[id]?.sys.id === c.dataset.sys)));
|
|
375
|
+
document.querySelectorAll('.flow').forEach((d) => { const map = JSON.parse(d.dataset.map);
|
|
376
|
+
d.querySelectorAll('g.node').forEach((g) => g.classList.toggle('hl', refs.has(map[(g.id.match(/flowchart-(n\d+)-/) || [])[1]]))); });
|
|
377
|
+
}
|
|
378
|
+
const clearHl = () => document.querySelectorAll('.hl, .cur').forEach((x) => x.classList.remove('hl', 'cur'));
|
|
379
|
+
function hitAt(t) {
|
|
380
|
+
const node = t.closest('.flow g.node');
|
|
381
|
+
if (node) { const ref = JSON.parse(node.closest('.flow').dataset.map)[(node.id.match(/flowchart-(n\d+)-/) || [])[1]];
|
|
382
|
+
return ref ? { hit: fromStep(ref), label: `Step “${stepName(ref)}”`, ref } : null; }
|
|
383
|
+
const id = t.closest('tr[data-feat]')?.dataset.feat || t.closest('.chip[data-f]')?.dataset.f;
|
|
384
|
+
if (id && byId[id]) return { hit: fromFeat(id), label: `${id} ${byId[id].name}` };
|
|
385
|
+
const sid = t.closest('.sys')?.dataset.sys;
|
|
386
|
+
return sid ? { hit: fromSys(sid), label: DATA.systems.find((x) => x.id === sid).name } : null;
|
|
387
|
+
}
|
|
388
|
+
let pin = null;
|
|
389
|
+
// only what is on screen: skip parts inside a collapsed system or a hidden section
|
|
390
|
+
const onScreen = (x) => !x.closest('.hide, details:not([open])') && x.getClientRects().length > 0;
|
|
391
|
+
const litParts = () => [...document.querySelectorAll('.flow g.node.hl, tr[data-feat].hl')].filter(onScreen);
|
|
392
|
+
function showPin() { const n = litParts(); const [r, f] = pin.hit; $('#pinLabel').textContent = pin.label;
|
|
393
|
+
$('#pinCount').textContent = `${r.size} step${r.size === 1 ? '' : 's'} · ${f.size} feature${f.size === 1 ? '' : 's'} · ${pin.i + 1}/${n.length}`; $('#pinbar').classList.remove('hide');
|
|
394
|
+
$('#pinFeat').classList.toggle('hide', !pin.ref); if (pin.ref) $('#pinFeat').href = `estimate-components.html#step=${encodeURIComponent(pin.ref)}`; }
|
|
395
|
+
function jump(d) { const n = litParts(); if (!n.length) return; pin.i = (pin.i + d + n.length) % n.length;
|
|
396
|
+
n.forEach((x) => x.classList.remove('cur')); n[pin.i].classList.add('cur'); n[pin.i].scrollIntoView({ block: 'center', behavior: 'smooth' }); showPin(); }
|
|
397
|
+
function unpin() { pin = null; clearHl(); $('#pinbar').classList.add('hide'); }
|
|
398
|
+
document.addEventListener('mouseover', (e) => { if (pin) return; const h = hitAt(e.target); if (h) highlight(...h.hit); else clearHl(); });
|
|
399
|
+
document.addEventListener('click', (e) => {
|
|
400
|
+
if (e.target.closest('#pinbar, #theme, .pages')) return;
|
|
401
|
+
const h = hitAt(e.target); if (!h) return;
|
|
402
|
+
if (pin && pin.label === h.label) { unpin(); return; }
|
|
403
|
+
pin = { ...h, i: -1 }; clearHl(); highlight(...h.hit); showPin();
|
|
404
|
+
if (e.target.closest('.sys')) { $(`#b-${e.target.closest('.sys').dataset.sys}`).scrollIntoView({ block: 'start', behavior: 'smooth' }); }
|
|
405
|
+
});
|
|
406
|
+
document.addEventListener('keydown', (e) => { if (!pin) return; if (e.key === 'Escape') unpin(); else if (e.key === 'j') jump(1); else if (e.key === 'k') jump(-1); });
|
|
407
|
+
$('#pinNext').onclick = () => jump(1); $('#pinPrev').onclick = () => jump(-1); $('#pinClear').onclick = unpin;
|
|
408
|
+
|
|
409
|
+
// ---- page identity ----
|
|
410
|
+
// ---- render + theme + diagrams ----
|
|
411
|
+
$('#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}`;
|
|
412
|
+
viewSummary(PAGE.view); renderSystems(); renderBreakdown(); viewRoadmap(PAGE); viewMethod(PAGE.view);
|
|
413
|
+
const dark = () => document.documentElement.dataset.theme === 'dark' || (!document.documentElement.dataset.theme && matchMedia('(prefers-color-scheme: dark)').matches);
|
|
414
|
+
const src = [...document.querySelectorAll('pre.mermaid')].map((p) => p.textContent);
|
|
415
|
+
let mermaid;
|
|
416
|
+
async function draw() {
|
|
417
|
+
try {
|
|
418
|
+
mermaid ??= (await import('https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs')).default;
|
|
419
|
+
const t = (v) => getComputedStyle(document.documentElement).getPropertyValue(v).trim();
|
|
420
|
+
mermaid.initialize({ startOnLoad: false, theme: 'base', flowchart: { curve: 'basis', padding: 10 }, themeVariables: { fontFamily: 'system-ui,sans-serif', fontSize: '12px',
|
|
421
|
+
background: t('--paper'), primaryColor: t('--sheet'), primaryTextColor: t('--ink'), primaryBorderColor: t('--meter'), lineColor: t('--ink-dim'), edgeLabelBackground: t('--paper'), textColor: t('--ink') } });
|
|
422
|
+
const pres = [...document.querySelectorAll('pre.mermaid')];
|
|
423
|
+
pres.forEach((p, i) => { p.removeAttribute('data-processed'); p.textContent = src[i]; });
|
|
424
|
+
await mermaid.run({ nodes: pres });
|
|
425
|
+
if (pin) highlight(...pin.hit);
|
|
426
|
+
pinFromHash();
|
|
427
|
+
} catch { /* diagrams need a connection */ }
|
|
428
|
+
}
|
|
429
|
+
$('#theme').onclick = () => { document.documentElement.dataset.theme = dark() ? 'light' : 'dark'; $('#theme').textContent = dark() ? 'Light' : 'Dark'; draw(); };
|
|
430
|
+
$('#theme').textContent = dark() ? 'Light' : 'Dark';
|
|
431
|
+
function pinFromHash() {
|
|
432
|
+
const ref = decodeURIComponent(location.hash.match(/^#step=(.+)$/)?.[1] ?? '');
|
|
433
|
+
if (!ref || pin?.ref === ref) return;
|
|
434
|
+
pin = { hit: fromStep(ref), label: `Step “${stepName(ref)}”`, ref, i: -1 }; clearHl(); highlight(...pin.hit); showPin();
|
|
435
|
+
document.querySelector('.flow g.node.hl')?.closest('.sys-block')?.scrollIntoView({ block: 'start' });
|
|
436
|
+
}
|
|
437
|
+
draw();
|
|
438
|
+
</script>
|
|
439
|
+
</body>
|
|
440
|
+
</html>
|