@openclaw/codex 2026.5.7 → 2026.5.10-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.
@@ -192,6 +192,7 @@ var ModelListResponse_default = {
192
192
  ],
193
193
  "properties": {
194
194
  "additionalSpeedTiers": {
195
+ "description": "Deprecated: use `serviceTiers` instead.",
195
196
  "default": [],
196
197
  "type": "array",
197
198
  "items": { "type": "string" }
@@ -209,6 +210,11 @@ var ModelListResponse_default = {
209
210
  },
210
211
  "isDefault": { "type": "boolean" },
211
212
  "model": { "type": "string" },
213
+ "serviceTiers": {
214
+ "default": [],
215
+ "type": "array",
216
+ "items": { "$ref": "#/definitions/ModelServiceTier" }
217
+ },
212
218
  "supportedReasoningEfforts": {
213
219
  "type": "array",
214
220
  "items": { "$ref": "#/definitions/ReasoningEffortOption" }
@@ -226,6 +232,19 @@ var ModelListResponse_default = {
226
232
  "required": ["message"],
227
233
  "properties": { "message": { "type": "string" } }
228
234
  },
235
+ "ModelServiceTier": {
236
+ "type": "object",
237
+ "required": [
238
+ "description",
239
+ "id",
240
+ "name"
241
+ ],
242
+ "properties": {
243
+ "description": { "type": "string" },
244
+ "id": { "type": "string" },
245
+ "name": { "type": "string" }
246
+ }
247
+ },
229
248
  "ModelUpgradeInfo": {
230
249
  "type": "object",
231
250
  "required": ["model"],
@@ -303,7 +322,7 @@ var ThreadResumeResponse_default = {
303
322
  "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
304
323
  "allOf": [{ "$ref": "#/definitions/SandboxPolicy" }]
305
324
  },
306
- "serviceTier": { "anyOf": [{ "$ref": "#/definitions/ServiceTier" }, { "type": "null" }] },
325
+ "serviceTier": { "type": ["string", "null"] },
307
326
  "thread": { "$ref": "#/definitions/Thread" }
308
327
  },
309
328
  definitions: {
@@ -1091,10 +1110,6 @@ var ThreadResumeResponse_default = {
1091
1110
  "title": "WorkspaceWriteSandboxPolicy"
1092
1111
  }
1093
1112
  ] },
1094
- "ServiceTier": {
1095
- "type": "string",
1096
- "enum": ["fast", "flex"]
1097
- },
1098
1113
  "SessionSource": { "oneOf": [
1099
1114
  {
1100
1115
  "type": "string",
@@ -1191,6 +1206,7 @@ var ThreadResumeResponse_default = {
1191
1206
  "id",
1192
1207
  "modelProvider",
1193
1208
  "preview",
1209
+ "sessionId",
1194
1210
  "source",
1195
1211
  "status",
1196
1212
  "turns",
@@ -1247,6 +1263,10 @@ var ThreadResumeResponse_default = {
1247
1263
  "description": "Usually the first user message in the thread, if available.",
1248
1264
  "type": "string"
1249
1265
  },
1266
+ "sessionId": {
1267
+ "description": "Session id shared by threads that belong to the same session tree.",
1268
+ "type": "string"
1269
+ },
1250
1270
  "source": {
1251
1271
  "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
1252
1272
  "allOf": [{ "$ref": "#/definitions/SessionSource" }]
@@ -1255,6 +1275,10 @@ var ThreadResumeResponse_default = {
1255
1275
  "description": "Current runtime status for the thread.",
1256
1276
  "allOf": [{ "$ref": "#/definitions/ThreadStatus" }]
1257
1277
  },
1278
+ "threadSource": {
1279
+ "description": "Optional analytics source classification for this thread.",
1280
+ "anyOf": [{ "$ref": "#/definitions/ThreadSource" }, { "type": "null" }]
1281
+ },
1258
1282
  "turns": {
1259
1283
  "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
1260
1284
  "type": "array",
@@ -1694,6 +1718,14 @@ var ThreadResumeResponse_default = {
1694
1718
  "title": "ContextCompactionThreadItem"
1695
1719
  }
1696
1720
  ] },
1721
+ "ThreadSource": {
1722
+ "type": "string",
1723
+ "enum": [
1724
+ "user",
1725
+ "subagent",
1726
+ "memory_consolidation"
1727
+ ]
1728
+ },
1697
1729
  "ThreadStatus": { "oneOf": [
1698
1730
  {
1699
1731
  "type": "object",
@@ -1766,10 +1798,15 @@ var ThreadResumeResponse_default = {
1766
1798
  },
1767
1799
  "id": { "type": "string" },
1768
1800
  "items": {
1769
- "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
1801
+ "description": "Thread items currently included in this turn payload.",
1770
1802
  "type": "array",
1771
1803
  "items": { "$ref": "#/definitions/ThreadItem" }
1772
1804
  },
1805
+ "itemsView": {
1806
+ "description": "Describes how much of `items` has been loaded for this turn.",
1807
+ "default": "full",
1808
+ "allOf": [{ "$ref": "#/definitions/TurnItemsView" }]
1809
+ },
1773
1810
  "startedAt": {
1774
1811
  "description": "Unix timestamp (in seconds) when the turn started.",
1775
1812
  "type": ["integer", "null"],
@@ -1790,6 +1827,23 @@ var ThreadResumeResponse_default = {
1790
1827
  "message": { "type": "string" }
1791
1828
  }
1792
1829
  },
1830
+ "TurnItemsView": { "oneOf": [
1831
+ {
1832
+ "description": "`items` was not loaded for this turn. The field is intentionally empty.",
1833
+ "type": "string",
1834
+ "enum": ["notLoaded"]
1835
+ },
1836
+ {
1837
+ "description": "`items` contains only a display summary for this turn.",
1838
+ "type": "string",
1839
+ "enum": ["summary"]
1840
+ },
1841
+ {
1842
+ "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
1843
+ "type": "string",
1844
+ "enum": ["full"]
1845
+ }
1846
+ ] },
1793
1847
  "TurnStatus": {
1794
1848
  "type": "string",
1795
1849
  "enum": [
@@ -1985,7 +2039,7 @@ var ThreadStartResponse_default = {
1985
2039
  "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
1986
2040
  "allOf": [{ "$ref": "#/definitions/SandboxPolicy" }]
1987
2041
  },
1988
- "serviceTier": { "anyOf": [{ "$ref": "#/definitions/ServiceTier" }, { "type": "null" }] },
2042
+ "serviceTier": { "type": ["string", "null"] },
1989
2043
  "thread": { "$ref": "#/definitions/Thread" }
1990
2044
  },
1991
2045
  definitions: {
@@ -2773,10 +2827,6 @@ var ThreadStartResponse_default = {
2773
2827
  "title": "WorkspaceWriteSandboxPolicy"
2774
2828
  }
2775
2829
  ] },
2776
- "ServiceTier": {
2777
- "type": "string",
2778
- "enum": ["fast", "flex"]
2779
- },
2780
2830
  "SessionSource": { "oneOf": [
2781
2831
  {
2782
2832
  "type": "string",
@@ -2873,6 +2923,7 @@ var ThreadStartResponse_default = {
2873
2923
  "id",
2874
2924
  "modelProvider",
2875
2925
  "preview",
2926
+ "sessionId",
2876
2927
  "source",
2877
2928
  "status",
2878
2929
  "turns",
@@ -2929,6 +2980,10 @@ var ThreadStartResponse_default = {
2929
2980
  "description": "Usually the first user message in the thread, if available.",
2930
2981
  "type": "string"
2931
2982
  },
2983
+ "sessionId": {
2984
+ "description": "Session id shared by threads that belong to the same session tree.",
2985
+ "type": "string"
2986
+ },
2932
2987
  "source": {
2933
2988
  "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
2934
2989
  "allOf": [{ "$ref": "#/definitions/SessionSource" }]
@@ -2937,6 +2992,10 @@ var ThreadStartResponse_default = {
2937
2992
  "description": "Current runtime status for the thread.",
2938
2993
  "allOf": [{ "$ref": "#/definitions/ThreadStatus" }]
2939
2994
  },
2995
+ "threadSource": {
2996
+ "description": "Optional analytics source classification for this thread.",
2997
+ "anyOf": [{ "$ref": "#/definitions/ThreadSource" }, { "type": "null" }]
2998
+ },
2940
2999
  "turns": {
2941
3000
  "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
2942
3001
  "type": "array",
@@ -3376,6 +3435,14 @@ var ThreadStartResponse_default = {
3376
3435
  "title": "ContextCompactionThreadItem"
3377
3436
  }
3378
3437
  ] },
3438
+ "ThreadSource": {
3439
+ "type": "string",
3440
+ "enum": [
3441
+ "user",
3442
+ "subagent",
3443
+ "memory_consolidation"
3444
+ ]
3445
+ },
3379
3446
  "ThreadStatus": { "oneOf": [
3380
3447
  {
3381
3448
  "type": "object",
@@ -3448,10 +3515,15 @@ var ThreadStartResponse_default = {
3448
3515
  },
3449
3516
  "id": { "type": "string" },
3450
3517
  "items": {
3451
- "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
3518
+ "description": "Thread items currently included in this turn payload.",
3452
3519
  "type": "array",
3453
3520
  "items": { "$ref": "#/definitions/ThreadItem" }
3454
3521
  },
3522
+ "itemsView": {
3523
+ "description": "Describes how much of `items` has been loaded for this turn.",
3524
+ "default": "full",
3525
+ "allOf": [{ "$ref": "#/definitions/TurnItemsView" }]
3526
+ },
3455
3527
  "startedAt": {
3456
3528
  "description": "Unix timestamp (in seconds) when the turn started.",
3457
3529
  "type": ["integer", "null"],
@@ -3472,6 +3544,23 @@ var ThreadStartResponse_default = {
3472
3544
  "message": { "type": "string" }
3473
3545
  }
3474
3546
  },
3547
+ "TurnItemsView": { "oneOf": [
3548
+ {
3549
+ "description": "`items` was not loaded for this turn. The field is intentionally empty.",
3550
+ "type": "string",
3551
+ "enum": ["notLoaded"]
3552
+ },
3553
+ {
3554
+ "description": "`items` contains only a display summary for this turn.",
3555
+ "type": "string",
3556
+ "enum": ["summary"]
3557
+ },
3558
+ {
3559
+ "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
3560
+ "type": "string",
3561
+ "enum": ["full"]
3562
+ }
3563
+ ] },
3475
3564
  "TurnStatus": {
3476
3565
  "type": "string",
3477
3566
  "enum": [
@@ -4513,10 +4602,15 @@ var TurnCompletedNotification_default = {
4513
4602
  },
4514
4603
  "id": { "type": "string" },
4515
4604
  "items": {
4516
- "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
4605
+ "description": "Thread items currently included in this turn payload.",
4517
4606
  "type": "array",
4518
4607
  "items": { "$ref": "#/definitions/ThreadItem" }
4519
4608
  },
4609
+ "itemsView": {
4610
+ "description": "Describes how much of `items` has been loaded for this turn.",
4611
+ "default": "full",
4612
+ "allOf": [{ "$ref": "#/definitions/TurnItemsView" }]
4613
+ },
4520
4614
  "startedAt": {
4521
4615
  "description": "Unix timestamp (in seconds) when the turn started.",
4522
4616
  "type": ["integer", "null"],
@@ -4537,6 +4631,23 @@ var TurnCompletedNotification_default = {
4537
4631
  "message": { "type": "string" }
4538
4632
  }
4539
4633
  },
4634
+ "TurnItemsView": { "oneOf": [
4635
+ {
4636
+ "description": "`items` was not loaded for this turn. The field is intentionally empty.",
4637
+ "type": "string",
4638
+ "enum": ["notLoaded"]
4639
+ },
4640
+ {
4641
+ "description": "`items` contains only a display summary for this turn.",
4642
+ "type": "string",
4643
+ "enum": ["summary"]
4644
+ },
4645
+ {
4646
+ "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
4647
+ "type": "string",
4648
+ "enum": ["full"]
4649
+ }
4650
+ ] },
4540
4651
  "TurnStatus": {
4541
4652
  "type": "string",
4542
4653
  "enum": [
@@ -5575,10 +5686,15 @@ var TurnStartResponse_default = {
5575
5686
  },
5576
5687
  "id": { "type": "string" },
5577
5688
  "items": {
5578
- "description": "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.",
5689
+ "description": "Thread items currently included in this turn payload.",
5579
5690
  "type": "array",
5580
5691
  "items": { "$ref": "#/definitions/ThreadItem" }
5581
5692
  },
5693
+ "itemsView": {
5694
+ "description": "Describes how much of `items` has been loaded for this turn.",
5695
+ "default": "full",
5696
+ "allOf": [{ "$ref": "#/definitions/TurnItemsView" }]
5697
+ },
5582
5698
  "startedAt": {
5583
5699
  "description": "Unix timestamp (in seconds) when the turn started.",
5584
5700
  "type": ["integer", "null"],
@@ -5599,6 +5715,23 @@ var TurnStartResponse_default = {
5599
5715
  "message": { "type": "string" }
5600
5716
  }
5601
5717
  },
5718
+ "TurnItemsView": { "oneOf": [
5719
+ {
5720
+ "description": "`items` was not loaded for this turn. The field is intentionally empty.",
5721
+ "type": "string",
5722
+ "enum": ["notLoaded"]
5723
+ },
5724
+ {
5725
+ "description": "`items` contains only a display summary for this turn.",
5726
+ "type": "string",
5727
+ "enum": ["summary"]
5728
+ },
5729
+ {
5730
+ "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
5731
+ "type": "string",
5732
+ "enum": ["full"]
5733
+ }
5734
+ ] },
5602
5735
  "TurnStatus": {
5603
5736
  "type": "string",
5604
5737
  "enum": [
package/dist/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CODEX_APP_SERVER_AUTH_MARKER, CODEX_BASE_URL, CODEX_PROVIDER_ID, FALLBACK_CODEX_MODELS, buildCodexModelDefinition, buildCodexProviderConfig } from "./provider-catalog.js";
2
- import { i as resolveCodexAppServerRuntimeOptions, r as readCodexPluginConfig } from "./config-ByrA30No.js";
2
+ import { o as readCodexPluginConfig, s as resolveCodexAppServerRuntimeOptions } from "./config-CT01BBDc.js";
3
3
  import { resolveCodexSystemPromptContribution } from "./prompt-overlay.js";
4
4
  import { resolvePluginConfigObject } from "openclaw/plugin-sdk/plugin-config-runtime";
5
5
  import { createSubsystemLogger } from "openclaw/plugin-sdk/core";
@@ -123,7 +123,7 @@ async function listModelsBestEffort(params) {
123
123
  }
124
124
  }
125
125
  async function listCodexAppServerModelsLazy(options) {
126
- const { listCodexAppServerModels } = await import("./models-CkowdYbm.js").then((n) => n.r);
126
+ const { listCodexAppServerModels } = await import("./models-OtCFiaj_.js").then((n) => n.r);
127
127
  return listCodexAppServerModels(options);
128
128
  }
129
129
  function normalizeTimeoutMs(value) {
@@ -1,20 +1,6 @@
1
- import { a as resolveCodexComputerUseConfig, i as resolveCodexAppServerRuntimeOptions } from "./config-ByrA30No.js";
2
- import { f as describeControlFailure } from "./command-formatters-PiJcdUbu.js";
3
- import { i as withTimeout, n as getSharedCodexAppServerClient } from "./shared-client-Dfk3Enm-.js";
1
+ import { c as resolveCodexComputerUseConfig, s as resolveCodexAppServerRuntimeOptions } from "./config-CT01BBDc.js";
2
+ import { p as describeControlFailure, t as requestCodexAppServerJson } from "./request-DC1Dz3iZ.js";
4
3
  import { existsSync } from "node:fs";
5
- //#region extensions/codex/src/app-server/request.ts
6
- async function requestCodexAppServerJson(params) {
7
- const timeoutMs = params.timeoutMs ?? 6e4;
8
- return await withTimeout((async () => {
9
- return await (await getSharedCodexAppServerClient({
10
- startOptions: params.startOptions,
11
- timeoutMs,
12
- authProfileId: params.authProfileId,
13
- config: params.config
14
- })).request(params.method, params.requestParams, { timeoutMs });
15
- })(), timeoutMs, `codex app-server ${params.method} timed out`);
16
- }
17
- //#endregion
18
4
  //#region extensions/codex/src/app-server/computer-use.ts
19
5
  var CodexComputerUseSetupError = class extends Error {
20
6
  constructor(status) {
@@ -401,4 +387,4 @@ function readRecentCodexRateLimits(options) {
401
387
  return state.value;
402
388
  }
403
389
  //#endregion
404
- export { readCodexComputerUseStatus as a, installCodexComputerUse as i, rememberCodexRateLimits as n, requestCodexAppServerJson as o, ensureCodexComputerUse as r, readRecentCodexRateLimits as t };
390
+ export { readCodexComputerUseStatus as a, installCodexComputerUse as i, rememberCodexRateLimits as n, ensureCodexComputerUse as r, readRecentCodexRateLimits as t };
@@ -1,5 +1,6 @@
1
1
  import { t as isJsonObject } from "./protocol-C9UWI98H.js";
2
- import { n as CodexAppServerRpcError } from "./client-BGbqC7jk.js";
2
+ import { n as CodexAppServerRpcError } from "./client-CTzy3Y6M.js";
3
+ import { i as withTimeout, n as getSharedCodexAppServerClient } from "./shared-client-p-TvEiNL.js";
3
4
  //#region extensions/codex/src/app-server/capabilities.ts
4
5
  const CODEX_CONTROL_METHODS = {
5
6
  account: "account/read",
@@ -334,4 +335,17 @@ function readString(record, key) {
334
335
  return typeof value === "string" && value.trim() ? value.trim() : void 0;
335
336
  }
336
337
  //#endregion
337
- export { formatComputerUseStatus as a, formatThreads as c, CODEX_CONTROL_METHODS as d, describeControlFailure as f, formatCodexStatus as i, readString as l, formatAccount as n, formatList as o, formatCodexDisplayText as r, formatModels as s, buildHelp as t, formatCodexUsageLimitErrorMessage as u };
338
+ //#region extensions/codex/src/app-server/request.ts
339
+ async function requestCodexAppServerJson(params) {
340
+ const timeoutMs = params.timeoutMs ?? 6e4;
341
+ return await withTimeout((async () => {
342
+ return await (await getSharedCodexAppServerClient({
343
+ startOptions: params.startOptions,
344
+ timeoutMs,
345
+ authProfileId: params.authProfileId,
346
+ config: params.config
347
+ })).request(params.method, params.requestParams, { timeoutMs });
348
+ })(), timeoutMs, `codex app-server ${params.method} timed out`);
349
+ }
350
+ //#endregion
351
+ export { formatCodexStatus as a, formatModels as c, formatCodexUsageLimitErrorMessage as d, CODEX_CONTROL_METHODS as f, formatCodexDisplayText as i, formatThreads as l, buildHelp as n, formatComputerUseStatus as o, describeControlFailure as p, formatAccount as r, formatList as s, requestCodexAppServerJson as t, readString as u };