@aerovato/operator-opencode-v2 1.0.0 → 2.1.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 +2 -4
- package/dist/index.js +333 -472
- package/dist/index.js.map +10 -11
- package/dist/notifications.js +2 -6
- package/dist/notifications.js.map +3 -3
- package/dist/server.js +8067 -0
- package/dist/server.js.map +97 -0
- package/dist/tui.js +281 -43699
- package/dist/tui.js.map +5 -20
- package/package.json +7 -7
package/dist/notifications.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
3
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
4
|
-
|
|
5
1
|
// src/notifications.ts
|
|
6
|
-
import { Rpc } from "@opencode
|
|
2
|
+
import { Rpc } from "@opencode/plugin/rpc";
|
|
7
3
|
var OperatorNotifications = Rpc.define({
|
|
8
4
|
id: "aerovato.operator-memory",
|
|
9
5
|
methods: {
|
|
@@ -43,4 +39,4 @@ export {
|
|
|
43
39
|
OperatorNotifications
|
|
44
40
|
};
|
|
45
41
|
|
|
46
|
-
//# debugId=
|
|
42
|
+
//# debugId=0FDCE1E44D3037BB64756E2164756E21
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/notifications.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import { Rpc } from \"@opencode
|
|
5
|
+
"import { Rpc } from \"@opencode/plugin/rpc\";\n\nexport const OperatorNotifications = Rpc.define({\n id: \"aerovato.operator-memory\",\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
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";AAAA;AAEO,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;",
|
|
8
|
+
"debugId": "0FDCE1E44D3037BB64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|