opencode-webui 1.0.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -7
- package/dist/assets/index-BHminhzR.js +128 -0
- package/dist/assets/index-d4KcyqrZ.css +1 -0
- package/dist/assets/report-9wOQi_Kx.js +2 -0
- package/dist/index.html +16 -2
- package/package.json +2 -3
- package/server/ext/kv.ts +82 -0
- package/server/ext/registry.ts +279 -0
- package/server/ext/types.ts +100 -0
- package/server/index.ts +364 -58
- package/server/userExtensions.ts +175 -48
- package/skills/webui/SKILL.md +113 -96
- package/webui-extensions/README.md +356 -0
- package/dist/assets/index-D_1wPDvx.css +0 -1
- package/dist/assets/index-v2k5q9l4.js +0 -122
- package/dist/assets/report-CHS9-Gsw.js +0 -2
- package/ui-extensions/README.md +0 -285
package/README.md
CHANGED
|
@@ -88,14 +88,27 @@ manually.
|
|
|
88
88
|
|
|
89
89
|
## Extensions
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
One extension = one folder, dropped in — no rebuild, no restart:
|
|
92
92
|
|
|
93
|
-
- `~/.config/opencode/webui-extensions/<name
|
|
94
|
-
- `<project>/.opencode/webui-extensions/<name
|
|
93
|
+
- `~/.config/opencode/webui-extensions/<name>/` — per-user
|
|
94
|
+
- `<project>/.opencode/webui-extensions/<name>/` — per-project
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
```
|
|
97
|
+
my-extension/
|
|
98
|
+
manifest.json id, version, description, disabled?
|
|
99
|
+
index.tsx browser stratum (wrap / replace / contribute / hook / service)
|
|
100
|
+
dom.ts DOM stratum (portals, canvas, post-render tweaks)
|
|
101
|
+
server.ts proxy stratum (routes, middleware, event tap, pollers)
|
|
102
|
+
engine/ opencode plugin payload (model tools, prompt hints)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Presence = installed, `disabled: true` = paused, delete = uninstalled; a
|
|
106
|
+
higher-precedence folder with the same id shadows the shipped one, so user
|
|
107
|
+
customizations survive core updates with no forks. Hot reload everywhere:
|
|
108
|
+
browser edits repaint live via the manifest SSE push, proxy edits reload
|
|
109
|
+
with no restart. The full authoring guide — the five kinds, hook catalog,
|
|
110
|
+
DOM kit, `server.ts` mounts, precedence, and the timestamp worked example —
|
|
111
|
+
is [webui-extensions/README.md](webui-extensions/README.md).
|
|
99
112
|
|
|
100
113
|
The built-in `/report` command files a prefilled GitHub issue with a diagnostics
|
|
101
114
|
bundle (build version, enabled extensions, error ring); `--agent` hands it to the
|
|
@@ -111,7 +124,7 @@ bun run typecheck
|
|
|
111
124
|
bun run build && bun start # production: dist/ + API on 4097
|
|
112
125
|
```
|
|
113
126
|
|
|
114
|
-
- Extension authoring guide: [
|
|
127
|
+
- Extension authoring guide: [webui-extensions/README.md](webui-extensions/README.md)
|
|
115
128
|
- Extension contract check: `bun run scripts/uitest/extensions-check.ts`
|
|
116
129
|
- Architecture, editing rules, roadmap: [AGENTS.md](AGENTS.md)
|
|
117
130
|
|