@mininglamp-oss/octo-runtime 1.1.7 → 1.1.8

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 (58) hide show
  1. package/apps/cli/dist/build-info.json +2 -2
  2. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  3. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  4. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  5. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  6. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  7. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  8. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  9. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  10. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +1 -1
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +1 -1
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.d.ts +2 -0
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +22 -0
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +20 -0
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +14 -1
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  25. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  26. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
  27. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  28. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  29. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  30. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +21 -33
  31. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +3 -4
  32. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +4 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +29 -6
  34. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +1 -1
  35. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +2 -2
  36. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +6 -0
  37. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +10 -0
  38. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +3 -2
  39. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +54 -10
  40. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +4 -2
  41. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +73 -109
  42. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +3 -5
  43. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +27 -40
  44. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +42 -7
  45. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +1 -12
  46. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +6 -126
  47. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  48. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  49. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-CXTvRGim.js → index-B127MhT-.js} +10 -9
  50. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  51. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  52. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  53. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  54. package/package.json +27 -27
  55. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.d.ts +0 -19
  56. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.js +0 -86
  57. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.d.ts +0 -5
  58. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.js +0 -35
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "ed7a4c899e5666238bc67e6a8418e3805ac924da",
2
+ "commit": "d0e34377a62fde503529cb3d2464a7575a5abdb0",
3
3
  "dirty": false,
4
- "buildTime": "2026-10-30T03:47:52.513Z"
4
+ "buildTime": "2026-10-31T05:37:41.031Z"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-acp-client",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
13
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
13
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
14
14
  }
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-acp",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,8 +9,8 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
13
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.7",
14
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
13
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
14
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-antigravity",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "README.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
14
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
13
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
14
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
15
15
  }
16
16
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-claude-code",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-codebuddy",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.7",
10
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
10
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
11
11
  },
12
12
  "types": "./dist/index.d.ts",
13
13
  "files": [
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-codex",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-dsh",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "semver": "7.8.5",
13
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
14
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
13
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
14
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-grok-build",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,9 +9,9 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.7",
13
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7",
14
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
15
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
13
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8",
14
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
15
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
16
16
  }
17
17
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-hermes",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,6 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-kimi-code",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,6 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-mcode",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,6 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8"
13
13
  }
14
14
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-openclaw",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
10
10
  "ws": "8.22.0"
11
11
  },
12
12
  "types": "./dist/index.d.ts",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-opencode",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7",
10
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8",
10
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
11
11
  },
12
12
  "types": "./dist/index.d.ts",
13
13
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-qodercli",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,6 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-qoderclicn",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -9,6 +9,6 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.7"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.8"
13
13
  }
14
14
  }
@@ -16,7 +16,7 @@ export { readBoundedLines } from "./bounded-lines.js";
16
16
  export { HourlyLogWriter, HOURLY_LOG_MAX_BYTES } from "./hourly-log.js";
17
17
  export { RuntimeLogging, assertRuntimeLogging, noopRuntimeLog, type RuntimeLog, type RuntimeLogLevel, type RuntimeLoggingOptions } from "./runtime-log.js";
18
18
  export { extraStatusRecord, kernelStatusRecord, type ExtraStatusRecord, type KernelStatusRecord } from "./service-status.js";
19
- export { sanitizePublicValue } from "./public-display.js";
19
+ export { sanitizePublicValue, sanitizeDiagnosticBody } from "./public-display.js";
20
20
  export { DEFAULT_REASONING_LEVEL_MAPS, OMNI_REASONING_LEVELS, mapReasoningEffort, reasoningLevelMap, type OmniReasoningLevel, type ReasoningLevelMap } from "./reasoning.js";
21
21
  /** Adapter 的编写输入;defineAdapter 在省略协议声明时补 canonical-only 默认值。 */
