@mininglamp-oss/octo-runtime 1.1.2 → 1.1.3

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 (35) 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-grok-build/package.json +5 -5
  9. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  10. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  18. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  19. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -23
  20. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  21. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  22. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +31 -8
  23. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  24. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +1 -1
  25. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +1 -0
  26. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +5 -4
  27. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +1 -1
  28. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +4 -2
  29. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  30. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  31. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  32. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  33. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  34. package/package.json +26 -26
  35. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "5c1921dced4b0852e41426f1c04582159082f482",
2
+ "commit": "fe19d350431534da4ed3a76f3466add4ced86d81",
3
3
  "dirty": false,
4
- "buildTime": "2026-10-22T12:44:46.791Z"
4
+ "buildTime": "2026-10-22T15:06:34.025Z"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-acp-client",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
13
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
13
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
14
14
  }
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-acp",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
13
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.2",
14
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
12
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
13
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.3",
14
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-antigravity",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
14
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
13
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
14
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
15
15
  }
16
16
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-claude-code",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
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.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.2",
10
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.3",
10
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
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.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
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-grok-build",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
13
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.2",
14
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
15
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
12
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.3",
13
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3",
14
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
15
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
16
16
  }
17
17
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-hermes",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-kimi-code",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-mcode",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3"
13
13
  }
14
14
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-openclaw",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
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.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.2",
10
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3",
10
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
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.2",
3
+ "version": "1.1.3",
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.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-qoderclicn",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2"
12
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3"
13
13
  }
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,7 +9,7 @@
9
9
  "./module-manifest": "./dist/module-manifest.js"
10
10
  },
11
11
  "dependencies": {
12
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2",
12
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
13
13
  "import-meta-resolve": "4.2.0"
14
14
  },
15
15
  "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.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "5c1921dced4b0852e41426f1c04582159082f482",
2
+ "commit": "fe19d350431534da4ed3a76f3466add4ced86d81",
3
3
  "dirty": false,
4
- "buildTime": "2026-10-22T12:44:46.791Z"
4
+ "buildTime": "2026-10-22T15:06:34.025Z"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,28 +8,28 @@
8
8
  },
9
9
  "types": "./dist/index.d.ts",
10
10
  "dependencies": {
11
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
11
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
12
12
  "json5": "2.2.3",
13
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.2",
14
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.2",
15
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.2",
16
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.2",
17
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2",
18
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.2",
19
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.2",
20
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.2",
21
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.2",
22
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.2",
23
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.2",
24
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.2",
25
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.2",
26
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.2",
27
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.2",
28
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.2",
29
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.2",
30
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.2",
31
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.2",
32
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.2",
33
- "@mininglamp-oss/octo-runtime-extra-webui": "1.1.2"
13
+ "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.3",
14
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.3",
15
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.3",
16
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.3",
17
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
18
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.3",
19
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.3",
20
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.3",
21
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.3",
22
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.3",
23
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.3",
24
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.3",
25
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.3",
26
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.3",
27
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.3",
28
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.3",
29
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.3",
30
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.3",
31
+ "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.3",
32
+ "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.3",
33
+ "@mininglamp-oss/octo-runtime-extra-webui": "1.1.3"
34
34
  }
35
35
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-cross-service",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
3
+ "version": "1.1.3",
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.2",
9
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
8
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
9
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
10
10
  },
11
11
  "types": "./dist/index.d.ts",
12
12
  "files": [
@@ -28,10 +28,15 @@ export class InvocationManifest {
28
28
  this.#worker = undefined;
29
29
  }
30
30
  else {
31
- const started = await processStartIdentity(pid);
32
- if (!started)
33
- throw new Error(`cannot identify worker process ${pid}`);
34
- this.#worker = { pid, started, entrypoint };
31
+ try {
32
+ const started = await queryProcessStartIdentity(pid);
33
+ if (!started)
34
+ throw new Error("system process start identity unavailable");
35
+ this.#worker = { pid, started, entrypoint };
36
+ }
37
+ catch (cause) {
38
+ throw new Error(`cannot identify worker process ${pid}`, { cause });
39
+ }
35
40
  }
36
41
  await this.#persist();
37
42
  }
@@ -112,6 +117,15 @@ export async function reapOrphanedInvocationManifest(path) {
112
117
  }
