@mininglamp-oss/octo-runtime 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +1 -1
  2. package/apps/cli/README.md +3 -1
  3. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.d.ts → apps/cli/dist/adapter-configuration.d.ts} +1 -0
  4. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.js → apps/cli/dist/adapter-configuration.js} +1 -0
  5. package/apps/cli/dist/adapter-configurations.d.ts +1 -1
  6. package/apps/cli/dist/adapter-configurations.js +1 -1
  7. package/apps/cli/dist/adapters.d.ts +7 -0
  8. package/apps/cli/dist/adapters.js +51 -0
  9. package/apps/cli/dist/build-info.json +2 -2
  10. package/apps/cli/dist/command-tree.js +3 -1
  11. package/apps/cli/dist/help.js +1 -1
  12. package/apps/cli/dist/index.js +4 -0
  13. package/apps/cli/dist/main.d.ts +2 -0
  14. package/apps/cli/dist/main.js +10 -12
  15. package/apps/cli/dist/manifest.json +0 -5
  16. package/apps/cli/dist/output.js +7 -9
  17. package/apps/cli/dist/playboard-interrupt.d.ts +6 -0
  18. package/apps/cli/dist/playboard-interrupt.js +86 -0
  19. package/apps/cli/dist/playboard.d.ts +2 -0
  20. package/apps/cli/dist/playboard.js +20 -12
  21. package/dist/public/executor-kernel.d.ts +2 -3
  22. package/dist/public/executor-kernel.js +1 -2
  23. package/dist/public/protocol.d.ts +1 -1
  24. package/dist/public/protocol.js +1 -1
  25. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +1 -0
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +200 -106
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/async-questions.d.ts +27 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/async-questions.js +205 -0
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +30 -0
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +223 -0
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-V5W6ZTYC.js → chunk-FGFEM7JP.js} +1 -1
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-CFKMMCO6.js → chunk-R3PDZLX5.js} +3 -3
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-LO34KB7D.js → chunk-TSRZVLIG.js} +1 -1
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +5 -5
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.d.ts +3 -0
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.js +57 -13
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +3 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +4 -2
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +2 -0
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +1 -2
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +1 -1
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +12 -30
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  63. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.d.ts +3 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.js +125 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +1 -1
  66. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +1 -1
  67. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +7 -0
  68. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +51 -0
  69. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  70. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +3 -1
  71. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +1 -1
  72. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +4 -0
  73. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
  74. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +10 -12
  75. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -5
  76. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +7 -9
  77. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.d.ts +6 -0
  78. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.js +86 -0
  79. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +2 -0
  80. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +20 -12
  81. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -24
  82. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.d.ts +2 -2
  83. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.js +12 -11
  84. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  85. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/experience.js +2 -1
  86. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +8 -7
  87. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +33 -11
  88. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +9 -2
  89. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +6 -3
  90. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  91. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.d.ts +30 -0
  92. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +199 -0
  93. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +2 -0
  94. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.d.ts +17 -0
  96. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.js +21 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +9 -9
  98. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +3 -3
  99. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +2 -6
  100. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +3 -6
  101. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +14 -13
  102. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +84 -187
  103. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -8
  104. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +77 -53
  105. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -1
  106. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +15 -3
  107. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -12
  108. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +6 -2
  109. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +2 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +14 -0
  111. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +4 -0
  112. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +2 -1
  113. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +9 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +71 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  116. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +14 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  118. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-B127MhT-.js → index-BLMf2Etg.js} +2 -4
  119. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  120. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  121. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +1 -1
  122. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  123. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +2 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +4 -1
  127. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +3 -0
  128. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +63 -12
  129. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +110 -20
  130. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +7 -4
  131. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +28 -6
  132. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +2 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.d.ts +9 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.js +84 -0
  135. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +1 -1
  136. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +11 -5
  137. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  138. package/package.json +26 -28
  139. package/packages/octo-runtime-protocol/schema/protocol.schema.json +157 -41
  140. package/apps/cli/dist/worker.d.ts +0 -1
  141. package/apps/cli/dist/worker.js +0 -18
  142. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +0 -63
  143. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +0 -846
  144. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +0 -54
  145. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +0 -154
  146. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +0 -15
  147. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.d.ts +0 -1
  148. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.js +0 -18
  149. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.d.ts +0 -16
  150. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.js +0 -59
  151. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.d.ts +0 -6
  152. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.js +0 -88
  153. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.d.ts +0 -1
  154. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.js +0 -2
  155. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +0 -42
  156. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +0 -292
  157. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +0 -62
  158. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +0 -661
  159. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.d.ts +0 -2
  160. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.js +0 -5
  161. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.d.ts +0 -10
  162. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +0 -96
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +0 -15
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +0 -279
package/README.md CHANGED
@@ -15,7 +15,7 @@ Octo Runtime runs Agent tasks through Provider adapters, so applications can use
15
15
  - **WeCom** connects WeCom Bots to the same execution service.