22
22
  export interface AdapterMetadata {
@@ -23,7 +23,7 @@ export { readBoundedLines } from "./bounded-lines.js";
23
23
  export { HourlyLogWriter, HOURLY_LOG_MAX_BYTES } from "./hourly-log.js";
24
24
  export { RuntimeLogging, assertRuntimeLogging, noopRuntimeLog } from "./runtime-log.js";
25
25
  export { extraStatusRecord, kernelStatusRecord } from "./service-status.js";
26
- export { sanitizePublicValue } from "./public-display.js";
26
+ export { sanitizePublicValue, sanitizeDiagnosticBody } from "./public-display.js";
27
27
  export { DEFAULT_REASONING_LEVEL_MAPS, OMNI_REASONING_LEVELS, mapReasoningEffort, reasoningLevelMap } from "./reasoning.js";
28
28
  /**
29
29
  * 接收编写输入并返回可注册的 Adapter,省略协议时仅补 canonical-only 声明。
@@ -1 +1,3 @@
1
1
  export declare function sanitizePublicValue(value: unknown, key?: string, depth?: number): unknown;
2
+ /** Response summaries parse JSON before redaction; truncated credentials must also stay private. */
3
+ export declare function sanitizeDiagnosticBody(body: string): string;
@@ -17,6 +17,28 @@ export function sanitizePublicValue(value, key = "", depth = 0) {
17
17
  sanitizePublicValue(childValue, childKey, depth + 1)
18
18
  ]));
19
19
  }
