@openclaw/codex 2026.7.1-beta.6 → 2026.7.2-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 (46) hide show
  1. package/README.md +27 -3
  2. package/dist/app-server-policy-DVcxdse_.js +49 -0
  3. package/dist/{attempt-notifications-BGsEIIDI.js → attempt-notifications-DEv9h7iC.js} +1 -1
  4. package/dist/auth-binding-C1czuHPA.js +62 -0
  5. package/dist/capabilities-42Dfn2TV.js +33 -0
  6. package/dist/cli-metadata.js +20 -0
  7. package/dist/{app-server-policy-C968Kgin.js → command-formatters-D6ZlGNmb.js} +8 -51
  8. package/dist/{command-handlers-Dv-pzAmg.js → command-handlers-Cpl9fUWv.js} +163 -60
  9. package/dist/{compact-4mVBriKT.js → compact-FnJmiPNA.js} +40 -10
  10. package/dist/computer-use-DVzr8OP1.js +685 -0
  11. package/dist/{config-CYEDnLJ2.js → config-c48K5HP9.js} +200 -29
  12. package/dist/conversation-control-DtQ-E7mr.js +288 -0
  13. package/dist/doctor-contract-api.js +120 -81
  14. package/dist/{provider-capabilities-CDnHbmUZ.js → dynamic-tools-BMLoaTeG.js} +5246 -5140
  15. package/dist/harness.js +55 -15
  16. package/dist/index.js +1435 -265
  17. package/dist/{media-understanding-provider-BHOu9-Gg.js → media-understanding-provider-D580L0P8.js} +28 -10
  18. package/dist/media-understanding-provider.js +1 -1
  19. package/dist/{models-DDmO1zwd.js → models-DuKzZA6G.js} +1 -1
  20. package/dist/notification-correlation-DfaCm0mx.js +67 -0
  21. package/dist/plugin-app-cache-key-BKNjHMEs.js +315 -0
  22. package/dist/{protocol-2POPqAY4.js → protocol-BMifTfdW.js} +3 -1
  23. package/dist/provider-catalog.js +66 -27
  24. package/dist/provider.js +306 -1
  25. package/dist/{provider-zjPfx5Fs.js → rate-limits-Dhp04Rqo.js} +4 -261
  26. package/dist/request-DborTWgw.js +111 -0
  27. package/dist/{run-attempt-FUyOjGCV.js → run-attempt-VPVJoYDP.js} +7897 -7136
  28. package/dist/runtime-artifact-C2ITXdhM.js +488 -0
  29. package/dist/{sandbox-guard-DA2TQfZW.js → sandbox-guard-D1Wky__S.js} +10 -1
  30. package/dist/{session-binding-C1ZXdP-x.js → session-binding-BMfX1OX-.js} +247 -88
  31. package/dist/session-catalog-7H112Tr_.js +2396 -0
  32. package/dist/session-cli-B28RhCyp.js +175 -0
  33. package/dist/{shared-client-4ICy3U6d.js → shared-client-D4mFI9al.js} +1997 -1297
  34. package/dist/{side-question-N4OaDer2.js → side-question-CgJBz52s.js} +135 -67
  35. package/dist/{thread-lifecycle-qWE88Dn2.js → thread-lifecycle-BgLXzjvV.js} +747 -317
  36. package/dist/transcript-mirror-DhLwFIL4.js +485 -0
  37. package/dist/transport-stdio-DXgGZ7Ib.js +88 -0
  38. package/dist/{web-search-provider.runtime-BSlriav6.js → web-search-provider.runtime-Bs-eTn5U.js} +3 -3
  39. package/npm-shrinkwrap.json +56 -30
  40. package/openclaw.plugin.json +168 -10
  41. package/package.json +8 -6
  42. package/dist/command-rpc-eLM_mtC7.js +0 -784
  43. package/dist/computer-use-Bmaz333N.js +0 -377
  44. package/dist/notification-correlation-Bo7KB3ks.js +0 -35
  45. package/dist/plugin-app-cache-key-BrhVdeEf.js +0 -98
  46. package/dist/request-BcJyl8KL.js +0 -36
