@gkorepanov/ccodex 0.4.9 → 0.4.11

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 (220) hide show
  1. package/README.md +1 -1
  2. package/config/compatibility.json +3 -3
  3. package/dist/claude/goalTools.js +1 -1
  4. package/dist/claude/goalTools.js.map +1 -1
  5. package/dist/claude/hookMapper.d.ts +1 -0
  6. package/dist/claude/hookMapper.js +1 -0
  7. package/dist/claude/hookMapper.js.map +1 -1
  8. package/dist/claude/inputMapper.js +4 -1
  9. package/dist/claude/inputMapper.js.map +1 -1
  10. package/dist/claude/rateLimits.d.ts +1 -0
  11. package/dist/claude/rateLimits.js +2 -1
  12. package/dist/claude/rateLimits.js.map +1 -1
  13. package/dist/claude/service.d.ts +13 -1
  14. package/dist/claude/service.js +156 -21
  15. package/dist/claude/service.js.map +1 -1
  16. package/dist/claude/session/commands.d.ts +3 -0
  17. package/dist/claude/session/goalState.js +9 -0
  18. package/dist/claude/session/goalState.js.map +1 -1
  19. package/dist/claude/session/repository.d.ts +1 -1
  20. package/dist/claude/session/repository.js +2 -2
  21. package/dist/claude/session/repository.js.map +1 -1
  22. package/dist/claude/session/scopeState.js +3 -1
  23. package/dist/claude/session/scopeState.js.map +1 -1
  24. package/dist/claude/session/session.js +13 -2
  25. package/dist/claude/session/session.js.map +1 -1
  26. package/dist/claude/session/usage.js +1 -0
  27. package/dist/claude/session/usage.js.map +1 -1
  28. package/dist/claude/toolMapper.js +2 -2
  29. package/dist/claude/toolMapper.js.map +1 -1
  30. package/dist/codex/generated/ClientRequest.d.ts +20 -0
  31. package/dist/codex/generated/CodexResponseHandoffMode.d.ts +1 -0
  32. package/dist/codex/generated/CodexResponseHandoffMode.js +3 -0
  33. package/dist/codex/generated/CodexResponseHandoffMode.js.map +1 -0
  34. package/dist/codex/generated/ContentItem.d.ts +3 -0
  35. package/dist/codex/generated/FunctionCallOutputContentItem.d.ts +3 -0
  36. package/dist/codex/generated/InputModality.d.ts +1 -1
  37. package/dist/codex/generated/LegacyAppPathString.d.ts +7 -6
  38. package/dist/codex/generated/RealtimeConversationVersion.d.ts +1 -1
  39. package/dist/codex/generated/ResponseItem.d.ts +15 -14
  40. package/dist/codex/generated/ResponseItemId.d.ts +5 -0
  41. package/dist/codex/generated/ResponseItemId.js +3 -0
  42. package/dist/codex/generated/ResponseItemId.js.map +1 -0
  43. package/dist/codex/generated/ResponseItemRuntimeSchema.js +2 -2
  44. package/dist/codex/generated/ResponseItemRuntimeSchema.js.map +1 -1
  45. package/dist/codex/generated/ReviewDecision.d.ts +5 -1
  46. package/dist/codex/generated/ServerNotification.d.ts +11 -0
  47. package/dist/codex/generated/ServerNotificationEnvelope.d.ts +302 -0
  48. package/dist/codex/generated/ServerNotificationEnvelope.js +3 -0
  49. package/dist/codex/generated/ServerNotificationEnvelope.js.map +1 -0
  50. package/dist/codex/generated/SleepItem.d.ts +7 -0
  51. package/dist/codex/generated/SleepItem.js +3 -0
  52. package/dist/codex/generated/SleepItem.js.map +1 -0
  53. package/dist/codex/generated/WebSearchItem.d.ts +8 -0
  54. package/dist/codex/generated/index.d.ts +4 -1
  55. package/dist/codex/generated/index.js.map +1 -1
  56. package/dist/codex/generated/v2/Account.d.ts +1 -2
  57. package/dist/codex/generated/v2/AppToolSummary.d.ts +8 -0
  58. package/dist/codex/generated/v2/AppToolSummary.js +3 -0
  59. package/dist/codex/generated/v2/AppToolSummary.js.map +1 -0
  60. package/dist/codex/generated/v2/AppsInstalledParams.d.ts +14 -0
  61. package/dist/codex/generated/v2/AppsInstalledParams.js +3 -0
  62. package/dist/codex/generated/v2/AppsInstalledParams.js.map +1 -0
  63. package/dist/codex/generated/v2/AppsInstalledResponse.d.ts +7 -0
  64. package/dist/codex/generated/v2/AppsInstalledResponse.js +3 -0
  65. package/dist/codex/generated/v2/AppsInstalledResponse.js.map +1 -0
  66. package/dist/codex/generated/v2/AppsReadParams.d.ts +14 -0
  67. package/dist/codex/generated/v2/AppsReadParams.js +3 -0
  68. package/dist/codex/generated/v2/AppsReadParams.js.map +1 -0
  69. package/dist/codex/generated/v2/AppsReadResponse.d.ts +8 -0
  70. package/dist/codex/generated/v2/AppsReadResponse.js +3 -0
  71. package/dist/codex/generated/v2/AppsReadResponse.js.map +1 -0
  72. package/dist/codex/generated/v2/ConfiguredHookHandler.d.ts +7 -0
  73. package/dist/codex/generated/v2/ConnectorMetadata.d.ts +15 -0
  74. package/dist/codex/generated/v2/ConnectorMetadata.js +3 -0
  75. package/dist/codex/generated/v2/ConnectorMetadata.js.map +1 -0
  76. package/dist/codex/generated/v2/DynamicToolCallOutputContentItem.d.ts +3 -0
  77. package/dist/codex/generated/v2/EnvironmentConnectionNotification.d.ts +4 -0
  78. package/dist/codex/generated/v2/EnvironmentConnectionNotification.js +3 -0
  79. package/dist/codex/generated/v2/EnvironmentConnectionNotification.js.map +1 -0
  80. package/dist/codex/generated/v2/EnvironmentStatusKind.d.ts +7 -0
  81. package/dist/codex/generated/v2/EnvironmentStatusKind.js +3 -0
  82. package/dist/codex/generated/v2/EnvironmentStatusKind.js.map +1 -0
  83. package/dist/codex/generated/v2/EnvironmentStatusParams.d.ts +9 -0
  84. package/dist/codex/generated/v2/EnvironmentStatusParams.js +3 -0
  85. package/dist/codex/generated/v2/EnvironmentStatusParams.js.map +1 -0
  86. package/dist/codex/generated/v2/EnvironmentStatusResponse.d.ts +14 -0
  87. package/dist/codex/generated/v2/EnvironmentStatusResponse.js +3 -0
  88. package/dist/codex/generated/v2/EnvironmentStatusResponse.js.map +1 -0
  89. package/dist/codex/generated/v2/ExternalAgentConfigDetectParams.d.ts +9 -0
  90. package/dist/codex/generated/v2/ExternalAgentConfigImportHistoriesReadResponse.d.ts +2 -0
  91. package/dist/codex/generated/v2/ExternalAgentConfigImportItemTypeFailure.d.ts +1 -0
  92. package/dist/codex/generated/v2/ExternalAgentConfigImportParams.d.ts +6 -1
  93. package/dist/codex/generated/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -1
  94. package/dist/codex/generated/v2/ExternalAgentImportedConnectorCandidate.d.ts +6 -0
  95. package/dist/codex/generated/v2/ExternalAgentImportedConnectorCandidate.js +3 -0
  96. package/dist/codex/generated/v2/ExternalAgentImportedConnectorCandidate.js.map +1 -0
  97. package/dist/codex/generated/v2/ExternalAgentImportedConnectorSource.d.ts +1 -0
  98. package/dist/codex/generated/v2/ExternalAgentImportedConnectorSource.js +3 -0
  99. package/dist/codex/generated/v2/ExternalAgentImportedConnectorSource.js.map +1 -0
  100. package/dist/codex/generated/v2/FileSystemSpecialPath.d.ts +3 -2
  101. package/dist/codex/generated/v2/HookEventName.d.ts +1 -1
  102. package/dist/codex/generated/v2/HookMetadata.d.ts +5 -0
  103. package/dist/codex/generated/v2/InstalledApp.d.ts +21 -0
  104. package/dist/codex/generated/v2/InstalledApp.js +3 -0
  105. package/dist/codex/generated/v2/InstalledApp.js.map +1 -0
  106. package/dist/codex/generated/v2/LoginAccountParams.d.ts +4 -0
  107. package/dist/codex/generated/v2/LoginAccountResponse.d.ts +2 -0
  108. package/dist/codex/generated/v2/ManagedHooksRequirements.d.ts +1 -0
  109. package/dist/codex/generated/v2/McpToolCallAppContext.d.ts +0 -1
  110. package/dist/codex/generated/v2/MigrationDetails.d.ts +1 -0
  111. package/dist/codex/generated/v2/PluginDetail.d.ts +2 -0
  112. package/dist/codex/generated/v2/PluginShareUpdateDiscoverability.d.ts +1 -1
  113. package/dist/codex/generated/v2/PluginSummary.d.ts +1 -0
  114. package/dist/codex/generated/v2/RateLimitSnapshot.d.ts +4 -0
  115. package/dist/codex/generated/v2/RawResponseCompletedNotification.d.ts +11 -0
  116. package/dist/codex/generated/v2/RawResponseCompletedNotification.js +3 -0
  117. package/dist/codex/generated/v2/RawResponseCompletedNotification.js.map +1 -0
  118. package/dist/codex/generated/v2/ScheduledTaskSchedule.d.ts +16 -0
  119. package/dist/codex/generated/v2/ScheduledTaskSchedule.js +3 -0
  120. package/dist/codex/generated/v2/ScheduledTaskSchedule.js.map +1 -0
  121. package/dist/codex/generated/v2/ScheduledTaskSummary.d.ts +7 -0
  122. package/dist/codex/generated/v2/ScheduledTaskSummary.js +3 -0
  123. package/dist/codex/generated/v2/ScheduledTaskSummary.js.map +1 -0
  124. package/dist/codex/generated/v2/ScheduledTaskWeekday.d.ts +1 -0
  125. package/dist/codex/generated/v2/ScheduledTaskWeekday.js +3 -0
  126. package/dist/codex/generated/v2/ScheduledTaskWeekday.js.map +1 -0
  127. package/dist/codex/generated/v2/Thread.d.ts +5 -0
  128. package/dist/codex/generated/v2/ThreadForkParams.d.ts +11 -0
  129. package/dist/codex/generated/v2/ThreadItem.d.ts +2 -3
  130. package/dist/codex/generated/v2/ThreadItemEntry.d.ts +8 -0
  131. package/dist/codex/generated/v2/ThreadItemEntry.js +3 -0
  132. package/dist/codex/generated/v2/ThreadItemEntry.js.map +1 -0
  133. package/dist/codex/generated/v2/ThreadItemsListResponse.d.ts +2 -2
  134. package/dist/codex/generated/v2/ThreadRealtimeInitialItem.d.ts +8 -0
  135. package/dist/codex/generated/v2/ThreadRealtimeInitialItem.js +3 -0
  136. package/dist/codex/generated/v2/ThreadRealtimeInitialItem.js.map +1 -0
  137. package/dist/codex/generated/v2/ThreadRealtimeStartParams.d.ts +11 -4
  138. package/dist/codex/generated/v2/ThreadResumeResponse.d.ts +14 -0
  139. package/dist/codex/generated/v2/ThreadSearchOccurrence.d.ts +17 -0
  140. package/dist/codex/generated/v2/ThreadSearchOccurrence.js +3 -0
  141. package/dist/codex/generated/v2/ThreadSearchOccurrence.js.map +1 -0
  142. package/dist/codex/generated/v2/ThreadSearchOccurrencesParams.d.ts +19 -0
  143. package/dist/codex/generated/v2/ThreadSearchOccurrencesParams.js +3 -0
  144. package/dist/codex/generated/v2/ThreadSearchOccurrencesParams.js.map +1 -0
  145. package/dist/codex/generated/v2/ThreadSearchOccurrencesResponse.d.ts +11 -0
  146. package/dist/codex/generated/v2/ThreadSearchOccurrencesResponse.js +3 -0
  147. package/dist/codex/generated/v2/ThreadSearchOccurrencesResponse.js.map +1 -0
  148. package/dist/codex/generated/v2/ThreadSearchTextRange.d.ts +13 -0
  149. package/dist/codex/generated/v2/ThreadSearchTextRange.js +3 -0
  150. package/dist/codex/generated/v2/ThreadSearchTextRange.js.map +1 -0
  151. package/dist/codex/generated/v2/TokenUsageBreakdown.d.ts +1 -0
  152. package/dist/codex/generated/v2/TurnEnvironmentParams.d.ts +4 -0
  153. package/dist/codex/generated/v2/UserInput.d.ts +6 -0
  154. package/dist/codex/generated/v2/index.d.ts +23 -0
  155. package/dist/daemon/daemon.js +5 -20
  156. package/dist/daemon/daemon.js.map +1 -1
  157. package/dist/daemon/probe.js +1 -1
  158. package/dist/daemon/settings.d.ts +6 -0
  159. package/dist/daemon/settings.js +23 -0
  160. package/dist/daemon/settings.js.map +1 -0
  161. package/dist/gateway/clientConnection.d.ts +3 -2
  162. package/dist/gateway/clientConnection.js +47 -50
  163. package/dist/gateway/clientConnection.js.map +1 -1
  164. package/dist/gateway/logicalThreadProjection.d.ts +5 -0
  165. package/dist/gateway/logicalThreadProjection.js +58 -1
  166. package/dist/gateway/logicalThreadProjection.js.map +1 -1
  167. package/dist/gateway/remoteControlController.d.ts +29 -0
  168. package/dist/gateway/remoteControlController.js +78 -0
  169. package/dist/gateway/remoteControlController.js.map +1 -0
  170. package/dist/gateway/remoteControlHub.js +2 -1
  171. package/dist/gateway/remoteControlHub.js.map +1 -1
  172. package/dist/gateway/remoteControlMode.js +2 -12
  173. package/dist/gateway/remoteControlMode.js.map +1 -1
  174. package/dist/gateway/server.js +42 -15
  175. package/dist/gateway/server.js.map +1 -1
  176. package/dist/gateway/sideFork.d.ts +3 -0
  177. package/dist/gateway/sideFork.js +11 -0
  178. package/dist/gateway/sideFork.js.map +1 -0
  179. package/dist/gateway/stockSideThreads.js +2 -4
  180. package/dist/gateway/stockSideThreads.js.map +1 -1
  181. package/dist/gateway/subscriptions.d.ts +9 -2
  182. package/dist/gateway/subscriptions.js +40 -9
  183. package/dist/gateway/subscriptions.js.map +1 -1
  184. package/dist/gateway/threadList.d.ts +25 -0
  185. package/dist/gateway/threadList.js +112 -26
  186. package/dist/gateway/threadList.js.map +1 -1
  187. package/dist/handoff/lineageStore.d.ts +102 -0
  188. package/dist/handoff/lineageStore.js +515 -0
  189. package/dist/handoff/lineageStore.js.map +1 -0
  190. package/dist/handoff/providerEpochs.d.ts +19 -5
  191. package/dist/handoff/providerEpochs.js +119 -41
  192. package/dist/handoff/providerEpochs.js.map +1 -1
  193. package/dist/handoff/service.d.ts +16 -2
  194. package/dist/handoff/service.js +502 -140
  195. package/dist/handoff/service.js.map +1 -1
  196. package/dist/handoff/startupMigration.d.ts +22 -0
  197. package/dist/handoff/startupMigration.js +52 -0
  198. package/dist/handoff/startupMigration.js.map +1 -0
  199. package/dist/handoff/store.d.ts +10 -0
  200. package/dist/handoff/store.js +141 -28
  201. package/dist/handoff/store.js.map +1 -1
  202. package/dist/runtime/dependencies.js +1 -1
  203. package/dist/state/stockStateTracker.js +1 -0
  204. package/dist/state/stockStateTracker.js.map +1 -1
  205. package/dist/store/HybridStore.d.ts +3 -1
  206. package/dist/store/HybridStore.js.map +1 -1
  207. package/dist/store/memoryStore.d.ts +3 -2
  208. package/dist/store/memoryStore.js +18 -4
  209. package/dist/store/memoryStore.js.map +1 -1
  210. package/dist/store/sqliteStore.d.ts +2 -2
  211. package/dist/store/sqliteStore.js +84 -24
  212. package/dist/store/sqliteStore.js.map +1 -1
  213. package/dist/store/threadFilter.js +2 -0
  214. package/dist/store/threadFilter.js.map +1 -1
  215. package/legal/LICENSES.md +1 -1
  216. package/legal/THIRD_PARTY_NOTICES.md +136 -124
  217. package/package.json +5 -5
  218. package/dist/codex/generated/AmazonBedrockCredentialSource.d.ts +0 -1
  219. package/dist/codex/generated/AmazonBedrockCredentialSource.js +0 -3
  220. package/dist/codex/generated/AmazonBedrockCredentialSource.js.map +0 -1
