@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.
Files changed (96) hide show
  1. package/apps/cli/dist/adapter-configurations.d.ts +4 -0
  2. package/apps/cli/dist/adapter-configurations.js +102 -0
  3. package/apps/cli/dist/build-info.json +2 -2
  4. package/apps/cli/dist/command-tree.js +1 -1
  5. package/apps/cli/dist/logs.js +8 -4
  6. package/apps/cli/dist/main.js +11 -5
  7. package/apps/cli/dist/output.js +5 -0
  8. package/apps/cli/dist/playboard.js +3 -2
  9. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +5 -2
  10. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +3 -4
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +161 -26
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +3 -1
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-G5PWGRL5.js → chunk-3GXX5VD5.js} +24 -90
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-UOQRXV3Q.js → chunk-FWAPYRV2.js} +1 -1
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-DYOJCNWF.js → chunk-IW62UM3C.js} +1 -1
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +1 -1
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +3 -3
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +1 -1
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +8 -2
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +1 -1
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +8 -4
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +12 -0
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +91 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +2 -2
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +13 -1
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +9 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +40 -0
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +3 -2
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +4 -0
  49. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +102 -0
  50. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  51. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +1 -1
  52. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +8 -4
  53. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +11 -5
  54. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +5 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +3 -2
  56. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
  57. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  58. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +8 -3
  59. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +47 -4
  60. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  61. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
  62. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +4 -1
  63. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +7 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +79 -5
  65. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +3 -1
  66. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +22 -6
  67. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +2 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +5 -3
  69. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +12 -6
  70. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +4 -2
  71. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +131 -43
  72. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  73. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +2 -2
  74. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +33 -17
  75. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +3 -0
  76. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +29 -0
  77. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +171 -0
  78. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +4 -1
  79. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +48 -6
  80. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +2 -0
  81. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +1 -1
  82. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +37 -0
  83. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  84. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  85. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  86. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +2 -0
  87. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +5 -3
  88. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  89. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -1
  90. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +9 -1
  91. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +9 -0
  92. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  93. package/package.json +27 -27
  94. package/packages/octo-runtime-protocol/schema/protocol.schema.json +14 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.d.ts +0 -1
  96. 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 { join, resolve, win32 } from "node:path";
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.5",
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.5",
27
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.5",
28
- "@mininglamp-oss/octo-runtime-protocol": "1.1.5"
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
- /** 仅可信调用边界在确认 Kernel 本地写出前拒绝后设置;错误字符串不能提供此证据。 */
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
- evidence.explicitCode === "CLIENT_INVOCATION_ADMISSION_CLOSED"
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",
@@ -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
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-protocol",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
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.5",
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.5",
91
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.5",
92
- "@mininglamp-oss/octo-runtime-protocol": "1.1.5",
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.5",
95
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.5",
96
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.5",
97
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.5",
98
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.5",
99
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.5",
100
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.5",
101
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.5",
102
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.5",
103
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.5",
104
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.5",
105
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.5",
106
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.5",
107
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.5",
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.5",
110
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.5",
111
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.5",
112
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.5",
113
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.5",
114
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.5",
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.5",
151
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.5",
152
- "@mininglamp-oss/octo-runtime-cli": "1.1.5",
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,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
- });