@openclaw/codex 2026.8.1-beta.3 → 2026.9.1-beta.1

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 (54) hide show
  1. package/dist/api.js +3 -3
  2. package/dist/{attempt-client-cleanup-URjUlCHg.js → attempt-client-cleanup-bfsmcQ6m.js} +21 -2
  3. package/dist/{binding-connection-DAvZwp96.js → binding-connection-BMvPX73o.js} +2 -2
  4. package/dist/{bounded-turn-4BjrZEwW.js → bounded-turn-B7iBUcuP.js} +8 -8
  5. package/dist/{capabilities-CH3K57v4.js → capabilities-BRMh0aIq.js} +1 -1
  6. package/dist/cli-metadata.js +1 -1
  7. package/dist/{command-formatters-D0nZ3qtd.js → command-formatters-DEsIufkt.js} +2 -2
  8. package/dist/{command-handlers-DC86lgT4.js → command-handlers-D_-1_qRp.js} +43 -32
  9. package/dist/{command-rpc-xUIIonsO.js → command-rpc-CCeCkf_v.js} +4 -4
  10. package/dist/{compact-COqgBRny.js → compact-BglNFZrQ.js} +8 -8
  11. package/dist/{config-CpNeo5AE.js → config-giW8X0QA.js} +82 -28
  12. package/dist/doctor-contract-api.js +9 -8
  13. package/dist/{dynamic-tools-fJZhl4CE.js → dynamic-tools-Dnlfa--w.js} +108 -820
  14. package/dist/{effective-mcp-catalog-4YKn51aG.js → effective-mcp-catalog-CTeGrnfO.js} +2 -2
  15. package/dist/{event-projector-assistant-message-BwxV4d6N.js → event-projector-assistant-message-C5-Ds8mA.js} +18 -1
  16. package/dist/{event-projector-usage-CLwNEJqW.js → event-projector-usage-Bk1I90Bg.js} +3 -3
  17. package/dist/{harness-DoKQcF8n.js → harness-Csz0F-DK.js} +11 -11
  18. package/dist/harness.js +1 -1
  19. package/dist/index.js +130 -172
  20. package/dist/{isolated-completion-DPMtlH9r.js → isolated-completion-Cv6FqygM.js} +4 -4
  21. package/dist/{managed-binary-By4FZC6i.js → managed-binary-DFYK4DWq.js} +43 -7
  22. package/dist/media-understanding-provider.js +1 -1
  23. package/dist/{model-catalog-CmGoqVKB.js → model-catalog-i9rNBthX.js} +4 -4
  24. package/dist/{models-CZw1wClT.js → models-TS3HBU-q.js} +4 -3
  25. package/dist/{native-subagent-monitor-GGq3RnOo.js → native-subagent-monitor-4Mfq2HDs.js} +176 -19
  26. package/dist/{node-exec-server.runtime-Bsu1LdFZ.js → node-exec-server.runtime-BpWqJO1V.js} +2 -2
  27. package/dist/{plugin-app-cache-key-DMNQ8Zi8.js → plugin-app-cache-key-C1CAdfcP.js} +6 -3
  28. package/dist/{plugin-approval-roundtrip-C75Yiiwc.js → plugin-approval-roundtrip-bUm777tR.js} +1 -1
  29. package/dist/{plugin-marketplace-discovery-CSWDkMrP.js → plugin-marketplace-discovery-B9DvaAG-.js} +29 -38
  30. package/dist/{plugin-metadata-cache-BXH5NF-4.js → plugin-metadata-cache-CTCT3w5L.js} +162 -135
  31. package/dist/{protocol-validators-VAVyEnDp.js → protocol-validators-VeJxxJ0U.js} +25 -3
  32. package/dist/{rate-limits-BI1dMHDG.js → rate-limits-C5_D8Gmb.js} +1 -1
  33. package/dist/{request-DSK0W6YI.js → request-DXXGHko0.js} +2 -2
  34. package/dist/{run-attempt-BV3HzuCf.js → run-attempt-DYc0QCBF.js} +346 -267
  35. package/dist/{sandbox-guard-C1qEeZ5C.js → sandbox-guard-kuWTn9C5.js} +1 -1
  36. package/dist/{session-binding-BTrLf9Qm.js → session-binding-Bcynfd-_.js} +1 -1
  37. package/dist/{session-catalog-ezP_UcRM.js → session-catalog-DaLKVtpH.js} +17 -16
  38. package/dist/{session-cli-B1hKvfkI.js → session-cli-DMc4oS2w.js} +1 -1
  39. package/dist/session-permission-policy-BrNH1bjy.js +160 -0
  40. package/dist/{session-retirement-CE4iMiLh.js → session-retirement-CcNC3YSY.js} +3 -3
  41. package/dist/{session-upstream-marker-D_2npHlA.js → session-upstream-marker-BIkusb95.js} +1 -1
  42. package/dist/{settled-turn-finalizer-Dx1onIqg.js → settled-turn-finalizer-Dc3ApjU4.js} +4 -4
  43. package/dist/{shared-client-Dw-rzii0.js → shared-client-DKz23hHY.js} +1026 -248
  44. package/dist/{side-question-DbXkJZzg.js → side-question-DjA_jsNe.js} +65 -36
  45. package/dist/{thread-lifecycle-DKdrnTMX.js → thread-lifecycle-L7oEkTlq.js} +850 -35
  46. package/dist/{thread-ownership-i2NBwDUL.js → thread-ownership-DZeuKH1j.js} +2 -2
  47. package/dist/{thread-resume-CdJk2Ehf.js → thread-resume-BE9qNEW0.js} +3 -3
  48. package/dist/{transcript-mirror-BU0_LKAL.js → transcript-mirror-DsCMWBca.js} +91 -10
  49. package/dist/{upstream-session-fork-BDVJCLAD.js → upstream-session-fork-DlaHxSLC.js} +3 -3
  50. package/dist/{usage-9dKJCgcy.js → usage-ROIaW3wo.js} +3 -3
  51. package/dist/{web-search-provider.runtime-DCdx4DGu.js → web-search-provider.runtime-ClaNPV7N.js} +3 -3
  52. package/openclaw.plugin.json +18 -1
  53. package/package.json +8 -8
  54. package/dist/app-server-policy-bg5QPSVP.js +0 -25
