@mininglamp-oss/octo-runtime 1.1.5 → 1.1.6
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/apps/cli/dist/adapter-configurations.d.ts +4 -0
- package/apps/cli/dist/adapter-configurations.js +102 -0
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/command-tree.js +1 -1
- package/apps/cli/dist/logs.js +8 -4
- package/apps/cli/dist/main.js +11 -5
- package/apps/cli/dist/output.js +5 -0
- package/apps/cli/dist/playboard.js +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +5 -2
- 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/dist/index.d.ts +3 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +161 -26
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-G5PWGRL5.js → chunk-3GXX5VD5.js} +24 -90
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-UOQRXV3Q.js → chunk-FWAPYRV2.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-DYOJCNWF.js → chunk-IW62UM3C.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +8 -2
- 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/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +12 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +91 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +13 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +40 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +102 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +11 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -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.js +8 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +47 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +79 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +22 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +12 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +4 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +131 -43
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +33 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +171 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +48 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +37 -0
- 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/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/package.json +27 -27
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +14 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.js +0 -16
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import {
|
|
2
|
+
import { posix, win32 } from "node:path";
|
|
3
|
+
/** 按选定平台规范化 Home 字符串;Windows 忽略大小写,其他平台保留大小写,不访问文件系统。 */
|
|
3
4
|
export function normalizedHome(home, platform = process.platform) {
|
|
4
|
-
return platform === "win32" ? win32.resolve(home).toLowerCase() : resolve(home);
|
|
5
|
+
return platform === "win32" ? win32.resolve(home).toLowerCase() : posix.resolve(home);
|
|
5
6
|
}
|
|
6
7
|
export function homeHash(home, platform = process.platform) {
|
|
7
8
|
return createHash("sha256").update(normalizedHome(home, platform)).digest("hex").slice(0, 16);
|
|
8
9
|
}
|
|
10
|
+
/** 按 Home 和组件派生本地 IPC 地址;平台路径差异在内部处理,无需调用方转换路径。 */
|
|
9
11
|
export function componentEndpoint(home, component = "executor-kernel", platform = process.platform) {
|
|
10
12
|
if (!/^[a-z][a-z0-9-]{0,69}$/.test(component))
|
|
11
13
|
throw new Error("COMPONENT_INVALID");
|
|
12
14
|
return platform === "win32"
|
|
13
15
|
? `\\\\.\\pipe\\octo-runtime-${component === "executor-kernel" ? "kernel" : component}-${homeHash(home, platform)}`
|
|
14
|
-
: join(normalizedHome(home), "sockets", `octo-runtime-${component}.sock`);
|
|
16
|
+
: posix.join(normalizedHome(home, platform), "sockets", `octo-runtime-${component}.sock`);
|
|
15
17
|
}
|
|
16
18
|
export function componentServiceId(home, component, platform = process.platform) {
|
|
17
19
|
if (!/^[a-z][a-z0-9-]{0,69}$/.test(component))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-host-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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.
|
|
27
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
28
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
26
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.6",
|
|
27
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.6",
|
|
28
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.6"
|
|
29
29
|
},
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"files": [
|
|
@@ -10,7 +10,7 @@ export interface FailureClassificationContext {
|
|
|
10
10
|
occurredAt?: string;
|
|
11
11
|
/** Only trusted downstream boundaries may retain a previously validated envelope. */
|
|
12
12
|
preserveExisting?: boolean;
|
|
13
|
-
/**
|
|
13
|
+
/** 仅可信调用边界确认未进入执行源后设置;错误字符串不能提供此证据。 */
|
|
14
14
|
invocationNotSubmitted?: boolean;
|
|
15
15
|
}
|
|
16
16
|
interface CatalogEntry {
|
|
@@ -59,6 +59,7 @@ export declare const FAILURE_CATALOG: Readonly<{
|
|
|
59
59
|
"OH-PRV-4007": CatalogEntry;
|
|
60
60
|
"OH-PRV-4008": CatalogEntry;
|
|
61
61
|
"OH-PRV-4009": CatalogEntry;
|
|
62
|
+
"OH-PRV-4010": CatalogEntry;
|
|
62
63
|
"OH-PRV-4099": CatalogEntry;
|
|
63
64
|
"OH-SYS-9001": CatalogEntry;
|
|
64
65
|
}>;
|
|
@@ -37,6 +37,7 @@ export const FAILURE_CATALOG = Object.freeze({
|
|
|
37
37
|
"OH-PRV-4007": entry("provider_client_policy", "当前授权方式不允许此客户端调用。", "error.provider.client_not_allowed", false, "update_credentials"),
|
|
38
38
|
"OH-PRV-4008": entry("provider_configuration", "此 Agent 绑定的 Provider 配置已被删除或不可用。", "error.provider.configuration_missing", false, "change_model"),
|
|
39
39
|
"OH-PRV-4009": entry("provider_message_capacity", "模型服务返回的单条消息超过运行时容量限制,本轮任务已停止。", "error.provider.message_too_large", false, "check_runtime"),
|
|
40
|
+
"OH-PRV-4010": entry("provider_acp", "ACP 模型请求失败。", "error.provider.acp_request_failed", false, "contact_admin"),
|
|
40
41
|
"OH-PRV-4099": entry("provider_unknown", "模型服务调用失败,暂时无法识别具体原因。", "error.provider.unknown", true, "retry"),
|
|
41
42
|
"OH-SYS-9001": entry("system_unknown", "系统发生未知错误。", "error.system.unknown", true, "retry")
|
|
42
43
|
});
|
|
@@ -51,7 +52,11 @@ export function classifyFailure(input, context) {
|
|
|
51
52
|
? "OH-RUN-2011"
|
|
52
53
|
: context.stage === "channel_admission" &&
|
|
53
54
|
context.invocationNotSubmitted === true &&
|
|
54
|
-
|
|
55
|
+
[
|
|
56
|
+
"CLIENT_INVOCATION_ADMISSION_CLOSED",
|
|
57
|
+
"KERNEL_UNAVAILABLE",
|
|
58
|
+
"WORKER_RESTART_EXHAUSTED"
|
|
59
|
+
].includes(evidence.explicitCode ?? "")
|
|
55
60
|
? "OH-RUN-2012"
|
|
56
61
|
: undefined;
|
|
57
62
|
const classification = channelCode
|
|
@@ -307,6 +312,9 @@ function failureEvidence(input) {
|
|
|
307
312
|
function classify(evidence, defaultDomain) {
|
|
308
313
|
const text = evidence.fingerprint;
|
|
309
314
|
const explicit = evidence.explicitCode?.toUpperCase();
|
|
315
|
+
// ACP 已明确声明失败;meta 仅作诊断,不从其中的状态码或文字猜测其他类别。
|
|
316
|
+
if (explicit === "ACP_MODEL_REQUEST_FAILED")
|
|
317
|
+
return result("OH-PRV-4010", explicit);
|
|
310
318
|
for (const [reason, code] of Object.entries({
|
|
311
319
|
UNSUPPORTED_INPUT_MODALITY: "OH-INP-5001",
|
|
312
320
|
IMAGE_RECOVERY_INPUT_REQUIRED: "OH-INP-5001",
|
package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts
CHANGED
|
@@ -571,6 +571,15 @@ export interface KernelStatus {
|
|
|
571
571
|
pid?: number;
|
|
572
572
|
generation: number;
|
|
573
573
|
restart_attempt: number;
|
|
574
|
+
recovery?: {
|
|
575
|
+
trigger: "exit" | "error" | "heartbeat" | "ipc";
|
|
576
|
+
stage: "cleanup" | "manifest" | "starting" | "backoff";
|
|
577
|
+
code: string;
|
|
578
|
+
occurred_at: string;
|
|
579
|
+
retry_at?: string;
|
|
580
|
+
exit_code?: number;
|
|
581
|
+
signal?: string;
|
|
582
|
+
};
|
|
574
583
|
state: "starting" | "ready" | "recovering" | "stopped" | "exhausted";
|
|
575
584
|
};
|
|
576
585
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Provider-neutral Agent runtime for unified execution through provider adapters",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -87,31 +87,31 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"commander": "15.0.0",
|
|
90
|
-
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.
|
|
91
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
92
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
90
|
+
"@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.6",
|
|
91
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.6",
|
|
92
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.6",
|
|
93
93
|
"import-meta-resolve": "4.2.0",
|
|
94
|
-
"@mininglamp-oss/octo-runtime-extra-webui": "1.1.
|
|
95
|
-
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.
|
|
96
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
97
|
-
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.
|
|
98
|
-
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.
|
|
99
|
-
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.
|
|
100
|
-
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.
|
|
101
|
-
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.
|
|
102
|
-
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.
|
|
103
|
-
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.
|
|
104
|
-
"@mininglamp-oss/octo-runtime-executor-core": "1.1.
|
|
105
|
-
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.
|
|
106
|
-
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.
|
|
107
|
-
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.
|
|
94
|
+
"@mininglamp-oss/octo-runtime-extra-webui": "1.1.6",
|
|
95
|
+
"@mininglamp-oss/octo-runtime-adapter-acp": "1.1.6",
|
|
96
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.6",
|
|
97
|
+
"@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.6",
|
|
98
|
+
"@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.6",
|
|
99
|
+
"@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.6",
|
|
100
|
+
"@mininglamp-oss/octo-runtime-adapter-codex": "1.1.6",
|
|
101
|
+
"@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.6",
|
|
102
|
+
"@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.6",
|
|
103
|
+
"@mininglamp-oss/octo-runtime-executor-kernel": "1.1.6",
|
|
104
|
+
"@mininglamp-oss/octo-runtime-executor-core": "1.1.6",
|
|
105
|
+
"@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.6",
|
|
106
|
+
"@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.6",
|
|
107
|
+
"@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.6",
|
|
108
108
|
"ws": "8.22.0",
|
|
109
|
-
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.
|
|
110
|
-
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.
|
|
111
|
-
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.
|
|
112
|
-
"@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.
|
|
113
|
-
"@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.
|
|
114
|
-
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.
|
|
109
|
+
"@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.6",
|
|
110
|
+
"@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.6",
|
|
111
|
+
"@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.6",
|
|
112
|
+
"@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.6",
|
|
113
|
+
"@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.6",
|
|
114
|
+
"@mininglamp-oss/octo-runtime-host-sdk": "1.1.6",
|
|
115
115
|
"mdast-util-from-markdown": "2.1.0",
|
|
116
116
|
"@types/mdast": "4.0.4",
|
|
117
117
|
"@types/unist": "3.0.3",
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"micromark-util-sanitize-uri": "2.0.1",
|
|
148
148
|
"micromark-util-decode-string": "2.0.1",
|
|
149
149
|
"unist-util-stringify-position": "4.0.0",
|
|
150
|
-
"@mininglamp-oss/octo-runtime-cross-service": "1.1.
|
|
151
|
-
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.
|
|
152
|
-
"@mininglamp-oss/octo-runtime-cli": "1.1.
|
|
150
|
+
"@mininglamp-oss/octo-runtime-cross-service": "1.1.6",
|
|
151
|
+
"@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.6",
|
|
152
|
+
"@mininglamp-oss/octo-runtime-cli": "1.1.6",
|
|
153
153
|
"json5": "2.2.3"
|
|
154
154
|
},
|
|
155
155
|
"bundleDependencies": [
|
|
@@ -159,6 +159,20 @@
|
|
|
159
159
|
"type": "integer",
|
|
160
160
|
"minimum": 0
|
|
161
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
|
+
},
|
|
162
176
|
"state": {
|
|
163
177
|
"enum": ["starting", "ready", "recovering", "stopped", "exhausted"]
|
|
164
178
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { isAbsolute } from "node:path";
|
|
2
|
-
// 官方 Client 用 Node 启动 dshBin;execve 保留其拥有的 PID 和 stdio,交给 Electron 解析 asar。
|
|
3
|
-
// 不创建代理进程,也不读取、编码或转发 JSON-RPC。此入口只用于 macOS Desktop。
|
|
4
|
-
const binary = process.env.OCTO_DSH_DESKTOP_BINARY;
|
|
5
|
-
const entry = process.env.OCTO_DSH_DESKTOP_ENTRY;
|
|
6
|
-
if (process.platform !== "darwin" || !binary || !entry || !isAbsolute(binary) || !isAbsolute(entry))
|
|
7
|
-
throw new Error("DSH_CONFIG_INVALID: invalid Desktop launch paths");
|
|
8
|
-
if (!process.execve)
|
|
9
|
-
throw new Error("DSH_START_FAILED: Desktop requires Node execve support");
|
|
10
|
-
const env = { ...process.env };
|
|
11
|
-
delete env.OCTO_DSH_DESKTOP_BINARY;
|
|
12
|
-
delete env.OCTO_DSH_DESKTOP_ENTRY;
|
|
13
|
-
process.execve(binary, [binary, entry, ...process.argv.slice(2)], {
|
|
14
|
-
...env,
|
|
15
|
-
ELECTRON_RUN_AS_NODE: "1"
|
|
16
|
-
});
|