@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.
- package/README.md +1 -1
- package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.d.ts → apps/cli/dist/adapter-configuration.d.ts} +1 -0
- package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.js → apps/cli/dist/adapter-configuration.js} +1 -0
- package/apps/cli/dist/adapter-configurations.d.ts +1 -1
- package/apps/cli/dist/adapter-configurations.js +1 -1
- package/apps/cli/dist/adapters.d.ts +7 -0
- package/apps/cli/dist/adapters.js +51 -0
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/help.js +1 -1
- package/apps/cli/dist/index.js +4 -0
- package/apps/cli/dist/main.d.ts +2 -0
- package/apps/cli/dist/main.js +10 -12
- package/apps/cli/dist/manifest.json +0 -5
- package/apps/cli/dist/output.js +2 -7
- package/apps/cli/dist/playboard-interrupt.d.ts +6 -0
- package/apps/cli/dist/playboard-interrupt.js +86 -0
- package/apps/cli/dist/playboard.d.ts +2 -0
- package/apps/cli/dist/playboard.js +9 -10
- package/dist/public/executor-kernel.d.ts +0 -1
- package/dist/public/executor-kernel.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +12 -30
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.js +125 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +51 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +10 -12
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +2 -7
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.js +86 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +9 -10
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -24
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +26 -7
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.d.ts +17 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.js +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +9 -9
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +2 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +14 -13
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +84 -187
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -8
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +45 -38
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +15 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-BVxePruX.js → index-BLMf2Etg.js} +1 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +26 -28
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +1 -37
- package/apps/cli/dist/worker.d.ts +0 -1
- package/apps/cli/dist/worker.js +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +0 -63
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +0 -846
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +0 -54
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.js +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.js +0 -59
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.js +0 -88
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.js +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +0 -42
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +0 -292
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +0 -64
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +0 -674
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.js +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +0 -96
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +0 -279
package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
1
|
import { createHash, randomUUID } from "node:crypto";
|
|
3
2
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
4
3
|
import { dirname } from "node:path";
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* 持久化原生 Kernel 所有权与在途执行事实,不保存业务历史,不迁移旧执行架构。
|
|
6
|
+
* 这是资源恢复记录,不是模块 manifest。写入串行化并通过 rename 替换;
|
|
7
|
+
* 只有 owner 确认 Core/Adapter 资源回收后才能 close 删除记录。
|
|
8
8
|
*/
|
|
9
9
|
export class InvocationManifest {
|
|
10
10
|
#path;
|
|
11
11
|
#invocations = new Map();
|
|
12
|
-
#
|
|
12
|
+
#cleanupFailed = false;
|
|
13
13
|
#writes = Promise.resolve();
|
|
14
14
|
constructor(path) {
|
|
15
15
|
this.#path = path;
|
|
@@ -19,29 +19,21 @@ export class InvocationManifest {
|
|
|
19
19
|
if (reap.reason === "cleanup_incomplete") {
|
|
20
20
|
throw Object.assign(new Error(`Orphan cleanup is unconfirmed: ${path}. After stopping all orphan tools, use acknowledgeOrphanCleanup(path), then retry startup.`), { code: "ORPHAN_CLEANUP_INCOMPLETE" });
|
|
21
21
|
}
|
|
22
|
-
if (reap.reason === "kernel_alive"
|
|
23
|
-
throw new Error(`cannot replace live
|
|
22
|
+
if (reap.reason === "kernel_alive") {
|
|
23
|
+
throw new Error(`cannot replace live invocation manifest (${reap.reason})`);
|
|
24
24
|
}
|
|
25
25
|
const manifest = new InvocationManifest(path);
|
|
26
26
|
await manifest.#persist();
|
|
27
27
|
await removeAcknowledgement(path);
|
|
28
28
|
return { manifest, reap };
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!started)
|
|
38
|
-
throw new Error("system process start identity unavailable");
|
|
39
|
-
this.#worker = { pid, started, entrypoint };
|
|
40
|
-
}
|
|
41
|
-
catch (cause) {
|
|
42
|
-
throw new Error(`cannot identify worker process ${pid}`, { cause });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
30
|
+
/** 原生服务异常退出无法证明 Adapter 资源已清空;正常 close 才删除所有权证据。 */
|
|
31
|
+
async markNativeOwner() {
|
|
32
|
+
await this.#persist();
|
|
33
|
+
}
|
|
34
|
+
/** owner 关闭未完成时登记实际失败;宿主继续存活也不能将诊断恢复为 available。 */
|
|
35
|
+
async markCleanupIncomplete() {
|
|
36
|
+
this.#cleanupFailed = true;
|
|
45
37
|
await this.#persist();
|
|
46
38
|
}
|
|
47
39
|
async begin(entry) {
|
|
@@ -63,7 +55,9 @@ export class InvocationManifest {
|
|
|
63
55
|
schemaVersion: 1,
|
|
64
56
|
kernelPid: process.pid,
|
|
65
57
|
updatedAt: new Date().toISOString(),
|
|
66
|
-
|
|
58
|
+
nativeOwner: true,
|
|
59
|
+
cleanupIncomplete: true,
|
|
60
|
+
...(this.#cleanupFailed ? { cleanupFailed: true } : {}),
|
|
67
61
|
invocations: [...this.#invocations.values()].map((entry) => ({ ...entry }))
|
|
68
62
|
};
|
|
69
63
|
// 当前调用仍收到自己的 IO 失败;后续完整快照可重试,不能让一次失败毒化整个串行队列。
|
|
@@ -76,74 +70,30 @@ export class InvocationManifest {
|
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
72
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
73
|
+
* 检查原生 owner 的遗留记录,不终止宿主或 Provider 进程。
|
|
74
|
+
* 仅文件不存在或该原文已获人工确认才允许 open;损坏及旧 worker 记录保留并明确拒绝。
|
|
81
75
|
*/
|
|
82
76
|
export async function reapOrphanedInvocationManifest(path) {
|
|
83
|
-
let parsed;
|
|
84
77
|
let source;
|
|
85
78
|
try {
|
|
86
79
|
source = await readFile(path, "utf8");
|
|
87
|
-
parsed = JSON.parse(source);
|
|
88
80
|
}
|
|
89
81
|
catch (error) {
|
|
90
|
-
if (error.code
|
|
91
|
-
|
|
92
|
-
return { found: false, reaped: false };
|
|
93
|
-
}
|
|
94
|
-
await rm(path, { force: true });
|
|
82
|
+
if (error.code !== "ENOENT")
|
|
83
|
+
throw error;
|
|
95
84
|
await removeAcknowledgement(path);
|
|
96
|
-
return { found:
|
|
85
|
+
return { found: false, reaped: false };
|
|
97
86
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
processAlive(parsed.kernelPid)) {
|
|
87
|
+
const parsed = parseManifest(source);
|
|
88
|
+
if (processAlive(parsed.kernelPid))
|
|
101
89
|
return { found: true, reaped: false, reason: "kernel_alive" };
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
pid: host?.pid,
|
|
110
|
-
reason: (await cleanupWasAcknowledged(path, source))
|
|
111
|
-
? "cleanup_acknowledged"
|
|
112
|
-
: "cleanup_incomplete"
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
await rm(path, { force: true });
|
|
116
|
-
await removeAcknowledgement(path);
|
|
117
|
-
return { found: true, reaped: false, reason: "host_missing" };
|
|
118
|
-
}
|
|
119
|
-
const currentIdentity = await processStartIdentity(host.pid);
|
|
120
|
-
if (!currentIdentity) {
|
|
121
|
-
return { found: true, reaped: false, pid: host.pid, reason: "unsupported_identity" };
|
|
122
|
-
}
|
|
123
|
-
if (currentIdentity !== host.started) {
|
|
124
|
-
if (parsed.cleanupIncomplete && process.platform === "win32") {
|
|
125
|
-
return {
|
|
126
|
-
found: true,
|
|
127
|
-
reaped: false,
|
|
128
|
-
pid: host.pid,
|
|
129
|
-
reason: (await cleanupWasAcknowledged(path, source))
|
|
130
|
-
? "cleanup_acknowledged"
|
|
131
|
-
: "cleanup_incomplete"
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
await rm(path, { force: true });
|
|
135
|
-
await removeAcknowledgement(path);
|
|
136
|
-
return { found: true, reaped: false, pid: host.pid, reason: "identity_mismatch" };
|
|
137
|
-
}
|
|
138
|
-
// 必须在 leader 仍可识别时回收 Windows 树;失败保留证据,禁止覆盖清单并启动替代 worker。
|
|
139
|
-
if (!(await terminateProcessGroup(host.pid)) && process.platform === "win32") {
|
|
140
|
-
// 失败事实必须跨重启保留;leader 后来消失或 PID 复用不能抹去未确认的后代归属。
|
|
141
|
-
await writeManifest(path, { ...parsed, cleanupIncomplete: true });
|
|
142
|
-
return { found: true, reaped: false, pid: host.pid, reason: "cleanup_incomplete" };
|
|
143
|
-
}
|
|
144
|
-
await rm(path, { force: true });
|
|
145
|
-
await removeAcknowledgement(path);
|
|
146
|
-
return { found: true, reaped: true, pid: host.pid };
|
|
90
|
+
return {
|
|
91
|
+
found: true,
|
|
92
|
+
reaped: false,
|
|
93
|
+
reason: (await cleanupWasAcknowledged(path, source))
|
|
94
|
+
? "cleanup_acknowledged"
|
|
95
|
+
: "cleanup_incomplete"
|
|
96
|
+
};
|
|
147
97
|
}
|
|
148
98
|
async function removeAcknowledgement(path) {
|
|
149
99
|
try {
|
|
@@ -157,48 +107,38 @@ async function removeAcknowledgement(path) {
|
|
|
157
107
|
export async function inspectOrphanCleanup(path) {
|
|
158
108
|
try {
|
|
159
109
|
const source = await readFile(path, "utf8");
|
|
160
|
-
const parsed =
|
|
110
|
+
const parsed = parseManifest(source);
|
|
161
111
|
return {
|
|
162
112
|
manifestPath: path,
|
|
163
|
-
|
|
113
|
+
// 运行中的保守标记不表示实际失败;关闭已失败时,宿主继续存活也不能隐藏 incomplete。
|
|
114
|
+
state: parsed.cleanupFailed || !processAlive(parsed.kernelPid)
|
|
164
115
|
? (await cleanupWasAcknowledged(path, source))
|
|
165
116
|
? "acknowledged"
|
|
166
117
|
: "cleanup_incomplete"
|
|
167
|
-
: "available"
|
|
168
|
-
workerPid: parsed.worker?.pid
|
|
118
|
+
: "available"
|
|
169
119
|
};
|
|
170
120
|
}
|
|
171
121
|
catch (error) {
|
|
172
122
|
return {
|
|
173
123
|
manifestPath: path,
|
|
174
|
-
state: error.code === "ENOENT"
|
|
124
|
+
state: error.code === "ENOENT"
|
|
125
|
+
? "missing"
|
|
126
|
+
: error.code === "ORPHAN_RECORD_UNSUPPORTED"
|
|
127
|
+
? "unsupported"
|
|
128
|
+
: "unreadable"
|
|
175
129
|
};
|
|
176
130
|
}
|
|
177
131
|
}
|
|
178
132
|
/**
|
|
179
133
|
* 操作者已停止未知后代后显式确认当前失败记录;不终止进程、不声称整树回收已验证。
|
|
180
|
-
*
|
|
134
|
+
* 仅接受有效原生记录,仍存活的原 Kernel 不能放行。备份保留,确认仅匹配原文摘要,
|
|
181
135
|
* 所以并发启动、后续调用或另一份清单不会复用旧确认;下一次 open 才替换失败记录。
|
|
182
136
|
*/
|
|
183
137
|
export async function acknowledgeOrphanCleanup(path) {
|
|
184
138
|
const source = await readFile(path, "utf8");
|
|
185
|
-
const parsed =
|
|
186
|
-
if (parsed.schemaVersion !== 1 ||
|
|
187
|
-
!Number.isSafeInteger(parsed.kernelPid) ||
|
|
188
|
-
parsed.kernelPid < 1 ||
|
|
189
|
-
parsed.cleanupIncomplete !== true ||
|
|
190
|
-
!parsed.worker ||
|
|
191
|
-
!Number.isSafeInteger(parsed.worker.pid) ||
|
|
192
|
-
parsed.worker.pid < 1) {
|
|
193
|
-
throw new Error("ORPHAN_CLEANUP_NOT_PENDING");
|
|
194
|
-
}
|
|
139
|
+
const parsed = parseManifest(source);
|
|
195
140
|
if (processAlive(parsed.kernelPid))
|
|
196
141
|
throw new Error("ORPHAN_CLEANUP_OWNER_ALIVE");
|
|
197
|
-
if (processAlive(parsed.worker.pid)) {
|
|
198
|
-
const identity = await processStartIdentity(parsed.worker.pid);
|
|
199
|
-
if (!identity || identity === parsed.worker.started)
|
|
200
|
-
throw new Error("ORPHAN_CLEANUP_OWNER_ALIVE");
|
|
201
|
-
}
|
|
202
142
|
const archivePath = `${path}.acknowledged.${randomUUID()}.json`;
|
|
203
143
|
await writeFile(archivePath, source, { encoding: "utf8", flag: "wx", mode: 0o600 });
|
|
204
144
|
const temporary = `${path}.${randomUUID()}.ack.tmp`;
|
|
@@ -242,96 +182,48 @@ async function writeManifest(path, snapshot) {
|
|
|
242
182
|
await rm(temporary, { force: true });
|
|
243
183
|
}
|
|
244
184
|
}
|
|
245
|
-
/**
|
|
246
|
-
|
|
185
|
+
/** 旧格式、未知字段及损坏内容均不能当作空记录覆盖;读取与人工确认共用同一校验。 */
|
|
186
|
+
function parseManifest(source) {
|
|
247
187
|
try {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
})
|
|
278
|
-
|
|
279
|
-
if (process.platform === "win32") {
|
|
280
|
-
return new Promise((resolve, reject) => {
|
|
281
|
-
execFile("powershell.exe", [
|
|
282
|
-
"-NoLogo",
|
|
283
|
-
"-NoProfile",
|
|
284
|
-
"-NonInteractive",
|
|
285
|
-
"-Command",
|
|
286
|
-
// 直接调用系统进程对象,避免 Get-Process 的命令发现/模块自动加载占用身份查询预算。
|
|
287
|
-
// 保持 UTC ticks 身份格式,不缓存可能已经复用的 PID。
|
|
288
|
-
`$PSModuleAutoLoadingPreference='None'; $target=[System.Diagnostics.Process]::GetProcessById(${pid}); try { [Console]::Out.Write($target.StartTime.ToUniversalTime().Ticks.ToString([Globalization.CultureInfo]::InvariantCulture)) } finally { $target.Dispose() }`
|
|
289
|
-
],
|
|
290
|
-
// PowerShell 冷启动与查询共用 40 秒;Windows CI 曾在 30 秒期限被系统命令超时终止。
|
|
291
|
-
// 身份登记独立于后续 RPC 就绪与关闭预算,失败仍禁止使用未知 PID。
|
|
292
|
-
{ encoding: "utf8", timeout: 40_000, windowsHide: true }, (error, stdout) => {
|
|
293
|
-
if (error) {
|
|
294
|
-
reject(error instanceof Error
|
|
295
|
-
? error
|
|
296
|
-
: new Error("Windows process identity query failed", { cause: error }));
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
const value = stdout.trim();
|
|
300
|
-
resolve(!/^\d+$/.test(value) ? undefined : `windows:${value}`);
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
return undefined;
|
|
305
|
-
}
|
|
306
|
-
async function terminateProcessGroup(pid) {
|
|
307
|
-
if (process.platform === "win32") {
|
|
308
|
-
const terminated = await new Promise((resolve) => {
|
|
309
|
-
execFile("taskkill.exe", ["/PID", String(pid), "/T", "/F"], { windowsHide: true, timeout: 5_000 }, (error) => resolve(!error));
|
|
188
|
+
const value = JSON.parse(source);
|
|
189
|
+
const fields = new Set([
|
|
190
|
+
"schemaVersion",
|
|
191
|
+
"kernelPid",
|
|
192
|
+
"updatedAt",
|
|
193
|
+
"nativeOwner",
|
|
194
|
+
"cleanupIncomplete",
|
|
195
|
+
"cleanupFailed",
|
|
196
|
+
"invocations"
|
|
197
|
+
]);
|
|
198
|
+
if (!record(value) ||
|
|
199
|
+
Object.keys(value).some((key) => !fields.has(key)) ||
|
|
200
|
+
value.schemaVersion !== 1 ||
|
|
201
|
+
value.nativeOwner !== true ||
|
|
202
|
+
value.cleanupIncomplete !== true ||
|
|
203
|
+
!Number.isSafeInteger(value.kernelPid) ||
|
|
204
|
+
Number(value.kernelPid) < 1 ||
|
|
205
|
+
Number(value.kernelPid) > 2147483647 ||
|
|
206
|
+
!timestamp(value.updatedAt) ||
|
|
207
|
+
(value.cleanupFailed !== undefined && value.cleanupFailed !== true) ||
|
|
208
|
+
!Array.isArray(value.invocations) ||
|
|
209
|
+
!value.invocations.every((entry) => record(entry) &&
|
|
210
|
+
Object.keys(entry).length === 4 &&
|
|
211
|
+
["invocationId", "runId", "adapterType"].every((key) => typeof entry[key] === "string" && entry[key] !== "") &&
|
|
212
|
+
timestamp(entry.startedAt)))
|
|
213
|
+
throw new Error("Invalid native ownership record");
|
|
214
|
+
return value;
|
|
215
|
+
}
|
|
216
|
+
catch (cause) {
|
|
217
|
+
throw Object.assign(new Error("ORPHAN_RECORD_UNSUPPORTED", { cause }), {
|
|
218
|
+
code: "ORPHAN_RECORD_UNSUPPORTED"
|
|
310
219
|
});
|
|
311
|
-
// taskkill 失败即使 leader 随后消失,也不能证明后代已回收。
|
|
312
|
-
return terminated && (await waitForExit(pid, 1_000));
|
|
313
220
|
}
|
|
314
|
-
signalProcessGroup(pid, "SIGTERM");
|
|
315
|
-
if (await waitForExit(pid, 1_000))
|
|
316
|
-
return true;
|
|
317
|
-
signalProcessGroup(pid, "SIGKILL");
|
|
318
|
-
return waitForExit(pid, 1_000);
|
|
319
221
|
}
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
process.kill(-pid, signal);
|
|
323
|
-
}
|
|
324
|
-
catch (error) {
|
|
325
|
-
if (error.code !== "ESRCH")
|
|
326
|
-
throw error;
|
|
327
|
-
}
|
|
222
|
+
function record(value) {
|
|
223
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
328
224
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
while (processAlive(pid) && Date.now() < deadline) {
|
|
332
|
-
await new Promise((resolve) => setTimeout(resolve, 25));
|
|
333
|
-
}
|
|
334
|
-
return !processAlive(pid);
|
|
225
|
+
function timestamp(value) {
|
|
226
|
+
return typeof value === "string" && value.length > 0 && Number.isFinite(Date.parse(value));
|
|
335
227
|
}
|
|
336
228
|
function processAlive(pid) {
|
|
337
229
|
try {
|
|
@@ -339,6 +231,11 @@ function processAlive(pid) {
|
|
|
339
231
|
return true;
|
|
340
232
|
}
|
|
341
233
|
catch (error) {
|
|
342
|
-
|
|
234
|
+
const code = error.code;
|
|
235
|
+
if (code === "ESRCH")
|
|
236
|
+
return false;
|
|
237
|
+
if (code === "EPERM")
|
|
238
|
+
return true;
|
|
239
|
+
throw error;
|
|
343
240
|
}
|
|
344
241
|
}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { type RuntimeLoggingOptions, type AdapterProbeOptions } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
-
import { type
|
|
2
|
+
import { type HostedAdapter } from "@mininglamp-oss/octo-runtime-executor-core";
|
|
3
3
|
import { type KernelStatus } from "./types.js";
|
|
4
4
|
export interface KernelServerOptions {
|
|
5
5
|
endpoint: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** CLI 装配快照;SDK 原生 worker 无需清单或此字段。 */
|
|
9
|
-
adapterModules?: AdapterModuleEntry[];
|
|
10
|
-
env?: NodeJS.ProcessEnv;
|
|
6
|
+
/** 宿主已 import/构造的实例;保留对象身份,不跨进程序列化。 */
|
|
7
|
+
adapters: readonly HostedAdapter[];
|
|
11
8
|
adapterConfigurations?: Record<string, AdapterProbeOptions>;
|
|
12
9
|
stateDirectory?: string;
|
|
13
|
-
/**
|
|
10
|
+
/** 记录 Kernel/Core 的生命周期;调用方选择日志目录。 */
|
|
14
11
|
logging?: RuntimeLoggingOptions;
|
|
15
12
|
configurations?: (runtimeId?: string) => Record<string, AdapterProbeOptions>;
|
|
16
13
|
}
|
|
17
14
|
/**
|
|
18
|
-
*
|
|
15
|
+
* 在宿主进程创建本地 RPC 端点,独占端点租约、Run 事件源和 AgentExecutor。
|
|
19
16
|
* 启动失败也执行回收;close 失败会保留所有权证据,客户端断开不等同于 owner 关闭。
|
|
20
17
|
*/
|
|
21
18
|
export declare function startKernelServer(options: KernelServerOptions, signal?: AbortSignal): Promise<{
|
|
@@ -5,11 +5,11 @@ import { dirname, join } from "node:path";
|
|
|
5
5
|
import { readBoundedLines, RuntimeLogging, assertRuntimeLogging } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
6
6
|
import { assertHostRunReceipt, createInputInvoke, contextItem, INVOKE_REQUEST_MAX_BYTES, HOST_RPC_MAX_LINE_BYTES, resolveStreamLimitPolicy } from "@mininglamp-oss/octo-runtime-protocol";
|
|
7
7
|
import { HostRunService } from "./host-run-service.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { AgentExecutor } from "@mininglamp-oss/octo-runtime-executor-core";
|
|
9
|
+
import { beforeDeadline } from "./lifecycle.js";
|
|
10
|
+
import { probeOptions } from "./execution-source.js";
|
|
10
11
|
import { acquireEndpoint } from "./endpoint.js";
|
|
11
12
|
import { InvocationManifest } from "./invocation-manifest.js";
|
|
12
|
-
import { readModuleManifest, resolveAdapterModules } from "@mininglamp-oss/octo-runtime-adapter-sdk/module-manifest";
|
|
13
13
|
import { KernelError } from "./types.js";
|
|
14
14
|
function validateParams(method, params) {
|
|
15
15
|
const fields = {
|
|
@@ -69,21 +69,16 @@ function validateParams(method, params) {
|
|
|
69
69
|
throw new KernelError("INVALID_PARAMS");
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* 在宿主进程创建本地 RPC 端点,独占端点租约、Run 事件源和 AgentExecutor。
|
|
73
73
|
* 启动失败也执行回收;close 失败会保留所有权证据,客户端断开不等同于 owner 关闭。
|
|
74
74
|
*/
|
|
75
75
|
export async function startKernelServer(options, signal) {
|
|
76
76
|
assertRuntimeLogging(options.logging);
|
|
77
|
-
if (options.manifest && options.adapterModules !== undefined)
|
|
78
|
-
throw new TypeError("manifest and adapterModules are mutually exclusive");
|
|
79
|
-
// 文件仅在服务启动时读取一次;worker 自动恢复沿用快照,不因磁盘改动改变加载集合。
|
|
80
|
-
const adapterModules = options.manifest
|
|
81
|
-
? resolveAdapterModules(await readModuleManifest(options.manifest, { legacy: true }))
|
|
82
|
-
: options.adapterModules;
|
|
83
77
|
const instance = randomUUID();
|
|
84
78
|
const logging = new RuntimeLogging(options.logging);
|
|
85
79
|
let manifest;
|
|
86
|
-
const
|
|
80
|
+
const executor = new AgentExecutor({ log: logging.kernel });
|
|
81
|
+
let ready = false;
|
|
87
82
|
// 每轮只读取一次宿主配置;复制后冻结自有快照,不冻结宿主持有的原对象。
|
|
88
83
|
const configure = (input) => {
|
|
89
84
|
const type = contextItem(input.contexts, "octo.execution", "adapter")?.payload.type;
|
|
@@ -95,13 +90,13 @@ export async function startKernelServer(options, signal) {
|
|
|
95
90
|
}));
|
|
96
91
|
};
|
|
97
92
|
const transport = {
|
|
98
|
-
list: (configs) =>
|
|
99
|
-
probe: (type, config) =>
|
|
100
|
-
cancel: (id, reason) =>
|
|
101
|
-
respondInteraction: (id, response) =>
|
|
102
|
-
respondNative: (id, response) =>
|
|
93
|
+
list: (configs) => executor.describe(configs ?? options.configurations?.() ?? options.adapterConfigurations),
|
|
94
|
+
probe: (type, config) => Promise.resolve().then(() => executor.probe(type, config)),
|
|
95
|
+
cancel: (id, reason) => Promise.resolve().then(() => ({ cancelled: executor.cancel(id, reason) })),
|
|
96
|
+
respondInteraction: (id, response) => executor.respondInteraction(id, response),
|
|
97
|
+
respondNative: (id, response) => executor.respondNative(id, response),
|
|
103
98
|
invoke: createInputInvoke((input, environment) => transport.invokeFrames(input, environment)),
|
|
104
|
-
invokeFrames: (input, environment) =>
|
|
99
|
+
invokeFrames: (input, environment) => executor.invokeFrames(input, environment)
|
|
105
100
|
};
|
|
106
101
|
const runs = new HostRunService(transport);
|
|
107
102
|
const sockets = new Set();
|
|
@@ -112,8 +107,7 @@ export async function startKernelServer(options, signal) {
|
|
|
112
107
|
ipc_version: 1,
|
|
113
108
|
kernel_instance_id: instance,
|
|
114
109
|
pid: process.pid,
|
|
115
|
-
|
|
116
|
-
execution_ready: !closing && worker.status.state === "ready"
|
|
110
|
+
execution_ready: !closing && ready
|
|
117
111
|
});
|
|
118
112
|
const snapshot = (key, expected) => {
|
|
119
113
|
if (expected !== undefined && expected !== instance)
|
|
@@ -184,12 +178,10 @@ export async function startKernelServer(options, signal) {
|
|
|
184
178
|
throw new KernelError("KERNEL_INSTANCE_CHANGED");
|
|
185
179
|
// 此处尚未调用执行源;专用证据只标记本次拒绝,不能推广到已接纳或 ACK 未知的请求。
|
|
186
180
|
if (!status().execution_ready)
|
|
187
|
-
throw new KernelError(
|
|
188
|
-
? "WORKER_RESTART_EXHAUSTED"
|
|
189
|
-
: "KERNEL_UNAVAILABLE", { invocation_not_submitted: true });
|
|
181
|
+
throw new KernelError("KERNEL_UNAVAILABLE", { invocation_not_submitted: true });
|
|
190
182
|
const input = params.input;
|
|
191
183
|
const config = configure(input);
|
|
192
|
-
// 选项先合并再进入 HostRunService 的整请求预算检查;策略沿同一调用传给
|
|
184
|
+
// 选项先合并再进入 HostRunService 的整请求预算检查;策略沿同一调用传给 Core 和重放窗口。
|
|
193
185
|
const configuredInput = config
|
|
194
186
|
? {
|
|
195
187
|
...input,
|
|
@@ -309,7 +301,7 @@ export async function startKernelServer(options, signal) {
|
|
|
309
301
|
message: "Kernel request failed",
|
|
310
302
|
data: {
|
|
311
303
|
code,
|
|
312
|
-
//
|
|
304
|
+
// Core 错误使用 camelCase 属性;此处转换为公开 socket 协议字段,client 保留整个 data。
|
|
313
305
|
...(code === "ASYNC_ANSWER_REJECTED" &&
|
|
314
306
|
record(error) &&
|
|
315
307
|
Number.isSafeInteger(error.providerRpcCode)
|
|
@@ -348,13 +340,15 @@ export async function startKernelServer(options, signal) {
|
|
|
348
340
|
});
|
|
349
341
|
});
|
|
350
342
|
const teardown = async (until = Date.now() + 5000) => {
|
|
343
|
+
ready = false;
|
|
344
|
+
logging.kernel("info", "kernel.closing", { pid: process.pid });
|
|
351
345
|
runs.beginDrain();
|
|
352
346
|
for (const socket of sockets)
|
|
353
347
|
socket.destroy();
|
|
354
348
|
const errors = [];
|
|
355
349
|
const attempt = async (operation) => {
|
|
356
350
|
try {
|
|
357
|
-
await operation();
|
|
351
|
+
await beforeDeadline(operation(), until);
|
|
358
352
|
return true;
|
|
359
353
|
}
|
|
360
354
|
catch (error) {
|
|
@@ -364,26 +358,36 @@ export async function startKernelServer(options, signal) {
|
|
|
364
358
|
};
|
|
365
359
|
if (listening)
|
|
366
360
|
await attempt(() => new Promise((resolve) => server.close(() => resolve())));
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
361
|
+
// 先停接纳,再取消 Core 并等待 Adapter finally;终态不代替资源释放确认。
|
|
362
|
+
// 同进程不能强杀阻塞的 JS。所有等待共享绝对期限,超时保留所有权证据。
|
|
363
|
+
const executorStopped = await attempt(async () => {
|
|
364
|
+
const result = await executor.shutdown("Kernel shutdown", Math.max(1, until - Date.now() - 1200));
|
|
365
|
+
if (result.cleanup !== "complete")
|
|
366
|
+
throw new Error("EXECUTOR_CLEANUP_INCOMPLETE");
|
|
367
|
+
});
|
|
368
|
+
await attempt(() => beforeDeadline(runs.close(), until - 1000));
|
|
369
|
+
// 原生日志由同一 owner 持有:Core/finally 排空后才关闭,且仍只用原截止时间。
|
|
370
|
+
logging.kernel(errors.length ? "error" : "info", errors.length ? "kernel.cleanup_incomplete" : "kernel.execution_drained", errors.length ? { code: "KERNEL_CLEANUP_INCOMPLETE" } : { pid: process.pid });
|
|
371
|
+
await attempt(() => logging.close());
|
|
372
|
+
if (executorStopped && !errors.length) {
|
|
376
373
|
await attempt(() => manifest?.close() ?? Promise.resolve());
|
|
377
374
|
if (listening && process.platform !== "win32")
|
|
378
375
|
await attempt(() => rm(options.endpoint, { force: true }));
|
|
379
376
|
if (!errors.length)
|
|
380
377
|
await attempt(() => releaseEndpoint?.() ?? Promise.resolve());
|
|
381
378
|
}
|
|
382
|
-
if (errors.length)
|
|
379
|
+
if (errors.length) {
|
|
380
|
+
// 原生宿主仍存活时也必须暴露真实关闭失败;持久化失败不能覆盖原清理原因。
|
|
381
|
+
await attempt(() => manifest?.markCleanupIncomplete() ?? Promise.resolve());
|
|
383
382
|
throw new AggregateError(errors, "KERNEL_CLEANUP_INCOMPLETE");
|
|
383
|
+
}
|
|
384
384
|
};
|
|
385
385
|
try {
|
|
386
386
|
signal?.throwIfAborted();
|
|
387
|
+
for (const adapter of options.adapters) {
|
|
388
|
+
executor.register(adapter);
|
|
389
|
+
logging.kernel("info", "adapter.registered", { adapter_type: adapter.metadata.type });
|
|
390
|
+
}
|
|
387
391
|
if (process.platform !== "win32")
|
|
388
392
|
await mkdir(dirname(options.endpoint), { recursive: true, mode: 0o700 });
|
|
389
393
|
signal?.throwIfAborted();
|
|
@@ -394,8 +398,10 @@ export async function startKernelServer(options, signal) {
|
|
|
394
398
|
: process.platform !== "win32"
|
|
395
399
|
? `${options.endpoint}.runs`
|
|
396
400
|
: undefined;
|
|
397
|
-
if (statePath)
|
|
401
|
+
if (statePath) {
|
|
398
402
|
manifest = (await InvocationManifest.open(statePath)).manifest;
|
|
403
|
+
await manifest.markNativeOwner();
|
|
404
|
+
}
|
|
399
405
|
signal?.throwIfAborted();
|
|
400
406
|
await new Promise((resolve, reject) => {
|
|
401
407
|
server.once("error", reject);
|
|
@@ -408,10 +414,11 @@ export async function startKernelServer(options, signal) {
|
|
|
408
414
|
if (process.platform !== "win32")
|
|
409
415
|
await chmod(options.endpoint, 0o600);
|
|
410
416
|
signal?.throwIfAborted();
|
|
411
|
-
|
|
412
|
-
|
|
417
|
+
ready = true;
|
|
418
|
+
logging.kernel("info", "kernel.ready", { pid: process.pid });
|
|
413
419
|
}
|
|
414
420
|
catch (error) {
|
|
421
|
+
logging.kernel("error", "kernel.start_failed", { code: safeCode(error) });
|
|
415
422
|
try {
|
|
416
423
|
await teardown();
|
|
417
424
|
}
|
|
@@ -11,5 +11,9 @@ export interface KernelServiceStatus {
|
|
|
11
11
|
export interface KernelService extends ServiceLifecycle<KernelServiceStatus> {
|
|
12
12
|
readonly client: KernelClient;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* 宿主传入本地 RPC 地址和已装配的 Adapter;initialize 注册成功后才开放 client。
|
|
16
|
+
* socket、Core 和本服务创建的日志由 close 回收;宿主依赖仍由宿主拥有。
|
|
17
|
+
* 即使与调用方同进程,client 也始终通过 RPC,不能绕过 Run 接纳和观察管理。
|
|
18
|
+
*/
|
|
15
19
|
export declare function createKernelService(options: KernelServiceOptions): KernelService;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import { attachKernel } from "./client.js";
|
|
2
2
|
import { startKernelServer } from "./server.js";
|
|
3
3
|
import { beforeDeadline, ServiceInitializationError } from "./lifecycle.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* 宿主传入本地 RPC 地址和已装配的 Adapter;initialize 注册成功后才开放 client。
|
|
6
|
+
* socket、Core 和本服务创建的日志由 close 回收;宿主依赖仍由宿主拥有。
|
|
7
|
+
* 即使与调用方同进程,client 也始终通过 RPC,不能绕过 Run 接纳和观察管理。
|
|
8
|
+
*/
|
|
5
9
|
export function createKernelService(options) {
|
|
10
|
+
if (!options ||
|
|
11
|
+
typeof options.endpoint !== "string" ||
|
|
12
|
+
!options.endpoint ||
|
|
13
|
+
!Array.isArray(options.adapters))
|
|
14
|
+
throw new TypeError("Kernel requires endpoint and adapters");
|
|
15
|
+
// 旧 JS 接入不能静默退回文件加载或忽略 worker 环境;模块装配完全归宿主。
|
|
16
|
+
for (const field of ["workerEntrypoint", "manifest", "adapterModules", "env"])
|
|
17
|
+
if (field in options)
|
|
18
|
+
throw new TypeError(`Kernel does not accept ${field}; compose adapters in the host`);
|
|
6
19
|
const configuration = {
|
|
7
20
|
...options,
|
|
8
|
-
|
|
21
|
+
adapters: [...options.adapters],
|
|
9
22
|
adapterConfigurations: options.adapterConfigurations && structuredClone(options.adapterConfigurations),
|
|
10
|
-
env: options.env && { ...options.env },
|
|
11
23
|
logging: options.logging && { ...options.logging }
|
|
12
24
|
};
|
|
13
25
|
const owner = new AbortController();
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-executor-kernel",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"import": "./dist/index.js"
|
|
10
|
-
},
|
|
11
|
-
"./manifest-adapters": {
|
|
12
|
-
"types": "./dist/manifest-adapters.d.ts",
|
|
13
|
-
"import": "./dist/manifest-adapters.js"
|
|
14
|
-
},
|
|
15
|
-
"./runner": {
|
|
16
|
-
"types": "./dist/runner.d.ts",
|
|
17
|
-
"import": "./dist/runner.js"
|
|
18
10
|
}
|
|
19
11
|
},
|
|
20
12
|
"dependencies": {
|
|
21
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
22
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
23
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.10",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.10",
|
|
15
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10"
|
|
24
16
|
},
|
|
25
17
|
"types": "./dist/index.d.ts",
|
|
26
18
|
"files": [
|