@jrkropp/codex-js 0.1.3 → 0.2.0

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 (864) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +57 -617
  3. package/dist/client/index.d.ts +2 -16
  4. package/dist/client/index.js +2522 -16
  5. package/dist/index.d.ts +2 -25
  6. package/dist/index.js +699 -20
  7. package/dist/internal/codex/app-server/src/bespoke_event_handling.d.ts +5 -0
  8. package/dist/internal/codex/app-server/src/connection_rpc_gate.d.ts +11 -0
  9. package/dist/internal/codex/app-server/src/dynamic_tools.d.ts +5 -0
  10. package/dist/internal/codex/app-server/src/message_processor.d.ts +88 -0
  11. package/dist/internal/codex/app-server/src/outgoing_message.d.ts +73 -0
  12. package/dist/internal/codex/app-server/src/request_processors/common.d.ts +25 -0
  13. package/dist/internal/codex/app-server/src/request_processors/mcp_processor.d.ts +32 -0
  14. package/dist/internal/codex/app-server/src/request_processors/request_errors.d.ts +9 -0
  15. package/dist/internal/codex/app-server/src/request_processors/thread_processor.d.ts +38 -0
  16. package/dist/internal/codex/app-server/src/request_processors/token_usage_replay.d.ts +22 -0
  17. package/dist/internal/codex/app-server/src/request_processors/turn_processor.d.ts +21 -0
  18. package/dist/internal/codex/app-server/src/request_processors.d.ts +5 -0
  19. package/dist/internal/codex/app-server/src/request_serialization.d.ts +7 -0
  20. package/dist/internal/codex/app-server/src/runtime.d.ts +96 -0
  21. package/dist/internal/codex/app-server/src/server_request_response.d.ts +30 -0
  22. package/dist/internal/codex/app-server/src/session_factory.d.ts +30 -0
  23. package/dist/internal/codex/app-server/src/session_task_runner.d.ts +44 -0
  24. package/dist/internal/codex/app-server/src/thread_state.d.ts +56 -0
  25. package/dist/internal/codex/app-server-client/src/lib.d.ts +48 -0
  26. package/dist/{index-77U_Oc-a.d.ts → internal/codex/app-server-client/src/pending_requests.d.ts} +7 -18
  27. package/dist/internal/codex/app-server-client/src/remote.d.ts +18 -0
  28. package/dist/{session-BRYzi8OT.d.ts → internal/codex/app-server-client/src/session.d.ts} +5 -9
  29. package/dist/{thread_event_store-C0zYzukG.d.ts → internal/codex/app-server-client/src/thread_event_store.d.ts} +14 -14
  30. package/dist/internal/codex/app-server-client/src/thread_projection.d.ts +9 -0
  31. package/dist/internal/codex/app-server-protocol/schema/typescript/AbsolutePathBuf.d.ts +10 -0
  32. package/dist/internal/codex/app-server-protocol/schema/typescript/AgentPath.d.ts +1 -0
  33. package/dist/internal/codex/app-server-protocol/schema/typescript/ApplyPatchApprovalParams.d.ts +22 -0
  34. package/dist/internal/codex/app-server-protocol/schema/typescript/ApplyPatchApprovalResponse.d.ts +4 -0
  35. package/dist/internal/codex/app-server-protocol/schema/typescript/AuthMode.d.ts +4 -0
  36. package/dist/internal/codex/app-server-protocol/schema/typescript/ClientInfo.d.ts +5 -0
  37. package/dist/internal/codex/app-server-protocol/schema/typescript/ClientNotification.d.ts +3 -0
  38. package/dist/internal/codex/app-server-protocol/schema/typescript/ClientRequest.d.ts +410 -0
  39. package/dist/internal/codex/app-server-protocol/schema/typescript/CollaborationMode.d.ts +9 -0
  40. package/dist/internal/codex/app-server-protocol/schema/typescript/ContentItem.d.ts +12 -0
  41. package/dist/internal/codex/app-server-protocol/schema/typescript/ConversationGitInfo.d.ts +5 -0
  42. package/dist/internal/codex/app-server-protocol/schema/typescript/ConversationSummary.d.ts +15 -0
  43. package/dist/internal/codex/app-server-protocol/schema/typescript/ExecCommandApprovalParams.d.ts +18 -0
  44. package/dist/internal/codex/app-server-protocol/schema/typescript/ExecCommandApprovalResponse.d.ts +4 -0
  45. package/dist/internal/codex/app-server-protocol/schema/typescript/ExecPolicyAmendment.d.ts +8 -0
  46. package/dist/internal/codex/app-server-protocol/schema/typescript/FileChange.d.ts +11 -0
  47. package/dist/internal/codex/app-server-protocol/schema/typescript/ForcedLoginMethod.d.ts +1 -0
  48. package/dist/internal/codex/app-server-protocol/schema/typescript/FunctionCallOutputBody.d.ts +2 -0
  49. package/dist/internal/codex/app-server-protocol/schema/typescript/FunctionCallOutputContentItem.d.ts +13 -0
  50. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchMatchType.d.ts +1 -0
  51. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchParams.d.ts +5 -0
  52. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchResponse.d.ts +4 -0
  53. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchResult.d.ts +12 -0
  54. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchSessionCompletedNotification.d.ts +3 -0
  55. package/dist/internal/codex/app-server-protocol/schema/typescript/FuzzyFileSearchSessionUpdatedNotification.d.ts +6 -0
  56. package/dist/internal/codex/app-server-protocol/schema/typescript/GetAuthStatusParams.d.ts +4 -0
  57. package/dist/internal/codex/app-server-protocol/schema/typescript/GetAuthStatusResponse.d.ts +6 -0
  58. package/dist/internal/codex/app-server-protocol/schema/typescript/GetConversationSummaryParams.d.ts +6 -0
  59. package/dist/internal/codex/app-server-protocol/schema/typescript/GetConversationSummaryResponse.d.ts +4 -0
  60. package/dist/internal/codex/app-server-protocol/schema/typescript/GitDiffToRemoteParams.d.ts +3 -0
  61. package/dist/internal/codex/app-server-protocol/schema/typescript/GitDiffToRemoteResponse.d.ts +5 -0
  62. package/dist/internal/codex/app-server-protocol/schema/typescript/GitSha.d.ts +1 -0
  63. package/dist/internal/codex/app-server-protocol/schema/typescript/ImageDetail.d.ts +1 -0
  64. package/dist/internal/codex/app-server-protocol/schema/typescript/InitializeCapabilities.d.ts +14 -0
  65. package/dist/internal/codex/app-server-protocol/schema/typescript/InitializeParams.d.ts +6 -0
  66. package/dist/internal/codex/app-server-protocol/schema/typescript/InitializeResponse.d.ts +18 -0
  67. package/dist/internal/codex/app-server-protocol/schema/typescript/InputModality.d.ts +4 -0
  68. package/dist/internal/codex/app-server-protocol/schema/typescript/InternalSessionSource.d.ts +1 -0
  69. package/dist/internal/codex/app-server-protocol/schema/typescript/LocalShellAction.d.ts +4 -0
  70. package/dist/internal/codex/app-server-protocol/schema/typescript/LocalShellExecAction.d.ts +9 -0
  71. package/dist/internal/codex/app-server-protocol/schema/typescript/LocalShellStatus.d.ts +1 -0
  72. package/dist/internal/codex/app-server-protocol/schema/typescript/MessagePhase.d.ts +7 -0
  73. package/dist/internal/codex/app-server-protocol/schema/typescript/ModeKind.d.ts +4 -0
  74. package/dist/internal/codex/app-server-protocol/schema/typescript/NetworkPolicyAmendment.d.ts +5 -0
  75. package/dist/internal/codex/app-server-protocol/schema/typescript/NetworkPolicyRuleAction.d.ts +1 -0
  76. package/dist/internal/codex/app-server-protocol/schema/typescript/ParsedCommand.d.ts +24 -0
  77. package/dist/internal/codex/app-server-protocol/schema/typescript/Personality.d.ts +1 -0
  78. package/dist/internal/codex/app-server-protocol/schema/typescript/PlanType.d.ts +1 -0
  79. package/dist/internal/codex/app-server-protocol/schema/typescript/RealtimeConversationVersion.d.ts +1 -0
  80. package/dist/internal/codex/app-server-protocol/schema/typescript/RealtimeOutputModality.d.ts +1 -0
  81. package/dist/internal/codex/app-server-protocol/schema/typescript/RealtimeVoice.d.ts +1 -0
  82. package/dist/internal/codex/app-server-protocol/schema/typescript/RealtimeVoicesList.d.ts +7 -0
  83. package/dist/internal/codex/app-server-protocol/schema/typescript/ReasoningEffort.d.ts +4 -0
  84. package/dist/internal/codex/app-server-protocol/schema/typescript/ReasoningItemContent.d.ts +7 -0
  85. package/dist/internal/codex/app-server-protocol/schema/typescript/ReasoningItemReasoningSummary.d.ts +4 -0
  86. package/dist/internal/codex/app-server-protocol/schema/typescript/ReasoningSummary.d.ts +6 -0
  87. package/dist/internal/codex/app-server-protocol/schema/typescript/RequestId.d.ts +1 -0
  88. package/dist/internal/codex/app-server-protocol/schema/typescript/Resource.d.ts +15 -0
  89. package/dist/internal/codex/app-server-protocol/schema/typescript/ResourceContent.d.ts +21 -0
  90. package/dist/internal/codex/app-server-protocol/schema/typescript/ResourceTemplate.d.ts +12 -0
  91. package/dist/internal/codex/app-server-protocol/schema/typescript/ResponseItem.d.ts +78 -0
  92. package/dist/internal/codex/app-server-protocol/schema/typescript/ReviewDecision.d.ts +14 -0
  93. package/dist/internal/codex/app-server-protocol/schema/typescript/ServerNotification.d.ts +260 -0
  94. package/dist/internal/codex/app-server-protocol/schema/typescript/ServerRequest.d.ts +50 -0
  95. package/dist/internal/codex/app-server-protocol/schema/typescript/SessionSource.d.ts +9 -0
  96. package/dist/internal/codex/app-server-protocol/schema/typescript/Settings.d.ts +9 -0
  97. package/dist/internal/codex/app-server-protocol/schema/typescript/SubAgentSource.d.ts +13 -0
  98. package/dist/internal/codex/app-server-protocol/schema/typescript/ThreadId.d.ts +1 -0
  99. package/dist/internal/codex/app-server-protocol/schema/typescript/ThreadMemoryMode.d.ts +1 -0
  100. package/dist/internal/codex/app-server-protocol/schema/typescript/Tool.d.ts +14 -0
  101. package/dist/internal/codex/app-server-protocol/schema/typescript/Verbosity.d.ts +5 -0
  102. package/dist/internal/codex/app-server-protocol/schema/typescript/WebSearchAction.d.ts +14 -0
  103. package/dist/internal/codex/app-server-protocol/schema/typescript/WebSearchContextSize.d.ts +1 -0
  104. package/dist/internal/codex/app-server-protocol/schema/typescript/WebSearchLocation.d.ts +6 -0
  105. package/dist/internal/codex/app-server-protocol/schema/typescript/WebSearchMode.d.ts +1 -0
  106. package/dist/internal/codex/app-server-protocol/schema/typescript/WebSearchToolConfig.d.ts +7 -0
  107. package/dist/internal/codex/app-server-protocol/schema/typescript/index.d.ts +77 -0
  108. package/dist/internal/codex/app-server-protocol/schema/typescript/serde_json/JsonValue.d.ts +3 -0
  109. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/Account.d.ts +10 -0
  110. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AccountLoginCompletedNotification.d.ts +5 -0
  111. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AccountRateLimitsUpdatedNotification.d.ts +4 -0
  112. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AccountUpdatedNotification.d.ts +6 -0
  113. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ActivePermissionProfile.d.ts +18 -0
  114. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ActivePermissionProfileModification.d.ts +5 -0
  115. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AddCreditsNudgeCreditType.d.ts +1 -0
  116. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AddCreditsNudgeEmailStatus.d.ts +1 -0
  117. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AdditionalFileSystemPermissions.d.ts +14 -0
  118. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AdditionalNetworkPermissions.d.ts +3 -0
  119. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AdditionalPermissionProfile.d.ts +9 -0
  120. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AgentMessageDeltaNotification.d.ts +6 -0
  121. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AnalyticsConfig.d.ts +8 -0
  122. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppBranding.d.ts +11 -0
  123. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppInfo.d.ts +30 -0
  124. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppListUpdatedNotification.d.ts +7 -0
  125. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppMetadata.d.ts +16 -0
  126. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppReview.d.ts +3 -0
  127. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppScreenshot.d.ts +5 -0
  128. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppSummary.d.ts +10 -0
  129. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppToolApproval.d.ts +1 -0
  130. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppToolsConfig.d.ts +7 -0
  131. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ApprovalsReviewer.d.ts +8 -0
  132. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppsConfig.d.ts +15 -0
  133. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppsDefaultConfig.d.ts +5 -0
  134. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppsListParams.d.ts +21 -0
  135. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AppsListResponse.d.ts +12 -0
  136. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AskForApproval.d.ts +9 -0
  137. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/AutoReviewDecisionSource.d.ts +4 -0
  138. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ByteRange.d.ts +4 -0
  139. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CancelLoginAccountParams.d.ts +3 -0
  140. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CancelLoginAccountResponse.d.ts +4 -0
  141. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CancelLoginAccountStatus.d.ts +1 -0
  142. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshParams.d.ts +14 -0
  143. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshReason.d.ts +1 -0
  144. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ChatgptAuthTokensRefreshResponse.d.ts +5 -0
  145. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CodexErrorInfo.d.ts +28 -0
  146. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollabAgentState.d.ts +5 -0
  147. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollabAgentStatus.d.ts +1 -0
  148. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollabAgentTool.d.ts +1 -0
  149. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollabAgentToolCallStatus.d.ts +1 -0
  150. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollaborationModeListParams.d.ts +4 -0
  151. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollaborationModeListResponse.d.ts +7 -0
  152. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CollaborationModeMask.d.ts +11 -0
  153. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandAction.d.ts +19 -0
  154. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecOutputDeltaNotification.d.ts +27 -0
  155. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecOutputStream.d.ts +4 -0
  156. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecParams.d.ts +82 -0
  157. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecResizeParams.d.ts +15 -0
  158. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecResizeResponse.d.ts +4 -0
  159. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecResponse.d.ts +21 -0
  160. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecTerminalSize.d.ts +13 -0
  161. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecTerminateParams.d.ts +10 -0
  162. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecTerminateResponse.d.ts +4 -0
  163. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecWriteParams.d.ts +19 -0
  164. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecWriteResponse.d.ts +4 -0
  165. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionApprovalDecision.d.ts +11 -0
  166. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionOutputDeltaNotification.d.ts +6 -0
  167. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalParams.d.ts +40 -0
  168. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionRequestApprovalResponse.d.ts +4 -0
  169. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionSource.d.ts +1 -0
  170. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandExecutionStatus.d.ts +1 -0
  171. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CommandMigration.d.ts +3 -0
  172. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/Config.d.ts +47 -0
  173. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigBatchWriteParams.d.ts +13 -0
  174. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigEdit.d.ts +7 -0
  175. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigLayer.d.ts +8 -0
  176. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigLayerMetadata.d.ts +5 -0
  177. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigLayerSource.d.ts +30 -0
  178. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigReadParams.d.ts +9 -0
  179. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigReadResponse.d.ts +10 -0
  180. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigRequirements.d.ts +13 -0
  181. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigRequirementsReadResponse.d.ts +7 -0
  182. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigValueWriteParams.d.ts +12 -0
  183. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigWarningNotification.d.ts +19 -0
  184. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfigWriteResponse.d.ts +12 -0
  185. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfiguredHookHandler.d.ts +11 -0
  186. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ConfiguredHookMatcherGroup.d.ts +5 -0
  187. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ContextCompactedNotification.d.ts +7 -0
  188. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/CreditsSnapshot.d.ts +5 -0
  189. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeprecationNoticeNotification.d.ts +10 -0
  190. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyAlgorithm.d.ts +4 -0
  191. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyCreateParams.d.ts +12 -0
  192. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyCreateResponse.d.ts +14 -0
  193. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyProtectionClass.d.ts +4 -0
  194. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyProtectionPolicy.d.ts +4 -0
  195. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyPublicParams.d.ts +6 -0
  196. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeyPublicResponse.d.ts +14 -0
  197. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeySignParams.d.ts +8 -0
  198. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeySignPayload.d.ts +62 -0
  199. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DeviceKeySignResponse.d.ts +16 -0
  200. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DynamicToolCallOutputContentItem.d.ts +7 -0
  201. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DynamicToolCallParams.d.ts +9 -0
  202. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DynamicToolCallResponse.d.ts +5 -0
  203. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DynamicToolCallStatus.d.ts +1 -0
  204. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/DynamicToolSpec.d.ts +8 -0
  205. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ErrorNotification.d.ts +7 -0
  206. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExecPolicyAmendment.d.ts +1 -0
  207. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeature.d.ts +34 -0
  208. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeatureEnablementSetParams.d.ts +11 -0
  209. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeatureEnablementSetResponse.d.ts +8 -0
  210. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeatureListParams.d.ts +10 -0
  211. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeatureListResponse.d.ts +9 -0
  212. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExperimentalFeatureStage.d.ts +1 -0
  213. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectParams.d.ts +10 -0
  214. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigDetectResponse.d.ts +4 -0
  215. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportCompletedNotification.d.ts +1 -0
  216. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportParams.d.ts +4 -0
  217. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigImportResponse.d.ts +1 -0
  218. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItem.d.ts +11 -0
  219. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -0
  220. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FeedbackUploadParams.d.ts +10 -0
  221. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FeedbackUploadResponse.d.ts +3 -0
  222. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileChangeApprovalDecision.d.ts +1 -0
  223. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileChangeOutputDeltaNotification.d.ts +11 -0
  224. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileChangePatchUpdatedNotification.d.ts +7 -0
  225. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalParams.d.ts +14 -0
  226. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileChangeRequestApprovalResponse.d.ts +4 -0
  227. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileSystemAccessMode.d.ts +1 -0
  228. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileSystemPath.d.ts +12 -0
  229. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileSystemSandboxEntry.d.ts +6 -0
  230. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileSystemSpecialPath.d.ts +16 -0
  231. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FileUpdateChange.d.ts +6 -0
  232. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsChangedNotification.d.ts +14 -0
  233. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsCopyParams.d.ts +18 -0
  234. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsCopyResponse.d.ts +4 -0
  235. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsCreateDirectoryParams.d.ts +14 -0
  236. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsCreateDirectoryResponse.d.ts +4 -0
  237. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsGetMetadataParams.d.ts +10 -0
  238. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsGetMetadataResponse.d.ts +25 -0
  239. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsReadDirectoryEntry.d.ts +17 -0
  240. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsReadDirectoryParams.d.ts +10 -0
  241. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsReadDirectoryResponse.d.ts +10 -0
  242. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsReadFileParams.d.ts +10 -0
  243. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsReadFileResponse.d.ts +9 -0
  244. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsRemoveParams.d.ts +18 -0
  245. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsRemoveResponse.d.ts +4 -0
  246. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsUnwatchParams.d.ts +9 -0
  247. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsUnwatchResponse.d.ts +4 -0
  248. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsWatchParams.d.ts +14 -0
  249. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsWatchResponse.d.ts +10 -0
  250. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsWriteFileParams.d.ts +14 -0
  251. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/FsWriteFileResponse.d.ts +4 -0
  252. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GetAccountParams.d.ts +10 -0
  253. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GetAccountRateLimitsResponse.d.ts +13 -0
  254. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GetAccountResponse.d.ts +5 -0
  255. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GitInfo.d.ts +5 -0
  256. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GrantedPermissionProfile.d.ts +6 -0
  257. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianApprovalReview.d.ts +14 -0
  258. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianApprovalReviewAction.d.ts +37 -0
  259. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianApprovalReviewStatus.d.ts +4 -0
  260. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianCommandSource.d.ts +1 -0
  261. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianRiskLevel.d.ts +4 -0
  262. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianUserAuthorization.d.ts +4 -0
  263. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/GuardianWarningNotification.d.ts +10 -0
  264. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookCompletedNotification.d.ts +6 -0
  265. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookErrorInfo.d.ts +4 -0
  266. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookEventName.d.ts +1 -0
  267. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookExecutionMode.d.ts +1 -0
  268. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookHandlerType.d.ts +1 -0
  269. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookMetadata.d.ts +22 -0
  270. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookMigration.d.ts +3 -0
  271. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookOutputEntry.d.ts +5 -0
  272. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookOutputEntryKind.d.ts +1 -0
  273. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookPromptFragment.d.ts +4 -0
  274. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookRunStatus.d.ts +1 -0
  275. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookRunSummary.d.ts +24 -0
  276. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookScope.d.ts +1 -0
  277. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookSource.d.ts +1 -0
  278. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookStartedNotification.d.ts +6 -0
  279. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HookTrustStatus.d.ts +1 -0
  280. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HooksListEntry.d.ts +8 -0
  281. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HooksListParams.d.ts +6 -0
  282. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/HooksListResponse.d.ts +4 -0
  283. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ItemCompletedNotification.d.ts +10 -0
  284. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts +32 -0
  285. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ItemGuardianApprovalReviewStartedNotification.d.ts +30 -0
  286. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ItemStartedNotification.d.ts +10 -0
  287. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ListMcpServerStatusParams.d.ts +16 -0
  288. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ListMcpServerStatusResponse.d.ts +9 -0
  289. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/LoginAccountParams.d.ts +27 -0
  290. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/LoginAccountResponse.d.ts +23 -0
  291. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/LogoutAccountResponse.d.ts +1 -0
  292. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ManagedHooksRequirements.d.ts +13 -0
  293. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceAddParams.d.ts +5 -0
  294. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceAddResponse.d.ts +6 -0
  295. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceInterface.d.ts +3 -0
  296. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceLoadErrorInfo.d.ts +5 -0
  297. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceRemoveParams.d.ts +3 -0
  298. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceRemoveResponse.d.ts +5 -0
  299. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceUpgradeErrorInfo.d.ts +4 -0
  300. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceUpgradeParams.d.ts +3 -0
  301. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MarketplaceUpgradeResponse.d.ts +7 -0
  302. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpAuthStatus.d.ts +1 -0
  303. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationArrayType.d.ts +1 -0
  304. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationBooleanSchema.d.ts +7 -0
  305. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationBooleanType.d.ts +1 -0
  306. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationConstOption.d.ts +4 -0
  307. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationEnumSchema.d.ts +4 -0
  308. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationLegacyTitledEnumSchema.d.ts +9 -0
  309. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationMultiSelectEnumSchema.d.ts +3 -0
  310. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationNumberSchema.d.ts +9 -0
  311. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationNumberType.d.ts +1 -0
  312. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationObjectType.d.ts +1 -0
  313. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationPrimitiveSchema.d.ts +5 -0
  314. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationSchema.d.ts +16 -0
  315. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationSingleSelectEnumSchema.d.ts +3 -0
  316. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationStringFormat.d.ts +1 -0
  317. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationStringSchema.d.ts +11 -0
  318. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationStringType.d.ts +1 -0
  319. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationTitledEnumItems.d.ts +4 -0
  320. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationTitledMultiSelectEnumSchema.d.ts +11 -0
  321. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationTitledSingleSelectEnumSchema.d.ts +9 -0
  322. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationUntitledEnumItems.d.ts +5 -0
  323. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationUntitledMultiSelectEnumSchema.d.ts +11 -0
  324. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpElicitationUntitledSingleSelectEnumSchema.d.ts +8 -0
  325. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpResourceReadParams.d.ts +5 -0
  326. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpResourceReadResponse.d.ts +4 -0
  327. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerElicitationAction.d.ts +1 -0
  328. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerElicitationRequestParams.d.ts +26 -0
  329. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerElicitationRequestResponse.d.ts +15 -0
  330. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerMigration.d.ts +3 -0
  331. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerOauthLoginCompletedNotification.d.ts +5 -0
  332. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerOauthLoginParams.d.ts +5 -0
  333. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerOauthLoginResponse.d.ts +3 -0
  334. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerRefreshResponse.d.ts +1 -0
  335. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerStartupState.d.ts +1 -0
  336. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerStatus.d.ts +13 -0
  337. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerStatusDetail.d.ts +1 -0
  338. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerStatusUpdatedNotification.d.ts +6 -0
  339. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerToolCallParams.d.ts +8 -0
  340. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpServerToolCallResponse.d.ts +7 -0
  341. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpToolCallError.d.ts +3 -0
  342. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpToolCallProgressNotification.d.ts +6 -0
  343. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpToolCallResult.d.ts +6 -0
  344. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/McpToolCallStatus.d.ts +1 -0
  345. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MemoryCitation.d.ts +5 -0
  346. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MemoryCitationEntry.d.ts +6 -0
  347. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MergeStrategy.d.ts +1 -0
  348. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/MigrationDetails.d.ts +14 -0
  349. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/Model.d.ts +26 -0
  350. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelAvailabilityNux.d.ts +3 -0
  351. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelListParams.d.ts +14 -0
  352. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelListResponse.d.ts +9 -0
  353. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelProviderCapabilitiesReadParams.d.ts +1 -0
  354. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelProviderCapabilitiesReadResponse.d.ts +5 -0
  355. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelRerouteReason.d.ts +1 -0
  356. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelReroutedNotification.d.ts +8 -0
  357. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelServiceTier.d.ts +5 -0
  358. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelUpgradeInfo.d.ts +6 -0
  359. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelVerification.d.ts +1 -0
  360. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ModelVerificationNotification.d.ts +6 -0
  361. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkAccess.d.ts +1 -0
  362. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkApprovalContext.d.ts +5 -0
  363. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkApprovalProtocol.d.ts +1 -0
  364. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkDomainPermission.d.ts +1 -0
  365. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkPolicyAmendment.d.ts +5 -0
  366. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkPolicyRuleAction.d.ts +1 -0
  367. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkRequirements.d.ts +40 -0
  368. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NetworkUnixSocketPermission.d.ts +1 -0
  369. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/NonSteerableTurnKind.d.ts +1 -0
  370. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/OverriddenMetadata.d.ts +7 -0
  371. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PatchApplyStatus.d.ts +1 -0
  372. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PatchChangeKind.d.ts +8 -0
  373. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionGrantScope.d.ts +1 -0
  374. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionProfile.d.ts +12 -0
  375. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionProfileFileSystemPermissions.d.ts +8 -0
  376. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionProfileModificationParams.d.ts +5 -0
  377. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionProfileNetworkPermissions.d.ts +3 -0
  378. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionProfileSelectionParams.d.ts +6 -0
  379. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionsRequestApprovalParams.d.ts +10 -0
  380. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PermissionsRequestApprovalResponse.d.ts +10 -0
  381. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PlanDeltaNotification.d.ts +10 -0
  382. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginAuthPolicy.d.ts +1 -0
  383. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginAvailability.d.ts +1 -0
  384. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginDetail.d.ts +13 -0
  385. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginInstallParams.d.ts +6 -0
  386. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginInstallPolicy.d.ts +1 -0
  387. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginInstallResponse.d.ts +6 -0
  388. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginInterface.d.ts +42 -0
  389. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginListMarketplaceKind.d.ts +1 -0
  390. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginListParams.d.ts +14 -0
  391. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginListResponse.d.ts +7 -0
  392. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginMarketplaceEntry.d.ts +13 -0
  393. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginReadParams.d.ts +6 -0
  394. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginReadResponse.d.ts +4 -0
  395. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareContext.d.ts +5 -0
  396. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareDeleteParams.d.ts +3 -0
  397. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareDeleteResponse.d.ts +1 -0
  398. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareDiscoverability.d.ts +1 -0
  399. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareListItem.d.ts +7 -0
  400. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareListParams.d.ts +1 -0
  401. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareListResponse.d.ts +4 -0
  402. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSharePrincipal.d.ts +6 -0
  403. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSharePrincipalType.d.ts +1 -0
  404. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareSaveParams.d.ts +9 -0
  405. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareSaveResponse.d.ts +4 -0
  406. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareTarget.d.ts +5 -0
  407. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareUpdateTargetsParams.d.ts +5 -0
  408. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginShareUpdateTargetsResponse.d.ts +4 -0
  409. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSkillReadParams.d.ts +5 -0
  410. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSkillReadResponse.d.ts +3 -0
  411. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSource.d.ts +13 -0
  412. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginSummary.d.ts +25 -0
  413. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginUninstallParams.d.ts +3 -0
  414. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginUninstallResponse.d.ts +1 -0
  415. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/PluginsMigration.d.ts +4 -0
  416. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ProcessExitedNotification.d.ts +39 -0
  417. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ProcessOutputDeltaNotification.d.ts +23 -0
  418. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ProcessOutputStream.d.ts +4 -0
  419. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ProcessTerminalSize.d.ts +13 -0
  420. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ProfileV2.d.ts +29 -0
  421. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RateLimitReachedType.d.ts +1 -0
  422. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RateLimitSnapshot.d.ts +13 -0
  423. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RateLimitWindow.d.ts +5 -0
  424. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RawResponseItemCompletedNotification.d.ts +6 -0
  425. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReasoningEffortOption.d.ts +5 -0
  426. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReasoningSummaryPartAddedNotification.d.ts +6 -0
  427. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReasoningSummaryTextDeltaNotification.d.ts +7 -0
  428. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReasoningTextDeltaNotification.d.ts +7 -0
  429. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RemoteControlClientConnectionAudience.d.ts +4 -0
  430. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RemoteControlClientEnrollmentAudience.d.ts +4 -0
  431. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RemoteControlConnectionStatus.d.ts +1 -0
  432. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RemoteControlStatusChangedNotification.d.ts +8 -0
  433. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/RequestPermissionProfile.d.ts +6 -0
  434. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ResidencyRequirement.d.ts +1 -0
  435. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReviewDelivery.d.ts +1 -0
  436. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReviewStartParams.d.ts +11 -0
  437. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReviewStartResponse.d.ts +11 -0
  438. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ReviewTarget.d.ts +16 -0
  439. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SandboxMode.d.ts +1 -0
  440. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SandboxPolicy.d.ts +17 -0
  441. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SandboxWorkspaceWrite.d.ts +6 -0
  442. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SendAddCreditsNudgeEmailParams.d.ts +4 -0
  443. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SendAddCreditsNudgeEmailResponse.d.ts +4 -0
  444. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ServerRequestResolvedNotification.d.ts +5 -0
  445. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SessionMigration.d.ts +5 -0
  446. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SessionSource.d.ts +6 -0
  447. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillDependencies.d.ts +4 -0
  448. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillErrorInfo.d.ts +4 -0
  449. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillInterface.d.ts +9 -0
  450. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillMetadata.d.ts +17 -0
  451. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillScope.d.ts +1 -0
  452. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillSummary.d.ts +10 -0
  453. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillToolDependency.d.ts +8 -0
  454. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsChangedNotification.d.ts +7 -0
  455. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsConfigWriteParams.d.ts +12 -0
  456. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsConfigWriteResponse.d.ts +3 -0
  457. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsListEntry.d.ts +7 -0
  458. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsListExtraRootsForCwd.d.ts +4 -0
  459. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsListParams.d.ts +15 -0
  460. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SkillsListResponse.d.ts +4 -0
  461. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SortDirection.d.ts +1 -0
  462. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/SubagentMigration.d.ts +3 -0
  463. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TerminalInteractionNotification.d.ts +7 -0
  464. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TextElement.d.ts +11 -0
  465. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TextPosition.d.ts +10 -0
  466. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TextRange.d.ts +5 -0
  467. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/Thread.d.ts +84 -0
  468. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadActiveFlag.d.ts +1 -0
  469. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadApproveGuardianDeniedActionParams.d.ts +8 -0
  470. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadApproveGuardianDeniedActionResponse.d.ts +1 -0
  471. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadArchiveParams.d.ts +3 -0
  472. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadArchiveResponse.d.ts +1 -0
  473. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadArchivedNotification.d.ts +3 -0
  474. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadClosedNotification.d.ts +3 -0
  475. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadCompactStartParams.d.ts +3 -0
  476. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadCompactStartResponse.d.ts +1 -0
  477. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadForkParams.d.ts +38 -0
  478. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadForkResponse.d.ts +26 -0
  479. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadGoal.d.ts +11 -0
  480. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadGoalClearedNotification.d.ts +3 -0
  481. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadGoalStatus.d.ts +1 -0
  482. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadGoalUpdatedNotification.d.ts +6 -0
  483. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadInjectItemsParams.d.ts +8 -0
  484. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadInjectItemsResponse.d.ts +1 -0
  485. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadItem.d.ts +180 -0
  486. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadListParams.d.ts +51 -0
  487. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadListResponse.d.ts +16 -0
  488. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadLoadedListParams.d.ts +10 -0
  489. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadLoadedListResponse.d.ts +11 -0
  490. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadMetadataGitInfoUpdateParams.d.ts +17 -0
  491. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadMetadataUpdateParams.d.ts +10 -0
  492. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadMetadataUpdateResponse.d.ts +4 -0
  493. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadNameUpdatedNotification.d.ts +4 -0
  494. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadReadParams.d.ts +7 -0
  495. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadReadResponse.d.ts +4 -0
  496. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeAudioChunk.d.ts +10 -0
  497. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeClosedNotification.d.ts +7 -0
  498. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeErrorNotification.d.ts +7 -0
  499. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeItemAddedNotification.d.ts +8 -0
  500. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeOutputAudioDeltaNotification.d.ts +8 -0
  501. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeSdpNotification.d.ts +7 -0
  502. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeStartTransport.d.ts +13 -0
  503. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeStartedNotification.d.ts +9 -0
  504. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeTranscriptDeltaNotification.d.ts +12 -0
  505. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRealtimeTranscriptDoneNotification.d.ts +12 -0
  506. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadResumeParams.d.ts +37 -0
  507. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadResumeResponse.d.ts +26 -0
  508. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRollbackParams.d.ts +10 -0
  509. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadRollbackResponse.d.ts +11 -0
  510. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadSetNameParams.d.ts +4 -0
  511. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadSetNameResponse.d.ts +1 -0
  512. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadShellCommandParams.d.ts +10 -0
  513. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadShellCommandResponse.d.ts +1 -0
  514. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadSortKey.d.ts +1 -0
  515. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadSource.d.ts +1 -0
  516. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadSourceKind.d.ts +1 -0
  517. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStartParams.d.ts +31 -0
  518. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStartResponse.d.ts +26 -0
  519. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStartSource.d.ts +1 -0
  520. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStartedNotification.d.ts +4 -0
  521. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStatus.d.ts +11 -0
  522. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadStatusChangedNotification.d.ts +5 -0
  523. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadTokenUsage.d.ts +6 -0
  524. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadTokenUsageUpdatedNotification.d.ts +6 -0
  525. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnarchiveParams.d.ts +3 -0
  526. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnarchiveResponse.d.ts +4 -0
  527. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnarchivedNotification.d.ts +3 -0
  528. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnsubscribeParams.d.ts +3 -0
  529. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnsubscribeResponse.d.ts +4 -0
  530. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ThreadUnsubscribeStatus.d.ts +1 -0
  531. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TokenUsageBreakdown.d.ts +7 -0
  532. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolRequestUserInputAnswer.d.ts +6 -0
  533. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolRequestUserInputOption.d.ts +7 -0
  534. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolRequestUserInputParams.d.ts +10 -0
  535. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolRequestUserInputQuestion.d.ts +12 -0
  536. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolRequestUserInputResponse.d.ts +9 -0
  537. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/ToolsV2.d.ts +5 -0
  538. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/Turn.d.ts +32 -0
  539. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnCompletedNotification.d.ts +5 -0
  540. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnDiffUpdatedNotification.d.ts +9 -0
  541. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnEnvironmentParams.d.ts +5 -0
  542. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnError.d.ts +6 -0
  543. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnInterruptParams.d.ts +4 -0
  544. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnInterruptResponse.d.ts +1 -0
  545. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnItemsView.d.ts +1 -0
  546. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnPlanStep.d.ts +5 -0
  547. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnPlanStepStatus.d.ts +1 -0
  548. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnPlanUpdatedNotification.d.ts +7 -0
  549. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnStartParams.d.ts +44 -0
  550. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnStartResponse.d.ts +4 -0
  551. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnStartedNotification.d.ts +5 -0
  552. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnStatus.d.ts +1 -0
  553. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnSteerParams.d.ts +9 -0
  554. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/TurnSteerResponse.d.ts +3 -0
  555. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/UserInput.d.ts +23 -0
  556. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WarningNotification.d.ts +10 -0
  557. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WebSearchAction.d.ts +14 -0
  558. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxReadiness.d.ts +1 -0
  559. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxReadinessResponse.d.ts +4 -0
  560. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxSetupCompletedNotification.d.ts +6 -0
  561. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxSetupMode.d.ts +1 -0
  562. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxSetupStartParams.d.ts +6 -0
  563. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsSandboxSetupStartResponse.d.ts +3 -0
  564. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WindowsWorldWritableWarningNotification.d.ts +5 -0
  565. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/WriteStatus.d.ts +1 -0
  566. package/dist/internal/codex/app-server-protocol/schema/typescript/v2/index.d.ts +457 -0
  567. package/dist/internal/codex/app-server-protocol/src/protocol/common.d.ts +36 -0
  568. package/dist/internal/codex/app-server-protocol/src/protocol/event-mapping.d.ts +41 -0
  569. package/dist/internal/codex/app-server-protocol/src/protocol/index.d.ts +3 -0
  570. package/dist/internal/codex/app-server-protocol/src/protocol/thread-resume.d.ts +11 -0
  571. package/dist/internal/codex/app-server-transport/src/outgoing_message.d.ts +27 -0
  572. package/dist/internal/codex/app-server-transport/src/transport/mod.d.ts +78 -0
  573. package/dist/internal/codex/codex-api/src/common.d.ts +100 -0
  574. package/dist/internal/codex/codex-api/src/endpoint/responses.d.ts +28 -0
  575. package/dist/internal/codex/codex-api/src/endpoint/responses_websocket.d.ts +54 -0
  576. package/dist/internal/codex/codex-api/src/error.d.ts +21 -0
  577. package/dist/internal/codex/codex-api/src/index.d.ts +9 -0
  578. package/dist/internal/codex/codex-api/src/provider.d.ts +22 -0
  579. package/dist/internal/codex/codex-api/src/rate_limits.d.ts +3 -0
  580. package/dist/internal/codex/codex-api/src/requests/responses.d.ts +16 -0
  581. package/dist/internal/codex/codex-api/src/sse/responses.d.ts +13 -0
  582. package/dist/internal/codex/codex-api/src/stream_events_utils.d.ts +23 -0
  583. package/dist/internal/codex/codex-mcp/src/auth_elicitation.d.ts +41 -0
  584. package/dist/internal/codex/codex-mcp/src/codex_apps.d.ts +57 -0
  585. package/dist/internal/codex/codex-mcp/src/connection_manager.d.ts +72 -0
  586. package/dist/internal/codex/codex-mcp/src/elicitation.d.ts +77 -0
  587. package/dist/internal/codex/codex-mcp/src/mcp/auth.d.ts +64 -0
  588. package/dist/internal/codex/codex-mcp/src/mcp/mod.d.ts +16 -0
  589. package/dist/internal/codex/codex-mcp/src/rmcp_client.d.ts +221 -0
  590. package/dist/internal/codex/codex-mcp/src/tools.d.ts +37 -0
  591. package/dist/internal/codex/config/src/config_toml.d.ts +14 -0
  592. package/dist/internal/codex/config/src/index.d.ts +7 -0
  593. package/dist/internal/codex/config/src/loader/mod.d.ts +21 -0
  594. package/dist/internal/codex/config/src/merge.d.ts +22 -0
  595. package/dist/internal/codex/config/src/permissions_toml.d.ts +6 -0
  596. package/dist/internal/codex/config/src/profile_toml.d.ts +1 -0
  597. package/dist/internal/codex/config/src/thread_config.d.ts +43 -0
  598. package/dist/internal/codex/config/src/types.d.ts +121 -0
  599. package/dist/internal/codex/core/src/agent/agent_resolver.d.ts +3 -0
  600. package/dist/internal/codex/core/src/agent/control.d.ts +76 -0
  601. package/dist/internal/codex/core/src/agent/mailbox.d.ts +28 -0
  602. package/dist/internal/codex/core/src/agent/mod.d.ts +6 -0
  603. package/dist/internal/codex/core/src/agent/registry.d.ts +54 -0
  604. package/dist/internal/codex/core/src/agent/role.d.ts +19 -0
  605. package/dist/internal/codex/core/src/agent/status.d.ts +3 -0
  606. package/dist/internal/codex/core/src/auth.d.ts +65 -0
  607. package/dist/internal/codex/core/src/client.d.ts +129 -0
  608. package/dist/internal/codex/core/src/collaboration-mode-presets.d.ts +9 -0
  609. package/dist/internal/codex/core/src/compact-task-runner.d.ts +18 -0
  610. package/dist/internal/codex/core/src/compact.d.ts +12 -0
  611. package/dist/internal/codex/core/src/config/agent_roles.d.ts +6 -0
  612. package/dist/internal/codex/core/src/config/managed_features.d.ts +7 -0
  613. package/dist/internal/codex/core/src/config/mod.d.ts +9 -0
  614. package/dist/internal/codex/core/src/config/network_proxy_spec.d.ts +5 -0
  615. package/dist/internal/codex/core/src/config/permissions.d.ts +30 -0
  616. package/dist/internal/codex/core/src/config-types.d.ts +28 -0
  617. package/dist/internal/codex/core/src/context/collaboration-mode-instructions.d.ts +10 -0
  618. package/dist/internal/codex/core/src/context/context-updates.d.ts +10 -0
  619. package/dist/internal/codex/core/src/context/environment-context.d.ts +24 -0
  620. package/dist/internal/codex/core/src/context/fragment.d.ts +22 -0
  621. package/dist/internal/codex/core/src/context/permissions-instructions.d.ts +8 -0
  622. package/dist/internal/codex/core/src/context/prompt-context.d.ts +8 -0
  623. package/dist/internal/codex/core/src/context/turn-aborted.d.ts +3 -0
  624. package/dist/internal/codex/core/src/context/user-instructions.d.ts +7 -0
  625. package/dist/internal/codex/core/src/context_manager/history.d.ts +60 -0
  626. package/dist/internal/codex/core/src/context_manager/normalize.d.ts +6 -0
  627. package/dist/internal/codex/core/src/event-mapping.d.ts +9 -0
  628. package/dist/internal/codex/core/src/exec-output.d.ts +20 -0
  629. package/dist/internal/codex/core/src/goals/index.d.ts +2 -0
  630. package/dist/internal/codex/core/src/goals/runtime.d.ts +32 -0
  631. package/dist/internal/codex/core/src/goals/types.d.ts +95 -0
  632. package/dist/internal/codex/core/src/goals.d.ts +1 -0
  633. package/dist/internal/codex/core/src/hooks/dispatcher.d.ts +5 -0
  634. package/dist/internal/codex/core/src/hooks/index.d.ts +4 -0
  635. package/dist/internal/codex/core/src/hooks/output-parser.d.ts +9 -0
  636. package/dist/internal/codex/core/src/hooks/runtime.d.ts +125 -0
  637. package/dist/internal/codex/core/src/hooks/types.d.ts +40 -0
  638. package/dist/internal/codex/core/src/ids.d.ts +5 -0
  639. package/dist/internal/codex/core/src/index.d.ts +98 -0
  640. package/dist/internal/codex/core/src/items.d.ts +137 -0
  641. package/dist/internal/codex/core/src/mcp/index.d.ts +10 -0
  642. package/dist/internal/codex/core/src/mcp/manager.d.ts +73 -0
  643. package/dist/internal/codex/core/src/mcp/types.d.ts +165 -0
  644. package/dist/internal/codex/core/src/mcp.d.ts +1 -0
  645. package/dist/internal/codex/core/src/memory.d.ts +21 -0
  646. package/dist/internal/codex/core/src/model-provider.d.ts +193 -0
  647. package/dist/internal/codex/core/src/models.d.ts +158 -0
  648. package/dist/internal/codex/core/src/plan-mode.d.ts +1 -0
  649. package/dist/internal/codex/core/src/protocol/dynamic_tools.d.ts +48 -0
  650. package/dist/internal/codex/core/src/protocol/user_input.d.ts +30 -0
  651. package/dist/internal/codex/core/src/protocol.d.ts +893 -0
  652. package/dist/internal/codex/core/src/rendered-thread.d.ts +30 -0
  653. package/dist/internal/codex/core/src/request_permissions.d.ts +52 -0
  654. package/dist/internal/codex/core/src/request_user_input.d.ts +47 -0
  655. package/dist/internal/codex/core/src/session/rollout-reconstruction.d.ts +11 -0
  656. package/dist/internal/codex/core/src/session/session-settings.d.ts +29 -0
  657. package/dist/internal/codex/core/src/session/session.d.ts +226 -0
  658. package/dist/internal/codex/core/src/session/turn-context.d.ts +71 -0
  659. package/dist/internal/codex/core/src/session/turn-timing.d.ts +12 -0
  660. package/dist/internal/codex/core/src/session/turn.d.ts +35 -0
  661. package/dist/internal/codex/core/src/state/session.d.ts +40 -0
  662. package/dist/internal/codex/core/src/state/turn.d.ts +83 -0
  663. package/dist/internal/codex/core/src/stream-parser.d.ts +36 -0
  664. package/dist/internal/codex/core/src/stream_events_utils.d.ts +43 -0
  665. package/dist/internal/codex/core/src/tasks/compact.d.ts +26 -0
  666. package/dist/internal/codex/core/src/tasks/mod.d.ts +43 -0
  667. package/dist/internal/codex/core/src/tasks/regular.d.ts +27 -0
  668. package/dist/internal/codex/core/src/templates.d.ts +12 -0
  669. package/dist/{thread-history-builder-zW0zeqcS.d.ts → internal/codex/core/src/thread-history-builder.d.ts} +14 -16
  670. package/dist/internal/codex/core/src/thread-store/index.d.ts +3 -0
  671. package/dist/{live-thread-BMvlflzM.d.ts → internal/codex/core/src/thread-store/live-thread.d.ts} +7 -8
  672. package/dist/{store-AGRxhgQ3.d.ts → internal/codex/core/src/thread-store/store.d.ts} +3 -6
  673. package/dist/{types-BTeabLYr.d.ts → internal/codex/core/src/thread-store/types.d.ts} +25 -26
  674. package/dist/internal/codex/core/src/tools/code_mode/execute_handler.d.ts +7 -0
  675. package/dist/internal/codex/core/src/tools/code_mode/execute_spec.d.ts +13 -0
  676. package/dist/internal/codex/core/src/tools/code_mode/mod.d.ts +5 -0
  677. package/dist/internal/codex/core/src/tools/code_mode/response_adapter.d.ts +2 -0
  678. package/dist/internal/codex/core/src/tools/code_mode/wait_handler.d.ts +7 -0
  679. package/dist/internal/codex/core/src/tools/code_mode/wait_spec.d.ts +13 -0
  680. package/dist/internal/codex/core/src/tools/context.d.ts +155 -0
  681. package/dist/internal/codex/core/src/tools/events.d.ts +50 -0
  682. package/dist/internal/codex/core/src/tools/handlers/apply_patch.d.ts +14 -0
  683. package/dist/internal/codex/core/src/tools/handlers/apply_patch_spec.d.ts +16 -0
  684. package/dist/internal/codex/core/src/tools/handlers/dynamic.d.ts +17 -0
  685. package/dist/internal/codex/core/src/tools/handlers/goal.d.ts +20 -0
  686. package/dist/internal/codex/core/src/tools/handlers/goal_spec.d.ts +51 -0
  687. package/dist/internal/codex/core/src/tools/handlers/mcp.d.ts +23 -0
  688. package/dist/internal/codex/core/src/tools/handlers/mcp_resource.d.ts +24 -0
  689. package/dist/internal/codex/core/src/tools/handlers/mcp_resource_spec.d.ts +61 -0
  690. package/dist/internal/codex/core/src/tools/handlers/multi_agents.d.ts +50 -0
  691. package/dist/internal/codex/core/src/tools/handlers/multi_agents_common.d.ts +3 -0
  692. package/dist/internal/codex/core/src/tools/handlers/multi_agents_spec.d.ts +5 -0
  693. package/dist/internal/codex/core/src/tools/handlers/multi_agents_v2.d.ts +1 -0
  694. package/dist/internal/codex/core/src/tools/handlers/plan.d.ts +8 -0
  695. package/dist/internal/codex/core/src/tools/handlers/plan_spec.d.ts +35 -0
  696. package/dist/internal/codex/core/src/tools/handlers/request_permissions.d.ts +7 -0
  697. package/dist/internal/codex/core/src/tools/handlers/request_permissions_spec.d.ts +1 -0
  698. package/dist/internal/codex/core/src/tools/handlers/request_plugin_install.d.ts +8 -0
  699. package/dist/internal/codex/core/src/tools/handlers/request_plugin_install_spec.d.ts +12 -0
  700. package/dist/internal/codex/core/src/tools/handlers/request_user_input.d.ts +13 -0
  701. package/dist/internal/codex/core/src/tools/handlers/request_user_input_spec.d.ts +1 -0
  702. package/dist/internal/codex/core/src/tools/handlers/shell_spec.d.ts +60 -0
  703. package/dist/internal/codex/core/src/tools/handlers/test_sync.d.ts +1 -0
  704. package/dist/internal/codex/core/src/tools/handlers/test_sync_spec.d.ts +12 -0
  705. package/dist/internal/codex/core/src/tools/handlers/tool_search.d.ts +28 -0
  706. package/dist/internal/codex/core/src/tools/handlers/tool_search_spec.d.ts +21 -0
  707. package/dist/internal/codex/core/src/tools/handlers/unavailable_tool.d.ts +10 -0
  708. package/dist/internal/codex/core/src/tools/handlers/unified_exec/exec_command.d.ts +13 -0
  709. package/dist/internal/codex/core/src/tools/handlers/unified_exec/write_stdin.d.ts +8 -0
  710. package/dist/internal/codex/core/src/tools/handlers/unified_exec.d.ts +2 -0
  711. package/dist/internal/codex/core/src/tools/hook_names.d.ts +6 -0
  712. package/dist/internal/codex/core/src/tools/hosted_spec.d.ts +9 -0
  713. package/dist/internal/codex/core/src/tools/network_approval.d.ts +11 -0
  714. package/dist/internal/codex/core/src/tools/orchestrator.d.ts +28 -0
  715. package/dist/internal/codex/core/src/tools/parallel.d.ts +33 -0
  716. package/dist/internal/codex/core/src/tools/registry.d.ts +27 -0
  717. package/dist/internal/codex/core/src/tools/responses_api.d.ts +34 -0
  718. package/dist/internal/codex/core/src/tools/router.d.ts +50 -0
  719. package/dist/internal/codex/core/src/tools/runtimes/apply_patch.d.ts +2 -0
  720. package/dist/internal/codex/core/src/tools/runtimes/mod.d.ts +4 -0
  721. package/dist/internal/codex/core/src/tools/runtimes/shell.d.ts +2 -0
  722. package/dist/internal/codex/core/src/tools/runtimes/unified_exec.d.ts +2 -0
  723. package/dist/internal/codex/core/src/tools/sandboxing.d.ts +36 -0
  724. package/dist/internal/codex/core/src/tools/spec.d.ts +10 -0
  725. package/dist/internal/codex/core/src/tools/spec_plan.d.ts +2 -0
  726. package/dist/internal/codex/core/src/tools/spec_plan_types.d.ts +93 -0
  727. package/dist/internal/codex/core/src/tools/tool_dispatch_trace.d.ts +12 -0
  728. package/dist/internal/codex/core/src/tools/tool_name.d.ts +17 -0
  729. package/dist/internal/codex/core/src/tools/tool_search_entry.d.ts +35 -0
  730. package/dist/internal/codex/core/src/tools/tool_spec.d.ts +29 -0
  731. package/dist/{mod-DYVLSWO4.d.ts → internal/codex/thread-store/src/in_memory.d.ts} +8 -39
  732. package/dist/internal/codex/thread-store/src/index.d.ts +6 -0
  733. package/dist/internal/codex/thread-store/src/local/mod.d.ts +32 -0
  734. package/dist/internal/codex/utils/output-truncation/src/lib.d.ts +19 -0
  735. package/dist/internal/codex/utils/string/src/lib.d.ts +1 -0
  736. package/dist/internal/codex/utils/string/src/truncate.d.ts +5 -0
  737. package/dist/runtime/index.d.ts +47 -0
  738. package/dist/server/index.d.ts +2 -29
  739. package/dist/server/index.js +20488 -15
  740. package/dist/testing/index.d.ts +2 -9
  741. package/dist/testing/index.js +1698 -15
  742. package/package.json +9 -100
  743. package/dist/ClientNotification-B6-FhXQf.d.ts +0 -5
  744. package/dist/DynamicToolCallResponse-82DFjES2.d.ts +0 -8
  745. package/dist/DynamicToolSpec-CfnhqAYK.d.ts +0 -29
  746. package/dist/PermissionsRequestApprovalResponse-DxzPPDRb.d.ts +0 -55
  747. package/dist/ProviderStatusBanner-BlP6lzwE.d.ts +0 -441
  748. package/dist/ServerRequest-B5cKVJjr.d.ts +0 -2181
  749. package/dist/ThreadResumeResponse-DvmE1juU.d.ts +0 -1542
  750. package/dist/ToolRequestUserInputQuestion-CeZa5X1J.d.ts +0 -23
  751. package/dist/ToolRequestUserInputResponse-zcPLwbiK.d.ts +0 -17
  752. package/dist/TurnSteerResponse-0kBCfplh.d.ts +0 -209
  753. package/dist/WebSearchToolConfig-D3ep0625.d.ts +0 -18
  754. package/dist/chat-runtime-B6azJyKo.d.ts +0 -381
  755. package/dist/chunk-2DZRMCI2.js +0 -1258
  756. package/dist/chunk-2DZRMCI2.js.map +0 -1
  757. package/dist/chunk-4DPLJPB5.js +0 -396
  758. package/dist/chunk-4DPLJPB5.js.map +0 -1
  759. package/dist/chunk-5JMJ6OI5.js +0 -3
  760. package/dist/chunk-5JMJ6OI5.js.map +0 -1
  761. package/dist/chunk-6ZMJ34KE.js +0 -1153
  762. package/dist/chunk-6ZMJ34KE.js.map +0 -1
  763. package/dist/chunk-CGBS37IU.js +0 -128
  764. package/dist/chunk-CGBS37IU.js.map +0 -1
  765. package/dist/chunk-DCMKA2A6.js +0 -18
  766. package/dist/chunk-DCMKA2A6.js.map +0 -1
  767. package/dist/chunk-DYLHN3HG.js +0 -937
  768. package/dist/chunk-DYLHN3HG.js.map +0 -1
  769. package/dist/chunk-FN3SWHRH.js +0 -934
  770. package/dist/chunk-FN3SWHRH.js.map +0 -1
  771. package/dist/chunk-ILXA6HLX.js +0 -1973
  772. package/dist/chunk-ILXA6HLX.js.map +0 -1
  773. package/dist/chunk-LWQNX4LI.js +0 -13755
  774. package/dist/chunk-LWQNX4LI.js.map +0 -1
  775. package/dist/chunk-NCI4MAWZ.js +0 -7733
  776. package/dist/chunk-NCI4MAWZ.js.map +0 -1
  777. package/dist/chunk-O44XP7LH.js +0 -214
  778. package/dist/chunk-O44XP7LH.js.map +0 -1
  779. package/dist/chunk-PST3ZWX2.js +0 -555
  780. package/dist/chunk-PST3ZWX2.js.map +0 -1
  781. package/dist/chunk-SYPHCDRD.js +0 -1133
  782. package/dist/chunk-SYPHCDRD.js.map +0 -1
  783. package/dist/chunk-V4BMZWBM.js +0 -2401
  784. package/dist/chunk-V4BMZWBM.js.map +0 -1
  785. package/dist/chunk-YHVCFD2D.js +0 -117
  786. package/dist/chunk-YHVCFD2D.js.map +0 -1
  787. package/dist/chunk-Z63UPBS3.js +0 -152
  788. package/dist/chunk-Z63UPBS3.js.map +0 -1
  789. package/dist/chunk-ZX5OIIJX.js +0 -3
  790. package/dist/chunk-ZX5OIIJX.js.map +0 -1
  791. package/dist/client/index.js.map +0 -1
  792. package/dist/codex-rs/app-server/index.d.ts +0 -161
  793. package/dist/codex-rs/app-server/index.js +0 -13
  794. package/dist/codex-rs/app-server/index.js.map +0 -1
  795. package/dist/codex-rs/app-server-protocol/index.d.ts +0 -1722
  796. package/dist/codex-rs/app-server-protocol/index.js +0 -6
  797. package/dist/codex-rs/app-server-protocol/index.js.map +0 -1
  798. package/dist/codex-rs/app-server-protocol/protocol.d.ts +0 -19
  799. package/dist/codex-rs/app-server-protocol/protocol.js +0 -4
  800. package/dist/codex-rs/app-server-protocol/protocol.js.map +0 -1
  801. package/dist/codex-rs/codex-api/index.d.ts +0 -104
  802. package/dist/codex-rs/codex-api/index.js +0 -11
  803. package/dist/codex-rs/codex-api/index.js.map +0 -1
  804. package/dist/codex-rs/config/index.d.ts +0 -88
  805. package/dist/codex-rs/config/index.js +0 -4
  806. package/dist/codex-rs/config/index.js.map +0 -1
  807. package/dist/codex-rs/core/config/index.d.ts +0 -61
  808. package/dist/codex-rs/core/config/index.js +0 -5
  809. package/dist/codex-rs/core/config/index.js.map +0 -1
  810. package/dist/codex-rs/core/index.d.ts +0 -1393
  811. package/dist/codex-rs/core/index.js +0 -11
  812. package/dist/codex-rs/core/index.js.map +0 -1
  813. package/dist/codex-rs/model-provider/index.d.ts +0 -2
  814. package/dist/codex-rs/model-provider/index.js +0 -4
  815. package/dist/codex-rs/model-provider/index.js.map +0 -1
  816. package/dist/codex-rs/models-manager/index.d.ts +0 -2
  817. package/dist/codex-rs/models-manager/index.js +0 -4
  818. package/dist/codex-rs/models-manager/index.js.map +0 -1
  819. package/dist/codex-rs/parity.d.ts +0 -26
  820. package/dist/codex-rs/parity.js +0 -3
  821. package/dist/codex-rs/parity.js.map +0 -1
  822. package/dist/codex-rs/thread-store/index.d.ts +0 -5
  823. package/dist/codex-rs/thread-store/index.js +0 -4
  824. package/dist/codex-rs/thread-store/index.js.map +0 -1
  825. package/dist/codex-rs/unsupported.d.ts +0 -15
  826. package/dist/codex-rs/unsupported.js +0 -22
  827. package/dist/codex-rs/unsupported.js.map +0 -1
  828. package/dist/codex-rs/utils/output-truncation.d.ts +0 -21
  829. package/dist/codex-rs/utils/output-truncation.js +0 -4
  830. package/dist/codex-rs/utils/output-truncation.js.map +0 -1
  831. package/dist/codex-rs/utils/string.d.ts +0 -7
  832. package/dist/codex-rs/utils/string.js +0 -3
  833. package/dist/codex-rs/utils/string.js.map +0 -1
  834. package/dist/common-CTyph5x8.d.ts +0 -40
  835. package/dist/event-mapping-CbISdQ1D.d.ts +0 -43
  836. package/dist/history-CfM-4V7b.d.ts +0 -1654
  837. package/dist/index-CoDZosq0.d.ts +0 -261
  838. package/dist/index.js.map +0 -1
  839. package/dist/lib-nXlaKiS-.d.ts +0 -48
  840. package/dist/merge-B_AWVmnI.d.ts +0 -24
  841. package/dist/plan-mode-Cv6KWb_S.d.ts +0 -14
  842. package/dist/proposed-plan-DpN1ma0Y.d.ts +0 -53
  843. package/dist/protocol-mpBcYHrm.d.ts +0 -1655
  844. package/dist/react/index.d.ts +0 -41
  845. package/dist/react/index.js +0 -19
  846. package/dist/react/index.js.map +0 -1
  847. package/dist/remote-ClZbq9KN.d.ts +0 -21
  848. package/dist/rendered-thread-AOxw3V5b.d.ts +0 -29
  849. package/dist/responses_websocket-BhxSgCzK.d.ts +0 -183
  850. package/dist/runtime-Cm6ml53h.d.ts +0 -528
  851. package/dist/server/index.js.map +0 -1
  852. package/dist/shadcn/index.d.ts +0 -68
  853. package/dist/shadcn/index.js +0 -334
  854. package/dist/shadcn/index.js.map +0 -1
  855. package/dist/sidebar-DMMij22z.d.ts +0 -87
  856. package/dist/spec_plan_types-CmsJ-Tfn.d.ts +0 -260
  857. package/dist/styles.css +0 -1
  858. package/dist/t3code/apps/web/components/chat.d.ts +0 -508
  859. package/dist/t3code/apps/web/components/chat.js +0 -12
  860. package/dist/t3code/apps/web/components/chat.js.map +0 -1
  861. package/dist/t3code/apps/web/index.d.ts +0 -12
  862. package/dist/t3code/apps/web/index.js +0 -13
  863. package/dist/t3code/apps/web/index.js.map +0 -1
  864. package/dist/testing/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/upstream/codex-rs/thread-store/src/in_memory.ts","../src/upstream/codex-rs/thread-store/src/local/mod.ts"],"names":[],"mappings":";;;AAmDA,IAAM,MAAA,uBAAa,GAAA,EAAiC;AAE7C,IAAM,mBAAA,GAAN,MAAM,oBAAA,CAA2C;AAAA,EACpC,KAAA,GAAkC;AAAA,IACpD,OAAO,UAAA,EAAW;AAAA,IAClB,cAAA,sBAAoB,GAAA,EAAI;AAAA,IACxB,SAAA,sBAAe,GAAA,EAAI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A,CAAW,WAAA,CAAY,GAAG,CAAA;AACjD,EAAA,OAAO,kBAAkB,CAAA,GAAI,GAAA,GAAM,UAAA,CAAW,KAAA,CAAM,GAAG,cAAc,CAAA;AACtE","file":"chunk-4DPLJPB5.js","sourcesContent":["import { ThreadMemoryMode } from \"../../core/src/memory\";\nimport type { ThreadId } from \"../../core/src/ids\";\nimport type { RolloutItem } from \"../../core/src/protocol\";\nimport type {\n\tAppendThreadItemsParams,\n\tArchiveThreadParams,\n\tCreateThreadParams,\n\tListThreadsParams,\n\tLoadThreadHistoryParams,\n\tReadThreadByRolloutPathParams,\n\tReadThreadParams,\n\tResumeThreadParams,\n\tStoredThread,\n\tStoredThreadHistory,\n\tThreadPage,\n\tUpdateThreadMetadataParams,\n} from \"../../core/src/thread-store/types\";\nimport type { ThreadStore } from \"../../core/src/thread-store/store\";\n\nexport type InMemoryThreadStoreCalls = {\n\tarchiveThread: number;\n\tappendItems: number;\n\tcreateThread: number;\n\tdiscardThread: number;\n\tflushThread: number;\n\tlistThreads: number;\n\tloadHistory: number;\n\tpersistThread: number;\n\treadThread: number;\n\treadThreadByRolloutPath: number;\n\tresumeThread: number;\n\tshutdownThread: number;\n\tunarchiveThread: number;\n\tupdateThreadMetadata: number;\n};\n\ntype InMemoryThreadStoreState = {\n\tcalls: InMemoryThreadStoreCalls;\n\tcreatedThreads: Map<ThreadId, CreateThreadParams>;\n\thistories: Map<ThreadId, RolloutItem[]>;\n\trolloutPaths: Map<string, ThreadId>;\n\tthreads: Map<ThreadId, StoredThread>;\n};\n\nexport type InMemoryThreadStoreSnapshot = {\n\tcreatedThreads: Array<[ThreadId, CreateThreadParams]>;\n\thistories: Array<[ThreadId, RolloutItem[]]>;\n\trolloutPaths: Array<[string, ThreadId]>;\n\tthreads: Array<[ThreadId, StoredThread]>;\n};\n\nconst stores = new Map<string, InMemoryThreadStore>();\n\nexport class InMemoryThreadStore implements ThreadStore {\n\tprotected readonly state: InMemoryThreadStoreState = {\n\t\tcalls: emptyCalls(),\n\t\tcreatedThreads: new Map(),\n\t\thistories: new Map(),\n\t\trolloutPaths: new Map(),\n\t\tthreads: new Map(),\n\t};\n\n\tstatic forId(id: string): InMemoryThreadStore {\n\t\tconst existing = stores.get(id);\n\t\tif (existing) {\n\t\t\treturn existing;\n\t\t}\n\t\tconst store = new InMemoryThreadStore();\n\t\tstores.set(id, store);\n\t\treturn store;\n\t}\n\n\tstatic removeId(id: string): InMemoryThreadStore | null {\n\t\tconst store = stores.get(id) ?? null;\n\t\tstores.delete(id);\n\t\treturn store;\n\t}\n\n\tcalls(): InMemoryThreadStoreCalls {\n\t\treturn { ...this.state.calls };\n\t}\n\n\tsnapshot(): InMemoryThreadStoreSnapshot {\n\t\treturn {\n\t\t\tcreatedThreads: Array.from(this.state.createdThreads.entries()),\n\t\t\thistories: Array.from(this.state.histories.entries()).map(\n\t\t\t\t([threadId, items]) => [threadId, [...items]],\n\t\t\t),\n\t\t\trolloutPaths: Array.from(this.state.rolloutPaths.entries()),\n\t\t\tthreads: Array.from(this.state.threads.entries()).map(\n\t\t\t\t([threadId, thread]) => [threadId, { ...thread }],\n\t\t\t),\n\t\t};\n\t}\n\n\trestoreSnapshot(snapshot: InMemoryThreadStoreSnapshot): void {\n\t\tthis.state.createdThreads = new Map(snapshot.createdThreads);\n\t\tthis.state.histories = new Map(\n\t\t\tsnapshot.histories.map(([threadId, items]) => [threadId, [...items]]),\n\t\t);\n\t\tthis.state.rolloutPaths = new Map(snapshot.rolloutPaths);\n\t\tthis.state.threads = new Map(\n\t\t\tsnapshot.threads.map(([threadId, thread]) => [threadId, { ...thread }]),\n\t\t);\n\t}\n\n\tasync createThread(params: CreateThreadParams): Promise<void> {\n\t\tthis.state.calls.createThread += 1;\n\t\tconst now = new Date().toISOString();\n\t\tthis.state.createdThreads.set(params.thread_id, params);\n\t\tthis.state.histories.set(params.thread_id, []);\n\t\tthis.state.threads.set(params.thread_id, {\n\t\t\tarchived_at: null,\n\t\t\tcreated_at: now,\n\t\t\tcwd: String(params.metadata.cwd ?? \"/\"),\n\t\t\tforked_from_id: params.forked_from_id ?? null,\n\t\t\thistory: null,\n\t\t\tmodel: stringOrNull(params.metadata.model),\n\t\t\tmodel_provider: params.metadata.model_provider,\n\t\t\tname: null,\n\t\t\tpreview: \"\",\n\t\t\treasoning_effort: stringOrNull(params.metadata.reasoning_effort),\n\t\t\tsource: params.source,\n\t\t\tthread_id: params.thread_id,\n\t\t\tthread_source: params.thread_source ?? null,\n\t\t\ttoken_usage: null,\n\t\t\tupdated_at: now,\n\t\t});\n\t}\n\n\tasync resumeThread(params: ResumeThreadParams): Promise<void> {\n\t\tthis.state.calls.resumeThread += 1;\n\t\tif (!this.state.threads.has(params.thread_id)) {\n\t\t\tconst now = new Date().toISOString();\n\t\t\tthis.state.threads.set(params.thread_id, {\n\t\t\t\tarchived_at: null,\n\t\t\t\tcreated_at: now,\n\t\t\t\tcwd: String(params.metadata.cwd ?? \"/\"),\n\t\t\t\thistory: null,\n\t\t\t\tmodel: stringOrNull(params.metadata.model),\n\t\t\t\tmodel_provider: params.metadata.model_provider,\n\t\t\t\tpreview: \"\",\n\t\t\t\tsource: \"appServer\",\n\t\t\t\tthread_id: params.thread_id,\n\t\t\t\ttoken_usage: lastTokenInfoFromRolloutItems(params.history ?? []),\n\t\t\t\tupdated_at: now,\n\t\t\t});\n\t\t}\n\t\tthis.state.histories.set(\n\t\t\tparams.thread_id,\n\t\t\t[...(params.history ?? this.state.histories.get(params.thread_id) ?? [])],\n\t\t);\n\t\tthis.updateThreadTokenUsage(\n\t\t\tparams.thread_id,\n\t\t\tparams.history ?? this.state.histories.get(params.thread_id) ?? [],\n\t\t);\n\t\tif (params.rollout_path) {\n\t\t\tthis.state.rolloutPaths.set(params.rollout_path, params.thread_id);\n\t\t}\n\t}\n\n\tasync appendItems(params: AppendThreadItemsParams): Promise<void> {\n\t\tthis.state.calls.appendItems += 1;\n\t\tthis.history(params.thread_id).push(...params.items);\n\t\tthis.updateThreadTokenUsage(params.thread_id, params.items);\n\t\tthis.touch(params.thread_id);\n\t}\n\n\tasync persistThread(threadId: ThreadId): Promise<void> {\n\t\tvoid threadId;\n\t\tthis.state.calls.persistThread += 1;\n\t}\n\n\tasync flushThread(threadId: ThreadId): Promise<void> {\n\t\tvoid threadId;\n\t\tthis.state.calls.flushThread += 1;\n\t}\n\n\tasync shutdownThread(threadId: ThreadId): Promise<void> {\n\t\tvoid threadId;\n\t\tthis.state.calls.shutdownThread += 1;\n\t}\n\n\tasync discardThread(threadId: ThreadId): Promise<void> {\n\t\tvoid threadId;\n\t\tthis.state.calls.discardThread += 1;\n\t}\n\n\tasync loadHistory(\n\t\tparams: LoadThreadHistoryParams,\n\t): Promise<StoredThreadHistory> {\n\t\tthis.state.calls.loadHistory += 1;\n\t\treturn {\n\t\t\titems: [...this.history(params.thread_id)],\n\t\t\tthread_id: params.thread_id,\n\t\t};\n\t}\n\n\tasync readThread(params: ReadThreadParams): Promise<StoredThread> {\n\t\tthis.state.calls.readThread += 1;\n\t\treturn this.storedThread(params.thread_id, params.include_history);\n\t}\n\n\tasync readThreadByRolloutPath(\n\t\tparams: ReadThreadByRolloutPathParams,\n\t): Promise<StoredThread> {\n\t\tthis.state.calls.readThreadByRolloutPath += 1;\n\t\tconst threadId = this.state.rolloutPaths.get(params.rollout_path);\n\t\tif (!threadId) {\n\t\t\tthrow new Error(`Unknown rollout path: ${params.rollout_path}`);\n\t\t}\n\t\treturn this.storedThread(threadId, params.include_history);\n\t}\n\n\tasync listThreads(params: ListThreadsParams): Promise<ThreadPage> {\n\t\tthis.state.calls.listThreads += 1;\n\t\tconst items = Array.from(this.state.threads.values())\n\t\t\t.filter((thread) => params.archived || !thread.archived_at)\n\t\t\t.sort((left, right) =>\n\t\t\t\tparams.sort_direction === \"Asc\"\n\t\t\t\t\t? left.created_at.localeCompare(right.created_at)\n\t\t\t\t\t: right.created_at.localeCompare(left.created_at),\n\t\t\t)\n\t\t\t.slice(0, params.page_size)\n\t\t\t.map((thread) => ({ ...thread, history: null }));\n\t\treturn { items, next_cursor: null };\n\t}\n\n\tasync updateThreadMetadata(\n\t\tparams: UpdateThreadMetadataParams,\n\t): Promise<StoredThread> {\n\t\tthis.state.calls.updateThreadMetadata += 1;\n\t\tconst thread = this.storedThread(params.thread_id, false);\n\t\tconst next: StoredThread = {\n\t\t\t...thread,\n\t\t\tname: params.patch.name ?? thread.name,\n\t\t\tupdated_at: new Date().toISOString(),\n\t\t};\n\t\tif (params.patch.memory_mode === ThreadMemoryMode.Enabled) {\n\t\t\tnext.preview = thread.preview;\n\t\t}\n\t\tthis.state.threads.set(params.thread_id, next);\n\t\treturn { ...next };\n\t}\n\n\tasync archiveThread(params: ArchiveThreadParams): Promise<void> {\n\t\tthis.state.calls.archiveThread += 1;\n\t\tconst thread = this.storedThread(params.thread_id, false);\n\t\tthis.state.threads.set(params.thread_id, {\n\t\t\t...thread,\n\t\t\tarchived_at: new Date().toISOString(),\n\t\t});\n\t}\n\n\tasync unarchiveThread(params: ArchiveThreadParams): Promise<StoredThread> {\n\t\tthis.state.calls.unarchiveThread += 1;\n\t\tconst thread = this.storedThread(params.thread_id, false);\n\t\tconst next = { ...thread, archived_at: null };\n\t\tthis.state.threads.set(params.thread_id, next);\n\t\treturn next;\n\t}\n\n\tprivate history(threadId: ThreadId): RolloutItem[] {\n\t\tconst history = this.state.histories.get(threadId);\n\t\tif (!history) {\n\t\t\tthrow new Error(`Thread not found: ${threadId}`);\n\t\t}\n\t\treturn history;\n\t}\n\n\tprivate storedThread(threadId: ThreadId, includeHistory: boolean): StoredThread {\n\t\tconst thread = this.state.threads.get(threadId);\n\t\tif (!thread) {\n\t\t\tthrow new Error(`Thread not found: ${threadId}`);\n\t\t}\n\t\treturn {\n\t\t\t...thread,\n\t\t\thistory: includeHistory\n\t\t\t\t? { items: [...this.history(threadId)], thread_id: threadId }\n\t\t\t\t: null,\n\t\t};\n\t}\n\n\tprivate touch(threadId: ThreadId): void {\n\t\tconst thread = this.state.threads.get(threadId);\n\t\tif (thread) {\n\t\t\tthis.state.threads.set(threadId, {\n\t\t\t\t...thread,\n\t\t\t\tupdated_at: new Date().toISOString(),\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate updateThreadTokenUsage(threadId: ThreadId, items: readonly RolloutItem[]): void {\n\t\tconst info = lastTokenInfoFromRolloutItems(items);\n\t\tif (!info) {\n\t\t\treturn;\n\t\t}\n\t\tconst thread = this.state.threads.get(threadId);\n\t\tif (!thread) {\n\t\t\treturn;\n\t\t}\n\t\tthis.state.threads.set(threadId, {\n\t\t\t...thread,\n\t\t\ttoken_usage: info,\n\t\t});\n\t}\n}\n\nfunction emptyCalls(): InMemoryThreadStoreCalls {\n\treturn {\n\t\tarchiveThread: 0,\n\t\tappendItems: 0,\n\t\tcreateThread: 0,\n\t\tdiscardThread: 0,\n\t\tflushThread: 0,\n\t\tlistThreads: 0,\n\t\tloadHistory: 0,\n\t\tpersistThread: 0,\n\t\treadThread: 0,\n\t\treadThreadByRolloutPath: 0,\n\t\tresumeThread: 0,\n\t\tshutdownThread: 0,\n\t\tunarchiveThread: 0,\n\t\tupdateThreadMetadata: 0,\n\t};\n}\n\nfunction stringOrNull(value: unknown): string | null {\n\treturn typeof value === \"string\" ? value : null;\n}\n\nfunction lastTokenInfoFromRolloutItems(items: readonly RolloutItem[]): unknown | null {\n\tfor (let index = items.length - 1; index >= 0; index -= 1) {\n\t\tconst item = items[index];\n\t\tif (\n\t\t\titem?.type === \"event_msg\" &&\n\t\t\titem.payload.type === \"token_count\" &&\n\t\t\titem.payload.info\n\t\t) {\n\t\t\treturn item.payload.info;\n\t\t}\n\t}\n\treturn null;\n}\n","import type { ThreadId } from \"../../../core/src/ids\";\nimport type {\n\tAppendThreadItemsParams,\n\tArchiveThreadParams,\n\tCreateThreadParams,\n\tListThreadsParams,\n\tLoadThreadHistoryParams,\n\tReadThreadByRolloutPathParams,\n\tReadThreadParams,\n\tResumeThreadParams,\n\tStoredThread,\n\tThreadPage,\n\tUpdateThreadMetadataParams,\n} from \"../../../core/src/thread-store/types\";\nimport { InMemoryThreadStore, type InMemoryThreadStoreSnapshot } from \"../in_memory\";\n\nexport type LocalThreadStoreConfig = {\n\tcodex_home: string;\n\tdefault_model_provider_id: string;\n};\n\ntype LocalThreadStoreData = InMemoryThreadStoreSnapshot & {\n\tversion: 1;\n};\n\nexport class LocalThreadStore extends InMemoryThreadStore {\n\tconstructor(readonly config: LocalThreadStoreConfig) {\n\t\tsuper();\n\t}\n\n\tstateDb(): null {\n\t\treturn null;\n\t}\n\n\tasync createThread(params: CreateThreadParams): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.createThread(params);\n\t\tthis.attachRolloutPath(params.thread_id);\n\t\tawait this.save();\n\t}\n\n\tasync resumeThread(params: ResumeThreadParams): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.resumeThread({\n\t\t\t...params,\n\t\t\trollout_path: params.rollout_path ?? this.rolloutPath(params.thread_id),\n\t\t});\n\t\tthis.attachRolloutPath(params.thread_id, params.rollout_path ?? undefined);\n\t\tawait this.save();\n\t}\n\n\tasync appendItems(params: AppendThreadItemsParams): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.appendItems(params);\n\t\tawait this.save();\n\t}\n\n\tasync persistThread(threadId: ThreadId): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.persistThread(threadId);\n\t\tawait this.save();\n\t}\n\n\tasync flushThread(threadId: ThreadId): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.flushThread(threadId);\n\t\tawait this.save();\n\t}\n\n\tasync shutdownThread(threadId: ThreadId): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.shutdownThread(threadId);\n\t\tawait this.save();\n\t}\n\n\tasync discardThread(threadId: ThreadId): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.discardThread(threadId);\n\t\tawait this.save();\n\t}\n\n\tasync loadHistory(params: LoadThreadHistoryParams) {\n\t\tawait this.load();\n\t\treturn super.loadHistory(params);\n\t}\n\n\tasync readThread(params: ReadThreadParams): Promise<StoredThread> {\n\t\tawait this.load();\n\t\treturn super.readThread(params);\n\t}\n\n\tasync readThreadByRolloutPath(\n\t\tparams: ReadThreadByRolloutPathParams,\n\t): Promise<StoredThread> {\n\t\tawait this.load();\n\t\treturn super.readThreadByRolloutPath(params);\n\t}\n\n\tasync listThreads(params: ListThreadsParams): Promise<ThreadPage> {\n\t\tawait this.load();\n\t\treturn super.listThreads(params);\n\t}\n\n\tasync updateThreadMetadata(\n\t\tparams: UpdateThreadMetadataParams,\n\t): Promise<StoredThread> {\n\t\tawait this.load();\n\t\tconst thread = await super.updateThreadMetadata(params);\n\t\tawait this.save();\n\t\treturn thread;\n\t}\n\n\tasync archiveThread(params: ArchiveThreadParams): Promise<void> {\n\t\tawait this.load();\n\t\tawait super.archiveThread(params);\n\t\tawait this.save();\n\t}\n\n\tasync unarchiveThread(params: ArchiveThreadParams): Promise<StoredThread> {\n\t\tawait this.load();\n\t\tconst thread = await super.unarchiveThread(params);\n\t\tawait this.save();\n\t\treturn thread;\n\t}\n\n\tliveRolloutPath(threadId: ThreadId): string {\n\t\treturn this.rolloutPath(threadId);\n\t}\n\n\tprivate attachRolloutPath(threadId: ThreadId, rolloutPath?: string): void {\n\t\tconst snapshot = this.snapshot();\n\t\tconst path = rolloutPath ?? this.rolloutPath(threadId);\n\t\tconst threads = snapshot.threads.map(\n\t\t\t([candidateThreadId, thread]) =>\n\t\t\t\t[\n\t\t\t\t\tcandidateThreadId,\n\t\t\t\t\tcandidateThreadId === threadId\n\t\t\t\t\t\t? { ...thread, rollout_path: path }\n\t\t\t\t\t\t: thread,\n\t\t\t\t] satisfies [ThreadId, StoredThread],\n\t\t);\n\t\tconst rolloutPaths = new Map(snapshot.rolloutPaths);\n\t\trolloutPaths.set(path, threadId);\n\t\tthis.restoreSnapshot({\n\t\t\t...snapshot,\n\t\t\trolloutPaths: Array.from(rolloutPaths.entries()),\n\t\t\tthreads,\n\t\t});\n\t}\n\n\tprivate async load(): Promise<void> {\n\t\ttry {\n\t\t\tconst { readFile } = await nodeFsPromises();\n\t\t\tconst raw = await readFile(this.storePath(), \"utf8\");\n\t\t\tconst data = JSON.parse(raw) as LocalThreadStoreData;\n\t\t\tthis.restoreSnapshot(data);\n\t\t} catch (error) {\n\t\t\tif ((error as { code?: unknown }).code === \"ENOENT\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\tprivate async save(): Promise<void> {\n\t\tconst { mkdir, writeFile } = await nodeFsPromises();\n\t\tconst path = this.storePath();\n\t\tawait mkdir(dirname(path), { recursive: true });\n\t\tconst data: LocalThreadStoreData = {\n\t\t\tversion: 1,\n\t\t\t...this.snapshot(),\n\t\t};\n\t\tawait writeFile(path, `${JSON.stringify(data, null, 2)}\\n`, \"utf8\");\n\t}\n\n\tprivate rolloutPath(threadId: ThreadId): string {\n\t\treturn `${this.config.codex_home.replace(/\\/+$/, \"\")}/sessions/${threadId}.jsonl`;\n\t}\n\n\tprivate storePath(): string {\n\t\treturn `${this.config.codex_home.replace(/\\/+$/, \"\")}/thread-store/store.json`;\n\t}\n}\n\ntype NodeFsPromises = {\n\tmkdir(path: string, options: { recursive: true }): Promise<unknown>;\n\treadFile(path: string, encoding: \"utf8\"): Promise<string>;\n\twriteFile(path: string, data: string, encoding: \"utf8\"): Promise<void>;\n};\n\nasync function nodeFsPromises(): Promise<NodeFsPromises> {\n\tconst moduleName = \"node:fs/promises\";\n\treturn import(moduleName) as Promise<NodeFsPromises>;\n}\n\nfunction dirname(path: string): string {\n\tconst normalized = path.replace(/\\/+$/, \"\");\n\tconst separatorIndex = normalized.lastIndexOf(\"/\");\n\treturn separatorIndex <= 0 ? \"/\" : normalized.slice(0, separatorIndex);\n}\n"]}
@@ -1,3 +0,0 @@
1
-
2
- //# sourceMappingURL=chunk-5JMJ6OI5.js.map
3
- //# sourceMappingURL=chunk-5JMJ6OI5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-5JMJ6OI5.js"}