@jwitmann/operator-opencode-v2 0.0.0-stage → 2.3.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 +16 -2
- package/dist/index.js +221236 -0
- package/dist/index.js.map +148 -0
- package/dist/notifications.js +47 -0
- package/dist/notifications.js.map +11 -0
- package/dist/server.js +221236 -0
- package/dist/server.js.map +148 -0
- package/dist/tui.js +404 -0
- package/dist/tui.js.map +12 -0
- package/package.json +65 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// src/notifications.ts
|
|
2
|
+
import { Rpc } from "@opencode/plugin/rpc";
|
|
3
|
+
|
|
4
|
+
// src/id.ts
|
|
5
|
+
var pluginId = "jwitmann.operator-memory";
|
|
6
|
+
|
|
7
|
+
// src/notifications.ts
|
|
8
|
+
var OperatorNotifications = Rpc.define({
|
|
9
|
+
id: pluginId,
|
|
10
|
+
methods: {
|
|
11
|
+
status: {
|
|
12
|
+
input: {
|
|
13
|
+
type: "object",
|
|
14
|
+
properties: { refresh: { type: "boolean" } },
|
|
15
|
+
required: ["refresh"]
|
|
16
|
+
},
|
|
17
|
+
output: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
detail: { type: "string" },
|
|
21
|
+
user: { enum: ["loaded", "uninitialized", "error"] },
|
|
22
|
+
private: { enum: ["loaded", "uninitialized", "error"] },
|
|
23
|
+
shared: { enum: ["loaded", "uninitialized", "error"] }
|
|
24
|
+
},
|
|
25
|
+
required: ["detail", "user", "private", "shared"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
events: {
|
|
30
|
+
toast: {
|
|
31
|
+
schema: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
title: { type: "string" },
|
|
35
|
+
message: { type: "string" },
|
|
36
|
+
variant: { enum: ["info", "success", "warning", "error"] }
|
|
37
|
+
},
|
|
38
|
+
required: ["title", "message", "variant"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
OperatorNotifications
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//# debugId=03C2712EBCAD1E9864756E2164756E21
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/notifications.ts", "../src/id.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"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",
|
|
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
|
+
],
|
|
8
|
+
"mappings": ";AAAA;;;ACIO,IAAM,WACkC;;;ADDxC,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,EAAE,MAAM,SAAS;AAAA,UAC1B,SAAS,EAAE,MAAM,CAAC,QAAQ,WAAW,WAAW,OAAO,EAAE;AAAA,QAC3D;AAAA,QACA,UAAU,CAAC,SAAS,WAAW,SAAS;AAAA,MAC1C;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
|
9
|
+
"debugId": "03C2712EBCAD1E9864756E2164756E21",
|
|
10
|
+
"names": []
|
|
11
|
+
}
|