Commit graph

21 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
94bf3c9fcf feat(core): one canvas node draws with 2D commands or a WGSL shader; remove the shader node 2026-11-21 23:54:01 +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
4c842932b1 feat(core): send widget failures to the agent only from the template's origin session, or when the user asks 2026-11-21 20:52:31 +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
82aff670c6 fix(core): serve each widget template version's stored program instead of rebuilding it with the current prelude 2026-11-21 00:03:04 +00:00
OpenCode Agent
f8f8bd011e feat(core): widget template edits, widget replaces with a superseded status, and compact template results 2026-11-20 23:44:39 +00:00
OpenCode Agent
b23fb9500c feat(core): lint the removed widget event API and teach handlers in the widgets skill 2026-11-20 23:35:54 +00:00
OpenCode Agent
a405b4f066 feat(core): handlers on widget nodes with prelude-assigned ids instead of update and widget.event 2026-11-20 23:35:54 +00:00
OpenCode Agent
153cc6b592 fix(core): widget templates switch on event type so key, focus and capture events don't misfire 2026-11-20 23:09:58 +00:00
OpenCode Agent
10ff5dfc1f fix(core): accept local hosts and ports in widget capabilities for dev-mode fetch 2026-11-20 22:53:24 +00:00
OpenCode Agent
b08753d6f6 docs(core): condense the widgets skill to capabilities and contracts 2026-11-20 22:53:02 +00:00
OpenCode Agent
0024ac3dc7 docs(core): shader pointer events and a raymarched shader game in the widgets skill 2026-11-20 22:37:12 +00:00
OpenCode Agent
43ed6aacf9 feat(core): lint widget templates without running them and take client error reports 2026-11-20 22:13:10 +00:00
OpenCode Agent
77d636edbf docs(core): teach the diagram built-ins in the widgets skill 2026-11-20 22:02:27 +00:00
OpenCode Agent
692829ba82 Revert "feat(core): full-screen widget template field, event and fill types"
This reverts commit c40e9ede35.
2026-11-20 21:48:12 +00:00
OpenCode Agent
c40e9ede35 feat(core): full-screen widget template field, event and fill types 2026-11-20 21:48:07 +00:00
OpenCode Agent
31b046c8e6 feat(core): use the widget runtime's version and compile for live templates 2026-11-20 21:45:12 +00:00
OpenCode Agent
61ec2cefc7 feat(core): store and validate live widget template capabilities 2026-11-20 21:33:14 +00:00
OpenCode Agent
4a5c0b4341 feat(core): store a mode with widget templates and only compile live ones 2026-11-20 21:29:48 +00:00
OpenCode Agent
1054778aa5 feat(core): move widgets into the opt-in @opencode/plugin-widgets server plugin 2026-11-20 21:01:02 +00:00