113
118
  /** 查询系统启动时间以区分 PID 复用;失败时不返回可用于回收的身份,绝不以 PID 本身兜底。 */
114
119
  export async function processStartIdentity(pid) {
120
+ try {
121
+ return await queryProcessStartIdentity(pid);
122
+ }
123
+ catch {
124
+ return undefined;
125
+ }
126
+ }
127
+ // 登记失败保留系统查询原因;公开探测与孤儿回收仍以 undefined 表示身份未知。
128
+ async function queryProcessStartIdentity(pid) {
115
129
  if (!Number.isSafeInteger(pid) || pid < 1)
116
130
  return undefined;
117
131
  if (process.platform === "linux") {
@@ -136,18 +150,27 @@ export async function processStartIdentity(pid) {
136
150
  });
137
151
  }
138
152
  if (process.platform === "win32") {
139
- return new Promise((resolve) => {
153
+ return new Promise((resolve, reject) => {
140
154
  execFile("powershell.exe", [
141
155
  "-NoLogo",
142
156
  "-NoProfile",
143
157
  "-NonInteractive",
144
158
  "-Command",
145
159
  // 直接调用系统进程对象,避免 Get-Process 的命令发现/模块自动加载占用身份查询预算。
146
- // 保持 UTC ticks 身份格式;不增加超时,也不缓存可能已经复用的 PID。
160
+ // 保持 UTC ticks 身份格式,不缓存可能已经复用的 PID。
147
161
  `$PSModuleAutoLoadingPreference='None'; $target=[System.Diagnostics.Process]::GetProcessById(${pid}); try { [Console]::Out.Write($target.StartTime.ToUniversalTime().Ticks.ToString([Globalization.CultureInfo]::InvariantCulture)) } finally { $target.Dispose() }`
148
- ], { encoding: "utf8", timeout: 10_000, windowsHide: true }, (error, stdout) => {
162
+ ],
163
+ // 冷启动 PowerShell/.NET 也占用查询期限;10 秒已在独立 Windows CI 中反复超时。
164
+ // 身份登记独立于后续 RPC 就绪与关闭预算,失败仍禁止使用未知 PID。
165
+ { encoding: "utf8", timeout: 30_000, windowsHide: true }, (error, stdout) => {
166
+ if (error) {
167
+ reject(error instanceof Error
168
+ ? error
169
+ : new Error("Windows process identity query failed", { cause: error }));
170
+ return;
171
+ }
149
172
  const value = stdout.trim();
150
- resolve(error || !/^\d+$/.test(value) ? undefined : `windows:${value}`);
173
+ resolve(!/^\d+$/.test(value) ? undefined : `windows:${value}`);
151
174
  });
152
175
  });
153
176
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-executor-kernel",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
22
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2",
23
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2"
21
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.3",
22
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
23
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3"
24
24
  },
25
25
  "types": "./dist/index.d.ts",
26
26
  "files": [
@@ -210,7 +210,7 @@
210
210
  },
211
211
  "allowed_sender_ids": {
212
212
  "type": "array",
213
- "description": "可选。允许触发本 Bot 的真实 Octo 发送者 ID 白名单;省略时仅允许服务端注册返回的 owner,显式名单替代默认 owner 名单,空数组拒绝所有发送者。不能使用展示名称代替身份;群/话题仍须满足真实 mention 和平台范围准入。",
213
+ "description": "可选。允许触发本 Bot 的真实 Octo 发送者 ID 白名单;省略时 DM 沿用平台好友准入,群/话题不增加发送者限制。显式非空名单仅允许列出的发送者,owner 不隐式补入,空数组拒绝全部,null 非法。自消息始终拒绝;群/话题仍须满足真实 mention、Space、启停与父群范围准入。",
214
214
  "items": {
215
215
  "type": "string",
216
216
  "minLength": 1,
@@ -35,6 +35,7 @@ export interface ImCommonConfig {
35
35
  initial_delay_ms?: number;
36
36
  max_delay_ms?: number;
37
37
  };
38
+ /** 省略沿用平台消息准入;显式名单限制所有频道,空数组拒绝全部发送者。 */
38
39
  allowed_sender_ids?: string[];
39
40
  }
40
41
  export interface OctoBotConfig extends ImCommonConfig {
@@ -94,7 +94,7 @@ export class GatewayTransport {
94
94
  this.callbacks.onRulesChanged?.(change);
95
95
  return;
96
96
  }
97
- if (!acceptsImMessage(this.scopedConfig, registration.owner_uid, message))
97
+ if (!acceptsImMessage(this.scopedConfig, message))
98
98
  return;
99
99
  let finalReply;
100
100
  let historyTurn;
@@ -248,7 +248,7 @@ export class GatewayTransport {
248
248
  this.#bindings.delete(idle[0]);
249
249
  }
250
250
  if (!this.#polling)
251
- this.#polling = this.#pollActions(token, registration.owner_uid, signal);
251
+ this.#polling = this.#pollActions(token, signal);
252
252
  return {
253
253
  interaction: async (request) => {
254
254
  const document = interactionCard(request);
@@ -351,7 +351,7 @@ export class GatewayTransport {
351
351
  throw new ImConnectionError("IM_DISCONNECTED", true);
352
352
  this.#connected = true;
353
353
  }
354
- async #pollActions(token, owner, signal) {
354
+ async #pollActions(token, signal) {
355
355
  if (this.config.cards === false)
356
356
  return;
357
357
  let cursor = 0, failures = 0;
@@ -379,7 +379,8 @@ export class GatewayTransport {
379
379
  continue;
380
380
  }
381
381
  if (action.spaceId !== this.#spaceId ||
382
- !(this.config.allowed_sender_ids ?? [owner]).includes(action.operatorUid)) {
382
+ (this.config.allowed_sender_ids &&
383
+ !this.config.allowed_sender_ids.includes(action.operatorUid))) {
383
384
  cursor = event.event_id;
384
385
  continue;
385
386
  }
@@ -9,7 +9,7 @@ export declare function groupScope(channelId: string): {
9
9
  shortId?: string;
10
10
  };
11
11
  export declare function observesImScope(config: ScopedOctoBotConfig, channelId: string, channelType: number, spaceId?: unknown): boolean;
12
- export declare function acceptsImMessage(config: ScopedOctoBotConfig, owner: string, message: ImMessage): boolean;
12
+ export declare function acceptsImMessage(config: ScopedOctoBotConfig, message: ImMessage): boolean;
13
13
  export declare function isRulesNotification(message: ImMessage): boolean;
14
14
  /** 事件只使规则缓存失效,内容及版本仍由授权 API 核验,不产生执行授权。 */
15
15
  export declare function rulesChange(message: ImMessage): {
@@ -14,9 +14,10 @@ export function observesImScope(config, channelId, channelType, spaceId) {
14
14
  config.group_ids.length === 0 ||
15
15
  config.group_ids.includes(groupScope(channelId).groupNo)));
16
16
  }
17
- export function acceptsImMessage(config, owner, message) {
17
+ export function acceptsImMessage(config, message) {
18
18
  // 自己发出的消息永不触发 AgentRun,即使真实 @ 自己、@所有AI 或显式列入发送者名单。
19
19
  if (message.fromUid === config.bot_id ||
20
+ !message.fromUid ||
20
21
  isRulesNotification(message) ||
21
22
  !message.messageId ||
22
23
  !message.channelId ||
@@ -24,7 +25,8 @@ export function acceptsImMessage(config, owner, message) {
24
25
  (message.payload.type === 1 && typeof message.payload.content !== "string") ||
25
26
  (message.payload.space_id && message.payload.space_id !== config.spaceId))
26
27
  return false;
27
- if (!(config.allowed_sender_ids ?? [owner]).includes(message.fromUid))
28
+ // 省略时沿用平台准入:DM 好友权限由平台负责,群/话题不增加发送者限制。
29
+ if (config.allowed_sender_ids && !config.allowed_sender_ids.includes(message.fromUid))
28
30
  return false;
29
31
  const contentSupported = () => ![11, 14].includes(message.payload.type) || Boolean(messageContent(message.payload));
30
32
  if (message.channelType === 1)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-extra-channel-gateway",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,11 +18,11 @@
18
18
  "docs"
19
19
  ],
20
20
  "dependencies": {
21
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.2",
22
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
23
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.2",
24
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.2",
25
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2",
21
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.3",
22
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
23
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.3",
24
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.3",
25
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
26
26
  "mdast-util-from-markdown": "2.1.0",
27
27
  "ws": "8.22.0"
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-extra-channel-wecom",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,10 +18,10 @@
18
18
  "docs"
19
19
  ],
20
20
  "dependencies": {
21
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.2",
22
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.2",
23
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.2",
21
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.3",
22
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.3",
23
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.3",
24
24
  "ws": "8.22.0",
25
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
25
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-extra-webui",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "description": "Local Runtime workbench with canonical SSE presentation",
@@ -19,6 +19,6 @@
19
19
  "porting-map.md"
20
20
  ],
21
21
  "dependencies": {
22
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
22
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
23
23
  }
24
24
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-host-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,9 +19,9 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
23
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.2",
24
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2"
22
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
23
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.3",
24
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3"
25
25
  },
26
26
  "types": "./dist/index.d.ts",
27
27
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-protocol",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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.2",
3
+ "version": "1.1.3",
4
4
  "description": "Provider-neutral Agent runtime for unified execution through provider adapters",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,30 +70,30 @@
70
70
  "access": "public"
71
71
  },
72
72
  "dependencies": {
73
- "@mininglamp-oss/octo-runtime-extra-webui": "1.1.2",
74
- "@mininglamp-oss/octo-runtime-protocol": "1.1.2",
75
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.2",
76
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.2",
77
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.2",
73
+ "@mininglamp-oss/octo-runtime-extra-webui": "1.1.3",
74
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.3",
75
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.3",
76
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.3",
77
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.3",
78
78
  "import-meta-resolve": "4.2.0",
79
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.2",
80
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.2",
81
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.2",
82
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.2",
83
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.2",
84
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.2",
85
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.2",
86
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.2",
87
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.2",
88
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.2",
89
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.2",
79
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.3",
80
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.3",
81
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.3",
82
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.3",
83
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.3",
84
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.3",
85
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.3",
86
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.3",
87
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.3",
88
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.3",
89
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.3",
90
90
  "ws": "8.22.0",
91
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.2",
92
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.2",
93
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.2",
94
- "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.2",
95
- "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.2",
96
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.2",
91
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.3",
92
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.3",
93
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.3",
94
+ "@mininglamp-oss/octo-runtime-adapter-zcode-gui": "1.1.3",
95
+ "@mininglamp-oss/octo-runtime-extra-channel-gateway": "1.1.3",
96
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.3",
97
97
  "mdast-util-from-markdown": "2.1.0",
98
98
  "@types/mdast": "4.0.4",
99
99
  "@types/unist": "3.0.3",
@@ -129,9 +129,9 @@
129
129
  "micromark-util-sanitize-uri": "2.0.1",
130
130
  "micromark-util-decode-string": "2.0.1",
131
131
  "unist-util-stringify-position": "4.0.0",
132
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.2",
133
- "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.2",
134
- "@mininglamp-oss/octo-runtime-cli": "1.1.2",
132
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.3",
133
+ "@mininglamp-oss/octo-runtime-extra-channel-wecom": "1.1.3",
134
+ "@mininglamp-oss/octo-runtime-cli": "1.1.3",
135
135
  "json5": "2.2.3"
136
136
  },
137
137
  "bundleDependencies": [
@@ -210,7 +210,7 @@
210
210
  },
211
211
  "allowed_sender_ids": {
212
212
  "type": "array",
213
- "description": "可选。允许触发本 Bot 的真实 Octo 发送者 ID 白名单;省略时仅允许服务端注册返回的 owner,显式名单替代默认 owner 名单,空数组拒绝所有发送者。不能使用展示名称代替身份;群/话题仍须满足真实 mention 和平台范围准入。",
213
+ "description": "可选。允许触发本 Bot 的真实 Octo 发送者 ID 白名单;省略时 DM 沿用平台好友准入,群/话题不增加发送者限制。显式非空名单仅允许列出的发送者,owner 不隐式补入,空数组拒绝全部,null 非法。自消息始终拒绝;群/话题仍须满足真实 mention、Space、启停与父群范围准入。",
214
214
  "items": {
215
215
  "type": "string",
216
216
  "minLength": 1,