Commit graph

8 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
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
43ed6aacf9 feat(core): lint widget templates without running them and take client error reports 2026-11-20 22:13:10 +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
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