@@ -1,4 +1,6 @@
1
1
  import type { ExternalAgentConfigImportHistory } from "./ExternalAgentConfigImportHistory";
2
+ import type { ExternalAgentImportedConnectorCandidate } from "./ExternalAgentImportedConnectorCandidate";
2
3
  export type ExternalAgentConfigImportHistoriesReadResponse = {
3
4
  data: Array<ExternalAgentConfigImportHistory>;
5
+ connectors: Array<ExternalAgentImportedConnectorCandidate>;
4
6
  };
@@ -2,6 +2,7 @@ import type { ExternalAgentConfigMigrationItemType } from "./ExternalAgentConfig
2
2
  export type ExternalAgentConfigImportItemTypeFailure = {
3
3
  itemType: ExternalAgentConfigMigrationItemType;
4
4
  errorType: string | null;
5
+ subErrorType: string | null;
5
6
  failureStage: string;
6
7
  message: string;
7
8
  cwd: string | null;
@@ -2,7 +2,12 @@ import type { ExternalAgentConfigMigrationItem } from "./ExternalAgentConfigMigr
2
2
  export type ExternalAgentConfigImportParams = {
3
3
  migrationItems: Array<ExternalAgentConfigMigrationItem>;
4
4
  /**
5
- * Source product that produced the migration items. Missing means unspecified.
5
+ * Optional identifier for the product that initiated the import.
6
6
  */
7
7
  source?: string | null;
8
+ /**
9
+ * Migration-source selector used to produce the migration items. Pass the same value to
10
+ * detection and import; missing or unrecognized values use the default source.
11
+ */
12
+ migrationSource?: string | null;
8
13
  };
@@ -1 +1 @@
1
- export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG" | "SUBAGENTS" | "HOOKS" | "COMMANDS" | "SESSIONS";
1
+ export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "PLUGINS" | "MCP_SERVER_CONFIG" | "SUBAGENTS" | "HOOKS" | "COMMANDS" | "MEMORY" | "SESSIONS";
@@ -0,0 +1,6 @@
1
+ import type { ExternalAgentImportedConnectorSource } from "./ExternalAgentImportedConnectorSource";
2
+ export type ExternalAgentImportedConnectorCandidate = {
3
+ name: string;
4
+ sessionCount: number;
5
+ source: ExternalAgentImportedConnectorSource;
6
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ExternalAgentImportedConnectorCandidate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalAgentImportedConnectorCandidate.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ExternalAgentImportedConnectorCandidate.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1 @@
1
+ export type ExternalAgentImportedConnectorSource = "remoteMcpServersConfig";
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ExternalAgentImportedConnectorSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalAgentImportedConnectorSource.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ExternalAgentImportedConnectorSource.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -1,10 +1,11 @@
1
+ import type { LegacyAppPathString } from "../LegacyAppPathString";
1
2
  export type FileSystemSpecialPath = {
2
3
  "kind": "root";
3
4
  } | {
4
5
  "kind": "minimal";
5
6
  } | {
6
7
  "kind": "project_roots";
7
- subpath: string | null;
8
+ subpath: LegacyAppPathString | null;
8
9
  } | {
9
10
  "kind": "tmpdir";
10
11
  } | {
@@ -12,5 +13,5 @@ export type FileSystemSpecialPath = {
12
13
  } | {
13
14
  "kind": "unknown";
14
15
  path: string;
15
- subpath: string | null;
16
+ subpath: LegacyAppPathString | null;
16
17
  };
@@ -1 +1 @@
1
- export type HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop";
1
+ export type HookEventName = "preToolUse" | "permissionRequest" | "postToolUse" | "preCompact" | "postCompact" | "sessionStart" | "sessionEnd" | "userPromptSubmit" | "subagentStart" | "subagentStop" | "stop";
@@ -11,6 +11,11 @@ export type HookMetadata = {
11
11
  command: string | null;
12
12
  timeoutSec: bigint;
13
13
  statusMessage: string | null;
14
+ /**
15
+ * Configured `additionalContext` spill threshold.
16
+ * `null` uses 2,500 tokens; `0` disables spilling.
17
+ */
18
+ additionalContextLimit: number | null;
14
19
  sourcePath: AbsolutePathBuf;
15
20
  source: HookSource;
16
21
  pluginId: string | null;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Installed connector runtime state.
3
+ */
4
+ export type InstalledApp = {
5
+ id: string;
6
+ /**
7
+ * Best-effort name carried by the runtime tool catalog. Canonical app metadata remains owned
8
+ * by `app/read`.
9
+ */
10
+ runtimeName: string | null;
11
+ /**
12
+ * Effective enabled state after applying global, workspace, local, and managed configuration
13
+ * at read time.
14
+ */
15
+ enabled: boolean;
16
+ /**
17
+ * Whether the connector is enabled and has a non-synthetic, model-visible tool allowed by
18
+ * effective MCP and app/tool policy in the committed runtime snapshot.
19
+ */
20
+ callable: boolean;
21
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=InstalledApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InstalledApp.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/InstalledApp.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -27,4 +27,8 @@ export type LoginAccountParams = {
27
27
  * claims. If unavailable, the plan defaults to `unknown`.
28
28
  */
29
29
  chatgptPlanType?: string | null;
30
+ } | {
31
+ "type": "amazonBedrock";
32
+ apiKey: string;
33
+ region: string;
30
34
  };
@@ -20,4 +20,6 @@ export type LoginAccountResponse = {
20
20
  userCode: string;
21
21
  } | {
22
22
  "type": "chatgptAuthTokens";
23
+ } | {
24
+ "type": "amazonBedrock";
23
25
  };
@@ -8,6 +8,7 @@ export type ManagedHooksRequirements = {
8
8
  PreCompact: Array<ConfiguredHookMatcherGroup>;
9
9
  PostCompact: Array<ConfiguredHookMatcherGroup>;
10
10
  SessionStart: Array<ConfiguredHookMatcherGroup>;
11
+ SessionEnd: Array<ConfiguredHookMatcherGroup>;
11
12
  UserPromptSubmit: Array<ConfiguredHookMatcherGroup>;
12
13
  SubagentStart: Array<ConfiguredHookMatcherGroup>;
13
14
  SubagentStop: Array<ConfiguredHookMatcherGroup>;
@@ -3,6 +3,5 @@ export type McpToolCallAppContext = {
3
3
  linkId: string | null;
4
4
  resourceUri: string | null;
5
5
  appName: string | null;
6
- templateId: string | null;
7
6
  actionName: string | null;
8
7
  };
@@ -13,4 +13,5 @@ export type MigrationDetails = {
13
13
  hooks: Array<HookMigration>;
14
14
  subagents: Array<SubagentMigration>;
15
15
  commands: Array<CommandMigration>;
16
+ memory?: Array<string>;
16
17
  };
@@ -3,6 +3,7 @@ import type { AppSummary } from "./AppSummary";
3
3
  import type { AppTemplateSummary } from "./AppTemplateSummary";
4
4
  import type { PluginHookSummary } from "./PluginHookSummary";
5
5
  import type { PluginSummary } from "./PluginSummary";
6
+ import type { ScheduledTaskSummary } from "./ScheduledTaskSummary";
6
7
  import type { SkillSummary } from "./SkillSummary";
7
8
  export type PluginDetail = {
8
9
  marketplaceName: string;
@@ -15,4 +16,5 @@ export type PluginDetail = {
15
16
  apps: Array<AppSummary>;
16
17
  appTemplates: Array<AppTemplateSummary>;
17
18
  mcpServers: Array<string>;
19
+ scheduledTasks: Array<ScheduledTaskSummary> | null;
18
20
  };
@@ -1 +1 @@
1
- export type PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE";
1
+ export type PluginShareUpdateDiscoverability = "UNLISTED" | "PRIVATE" | "LISTED";
@@ -29,6 +29,7 @@ export type PluginSummary = {
29
29
  enabled: boolean;
30
30
  installPolicy: PluginInstallPolicy;
31
31
  installPolicySource: PluginInstallPolicySource | null;
32
+ mustShowInstallationInterstitial: boolean | null;
32
33
  authPolicy: PluginAuthPolicy;
33
34
  /**
34
35
  * Availability state for installing and using the plugin.
@@ -10,6 +10,10 @@ export type RateLimitSnapshot = {
10
10
  secondary: RateLimitWindow | null;
11
11
  credits: CreditsSnapshot | null;
12
12
  individualLimit: SpendControlLimitSnapshot | null;
13
+ /**
14
+ * Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.
15
+ */
16
+ spendControlReached: boolean | null;
13
17
  planType: PlanType | null;
14
18
  rateLimitReachedType: RateLimitReachedType | null;
15
19
  };
@@ -0,0 +1,11 @@
1
+ import type { TokenUsageBreakdown } from "./TokenUsageBreakdown";
2
+ /**
3
+ * Internal-only notification containing the exact usage from one upstream
4
+ * Responses API completion.
5
+ */
6
+ export type RawResponseCompletedNotification = {
7
+ threadId: string;
8
+ turnId: string;
9
+ responseId: string;
10
+ usage: TokenUsageBreakdown | null;
11
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=RawResponseCompletedNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawResponseCompletedNotification.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/RawResponseCompletedNotification.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1,16 @@
1
+ import type { ScheduledTaskWeekday } from "./ScheduledTaskWeekday";
2
+ export type ScheduledTaskSchedule = {
3
+ "type": "hourly";
4
+ intervalHours: number;
5
+ days: Array<ScheduledTaskWeekday> | null;
6
+ } | {
7
+ "type": "daily";
8
+ time: string;
9
+ } | {
10
+ "type": "weekdays";
11
+ time: string;
12
+ } | {
13
+ "type": "weekly";
14
+ days: Array<ScheduledTaskWeekday>;
15
+ time: string;
16
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ScheduledTaskSchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledTaskSchedule.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ScheduledTaskSchedule.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1,7 @@
1
+ import type { ScheduledTaskSchedule } from "./ScheduledTaskSchedule";
2
+ export type ScheduledTaskSummary = {
3
+ key: string;
4
+ name: string;
5
+ prompt: string;
6
+ schedule: ScheduledTaskSchedule;
7
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ScheduledTaskSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledTaskSummary.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ScheduledTaskSummary.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1 @@
1
+ export type ScheduledTaskWeekday = "MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU";
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ScheduledTaskWeekday.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledTaskWeekday.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ScheduledTaskWeekday.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -75,6 +75,11 @@ export type Thread = {
75
75
  * Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).
76
76
  */
77
77
  source: SessionSource;
78
+ /**
79
+ * Whether the app server accepts direct turn input for this loaded thread.
80
+ * `None` means the capability is unavailable, such as for an unloaded stored thread.
81
+ */
82
+ canAcceptDirectInput: boolean | null;
78
83
  /**
79
84
  * Optional analytics source classification for this thread.
80
85
  */
@@ -23,6 +23,11 @@ export type ThreadForkParams = {
23
23
  * The referenced turn cannot be in progress.
24
24
  */
25
25
  lastTurnId?: string | null;
26
+ /**
27
+ * Optional turn id to fork before, excluding that turn and all later turns.
28
+ * Cannot be combined with `last_turn_id`.
29
+ */
30
+ beforeTurnId?: string | null;
26
31
  /**
27
32
  * [UNSTABLE] Specify the rollout path to fork from.
28
33
  * If specified, the thread_id param will be ignored.
@@ -67,4 +72,10 @@ export type ThreadForkParams = {
67
72
  * `thread/turns/list` immediately after forking.
68
73
  */
69
74
  excludeTurns?: boolean;
75
+ /**
76
+ * When true, carry the source thread's current goal into the fork without
77
+ * starting its initial automatic continuation. The next explicit turn owns
78
+ * the goal lifecycle, and normal automatic continuation resumes after it.
79
+ */
80
+ deferGoalContinuation?: boolean;
70
81
  };
@@ -2,6 +2,7 @@ import type { ImageGenerationItem } from "../ImageGenerationItem";
2
2
  import type { LegacyAppPathString } from "../LegacyAppPathString";
3
3
  import type { MessagePhase } from "../MessagePhase";
4
4
  import type { ReasoningEffort } from "../ReasoningEffort";
5
+ import type { SleepItem } from "../SleepItem";
5
6
  import type { WebSearchItem } from "../WebSearchItem";
6
7
  import type { JsonValue } from "../serde_json/JsonValue";
7
8
  import type { CollabAgentState } from "./CollabAgentState";
@@ -173,9 +174,7 @@ export type ThreadItem = {
173
174
  path: LegacyAppPathString;
174
175
  } | {
175
176
  "type": "sleep";
176
- id: string;
177
- durationMs: number;
178
- } | {
177
+ } & SleepItem | {
179
178
  "type": "imageGeneration";
180
179
  } & ImageGenerationItem | {
181
180
  "type": "enteredReviewMode";
@@ -0,0 +1,8 @@
1
+ import type { ThreadItem } from "./ThreadItem";
2
+ export type ThreadItemEntry = {
3
+ /**
4
+ * Turn containing this item.
5
+ */
6
+ turnId: string;
7
+ item: ThreadItem;
8
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadItemEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadItemEntry.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadItemEntry.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -1,6 +1,6 @@
1
- import type { ThreadItem } from "./ThreadItem";
1
+ import type { ThreadItemEntry } from "./ThreadItemEntry";
2
2
  export type ThreadItemsListResponse = {
3
- data: Array<ThreadItem>;
3
+ data: Array<ThreadItemEntry>;
4
4
  /**
5
5
  * Opaque cursor to pass to the next call to continue after the last item.
6
6
  * if None, there are no more items to return.
@@ -0,0 +1,8 @@
1
+ import type { ConversationTextRole } from "../ConversationTextRole";
2
+ /**
3
+ * EXPERIMENTAL - role-bearing text item included when a realtime V3 session starts.
4
+ */
5
+ export type ThreadRealtimeInitialItem = {
6
+ role: ConversationTextRole;
7
+ text: string;
8
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadRealtimeInitialItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadRealtimeInitialItem.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadRealtimeInitialItem.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -1,6 +1,8 @@
1
+ import type { CodexResponseHandoffMode } from "../CodexResponseHandoffMode";
1
2
  import type { RealtimeConversationVersion } from "../RealtimeConversationVersion";
2
3
  import type { RealtimeOutputModality } from "../RealtimeOutputModality";
3
4
  import type { RealtimeVoice } from "../RealtimeVoice";
5
+ import type { ThreadRealtimeInitialItem } from "./ThreadRealtimeInitialItem";
4
6
  import type { ThreadRealtimeStartTransport } from "./ThreadRealtimeStartTransport";
5
7
  /**
6
8
  * EXPERIMENTAL - start a thread-scoped realtime session.
@@ -26,11 +28,10 @@ export type ThreadRealtimeStartParams = {
26
28
  */
27
29
  codexResponseItemPrefix?: string | null;
28
30
  /**
29
- * Optional prefix added to automatic V1 Codex commentary sent with
30
- * `conversation.handoff.append` when `codexResponsesAsItems` is not true. Final answers are
31
- * sent without the prefix.
31
+ * Selects how automatic Codex responses are routed in Frameless Bidi sessions. Omitted values
32
+ * default to `thinking`. Realtime V1 and V2 ignore this setting.
32
33
  */
33
- codexResponseHandoffPrefix?: string | null;
34
+ codexResponseHandoffMode?: CodexResponseHandoffMode | null;
34
35
  /**
35
36
  * Overrides the configured realtime model for this session only.
36
37
  */
@@ -44,6 +45,12 @@ export type ThreadRealtimeStartParams = {
44
45
  * Set to false to start without Codex's startup context. Omitted or null includes it.
45
46
  */
46
47
  includeStartupContext?: boolean | null;
48
+ /**
49
+ * Adds complete role-bearing text items to the initial Frameless Bidi session history.
50
+ * This is only supported by realtime V3 and is sent during session startup. Requests are
51
+ * limited to 128 items and 8,192 estimated text tokens in total.
52
+ */
53
+ initialItems?: Array<ThreadRealtimeInitialItem> | null;
47
54
  prompt?: string | null | null;
48
55
  realtimeSessionId?: string | null;
49
56
  transport?: ThreadRealtimeStartTransport | null;
@@ -47,4 +47,18 @@ export type ThreadResumeResponse = {
47
47
  * `thread/turns/list` page returned when requested by `initialTurnsPage`.
48
48
  */
49
49
  initialTurnsPage: TurnsPage | null;
50
+ /**
51
+ * Opaque head cursor for hydrating paginated turns backwards.
52
+ *
53
+ * Pass this as `cursor` to `thread/turns/list` with
54
+ * `sortDirection: "desc"`. The first page includes the cursor's head turn.
55
+ */
56
+ turnsBackwardsCursor: string | null;
57
+ /**
58
+ * Opaque head cursor for hydrating paginated items backwards.
59
+ *
60
+ * Pass this as `cursor` to `thread/items/list` with
61
+ * `sortDirection: "desc"`. The first page includes the cursor's head item.
62
+ */
63
+ itemsBackwardsCursor: string | null;
50
64
  };
@@ -0,0 +1,17 @@
1
+ import type { ThreadSearchTextRange } from "./ThreadSearchTextRange";
2
+ /**
3
+ * One visible message occurrence returned by [`ThreadSearchOccurrencesResponse`].
4
+ */
5
+ export type ThreadSearchOccurrence = {
6
+ turnId: string;
7
+ itemId: string;
8
+ snippet: string;
9
+ /**
10
+ * Match range within `snippet`, in UTF-16 code units.
11
+ */
12
+ snippetMatchRange: ThreadSearchTextRange;
13
+ /**
14
+ * Opaque inclusive cursor accepted by `thread/turns/list` for this turn.
15
+ */
16
+ turnCursor: string;
17
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadSearchOccurrence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadSearchOccurrence.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadSearchOccurrence.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Parameters for searching visible message occurrences within one paginated thread.
3
+ */
4
+ export type ThreadSearchOccurrencesParams = {
5
+ threadId: string;
6
+ /**
7
+ * Case-insensitive literal substring to find in visible user messages and final assistant
8
+ * messages.
9
+ */
10
+ searchTerm: string;
11
+ /**
12
+ * Opaque cursor returned by a previous call for the same thread and search term.
13
+ */
14
+ cursor?: string | null;
15
+ /**
16
+ * Optional occurrence page size.
17
+ */
18
+ limit?: number | null;
19
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadSearchOccurrencesParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadSearchOccurrencesParams.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadSearchOccurrencesParams.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1,11 @@
1
+ import type { ThreadSearchOccurrence } from "./ThreadSearchOccurrence";
2
+ export type ThreadSearchOccurrencesResponse = {
3
+ /**
4
+ * Occurrences in chronological message order.
5
+ */
6
+ data: Array<ThreadSearchOccurrence>;
7
+ /**
8
+ * Opaque cursor to continue after the last returned occurrence.
9
+ */
10
+ nextCursor: string | null;
11
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadSearchOccurrencesResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadSearchOccurrencesResponse.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadSearchOccurrencesResponse.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * UTF-16 code-unit range within `snippet`.
3
+ */
4
+ export type ThreadSearchTextRange = {
5
+ /**
6
+ * Inclusive UTF-16 code-unit offset.
7
+ */
8
+ start: number;
9
+ /**
10
+ * Exclusive UTF-16 code-unit offset.
11
+ */
12
+ end: number;
13
+ };
@@ -0,0 +1,3 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+ export {};
3
+ //# sourceMappingURL=ThreadSearchTextRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadSearchTextRange.js","sourceRoot":"","sources":["../../../../src/codex/generated/v2/ThreadSearchTextRange.ts"],"names":[],"mappings":"AAAA,yCAAyC"}
@@ -2,6 +2,7 @@ export type TokenUsageBreakdown = {
2
2
  totalTokens: number;
3
3
  inputTokens: number;
4
4
  cachedInputTokens: number;
5
+ cacheWriteInputTokens: number;
5
6
  outputTokens: number;
6
7
  reasoningOutputTokens: number;
7
8
  };
@@ -2,4 +2,8 @@ import type { LegacyAppPathString } from "../LegacyAppPathString";
2
2
  export type TurnEnvironmentParams = {
3
3
  environmentId: string;
4
4
  cwd: LegacyAppPathString;
5
+ /**
6
+ * Environment-native runtime workspace roots. Omitted defaults to `cwd`.
7
+ */
8
+ runtimeWorkspaceRoots?: Array<LegacyAppPathString> | null;
5
9
  };
@@ -15,6 +15,12 @@ export type UserInput = {
15
15
  "type": "localImage";
16
16
  detail?: ImageDetail;
17
17
  path: string;
18
+ } | {
19
+ "type": "audio";
20
+ url: string;
21
+ } | {
22
+ "type": "localAudio";
23
+ path: string;
18
24
  } | {
19
25
  "type": "skill";
20
26
  name: string;