16
16
  - **WebUI** provides a local browser workspace for conversations and projects.
17
17
 
18
- Adapters ship for Codex, Claude Code, CodeBuddy, OpenCode, DeepSeek Harness, OpenClaw, Grok Build, Antigravity, ZCode, Hermes, Kimi Code, MCode, and both Qoder CLIs; see [Packages and layers](https://github.com/Mininglamp-OSS/octo-runtime/blob/main/packages/README.md).
18
+ Adapters ship for Codex, Claude Code, CodeBuddy, OpenCode, DeepSeek Harness, OpenClaw, Grok Build, Antigravity, Hermes, Kimi Code, MCode, and both Qoder CLIs; see [Packages and layers](https://github.com/Mininglamp-OSS/octo-runtime/blob/main/packages/README.md).
19
19
 
20
20
  The Kernel and each Extra run as independent services. They can start in either order, and stopping one Extra leaves the others running. Your application owns its business data, credentials and conversation history.
21
21
 
@@ -103,7 +103,9 @@ octo-runtime playboard <<'JSON'
103
103
  JSON
104
104
  ```
105
105
 
106
- 需要已安装并认证的真实 Provider。输出为 NDJSON,执行诊断写 stderr;待交互请求按开发入口合同明确失败。Provider、模型、权限等通过 Context 的既有执行项设置。
106
+ 需要已安装并认证的真实 Provider。输出为 NDJSON,执行诊断写 stderr。Playboard 未显式提供顶层 approvalMode 或 Context approval_policy 时默认 full_access;SDK 的默认值仍为 ask。普通执行缺省工作目录是启动 CLI 的 process.cwd(),显式目录和 preset Provider 自有目录保持原语义。
107
+
108
+ Adapter 自动处理的审批会继续到真实终态;需要外部回答的审批或追问以 PLAYBOARD_INTERACTION_REQUIRED 失败。自动处理通知不代表批准已写入或执行已完成。Provider、模型、权限等通过 Context 的既有执行项设置。
107
109
 
108
110
  ## 返回码
109
111
 
@@ -1,2 +1,3 @@
1
1
  import type { AdapterProbeOptions } from "@mininglamp-oss/octo-runtime-adapter-sdk";
2
+ /** CLI 读取 profile 配置和凭据引用,返回配置值;Kernel 不读取这些文件或路径。 */
2
3
  export declare function readAdapterConfigurations(profileRoot: string, adaptersValue: unknown): Record<string, AdapterProbeOptions>;
@@ -1,6 +1,7 @@
1
1
  import { readFileSync, realpathSync } from "node:fs";
2
2
  import { isAbsolute, join, relative, resolve } from "node:path";
3
3
  import { resolveStreamLimitPolicy } from "@mininglamp-oss/octo-runtime-protocol";
4
+ /** CLI 读取 profile 配置和凭据引用,返回配置值;Kernel 不读取这些文件或路径。 */
4
5
  export function readAdapterConfigurations(profileRoot, adaptersValue) {
5
6
  const adapters = objectValue(adaptersValue);
6
7
  const connections = { openclaw: { providerOptions: { OPENCLAW_RUNTIME_ROOT: profileRoot } } };
@@ -1,4 +1,4 @@
1
+ import { readAdapterConfigurations } from "./adapter-configuration.js";
1
2
  import type { ModuleManifest } from "@mininglamp-oss/octo-runtime-adapter-sdk/module-manifest";
2
- import { readAdapterConfigurations } from "@mininglamp-oss/octo-runtime-executor-kernel";
3
3
  /** CLI 宿主在创建 Kernel 前补齐 npm DSH 入口;探测与调用共享快照,显式配置始终优先。 */
4
4
  export declare function readCliAdapterConfigurations(profileRoot: string, adapters: unknown, manifest: ModuleManifest, env?: NodeJS.ProcessEnv): Promise<ReturnType<typeof readAdapterConfigurations>>;
@@ -1,8 +1,8 @@
1
+ import { readAdapterConfigurations } from "./adapter-configuration.js";
1
2
  import { constants } from "node:fs";
2
3
  import { access, lstat, readFile, realpath, stat } from "node:fs/promises";
3
4
  import { delimiter, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
4
5
  import { processEnvironmentValue } from "@mininglamp-oss/octo-runtime-adapter-sdk";
5
- import { readAdapterConfigurations } from "@mininglamp-oss/octo-runtime-executor-kernel";
6
6
  /** CLI 宿主在创建 Kernel 前补齐 npm DSH 入口;探测与调用共享快照,显式配置始终优先。 */
7
7
  export async function readCliAdapterConfigurations(profileRoot, adapters, manifest, env = process.env) {
8
8
  const configurations = readAdapterConfigurations(profileRoot, adapters);
@@ -0,0 +1,7 @@
1
+ import { type AdapterModuleEntry } from "@mininglamp-oss/octo-runtime-adapter-sdk/module-manifest";
2
+ import type { HostedAdapter } from "@mininglamp-oss/octo-runtime-executor-kernel";
3
+ /** CLI 只加载所选模块并构造实例;Kernel 不接触清单、模块路径或产品准备。 */
4
+ export declare function loadCliAdapters(entries: readonly AdapterModuleEntry[], options?: {
5
+ profileRoot: string;
6
+ syncOpenClawTools: boolean;
7
+ }): Promise<HostedAdapter[]>;
@@ -0,0 +1,51 @@
1
+ import { resolveModuleSpecifier } from "@mininglamp-oss/octo-runtime-adapter-sdk/module-manifest";
2
+ import { readExtraDirectory } from "@mininglamp-oss/octo-runtime-host-sdk";
3
+ import { dirname, join } from "node:path";
4
+ /** CLI 只加载所选模块并构造实例;Kernel 不接触清单、模块路径或产品准备。 */
5
+ export async function loadCliAdapters(entries, options) {
6
+ const adapters = [];
7
+ for (const entry of entries) {
8
+ const specifier = resolveModuleSpecifier(entry.module, entry.sourceManifest);
9
+ const loaded = await import(specifier);
10
+ const exports = asRecord(loaded, `adapter module ${entry.module}`);
11
+ const exported = exports[entry.export];
12
+ if (exported === undefined)
13
+ throw new Error(`missing export ${entry.export} from ${entry.module}`);
14
+ // 动态模块先校验工厂与 Adapter 形状,再交给唯一 Core 注册;不提前探测未选模块。
15
+ const instance = entry.factory ? callFactory(exported, entry) : exported;
16
+ if (!isHostedAdapter(instance))
17
+ throw new TypeError(`${entry.module}#${entry.export} is not an Octo Runtime adapter`);
18
+ if (entry.type && instance.metadata.type !== entry.type)
19
+ throw new Error(`manifest type ${entry.type} does not match adapter ${instance.metadata.type}`);
20
+ adapters.push(instance);
21
+ }
22
+ if (options && adapters.some((adapter) => adapter.metadata.type === "openclaw")) {
23
+ const { initializeCliOpenClaw, syncCliOpenClawToolEnvironment } = await import("./openclaw.js");
24
+ await initializeCliOpenClaw(options.profileRoot);
25
+ if (options.syncOpenClawTools)
26
+ await syncCliOpenClawToolEnvironment(options.profileRoot, await readExtraDirectory(join(dirname(options.profileRoot), "extras")));
27
+ }
28
+ return adapters;
29
+ }
30
+ function callFactory(value, entry) {
31
+ if (typeof value !== "function")
32
+ throw new TypeError(`${entry.module}#${entry.export} is marked as a factory but is not callable`);
33
+ return value(entry.options);
34
+ }
35
+ function isHostedAdapter(value) {
36
+ if (!isRecord(value) || !isRecord(value.metadata))
37
+ return false;
38
+ return (typeof value.metadata.type === "string" &&
39
+ Array.isArray(value.metadata.agentSources) &&
40
+ value.metadata.agentSources.length > 0 &&
41
+ value.metadata.agentSources.every((source) => source === "preset" || source === "provisioned") &&
42
+ typeof value.invoke === "function");
43
+ }
44
+ function asRecord(value, label) {
45
+ if (!isRecord(value))
46
+ throw new TypeError(`${label} must be an object`);
47
+ return value;
48
+ }
49
+ function isRecord(value) {
50
+ return value !== null && typeof value === "object" && !Array.isArray(value);
51
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "d0e34377a62fde503529cb3d2464a7575a5abdb0",
2
+ "commit": "f06546e915b155224a402703e5dae123daf854a5",
3
3
  "dirty": false,
4
- "buildTime": "2026-10-31T05:37:41.031Z"
4
+ "buildTime": "2026-11-02T09:45:29.341Z"
5
5
  }
