@mininglamp-oss/octo-runtime 1.1.9 → 1.1.10

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.
Files changed (111) hide show
  1. package/README.md +1 -1
  2. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.d.ts → apps/cli/dist/adapter-configuration.d.ts} +1 -0
  3. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.js → apps/cli/dist/adapter-configuration.js} +1 -0
  4. package/apps/cli/dist/adapter-configurations.d.ts +1 -1
  5. package/apps/cli/dist/adapter-configurations.js +1 -1
  6. package/apps/cli/dist/adapters.d.ts +7 -0
  7. package/apps/cli/dist/adapters.js +51 -0
  8. package/apps/cli/dist/build-info.json +2 -2
  9. package/apps/cli/dist/help.js +1 -1
  10. package/apps/cli/dist/index.js +4 -0
  11. package/apps/cli/dist/main.d.ts +2 -0
  12. package/apps/cli/dist/main.js +10 -12
  13. package/apps/cli/dist/manifest.json +0 -5
  14. package/apps/cli/dist/output.js +2 -7
  15. package/apps/cli/dist/playboard-interrupt.d.ts +6 -0
  16. package/apps/cli/dist/playboard-interrupt.js +86 -0
  17. package/apps/cli/dist/playboard.d.ts +2 -0
  18. package/apps/cli/dist/playboard.js +9 -10
  19. package/dist/public/executor-kernel.d.ts +0 -1
  20. package/dist/public/executor-kernel.js +0 -1
  21. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +1 -2
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +1 -1
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +12 -30
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  40. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.d.ts +3 -0
  41. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.js +125 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +1 -1
  43. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +1 -1
  44. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +7 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +51 -0
  46. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  47. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +1 -1
  48. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +4 -0
  49. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
  50. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +10 -12
  51. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -5
  52. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +2 -7
  53. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.d.ts +6 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.js +86 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +2 -0
  56. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +9 -10
  57. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -24
  58. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  59. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +3 -3
  60. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +26 -7
  61. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  62. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +2 -0
  63. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.d.ts +17 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.js +21 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +9 -9
  67. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -6
  69. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +2 -6
  70. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +14 -13
  71. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +84 -187
  72. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -8
  73. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +45 -38
  74. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -1
  75. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +15 -3
  76. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -12
  77. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  78. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  79. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-BVxePruX.js → index-BLMf2Etg.js} +1 -3
  80. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  81. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  82. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  83. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +0 -15
  84. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  85. package/package.json +26 -28
  86. package/packages/octo-runtime-protocol/schema/protocol.schema.json +1 -37
  87. package/apps/cli/dist/worker.d.ts +0 -1
  88. package/apps/cli/dist/worker.js +0 -18
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +0 -63
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +0 -846
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +0 -54
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +0 -154
  93. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +0 -15
  94. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.d.ts +0 -1
  95. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.js +0 -18
  96. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.d.ts +0 -16
  97. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.js +0 -59
  98. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.d.ts +0 -6
  99. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.js +0 -88
  100. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.d.ts +0 -1
  101. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.js +0 -2
  102. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +0 -42
  103. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +0 -292
  104. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +0 -64
  105. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +0 -674
  106. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.d.ts +0 -2
  107. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.js +0 -5
  108. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.d.ts +0 -10
  109. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +0 -96
  110. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +0 -15
  111. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +0 -279
@@ -1,3 +1,3 @@
1
- <!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Octo Runtime</title> <script type="module" crossorigin src="/assets/index-BVxePruX.js"></script>
1
+ <!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Octo Runtime</title> <script type="module" crossorigin src="/assets/index-BLMf2Etg.js"></script>
2
2
  <link rel="stylesheet" crossorigin href="/assets/index-CYTpqItx.css">
3
3
  </head><body><div id="root"></div></body></html>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-extra-webui",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Local Runtime workbench with canonical SSE presentation",
@@ -23,6 +23,6 @@
23
23
  "porting-map.md"
24
24
  ],
25
25
  "dependencies": {
26
- "@mininglamp-oss/octo-runtime-protocol": "1.1.9"
26
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-host-sdk",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,9 +23,9 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.9",
27
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.9",
28
- "@mininglamp-oss/octo-runtime-protocol": "1.1.9"
26
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10",
27
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.10",
28
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10"
29
29
  },
30
30
  "types": "./dist/index.d.ts",
