@jwitmann/operator-opencode-v2 0.0.0-stage → 2.4.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/dist/tui.js ADDED
@@ -0,0 +1,404 @@
1
+ // src/tui.tsx
2
+ import { effect as _$effect } from "@opentui/solid";
3
+ import { insert as _$insert } from "@opentui/solid";
4
+ import { createTextNode as _$createTextNode } from "@opentui/solid";
5
+ import { insertNode as _$insertNode } from "@opentui/solid";
6
+ import { setProp as _$setProp } from "@opentui/solid";
7
+ import { createElement as _$createElement } from "@opentui/solid";
8
+ import { createComponent as _$createComponent } from "@opentui/solid";
9
+ import { Plugin } from "@opencode/plugin/tui";
10
+ import { createEffect, Show } from "solid-js";
11
+ import { createStore } from "solid-js/store";
12
+ // package.json
13
+ var package_default = {
14
+ name: "@jwitmann/operator-opencode-v2",
15
+ version: "2.4.0",
16
+ description: "Operator Memory adapter for OpenCode V2.",
17
+ license: "BSD-3-Clause",
18
+ author: "jwitmann",
19
+ homepage: "https://github.com/jwitmann/operator-memory#readme",
20
+ bugs: {
21
+ url: "https://github.com/jwitmann/operator-memory/issues"
22
+ },
23
+ type: "module",
24
+ main: "dist/index.js",
25
+ exports: {
26
+ ".": "./dist/index.js",
27
+ "./server": "./dist/index.js",
28
+ "./rpc": "./dist/notifications.js",
29
+ "./tui": "./dist/tui.js"
30
+ },
31
+ files: [
32
+ "dist"
33
+ ],
34
+ keywords: [
35
+ "opencode",
36
+ "opencode-plugin",
37
+ "memory",
38
+ "plugin"
39
+ ],
40
+ repository: {
41
+ type: "git",
42
+ url: "git+https://github.com/jwitmann/operator-memory.git",
43
+ directory: "packages/opencode-v2"
44
+ },
45
+ engines: {
46
+ node: ">=20"
47
+ },
48
+ publishConfig: {
49
+ access: "public"
50
+ },
51
+ scripts: {
52
+ build: "bun ./scripts/build.ts",
53
+ prepack: "bun run build"
54
+ },
55
+ peerDependencies: {
56
+ "@opencode/plugin": "^2.0.14",
57
+ "@opentui/core": ">=0.5.10",
58
+ "@opentui/solid": ">=0.5.10",
59
+ "solid-js": ">=1.9.0"
60
+ },
61
+ peerDependenciesMeta: {
62
+ "@opentui/core": {
63
+ optional: true
64
+ },
65
+ "@opentui/solid": {
66
+ optional: true
67
+ },
68
+ "solid-js": {
69
+ optional: true
70
+ }
71
+ },
72
+ devDependencies: {
73
+ "@jwitmann/operator-core": "workspace:*",
74
+ "@opencode/plugin": "2.0.14",
75
+ "@opentui/core": "0.5.10",
76
+ "@opentui/solid": "0.5.10",
77
+ "solid-js": "1.9.12"
78
+ }
79
+ };
80
+
81
+ // src/id.ts
82
+ var pluginId = "jwitmann.operator-memory";
83
+
84
+ // src/notifications.ts
85
+ import { Rpc } from "@opencode/plugin/rpc";
86
+ var OperatorNotifications = Rpc.define({
87
+ id: pluginId,
88
+ methods: {
89
+ status: {
90
+ input: {
91
+ type: "object",
92
+ properties: { refresh: { type: "boolean" } },
93
+ required: ["refresh"]
94
+ },
95
+ output: {
96
+ type: "object",
97
+ properties: {
98
+ detail: { type: "string" },
99
+ user: { enum: ["loaded", "uninitialized", "error"] },
100
+ private: { enum: ["loaded", "uninitialized", "error"] },
101
+ shared: { enum: ["loaded", "uninitialized", "error"] }
102
+ },
103
+ required: ["detail", "user", "private", "shared"]
104
+ }
105
+ }
106
+ },
107
+ events: {
108
+ toast: {
109
+ schema: {
110
+ type: "object",
111
+ properties: {
112
+ title: { type: "string" },
113
+ message: { type: "string" },
114
+ variant: { enum: ["info", "success", "warning", "error"] }
115
+ },
116
+ required: ["title", "message", "variant"]
117
+ }
118
+ }
119
+ }
120
+ });
121
+
122
+ // src/tui.tsx
123
+ var OperatorTuiPlugin = Plugin.define({
124
+ id: pluginId,
125
+ setup(context) {
126
+ const [statuses, setStatuses] = createStore({});
127
+ const activeSessions = new Set;
128
+ const pending = new Map;
129
+ const client = context.client.rpc(OperatorNotifications);
130
+ const status = (location) => statuses[locationKey(location)] ?? {
131
+ connection: "connecting",
132
+ detail: `v${package_default.version}`
133
+ };
134
+ const refresh = (location, force) => {
135
+ const key = locationKey(location);
136
+ if (pending.has(key))
137
+ return;
138
+ if (statuses[key]?.connection !== "ready") {
139
+ setStatuses(key, {
140
+ connection: "connecting",
141
+ detail: statuses[key]?.detail ?? `v${package_default.version}`
142
+ });
143
+ }
144
+ const operation = client.status({
145
+ refresh: force
146
+ }, location === undefined ? undefined : {
147
+ location
148
+ }).then((value) => {
149
+ const current = parseStatus(value);
150
+ setStatuses(key, current === null ? {
151
+ connection: "unavailable",
152
+ detail: statuses[key]?.detail ?? `v${package_default.version}`
153
+ } : {
154
+ connection: "ready",
155
+ ...current
156
+ });
157
+ }).catch(() => {
158
+ setStatuses(key, {
159
+ connection: "unavailable",
160
+ detail: statuses[key]?.detail ?? `v${package_default.version}`
161
+ });
162
+ }).finally(() => pending.delete(key));
163
+ pending.set(key, operation);
164
+ };
165
+ refresh(context.location, false);
166
+ const cleanups = [context.data.listen((event) => {
167
+ if (event.details.type !== `rpc.${pluginId}.toast`)
168
+ return;
169
+ const toast = parseToast(event.details.data);
170
+ if (toast === null)
171
+ return;
172
+ context.ui.toast.show({
173
+ ...toast,
174
+ duration: 1e4
175
+ });
176
+ }), context.data.on("server.connected", () => refresh(context.location, true)), context.data.on("session.status", (event) => {
177
+ const session = context.data.session.get(event.data.sessionID);
178
+ if (session?.parentID !== undefined)
179
+ return;
180
+ if (event.data.status.type !== "idle") {
181
+ activeSessions.add(event.data.sessionID);
182
+ return;
183
+ }
184
+ if (!activeSessions.delete(event.data.sessionID))
185
+ return;
186
+ refresh(session?.location ?? context.location, true);
187
+ }), context.ui.slot({
188
+ append: "home.footer.status",
189
+ render: () => {
190
+ createEffect(() => refresh(context.location, false));
191
+ return _$createComponent(ReadyIndicator, {
192
+ context,
193
+ status: () => status(context.location)
194
+ });
195
+ }
196
+ }), context.ui.slot({
197
+ append: "sidebar.content",
198
+ render: (input) => {
199
+ const location = () => context.data.session.get(input.sessionID)?.location ?? context.location;
200
+ createEffect(() => refresh(location(), false));
201
+ return _$createComponent(PartitionStatusView, {
202
+ context,
203
+ status: () => status(location())
204
+ });
205
+ }
206
+ })];
207
+ return () => cleanups.forEach((cleanup) => {
208
+ cleanup();
209
+ });
210
+ }
211
+ });
212
+ var tui_default = OperatorTuiPlugin;
213
+ function statusLabel(status) {
214
+ const suffix = status.detail.length > 0 ? ` (${status.detail})` : "";
215
+ if (status.connection === "connecting")
216
+ return `Operator Connecting...${suffix}`;
217
+ if (status.connection === "unavailable")
218
+ return `Operator Unavailable${suffix}`;
219
+ return `Operator Ready${suffix}`;
220
+ }
221
+ function ReadyIndicator(props) {
222
+ const color = () => {
223
+ if (props.status().connection === "ready")
224
+ return props.context.theme.text.feedback.success.default;
225
+ if (props.status().connection === "unavailable")
226
+ return props.context.theme.text.feedback.error.default;
227
+ return props.context.theme.text.subdued;
228
+ };
229
+ return (() => {
230
+ var _el$ = _$createElement("box"), _el$2 = _$createElement("text"), _el$3 = _$createElement("span"), _el$5 = _$createTextNode(` `), _el$6 = _$createElement("b");
231
+ _$insertNode(_el$, _el$2);
232
+ _$setProp(_el$, "flexShrink", 0);
233
+ _$insertNode(_el$2, _el$3);
234
+ _$insertNode(_el$2, _el$5);
235
+ _$insertNode(_el$2, _el$6);
236
+ _$insertNode(_el$3, _$createTextNode(`•`));
237
+ _$insert(_el$6, () => statusLabel(props.status()));
238
+ _$effect((_p$) => {
239
+ var _v$ = props.context.theme.text.default, _v$2 = {
240
+ fg: color()
241
+ };
242
+ _v$ !== _p$.e && (_p$.e = _$setProp(_el$2, "fg", _v$, _p$.e));
243
+ _v$2 !== _p$.t && (_p$.t = _$setProp(_el$3, "style", _v$2, _p$.t));
244
+ return _p$;
245
+ }, {
246
+ e: undefined,
247
+ t: undefined
248
+ });
249
+ return _el$;
250
+ })();
251
+ }
252
+ function PartitionStatusView(props) {
253
+ const hasError = () => {
254
+ const status = props.status();
255
+ return status.connection === "unavailable" || status.connection === "ready" && [status.user, status.private, status.shared].includes("error");
256
+ };
257
+ return (() => {
258
+ var _el$7 = _$createElement("box"), _el$8 = _$createElement("text"), _el$9 = _$createElement("b");
259
+ _$insertNode(_el$7, _el$8);
260
+ _$setProp(_el$7, "gap", 0);
261
+ _$insertNode(_el$8, _el$9);
262
+ _$insertNode(_el$9, _$createTextNode(`Operator Status`));
263
+ _$insert(_el$7, _$createComponent(StatusRow, {
264
+ get context() {
265
+ return props.context;
266
+ },
267
+ label: "User",
268
+ get status() {
269
+ return partition(props.status(), "user");
270
+ }
271
+ }), null);
272
+ _$insert(_el$7, _$createComponent(StatusRow, {
273
+ get context() {
274
+ return props.context;
275
+ },
276
+ label: "Private",
277
+ get status() {
278
+ return partition(props.status(), "private");
279
+ }
280
+ }), null);
281
+ _$insert(_el$7, _$createComponent(StatusRow, {
282
+ get context() {
283
+ return props.context;
284
+ },
285
+ label: "Shared",
286
+ get status() {
287
+ return partition(props.status(), "shared");
288
+ }
289
+ }), null);
290
+ _$insert(_el$7, _$createComponent(Show, {
291
+ get when() {
292
+ return hasError();
293
+ },
294
+ get children() {
295
+ var _el$1 = _$createElement("text");
296
+ _$insertNode(_el$1, _$createTextNode(`Ask the agent to diagnose Operator loading`));
297
+ _$effect((_$p) => _$setProp(_el$1, "fg", props.context.theme.text.feedback.warning.default, _$p));
298
+ return _el$1;
299
+ }
300
+ }), null);
301
+ _$effect((_$p) => _$setProp(_el$8, "fg", props.context.theme.text.default, _$p));
302
+ return _el$7;
303
+ })();
304
+ }
305
+ function StatusRow(props) {
306
+ const display = () => {
307
+ if (props.status === "checking") {
308
+ return {
309
+ color: props.context.theme.text.subdued,
310
+ label: "Checking"
311
+ };
312
+ }
313
+ if (props.status === "error") {
314
+ return {
315
+ color: props.context.theme.text.feedback.error.default,
316
+ label: "Error"
317
+ };
318
+ }
319
+ return props.status === "loaded" ? {
320
+ color: props.context.theme.text.feedback.success.default,
321
+ label: "Loaded"
322
+ } : {
323
+ color: props.context.theme.text.feedback.warning.default,
324
+ label: "Uninitialized"
325
+ };
326
+ };
327
+ return (() => {
328
+ var _el$11 = _$createElement("text"), _el$12 = _$createElement("span"), _el$14 = _$createTextNode(` `), _el$15 = _$createTextNode(` `), _el$16 = _$createElement("span");
329
+ _$insertNode(_el$11, _el$12);
330
+ _$insertNode(_el$11, _el$14);
331
+ _$insertNode(_el$11, _el$15);
332
+ _$insertNode(_el$11, _el$16);
333
+ _$insertNode(_el$12, _$createTextNode(`•`));
334
+ _$insert(_el$11, () => props.label, _el$15);
335
+ _$insert(_el$16, () => display().label);
336
+ _$effect((_p$) => {
337
+ var _v$3 = props.context.theme.text.default, _v$4 = {
338
+ fg: display().color
339
+ }, _v$5 = {
340
+ fg: props.context.theme.text.subdued
341
+ };
342
+ _v$3 !== _p$.e && (_p$.e = _$setProp(_el$11, "fg", _v$3, _p$.e));
343
+ _v$4 !== _p$.t && (_p$.t = _$setProp(_el$12, "style", _v$4, _p$.t));
344
+ _v$5 !== _p$.a && (_p$.a = _$setProp(_el$16, "style", _v$5, _p$.a));
345
+ return _p$;
346
+ }, {
347
+ e: undefined,
348
+ t: undefined,
349
+ a: undefined
350
+ });
351
+ return _el$11;
352
+ })();
353
+ }
354
+ function partition(status, name) {
355
+ return status.connection === "ready" ? status[name] : "checking";
356
+ }
357
+ function locationKey(location) {
358
+ return JSON.stringify(location ?? null);
359
+ }
360
+ function parseStatus(value) {
361
+ if (value === null || typeof value !== "object")
362
+ return null;
363
+ if (!("detail" in value) || typeof value.detail !== "string")
364
+ return null;
365
+ if (!("user" in value) || !isPartitionStatus(value.user))
366
+ return null;
367
+ if (!("private" in value) || !isPartitionStatus(value.private))
368
+ return null;
369
+ if (!("shared" in value) || !isPartitionStatus(value.shared))
370
+ return null;
371
+ return {
372
+ detail: value.detail,
373
+ user: value.user,
374
+ private: value.private,
375
+ shared: value.shared
376
+ };
377
+ }
378
+ function isPartitionStatus(value) {
379
+ return value === "loaded" || value === "uninitialized" || value === "error";
380
+ }
381
+ function parseToast(value) {
382
+ if (value === null || typeof value !== "object")
383
+ return null;
384
+ if (!("title" in value) || typeof value.title !== "string")
385
+ return null;
386
+ if (!("message" in value) || typeof value.message !== "string")
387
+ return null;
388
+ if (!("variant" in value) || !isVariant(value.variant))
389
+ return null;
390
+ return {
391
+ title: value.title,
392
+ message: value.message,
393
+ variant: value.variant
394
+ };
395
+ }
396
+ function isVariant(value) {
397
+ return value === "info" || value === "success" || value === "warning" || value === "error";
398
+ }
399
+ export {
400
+ tui_default as default,
401
+ statusLabel
402
+ };
403
+
404
+ //# debugId=8603F87A93D276A264756E2164756E21
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/tui.tsx", "../src/id.ts", "../src/notifications.ts"],
4
+ "sourcesContent": [
5
+ "import { effect as _$effect } from \"@opentui/solid\";\nimport { insert as _$insert } from \"@opentui/solid\";\nimport { createTextNode as _$createTextNode } from \"@opentui/solid\";\nimport { insertNode as _$insertNode } from \"@opentui/solid\";\nimport { setProp as _$setProp } from \"@opentui/solid\";\nimport { createElement as _$createElement } from \"@opentui/solid\";\nimport { createComponent as _$createComponent } from \"@opentui/solid\";\nimport { Plugin } from \"@opencode/plugin/tui\";\nimport { createEffect, Show } from \"solid-js\";\nimport { createStore } from \"solid-js/store\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\nimport { pluginId } from \"./id.ts\";\nimport { OperatorNotifications } from \"./notifications.ts\";\nconst OperatorTuiPlugin = Plugin.define({\n id: pluginId,\n setup(context) {\n const [statuses, setStatuses] = createStore({});\n const activeSessions = new Set();\n const pending = new Map();\n const client = context.client.rpc(OperatorNotifications);\n const status = location => statuses[locationKey(location)] ?? {\n connection: \"connecting\",\n detail: `v${packageJson.version}`\n };\n const refresh = (location, force) => {\n const key = locationKey(location);\n if (pending.has(key)) return;\n if (statuses[key]?.connection !== \"ready\") {\n setStatuses(key, {\n connection: \"connecting\",\n detail: statuses[key]?.detail ?? `v${packageJson.version}`\n });\n }\n const operation = client.status({\n refresh: force\n }, location === undefined ? undefined : {\n location\n }).then(value => {\n const current = parseStatus(value);\n setStatuses(key, current === null ? {\n connection: \"unavailable\",\n detail: statuses[key]?.detail ?? `v${packageJson.version}`\n } : {\n connection: \"ready\",\n ...current\n });\n }).catch(() => {\n setStatuses(key, {\n connection: \"unavailable\",\n detail: statuses[key]?.detail ?? `v${packageJson.version}`\n });\n }).finally(() => pending.delete(key));\n pending.set(key, operation);\n };\n refresh(context.location, false);\n const cleanups = [context.data.listen(event => {\n if (event.details.type !== `rpc.${pluginId}.toast`) return;\n const toast = parseToast(event.details.data);\n if (toast === null) return;\n context.ui.toast.show({\n ...toast,\n duration: 10_000\n });\n }), context.data.on(\"server.connected\", () => refresh(context.location, true)), context.data.on(\"session.status\", event => {\n const session = context.data.session.get(event.data.sessionID);\n if (session?.parentID !== undefined) return;\n if (event.data.status.type !== \"idle\") {\n activeSessions.add(event.data.sessionID);\n return;\n }\n if (!activeSessions.delete(event.data.sessionID)) return;\n refresh(session?.location ?? context.location, true);\n }), context.ui.slot({\n append: \"home.footer.status\",\n render: () => {\n createEffect(() => refresh(context.location, false));\n return _$createComponent(ReadyIndicator, {\n context: context,\n status: () => status(context.location)\n });\n }\n }), context.ui.slot({\n append: \"sidebar.content\",\n render: input => {\n const location = () => context.data.session.get(input.sessionID)?.location ?? context.location;\n createEffect(() => refresh(location(), false));\n return _$createComponent(PartitionStatusView, {\n context: context,\n status: () => status(location())\n });\n }\n })];\n return () => cleanups.forEach(cleanup => {\n cleanup();\n });\n }\n});\nexport default OperatorTuiPlugin;\nexport function statusLabel(status) {\n const suffix = status.detail.length > 0 ? ` (${status.detail})` : \"\";\n if (status.connection === \"connecting\") return `Operator Connecting...${suffix}`;\n if (status.connection === \"unavailable\") return `Operator Unavailable${suffix}`;\n return `Operator Ready${suffix}`;\n}\nfunction ReadyIndicator(props) {\n const color = () => {\n if (props.status().connection === \"ready\") return props.context.theme.text.feedback.success.default;\n if (props.status().connection === \"unavailable\") return props.context.theme.text.feedback.error.default;\n return props.context.theme.text.subdued;\n };\n return (() => {\n var _el$ = _$createElement(\"box\"),\n _el$2 = _$createElement(\"text\"),\n _el$3 = _$createElement(\"span\"),\n _el$5 = _$createTextNode(` `),\n _el$6 = _$createElement(\"b\");\n _$insertNode(_el$, _el$2);\n _$setProp(_el$, \"flexShrink\", 0);\n _$insertNode(_el$2, _el$3);\n _$insertNode(_el$2, _el$5);\n _$insertNode(_el$2, _el$6);\n _$insertNode(_el$3, _$createTextNode(`•`));\n _$insert(_el$6, () => statusLabel(props.status()));\n _$effect(_p$ => {\n var _v$ = props.context.theme.text.default,\n _v$2 = {\n fg: color()\n };\n _v$ !== _p$.e && (_p$.e = _$setProp(_el$2, \"fg\", _v$, _p$.e));\n _v$2 !== _p$.t && (_p$.t = _$setProp(_el$3, \"style\", _v$2, _p$.t));\n return _p$;\n }, {\n e: undefined,\n t: undefined\n });\n return _el$;\n })();\n}\nfunction PartitionStatusView(props) {\n const hasError = () => {\n const status = props.status();\n return status.connection === \"unavailable\" || status.connection === \"ready\" && [status.user, status.private, status.shared].includes(\"error\");\n };\n return (() => {\n var _el$7 = _$createElement(\"box\"),\n _el$8 = _$createElement(\"text\"),\n _el$9 = _$createElement(\"b\");\n _$insertNode(_el$7, _el$8);\n _$setProp(_el$7, \"gap\", 0);\n _$insertNode(_el$8, _el$9);\n _$insertNode(_el$9, _$createTextNode(`Operator Status`));\n _$insert(_el$7, _$createComponent(StatusRow, {\n get context() {\n return props.context;\n },\n label: \"User\",\n get status() {\n return partition(props.status(), \"user\");\n }\n }), null);\n _$insert(_el$7, _$createComponent(StatusRow, {\n get context() {\n return props.context;\n },\n label: \"Private\",\n get status() {\n return partition(props.status(), \"private\");\n }\n }), null);\n _$insert(_el$7, _$createComponent(StatusRow, {\n get context() {\n return props.context;\n },\n label: \"Shared\",\n get status() {\n return partition(props.status(), \"shared\");\n }\n }), null);\n _$insert(_el$7, _$createComponent(Show, {\n get when() {\n return hasError();\n },\n get children() {\n var _el$1 = _$createElement(\"text\");\n _$insertNode(_el$1, _$createTextNode(`Ask the agent to diagnose Operator loading`));\n _$effect(_$p => _$setProp(_el$1, \"fg\", props.context.theme.text.feedback.warning.default, _$p));\n return _el$1;\n }\n }), null);\n _$effect(_$p => _$setProp(_el$8, \"fg\", props.context.theme.text.default, _$p));\n return _el$7;\n })();\n}\nfunction StatusRow(props) {\n const display = () => {\n if (props.status === \"checking\") {\n return {\n color: props.context.theme.text.subdued,\n label: \"Checking\"\n };\n }\n if (props.status === \"error\") {\n return {\n color: props.context.theme.text.feedback.error.default,\n label: \"Error\"\n };\n }\n return props.status === \"loaded\" ? {\n color: props.context.theme.text.feedback.success.default,\n label: \"Loaded\"\n } : {\n color: props.context.theme.text.feedback.warning.default,\n label: \"Uninitialized\"\n };\n };\n return (() => {\n var _el$11 = _$createElement(\"text\"),\n _el$12 = _$createElement(\"span\"),\n _el$14 = _$createTextNode(` `),\n _el$15 = _$createTextNode(` `),\n _el$16 = _$createElement(\"span\");\n _$insertNode(_el$11, _el$12);\n _$insertNode(_el$11, _el$14);\n _$insertNode(_el$11, _el$15);\n _$insertNode(_el$11, _el$16);\n _$insertNode(_el$12, _$createTextNode(`•`));\n _$insert(_el$11, () => props.label, _el$15);\n _$insert(_el$16, () => display().label);\n _$effect(_p$ => {\n var _v$3 = props.context.theme.text.default,\n _v$4 = {\n fg: display().color\n },\n _v$5 = {\n fg: props.context.theme.text.subdued\n };\n _v$3 !== _p$.e && (_p$.e = _$setProp(_el$11, \"fg\", _v$3, _p$.e));\n _v$4 !== _p$.t && (_p$.t = _$setProp(_el$12, \"style\", _v$4, _p$.t));\n _v$5 !== _p$.a && (_p$.a = _$setProp(_el$16, \"style\", _v$5, _p$.a));\n return _p$;\n }, {\n e: undefined,\n t: undefined,\n a: undefined\n });\n return _el$11;\n })();\n}\nfunction partition(status, name) {\n return status.connection === \"ready\" ? status[name] : \"checking\";\n}\nfunction locationKey(location) {\n return JSON.stringify(location ?? null);\n}\nfunction parseStatus(value) {\n if (value === null || typeof value !== \"object\") return null;\n if (!(\"detail\" in value) || typeof value.detail !== \"string\") return null;\n if (!(\"user\" in value) || !isPartitionStatus(value.user)) return null;\n if (!(\"private\" in value) || !isPartitionStatus(value.private)) return null;\n if (!(\"shared\" in value) || !isPartitionStatus(value.shared)) return null;\n return {\n detail: value.detail,\n user: value.user,\n private: value.private,\n shared: value.shared\n };\n}\nfunction isPartitionStatus(value) {\n return value === \"loaded\" || value === \"uninitialized\" || value === \"error\";\n}\nfunction parseToast(value) {\n if (value === null || typeof value !== \"object\") return null;\n if (!(\"title\" in value) || typeof value.title !== \"string\") return null;\n if (!(\"message\" in value) || typeof value.message !== \"string\") return null;\n if (!(\"variant\" in value) || !isVariant(value.variant)) return null;\n return {\n title: value.title,\n message: value.message,\n variant: value.variant\n };\n}\nfunction isVariant(value) {\n return value === \"info\" || value === \"success\" || value === \"warning\" || value === \"error\";\n}",
6
+ "declare const __OPERATOR_PLUGIN_ID__: string | undefined;\n\n// Builds replace __OPERATOR_PLUGIN_ID__ with the plugin ID; tests and other\n// unbundled execution fall back to the canonical ID.\nexport const pluginId =\n typeof __OPERATOR_PLUGIN_ID__ === \"string\" ? __OPERATOR_PLUGIN_ID__ : \"jwitmann.operator-memory\";\n",
7
+ "import { Rpc } from \"@opencode/plugin/rpc\";\n\nimport { pluginId } from \"./id.ts\";\n\nexport const OperatorNotifications = Rpc.define({\n id: pluginId,\n methods: {\n status: {\n input: {\n type: \"object\",\n properties: { refresh: { type: \"boolean\" } },\n required: [\"refresh\"],\n },\n output: {\n type: \"object\",\n properties: {\n detail: { type: \"string\" },\n user: { enum: [\"loaded\", \"uninitialized\", \"error\"] },\n private: { enum: [\"loaded\", \"uninitialized\", \"error\"] },\n shared: { enum: [\"loaded\", \"uninitialized\", \"error\"] },\n },\n required: [\"detail\", \"user\", \"private\", \"shared\"],\n },\n },\n },\n events: {\n toast: {\n schema: {\n type: \"object\",\n properties: {\n title: { type: \"string\" },\n message: { type: \"string\" },\n variant: { enum: [\"info\", \"success\", \"warning\", \"error\"] },\n },\n required: [\"title\", \"message\", \"variant\"],\n },\n },\n },\n});\n\nexport type OperatorToast = {\n readonly title: string;\n readonly message: string;\n readonly variant: \"info\" | \"success\" | \"warning\" | \"error\";\n};\n\nexport type PartitionStatus = \"loaded\" | \"uninitialized\" | \"error\";\n\nexport type OperatorStatus = {\n readonly detail: string;\n readonly user: PartitionStatus;\n readonly private: PartitionStatus;\n readonly shared: PartitionStatus;\n};\n"
8
+ ],
9
+ "mappings": ";AAAA,mBAAS;AACT,mBAAS;AACT,2BAAS;AACT,uBAAS;AACT,oBAAS;AACT,0BAAS;AACT,4BAAS;AACT;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLO,IAAM,WACkC;;;ACL/C;AAIO,IAAM,wBAAwB,IAAI,OAAO;AAAA,EAC9C,IAAI;AAAA,EACJ,SAAS;AAAA,IACP,QAAQ;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,EAAE;AAAA,QAC3C,UAAU,CAAC,SAAS;AAAA,MACtB;AAAA,MACA,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,YAAY;AAAA,UACV,QAAQ,EAAE,MAAM,SAAS;AAAA,UACzB,MAAM,EAAE,MAAM,CAAC,UAAU,iBAAiB,OAAO,EAAE;AAAA,UACnD,SAAS,EAAE,MAAM,CAAC,UAAU,iBAAiB,OAAO,EAAE;AAAA,UACtD,QAAQ,EAAE,MAAM,CAAC,UAAU,iBAAiB,OAAO,EAAE;AAAA,QACvD;AAAA,QACA,UAAU,CAAC,UAAU,QAAQ,WAAW,QAAQ;AAAA,MAClD;AAAA,IACF;AAAA,EACF;AAAA,EACA,QAAQ;AAAA,IACN,OAAO;AAAA,MACL,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,YAAY;AAAA,UACV,OAAO,EAAE,MAAM,SAAS;AAAA,UACxB,SAAS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;AAAA,EAC/D,OAAO;AAAA,IACL,OAAO,MAAM;AAAA,IACb,SAAS,MAAM;AAAA,IACf,SAAS,MAAM;AAAA,EACjB;AAAA;AAEF,SAAS,SAAS,CAAC,OAAO;AAAA,EACxB,OAAO,UAAU,UAAU,UAAU,aAAa,UAAU,aAAa,UAAU;AAAA;",
10
+ "debugId": "8603F87A93D276A264756E2164756E21",
11
+ "names": []
12
+ }
package/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
2
  "name": "@jwitmann/operator-opencode-v2",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.4.0",
