opencode/packages/plugin/src/gui
Luke Parker 22377659a8
feat(plugin): let GUI plugins declare their own icons (#64577)
A plugin declares SVG artwork in Plugin.define({ icons }) and names it with ctx.icons.<name> in every SDK icon field and ctx.ui.Icon. The host registers the artwork in the app's icon component before setup, so any part of the app draws it by name, in the size and color of its place, and withdraws it with the plugin.

Artwork may move with SVG animation elements. It stays in place while its host renders again, and the host holds it on its first frame under reduced motion.

Pairing and goal now ship the artwork only they show, which leaves the app's icon catalog.
2026-11-18 03:27:56 -06:00
..
browser.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
builtin.ts fix(desktop): restart plugins when an update handoff fails (#61649) 2026-11-04 17:14:54 +00:00
context.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
context.typecheck.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
core.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
declarations.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
file.ts fix(app): show Open in only in file and review headers (#62174) 2026-11-05 14:18:02 -06:00
host-apis.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
host.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
icon-name.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
index.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
internal.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
main.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
modules.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
plugin.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
plugin.typecheck.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
reactive.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
registries.ts feat(plugin): let GUI plugins declare their own icons (#64577) 2026-11-18 03:27:56 -06:00
registries.typecheck.ts feat(app): let GUI plugins render and add actions to code blocks (#61533) 2026-11-03 18:34:53 -06:00
review.ts fix(app): show failed and offline review diffs instead of a clean tree (#61862) 2026-11-04 20:26:57 -06:00
scope.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
solid.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
updater.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00
vite.ts feat(plugin): add OpenCode Desktop GUI plugins (#55246) 2026-10-27 10:54:50 +10:00