Commit graph

9 commits

Author SHA1 Message Date
OpenCode Agent
b18aa923d3 perf(core): live-only code moves to a live prelude, served only in live programs
prelude-live.js holds widget (with widget.gpu) and __widget_live; a step widget template's program
is prelude + "\n" + source, a live one's prelude + "\n" + livePrelude + "\n" + source, and
versions hash the program as served. Lint reserves both preludes' names; positions stay
source-relative per mode. Steps compile and run faster than before widget.gpu.

Also lands the widgets-gpu.md changes 0786c7331 described but didn't carry: the live input's gpu,
the flag globals, the normalised op shapes, error ops, which canvases an error stops, Host checks
and Conformance; and widgets-live.md's rule that GPU batches never overtake waiting posts.
2026-11-23 00:00:17 +00:00
OpenCode Agent
78d51075f4 refactor(core): call the widget concept a widget template everywhere 2026-11-21 21:10:16 +00:00
OpenCode Agent
5c8fc2663f feat(core): remove the minigame built-in; keep its game as a live runtime test fixture 2026-11-21 18:56:24 +00:00
OpenCode Agent
cbed649d0e Merge branch 'widget-diagrams' into widgets 2026-11-20 21:56:50 +00:00
OpenCode Agent
d4a51ffcc2 feat(widget): diagram built-in templates
pie, scatter, histogram, area, heatmap, treemap, sankey, graph, tree,
timeline, funnel, radar, gauge, boxplot, flowchart, sequence and table:
canvas templates with JSON Schemas, alt summaries, theme colors, an
animated intro, tap selection and an optional Choose button. Layouts
that don't depend on the canvas size (force layout, Sankey, layered
flowchart, bins, quartiles) are computed once in init.
2026-11-20 21:54:47 +00:00
OpenCode Agent
888ef89748 feat(widget): live mode prelude, TypeScript live host and minigame 2026-11-20 21:33:57 +00:00
OpenCode Agent
ca272b6cea feat(widget): chart and backdrop built-in templates, JSON Schema pattern 2026-11-20 20:12:35 +00:00
OpenCode Agent
4fd2233908 fix(widget): version templates by their full program 2026-11-20 18:15:44 +00:00
OpenCode Agent
01cb2f56ee feat(widget): add widget runtime package with prelude, step ABI and built-in templates 2026-11-20 18:13:43 +00:00