@mininglamp-oss/octo-runtime 1.1.13 → 1.1.14

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 (95) hide show
  1. package/apps/cli/dist/adapters.js +1 -5
  2. package/apps/cli/dist/build-info.json +2 -2
  3. package/dist/public/protocol.d.ts +1 -1
  4. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  5. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +19 -4
  6. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -29
  7. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  8. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +0 -1
  9. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  10. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.d.ts +3 -0
  11. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/agent-env.js +10 -0
  12. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +23 -24
  13. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  14. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +1 -2
  15. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.d.ts +3 -0
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/agent-env.js +10 -0
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +25 -30
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +0 -2
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-SMTJTIN7.js → chunk-AE3OJBDS.js} +1 -1
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-H3S6WM37.js → chunk-NGR74QLF.js} +0 -1
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-RISQ6NGV.js → chunk-XIUZ6GXG.js} +1 -1
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +0 -1
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +2 -6
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +5 -8
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +0 -2
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +8 -18
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.d.ts +3 -0
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/agent-env.js +10 -0
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +1 -12
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -2
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +1 -2
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -2
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +1 -2
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +1 -2
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +0 -4
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +2 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +6 -3
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -2
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +1 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -3
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -2
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +1 -2
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -3
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +2 -3
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +6 -28
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +0 -2
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +2 -7
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  62. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +1 -5
  63. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  64. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -20
  65. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
  66. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +2 -2
  67. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +42 -624
  68. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  69. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +97 -12
  70. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.d.ts +21 -0
  71. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-output-silence.js +176 -0
  72. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +0 -1
  73. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +3 -4
  74. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  75. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
  76. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  77. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +1 -1
  78. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +1 -5
  79. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +0 -3
  80. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +1 -26
  81. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +7 -0
  82. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +3 -12
  83. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +16 -240
  84. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -5
  85. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +2 -12
  86. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +0 -12
  87. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  88. package/package.json +24 -24
  89. package/packages/octo-runtime-protocol/schema/protocol.schema.json +42 -624
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.d.ts +0 -5
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.js +0 -8
  92. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +0 -4
  93. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +0 -36
  94. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +0 -3
  95. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +0 -68