@@ -1,5 +1,5 @@
1
- import { d as retainSharedCodexAppServerClientByInstanceId } from "./shared-client-Dw-rzii0.js";
2
- import { d as sessionBindingIdentity } from "./session-binding-BTrLf9Qm.js";
1
+ import { h as retainSharedCodexAppServerClientByInstanceId } from "./shared-client-DKz23hHY.js";
2
+ import { d as sessionBindingIdentity } from "./session-binding-Bcynfd-_.js";
3
3
  import { asOptionalRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { assignMcpCatalogSafeServerNames } from "openclaw/plugin-sdk/agent-harness-runtime";
5
5
  //#region extensions/codex/src/app-server/effective-mcp-catalog.ts
@@ -69,6 +69,23 @@ function createAssistantCommentaryMessage(params, text, itemId, timestamp) {
69
69
  }
70
70
  };
71
71
  }
72
+ function createAssistantAsyncMessage(params, text, itemId, timestamp) {
73
+ const attribution = resolveCodexLocalRuntimeAttribution(params);
74
+ return {
75
+ role: "assistant",
76
+ content: [{
77
+ type: "text",
78
+ text
79
+ }],
80
+ api: attribution.api ?? "openai-chatgpt-responses",
81
+ provider: attribution.provider,
82
+ model: params.modelId,
83
+ usage: ZERO_USAGE,
84
+ stopReason: "stop",
85
+ timestamp,
86
+ openclawAsyncDelivery: { itemId }
87
+ };
88
+ }
72
89
  function createAssistantMirrorMessage(params, title, text) {
73
90
  const attribution = resolveCodexLocalRuntimeAttribution(params);
74
91
  return {
@@ -86,4 +103,4 @@ function createAssistantMirrorMessage(params, title, text) {
86
103
  };
87
104
  }
88
105
  //#endregion
89
- export { createAttributedCodexAssistantMessage as i, createAssistantMessage as n, createAssistantMirrorMessage as r, createAssistantCommentaryMessage as t };
106
+ export { createAttributedCodexAssistantMessage as a, createAssistantMirrorMessage as i, createAssistantCommentaryMessage as n, createAssistantMessage as r, createAssistantAsyncMessage as t };
@@ -1,4 +1,4 @@
1
- import { ut as isJsonObject } from "./shared-client-Dw-rzii0.js";
1
+ import { vt as isJsonObject } from "./shared-client-DKz23hHY.js";
2
2
  import { asSafeIntegerInRange, readStringField } from "openclaw/plugin-sdk/string-coerce-runtime";
3
3
  import { normalizeUsage } from "openclaw/plugin-sdk/agent-harness-runtime";
4
4
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -61,7 +61,7 @@ function isCompletedAssistantNotification(notification) {
61
61
  if (!isJsonObject(notification.params)) return false;
62
62
  if (notification.method !== "item/completed") return false;
63
63
  const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
64
- return Boolean(item && readStringField(item, "type") === "agentMessage" && readStringField(item, "phase") !== "commentary");
64
+ return Boolean(item && readStringField(item, "type") === "agentMessage" && readStringField(item, "phase") !== "commentary" && readStringField(item, "delivery") !== "async");
65
65
  }
66
66
  /** Returns true for completed app-server reasoning items. */
67
67
  function isReasoningItemCompletionNotification(notification) {
@@ -73,7 +73,7 @@ function isReasoningItemCompletionNotification(notification) {
73
73
  function isAssistantCommentaryCompletionNotification(notification) {
74
74
  if (!isJsonObject(notification.params) || notification.method !== "item/completed") return false;
75
75
  const item = isJsonObject(notification.params.item) ? notification.params.item : void 0;
76
- return Boolean(item && readStringField(item, "type") === "agentMessage" && readStringField(item, "phase") === "commentary");
76
+ return Boolean(item && readStringField(item, "type") === "agentMessage" && (readStringField(item, "phase") === "commentary" || readStringField(item, "delivery") === "async"));
77
77
  }
78
78
  /** Returns true for completed raw response reasoning items. */
79
79
  function isRawReasoningCompletionNotification(notification) {
@@ -99,7 +99,7 @@ function createCodexAppServerAgentHarness(options) {
99
99
  ...sessionCatalogControlFactory && sessionRuntime ? { sessionFork: {
100
100
  upstreamKinds: ["codex-app-server"],
101
101
  fork: async (params) => {
102
- const { forkCodexUpstreamSession } = await import("./upstream-session-fork-BDVJCLAD.js");
102
+ const { forkCodexUpstreamSession } = await import("./upstream-session-fork-DlaHxSLC.js");
103
103
  return await forkCodexUpstreamSession(params, {
104
104
  bindingStore: options.bindingStore,
105
105
  controlFactory: sessionCatalogControlFactory,
@@ -118,15 +118,15 @@ function createCodexAppServerAgentHarness(options) {
118
118
  return validateCodexAppServerRuntimeArtifact(binding);
119
119
  } },
120
120
  fetchUsageSnapshot: async (ctx) => {
121
- const { fetchCodexAppServerUsageSnapshot } = await import("./usage-9dKJCgcy.js");
121
+ const { fetchCodexAppServerUsageSnapshot } = await import("./usage-ROIaW3wo.js");
122
122
  return await fetchCodexAppServerUsageSnapshot(ctx, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
123
123
  },
124
124
  loadModelCatalog: async (params) => {
125
- const { loadCodexAppServerModelCatalog } = await import("./model-catalog-CmGoqVKB.js");
125
+ const { loadCodexAppServerModelCatalog } = await import("./model-catalog-i9rNBthX.js");
126
126
  return await loadCodexAppServerModelCatalog(params, resolveAttemptPluginConfig(params.config));
127
127
  },
128
128
  loadMcpToolCatalog: async (params) => {
129
- const { loadCodexEffectiveMcpCatalog } = await import("./effective-mcp-catalog-4YKn51aG.js");
129
+ const { loadCodexEffectiveMcpCatalog } = await import("./effective-mcp-catalog-CTeGrnfO.js");
130
130
  return await loadCodexEffectiveMcpCatalog(params, { bindingStore: options.bindingStore });
131
131
  },
132
132
  supports: (ctx) => {
@@ -169,7 +169,7 @@ function createCodexAppServerAgentHarness(options) {
169
169
  };
170
170
  },
171
171
  runAttempt: async (params) => {
172
- const { runCodexAppServerAttempt } = await import("./run-attempt-BV3HzuCf.js");
172
+ const { runCodexAppServerAttempt } = await import("./run-attempt-DYc0QCBF.js");
173
173
  return runCodexAppServerAttempt(params, {
174
174
  bindingStore: options.bindingStore,
175
175
  pluginConfig: resolveAttemptPluginConfig(params.config),
@@ -188,18 +188,18 @@ function createCodexAppServerAgentHarness(options) {
188
188
  ...authorization.sourceAuthFingerprint ? { sourceAuthFingerprint: authorization.sourceAuthFingerprint } : {}
189
189
  });
190
190
  }
191
- const { runCodexIsolatedCompletion } = await import("./isolated-completion-DPMtlH9r.js");
191
+ const { runCodexIsolatedCompletion } = await import("./isolated-completion-Cv6FqygM.js");
192
192
  return runCodexIsolatedCompletion(params, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
193
193
  },
194
194
  runIsolatedCompletion: async (params) => {
195
195
  return runCodexHostPreparedIsolatedCompletion(params);
196
196
  },
197
197
  finalizeSettledTurn: async (params) => {
198
- const { runCodexSettledTurnFinalization } = await import("./settled-turn-finalizer-Dx1onIqg.js");
198
+ const { runCodexSettledTurnFinalization } = await import("./settled-turn-finalizer-Dc3ApjU4.js");
199
199
  return runCodexSettledTurnFinalization(params, { pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig });
200
200
  },
201
201
  runSideQuestion: async (params) => {
202
- const { runCodexAppServerSideQuestion } = await import("./side-question-DbXkJZzg.js");
202
+ const { runCodexAppServerSideQuestion } = await import("./side-question-DjA_jsNe.js");
203
203
  return runCodexAppServerSideQuestion(params, {
204
204
  bindingStore: options.bindingStore,
205
205
  pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig,
@@ -209,7 +209,7 @@ function createCodexAppServerAgentHarness(options) {
209
209
  });
210
210
  },
211
211
  compact: async (params) => {
212
- const { maybeCompactCodexAppServerSession } = await import("./compact-COqgBRny.js");
212
+ const { maybeCompactCodexAppServerSession } = await import("./compact-BglNFZrQ.js");
213
213
  return maybeCompactCodexAppServerSession(params, {
214
214
  bindingStore: options.bindingStore,
215
215
  pluginConfig: options?.resolvePluginConfig?.() ?? options?.pluginConfig
@@ -217,7 +217,7 @@ function createCodexAppServerAgentHarness(options) {
217
217
  },
218
218
  reset: async (params) => {
219
219
  if (params.sessionId) {
220
- const [{ reclaimCurrentCodexSessionGeneration, sessionBindingIdentity }, { retireCodexAppServerSessionGeneration }] = await Promise.all([import("./session-binding-BTrLf9Qm.js").then((n) => n.f), import("./session-retirement-CE4iMiLh.js")]);
220
+ const [{ reclaimCurrentCodexSessionGeneration, sessionBindingIdentity }, { retireCodexAppServerSessionGeneration }] = await Promise.all([import("./session-binding-Bcynfd-_.js").then((n) => n.f), import("./session-retirement-CcNC3YSY.js")]);
221
221
  const identity = sessionBindingIdentity({
222
222
  agentId: params.agentId,
223
223
  sessionId: params.sessionId,
@@ -245,7 +245,7 @@ function createCodexAppServerAgentHarness(options) {
245
245
  /** Creates the private native-compaction bridge registered in host-owned capability state. */
246
246
  function createCodexAppServerNativeCompaction(options) {
247
247
  return async (params) => {
248
- const { maybeCompactCodexAppServerSession } = await import("./compact-COqgBRny.js");
248
+ const { maybeCompactCodexAppServerSession } = await import("./compact-BglNFZrQ.js");
249
249
  return maybeCompactCodexAppServerSession(params, {
250
250
  bindingStore: options.bindingStore,
251
251
  pluginConfig: options.resolvePluginConfig?.() ?? options.pluginConfig,
package/dist/harness.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as createCodexAppServerNativeCompaction, t as createCodexAppServerAgentHarness } from "./harness-DoKQcF8n.js";
1
+ import { n as createCodexAppServerNativeCompaction, t as createCodexAppServerAgentHarness } from "./harness-Csz0F-DK.js";
2
2
  export { createCodexAppServerAgentHarness, createCodexAppServerNativeCompaction };