@@ -0,0 +1,111 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
+ import { a as getLeasedSharedCodexAppServerClient, c as releaseLeasedSharedCodexAppServerClient, d as retireSharedCodexAppServerClientIfCurrent, i as createIsolatedCodexAppServerClient, m as withTimeout, o as isCodexAppServerStartSelectionChangedError } from "./shared-client-D4mFI9al.js";
3
+ import { t as resolveCodexAppServerDirectSandboxBypassBlock } from "./sandbox-guard-D1Wky__S.js";
4
+ //#region extensions/codex/src/app-server/request.ts
5
+ var request_exports = /* @__PURE__ */ __exportAll({
6
+ requestCodexAppServerClientJson: () => requestCodexAppServerClientJson,
7
+ requestCodexAppServerJson: () => requestCodexAppServerJson,
8
+ withCodexAppServerJsonClient: () => withCodexAppServerJsonClient
9
+ });
10
+ /** Sends one guarded request over a client lease owned by the caller. */
11
+ async function requestCodexAppServerClientJson(params) {
12
+ const sandboxBlock = resolveCodexAppServerDirectSandboxBypassBlock({
13
+ method: params.method,
14
+ requestParams: params.requestParams,
15
+ config: params.config,
16
+ sessionKey: params.sessionKey,
17
+ sessionId: params.sessionId
18
+ });
19
+ if (sandboxBlock) throw new Error(sandboxBlock);
20
+ const timeoutMs = params.timeoutMs ?? 6e4;
21
+ return await withTimeout(params.client.request(params.method, params.requestParams, { timeoutMs }), timeoutMs, `codex app-server ${params.method} timed out`);
22
+ }
23
+ async function requestCodexAppServerJson(params) {
24
+ const sandboxBlock = resolveCodexAppServerDirectSandboxBypassBlock({
25
+ method: params.method,
26
+ requestParams: params.requestParams,
27
+ config: params.config,
28
+ sessionKey: params.sessionKey,
29
+ sessionId: params.sessionId
30
+ });
31
+ if (sandboxBlock) throw new Error(sandboxBlock);
32
+ return await withCodexAppServerJsonClient({
33
+ ...params,
34
+ timeoutMessage: `codex app-server ${params.method} timed out`
35
+ }, async (request) => await request({
36
+ method: params.method,
37
+ requestParams: params.requestParams
38
+ }));
39
+ }
40
+ /**
41
+ * Runs several guarded requests over one acquired client (shared lease or
42
+ * isolated child) so related reads see the same app-server session. The whole
43
+ * callback re-runs once when the client's start selection changed underneath it.
44
+ */
45
+ async function withCodexAppServerJsonClient(params, run) {
46
+ const timeoutMs = params.timeoutMs ?? 6e4;
47
+ const timeoutMessage = params.timeoutMessage ?? "codex app-server request timed out";
48
+ const timeoutController = new AbortController();
49
+ const deadline = Number.isFinite(timeoutMs) && timeoutMs > 0 ? Date.now() + timeoutMs : void 0;
50
+ const isPastDeadline = () => deadline !== void 0 && Date.now() >= deadline;
51
+ const throwIfAbandoned = () => {
52
+ if (timeoutController.signal.aborted || isPastDeadline()) throw new Error(timeoutMessage);
53
+ };
54
+ const remainingTimeoutMs = () => {
55
+ throwIfAbandoned();
56
+ return deadline === void 0 ? timeoutMs : Math.max(1, deadline - Date.now());
57
+ };
58
+ try {
59
+ return await withTimeout((async () => {
60
+ for (let attempt = 0; attempt < 2; attempt += 1) {
61
+ throwIfAbandoned();
62
+ const client = await (params.isolated ? createIsolatedCodexAppServerClient : getLeasedSharedCodexAppServerClient)({
63
+ startOptions: params.startOptions,
64
+ pluginConfig: params.pluginConfig,
65
+ timeoutMs: remainingTimeoutMs(),
66
+ authProfileId: params.authProfileId,
67
+ agentDir: params.agentDir,
68
+ config: params.config,
69
+ abandonSignal: timeoutController.signal
70
+ });
71
+ try {
72
+ throwIfAbandoned();
73
+ const scopedRequest = async (request) => {
74
+ const sandboxBlock = resolveCodexAppServerDirectSandboxBypassBlock({
75
+ method: request.method,
76
+ requestParams: request.requestParams,
77
+ config: params.config,
78
+ sessionKey: params.sessionKey,
79
+ sessionId: params.sessionId
80
+ });
81
+ if (sandboxBlock) throw new Error(sandboxBlock);
82
+ throwIfAbandoned();
83
+ return await client.request(request.method, request.requestParams, {
84
+ timeoutMs: remainingTimeoutMs(),
85
+ signal: timeoutController.signal
86
+ });
87
+ };
88
+ return await run(scopedRequest);
89
+ } catch (error) {
90
+ if (!isCodexAppServerStartSelectionChangedError(error) || attempt > 0) throw error;
91
+ if (!params.isolated) retireSharedCodexAppServerClientIfCurrent(client);
92
+ throwIfAbandoned();
93
+ } finally {
94
+ if (params.isolated) await client.closeAndWait({
95
+ exitTimeoutMs: params.isolatedShutdown?.exitTimeoutMs ?? 2e3,
96
+ forceKillDelayMs: params.isolatedShutdown?.forceKillDelayMs ?? 250
97
+ });
98
+ else releaseLeasedSharedCodexAppServerClient(client);
99
+ }
100
+ }
101
+ throw new Error("Codex app-server selection retry loop exited unexpectedly");
102
+ })(), timeoutMs, timeoutMessage);
103
+ } catch (error) {
104
+ if (isPastDeadline()) throw new Error(timeoutMessage, { cause: error });
105
+ throw error;
106
+ } finally {
107
+ timeoutController.abort();
108
+ }
109
+ }
110
+ //#endregion
111
+ export { requestCodexAppServerJson as n, request_exports as r, requestCodexAppServerClientJson as t };