31
31
  "files": [
@@ -604,21 +604,6 @@ export interface KernelStatus {
604
604
  kernel_instance_id: string;
605
605
  pid: number;
606
606
  execution_ready: boolean;
607
- worker: {
608
- pid?: number;
609
- generation: number;
610
- restart_attempt: number;
611
- recovery?: {
612
- trigger: "exit" | "error" | "heartbeat" | "ipc";
613
- stage: "cleanup" | "manifest" | "starting" | "backoff";
614
- code: string;
615
- occurred_at: string;
616
- retry_at?: string;
617
- exit_code?: number;
618
- signal?: string;
619
- };
620
- state: "starting" | "ready" | "recovering" | "stopped" | "exhausted";
621
- };
622
607
  }
623
608
  /**
624
609
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-protocol",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Provider-neutral Agent runtime for unified execution through provider adapters",
5
5
  "repository": {
6
6
  "type": "git",
@@ -87,32 +87,31 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "commander": "15.0.0",
90
- "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.9",
90
+ "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.10",
91
91
  "semver": "7.8.5",
92
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.9",
93
- "@mininglamp-oss/octo-runtime-protocol": "1.1.9",
92
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10",
93
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10",
94
94
  "import-meta-resolve": "4.2.0",
95
- "@mininglamp-oss/octo-runtime-extra-webui": "1.1.9",
96
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.9",
97
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.9",
98
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.9",
99
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.9",
100
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.9",
101
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.9",
102
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.9",
103
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.9",
104
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.9",
105
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.9",
106
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.9",
107
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.9",
108
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.9",
95
+ "@mininglamp-oss/octo-runtime-extra-webui": "1.1.10",
96
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.10",
97
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.10",
98
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.10",
99
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.10",
100
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.10",
101
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.10",
102
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.10",
103
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.10",
104
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.10",
105
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.10",
106
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.10",
107
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.10",
108
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.10",
109
109
  "ws": "8.22.0",
110
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.9",
111
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.9",
112
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.9",
113
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.9",
114
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.9",
115
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.9",
110
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.10",
111
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.10",
112
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.10",
113
+ "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.10",
114
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.10",
116
115
  "mdast-util-from-markdown": "2.1.0",
117
116
  "@types/mdast": "4.0.4",
118
117
  "@types/unist": "3.0.3",
@@ -148,11 +147,11 @@
148
147
  "micromark-util-sanitize-uri": "2.0.1",
149
148
  "micromark-util-decode-string": "2.0.1",
150
149
  "unist-util-stringify-position": "4.0.0",
151
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.9",
150
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.10",
152
151
  "iconv-lite": "0.7.3",
153
152
  "safer-buffer": "2.1.2",
154
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.9",
155
- "@mininglamp-oss/octo-runtime-cli": "1.1.9",
153
+ "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.10",
154
+ "@mininglamp-oss/octo-runtime-cli": "1.1.10",
156
155
  "json5": "2.2.3"
157
156
  },
158
157
  "bundleDependencies": [
@@ -180,7 +179,6 @@
180
179
  "@mininglamp-oss/octo-runtime-adapter-opencode",
181
180
  "@mininglamp-oss/octo-runtime-adapter-qodercli",
182
181
  "@mininglamp-oss/octo-runtime-adapter-qoderclicn",
183
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui",
184
182
  "@mininglamp-oss/octo-runtime-extra-channel-gateway",
185
183
  "@mininglamp-oss/octo-runtime-host-sdk",
186
184
  "mdast-util-from-markdown",
@@ -126,7 +126,7 @@
126
126
  "title": "KernelStatus",
127
127
  "type": "object",
128
128
  "additionalProperties": false,
129
- "required": ["ipc_version", "kernel_instance_id", "pid", "worker", "execution_ready"],
129
+ "required": ["ipc_version", "kernel_instance_id", "pid", "execution_ready"],
130
130
  "properties": {
131
131
  "ipc_version": {
132
132
  "const": 1
@@ -141,42 +141,6 @@
141
141
  },
142
142
  "execution_ready": {
143
143
  "type": "boolean"
144
- },
145
- "worker": {
146
- "type": "object",
147
- "additionalProperties": false,
148
- "required": ["generation", "state", "restart_attempt"],
149
- "properties": {
150
- "pid": {
151
- "type": "integer",
152
- "minimum": 1
153
- },
154
- "generation": {
155
- "type": "integer",
156
- "minimum": 0
157
- },
158
- "restart_attempt": {
159
- "type": "integer",
160
- "minimum": 0
161
- },
162
- "recovery": {
163
- "type": "object",
164
- "additionalProperties": false,
165
- "required": ["trigger", "stage", "code", "occurred_at"],
166
- "properties": {
167
- "trigger": { "enum": ["exit", "error", "heartbeat", "ipc"] },
168
- "stage": { "enum": ["cleanup", "manifest", "starting", "backoff"] },
169
- "code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,95}$" },
170
- "occurred_at": { "type": "string", "format": "date-time" },
171
- "retry_at": { "type": "string", "format": "date-time" },
172
- "exit_code": { "type": "integer" },
173
- "signal": { "type": "string", "pattern": "^SIG[A-Z0-9]+$" }
174
- }
175
- },
176
- "state": {
177
- "enum": ["starting", "ready", "recovering", "stopped", "exhausted"]
178
- }
179
- }
180
144
  }
181
145
  }
182
146
  },
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- // CLI 自有执行 worker。顶层 Kernel 仍由 CLI 调用进程创建;SDK 原生入口不使用此装配。
2
- import { loadManifestAdapters } from "@mininglamp-oss/octo-runtime-executor-kernel/manifest-adapters";
3
- import { serveWorker } from "@mininglamp-oss/octo-runtime-executor-kernel";
4
- import { readExtraDirectory } from "@mininglamp-oss/octo-runtime-host-sdk";
5
- import { dirname, join } from "node:path";
6
- const adapters = await loadManifestAdapters();
7
- // 旧显式清单允许省略 type;以所选实例真实类型判断,不猜包名,也不在父进程重复实例化。
8
- if (adapters.some((adapter) => adapter.metadata.type === "openclaw")) {
9
- const profileRoot = process.env.OCTO_RUNTIME_CLI_PROFILE_ROOT;
10
- if (!profileRoot)
11
- throw new Error("CLI_PROFILE_ROOT_REQUIRED");
12
- const { initializeCliOpenClaw, syncCliOpenClawToolEnvironment } = await import("./openclaw.js");
13
- await initializeCliOpenClaw(profileRoot);
14
- if (process.env.OCTO_RUNTIME_CLI_SYNC_OPENCLAW_TOOLS === "1")
15
- await syncCliOpenClawToolEnvironment(profileRoot, await readExtraDirectory(join(dirname(profileRoot), "extras")));
16
- }
17
- // 产品连接准备完成后才建立既有 list/probe 握手;所有实例仅交给唯一 Core 注册一次。
18
- serveWorker(adapters);
@@ -1,63 +0,0 @@
1
- import { type AcpApprovalBridge, type AdapterInvocationContext, type CanonicalEvent, type InvokeRequest } from "@mininglamp-oss/octo-runtime-adapter-sdk";
2
- import { type ChildProcessWithoutNullStreams } from "node:child_process";
3
- type JsonRecord = Record<string, unknown>;
4
- interface ProcessExit {
5
- code: number | null;
6
- signal: NodeJS.Signals | null;
7
- }
8
- export interface ZcodeSessionEvent {
9
- sessionId: string;
10
- seq?: number;
11
- type: string;
12
- payload?: JsonRecord;
13
- }
14
- export interface ZcodeAppServerCommand {
15
- command: string;
16
- args: string[];
17
- cwd: string;
18
- env: NodeJS.ProcessEnv;
19
- cleanup?: () => void | Promise<void>;
20
- }
21
- export type ZcodeAppServerSpawn = (command: string, args: readonly string[], options: {
22
- cwd: string;
23
- env: NodeJS.ProcessEnv;
24
- detached: boolean;
25
- }) => ChildProcessWithoutNullStreams;
26
- export declare class ZcodeAppServerRpcError extends Error {
27
- readonly method: string;
28
- readonly code: string | number;
29
- readonly data?: unknown | undefined;
30
- constructor(method: string, code: string | number, message: string, data?: unknown | undefined);
31
- }
32
- export declare class ZcodeAppServerProcessError extends Error {
33
- readonly exit: ProcessExit;
34
- constructor(message: string, exit: ProcessExit);
35
- }
36
- export interface NormalizerState {
37
- stepId: string;
38
- stepStarted: boolean;
39
- stepFinished: boolean;
40
- finalMessageStarted: boolean;
41
- reasoningMessageStarted: boolean;
42
- publicText: string;
43
- tools: Map<string, {
44
- name: string;
45
- input: unknown;
46
- terminal: boolean;
47
- created: boolean;
48
- }>;
49
- }
50
- export declare class ZcodeEventNormalizer {
51
- #private;
52
- constructor(runId: string);
53
- normalize(event: ZcodeSessionEvent): CanonicalEvent[];
54
- }
55
- export declare function normalizeZcodeEvent(event: ZcodeSessionEvent, state: NormalizerState): CanonicalEvent[];
56
- export declare function runZcodeAppServerTurn({ request, spec, spawnFn, context, approvalBridge }: {
57
- request: InvokeRequest;
58
- spec: ZcodeAppServerCommand;
59
- context?: AdapterInvocationContext;
60
- spawnFn?: ZcodeAppServerSpawn;
61
- approvalBridge?: AcpApprovalBridge;
62
- }): AsyncGenerator<CanonicalEvent>;
63
- export {};