@@ -230,7 +230,9 @@ export async function parseCliCommand(raw, dependencies) {
230
230
  }
231
231
  entries.push(metadata ?? { name, module: "", sourceManifest: "" });
232
232
  }
233
- const root = command("octo-runtime", "Manage the local Octo Agent runtime and independent services.");
233
+ const root = command("octo-runtime", "Manage the local Octo Agent runtime and independent services.\n\n" +
234
+ "Octo Runtime by Mininglamp Technology\n" +
235
+ "Open source on GitHub: https://github.com/Mininglamp-OSS/octo-runtime");
234
236
  addHostOptions(root, args, !isExtra || (offline && !["extraset", "extraget"].includes(operands[1])));
235
237
  option(root, "-v, --version", "Print version and build information", args);
236
238
  // 旧服务参数可位于组件之前;根仅隐藏解析,所属动作仍在本层帮助展示。
@@ -44,7 +44,7 @@ export const lifecycleCommands = new Map([
44
44
  export const rootCommands = new Map([
45
45
  ["adapter", "List and probe execution adapters"],
46
46
  ["doctor", "Diagnose the local runtime"],
47
- ["executor-kernel", "Manage local Agent execution and worker supervision"],
47
+ ["executor-kernel", "Manage native Agent execution and local RPC"],
48
48
  ["extraget", "Read a complete service configuration (advanced)"],
49
49
  ["extraset", "Replace a complete service configuration from JSON (advanced)"],
50
50
  ["help", "Help about any command"],
@@ -1,8 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { runCli } from "./main.js";
3
+ import { installPlayboardInterrupt } from "./playboard-interrupt.js";
3
4
  let componentRun = false;
4
5
  try {
5
6
  process.exitCode = await runCli(process.argv.slice(2), {
7
+ onPlayboardRun: () => {
8
+ installPlayboardInterrupt();
9
+ },
6
10
  onComponentRun: () => {
7
11
  componentRun = true;
8
12
  }
@@ -1,5 +1,7 @@
1
1
  import { type ServiceControlOptions } from "./service-control.js";
2
2
  export interface CliDependencies extends ServiceControlOptions {
3
+ /** 参数确认后通知可执行入口接管 Playboard 信号;可导入调用方默认保留协作取消。 */
4
+ onPlayboardRun?: () => void;
3
5
  env?: NodeJS.ProcessEnv;
4
6
  input?: NodeJS.ReadableStream;
5
7
  output?: (line: string) => void;
@@ -1,10 +1,10 @@
1
+ import { loadCliAdapters } from "./adapters.js";
1
2
  import { runExtraCommand, commandError } from "./extra-commands.js";
2
3
  import net from "node:net";
3
4
  import { randomUUID } from "node:crypto";
4
5
  import { once } from "node:events";
5
6
  import { lstat, mkdir } from "node:fs/promises";
6
7
  import { join, resolve } from "node:path";
7
- import { fileURLToPath } from "node:url";
8
8
  import { attachKernel, acknowledgeOrphanCleanup, inspectOrphanCleanup, createKernelService } from "@mininglamp-oss/octo-runtime-executor-kernel";
9
9
  import { componentEndpoint, createExtraService } from "@mininglamp-oss/octo-runtime-host-sdk";
10
10
  import { getExtra, readExtra, setExtra } from "./extras.js";
@@ -179,6 +179,7 @@ export async function runCli(args, dependencies = {}) {
179
179
  return 0;
180
180
  }
181
181
  if (positional[0] === "playboard" && positional.length === 1) {
182
+ dependencies.onPlayboardRun?.();
182
183
  const { runPlayboard } = await import("./playboard.js");
183
184
  return runPlayboard({
184
185
  home,
@@ -186,7 +187,8 @@ export async function runCli(args, dependencies = {}) {
186
187
  manifest: flags.manifest,
187
188
  input,
188
189
  output: dependencies.output,
189
- env: dependencies.env
190
+ env: dependencies.env,
191
+ handleSignals: !dependencies.onPlayboardRun
190
192
  });
191
193
  }
192
194
  if (positional[0] === "adapter" && positional[1] === "list" && positional.length === 2) {
@@ -254,19 +256,15 @@ export async function runCli(args, dependencies = {}) {
254
256
  logging: { directory: join(home, "logs") },
255
257
  endpoint,
256
258
  stateDirectory: kernelStateDirectory,
257
- workerEntrypoint: fileURLToPath(new URL("./worker.js", import.meta.url)),
258
- adapterModules: resolveAdapterModules(manifest),
259
- adapterConfigurations: await readCliAdapterConfigurations(paths.profileRoot, config?.adapters, manifest, dependencies.env ?? process.env),
260
- env: {
261
- ...(dependencies.env ?? process.env),
262
- OCTO_RUNTIME_HOME: home,
263
- OCTO_RUNTIME_CLI_PROFILE_ROOT: paths.profileRoot,
264
- OCTO_RUNTIME_CLI_SYNC_OPENCLAW_TOOLS: "1",
265
- OCTO_RUNTIME_LOGS_DIRECTORY: join(home, "logs")
266
- }
259
+ adapters: await loadCliAdapters(resolveAdapterModules(manifest), {
260
+ profileRoot: paths.profileRoot,
261
+ syncOpenClawTools: true
262
+ }),
263
+ adapterConfigurations: await readCliAdapterConfigurations(paths.profileRoot, config?.adapters, manifest, dependencies.env ?? process.env)
267
264
  });
268
265
  }
269
266
  else {
267
+ // CLI 的 Gateway 等 Extra 独立托管;ExtraService 内部 attach 已有 Kernel,不创建执行内核。
270
268
  const registration = await readExtra(paths, component, manifest);
271
269
  const module = registration.enabled === false
272
270
  ? { name: registration.name, default: () => () => { } }
@@ -61,11 +61,6 @@
61
61
  "module": "@mininglamp-oss/octo-runtime-adapter-qoderclicn",
62
62
  "export": "qoderCliCnAdapter"
63
63
  },
64
- {
65
- "type": "zcode-gui",
66
- "module": "@mininglamp-oss/octo-runtime-adapter-zcode-gui",
67
- "export": "zcodeGuiAdapter"
68
- },
69
64
  {
70
65
  "type": "antigravity",
71
66
  "module": "@mininglamp-oss/octo-runtime-adapter-antigravity",
@@ -14,24 +14,22 @@ export function formatStatus(name, snapshot) {
14
14
  const runtime = record(snapshot.runtime);
15
15
  const business = record(runtime.status);
16
16
  const ipc = runtime.available === false ? "unavailable" : "ready";
17
+ // 查询失败的 enabled=false 只是兼容占位值,不代表已确认关闭自启。
18
+ const managerQueryFailed = service.state === "unknown" && service.detail && /^[A-Z][A-Z0-9_]+$/.test(service.detail);
19
+ const autostart = managerQueryFailed ? "unknown" : service.enabled ? "on" : "off";
17
20
  const lines = [
18
- `${name} service: ${service.state} autostart: ${service.enabled ? "on" : "off"} IPC: ${ipc}`,
21
+ `${name} service: ${service.state} autostart: ${autostart} IPC: ${ipc}`,
19
22
  ` Manager: ${service.manager}${service.pid ? ` PID: ${service.pid}` : runtime.pid ? ` PID: ${text(runtime.pid)}` : ""}`
20
23
  ];
21
24
  if (runtime.execution_ready !== undefined)
22
- lines.push(` Worker: ${runtime.execution_ready ? "ready" : "unavailable"}`);
23
- const recovery = record(record(runtime.worker).recovery);
24
- if (recovery.code) {
25
- lines.push(` Recovery: ${text(recovery.stage)} (${text(recovery.code)})${recovery.retry_at ? ` Next retry: ${text(recovery.retry_at)}` : ""}`);
26
- lines.push(" Diagnostics: octo-runtime executor-kernel logs --follow (use the same --home)");
27
- }
25
+ lines.push(` Execution: ${runtime.execution_ready ? "ready" : "unavailable"}`);
28
26
  if (runtime.available === false)
29
27
  lines.push(` Reason: ${text(record(runtime.error).code ?? "COMPONENT_UNAVAILABLE")}`);
30
28
  if (service.lastExitCode !== undefined && service.lastExitCode !== 0)
31
29
  lines.push(` Last exit: ${service.lastExitCode}`);
32
30
  if (service.definitionPath)
33
31
  lines.push(` Definition: ${service.definitionPath}`);
34
- if (service.state === "unknown" && service.detail && /^[A-Z][A-Z0-9_]+$/.test(service.detail))
32
+ if (managerQueryFailed)
35
33
  lines.push(` Manager status: ${service.detail}`);
36
34
  const summarize = (value, depth = 0) => {
37
35
  if (Array.isArray(value))
@@ -125,7 +123,7 @@ export function describeError(error, fallback = "COMMAND_FAILED") {
125
123
  EXTRA_MODULE_MIGRATION_REQUIRED: "The saved module differs from manifest.json. Review both declarations, then save matching module text or omit module from the Extra configuration.",
126
124
  MANIFEST_INVALID: "Check manifest.json: version must be 1 and adapters/extras must be valid arrays without duplicate keys.",
127
125
  MANAGER_UNAVAILABLE: "Run doctor and check the current user's native service manager.",
128
- COMPONENT_UNAVAILABLE: "Check component status and the service logs; the IPC or worker is not ready.",
126
+ COMPONENT_UNAVAILABLE: "Check component status and the service logs; the IPC endpoint or execution service is not ready.",
129
127
  SERVICE_PROCESS_EXITED: "The service exited unexpectedly. Check its logs and configuration.",
130
128
  SERVICE_INITIALIZATION_FAILED: "Check the component configuration, manifest and service logs.",
131
129
  SERVICE_DISABLED: "Enable this component with install --autostart=true, then start it."
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 仅 CLI 可执行入口在确认 playboard 命令后安装,监听持续到本进程退出。
3
+ * 人工停止不等待 import、Run 终态或 Kernel close;SDK 不使用此策略。
4
+ * 命令返回但清理失败时仍须能停止残留进程树;信号监听本身不维持事件循环。
5
+ */
6
+ export declare function installPlayboardInterrupt(): void;
@@ -0,0 +1,86 @@
1
+ import { execFileSync } from "node:child_process";
2
+ import { writeSync } from "node:fs";
3
+ /**
4
+ * 仅 CLI 可执行入口在确认 playboard 命令后安装,监听持续到本进程退出。
5
+ * 人工停止不等待 import、Run 终态或 Kernel close;SDK 不使用此策略。
6
+ * 命令返回但清理失败时仍须能停止残留进程树;信号监听本身不维持事件循环。
7
+ */
8
+ export function installPlayboardInterrupt() {
9
+ let stopping = false;
10
+ const stop = (code) => {
11
+ if (stopping)
12
+ return;
13
+ stopping = true;
14
+ diagnostic("PLAYBOARD_FORCE_STOP: execution and cleanup are unconfirmed");
15
+ try {
16
+ if (process.platform === "win32") {
17
+ // 保持 leader 存活,由系统按 PID 回收树;不能先退出再查找后代。
18
+ execFileSync("taskkill.exe", ["/PID", String(process.pid), "/T", "/F"], {
19
+ stdio: "ignore",
20
+ windowsHide: true,
21
+ timeout: 2000
22
+ });
23
+ }
24
+ else {
25
+ // Adapter 可创建独立组,不能只杀当前组,更不能按 node/应用名匹配。
26
+ // 选择本次 CLI 的可识别后代,先杀最深层再退出自身,不触及兄弟服务。
27
+ const listing = execFileSync("/bin/ps", ["-axo", "pid=,ppid="], {
28
+ encoding: "utf8",
29
+ timeout: 2000,
30
+ maxBuffer: 8 * 1024 * 1024
31
+ });
32
+ const children = new Map();
33
+ for (const line of listing.split("\n")) {
34
+ const match = /^\s*(\d+)\s+(\d+)\s*$/.exec(line);
35
+ if (!match)
36
+ continue;
37
+ const pid = Number(match[1]), parent = Number(match[2]);
38
+ if (pid <= 1 || pid === process.pid)
39
+ continue;
40
+ const group = children.get(parent) ?? [];
41
+ group.push(pid);
42
+ children.set(parent, group);
43
+ }
44
+ const owned = [process.pid];
45
+ const seen = new Set(owned);
46
+ for (let i = 0; i < owned.length; i++)
47
+ for (const pid of children.get(owned[i]) ?? [])
48
+ if (!seen.has(pid)) {
49
+ seen.add(pid);
50
+ owned.push(pid);
51
+ }
52
+ let failed = false;
53
+ for (const pid of owned.slice(1).reverse()) {
54
+ try {
55
+ process.kill(pid, "SIGKILL");
56
+ }
57
+ catch (error) {
58
+ if (error.code !== "ESRCH")
59
+ failed = true;
60
+ }
61
+ }
62
+ if (failed)
63
+ diagnostic("PLAYBOARD_TREE_STOP_UNCONFIRMED");
64
+ }
65
+ }
66
+ catch {
67
+ // 查询/终止失败不能继续吞掉人工退出;不声称未知或已重新归属的后代已停止。
68
+ diagnostic("PLAYBOARD_TREE_STOP_UNCONFIRMED");
69
+ }
70
+ finally {
71
+ process.exit(code);
72
+ }
73
+ };
74
+ const interrupt = () => stop(130);
75
+ const terminate = () => stop(143);
76
+ process.on("SIGINT", interrupt);
77
+ process.on("SIGTERM", terminate);
78
+ }
79
+ function diagnostic(message) {
80
+ try {
81
+ writeSync(2, `${message}\n`);
82
+ }
83
+ catch {
84
+ // stderr 已关闭时仍执行定向强退。
85
+ }
86
+ }
@@ -1,4 +1,6 @@
1
1
  export interface PlayboardOptions {
2
+ /** CLI 可执行入口已接管强退时关闭本函数的协作信号监听;不在此退出宿主。 */
3
+ handleSignals?: boolean;
2
4
  input: NodeJS.ReadableStream;
3
5
  output?: (line: string) => void | Promise<void>;
4
6
  env?: NodeJS.ProcessEnv;
@@ -1,9 +1,9 @@
1
+ import { loadCliAdapters } from "./adapters.js";
1
2
  import { defaultRuntimeHome, runtimePaths, readJsonFile } from "./state.js";
2
3
  import { loadCliManifest } from "./module-manifest.js";
3
4
  import { readCliAdapterConfigurations } from "./adapter-configurations.js";
4
5
  import { resolveAdapterModules } from "@mininglamp-oss/octo-runtime-adapter-sdk/module-manifest";
5
6
  import { createKernelService } from "@mininglamp-oss/octo-runtime-executor-kernel";
6
- import { fileURLToPath } from "node:url";
7
7
  import { componentEndpoint } from "@mininglamp-oss/octo-runtime-host-sdk";
8
8
  import { mkdtemp, rm } from "node:fs/promises";
9
9
  import { tmpdir } from "node:os";
@@ -45,6 +45,12 @@ export async function runPlayboard(options) {
45
45
  if (!value || typeof value !== "object" || Array.isArray(value))
46
46
  throw new TypeError("playboard stdin must contain one JSON input object");
47
47
  const input = identifyInvokeInput(value);
48
+ // full_access 是本 CLI 宿主的缺省策略;显式策略(包括非法值)交给共享入口校验,
49
+ // 不覆盖 Context,也不改变 SDK 的 ask 默认值。
50
+ if (!Object.hasOwn(input, "approvalMode") &&
51
+ !(Array.isArray(input.contexts?.items) &&
52
+ input.contexts.items.some((item) => item?.namespace === "octo.security" && item.name === "approval_policy")))
53
+ input.approvalMode = "full_access";
48
54
  const profile = options.profile ?? "default";
49
55
  const home = options.home ?? defaultRuntimeHome(options.env);
50
56
  runtimePaths(home, profile); // Validate the selected profile before starting resources.
@@ -70,8 +76,10 @@ export async function runPlayboard(options) {
70
76
  };
71
77
  if (!options.output)
72
78
  process.stdout.on("error", onOutputError);
73
- process.once("SIGINT", onInterrupt);
74
- process.once("SIGTERM", onTerminate);
79
+ if (options.handleSignals !== false) {
80
+ process.once("SIGINT", onInterrupt);
81
+ process.once("SIGTERM", onTerminate);
82
+ }
75
83
  let kernel;
76
84
  let outcome;
77
85
  let primaryFailure;
@@ -82,13 +90,10 @@ export async function runPlayboard(options) {
82
90
  const configuration = await readJsonFile(paths.profileConfig);
83
91
  kernel = createKernelService({
84
92
  endpoint: process.platform === "win32" ? componentEndpoint(temporary) : join(temporary, "k.sock"),
85
- workerEntrypoint: fileURLToPath(new URL("./worker.js", import.meta.url)),
86
- adapterModules: resolveAdapterModules(manifest),
87
- env: {
88
- ...(options.env ?? process.env),
89
- OCTO_RUNTIME_CLI_PROFILE_ROOT: paths.profileRoot,
90
- OCTO_RUNTIME_CLI_SYNC_OPENCLAW_TOOLS: "0"
91
- },
93
+ adapters: await loadCliAdapters(resolveAdapterModules(manifest), {
94
+ profileRoot: paths.profileRoot,
95
+ syncOpenClawTools: false
96
+ }),
92
97
  adapterConfigurations: await readCliAdapterConfigurations(paths.profileRoot, configuration?.adapters, manifest, options.env ?? process.env)
93
98
  });
94
99
  await kernel.initialize({ signal: controller.signal });
@@ -98,8 +103,11 @@ export async function runPlayboard(options) {
98
103
  if (("kind" in frame &&
99
104
  frame.kind === "control" &&
100
105
  frame.control.type === "interaction" &&
101
- frame.control.status === "pending") ||
102
- (!("kind" in frame) && frame.type === "interaction.requested")) {
106
+ frame.control.status === "pending" &&
107
+ frame.control.responseRequired !== false) ||
108
+ (!("kind" in frame) &&
109
+ frame.type === "interaction.requested" &&
110
+ frame.payload.responseRequired !== false)) {
103
111
  throw new Error("PLAYBOARD_INTERACTION_REQUIRED: one-shot stdin cannot answer provider interactions");
104
112
  }
105
113
  if ("kind" in frame &&
@@ -1,4 +1,3 @@
1
- export { attachKernel, KernelError, isInvocationNotSubmitted, createKernelService, ServiceInitializationError } from "@mininglamp-oss/octo-runtime-executor-kernel";
2
- export { serveWorker } from "@mininglamp-oss/octo-runtime-executor-kernel";
1
+ export { attachKernel, AsyncQuestionReply, KernelError, isInvocationNotSubmitted, createKernelService, ServiceInitializationError } from "@mininglamp-oss/octo-runtime-executor-kernel";
3
2
  export type { HostedAdapter } from "@mininglamp-oss/octo-runtime-executor-core";
4
- export type { KernelClient, KernelInvocationRecord, KernelInvocationDrainResult, KernelInvocationLifecycle, KernelService, KernelServiceOptions, KernelServiceStatus, ServiceCleanupResult, ServiceLifecycle, ServicePhase, KernelStatus, LookupKey, RunRef, RunSnapshot } from "@mininglamp-oss/octo-runtime-executor-kernel";
3
+ export type { KernelClient, AsyncQuestionReplyResult, KernelInvocationRecord, KernelInvocationDrainResult, KernelInvocationLifecycle, KernelService, KernelServiceOptions, KernelServiceStatus, ServiceCleanupResult, ServiceLifecycle, ServicePhase, KernelStatus, LookupKey, RunRef, RunSnapshot } from "@mininglamp-oss/octo-runtime-executor-kernel";
@@ -1,2 +1 @@
1
- export { attachKernel, KernelError, isInvocationNotSubmitted, createKernelService, ServiceInitializationError } from "@mininglamp-oss/octo-runtime-executor-kernel";
2
- export { serveWorker } from "@mininglamp-oss/octo-runtime-executor-kernel";
1
+ export { attachKernel, AsyncQuestionReply, KernelError, isInvocationNotSubmitted, createKernelService, ServiceInitializationError } from "@mininglamp-oss/octo-runtime-executor-kernel";
@@ -1,3 +1,3 @@
1
1
  export type * from "@mininglamp-oss/octo-runtime-protocol";
2
2
  export type { CanonicalEventWire, ContextMcpLocator, ContextMcpPayload, ContextModelSelectionPayload, PersistentContextEnvelope, PublicObjectMaterial } from "@mininglamp-oss/octo-runtime-protocol/browser";
3
- export { InvokeInput, assertInvokeInput, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, RUNTIME_RUN_CONTRACT, PROTOCOL_VERSION, APPROVAL_MODES, CANONICAL_EVENT_TYPES, TERMINAL_EVENT_TYPES, INTERACTION_RESPONSE_OUTCOMES, IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertContextEnvelope, assertModelInputParts, assertRuntimeLimits, assertCanonicalEvent, assertApprovalRequest, assertInteractionResponse, assertNativeInteractionResponse, assertHostRunReceipt, assertHostControl, assertHostFrame, assertHostFrameIdentity, assertFailureEnvelope, isTerminal, isHostTerminal, canonicalEvents, contextItem, contextHash, messageExposure, isFailureEnvelope, failureMessage } from "@mininglamp-oss/octo-runtime-protocol";
3
+ export { InvokeInput, assertInvokeInput, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, RUNTIME_RUN_CONTRACT, PROTOCOL_VERSION, APPROVAL_MODES, CANONICAL_EVENT_TYPES, TERMINAL_EVENT_TYPES, INTERACTION_RESPONSE_OUTCOMES, IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertContextEnvelope, assertModelInputParts, assertRuntimeLimits, assertCanonicalEvent, assertApprovalRequest, assertAsyncQuestions, assertQuestionRequest, assertQuestionResponse, questionAnswerText, assertInteractionResponse, assertNativeInteractionResponse, assertHostRunReceipt, assertHostControl, assertHostFrame, assertHostFrameIdentity, assertFailureEnvelope, isTerminal, isHostTerminal, canonicalEvents, contextItem, contextHash, messageExposure, isFailureEnvelope, failureMessage } from "@mininglamp-oss/octo-runtime-protocol";
@@ -1 +1 @@
1
- export { InvokeInput, assertInvokeInput, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, RUNTIME_RUN_CONTRACT, PROTOCOL_VERSION, APPROVAL_MODES, CANONICAL_EVENT_TYPES, TERMINAL_EVENT_TYPES, INTERACTION_RESPONSE_OUTCOMES, IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertContextEnvelope, assertModelInputParts, assertRuntimeLimits, assertCanonicalEvent, assertApprovalRequest, assertInteractionResponse, assertNativeInteractionResponse, assertHostRunReceipt, assertHostControl, assertHostFrame, assertHostFrameIdentity, assertFailureEnvelope, isTerminal, isHostTerminal, canonicalEvents, contextItem, contextHash, messageExposure, isFailureEnvelope, failureMessage } from "@mininglamp-oss/octo-runtime-protocol";
1
+ export { InvokeInput, assertInvokeInput, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, RUNTIME_RUN_CONTRACT, PROTOCOL_VERSION, APPROVAL_MODES, CANONICAL_EVENT_TYPES, TERMINAL_EVENT_TYPES, INTERACTION_RESPONSE_OUTCOMES, IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertContextEnvelope, assertModelInputParts, assertRuntimeLimits, assertCanonicalEvent, assertApprovalRequest, assertAsyncQuestions, assertQuestionRequest, assertQuestionResponse, questionAnswerText, assertInteractionResponse, assertNativeInteractionResponse, assertHostRunReceipt, assertHostControl, assertHostFrame, assertHostFrameIdentity, assertFailureEnvelope, isTerminal, isHostTerminal, canonicalEvents, contextItem, contextHash, messageExposure, isFailureEnvelope, failureMessage } from "@mininglamp-oss/octo-runtime-protocol";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-acp-client",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
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.8",
13
- "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
12
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10",
13
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10"
14
14
  }
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-acp",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
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.8",
13
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
14
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
12
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10",
13
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.10",
14
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10"
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-antigravity",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
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.8",
14
- "@mininglamp-oss/octo-runtime-protocol": "1.1.8"
13
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10",
14
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10"
15
15
  }
16
16
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-adapter-claude-code",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
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.8",
9
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10",
9
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10"
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.8",
3
+ "version": "1.1.10",
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.8",
9
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
10
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
8
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.10",
9
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.10",
10
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.10"
11
11
  },
12
12
  "types": "./dist/index.d.ts",
13
13
  "files": [
@@ -53,6 +53,7 @@ export declare class CodexAppServerRpcError extends Error {
53
53
  /** Error for when the subprocess exits without producing a run terminal, preserving exit code/signal. */
54
54
  export declare class CodexAppServerProcessError extends Error {
55
55
  readonly exit: ProcessExit;
56
+ readonly code = "CODEX_TRANSPORT_FAILED";
56
57
  constructor(message: string, exit: ProcessExit);
57
58
  }
58
59
  /** Production always uses the stdio transport; other injected args are only for a test server. */