4
+ "description": "Operator Memory adapter for OpenCode V2.",
5
+ "license": "BSD-3-Clause",
6
+ "author": "jwitmann",
7
+ "homepage": "https://github.com/jwitmann/operator-memory#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/jwitmann/operator-memory/issues"
10
+ },
11
+ "type": "module",
12
+ "main": "dist/index.js",
13
+ "exports": {
14
+ ".": "./dist/index.js",
15
+ "./server": "./dist/index.js",
16
+ "./rpc": "./dist/notifications.js",
17
+ "./tui": "./dist/tui.js"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "keywords": [
23
+ "opencode",
24
+ "opencode-plugin",
25
+ "memory",
26
+ "plugin"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/jwitmann/operator-memory.git",
31
+ "directory": "packages/opencode-v2"
32
+ },
33
+ "engines": {
34
+ "node": ">=20"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "bun ./scripts/build.ts",
41
+ "prepack": "bun run build"
42
+ },
43
+ "peerDependencies": {
44
+ "@opencode/plugin": "^2.0.14",
45
+ "@opentui/core": ">=0.5.10",
46
+ "@opentui/solid": ">=0.5.10",
47
+ "solid-js": ">=1.9.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "@opentui/core": {
51
+ "optional": true
52
+ },
53
+ "@opentui/solid": {
54
+ "optional": true
55
+ },
56
+ "solid-js": {
57
+ "optional": true
58
+ }
59
+ },
60
+ "devDependencies": {
61
+ "@jwitmann/operator-core": "workspace:*",
62
+ "@opencode/plugin": "2.0.14",
63
+ "@opentui/core": "0.5.10",
64
+ "@opentui/solid": "0.5.10",
65
+ "solid-js": "1.9.12"
66
+ }
67
+ }