Commit graph

6 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
78d51075f4 refactor(core): call the widget concept a widget template everywhere 2026-11-21 21:10:16 +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