Commit graph

29 commits

Author SHA1 Message Date
OpenCode Agent
065b86db1d build(core): widget runs have typed arrays (psychoscript rust b30b1c2, typedArrays: true)
The widget packages pin psychoscript to rust b30b1c2, where typed arrays are opt-in; steps, draws,
live runs and compiles turn them on, and widgets.md lists the globals. The GPU and wire fixtures
regenerate unchanged; without the opt-in the GPU ones fail.
2026-11-23 00:05:49 +00:00
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
816a4416dd feat(core): widget runs take views 100 levels deep (maxValueDepth 202)
Widget packages pin psychoscript to rust 7b09bac (limits.maxValueDepth); the TypeScript host runs
steps and live programs at 202, the depth of a 100-level view. Fixtures add 100-level views (one
with the deepest prop) and a 150-level one, and 101 now fails in the host's walk.
2026-11-22 14:21:12 +00:00
OpenCode Agent
8a565c6b84 feat(core): the TypeScript widget host builds view trees natively, on psychoscript's function markers
step, WidgetSession and LiveWidget run programs under translate.functions "mark" with the native
entry, build the tree in src/tree.ts (byte-identical to the wire fixtures), map live draw keys to
canvas ids, return from a render post whether its view has handlers, and fail functions where
none may go as the interpreter did. Widget packages pin psychoscript to rust c630d87.
2026-11-22 03:43:43 +00:00
OpenCode Agent
71e0cf4133 build(core): widget packages take psychoscript from git, pinned to a commit
@opencode/widget and @opencode/plugin-widgets depend on github:anomalyco/psychoscript#fdea142 on
its rust branch (its prepare script builds dist on install; psychoscript is a trusted dependency so
Bun runs it). codemode stays on npm 0.2.1.
2026-11-22 03:31:28 +00:00
OpenCode Agent
d30febe837 feat(core): a stack node layers its children, for HUDs over a canvas 2026-11-21 23:54:01 +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
4fffe4019b feat(core): tell full-screen widgets where the close button is instead of reserving a strip; back always closes full screen 2026-11-21 22:52:40 +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
3ba3ef58f4 feat(core): pointer capture in the live widget prelude and key, focus and capture event types 2026-11-20 23:02: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
7d7b0b25f6 fix(plugin-widgets): read built-in template modes 2026-11-20 21:41:40 +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