20
+ /** Response summaries parse JSON before redaction; truncated credentials must also stay private. */
21
+ export function sanitizeDiagnosticBody(body) {
22
+ let safe;
23
+ try {
24
+ safe = JSON.stringify(sanitizePublicValue(JSON.parse(body)));
25
+ }
26
+ catch {
27
+ safe = String(sanitizePublicValue(body));
28
+ }
29
+ if (/\\u[0-9a-f]{0,4}/i.test(safe))
30
+ safe = "[REDACTED]";
31
+ // Headers can occur inside a JSON message too. Drop the entire suffix at the first
32
+ // sensitive key instead of guessing where a spaced or truncated credential ends.
33
+ const keys = /["']?([\w-]+)[\\"']*\s*[:=]/g;
34
+ for (const match of safe.matchAll(keys)) {
35
+ if (SENSITIVE_OUTPUT_KEY.test(match[1])) {
36
+ safe = `${safe.slice(0, match.index)}[REDACTED]`;
37
+ break;
38
+ }
39
+ }
40
+ return Array.from(safe).slice(0, 200).join("");
41
+ }
20
42
  function redactCredentialText(value) {
21
43
  // 单向扫描 PEM,避免多个未闭合 BEGIN 反复扫描后缀;截断的私钥同样不能公开。
22
44
  const begin = /-----BEGIN [^-]*PRIVATE KEY-----/gi;
@@ -2,6 +2,7 @@
2
2
  import { isAbsolute } from "node:path";
3
3
  import { Worker } from "node:worker_threads";
4
4
  import { extraStatusRecord, kernelStatusRecord } from "./service-status.js";
5
+ import { sanitizeDiagnosticBody } from "./public-display.js";
5
6
  export const noopRuntimeLog = () => { };
6
7
  const strings = new Set([
7
8
  "run_id",
@@ -168,6 +169,25 @@ export class RuntimeLogging {
168
169
  Number.isFinite(Date.parse(occurredAt)) &&
169
170
  new Date(occurredAt).toISOString() === occurredAt)
170
171
  safe.occurred_at = occurredAt;
172
+ // 仅放行 Gateway 卡片投递诊断;响应摘要不进入状态镜像,且不得携带请求或鉴权信息。
173
+ if (source === "extra" &&
174
+ extra === "channel-gateway" &&
175
+ event === "channel.diagnostic" &&
176
+ typeof safe.code === "string" &&
177
+ /^IM_CARD_(?:SEND|EDIT)_\d{3}$/.test(safe.code)) {
178
+ const path = data?.path;
179
+ if (path === "/v1/bot/sendMessage" || path === "/v1/bot/message/edit")
180
+ safe.path = path;
181
+ const status = data?.http_status;
182
+ if (typeof status === "number" &&
183
+ Number.isInteger(status) &&
184
+ status >= 100 &&
185
+ status <= 599)
186
+ safe.http_status = status;
187
+ const body = data?.response_body;
188
+ if (typeof body === "string")
189
+ safe.response_body = sanitizeDiagnosticBody(body);
190
+ }
171
191
  const record = {
172
192
  time: new Date().toISOString(),
173
193
  level,
@@ -80,7 +80,14 @@ export function extraStatusRecord(extra, level, event, data, time = new Date().t
80
80
  if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(time) ||
81
81
  !Number.isFinite(Date.parse(time)))
82
82
  return;
83
- if (event === "channel.diagnostic" && data?.code !== "IM_DISPOSE_FAILED")
83
+ // Gateway 投递失败须能由 channel-gateway logs 查询;不放开执行正文或其他诊断。
84
+ const deliveryDiagnostic = extra === "channel-gateway" &&
85
+ event === "channel.diagnostic" &&
86
+ typeof data?.code === "string" &&
87
+ (/^(?:IM_DELIVERY_|IM_CARD_|IM_HTTP_)[A-Z0-9_]+$/.test(data.code) ||
88
+ data.code === "IM_CREDENTIALS_REQUIRED" ||
89
+ data.code === "IM_BOT_TOKEN_INVALID");
90
+ if (event === "channel.diagnostic" && data?.code !== "IM_DISPOSE_FAILED" && !deliveryDiagnostic)
84
91
  return;
85
92
  const safe = {};
86
93
  for (const key of ["state", "code", "endpoint_id"]) {
@@ -99,6 +106,12 @@ export function extraStatusRecord(extra, level, event, data, time = new Date().t
99
106
  if (typeof value === "number" && Number.isSafeInteger(value) && value >= 0)
100
107
  safe[key] = value;
101
108
  }
109
+ const runId = data?.run_id;
110
+ if (deliveryDiagnostic &&
111
+ typeof runId === "string" &&
112
+ /^[A-Za-z0-9][A-Za-z0-9_.:@+-]{0,127}$/.test(runId) &&
113
+ !/^(?:bf_|sk-|Bearer)/i.test(runId))
114
+ safe.run_id = runId;
102
115
  return Object.freeze({
103
116
  time,
104
117
  level,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -10,7 +10,7 @@
10
10
  "./module-manifest": "./dist/module-manifest.js"
11
11
  },
12
12
  "dependencies": {
13
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
13
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
14
14
  "import-meta-resolve": "4.2.0"
15
15
  },
16
16
  "types": "./dist/index.d.ts",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-zcode-gui",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "ed7a4c899e5666238bc67e6a8418e3805ac924da",
2
+ "commit": "d0e34377a62fde503529cb3d2464a7575a5abdb0",
3
3
  "dirty": false,
4
- "buildTime": "2026-10-30T03:47:52.513Z"
4
+ "buildTime": "2026-10-31T05:37:41.031Z"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-cli",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,29 +9,29 @@
9
9
  "types": "./dist/index.d.ts",
10
10
  "dependencies": {
11
11
  "commander": "15.0.0",
12
- "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.7",
13
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
12
+ "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.8",
13
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
14
14
  "json5": "2.2.3",
15
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.7",
16
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.7",
17
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.7",
18
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.7",
19
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
20
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.7",
21
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.7",
22
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.7",
23
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.7",
24
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.7",
25
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.7",
26
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.7",
27
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.7",
28
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.7",
29
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.7",
30
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.7",
31
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.7",
32
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.7",
33
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.7",
34
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.7",
35
- "@mininglamp-oss/octo-runtime-extra-webui": "1.1.7"
15
+ "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.8",
16
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.8",
17
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.8",
18
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.8",
19
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
20
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.8",
21
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.8",
22
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.8",
23
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.8",
24
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.8",
25
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.8",
26
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.8",
27
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.8",
28
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.8",
29
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.8",
30
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.8",
31
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.8",
32
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.8",
33
+ "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.8",
34
+ "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.8",
35
+ "@mininglamp-oss/octo-runtime-extra-webui": "1.1.8"
36
36
  }
37
37
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-cross-service",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "description": "Native user-service lifecycle backends for Octo Runtime",
6
6
  "type": "module",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-executor-core",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
7
7
  "dependencies": {
8
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7",
9
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7"
8
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
9
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-executor-kernel",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,9 +18,9 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.7",
22
- "@mininglamp-oss/octo-runtime-protocol": "1.1.7",
23
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.7"
21
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.8",
22
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.8",
23
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
24
24
  },
25
25
  "types": "./dist/index.d.ts",
26
26
  "files": [