@@ -120,13 +120,7 @@ export function classifyFailure(input, context) {
120
120
  category: catalog.category,
121
121
  stage: context.stage,
122
122
  messageKey: catalog.messageKey,
123
- params: codexLocal
124
- ? {}
125
- : classification.reasonCode === "CODEX_FINALIZATION_TIMEOUT"
126
- ? {
127
- configParameter: "adapter.codex/options.finalizationTimeoutMs"
128
- }
129
- : timeoutConfiguration(classification.code, context.source?.adapter),
123
+ params: codexLocal ? {} : timeoutConfiguration(classification.code),
130
124
  retryable: codexLocal || classification.reasonCode === "CODEX_FINALIZATION_TIMEOUT"
131
125
  ? false
132
126
  : catalog.retryable,
@@ -216,7 +210,8 @@ function safeTimeoutStage(value) {
216
210
  ? value
217
211
  : undefined;
218
212
  }
219
- function timeoutConfiguration(code, adapter) {
213
+ // 公共诊断只提示公共 limits;Adapter 私有配置路径由所属包文档维护,不能在此登记。
214
+ function timeoutConfiguration(code) {
220
215
  const fields = {
221
216
  "OH-ADP-3007": "first_frame_timeout_ms",
222
217
  "OH-ADP-3008": "model_idle_timeout_ms",
@@ -227,10 +222,6 @@ function timeoutConfiguration(code, adapter) {
227
222
  };
228
223
  if (fields[code])
229
224
  return { configParameter: `octo.execution/limits.${fields[code]}` };
230
- if (code === "OH-ADP-3013" && adapter === "codex")
231
- return {
232
- configParameter: "adapter.codex/options.appServerRequestTimeoutMs"
233
- };
234
225
  return {};
235
226
  }
236
227
  function safeWatchdogEvidence(value) {
@@ -31,10 +31,6 @@ export type MessageExposure = "public_reasoning" | "public_summary" | "public_pl
31
31
  * via the `definition` "HostControl".
32
32
  */
33
33
  export type HostControl = {
34
- type: "evidence";
35
- name: "execution";
36
- payload: ExecutionEvidence;
37
- } | {
38
34
  type: "evidence";
39
35
  name: "session";
40
36
  payload: {
@@ -90,8 +86,6 @@ export type ApprovalMode = "ask" | "assisted" | "full_access";
90
86
  export type ContextItem = {
91
87
  namespace: string;
92
88
  name: string;
93
- guidance?: string;
94
- data_format?: "text";
95
89
  payload: Record<string, unknown>;
96
90
  };
97
91
  /**
@@ -102,28 +96,6 @@ export type PersistentContextEnvelope = ContextEnvelope;
102
96
  * In addition to draft-07 validation, every consumer must enforce the x-octo semantic keywords: unique ordered namespace/name tuples, compact UTF-8 JSON byte budget, JSON nesting depth with the envelope at depth zero, and Unicode scalar strings in every nested value and object key. Canonical hashing uses ECMAScript JSON number serialization, including -0 becoming 0 and normalized exponent notation; object keys are sorted by UTF-16 code units before ECMAScript integer-index enumeration. U+2028/U+2029 and non-ASCII scalar values are not escaped or Unicode-normalized.
103
97
  */
104
98
  export type PersistentContextEnvelope1 = ContextEnvelope;
105
- /**
106
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
107
- * via the `definition` "PublicObjectMaterial".
108
- */
109
- export type PublicObjectMaterial = {
110
- resource_ref: string;
111
- object_type: "task" | "discussion" | "discussion_comment" | "discussion_reply" | "local_file" | "drive_file";
112
- object_id?: string;
113
- origin: "mention" | "attachment" | "object_action" | "source_entity";
114
- revision?: string;
115
- byte_size: number;
116
- digest: string;
117
- object_scope?: {
118
- type: "user" | "teamspace";
119
- id: string;
120
- };
121
- selector?: {
122
- mode: "core" | "content" | "history" | "chain" | "metadata";
123
- start?: number;
124
- end?: number;
125
- };
126
- };
127
99
  /**
128
100
  * In addition to draft-07 validation, every consumer must enforce the x-octo semantic keywords: unique ordered namespace/name tuples, compact UTF-8 JSON byte budget, JSON nesting depth with the envelope at depth zero, and Unicode scalar strings in every nested value and object key. Canonical hashing uses ECMAScript JSON number serialization, including -0 becoming 0 and normalized exponent notation; object keys are sorted by UTF-16 code units before ECMAScript integer-index enumeration. U+2028/U+2029 and non-ASCII scalar values are not escaped or Unicode-normalized.
129
101
  *
@@ -131,40 +103,6 @@ export type PublicObjectMaterial = {
131
103
  * via the `definition` "PersistentContextEnvelope".
132
104
  */
133
105
  export type PersistentContextEnvelope2 = ContextEnvelope;
134
- /**
135
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
136
- * via the `definition` "ContextModelSelectionPayload".
137
- */
138
- export type ContextModelSelectionPayload = {
139
- id?: string;
140
- use_provider_default?: true;
141
- } & ContextModelSelectionPayload1;
142
- export type ContextModelSelectionPayload1 = {
143
- [k: string]: unknown;
144
- };
145
- /**
146
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
147
- * via the `definition` "ContextReasoningPayload".
148
- */
149
- export type ContextReasoningPayload = {
150
- effort?: string;
151
- use_provider_default?: true;
152
- } & ContextReasoningPayload1;
153
- export type ContextReasoningPayload1 = {
154
- [k: string]: unknown;
155
- };
156
- export type ContextRuntimeSelectionPayload = {
157
- mode?: "candidates";
158
- } | {
159
- mode?: "explicit";
160
- };
161
- /**
162
- * Worker-frozen Context runtime candidates. Explicit selection cannot fail over.
163
- *
164
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
165
- * via the `definition` "ResolvedRuntimeSelection".
166
- */
167
- export type ResolvedRuntimeSelection = ResolvedRuntimeSelection1;
168
106
  /**
169
107
  * Provider-neutral interaction. Omitted delivery retains synchronous blocking semantics; async questions allow continued work. Only Adapter-owned automatic approvals may omit external responses; this does not imply completion.
170
108
  *
@@ -234,30 +172,6 @@ export type ActivitySubject = {
234
172
  type: "interaction";
235
173
  id: string;
236
174
  };
237
- /**
238
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
239
- * via the `definition` "AgentSource".
240
- */
241
- export type AgentSource = "preset" | "provisioned";
242
- /**
243
- * Declarative MCP resource operation. Only deployed scoped operations may execute; schema validation does not authorize access.
244
- *
245
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
246
- * via the `definition` "ContextReferenceEntry".
247
- */
248
- export type ContextReferenceEntry = {
249
- locator?: ContextMcpLocator;
250
- } & {
251
- resource_ref: string;
252
- resolver: "mcp";
253
- locator: {};
254
- /**
255
- * Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.
256
- */
257
- params?: Record<string, unknown>;
258
- authorization_ref?: string;
259
- revision?: string;
260
- };
261
175
  /**
262
176
  * @minItems 1
263
177
  * @maxItems 128
@@ -347,7 +261,7 @@ export interface CanonicalHostFrame {
347
261
  */
348
262
  export interface CanonicalEventWire {
349
263
  protocolVersion: 2;
350
- type: "session.update" | "execution.update" | "usage.update" | "model_step.started" | "model_step.finished" | "message.create" | "message.delta" | "message.update" | "tool_call.create" | "tool_call.delta" | "tool_call.update" | "activity.started" | "activity.updated" | "activity.finished" | "plan.updated" | "tool_call.progress" | "run.notice" | "interaction.requested" | "interaction.resolved" | "run.queued" | "run.started" | "run.completed" | "run.failed" | "run.cancelled";
264
+ type: "session.update" | "usage.update" | "model_step.started" | "model_step.finished" | "message.create" | "message.delta" | "message.update" | "tool_call.create" | "tool_call.delta" | "tool_call.update" | "activity.started" | "activity.updated" | "activity.finished" | "plan.updated" | "tool_call.progress" | "run.notice" | "interaction.requested" | "interaction.resolved" | "run.queued" | "run.started" | "run.completed" | "run.failed" | "run.cancelled";
351
265
  payload: CanonicalEventPayload;
352
266
  }
353
267
  /**
@@ -535,19 +449,6 @@ export interface ControlHostFrame {
535
449
  kind: "control";
536
450
  control: HostControl;
537
451
  }
538
- /**
539
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
540
- * via the `definition` "ExecutionEvidence".
541
- */
542
- export interface ExecutionEvidence {
543
- actmode: {
544
- requested: "default" | "plan";
545
- effective: "default" | "plan" | null;
546
- status: "applied" | "fallback" | "unknown";
547
- nativeMode?: string;
548
- reason?: "provider_unsupported" | "adapter_unmapped" | "provider_unconfirmed";
549
- };
550
- }
551
452
  /**
552
453
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
553
454
  * via the `definition` "ServiceProcessSnapshot".
@@ -1960,72 +1861,33 @@ export interface ContextConfiguration {
1960
1861
  mandatory: PersistentContextEnvelope1;
1961
1862
  }
1962
1863
  /**
1963
- * Public Context facts. Preparation is distinct from Adapter application or invocation. This projection excludes resource files, trusted instruction text, credentials and Runtime paths.
1964
- *
1965
1864
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
1966
- * via the `definition` "RunContextProjection".
1967
- */
1968
- export interface RunContextProjection {
1969
- run_id: string;
1970
- context_hash: string;
1971
- actual_runtime_id?: string;
1972
- preparation_status: "unknown" | "prepared";
1973
- application_status: "unknown" | "applied";
1974
- invocation_status: "unknown";
1975
- model_uses_provider_default: boolean;
1976
- effort_uses_provider_default: boolean;
1977
- /**
1978
- * Frozen inline object facts proven by a matching preparation receipt. Source fields are provenance claims, not access grants. No contents, local handles, paths or credentials are exposed; application is separately evidenced by application_status.
1979
- *
1980
- * @maxItems 32
1981
- */
1982
- object_materials?: PublicObjectMaterial[];
1983
- execution: {
1984
- adapter_type: string;
1985
- model?: string;
1986
- effort?: string;
1987
- approval_mode: "ask" | "assisted" | "full_access";
1988
- };
1989
- }
1990
- /**
1991
- * Preparation facts for the current Run lease and caller-owned workspace path; they do not prove Provider use of model context or transfer directory ownership to Runtime.
1992
- *
1993
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
1994
- * via the `definition` "ContextPreparationReceipt".
1865
+ * via the `definition` "ContextAdapterPayload".
1995
1866
  */
1996
- export interface ContextPreparationReceipt {
1997
- context_hash: string;
1998
- run_id: string;
1999
- lease_id: string;
2000
- fencing_token: number;
2001
- workspace_path: string;
2002
- provider_state_dir: string;
2003
- /**
2004
- * @maxItems 256
2005
- */
2006
- warnings: string[];
1867
+ export interface ContextAdapterPayload {
1868
+ type: string;
2007
1869
  }
2008
1870
  /**
2009
1871
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2010
- * via the `definition` "ContextAdapterPayload".
1872
+ * via the `definition` "ContextModelPayload".
2011
1873
  */
2012
- export interface ContextAdapterPayload {
2013
- type: string;
1874
+ export interface ContextModelPayload {
1875
+ selection?: ContextModelSelectionPayload;
1876
+ reasoning?: ContextReasoningPayload;
2014
1877
  }
2015
1878
  /**
2016
1879
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2017
- * via the `definition` "ContextActmodePayload".
1880
+ * via the `definition` "ContextModelSelectionPayload".
2018
1881
  */
2019
- export interface ContextActmodePayload {
2020
- mode: "default" | "plan";
1882
+ export interface ContextModelSelectionPayload {
1883
+ id: string;
2021
1884
  }
2022
1885
  /**
2023
1886
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2024
- * via the `definition` "ContextModelPayload".
1887
+ * via the `definition` "ContextReasoningPayload".
2025
1888
  */
2026
- export interface ContextModelPayload {
2027
- selection?: ContextModelSelectionPayload;
2028
- reasoning?: ContextReasoningPayload;
1889
+ export interface ContextReasoningPayload {
1890
+ effort: string;
2029
1891
  }
2030
1892
  /**
2031
1893
  * Caller-owned, already prepared directory. Runtime validates the concrete local execution path and never allocates or recreates an application workspace.
@@ -2037,7 +1899,7 @@ export interface ContextWorkspacePayload {
2037
1899
  path: string;
2038
1900
  }
2039
1901
  /**
2040
- * Snake-case frozen watchdog limits, with the same bounds as RuntimeLimits. Legacy enforcement=observe cannot be combined with v2 settings.
1902
+ * Snake-case frozen watchdog limits, with the same bounds as RuntimeLimits.
2041
1903
  *
2042
1904
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2043
1905
  * via the `definition` "ContextLimitsPayload".
@@ -2051,19 +1913,6 @@ export interface ContextLimitsPayload {
2051
1913
  tool_wall_timeout_ms?: number;
2052
1914
  run_timeout_ms?: number;
2053
1915
  cancel_grace_ms?: number;
2054
- enforcement?: "enforce" | "observe";
2055
- }
2056
- export interface ContextRuntimeSelectionPayload1 {
2057
- mode: "candidates" | "explicit";
2058
- runtime_id?: string;
2059
- /**
2060
- * @minItems 1
2061
- * @maxItems 64
2062
- */
2063
- runtime_ids?: [string, ...string[]];
2064
- strategy?: "preferred_failover";
2065
- offline_behavior?: "wait" | "fail";
2066
- failover?: "candidates" | "none";
2067
1916
  }
2068
1917
  /**
2069
1918
  * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
@@ -2072,39 +1921,6 @@ export interface ContextRuntimeSelectionPayload1 {
2072
1921
  export interface ContextApprovalPolicyPayload {
2073
1922
  mode: ApprovalMode;
2074
1923
  }
2075
- /**
2076
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2077
- * via the `definition` "ContextMcpLocator".
2078
- */
2079
- export interface ContextMcpLocator {
2080
- server_ref: string;
2081
- tool: string;
2082
- }
2083
- export interface ResolvedRuntimeSelection1 {
2084
- schema: "octo.runtime-selection/v2";
2085
- selection_mode: "explicit" | "candidates";
2086
- explicit_runtime_id?: string;
2087
- /**
2088
- * @minItems 1
2089
- * @maxItems 64
2090
- */
2091
- authorized_candidates: [
2092
- {
2093
- runtime_id: string;
2094
- priority: number;
2095
- owner_subject_type: "user" | "teamspace";
2096
- owner_subject_id: string;
2097
- },
2098
- ...{
2099
- runtime_id: string;
2100
- priority: number;
2101
- owner_subject_type: "user" | "teamspace";
2102
- owner_subject_id: string;
2103
- }[]
2104
- ];
2105
- offline_behavior: "wait" | "fail";
2106
- failover: "candidates" | "none";
2107
- }
2108
1924
  /**
2109
1925
  * Runtime-owned phase-aware invocation watchdog budgets.
2110
1926
  *
@@ -2120,7 +1936,6 @@ export interface RuntimeLimits {
2120
1936
  toolWallTimeoutMs?: number;
2121
1937
  runTimeoutMs?: number;
2122
1938
  cancelGraceMs?: number;
2123
- enforcement?: "observe" | "enforce";
2124
1939
  }
2125
1940
  /**
2126
1941
  * Non-blocking question batch. IDs are positions scoped to this interaction, not provider-native question IDs.
@@ -2577,13 +2392,9 @@ export interface ToolProgressPayload {
2577
2392
  unit?: "items" | "bytes" | "steps";
2578
2393
  };
2579
2394
  }
2580
- /**
2581
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2582
- * via the `definition` "RunNoticePayload".
2583
- */
2584
2395
  export interface RunNoticePayload {
2585
2396
  noticeId: string;
2586
- code: "retry_scheduled" | "context_compacted" | "model_rerouted" | "config_warning" | "provider_diagnostic";
2397
+ code: "retry_scheduled" | "context_compacted" | "model_rerouted" | "config_warning" | "provider_diagnostic" | "model_output_idle";
2587
2398
  severity: "info" | "warning";
2588
2399
  params: {
2589
2400
  [k: string]: string | number | boolean;
@@ -2591,40 +2402,6 @@ export interface RunNoticePayload {
2591
2402
  relatedActivityId?: string;
2592
2403
  relatedItemId?: string;
2593
2404
  }
2594
- /**
2595
- * Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.
2596
- *
2597
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2598
- * via the `definition` "ContextInlineEntry".
2599
- */
2600
- export interface ContextInlineEntry {
2601
- text: string;
2602
- resource_ref?: string;
2603
- source?: {
2604
- [k: string]: unknown;
2605
- } | string;
2606
- summary?: string;
2607
- }
2608
- /**
2609
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2610
- * via the `definition` "ContextInlinePayload".
2611
- */
2612
- export interface ContextInlinePayload {
2613
- /**
2614
- * @minItems 1
2615
- */
2616
- entries: [ContextInlineEntry, ...ContextInlineEntry[]];
2617
- }
2618
- /**
2619
- * This interface was referenced by `OctoRuntimeProtocolSchema`'s JSON-Schema
2620
- * via the `definition` "ContextReferencesPayload".
2621
- */
2622
- export interface ContextReferencesPayload {
2623
- /**
2624
- * @minItems 1
2625
- */
2626
- entries: [ContextReferenceEntry, ...ContextReferenceEntry[]];
2627
- }
2628
2405
  /**
2629
2406
  * Business authorization intent; never a tool installation definition.
2630
2407
  *
@@ -2738,7 +2515,6 @@ export interface InteractionResponseWire {
2738
2515
  */
2739
2516
  export interface HostedAdapterMetadataWire {
2740
2517
  type: string;
2741
- agentSources: AgentSource[];
2742
2518
  workspace?: boolean;
2743
2519
  protocolSupport?: AdapterProtocolSupport;
2744
2520
  processModel?: string;
@@ -14,14 +14,13 @@ export { assertJsonValue } from "./context.js";
14
14
  export type { ToolAuthorization, IssuedToolAuthorization } from "./generated/protocol-types.js";
15
15
  export { PROVIDER_DIAGNOSTIC_MAX_BYTES } from "./experience.js";
16
16
  export { IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertModelInputParts, providerInputParts, hasImageInput, modelPartsFromInput } from "./multimodal.js";
17
- export { APPROVAL_MODES, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, DEFAULT_RUN_TIMEOUT_MS, MAX_RUN_TIMEOUT_MS, RUNTIME_RUN_CONTRACT, assertAgentSource, assertApprovalMode, assertContextEnvelope, assertContextEnvs, assertMcpServers, assertContextMcp, canonicalContext, contextItem, mergeContext } from "./context.js";
18
- export { RUNTIME_SELECTION_SCHEMA, assertResolvedRuntimeSelection } from "./runtime-selection.js";
17
+ export { APPROVAL_MODES, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, DEFAULT_RUN_TIMEOUT_MS, MAX_RUN_TIMEOUT_MS, RUNTIME_RUN_CONTRACT, assertApprovalMode, assertContextEnvelope, assertContextEnvs, assertMcpServers, assertContextMcp, canonicalContext, contextItem, mergeContext } from "./context.js";
19
18
  export { CONTEXT_TYPE_CATALOG, contextTypeDefinition, findContextTypeDefinition } from "./context-catalog.js";
20
19
  export type { ContextTypeDefinition } from "./context-catalog.js";
21
20
  export { assertContextConfiguration, resolveContextConfiguration } from "./context-configuration.js";
22
21
  export { assertNotificationMessage } from "./notification.js";
23
22
  import type { ActivityStartedPayload, ActivityUpdatedPayload, ActivityFinishedPayload, PlanUpdatedPayload, ToolProgressPayload, RunNoticePayload, CanonicalEventPayload, InvokeRequestWire, RuntimeLimits, MessageChannel, MessageExposure, InteractionRequestedPayload, InteractionResolvedPayload, ModelStepFinishedPayload, ModelStepStartedPayload, ToolCallCreatePayload, ToolCallDeltaPayload, ToolCallUpdatePayload, FailureEnvelope } from "./generated/protocol-types.js";
24
- export type { AgentSource, NotificationMessage, ModelInputPart, ApprovalMode, ApprovalRequest, ApprovalOperation, ApprovalDisplayDetails, ContextItem, ContextInlinePayload, ContextReferencesPayload, ContextInlineEntry, ContextReferenceEntry, ContextEnvelope, ContextConfiguration, ContextPreparationReceipt, RunContextProjection, ContextAdapterPayload, ContextModelPayload, ContextActmodePayload, ExecutionEvidence, ContextReasoningPayload, ContextWorkspacePayload, ContextLimitsPayload, ContextEnvsPayload, ContextRuntimeSelectionPayload, ContextApprovalPolicyPayload, ResolvedRuntimeSelection, MessageChannel, MessageExposure, MessageProvenance, ProviderSession, RuntimeLimits, ActivityInfo, ActivitySubject, ActivityStartedPayload, ActivityUpdatedPayload, ActivityFinishedPayload, PlanUpdatedPayload, ToolProgressPayload, RunNoticePayload, CanonicalEventPayload, InteractionRequestedPayload, InteractionResolvedPayload, ModelStepStartedPayload, ModelStepFinishedPayload, ToolCallCreatePayload, ToolCallDeltaPayload, ToolCallUpdatePayload, FailureAction, FailureSource, FailureCause, FailureEnvelope, McpStdioServer, McpStreamableHttpServer, McpServer, McpServers, RunIdentity, InvokeRequestWire } from "./generated/protocol-types.js";
23
+ export type { NotificationMessage, ModelInputPart, ApprovalMode, ApprovalRequest, ApprovalOperation, ApprovalDisplayDetails, ContextItem, ContextEnvelope, ContextConfiguration, ContextAdapterPayload, ContextModelPayload, ContextReasoningPayload, ContextWorkspacePayload, ContextLimitsPayload, ContextEnvsPayload, ContextApprovalPolicyPayload, MessageChannel, MessageExposure, MessageProvenance, ProviderSession, RuntimeLimits, ActivityInfo, ActivitySubject, ActivityStartedPayload, ActivityUpdatedPayload, ActivityFinishedPayload, PlanUpdatedPayload, ToolProgressPayload, RunNoticePayload, CanonicalEventPayload, InteractionRequestedPayload, InteractionResolvedPayload, ModelStepStartedPayload, ModelStepFinishedPayload, ToolCallCreatePayload, ToolCallDeltaPayload, ToolCallUpdatePayload, FailureAction, FailureSource, FailureCause, FailureEnvelope, McpStdioServer, McpStreamableHttpServer, McpServer, McpServers, RunIdentity, InvokeRequestWire } from "./generated/protocol-types.js";
25
24
  export { FAILURE_CATALOG, classifyFailure, isCodexLocalFailureReason, isCodexLocalFailure, failureMessage, failurePayload, isFailureEnvelope, type FailureClassificationContext, type FailureDomain, type PublicFailureCode } from "./failure.js";
26
25
  import type { RunIdentity } from "./generated/protocol-types.js";
27
26
  /**
@@ -42,8 +41,7 @@ export type TerminalEventType = (typeof TERMINAL_EVENT_TYPES)[number];
42
41
  * updates -> a Run terminal. Provider-native event names must be translated
43
42
  * inside the adapter and must never leak through to this level.
44
43
  */
45
- export { contextActmode, assertExecutionEvidence } from "./actmode.js";
46
- export declare const CANONICAL_EVENT_TYPES: readonly ["session.update", "execution.update", "usage.update", "model_step.started", "model_step.finished", "message.create", "message.delta", "message.update", "tool_call.create", "tool_call.delta", "tool_call.update", "activity.started", "activity.updated", "activity.finished", "plan.updated", "tool_call.progress", "run.notice", "interaction.requested", "interaction.resolved", "run.queued", "run.started", "run.completed", "run.failed", "run.cancelled"];
44
+ export declare const CANONICAL_EVENT_TYPES: readonly ["session.update", "usage.update", "model_step.started", "model_step.finished", "message.create", "message.delta", "message.update", "tool_call.create", "tool_call.delta", "tool_call.update", "activity.started", "activity.updated", "activity.finished", "plan.updated", "tool_call.progress", "run.notice", "interaction.requested", "interaction.resolved", "run.queued", "run.started", "run.completed", "run.failed", "run.cancelled"];
47
45
  /** canonical 模式下的统一事件类型;native-only Adapter 无须转换原生事件。 */
48
46
  export type CanonicalEventType = (typeof CANONICAL_EVENT_TYPES)[number];
49
47
  export type CanonicalPayloadFor<TType extends CanonicalEventType> = TType extends "activity.started" ? CanonicalEventPayload & ActivityStartedPayload : TType extends "activity.updated" ? CanonicalEventPayload & ActivityUpdatedPayload : TType extends "activity.finished" ? CanonicalEventPayload & ActivityFinishedPayload : TType extends "plan.updated" ? CanonicalEventPayload & PlanUpdatedPayload : TType extends "tool_call.progress" ? CanonicalEventPayload & ToolProgressPayload : TType extends "run.notice" ? CanonicalEventPayload & RunNoticePayload : TType extends "model_step.started" ? CanonicalEventPayload & ModelStepStartedPayload : TType extends "model_step.finished" ? CanonicalEventPayload & ModelStepFinishedPayload : TType extends "interaction.requested" ? CanonicalEventPayload & InteractionRequestedPayload : TType extends "interaction.resolved" ? CanonicalEventPayload & InteractionResolvedPayload : TType extends "tool_call.create" ? CanonicalEventPayload & ToolCallCreatePayload : TType extends "tool_call.delta" ? CanonicalEventPayload & ToolCallDeltaPayload : TType extends "tool_call.update" ? CanonicalEventPayload & ToolCallUpdatePayload : CanonicalEventPayload;
@@ -16,8 +16,7 @@ export { PROVIDER_DIAGNOSTIC_MAX_BYTES } from "./experience.js";
16
16
  import { assertModelInputParts, assertImageRecoveryParts, hasImageInput } from "./multimodal.js";
17
17
  export { IMAGE_INPUT_LIMITS, IMAGE_INPUT_MIME_TYPES, assertModelInputParts, providerInputParts, hasImageInput, modelPartsFromInput } from "./multimodal.js";
18
18
  import { assertApprovalMode, assertContextEnvs, assertJsonValue, MAX_RUN_TIMEOUT_MS } from "./context.js";
19
- export { APPROVAL_MODES, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, DEFAULT_RUN_TIMEOUT_MS, MAX_RUN_TIMEOUT_MS, RUNTIME_RUN_CONTRACT, assertAgentSource, assertApprovalMode, assertContextEnvelope, assertContextEnvs, assertMcpServers, assertContextMcp, canonicalContext, contextItem, mergeContext } from "./context.js";
20
- export { RUNTIME_SELECTION_SCHEMA, assertResolvedRuntimeSelection } from "./runtime-selection.js";
19
+ export { APPROVAL_MODES, CONTEXT_SCHEMA, CONTEXT_MAX_BYTES, CONTEXT_MAX_ITEMS, DEFAULT_RUN_TIMEOUT_MS, MAX_RUN_TIMEOUT_MS, RUNTIME_RUN_CONTRACT, assertApprovalMode, assertContextEnvelope, assertContextEnvs, assertMcpServers, assertContextMcp, canonicalContext, contextItem, mergeContext } from "./context.js";
21
20
  export { CONTEXT_TYPE_CATALOG, contextTypeDefinition, findContextTypeDefinition } from "./context-catalog.js";
22
21
  export { assertContextConfiguration, resolveContextConfiguration } from "./context-configuration.js";
23
22
  export { assertNotificationMessage } from "./notification.js";
@@ -52,11 +51,8 @@ export const TERMINAL_EVENT_TYPES = ["run.completed", "run.failed", "run.cancell
52
51
  * updates -> a Run terminal. Provider-native event names must be translated
53
52
  * inside the adapter and must never leak through to this level.
54
53
  */
55
- export { contextActmode, assertExecutionEvidence } from "./actmode.js";
56
- import { assertExecutionEvidence } from "./actmode.js";
57
54
  export const CANONICAL_EVENT_TYPES = [
58
55
  "session.update",
59
- "execution.update",
60
56
  "usage.update",
61
57
  "model_step.started",
62
58
  "model_step.finished",
@@ -151,8 +147,6 @@ export function assertCanonicalEvent(event) {
151
147
  assertAsyncQuestions(payload.questions);
152
148
  }
153
149
  }
154
- if (event.type === "execution.update")
155
- assertExecutionEvidence(payload);
156
150
  assertExperiencePayload(event.type, payload);
157
151
  if (event.type === "run.failed" && payload.failure !== undefined) {
158
152
  assertFailureEnvelope(payload.failure);
@@ -506,7 +500,7 @@ export function assertRuntimeLimits(value) {
506
500
  cancelGraceMs: 60_000
507
501
  };
508
502
  for (const [key, setting] of Object.entries(value)) {
509
- if (key === "enforcement" || key === "modelIdlePolicy") {
503
+ if (key === "modelIdlePolicy") {
510
504
  if (setting !== "enforce" && setting !== "observe")
511
505
  throw new TypeError(`invalid runtimeLimits.${key}`);
512
506
  }
@@ -518,10 +512,6 @@ export function assertRuntimeLimits(value) {
518
512
  throw new TypeError(`invalid runtimeLimits.${key}`);
519
513
  }
520
514
  }
521
- if (value.enforcement === "observe" &&
522
- ["modelIdlePolicy", "modelIdleWarningMs", "toolWallTimeoutMs"].some((key) => value[key] !== undefined)) {
523
- throw new TypeError("legacy enforcement=observe cannot be combined with watchdog v2 settings; use modelIdlePolicy=observe with enforcement=enforce");
524
- }
525
515
  }
526
516
  /** Type guard: whether an event ends the current Run. */
527
517
  export function isTerminal(event) {
@@ -1,5 +1,4 @@
1
1
  import { assertJsonValue } from "./context.js";
2
- import { assertExecutionEvidence } from "./actmode.js";
3
2
  import { assertCanonicalEvent, assertFailureEnvelope } from "./index.js";
4
3
  import { safeCapacityEvidence, isCodexLocalFailure, isWorkdirFailureReason } from "./failure.js";
5
4
  import { isStreamCapacityReason } from "./stream-limits.js";
@@ -74,17 +73,6 @@ export function assertHostControl(value) {
74
73
  assertProtocolJson(value, "HOST_CONTROL_INVALID");
75
74
  if (!isRecord(value))
76
75
  throw protocolError("HOST_CONTROL_INVALID");
77
- if (value.type === "evidence" &&
78
- value.name === "execution" &&
79
- exactKeys(value, ["type", "name", "payload"])) {
80
- try {
81
- assertExecutionEvidence(value.payload);
82
- }
83
- catch {
84
- throw protocolError("HOST_CONTROL_INVALID");
85
- }
86
- return;
87
- }
88
76
  if (value.type === "evidence" &&
89
77
  exactKeys(value, ["type", "name", "payload"]) &&
90
78
  value.name === "session" &&
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mininglamp-oss/octo-runtime-protocol",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
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.13",
3
+ "version": "1.1.14",
4
4
  "description": "Provider-neutral Agent runtime for unified execution through provider adapters",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,35 +55,35 @@
55
55
  "access": "public"
56
56
  },
57
57
  "dependencies": {
58
- "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.13",
59
- "@mininglamp-oss/octo-runtime-protocol": "1.1.13",
58
+ "@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.14",
59
+ "@mininglamp-oss/octo-runtime-protocol": "1.1.14",
60
60
  "import-meta-resolve": "4.2.0",
61
- "@mininglamp-oss/octo-runtime-client": "1.1.13",
61
+ "@mininglamp-oss/octo-runtime-client": "1.1.14",
62
62
  "commander": "15.0.0",
63
- "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.13",
63
+ "@mininglamp-oss/octo-runtime-adapter-dsh": "1.1.14",
64
64
  "semver": "7.8.6",
65
- "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.13",
66
- "@mininglamp-oss/octo-runtime-acp-client": "1.1.13",
67
- "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.13",
68
- "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.13",
69
- "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.13",
70
- "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.13",
71
- "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.13",
72
- "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.13",
73
- "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.13",
74
- "@mininglamp-oss/octo-runtime-executor-core": "1.1.13",
75
- "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.13",
76
- "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.13",
77
- "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.13",
65
+ "@mininglamp-oss/octo-runtime-adapter-acp": "1.1.14",
66
+ "@mininglamp-oss/octo-runtime-acp-client": "1.1.14",
67
+ "@mininglamp-oss/octo-runtime-adapter-antigravity": "1.1.14",
68
+ "@mininglamp-oss/octo-runtime-adapter-claude-code": "1.1.14",
69
+ "@mininglamp-oss/octo-runtime-adapter-codebuddy": "1.1.14",
70
+ "@mininglamp-oss/octo-runtime-adapter-codex": "1.1.14",
71
+ "@mininglamp-oss/octo-runtime-adapter-hermes": "1.1.14",
72
+ "@mininglamp-oss/octo-runtime-adapter-grok-build": "1.1.14",
73
+ "@mininglamp-oss/octo-runtime-executor-kernel": "1.1.14",
74
+ "@mininglamp-oss/octo-runtime-executor-core": "1.1.14",
75
+ "@mininglamp-oss/octo-runtime-adapter-kimi-code": "1.1.14",
76
+ "@mininglamp-oss/octo-runtime-adapter-mcode": "1.1.14",
77
+ "@mininglamp-oss/octo-runtime-adapter-openclaw": "1.1.14",
78
78
  "ws": "8.22.1",
79
- "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.13",
80
- "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.13",
81
- "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.13",
82
- "@mininglamp-oss/octo-runtime-cross-service": "1.1.13",
79
+ "@mininglamp-oss/octo-runtime-adapter-opencode": "1.1.14",
80
+ "@mininglamp-oss/octo-runtime-adapter-qodercli": "1.1.14",
81
+ "@mininglamp-oss/octo-runtime-adapter-qoderclicn": "1.1.14",
82
+ "@mininglamp-oss/octo-runtime-cross-service": "1.1.14",
83
83
  "iconv-lite": "0.7.3",
84
84
  "safer-buffer": "2.1.2",
85
- "@mininglamp-oss/octo-runtime-host-sdk": "1.1.13",
86
- "@mininglamp-oss/octo-runtime-cli": "1.1.13",
85
+ "@mininglamp-oss/octo-runtime-host-sdk": "1.1.14",
86
+ "@mininglamp-oss/octo-runtime-cli": "1.1.14",
87
87
  "json5": "2.2.3"
88
88
  },
89
89
  "bundleDependencies": [