opencode/packages/plugin-widgets/test
Sebastian Herrlinger e7248ca211 feat(widgets): widget.storage on server spaces, one space per widget template
A live widget template that declares capabilities.storage gets widget.storage: get and keys read the client's copy of
the space widget.<name>, set and delete write through the client's spaces sync, and widget.on("storage") hears
changes from elsewhere. The run starts with the copy in __input().storage; null means the template didn't declare it
(CapabilityDenied), and a client without spaces sync passes none (Unsupported). The prelude checks the limits (256-char
keys, 64 KiB values, 1,000 keys and 1 MiB per template) so errors land at the template's line; the TypeScript host and
widget-wire's encoder check posts again. widget-wire adds the storage post kind 0B. The server is unchanged.
2026-11-27 11:44:20 +01:00
..
fixtures 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
fake.ts feat(core): move widgets into the opt-in @opencode/plugin-widgets server plugin 2026-11-20 21:01:02 +00:00
fixtures.test.ts feat(core): handlers on widget nodes with prelude-assigned ids instead of update and widget.event 2026-11-20 23:35:54 +00:00
lint.test.ts 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
plugin.test.ts feat(widgets): widget.storage on server spaces, one space per widget template 2026-11-27 11:44:20 +01:00
programs.test.ts refactor(core): call the widget concept a widget template everywhere 2026-11-21 21:10:16 +00:00
shader-game.test.ts perf(core): live-only code moves to a live prelude, served only in live programs 2026-11-23 00:00:17 +00:00