@blackbelt-technology/pi-dashboard-deck3d 0.0.0-stage → 0.9.0

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.
Files changed (260) hide show
  1. package/.pi/skills/deck3d/SKILL.md +227 -0
  2. package/.pi/skills/deck3d/examples/deck.json +388 -0
  3. package/.pi/skills/deck3d/examples/fixture.md +18 -0
  4. package/.pi/skills/deck3d/examples/snapshot-after.png +0 -0
  5. package/.pi/skills/deck3d/examples/snapshot-before.png +0 -0
  6. package/.pi/skills/deck3d/reference/effects.agent.md +78 -0
  7. package/.pi/skills/deck3d/reference/effects.md +1217 -0
  8. package/.pi/skills/deck3d/reference/ir-fields.agent.md +30 -0
  9. package/.pi/skills/deck3d/reference/ir-fields.md +246 -0
  10. package/README.md +177 -2
  11. package/assets/LICENSE-Poppins.txt +99 -0
  12. package/assets/Poppins-Bold.ttf +0 -0
  13. package/assets/props/LICENSES.txt +4 -0
  14. package/assets/props/brain.glb +0 -0
  15. package/assets/props/cloud.glb +0 -0
  16. package/assets/props/cube.glb +0 -0
  17. package/assets/props/database.glb +0 -0
  18. package/assets/props/laptop.glb +0 -0
  19. package/assets/props/manifest.json +119 -0
  20. package/assets/props/robot.glb +0 -0
  21. package/assets/props/server.glb +0 -0
  22. package/assets/props/shield.glb +0 -0
  23. package/bin/deck3d +49 -0
  24. package/dist/cli.js +10228 -0
  25. package/dist/harvest/harness.js +185718 -0
  26. package/dist/runtime.js +64597 -0
  27. package/fixtures/business-2031/build-deck.mjs +60 -0
  28. package/fixtures/business-2031/build-overrides.mjs +154 -0
  29. package/fixtures/business-2031/deck.json +4220 -0
  30. package/fixtures/business-2031/deck.md +470 -0
  31. package/fixtures/business-2031/fx/closing-mark.js +43 -0
  32. package/fixtures/business-2031/fx/closing-mark.meta.json +26 -0
  33. package/fixtures/business-2031/overrides.json +903 -0
  34. package/fixtures/harvest.md +23 -0
  35. package/fixtures/strategy-lab.json +891 -0
  36. package/fixtures/strategy-lab.md +85 -0
  37. package/package.json +80 -4
  38. package/scripts/build-cli.mjs +29 -0
  39. package/scripts/build-harvest.ts +8 -0
  40. package/scripts/build-runtime.mjs +22 -0
  41. package/scripts/gen-effects.ts +14 -0
  42. package/scripts/gen-ir-fields.ts +34 -0
  43. package/src/check/index.ts +315 -0
  44. package/src/check/rules.ts +393 -0
  45. package/src/cli-io.ts +23 -0
  46. package/src/cli.ts +823 -0
  47. package/src/fx/accent-cycle.meta.json +26 -0
  48. package/src/fx/accent-cycle.ts +8 -0
  49. package/src/fx/agent-depth.meta.json +42 -0
  50. package/src/fx/agent-depth.ts +62 -0
  51. package/src/fx/ascii.meta.json +35 -0
  52. package/src/fx/ascii.ts +4 -0
  53. package/src/fx/aurora.meta.json +26 -0
  54. package/src/fx/aurora.ts +18 -0
  55. package/src/fx/billboards.meta.json +34 -0
  56. package/src/fx/billboards.ts +67 -0
  57. package/src/fx/bloom.meta.json +26 -0
  58. package/src/fx/bloom.ts +4 -0
  59. package/src/fx/camera-drift.meta.json +26 -0
  60. package/src/fx/camera-drift.ts +8 -0
  61. package/src/fx/capital-flows.meta.json +30 -0
  62. package/src/fx/capital-flows.ts +64 -0
  63. package/src/fx/catalogue.ts +89 -0
  64. package/src/fx/chromatic-aberration.meta.json +32 -0
  65. package/src/fx/chromatic-aberration.ts +4 -0
  66. package/src/fx/city-grid.meta.json +37 -0
  67. package/src/fx/city-grid.ts +51 -0
  68. package/src/fx/clipped-solids.meta.json +49 -0
  69. package/src/fx/clipped-solids.ts +171 -0
  70. package/src/fx/cohort-grid.meta.json +48 -0
  71. package/src/fx/cohort-grid.ts +63 -0
  72. package/src/fx/compose.ts +114 -0
  73. package/src/fx/constellation.meta.json +51 -0
  74. package/src/fx/constellation.ts +103 -0
  75. package/src/fx/curve-flow.meta.json +40 -0
  76. package/src/fx/curve-flow.ts +63 -0
  77. package/src/fx/dashed-flow.meta.json +27 -0
  78. package/src/fx/dashed-flow.ts +8 -0
  79. package/src/fx/data-columns.meta.json +30 -0
  80. package/src/fx/data-columns.ts +18 -0
  81. package/src/fx/defaults.ts +92 -0
  82. package/src/fx/depth-of-field.meta.json +40 -0
  83. package/src/fx/depth-of-field.ts +4 -0
  84. package/src/fx/dolly.meta.json +26 -0
  85. package/src/fx/dolly.ts +4 -0
  86. package/src/fx/dot-screen.meta.json +35 -0
  87. package/src/fx/dot-screen.ts +4 -0
  88. package/src/fx/dynamic-instances.meta.json +40 -0
  89. package/src/fx/dynamic-instances.ts +57 -0
  90. package/src/fx/emissive.meta.json +26 -0
  91. package/src/fx/emissive.ts +8 -0
  92. package/src/fx/extruded-shapes.meta.json +62 -0
  93. package/src/fx/extruded-shapes.ts +133 -0
  94. package/src/fx/fab-wafer.meta.json +42 -0
  95. package/src/fx/fab-wafer.ts +72 -0
  96. package/src/fx/fade.meta.json +26 -0
  97. package/src/fx/fade.ts +4 -0
  98. package/src/fx/film.meta.json +26 -0
  99. package/src/fx/film.ts +4 -0
  100. package/src/fx/float.meta.json +26 -0
  101. package/src/fx/float.ts +8 -0
  102. package/src/fx/flythrough.meta.json +26 -0
  103. package/src/fx/flythrough.ts +4 -0
  104. package/src/fx/fog.meta.json +26 -0
  105. package/src/fx/fog.ts +8 -0
  106. package/src/fx/geo-fragments.meta.json +48 -0
  107. package/src/fx/geo-fragments.ts +59 -0
  108. package/src/fx/glass.meta.json +26 -0
  109. package/src/fx/glass.ts +8 -0
  110. package/src/fx/globe-arcs.meta.json +36 -0
  111. package/src/fx/globe-arcs.ts +67 -0
  112. package/src/fx/glow-tube.meta.json +26 -0
  113. package/src/fx/glow-tube.ts +8 -0
  114. package/src/fx/glyph-rain.meta.json +30 -0
  115. package/src/fx/glyph-rain.ts +18 -0
  116. package/src/fx/god-rays.meta.json +40 -0
  117. package/src/fx/god-rays.ts +4 -0
  118. package/src/fx/grid-horizon.meta.json +30 -0
  119. package/src/fx/grid-horizon.ts +18 -0
  120. package/src/fx/hex-grid.meta.json +29 -0
  121. package/src/fx/hex-grid.ts +18 -0
  122. package/src/fx/holo-fresnel.meta.json +26 -0
  123. package/src/fx/holo-fresnel.ts +8 -0
  124. package/src/fx/horizon-gates.meta.json +36 -0
  125. package/src/fx/horizon-gates.ts +60 -0
  126. package/src/fx/index.ts +258 -0
  127. package/src/fx/iridescent.meta.json +26 -0
  128. package/src/fx/iridescent.ts +8 -0
  129. package/src/fx/iris.meta.json +26 -0
  130. package/src/fx/iris.ts +4 -0
  131. package/src/fx/lightformers.meta.json +26 -0
  132. package/src/fx/lightformers.ts +8 -0
  133. package/src/fx/local.ts +200 -0
  134. package/src/fx/market-tape.meta.json +53 -0
  135. package/src/fx/market-tape.ts +97 -0
  136. package/src/fx/matcap.meta.json +26 -0
  137. package/src/fx/matcap.ts +8 -0
  138. package/src/fx/meta.schema.json +49 -0
  139. package/src/fx/metal.meta.json +26 -0
  140. package/src/fx/metal.ts +8 -0
  141. package/src/fx/mirror-floor.meta.json +26 -0
  142. package/src/fx/mirror-floor.ts +8 -0
  143. package/src/fx/neural-mesh.meta.json +54 -0
  144. package/src/fx/neural-mesh.ts +110 -0
  145. package/src/fx/orbit-agents.meta.json +36 -0
  146. package/src/fx/orbit-agents.ts +63 -0
  147. package/src/fx/orbit.meta.json +27 -0
  148. package/src/fx/orbit.ts +8 -0
  149. package/src/fx/outline.meta.json +43 -0
  150. package/src/fx/outline.ts +4 -0
  151. package/src/fx/paper-stack.meta.json +36 -0
  152. package/src/fx/paper-stack.ts +61 -0
  153. package/src/fx/particle-stream.meta.json +27 -0
  154. package/src/fx/particle-stream.ts +8 -0
  155. package/src/fx/particles.meta.json +26 -0
  156. package/src/fx/particles.ts +8 -0
  157. package/src/fx/pixelate.meta.json +28 -0
  158. package/src/fx/pixelate.ts +4 -0
  159. package/src/fx/points-on-geometry.meta.json +61 -0
  160. package/src/fx/points-on-geometry.ts +71 -0
  161. package/src/fx/proof-gate.meta.json +30 -0
  162. package/src/fx/proof-gate.ts +67 -0
  163. package/src/fx/rings.meta.json +27 -0
  164. package/src/fx/rings.ts +8 -0
  165. package/src/fx/room-ibl.meta.json +26 -0
  166. package/src/fx/room-ibl.ts +8 -0
  167. package/src/fx/sao.meta.json +32 -0
  168. package/src/fx/sao.ts +4 -0
  169. package/src/fx/scaffold.ts +172 -0
  170. package/src/fx/scatter.meta.json +49 -0
  171. package/src/fx/scatter.ts +74 -0
  172. package/src/fx/selective-bloom.meta.json +36 -0
  173. package/src/fx/selective-bloom.ts +4 -0
  174. package/src/fx/server-racks.meta.json +36 -0
  175. package/src/fx/server-racks.ts +54 -0
  176. package/src/fx/shader-particles.meta.json +46 -0
  177. package/src/fx/shader-particles.ts +75 -0
  178. package/src/fx/signal-pulse.meta.json +27 -0
  179. package/src/fx/signal-pulse.ts +8 -0
  180. package/src/fx/smaa.meta.json +19 -0
  181. package/src/fx/smaa.ts +4 -0
  182. package/src/fx/sobel.meta.json +24 -0
  183. package/src/fx/sobel.ts +4 -0
  184. package/src/fx/soft-shadows.meta.json +26 -0
  185. package/src/fx/soft-shadows.ts +8 -0
  186. package/src/fx/sprites.meta.json +40 -0
  187. package/src/fx/sprites.ts +57 -0
  188. package/src/fx/stagger-reveal.meta.json +26 -0
  189. package/src/fx/stagger-reveal.ts +8 -0
  190. package/src/fx/starfield.meta.json +32 -0
  191. package/src/fx/starfield.ts +18 -0
  192. package/src/fx/swarm.meta.json +27 -0
  193. package/src/fx/swarm.ts +8 -0
  194. package/src/fx/tessellate.meta.json +39 -0
  195. package/src/fx/tessellate.ts +79 -0
  196. package/src/fx/tokens.meta.json +27 -0
  197. package/src/fx/tokens.ts +8 -0
  198. package/src/fx/trail.meta.json +27 -0
  199. package/src/fx/trail.ts +8 -0
  200. package/src/fx/trust-ledger.meta.json +30 -0
  201. package/src/fx/trust-ledger.ts +47 -0
  202. package/src/fx/types.ts +83 -0
  203. package/src/fx/util.ts +108 -0
  204. package/src/fx/vault-glyphs.meta.json +37 -0
  205. package/src/fx/vault-glyphs.ts +55 -0
  206. package/src/fx/video-screen.meta.json +57 -0
  207. package/src/fx/video-screen.ts +99 -0
  208. package/src/fx/vignette.meta.json +32 -0
  209. package/src/fx/vignette.ts +4 -0
  210. package/src/fx/volume-cloud.meta.json +58 -0
  211. package/src/fx/volume-cloud.ts +87 -0
  212. package/src/fx/volume-perlin.meta.json +46 -0
  213. package/src/fx/volume-perlin.ts +82 -0
  214. package/src/fx/volumetric-spot.meta.json +26 -0
  215. package/src/fx/volumetric-spot.ts +8 -0
  216. package/src/fx/wireframe-overlay.meta.json +27 -0
  217. package/src/fx/wireframe-overlay.ts +8 -0
  218. package/src/ir/defaults.ts +62 -0
  219. package/src/ir/field-reference.ts +96 -0
  220. package/src/ir/hash.ts +34 -0
  221. package/src/ir/ids.ts +65 -0
  222. package/src/ir/merge.ts +155 -0
  223. package/src/ir/schema.json +1211 -0
  224. package/src/ir/types.ts +333 -0
  225. package/src/ir/validate.ts +196 -0
  226. package/src/parse/derive.ts +205 -0
  227. package/src/parse/harvest/bundle.ts +56 -0
  228. package/src/parse/harvest/harness.html +22 -0
  229. package/src/parse/harvest/harness.ts +191 -0
  230. package/src/parse/harvest/index.ts +169 -0
  231. package/src/parse/harvest/shapes.ts +75 -0
  232. package/src/parse/markdown.ts +215 -0
  233. package/src/props/embed.ts +92 -0
  234. package/src/props/fetch.ts +97 -0
  235. package/src/props/generate.ts +152 -0
  236. package/src/props/key.ts +13 -0
  237. package/src/props/search.ts +180 -0
  238. package/src/render/embed-video.ts +80 -0
  239. package/src/render/font.ts +86 -0
  240. package/src/render/index.ts +149 -0
  241. package/src/render/template.html +87 -0
  242. package/src/runtime/backgrounds.ts +146 -0
  243. package/src/runtime/builders.ts +808 -0
  244. package/src/runtime/camera.ts +73 -0
  245. package/src/runtime/hud.ts +887 -0
  246. package/src/runtime/index.ts +1168 -0
  247. package/src/runtime/local-fx.ts +151 -0
  248. package/src/runtime/materials.ts +136 -0
  249. package/src/runtime/measure.ts +73 -0
  250. package/src/runtime/node-geometry.ts +26 -0
  251. package/src/runtime/palette.ts +111 -0
  252. package/src/runtime/post.ts +649 -0
  253. package/src/runtime/props.ts +292 -0
  254. package/src/runtime/quality.ts +20 -0
  255. package/src/runtime/rng.ts +8 -0
  256. package/src/runtime/scene.ts +644 -0
  257. package/src/runtime/text.ts +174 -0
  258. package/src/runtime/types.ts +118 -0
  259. package/src/serve/index.ts +376 -0
  260. package/src/util/paths.ts +35 -0
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Regenerates this fixture's `deck.md` (Section 20 FX-coverage pass).
3
+ *
4
+ * The 23 narrative slides are LIFTED VERBATIM from
5
+ * `presentations/business-next-5-years/deck.md` — the fixture must not drift
6
+ * from the deck it is cut from. The remaining slides exist so every card in
7
+ * the corpus is presented somewhere; their copy is deliberately qualitative
8
+ * (checklists and questions), because inventing sourced-looking statistics in
9
+ * a deck whose whole point is "sourced and dated" would be a lie in a fixture.
10
+ *
11
+ * node build-deck.mjs
12
+ */
13
+ import { readFileSync, writeFileSync } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ import { fileURLToPath } from "node:url";
16
+
17
+ const here = dirname(fileURLToPath(import.meta.url));
18
+ const SOURCE = join(here, "..", "..", "..", "..", "presentations", "business-next-5-years", "deck.md");
19
+
20
+ const FRONTMATTER = `---
21
+ mode: dark
22
+ palette: blackbelt
23
+ material: glass
24
+ quality: high
25
+ ---
26
+ `;
27
+
28
+ const CAM = `<!-- deck3d: {"camera":{"distance":12},"check":{"ignore":["contrast"]}} -->`;
29
+
30
+ /** Slides authored for this fixture — one per corpus card left uncovered. */
31
+ const EXTRA = [
32
+ ["procurement", "Procurement Learns AI", "The buying committee grew a new seat", ["An AI reviewer now reads your answers", "Questionnaires ask for model provenance", "Expect data-residency clauses by default", "Answer once, reuse the artefact"]],
33
+ ["proof-library", "Build a Proof Library", "Stop rebuilding evidence per deal", ["One benchmark, run on the buyer's shape of data", "A reference that survives a reference call", "A failure you can describe honestly", "Version it like product, not like slides"]],
34
+ ["pricing", "Pricing Moves to Outcomes", "Seats price the tool, not the result", ["Per-seat erodes when the seat is an agent", "Usage pricing exposes your cost floor", "Outcome pricing needs measurement you trust", "Pick the unit you can defend in a QBR"]],
35
+ ["dataroom", "Your Data Room Is the Demo", "Buyers inspect the plumbing now", ["Where the data sits, and who can reach it", "What is retained, and for how long", "Which subprocessor sees what", "Have the diagram ready before they ask"]],
36
+ ["energy", "Energy Becomes a Sales Term", "Compute has a physical bill", ["Capacity is booked years ahead", "Locality changes latency and price", "Efficiency turns into a commercial argument", "Know what your workload actually costs"]],
37
+ ["sovereignty", "Sovereign by Default", "Where it runs is part of the product", ["Region is a requirement, not a preference", "Public sector leads, enterprise follows", "Portability beats promises of portability", "Design for a split deployment early"]],
38
+ ["identity", "Agents Need Identity", "A non-human actor still needs a name", ["Credentials scoped per agent, not per team", "Every action attributable after the fact", "Revocation that works in minutes", "Least privilege survives the pilot"]],
39
+ ["security", "The New Attack Surface", "Prompt paths are input paths", ["Untrusted text reaching a tool call", "Retrieval as an injection channel", "Agent output treated as trusted input", "Red-team the loop, not just the model"]],
40
+ ["integration", "The Integration Tax", "The demo is not the deployment", ["Legacy systems set the real timeline", "Data quality sets the real accuracy", "Change management sets the real adoption", "Quote the tax, or absorb it later"]],
41
+ ["evals", "Evaluation Becomes a Product", "If you cannot measure it, you cannot renew it", ["A shared definition of good, written down", "Regression runs before every release", "Buyer-visible dashboards, not screenshots", "Evaluation is the contract's spine"]],
42
+ ["support", "Support Is the Beachhead", "The first place agents actually land", ["Volume, repetition and written history", "Deflection is measurable on day one", "Escalation design decides the outcome", "Win here, expand from evidence"]],
43
+ ["talent", "The Talent Market Splits", "Two curves, moving apart", ["Deep specialists become scarcer", "Generalists gain reach, then get squeezed", "Hiring bars move mid-process", "Skills currency beats a title"]],
44
+ ["partners", "Partners Change Shape", "Integrators sell outcomes, not bodies", ["Day-rate models lose their basis", "Reference architectures become products", "Co-selling needs shared proof", "Pick partners by evidence, not logo"]],
45
+ ["smb", "The Long Tail Wakes Up", "Capability arrives without a project", ["Defaults do the adoption for them", "Willingness to pay stays thin", "Distribution beats feature depth", "Self-serve proof or no proof"]],
46
+ ["metrics", "What the Board Will Ask", "Four questions, every quarter", ["What did it cost, all-in", "What changed that we can measure", "What is the exposure if it is wrong", "What happens if we stop"]],
47
+ ["risks", "Risk Register 2031", "Name them before a buyer does", ["Concentration in one supply chain", "Regulatory divergence across regions", "Model behaviour drifting under you", "Organisational trust spent too early"]],
48
+ ["close", "The Bet", "Depth, evidence, and the patience to measure", ["Broad adoption is already priced in", "Depth is where the next five years pay", "Proof compounds; narrative does not", "Start with one account, this quarter"]],
49
+ ];
50
+
51
+ const narrative = readFileSync(SOURCE, "utf8")
52
+ .replace(/^---[\s\S]*?---\n/, "")
53
+ .split(/\n(?=# )/)
54
+ .map((s) => s.trim())
55
+ .filter(Boolean);
56
+
57
+ const extras = EXTRA.map(([id, title, sub, bullets]) => `# ${title} {#${id}}\n\n${sub}\n\n${bullets.map((b) => `- ${b}`).join("\n")}\n\n${CAM}`);
58
+
59
+ writeFileSync(join(here, "deck.md"), `${FRONTMATTER}\n${[...narrative, ...extras].join("\n\n")}\n`);
60
+ console.log(`deck.md: ${narrative.length} narrative + ${extras.length} authored = ${narrative.length + extras.length} slides`);
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Regenerates `overrides.json` (Section 20 FX-coverage pass) and asserts the
3
+ * coverage claim the fixture exists to make: EVERY card in the corpus appears
4
+ * on exactly one slide, and no card appears twice.
5
+ *
6
+ * Deck-scope effects are deliberately EMPTY — `applyOverrides` prepends them
7
+ * to every slide, which is duplication by construction.
8
+ *
9
+ * node build-overrides.mjs && ../../bin/deck3d overrides apply deck.json overrides.json
10
+ */
11
+ import { createHash } from "node:crypto";
12
+ import { readdirSync, readFileSync, writeFileSync } from "node:fs";
13
+ import { dirname, join } from "node:path";
14
+ import { fileURLToPath } from "node:url";
15
+
16
+ const here = dirname(fileURLToPath(import.meta.url));
17
+
18
+ /** slide id → the cards it presents. One card, one slide, deck-wide. */
19
+ const PLAN = {
20
+ "how-business-changes-by-2031": ["local:closing-mark", "vignette"],
21
+ why: ["grid-horizon", "fog"],
22
+ forces: ["neural-mesh", "glass", "signal-pulse"],
23
+ capability: ["curve-flow", "bloom"],
24
+ jagged: ["tessellate", "sobel"],
25
+ adoption: ["data-columns", "smaa", "fade"],
26
+ agentgap: ["agent-depth", "float"],
27
+ money: ["capital-flows", "film"],
28
+ trust: ["trust-ledger", "glow-tube"],
29
+ dealflow: ["proof-gate", "depth-of-field", "particle-stream"],
30
+ work: ["cohort-grid", "outline"],
31
+ skills: ["swarm", "accent-cycle"],
32
+ reskill: ["points-on-geometry", "matcap"],
33
+ entry: ["sprites", "stagger-reveal"],
34
+ geo: ["geo-fragments", "lightformers", "dolly"],
35
+ compute: ["fab-wafer", "god-rays"],
36
+ productivity: ["market-tape", "selective-bloom"],
37
+ model: ["extruded-shapes", "iridescent"],
38
+ sales: ["orbit-agents", "chromatic-aberration"],
39
+ timeline: ["rings", "room-ibl"],
40
+ monday: ["hex-grid", "metal", "dashed-flow", "video-screen"],
41
+ wrong: ["glyph-rain", "ascii"],
42
+ sources: ["paper-stack", "camera-drift"],
43
+ procurement: ["vault-glyphs", "soft-shadows"],
44
+ "proof-library": ["billboards", "emissive"],
45
+ pricing: ["tokens", "trail"],
46
+ dataroom: ["server-racks", "orbit"],
47
+ energy: ["volume-cloud", "sao"],
48
+ sovereignty: ["globe-arcs", "volumetric-spot"],
49
+ identity: ["constellation", "holo-fresnel"],
50
+ security: ["scatter", "dot-screen"],
51
+ integration: ["clipped-solids", "wireframe-overlay"],
52
+ evals: ["dynamic-instances", "iris"],
53
+ support: ["shader-particles", "mirror-floor"],
54
+ talent: ["city-grid", "flythrough"],
55
+ partners: ["starfield"],
56
+ smb: ["particles", "pixelate"],
57
+ metrics: ["volume-perlin"],
58
+ risks: ["aurora"],
59
+ close: ["horizon-gates"],
60
+ };
61
+
62
+ /**
63
+ * Built topologies. The narrative rows are LIFTED from
64
+ * `presentations/business-next-5-years/deck.json` — auto-derivation feeds raw
65
+ * bullet text into the node labels, which overlaps past the IoU gate; the
66
+ * curated short labels are what makes `check` clean. Authored slides follow
67
+ * the same rule: <= ~14 characters per node.
68
+ */
69
+ const DIAGRAMS = {
70
+ why: { kind: "stack", data: { labels: ["Buyers changed", "Proof beats promise", "Sourced + dated"] } },
71
+ forces: { scale: 1 },
72
+ capability: { kind: "bars", data: { labels: ["SWE-bench", "Science", "Agents", "US\u2013CN"], values: [100, 88, 66, 4] } },
73
+ jagged: { kind: "bars", data: { labels: ["IMO", "Clocks", "Tasks", "Spike"], values: [100, 50, 67, 30] } },
74
+ adoption: { kind: "bars", data: { labels: ["Orgs", "Function", "People", "Students"], values: [88, 70, 53, 80] } },
75
+ agentgap: { kind: "orbit-cluster", data: { labels: ["Bought AI", "Piloting", "In production", "At depth"] } },
76
+ money: { kind: "bars", data: { labels: ["Private", "Corporate", "Capex", "Free"], values: [285.9, 200, 150, 172] } },
77
+ trust: { kind: "funnel", data: { labels: ["Ambition", "Evidence demanded", "Governance", "Measured value"] } },
78
+ dealflow: { scale: 1.3 },
79
+ work: { kind: "bars", data: { labels: ["Churn", "Created", "Displaced", "Net"], values: [22, 170, 92, 78] } },
80
+ skills: { kind: "orbit-cluster", data: { labels: ["AI + data", "Cybersecurity", "Analytical", "Creative"] } },
81
+ reskill: { kind: "bars", data: { labels: ["Training", "Upskilled", "Redeployed", "Nothing"], values: [59, 29, 19, 11] } },
82
+ entry: { kind: "bars", data: { labels: ["Devs 22\u201325", "Exposed", "Cuts"], values: [20, 33, 33] } },
83
+ geo: { kind: "globe", data: { labels: ["Geoeconomics", "Model change", "Fragmented order", "Sovereignty"] } },
84
+ compute: { kind: "stack", data: { labels: ["Data centres", "One foundry", "Energy + capex", "Latency terms"] } },
85
+ productivity: { kind: "bars", data: { labels: ["Support", "Dev", "Marketing", "Reasoning"], values: [15, 26, 50, 5] } },
86
+ model: { scale: 1.3 },
87
+ sales: { kind: "funnel", data: { labels: ["Benchmarks", "Governance", "Agent gap", "Reskilling", "Trust"] } },
88
+ timeline: { scale: 0.95 },
89
+ monday: { kind: "loop", data: { labels: ["Audit accounts", "Swap in proof", "Name governance", "Book reskilling"] } },
90
+ wrong: { kind: "funnel", data: { labels: ["Downturn", "Regulation", "Plateau", "Trust collapse"] } },
91
+ sources: { kind: "timeline-rail", data: { labels: ["WEF Jobs 25", "HAI Index 26", "Global Risks 26", "Entry-Level 26", "Forrester 26"] } },
92
+ procurement: { kind: "funnel", data: { labels: ["Questionnaire", "Provenance", "Residency", "Reuse"] } },
93
+ "proof-library": { kind: "stack", data: { labels: ["Benchmark", "Reference", "Honest miss", "Versioned"] } },
94
+ pricing: { kind: "bars", data: { labels: ["Per-seat", "Usage", "Outcome", "Defensible"], values: [30, 55, 80, 95] } },
95
+ dataroom: { kind: "orbit-cluster", data: { labels: ["Location", "Retention", "Subprocessors", "Diagram"] } },
96
+ energy: { kind: "bars", data: { labels: ["Capacity", "Locality", "Efficiency", "Cost"], values: [80, 60, 45, 70] } },
97
+ sovereignty: { kind: "globe", data: { labels: ["Region", "Public first", "Portability", "Split deploy"] } },
98
+ identity: { kind: "brain", data: { labels: ["Scoped creds", "Attribution", "Revocation", "Least privilege"] } },
99
+ security: { kind: "swarm", data: { labels: ["Prompt path", "Retrieval", "Agent output", "Red team"] } },
100
+ integration: { kind: "timeline-rail", data: { labels: ["Legacy", "Data quality", "Change mgmt", "The tax"] } },
101
+ evals: { kind: "loop", data: { labels: ["Define good", "Regression", "Dashboards", "Renewal"] } },
102
+ support: { kind: "funnel", data: { labels: ["Volume", "Deflection", "Escalation", "Expansion"] } },
103
+ talent: { kind: "bars", data: { labels: ["Specialists", "Generalists", "Hiring bar", "Skills"], values: [40, 70, 55, 85] } },
104
+ partners: { kind: "orbit-cluster", data: { labels: ["Day rate", "Ref arch", "Co-sell", "Evidence"] } },
105
+ smb: { kind: "stack", data: { labels: ["Defaults", "Thin WTP", "Distribution", "Self-serve"] } },
106
+ metrics: { kind: "funnel", data: { labels: ["Cost", "Change", "Exposure", "Stop test"] } },
107
+ risks: { kind: "timeline-rail", data: { labels: ["Supply chain", "Regulation", "Drift", "Trust"] } },
108
+ close: { kind: "loop", data: { labels: ["Depth", "Evidence", "Measure", "One account"] } },
109
+ };
110
+
111
+ /** Tuning kept from the previous pass — the values reviewed on screen. */
112
+ const PARAMS = {
113
+ "geo-fragments": { activity: 0.75, breathe: 1, spin: 1.2 },
114
+ "fab-wafer": { wave: 2, waveSpeed: 3, density: 3 },
115
+ "hex-grid": { scale: 4 },
116
+ "paper-stack": { density: 3, speed: 3 },
117
+ "signal-pulse": { intensity: 0.85 },
118
+ "proof-gate": { density: 0.2 },
119
+ };
120
+
121
+ const fxDir = join(here, "..", "..", "src", "fx");
122
+ const known = new Set(
123
+ readdirSync(fxDir)
124
+ .filter((f) => f.endsWith(".meta.json"))
125
+ .map((f) => JSON.parse(readFileSync(join(fxDir, f), "utf8")).id),
126
+ );
127
+
128
+ const planned = Object.values(PLAN).flat();
129
+ const dupes = planned.filter((id, i) => planned.indexOf(id) !== i);
130
+ if (dupes.length) throw new Error(`card used on more than one slide: ${[...new Set(dupes)].join(", ")}`);
131
+ const uncovered = [...known].filter((id) => !planned.includes(id));
132
+ if (uncovered.length) throw new Error(`corpus card never presented: ${uncovered.join(", ")}`);
133
+ const unknown = planned.filter((id) => !known.has(id) && !id.startsWith("local:"));
134
+ if (unknown.length) throw new Error(`unknown card: ${unknown.join(", ")}`);
135
+
136
+ const slides = {};
137
+ for (const [slide, ids] of Object.entries(PLAN)) {
138
+ const effects = ids.map((id) => {
139
+ const ref = { id };
140
+ if (PARAMS[id]) ref.params = PARAMS[id];
141
+ if (id.startsWith("local:")) {
142
+ const file = join(here, "fx", `${id.slice("local:".length)}.js`);
143
+ ref.sha256 = createHash("sha256").update(readFileSync(file)).digest("hex");
144
+ }
145
+ return ref;
146
+ });
147
+ slides[slide] = DIAGRAMS[slide] ? { effects, diagram: DIAGRAMS[slide] } : { effects };
148
+ }
149
+
150
+ writeFileSync(
151
+ join(here, "overrides.json"),
152
+ `${JSON.stringify({ deck: { palette: "blackbelt", floor: "water", rail: "tunnel", titleEdge: "contrast" }, effects: [], slides }, null, 2)}\n`,
153
+ );
154
+ console.log(`overrides.json: ${Object.keys(PLAN).length} slides, ${planned.length} card placements, ${known.size} corpus cards covered`);