@skaile/workspaces 3.16.2 → 3.18.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 (274) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/app-sdk/index.js +1 -1
  3. package/dist/{asset-feeds-FQT6GH24.js → asset-feeds-LT4GI576.js} +7 -7
  4. package/dist/{asset-feeds-FQT6GH24.js.map → asset-feeds-LT4GI576.js.map} +1 -1
  5. package/dist/asset-manager/catalog-deployer.js +3 -3
  6. package/dist/asset-manager/index.js +6 -6
  7. package/dist/asset-manager/installer.js +4 -4
  8. package/dist/bridge/codex-app-server.d.ts +2 -0
  9. package/dist/bridge/codex-app-server.js +5 -0
  10. package/dist/bridge/codex-app-server.js.map +1 -0
  11. package/dist/bridge/drivers/claude-sdk.js +5 -5
  12. package/dist/bridge/drivers/codex.js +1137 -4
  13. package/dist/bridge/drivers/codex.js.map +1 -1
  14. package/dist/bridge/drivers/continue.js +2 -2
  15. package/dist/bridge/drivers/echo.js +2 -2
  16. package/dist/bridge/drivers/gemini.js +3 -3
  17. package/dist/bridge/drivers/goose.js +2 -2
  18. package/dist/bridge/drivers/omp.js +1 -1
  19. package/dist/bridge/drivers/opencode.js +2 -2
  20. package/dist/bridge/drivers/qwen.js +3 -3
  21. package/dist/bridge/index.js +7 -6
  22. package/dist/bridge/src/capability-dispatch.d.ts +1 -1
  23. package/dist/bridge/src/capability-dispatch.d.ts.map +1 -1
  24. package/dist/bridge/src/codex/credentials.d.ts +12 -0
  25. package/dist/bridge/src/codex/credentials.d.ts.map +1 -0
  26. package/dist/bridge/src/codex/inputs.d.ts +8 -0
  27. package/dist/bridge/src/codex/inputs.d.ts.map +1 -0
  28. package/dist/bridge/src/codex/instance-state.d.ts +16 -0
  29. package/dist/bridge/src/codex/instance-state.d.ts.map +1 -0
  30. package/dist/bridge/src/codex/managed-driver.d.ts +71 -0
  31. package/dist/bridge/src/codex/managed-driver.d.ts.map +1 -0
  32. package/dist/bridge/src/codex/native-approvals.d.ts +22 -0
  33. package/dist/bridge/src/codex/native-approvals.d.ts.map +1 -0
  34. package/dist/bridge/src/codex/native-policy.d.ts +38 -0
  35. package/dist/bridge/src/codex/native-policy.d.ts.map +1 -0
  36. package/dist/bridge/src/codex/native-protocol.generated.d.ts +1411 -0
  37. package/dist/bridge/src/codex/native-protocol.generated.d.ts.map +1 -0
  38. package/dist/bridge/src/codex/native-state.d.ts +7 -0
  39. package/dist/bridge/src/codex/native-state.d.ts.map +1 -0
  40. package/dist/bridge/src/codex/questions.d.ts +19 -0
  41. package/dist/bridge/src/codex/questions.d.ts.map +1 -0
  42. package/dist/bridge/src/codex-app-server.d.ts +60 -0
  43. package/dist/bridge/src/codex-app-server.d.ts.map +1 -0
  44. package/dist/bridge/src/drivers/codex.d.ts +9 -1
  45. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  46. package/dist/bridge/src/index.d.ts +1 -0
  47. package/dist/bridge/src/index.d.ts.map +1 -1
  48. package/dist/bridge/src/normalizer.d.ts.map +1 -1
  49. package/dist/bridge/src/runtime.d.ts +3 -2
  50. package/dist/bridge/src/runtime.d.ts.map +1 -1
  51. package/dist/bridge/src/types.d.ts +77 -4
  52. package/dist/bridge/src/types.d.ts.map +1 -1
  53. package/dist/{chunk-2KBA5OO2.js → chunk-23L3P7IB.js} +4 -4
  54. package/dist/{chunk-2KBA5OO2.js.map → chunk-23L3P7IB.js.map} +1 -1
  55. package/dist/{chunk-NC5YXVZF.js → chunk-2FDKUKDE.js} +3 -3
  56. package/dist/{chunk-NC5YXVZF.js.map → chunk-2FDKUKDE.js.map} +1 -1
  57. package/dist/{chunk-GRVSSAAQ.js → chunk-2IROGAS7.js} +2 -2
  58. package/dist/{chunk-GRVSSAAQ.js.map → chunk-2IROGAS7.js.map} +1 -1
  59. package/dist/{chunk-BUKPS4YL.js → chunk-4JDCKPTM.js} +2 -2
  60. package/dist/{chunk-BUKPS4YL.js.map → chunk-4JDCKPTM.js.map} +1 -1
  61. package/dist/{chunk-5KSIVLOX.js → chunk-5T7Y3AZU.js} +3 -3
  62. package/dist/{chunk-5KSIVLOX.js.map → chunk-5T7Y3AZU.js.map} +1 -1
  63. package/dist/{chunk-SWUVULBU.js → chunk-67KB2A77.js} +7 -7
  64. package/dist/{chunk-SWUVULBU.js.map → chunk-67KB2A77.js.map} +1 -1
  65. package/dist/{chunk-RRVQAE5D.js → chunk-7ZO3MUP3.js} +6 -5
  66. package/dist/chunk-7ZO3MUP3.js.map +1 -0
  67. package/dist/{chunk-EO7IJY3Q.js → chunk-AI2PZX4H.js} +3 -3
  68. package/dist/{chunk-EO7IJY3Q.js.map → chunk-AI2PZX4H.js.map} +1 -1
  69. package/dist/{chunk-CMGYUF5P.js → chunk-BJI7IGZF.js} +7 -7
  70. package/dist/{chunk-CMGYUF5P.js.map → chunk-BJI7IGZF.js.map} +1 -1
  71. package/dist/{chunk-HY6CIKFH.js → chunk-CP62G5PK.js} +8 -7
  72. package/dist/chunk-CP62G5PK.js.map +1 -0
  73. package/dist/{chunk-PBRMY64S.js → chunk-CQY7XKRV.js} +30 -9
  74. package/dist/chunk-CQY7XKRV.js.map +1 -0
  75. package/dist/{chunk-OIDFK7SG.js → chunk-DCG4UWJM.js} +3 -3
  76. package/dist/{chunk-OIDFK7SG.js.map → chunk-DCG4UWJM.js.map} +1 -1
  77. package/dist/{chunk-VT4MPCRK.js → chunk-FBD5SOIH.js} +3 -3
  78. package/dist/{chunk-VT4MPCRK.js.map → chunk-FBD5SOIH.js.map} +1 -1
  79. package/dist/{chunk-DUMD4AA2.js → chunk-FYVDBIZV.js} +6 -6
  80. package/dist/{chunk-DUMD4AA2.js.map → chunk-FYVDBIZV.js.map} +1 -1
  81. package/dist/{chunk-RTM4SFLA.js → chunk-GMKNGIIB.js} +7 -4
  82. package/dist/chunk-GMKNGIIB.js.map +1 -0
  83. package/dist/{chunk-NIQPSQFN.js → chunk-GMMACS5W.js} +4 -4
  84. package/dist/{chunk-NIQPSQFN.js.map → chunk-GMMACS5W.js.map} +1 -1
  85. package/dist/{chunk-QFYEDM63.js → chunk-GRA4BWCV.js} +5 -5
  86. package/dist/{chunk-QFYEDM63.js.map → chunk-GRA4BWCV.js.map} +1 -1
  87. package/dist/{chunk-CIPK5JMJ.js → chunk-H662SXKS.js} +4 -4
  88. package/dist/{chunk-CIPK5JMJ.js.map → chunk-H662SXKS.js.map} +1 -1
  89. package/dist/{chunk-4W2OOVN5.js → chunk-IST2V7RU.js} +3 -3
  90. package/dist/{chunk-4W2OOVN5.js.map → chunk-IST2V7RU.js.map} +1 -1
  91. package/dist/{chunk-L2UE4YJO.js → chunk-IT42ZT3T.js} +9 -9
  92. package/dist/{chunk-L2UE4YJO.js.map → chunk-IT42ZT3T.js.map} +1 -1
  93. package/dist/{chunk-FRER2PEN.js → chunk-J7VSUGGH.js} +16 -3
  94. package/dist/chunk-J7VSUGGH.js.map +1 -0
  95. package/dist/{chunk-ZNCZ7RUO.js → chunk-JVFZ5R7L.js} +3 -3
  96. package/dist/{chunk-ZNCZ7RUO.js.map → chunk-JVFZ5R7L.js.map} +1 -1
  97. package/dist/chunk-LOO5CB5M.js +12 -0
  98. package/dist/chunk-LOO5CB5M.js.map +1 -0
  99. package/dist/{chunk-AL6BU3SP.js → chunk-OJ4N4T4H.js} +12 -4
  100. package/dist/chunk-OJ4N4T4H.js.map +1 -0
  101. package/dist/chunk-QEZPFJX3.js +254 -0
  102. package/dist/chunk-QEZPFJX3.js.map +1 -0
  103. package/dist/{chunk-C4AP3XZB.js → chunk-QG2ZXU5W.js} +4 -4
  104. package/dist/{chunk-C4AP3XZB.js.map → chunk-QG2ZXU5W.js.map} +1 -1
  105. package/dist/{chunk-I3COVVFB.js → chunk-RJOGAEIY.js} +1024 -204
  106. package/dist/chunk-RJOGAEIY.js.map +1 -0
  107. package/dist/{chunk-OZ7UNMTK.js → chunk-RPVTPVGX.js} +7 -5
  108. package/dist/chunk-RPVTPVGX.js.map +1 -0
  109. package/dist/{chunk-S4UA244H.js → chunk-S635WMXH.js} +4 -4
  110. package/dist/{chunk-S4UA244H.js.map → chunk-S635WMXH.js.map} +1 -1
  111. package/dist/{chunk-BQMRUH7J.js → chunk-SFCVAEJ5.js} +4 -4
  112. package/dist/{chunk-BQMRUH7J.js.map → chunk-SFCVAEJ5.js.map} +1 -1
  113. package/dist/{chunk-EXT2LNST.js → chunk-SH7GXS7V.js} +125 -37
  114. package/dist/chunk-SH7GXS7V.js.map +1 -0
  115. package/dist/chunk-T3YLZQS4.js +336 -0
  116. package/dist/chunk-T3YLZQS4.js.map +1 -0
  117. package/dist/{chunk-X7FJ3ES3.js → chunk-X3LUB275.js} +4 -4
  118. package/dist/{chunk-X7FJ3ES3.js.map → chunk-X3LUB275.js.map} +1 -1
  119. package/dist/chunk-XKSGEYZC.js +244 -0
  120. package/dist/chunk-XKSGEYZC.js.map +1 -0
  121. package/dist/{chunk-SUPIVTLX.js → chunk-XL45U3C5.js} +3 -3
  122. package/dist/{chunk-SUPIVTLX.js.map → chunk-XL45U3C5.js.map} +1 -1
  123. package/dist/{chunk-AXEOG4B5.js → chunk-YCMHWNZA.js} +3 -3
  124. package/dist/{chunk-AXEOG4B5.js.map → chunk-YCMHWNZA.js.map} +1 -1
  125. package/dist/cli/index.js +75 -53
  126. package/dist/cli/index.js.map +1 -1
  127. package/dist/cli/src/commands/serve.d.ts.map +1 -1
  128. package/dist/client/index.js +1 -1
  129. package/dist/client/src/client.d.ts +3 -2
  130. package/dist/client/src/client.d.ts.map +1 -1
  131. package/dist/connectors/config.js +4 -4
  132. package/dist/connectors/index.js +12 -11
  133. package/dist/connectors/src/connector-prompt.d.ts +11 -0
  134. package/dist/connectors/src/connector-prompt.d.ts.map +1 -1
  135. package/dist/core/index.js +3 -3
  136. package/dist/core/runtime-assets.js +2 -2
  137. package/dist/core/src/workspace-config.d.ts.map +1 -1
  138. package/dist/core/workspace-config.js +1 -1
  139. package/dist/deploy/index.js +3 -3
  140. package/dist/{ensure-sources-4GBXK6UR.js → ensure-sources-4BQ6GMYG.js} +9 -9
  141. package/dist/{ensure-sources-4GBXK6UR.js.map → ensure-sources-4BQ6GMYG.js.map} +1 -1
  142. package/dist/factory-assets/connectors/box.js +12 -11
  143. package/dist/factory-assets/connectors/deploy.js +12 -11
  144. package/dist/factory-assets/connectors/devserver.js +12 -11
  145. package/dist/factory-assets/connectors/flow/CONNECTOR.md +4 -5
  146. package/dist/factory-assets/connectors/flow/adapter.d.ts +8 -0
  147. package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
  148. package/dist/factory-assets/connectors/flow/adapter.js +12 -11
  149. package/dist/factory-assets/connectors/flow/contract/index.d.ts +1 -1
  150. package/dist/factory-assets/connectors/flow/contract/index.d.ts.map +1 -1
  151. package/dist/factory-assets/connectors/flow/contract/schema.d.ts +50 -17
  152. package/dist/factory-assets/connectors/flow/contract/schema.d.ts.map +1 -1
  153. package/dist/factory-assets/connectors/flow/contract.js +3 -3
  154. package/dist/factory-assets/connectors/flow/engine/index.d.ts +1 -0
  155. package/dist/factory-assets/connectors/flow/engine/index.d.ts.map +1 -1
  156. package/dist/factory-assets/connectors/flow/engine.js +5 -5
  157. package/dist/factory-assets/connectors/flow/run-flow.js +13 -12
  158. package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts +10 -1
  159. package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts.map +1 -1
  160. package/dist/factory-assets/connectors/flow.js +12 -11
  161. package/dist/factory-assets/connectors/git.js +12 -11
  162. package/dist/factory-assets/connectors/gmail.js +12 -11
  163. package/dist/factory-assets/connectors/googledrive.js +12 -11
  164. package/dist/factory-assets/connectors/local.js +12 -11
  165. package/dist/factory-assets/connectors/mattermost.js +12 -11
  166. package/dist/factory-assets/connectors/memory.js +12 -11
  167. package/dist/factory-assets/connectors/minio.js +12 -11
  168. package/dist/factory-assets/connectors/postgres.js +12 -11
  169. package/dist/factory-assets/connectors/s3.js +12 -11
  170. package/dist/factory-assets/connectors/sharepoint.js +12 -11
  171. package/dist/factory-assets/connectors/sqlite.js +12 -11
  172. package/dist/factory-assets/connectors/static-server.js +12 -11
  173. package/dist/factory-assets/connectors/tunnel.js +12 -11
  174. package/dist/factory-assets/connectors/webdav.js +12 -11
  175. package/dist/factory-assets/connectors/xstate-store.js +12 -11
  176. package/dist/factory-assets/connectors/xstate.js +12 -11
  177. package/dist/{flows-2SUFOVVO.js → flows-COBS26MK.js} +6 -6
  178. package/dist/{flows-2SUFOVVO.js.map → flows-COBS26MK.js.map} +1 -1
  179. package/dist/{helpers-26LW4IXY.js → helpers-4UJMSN6T.js} +9 -9
  180. package/dist/{helpers-26LW4IXY.js.map → helpers-4UJMSN6T.js.map} +1 -1
  181. package/dist/library/index.js +4 -4
  182. package/dist/library/install.js +3 -3
  183. package/dist/{library-publish-IYGHOPEK.js → library-publish-QHQDN4IC.js} +14 -14
  184. package/dist/{library-publish-IYGHOPEK.js.map → library-publish-QHQDN4IC.js.map} +1 -1
  185. package/dist/{open-library-HH5LST7Z.js → open-library-ZDM6DUKJ.js} +12 -12
  186. package/dist/{open-library-HH5LST7Z.js.map → open-library-ZDM6DUKJ.js.map} +1 -1
  187. package/dist/{paths-4APA2PKT.js → paths-CZPCCBYX.js} +6 -6
  188. package/dist/{paths-4APA2PKT.js.map → paths-CZPCCBYX.js.map} +1 -1
  189. package/dist/{plugin-store-JQAIKR3R.js → plugin-store-ZEIBSNTO.js} +5 -5
  190. package/dist/{plugin-store-JQAIKR3R.js.map → plugin-store-ZEIBSNTO.js.map} +1 -1
  191. package/dist/{project-U5QRUCBN.js → project-JJUAAI7N.js} +10 -10
  192. package/dist/{project-U5QRUCBN.js.map → project-JJUAAI7N.js.map} +1 -1
  193. package/dist/resolver/index.js +3 -3
  194. package/dist/runner/index.js +25 -16
  195. package/dist/runner/src/capability-registry.d.ts +4 -0
  196. package/dist/runner/src/capability-registry.d.ts.map +1 -1
  197. package/dist/runner/src/codex-init.d.ts +5 -0
  198. package/dist/runner/src/codex-init.d.ts.map +1 -0
  199. package/dist/runner/src/codex-resource-tools.d.ts +16 -0
  200. package/dist/runner/src/codex-resource-tools.d.ts.map +1 -0
  201. package/dist/runner/src/codex-tools.d.ts +12 -0
  202. package/dist/runner/src/codex-tools.d.ts.map +1 -0
  203. package/dist/runner/src/define-capability.d.ts +2 -0
  204. package/dist/runner/src/define-capability.d.ts.map +1 -1
  205. package/dist/runner/src/external-mcp.d.ts +8 -3
  206. package/dist/runner/src/external-mcp.d.ts.map +1 -1
  207. package/dist/runner/src/index.d.ts +2 -0
  208. package/dist/runner/src/index.d.ts.map +1 -1
  209. package/dist/runner/src/managed-codex-bootstrap.d.ts +54 -0
  210. package/dist/runner/src/managed-codex-bootstrap.d.ts.map +1 -0
  211. package/dist/runner/src/resources.d.ts +1 -0
  212. package/dist/runner/src/resources.d.ts.map +1 -1
  213. package/dist/runner/src/serve.d.ts +5 -0
  214. package/dist/runner/src/serve.d.ts.map +1 -1
  215. package/dist/runner/src/session-builder.d.ts +18 -1
  216. package/dist/runner/src/session-builder.d.ts.map +1 -1
  217. package/dist/sdk/asset-manager.js +6 -6
  218. package/dist/sdk/bridge.js +7 -6
  219. package/dist/sdk/client.js +1 -1
  220. package/dist/sdk/core.js +3 -3
  221. package/dist/sdk/flow.js +5 -5
  222. package/dist/sdk/index.js +26 -17
  223. package/dist/sdk/index.js.map +1 -1
  224. package/dist/sdk/resolver.js +3 -3
  225. package/dist/sdk/runner.js +25 -16
  226. package/dist/sdk/session.js +2 -2
  227. package/dist/sdk/store.js +1 -1
  228. package/dist/sdk/types.js +1 -1
  229. package/dist/session/index.js +2 -2
  230. package/dist/{setup-XKTBHRWM.js → setup-PS6ZERZ5.js} +9 -8
  231. package/dist/setup-PS6ZERZ5.js.map +1 -0
  232. package/dist/{skills-Q7PJVB3W.js → skills-LG6IQSSN.js} +5 -5
  233. package/dist/{skills-Q7PJVB3W.js.map → skills-LG6IQSSN.js.map} +1 -1
  234. package/dist/{source-6PBVTACZ.js → source-QLDIZCI3.js} +13 -13
  235. package/dist/{source-6PBVTACZ.js.map → source-QLDIZCI3.js.map} +1 -1
  236. package/dist/{source-manifest-publish-VBVNW7KL.js → source-manifest-publish-J3AVCTLX.js} +15 -15
  237. package/dist/{source-manifest-publish-VBVNW7KL.js.map → source-manifest-publish-J3AVCTLX.js.map} +1 -1
  238. package/dist/store/index.js +1 -1
  239. package/dist/store/react.js +1 -1
  240. package/dist/store/react.js.map +1 -1
  241. package/dist/store/src/react.d.ts +1 -1
  242. package/dist/store/src/react.d.ts.map +1 -1
  243. package/dist/store/src/store.d.ts +2 -1
  244. package/dist/store/src/store.d.ts.map +1 -1
  245. package/dist/tui/index.js +25 -16
  246. package/dist/tui/index.js.map +1 -1
  247. package/dist/types/index.js +1 -1
  248. package/dist/types/src/events.d.ts +14 -1
  249. package/dist/types/src/events.d.ts.map +1 -1
  250. package/dist/types/src/index.d.ts +3 -3
  251. package/dist/types/src/index.d.ts.map +1 -1
  252. package/dist/types/src/lifecycle.d.ts +43 -0
  253. package/dist/types/src/lifecycle.d.ts.map +1 -1
  254. package/dist/types/src/protocol.d.ts +18 -0
  255. package/dist/types/src/protocol.d.ts.map +1 -1
  256. package/dist/types/src/runtime.d.ts +3 -1
  257. package/dist/types/src/runtime.d.ts.map +1 -1
  258. package/dist/types/src/version.d.ts +7 -1
  259. package/dist/types/src/version.d.ts.map +1 -1
  260. package/dist/workspace-plugin/adapters/mcp.js +9 -255
  261. package/dist/workspace-plugin/adapters/mcp.js.map +1 -1
  262. package/dist/workspace-plugin/adapters/omp.js +7 -7
  263. package/dist/workspace-plugin/index.js +1 -1
  264. package/package.json +10 -1
  265. package/dist/chunk-AL6BU3SP.js.map +0 -1
  266. package/dist/chunk-EXT2LNST.js.map +0 -1
  267. package/dist/chunk-FRER2PEN.js.map +0 -1
  268. package/dist/chunk-HY6CIKFH.js.map +0 -1
  269. package/dist/chunk-I3COVVFB.js.map +0 -1
  270. package/dist/chunk-OZ7UNMTK.js.map +0 -1
  271. package/dist/chunk-PBRMY64S.js.map +0 -1
  272. package/dist/chunk-RRVQAE5D.js.map +0 -1
  273. package/dist/chunk-RTM4SFLA.js.map +0 -1
  274. package/dist/setup-XKTBHRWM.js.map +0 -1
@@ -0,0 +1,1411 @@
1
+ export type NativeRequests = {
2
+ initialize: {
3
+ params: InitializeParams;
4
+ result: InitializeResponse;
5
+ };
6
+ "account/login/start": {
7
+ params: v2_LoginAccountParams;
8
+ result: v2_LoginAccountResponse;
9
+ };
10
+ "account/login/cancel": {
11
+ params: v2_CancelLoginAccountParams;
12
+ result: v2_CancelLoginAccountResponse;
13
+ };
14
+ "account/read": {
15
+ params: v2_GetAccountParams;
16
+ result: v2_GetAccountResponse;
17
+ };
18
+ "account/logout": {
19
+ params: null;
20
+ result: v2_LogoutAccountResponse;
21
+ };
22
+ "model/list": {
23
+ params: v2_ModelListParams;
24
+ result: v2_ModelListResponse;
25
+ };
26
+ "thread/start": {
27
+ params: v2_ThreadStartParams;
28
+ result: v2_ThreadStartResponse;
29
+ };
30
+ "thread/resume": {
31
+ params: v2_ThreadResumeParams;
32
+ result: v2_ThreadResumeResponse;
33
+ };
34
+ "thread/read": {
35
+ params: v2_ThreadReadParams;
36
+ result: v2_ThreadReadResponse;
37
+ };
38
+ "turn/start": {
39
+ params: v2_TurnStartParams;
40
+ result: v2_TurnStartResponse;
41
+ };
42
+ "turn/interrupt": {
43
+ params: v2_TurnInterruptParams;
44
+ result: v2_TurnInterruptResponse;
45
+ };
46
+ };
47
+ export type NativeServerRequests = {
48
+ "account/chatgptAuthTokens/refresh": {
49
+ params: ChatgptAuthTokensRefreshParams;
50
+ result: ChatgptAuthTokensRefreshResponse;
51
+ };
52
+ "item/tool/call": {
53
+ params: DynamicToolCallParams;
54
+ result: DynamicToolCallResponse;
55
+ };
56
+ "item/tool/requestUserInput": {
57
+ params: ToolRequestUserInputParams;
58
+ result: ToolRequestUserInputResponse;
59
+ };
60
+ "item/commandExecution/requestApproval": {
61
+ params: CommandExecutionRequestApprovalParams;
62
+ result: CommandExecutionRequestApprovalResponse;
63
+ };
64
+ "item/fileChange/requestApproval": {
65
+ params: FileChangeRequestApprovalParams;
66
+ result: FileChangeRequestApprovalResponse;
67
+ };
68
+ "item/permissions/requestApproval": {
69
+ params: PermissionsRequestApprovalParams;
70
+ result: PermissionsRequestApprovalResponse;
71
+ };
72
+ "mcpServer/elicitation/request": {
73
+ params: McpServerElicitationRequestParams;
74
+ result: McpServerElicitationRequestResponse;
75
+ };
76
+ };
77
+ export type NativeNotifications = {
78
+ "mcpServer/startupStatus/updated": v2_McpServerStatusUpdatedNotification;
79
+ "turn/started": v2_TurnStartedNotification;
80
+ "turn/completed": v2_TurnCompletedNotification;
81
+ "thread/tokenUsage/updated": v2_ThreadTokenUsageUpdatedNotification;
82
+ "model/rerouted": v2_ModelReroutedNotification;
83
+ "item/started": v2_ItemStartedNotification;
84
+ "item/completed": v2_ItemCompletedNotification;
85
+ "item/agentMessage/delta": v2_AgentMessageDeltaNotification;
86
+ error: v2_ErrorNotification;
87
+ "account/login/completed": v2_AccountLoginCompletedNotification;
88
+ };
89
+ type InitializeParams = {
90
+ capabilities?: InitializeCapabilities | null;
91
+ clientInfo: ClientInfo;
92
+ };
93
+ type InitializeResponse = {
94
+ codexHome: v2_AbsolutePathBuf;
95
+ platformFamily: string;
96
+ platformOs: string;
97
+ userAgent: string;
98
+ };
99
+ type v2_LoginAccountParams = {
100
+ apiKey: string;
101
+ type: "apiKey";
102
+ } | {
103
+ appBrand?: v2_LoginAppBrand | null;
104
+ codexStreamlinedLogin?: boolean;
105
+ type: "chatgpt";
106
+ useHostedLoginSuccessPage?: boolean;
107
+ } | {
108
+ type: "chatgptDeviceCode";
109
+ } | {
110
+ accessToken: string;
111
+ chatgptAccountId: string;
112
+ chatgptPlanType?: string | null;
113
+ type: "chatgptAuthTokens";
114
+ } | {
115
+ apiKey: string;
116
+ region: string;
117
+ type: "amazonBedrock";
118
+ } | {
119
+ accessKeyId: string;
120
+ region: string;
121
+ secretAccessKey: string;
122
+ sessionToken?: string | null;
123
+ type: "amazonBedrockAccessKeys";
124
+ };
125
+ type v2_LoginAccountResponse = {
126
+ type: "apiKey";
127
+ } | {
128
+ authUrl: string;
129
+ loginId: string;
130
+ type: "chatgpt";
131
+ } | {
132
+ loginId: string;
133
+ type: "chatgptDeviceCode";
134
+ userCode: string;
135
+ verificationUrl: string;
136
+ } | {
137
+ type: "chatgptAuthTokens";
138
+ } | {
139
+ type: "amazonBedrock";
140
+ };
141
+ type v2_CancelLoginAccountParams = {
142
+ loginId: string;
143
+ };
144
+ type v2_CancelLoginAccountResponse = {
145
+ status: v2_CancelLoginAccountStatus;
146
+ };
147
+ type v2_GetAccountParams = {
148
+ refreshToken?: boolean;
149
+ };
150
+ type v2_GetAccountResponse = {
151
+ account?: v2_Account | null;
152
+ requiresOpenaiAuth: boolean;
153
+ };
154
+ type v2_LogoutAccountResponse = Record<string, never>;
155
+ type v2_ModelListParams = {
156
+ cursor?: string | null;
157
+ includeHidden?: boolean | null;
158
+ limit?: number | null;
159
+ };
160
+ type v2_ModelListResponse = {
161
+ data: Array<v2_Model>;
162
+ nextCursor?: string | null;
163
+ };
164
+ type v2_ThreadStartParams = {
165
+ allowProviderModelFallback?: boolean;
166
+ approvalPolicy?: v2_AskForApproval | null;
167
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
168
+ baseInstructions?: string | null;
169
+ config?: {
170
+ [key: string]: unknown;
171
+ } | null;
172
+ cwd?: string | null;
173
+ developerInstructions?: string | null;
174
+ dynamicTools?: Array<v2_DynamicToolSpec> | null;
175
+ environments?: Array<v2_TurnEnvironmentParams> | null;
176
+ ephemeral?: boolean | null;
177
+ experimentalRawEvents?: boolean;
178
+ historyMode?: v2_ThreadHistoryMode | null;
179
+ mockExperimentalField?: string | null;
180
+ model?: string | null;
181
+ modelProvider?: string | null;
182
+ multiAgentMode?: v2_MultiAgentMode | null;
183
+ permissions?: string | null;
184
+ personality?: v2_Personality | null;
185
+ projectId?: string | null;
186
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
187
+ sandbox?: v2_SandboxMode | null;
188
+ selectedCapabilityRoots?: Array<v2_SelectedCapabilityRoot> | null;
189
+ serviceName?: string | null;
190
+ serviceTier?: string | null;
191
+ sessionStartSource?: v2_ThreadStartSource | null;
192
+ threadSource?: v2_ThreadSource | null;
193
+ };
194
+ type v2_ThreadStartResponse = {
195
+ activePermissionProfile?: v2_ActivePermissionProfile | null;
196
+ approvalPolicy: v2_AskForApproval;
197
+ approvalsReviewer: v2_ApprovalsReviewer;
198
+ cwd: v2_AbsolutePathBuf;
199
+ instructionSources?: Array<v2_LegacyAppPathString>;
200
+ model: string;
201
+ modelProvider: string;
202
+ multiAgentMode?: v2_MultiAgentMode;
203
+ reasoningEffort?: v2_ReasoningEffort | null;
204
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf>;
205
+ sandbox: v2_SandboxPolicy;
206
+ serviceTier?: string | null;
207
+ thread: v2_Thread;
208
+ };
209
+ type v2_ThreadResumeParams = {
210
+ approvalPolicy?: v2_AskForApproval | null;
211
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
212
+ baseInstructions?: string | null;
213
+ config?: {
214
+ [key: string]: unknown;
215
+ } | null;
216
+ cwd?: string | null;
217
+ developerInstructions?: string | null;
218
+ excludeTurns?: boolean;
219
+ history?: Array<v2_ResponseItem> | null;
220
+ initialTurnsPage?: v2_ThreadResumeInitialTurnsPageParams | null;
221
+ model?: string | null;
222
+ modelProvider?: string | null;
223
+ path?: string | null;
224
+ permissions?: string | null;
225
+ personality?: v2_Personality | null;
226
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
227
+ sandbox?: v2_SandboxMode | null;
228
+ serviceTier?: string | null;
229
+ threadId: string;
230
+ };
231
+ type v2_ThreadResumeResponse = {
232
+ activePermissionProfile?: v2_ActivePermissionProfile | null;
233
+ approvalPolicy: v2_AskForApproval;
234
+ approvalsReviewer: v2_ApprovalsReviewer;
235
+ cwd: v2_AbsolutePathBuf;
236
+ initialTurnsPage?: v2_TurnsPage | null;
237
+ instructionSources?: Array<v2_LegacyAppPathString>;
238
+ itemsBackwardsCursor?: string | null;
239
+ model: string;
240
+ modelProvider: string;
241
+ multiAgentMode?: v2_MultiAgentMode;
242
+ reasoningEffort?: v2_ReasoningEffort | null;
243
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf>;
244
+ sandbox: v2_SandboxPolicy;
245
+ serviceTier?: string | null;
246
+ thread: v2_Thread;
247
+ turnsBackwardsCursor?: string | null;
248
+ };
249
+ type v2_ThreadReadParams = {
250
+ includeTurns?: boolean;
251
+ threadId: string;
252
+ };
253
+ type v2_ThreadReadResponse = {
254
+ thread: v2_Thread;
255
+ };
256
+ type v2_TurnStartParams = {
257
+ additionalContext?: {
258
+ [key: string]: v2_AdditionalContextEntry;
259
+ } | null;
260
+ approvalPolicy?: v2_AskForApproval | null;
261
+ approvalsReviewer?: v2_ApprovalsReviewer | null;
262
+ clientUserMessageId?: string | null;
263
+ collaborationMode?: v2_CollaborationMode | null;
264
+ cwd?: string | null;
265
+ cyberAccessProgram?: v2_CyberAccessProgram | null;
266
+ effort?: v2_ReasoningEffort | null;
267
+ environments?: Array<v2_TurnEnvironmentParams> | null;
268
+ input: Array<v2_UserInput>;
269
+ model?: string | null;
270
+ multiAgentMode?: v2_MultiAgentMode | null;
271
+ outputSchema?: unknown;
272
+ permissions?: string | null;
273
+ personality?: v2_Personality | null;
274
+ responsesapiClientMetadata?: {
275
+ [key: string]: string;
276
+ } | null;
277
+ runtimeWorkspaceRoots?: Array<v2_AbsolutePathBuf> | null;
278
+ sandboxPolicy?: v2_SandboxPolicy | null;
279
+ serviceTier?: string | null;
280
+ serviceTierForTurn?: string | null;
281
+ summary?: v2_ReasoningSummary | null;
282
+ threadId: string;
283
+ toolOutput?: v2_TurnToolOutput | null;
284
+ turnTrigger?: string | null;
285
+ };
286
+ type v2_TurnStartResponse = {
287
+ turn: v2_Turn;
288
+ };
289
+ type v2_TurnInterruptParams = {
290
+ threadId: string;
291
+ turnId: string;
292
+ };
293
+ type v2_TurnInterruptResponse = Record<string, never>;
294
+ type ChatgptAuthTokensRefreshParams = {
295
+ previousAccountId?: string | null;
296
+ reason: ChatgptAuthTokensRefreshReason;
297
+ };
298
+ type ChatgptAuthTokensRefreshResponse = {
299
+ accessToken: string;
300
+ chatgptAccountId: string;
301
+ chatgptPlanType?: string | null;
302
+ };
303
+ type DynamicToolCallParams = {
304
+ arguments: unknown;
305
+ callId: string;
306
+ namespace?: string | null;
307
+ threadId: string;
308
+ tool: string;
309
+ turnId: string;
310
+ };
311
+ type DynamicToolCallResponse = {
312
+ contentItems: Array<v2_DynamicToolCallOutputContentItem>;
313
+ success: boolean;
314
+ };
315
+ type ToolRequestUserInputParams = {
316
+ autoResolutionMs?: number | null;
317
+ isBlocking: boolean;
318
+ itemId: string;
319
+ questions: Array<ToolRequestUserInputQuestion>;
320
+ threadId: string;
321
+ turnId: string;
322
+ };
323
+ type ToolRequestUserInputResponse = {
324
+ answers: {
325
+ [key: string]: ToolRequestUserInputAnswer;
326
+ };
327
+ };
328
+ type CommandExecutionRequestApprovalParams = {
329
+ additionalPermissions?: AdditionalPermissionProfile | null;
330
+ approvalId?: string | null;
331
+ availableDecisions?: Array<CommandExecutionApprovalDecision> | null;
332
+ command?: string | null;
333
+ commandActions?: Array<v2_CommandAction> | null;
334
+ cwd?: v2_LegacyAppPathString | null;
335
+ environmentId?: string | null;
336
+ itemId: string;
337
+ kind?: CommandExecutionApprovalKind;
338
+ networkApprovalContext?: NetworkApprovalContext | null;
339
+ proposedExecpolicyAmendment?: Array<string> | null;
340
+ proposedNetworkPolicyAmendments?: Array<NetworkPolicyAmendment> | null;
341
+ reason?: string | null;
342
+ startedAtMs: number;
343
+ threadId: string;
344
+ turnId: string;
345
+ };
346
+ type CommandExecutionRequestApprovalResponse = {
347
+ decision: CommandExecutionApprovalDecision;
348
+ };
349
+ type FileChangeRequestApprovalParams = {
350
+ grantRoot?: string | null;
351
+ itemId: string;
352
+ reason?: string | null;
353
+ startedAtMs: number;
354
+ threadId: string;
355
+ turnId: string;
356
+ };
357
+ type FileChangeRequestApprovalResponse = {
358
+ decision: FileChangeApprovalDecision;
359
+ };
360
+ type PermissionsRequestApprovalParams = {
361
+ cwd: v2_AbsolutePathBuf;
362
+ environmentId?: string | null;
363
+ itemId: string;
364
+ permissions: v2_RequestPermissionProfile;
365
+ reason?: string | null;
366
+ startedAtMs: number;
367
+ threadId: string;
368
+ turnId: string;
369
+ };
370
+ type PermissionsRequestApprovalResponse = {
371
+ permissions: GrantedPermissionProfile;
372
+ scope?: PermissionGrantScope;
373
+ strictAutoReview?: boolean | null;
374
+ };
375
+ type McpServerElicitationRequestParams = {
376
+ _meta?: unknown;
377
+ message: string;
378
+ mode: "form";
379
+ requestedSchema: McpElicitationSchema;
380
+ } | {
381
+ _meta?: unknown;
382
+ message: string;
383
+ mode: "openai/form";
384
+ requestedSchema: unknown;
385
+ } | {
386
+ _meta?: unknown;
387
+ message: string;
388
+ mode: "openaiForm";
389
+ requestedSchema: unknown;
390
+ } | {
391
+ _meta?: unknown;
392
+ elicitationId: string;
393
+ message: string;
394
+ mode: "url";
395
+ url: string;
396
+ };
397
+ type McpServerElicitationRequestResponse = {
398
+ _meta?: unknown;
399
+ action: McpServerElicitationAction;
400
+ content?: unknown;
401
+ };
402
+ type v2_McpServerStatusUpdatedNotification = {
403
+ error?: string | null;
404
+ failureReason?: v2_McpServerStartupFailureReason | null;
405
+ name: string;
406
+ status: v2_McpServerStartupState;
407
+ threadId?: string | null;
408
+ };
409
+ type v2_TurnStartedNotification = {
410
+ threadId: string;
411
+ turn: v2_Turn;
412
+ };
413
+ type v2_TurnCompletedNotification = {
414
+ threadId: string;
415
+ turn: v2_Turn;
416
+ };
417
+ type v2_ThreadTokenUsageUpdatedNotification = {
418
+ threadId: string;
419
+ tokenUsage: v2_ThreadTokenUsage;
420
+ turnId: string;
421
+ };
422
+ type v2_ModelReroutedNotification = {
423
+ fromModel: string;
424
+ reason: v2_ModelRerouteReason;
425
+ threadId: string;
426
+ toModel: string;
427
+ turnId: string;
428
+ };
429
+ type v2_ItemStartedNotification = {
430
+ item: v2_ThreadItem;
431
+ startedAtMs: number;
432
+ threadId: string;
433
+ turnId: string;
434
+ };
435
+ type v2_ItemCompletedNotification = {
436
+ completedAtMs: number;
437
+ item: v2_ThreadItem;
438
+ threadId: string;
439
+ turnId: string;
440
+ };
441
+ type v2_AgentMessageDeltaNotification = {
442
+ delta: string;
443
+ itemId: string;
444
+ threadId: string;
445
+ turnId: string;
446
+ };
447
+ type v2_ErrorNotification = {
448
+ error: v2_TurnError;
449
+ threadId: string;
450
+ turnId: string;
451
+ willRetry: boolean;
452
+ };
453
+ type v2_AccountLoginCompletedNotification = {
454
+ error?: string | null;
455
+ loginId?: string | null;
456
+ onboardingEntrypoint?: v2_DesktopOnboardingEntrypoint | null;
457
+ success: boolean;
458
+ };
459
+ type InitializeCapabilities = {
460
+ experimentalApi?: boolean;
461
+ extensions?: {
462
+ [key: string]: unknown;
463
+ } | null;
464
+ mcpServerOpenaiFormElicitation?: boolean;
465
+ optOutNotificationMethods?: Array<string> | null;
466
+ requestAttestation?: boolean;
467
+ };
468
+ type ClientInfo = {
469
+ name: string;
470
+ title?: string | null;
471
+ version: string;
472
+ };
473
+ type v2_AbsolutePathBuf = string;
474
+ type v2_LoginAppBrand = "codex" | "chatgpt";
475
+ type v2_CancelLoginAccountStatus = "canceled" | "notFound";
476
+ type v2_Account = {
477
+ type: "apiKey";
478
+ } | {
479
+ email: string | null;
480
+ planType: v2_PlanType;
481
+ type: "chatgpt";
482
+ } | {
483
+ type: "amazonBedrock";
484
+ usesCodexManagedCredentials?: boolean;
485
+ };
486
+ type v2_Model = {
487
+ additionalSpeedTiers?: Array<string>;
488
+ availabilityNux?: v2_ModelAvailabilityNux | null;
489
+ defaultReasoningEffort: v2_ReasoningEffort;
490
+ defaultServiceTier?: string | null;
491
+ description: string;
492
+ displayName: string;
493
+ hidden: boolean;
494
+ id: string;
495
+ inputModalities?: Array<v2_InputModality>;
496
+ isDefault: boolean;
497
+ model: string;
498
+ modelSpecialty?: string | null;
499
+ multiAgentVersion?: v2_MultiAgentVersion | null;
500
+ serviceTiers?: Array<v2_ModelServiceTier>;
501
+ supportedReasoningEfforts: Array<v2_ReasoningEffortOption>;
502
+ supportsPersonality?: boolean;
503
+ upgrade?: string | null;
504
+ upgradeInfo?: v2_ModelUpgradeInfo | null;
505
+ };
506
+ type v2_AskForApproval = "untrusted" | "on-request" | "never" | {
507
+ granular: {
508
+ mcp_elicitations: boolean;
509
+ request_permissions?: boolean;
510
+ rules: boolean;
511
+ sandbox_approval: boolean;
512
+ skill_approval?: boolean;
513
+ };
514
+ };
515
+ type v2_ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent";
516
+ type v2_DynamicToolSpec = {
517
+ deferLoading?: boolean;
518
+ description: string;
519
+ inputSchema: unknown;
520
+ name: string;
521
+ type: "function";
522
+ } | {
523
+ description: string;
524
+ name: string;
525
+ tools: Array<v2_DynamicToolNamespaceTool>;
526
+ type: "namespace";
527
+ };
528
+ type v2_TurnEnvironmentParams = {
529
+ cwd: v2_LegacyAppPathString;
530
+ environmentId: string;
531
+ runtimeWorkspaceRoots?: Array<v2_LegacyAppPathString> | null;
532
+ };
533
+ type v2_ThreadHistoryMode = "legacy" | "paginated";
534
+ type v2_MultiAgentMode = "explicitRequestOnly" | "proactive" | {
535
+ custom: string;
536
+ };
537
+ type v2_Personality = "none" | "friendly" | "pragmatic";
538
+ type v2_SandboxMode = "read-only" | "workspace-write" | "danger-full-access";
539
+ type v2_SelectedCapabilityRoot = {
540
+ id: string;
541
+ location: v2_CapabilityRootLocation;
542
+ };
543
+ type v2_ThreadStartSource = "startup" | "clear";
544
+ type v2_ThreadSource = string;
545
+ type v2_ActivePermissionProfile = {
546
+ extends?: string | null;
547
+ id: string;
548
+ };
549
+ type v2_LegacyAppPathString = string;
550
+ type v2_ReasoningEffort = string;
551
+ type v2_SandboxPolicy = {
552
+ type: "dangerFullAccess";
553
+ } | {
554
+ networkAccess?: boolean;
555
+ type: "readOnly";
556
+ } | {
557
+ networkAccess?: v2_NetworkAccess;
558
+ type: "externalSandbox";
559
+ } | {
560
+ excludeSlashTmp?: boolean;
561
+ excludeTmpdirEnvVar?: boolean;
562
+ networkAccess?: boolean;
563
+ type: "workspaceWrite";
564
+ writableRoots?: Array<v2_AbsolutePathBuf>;
565
+ };
566
+ type v2_Thread = {
567
+ agentNickname?: string | null;
568
+ agentRole?: string | null;
569
+ canAcceptDirectInput?: boolean | null;
570
+ cliVersion: string;
571
+ createdAt: number;
572
+ cwd: v2_AbsolutePathBuf;
573
+ ephemeral: boolean;
574
+ extra?: v2_ThreadExtra | null;
575
+ forkedFromId?: string | null;
576
+ gitInfo?: v2_GitInfo | null;
577
+ historyMode?: v2_ThreadHistoryMode;
578
+ id: string;
579
+ model?: string | null;
580
+ modelProvider: string;
581
+ name?: string | null;
582
+ parentThreadId?: string | null;
583
+ path?: string | null;
584
+ preview: string;
585
+ projectId: string | null;
586
+ reasoningEffort?: v2_ReasoningEffort | null;
587
+ recencyAt?: number | null;
588
+ section?: v2_ThreadSection | null;
589
+ sectionEnteredAt?: number | null;
590
+ sessionId: string;
591
+ source: v2_SessionSource;
592
+ status: v2_ThreadStatus;
593
+ threadSource?: v2_ThreadSource | null;
594
+ turns: Array<v2_Turn>;
595
+ updatedAt: number;
596
+ };
597
+ type v2_ResponseItem = {
598
+ content: Array<v2_ContentItem>;
599
+ id?: string | null;
600
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
601
+ phase?: v2_MessagePhase | null;
602
+ role: string;
603
+ type: "message";
604
+ } | {
605
+ author: string;
606
+ content: Array<v2_AgentMessageInputContent>;
607
+ id?: string | null;
608
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
609
+ recipient: string;
610
+ type: "agent_message";
611
+ } | {
612
+ content?: Array<v2_ReasoningItemContent> | null;
613
+ encrypted_content?: string | null;
614
+ id?: string | null;
615
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
616
+ summary: Array<v2_ReasoningItemReasoningSummary>;
617
+ type: "reasoning";
618
+ } | {
619
+ action: v2_LocalShellAction;
620
+ call_id?: string | null;
621
+ id?: string | null;
622
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
623
+ status: v2_LocalShellStatus;
624
+ type: "local_shell_call";
625
+ } | {
626
+ arguments: string;
627
+ call_id: string;
628
+ encrypted_function_args?: Array<string> | null;
629
+ id?: string | null;
630
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
631
+ name: string;
632
+ namespace?: string | null;
633
+ type: "function_call";
634
+ } | {
635
+ arguments: unknown;
636
+ call_id?: string | null;
637
+ execution: string;
638
+ id?: string | null;
639
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
640
+ status?: string | null;
641
+ type: "tool_search_call";
642
+ } | {
643
+ call_id?: string | null;
644
+ id?: string | null;
645
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
646
+ name?: string | null;
647
+ namespace?: string | null;
648
+ output: v2_FunctionCallOutputBody;
649
+ type: "function_call_output";
650
+ } | {
651
+ call_id: string;
652
+ id?: string | null;
653
+ input: string;
654
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
655
+ name: string;
656
+ namespace?: string | null;
657
+ status?: string | null;
658
+ type: "custom_tool_call";
659
+ } | {
660
+ call_id: string;
661
+ id?: string | null;
662
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
663
+ name?: string | null;
664
+ output: v2_FunctionCallOutputBody;
665
+ type: "custom_tool_call_output";
666
+ } | {
667
+ call_id?: string | null;
668
+ execution: string;
669
+ id?: string | null;
670
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
671
+ status: string;
672
+ tools: Array<unknown>;
673
+ type: "tool_search_output";
674
+ } | {
675
+ action?: v2_ResponsesApiWebSearchAction | null;
676
+ id?: string | null;
677
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
678
+ status?: string | null;
679
+ type: "web_search_call";
680
+ } | {
681
+ id?: string | null;
682
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
683
+ result: string;
684
+ revised_prompt?: string | null;
685
+ status: string;
686
+ type: "image_generation_call";
687
+ } | {
688
+ encrypted_content: string;
689
+ id?: string | null;
690
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
691
+ type: "compaction";
692
+ } | {
693
+ type: "compaction_trigger";
694
+ } | {
695
+ encrypted_content?: string | null;
696
+ id?: string | null;
697
+ internal_chat_message_metadata_passthrough?: v2_InternalChatMessageMetadataPassthrough | null;
698
+ type: "context_compaction";
699
+ } | {
700
+ type: "other";
701
+ };
702
+ type v2_ThreadResumeInitialTurnsPageParams = {
703
+ itemsView?: v2_TurnItemsView | null;
704
+ limit?: number | null;
705
+ sortDirection?: v2_SortDirection | null;
706
+ };
707
+ type v2_TurnsPage = {
708
+ backwardsCursor?: string | null;
709
+ data: Array<v2_Turn>;
710
+ nextCursor?: string | null;
711
+ };
712
+ type v2_AdditionalContextEntry = {
713
+ kind: v2_AdditionalContextKind;
714
+ value: string;
715
+ };
716
+ type v2_CollaborationMode = {
717
+ mode: v2_ModeKind;
718
+ settings: v2_Settings;
719
+ };
720
+ type v2_CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed";
721
+ type v2_UserInput = {
722
+ text: string;
723
+ text_elements?: Array<v2_TextElement>;
724
+ type: "text";
725
+ } | {
726
+ detail?: v2_ImageDetail | null;
727
+ type: "image";
728
+ url: string;
729
+ } | {
730
+ detail?: v2_ImageDetail | null;
731
+ path: string;
732
+ type: "localImage";
733
+ } | {
734
+ type: "audio";
735
+ url: string;
736
+ } | {
737
+ path: string;
738
+ type: "localAudio";
739
+ } | {
740
+ name: string;
741
+ path: string;
742
+ type: "skill";
743
+ } | {
744
+ name: string;
745
+ path: string;
746
+ type: "mention";
747
+ };
748
+ type v2_ReasoningSummary = "auto" | "concise" | "detailed" | "none";
749
+ type v2_TurnToolOutput = {
750
+ name: string;
751
+ namespace?: string | null;
752
+ output: v2_FunctionCallOutputBody;
753
+ };
754
+ type v2_Turn = {
755
+ completedAt?: number | null;
756
+ durationMs?: number | null;
757
+ error?: v2_TurnError | null;
758
+ id: string;
759
+ items: Array<v2_ThreadItem>;
760
+ itemsView?: v2_TurnItemsView;
761
+ startedAt?: number | null;
762
+ status: v2_TurnStatus;
763
+ };
764
+ type ChatgptAuthTokensRefreshReason = "unauthorized";
765
+ type v2_DynamicToolCallOutputContentItem = {
766
+ text: string;
767
+ type: "inputText";
768
+ } | {
769
+ imageUrl: string;
770
+ type: "inputImage";
771
+ } | {
772
+ audioUrl: string;
773
+ type: "inputAudio";
774
+ };
775
+ type ToolRequestUserInputQuestion = {
776
+ header: string;
777
+ id: string;
778
+ isOther?: boolean;
779
+ isSecret?: boolean;
780
+ options?: Array<ToolRequestUserInputOption> | null;
781
+ question: string;
782
+ };
783
+ type ToolRequestUserInputAnswer = {
784
+ answers: Array<string>;
785
+ };
786
+ type AdditionalPermissionProfile = {
787
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
788
+ network?: v2_AdditionalNetworkPermissions | null;
789
+ };
790
+ type CommandExecutionApprovalDecision = "accept" | "acceptForSession" | {
791
+ acceptWithExecpolicyAmendment: {
792
+ execpolicy_amendment: Array<string>;
793
+ };
794
+ } | {
795
+ applyNetworkPolicyAmendment: {
796
+ network_policy_amendment: NetworkPolicyAmendment;
797
+ };
798
+ } | "decline" | "cancel";
799
+ type v2_CommandAction = {
800
+ command: string;
801
+ name: string;
802
+ path: v2_LegacyAppPathString;
803
+ type: "read";
804
+ } | {
805
+ command: string;
806
+ path?: string | null;
807
+ type: "listFiles";
808
+ } | {
809
+ command: string;
810
+ path?: string | null;
811
+ query?: string | null;
812
+ type: "search";
813
+ } | {
814
+ command: string;
815
+ type: "unknown";
816
+ };
817
+ type CommandExecutionApprovalKind = "command" | "writeStdin";
818
+ type NetworkApprovalContext = {
819
+ host: string;
820
+ protocol: v2_NetworkApprovalProtocol;
821
+ };
822
+ type NetworkPolicyAmendment = {
823
+ action: NetworkPolicyRuleAction;
824
+ host: string;
825
+ };
826
+ type FileChangeApprovalDecision = "accept" | "acceptForSession" | "decline" | "cancel";
827
+ type v2_RequestPermissionProfile = {
828
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
829
+ network?: v2_AdditionalNetworkPermissions | null;
830
+ };
831
+ type GrantedPermissionProfile = {
832
+ fileSystem?: v2_AdditionalFileSystemPermissions | null;
833
+ network?: v2_AdditionalNetworkPermissions | null;
834
+ };
835
+ type PermissionGrantScope = "turn" | "session";
836
+ type McpElicitationSchema = {
837
+ $schema?: string | null;
838
+ properties: {
839
+ [key: string]: McpElicitationPrimitiveSchema;
840
+ };
841
+ required?: Array<string> | null;
842
+ type: McpElicitationObjectType;
843
+ };
844
+ type McpServerElicitationAction = "accept" | "decline" | "cancel";
845
+ type v2_McpServerStartupFailureReason = "reauthenticationRequired";
846
+ type v2_McpServerStartupState = "starting" | "ready" | "failed" | "cancelled";
847
+ type v2_ThreadTokenUsage = {
848
+ last: v2_TokenUsageBreakdown;
849
+ modelContextWindow?: number | null;
850
+ total: v2_TokenUsageBreakdown;
851
+ };
852
+ type v2_ModelRerouteReason = "highRiskCyberActivity";
853
+ type v2_ThreadItem = {
854
+ clientId?: string | null;
855
+ content: Array<v2_UserInput>;
856
+ id: string;
857
+ type: "userMessage";
858
+ } | {
859
+ fragments: Array<v2_HookPromptFragment>;
860
+ id: string;
861
+ type: "hookPrompt";
862
+ } | {
863
+ delivery?: v2_AgentMessageDelivery | null;
864
+ id: string;
865
+ memoryCitation?: v2_MemoryCitation | null;
866
+ phase?: v2_MessagePhase | null;
867
+ questions?: Array<v2_AsyncUserInputQuestion> | null;
868
+ text: string;
869
+ type: "agentMessage";
870
+ } | {
871
+ id: string;
872
+ name: string;
873
+ namespace?: string | null;
874
+ output: v2_FunctionCallOutputBody;
875
+ type: "functionCallOutput";
876
+ } | {
877
+ id: string;
878
+ text: string;
879
+ type: "plan";
880
+ } | {
881
+ content?: Array<string>;
882
+ id: string;
883
+ summary?: Array<string>;
884
+ type: "reasoning";
885
+ } | {
886
+ aggregatedOutput?: string | null;
887
+ command: string;
888
+ commandActions: Array<v2_CommandAction>;
889
+ cwd: v2_LegacyAppPathString;
890
+ durationMs?: number | null;
891
+ exitCode?: number | null;
892
+ id: string;
893
+ pluginId?: string | null;
894
+ processId?: string | null;
895
+ scriptPath?: string | null;
896
+ source?: v2_CommandExecutionSource;
897
+ status: v2_CommandExecutionStatus;
898
+ type: "commandExecution";
899
+ } | {
900
+ changes: Array<v2_FileUpdateChange>;
901
+ id: string;
902
+ status: v2_PatchApplyStatus;
903
+ type: "fileChange";
904
+ } | {
905
+ appContext?: v2_McpToolCallAppContext | null;
906
+ arguments: unknown;
907
+ durationMs?: number | null;
908
+ error?: v2_McpToolCallError | null;
909
+ id: string;
910
+ mcpAppResourceUri?: string | null;
911
+ pluginId?: string | null;
912
+ readOnlyHint?: boolean | null;
913
+ result?: v2_McpToolCallResult | null;
914
+ server: string;
915
+ status: v2_McpToolCallStatus;
916
+ tool: string;
917
+ type: "mcpToolCall";
918
+ } | {
919
+ arguments: unknown;
920
+ contentItems?: Array<v2_DynamicToolCallOutputContentItem> | null;
921
+ durationMs?: number | null;
922
+ id: string;
923
+ namespace?: string | null;
924
+ status: v2_DynamicToolCallStatus;
925
+ success?: boolean | null;
926
+ tool: string;
927
+ type: "dynamicToolCall";
928
+ } | {
929
+ agentsStates: {
930
+ [key: string]: v2_CollabAgentState;
931
+ };
932
+ id: string;
933
+ model?: string | null;
934
+ prompt?: string | null;
935
+ reasoningEffort?: v2_ReasoningEffort | null;
936
+ receiverThreadIds: Array<string>;
937
+ senderThreadId: string;
938
+ status: v2_CollabAgentToolCallStatus;
939
+ tool: v2_CollabAgentTool;
940
+ type: "collabAgentToolCall";
941
+ } | {
942
+ agentPath: string;
943
+ agentThreadId: string;
944
+ id: string;
945
+ kind: v2_SubAgentActivityKind;
946
+ type: "subAgentActivity";
947
+ } | {
948
+ action?: v2_WebSearchAction | null;
949
+ id: string;
950
+ query: string;
951
+ results?: Array<unknown> | null;
952
+ type: "webSearch";
953
+ } | {
954
+ id: string;
955
+ path: v2_LegacyAppPathString;
956
+ type: "imageView";
957
+ } | {
958
+ durationMs: number;
959
+ id: string;
960
+ type: "sleep";
961
+ } | {
962
+ failure?: v2_ImageGenerationFailure | null;
963
+ id: string;
964
+ result: string;
965
+ revisedPrompt?: string | null;
966
+ savedPath?: v2_AbsolutePathBuf | null;
967
+ status: string;
968
+ transparentBackground?: boolean | null;
969
+ type: "imageGeneration";
970
+ } | {
971
+ id: string;
972
+ review: string;
973
+ type: "enteredReviewMode";
974
+ } | {
975
+ id: string;
976
+ review: string;
977
+ type: "exitedReviewMode";
978
+ } | {
979
+ id: string;
980
+ type: "contextCompaction";
981
+ };
982
+ type v2_TurnError = {
983
+ additionalDetails?: string | null;
984
+ codexErrorInfo?: v2_CodexErrorInfo | null;
985
+ message: string;
986
+ misalignment?: v2_MisalignmentErrorDetails | null;
987
+ };
988
+ type v2_DesktopOnboardingEntrypoint = "life_sciences";
989
+ type v2_PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_prolite" | "self_serve_business_usage_based" | "business" | "ent26" | "enterprise_cbp_automation" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "edu_plus" | "edu_pro" | "unknown";
990
+ type v2_ModelAvailabilityNux = {
991
+ message: string;
992
+ };
993
+ type v2_InputModality = "text" | "image" | "audio";
994
+ type v2_MultiAgentVersion = "disabled" | "v1" | "v2";
995
+ type v2_ModelServiceTier = {
996
+ description: string;
997
+ id: string;
998
+ name: string;
999
+ };
1000
+ type v2_ReasoningEffortOption = {
1001
+ description: string;
1002
+ reasoningEffort: v2_ReasoningEffort;
1003
+ };
1004
+ type v2_ModelUpgradeInfo = {
1005
+ migrationMarkdown?: string | null;
1006
+ model: string;
1007
+ modelLink?: string | null;
1008
+ retirementAt?: number | null;
1009
+ upgradeCopy?: string | null;
1010
+ };
1011
+ type v2_DynamicToolNamespaceTool = {
1012
+ deferLoading?: boolean;
1013
+ description: string;
1014
+ inputSchema: unknown;
1015
+ name: string;
1016
+ type: "function";
1017
+ };
1018
+ type v2_CapabilityRootLocation = {
1019
+ environmentId: string;
1020
+ path: string;
1021
+ type: "environment";
1022
+ };
1023
+ type v2_NetworkAccess = "restricted" | "enabled";
1024
+ type v2_ThreadExtra = Record<string, never>;
1025
+ type v2_GitInfo = {
1026
+ branch?: string | null;
1027
+ originUrl?: string | null;
1028
+ sha?: string | null;
1029
+ };
1030
+ type v2_ThreadSection = {
1031
+ appearance?: v2_ThreadSectionAppearance | null;
1032
+ id: string;
1033
+ name: string;
1034
+ };
1035
+ type v2_SessionSource = "cli" | "vscode" | "exec" | "appServer" | "unknown" | {
1036
+ custom: string;
1037
+ } | {
1038
+ subAgent: v2_SubAgentSource;
1039
+ };
1040
+ type v2_ThreadStatus = {
1041
+ type: "notLoaded";
1042
+ } | {
1043
+ type: "idle";
1044
+ } | {
1045
+ type: "systemError";
1046
+ } | {
1047
+ activeFlags: Array<v2_ThreadActiveFlag>;
1048
+ type: "active";
1049
+ };
1050
+ type v2_ContentItem = {
1051
+ text: string;
1052
+ type: "input_text";
1053
+ } | {
1054
+ detail?: v2_ImageDetail | null;
1055
+ image_url: string;
1056
+ type: "input_image";
1057
+ } | {
1058
+ audio_url: string;
1059
+ type: "input_audio";
1060
+ } | {
1061
+ text: string;
1062
+ type: "output_text";
1063
+ };
1064
+ type v2_InternalChatMessageMetadataPassthrough = {
1065
+ turn_id?: string | null;
1066
+ };
1067
+ type v2_MessagePhase = "commentary" | "final_answer";
1068
+ type v2_AgentMessageInputContent = {
1069
+ text: string;
1070
+ type: "input_text";
1071
+ } | {
1072
+ encrypted_content: string;
1073
+ type: "encrypted_content";
1074
+ };
1075
+ type v2_ReasoningItemContent = {
1076
+ text: string;
1077
+ type: "reasoning_text";
1078
+ } | {
1079
+ text: string;
1080
+ type: "text";
1081
+ };
1082
+ type v2_ReasoningItemReasoningSummary = {
1083
+ text: string;
1084
+ type: "summary_text";
1085
+ };
1086
+ type v2_LocalShellAction = {
1087
+ command: Array<string>;
1088
+ env?: {
1089
+ [key: string]: string;
1090
+ } | null;
1091
+ timeout_ms?: number | null;
1092
+ type: "exec";
1093
+ user?: string | null;
1094
+ working_directory?: string | null;
1095
+ };
1096
+ type v2_LocalShellStatus = "completed" | "in_progress" | "incomplete";
1097
+ type v2_FunctionCallOutputBody = string | Array<v2_FunctionCallOutputContentItem>;
1098
+ type v2_ResponsesApiWebSearchAction = {
1099
+ queries?: Array<string> | null;
1100
+ query?: string | null;
1101
+ type: "search";
1102
+ } | {
1103
+ type: "open_page";
1104
+ url?: string | null;
1105
+ } | {
1106
+ pattern?: string | null;
1107
+ type: "find_in_page";
1108
+ url?: string | null;
1109
+ } | {
1110
+ type: "other";
1111
+ };
1112
+ type v2_TurnItemsView = "notLoaded" | "summary" | "full";
1113
+ type v2_SortDirection = "asc" | "desc";
1114
+ type v2_AdditionalContextKind = "untrusted" | "application";
1115
+ type v2_ModeKind = "plan" | "default";
1116
+ type v2_Settings = {
1117
+ developer_instructions?: string | null;
1118
+ model: string;
1119
+ reasoning_effort?: v2_ReasoningEffort | null;
1120
+ };
1121
+ type v2_TextElement = {
1122
+ byteRange: v2_ByteRange;
1123
+ placeholder?: string | null;
1124
+ };
1125
+ type v2_ImageDetail = "auto" | "low" | "high" | "original";
1126
+ type v2_TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";
1127
+ type ToolRequestUserInputOption = {
1128
+ description: string;
1129
+ label: string;
1130
+ };
1131
+ type v2_AdditionalFileSystemPermissions = {
1132
+ entries?: Array<v2_FileSystemSandboxEntry> | null;
1133
+ globScanMaxDepth?: number | null;
1134
+ read?: Array<v2_LegacyAppPathString> | null;
1135
+ write?: Array<v2_LegacyAppPathString> | null;
1136
+ };
1137
+ type v2_AdditionalNetworkPermissions = {
1138
+ enabled?: boolean | null;
1139
+ };
1140
+ type v2_NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp";
1141
+ type NetworkPolicyRuleAction = "allow" | "deny";
1142
+ type McpElicitationPrimitiveSchema = McpElicitationEnumSchema | McpElicitationStringSchema | McpElicitationNumberSchema | McpElicitationBooleanSchema;
1143
+ type McpElicitationObjectType = "object";
1144
+ type v2_TokenUsageBreakdown = {
1145
+ cacheWriteInputTokens?: number;
1146
+ cachedInputTokens: number;
1147
+ inputTokens: number;
1148
+ outputTokens: number;
1149
+ reasoningOutputTokens: number;
1150
+ totalTokens: number;
1151
+ };
1152
+ type v2_HookPromptFragment = {
1153
+ hookRunId: string;
1154
+ text: string;
1155
+ };
1156
+ type v2_AgentMessageDelivery = "async";
1157
+ type v2_MemoryCitation = {
1158
+ entries: Array<v2_MemoryCitationEntry>;
1159
+ threadIds: Array<string>;
1160
+ };
1161
+ type v2_AsyncUserInputQuestion = {
1162
+ options?: Array<string> | null;
1163
+ title: string;
1164
+ };
1165
+ type v2_CommandExecutionSource = "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction";
1166
+ type v2_CommandExecutionStatus = "inProgress" | "completed" | "failed" | "declined";
1167
+ type v2_FileUpdateChange = {
1168
+ diff: string;
1169
+ kind: v2_PatchChangeKind;
1170
+ path: string;
1171
+ };
1172
+ type v2_PatchApplyStatus = "inProgress" | "completed" | "failed" | "declined";
1173
+ type v2_McpToolCallAppContext = {
1174
+ actionName?: string | null;
1175
+ appName?: string | null;
1176
+ connectorId: string;
1177
+ linkId?: string | null;
1178
+ resourceUri?: string | null;
1179
+ };
1180
+ type v2_McpToolCallError = {
1181
+ message: string;
1182
+ };
1183
+ type v2_McpToolCallResult = {
1184
+ _meta?: unknown;
1185
+ content: Array<unknown>;
1186
+ structuredContent?: unknown;
1187
+ };
1188
+ type v2_McpToolCallStatus = "inProgress" | "completed" | "failed";
1189
+ type v2_DynamicToolCallStatus = "inProgress" | "completed" | "failed";
1190
+ type v2_CollabAgentState = {
1191
+ message?: string | null;
1192
+ status: v2_CollabAgentStatus;
1193
+ };
1194
+ type v2_CollabAgentToolCallStatus = "inProgress" | "completed" | "failed" | "interrupted";
1195
+ type v2_CollabAgentTool = "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent" | "sendMessage" | "followupTask" | "interruptAgent" | "listAgents";
1196
+ type v2_SubAgentActivityKind = "started" | "interacted" | "interrupted" | "completed";
1197
+ type v2_WebSearchAction = {
1198
+ queries?: Array<string> | null;
1199
+ query?: string | null;
1200
+ type: "search";
1201
+ } | {
1202
+ type: "openPage";
1203
+ url?: string | null;
1204
+ } | {
1205
+ pattern?: string | null;
1206
+ type: "findInPage";
1207
+ url?: string | null;
1208
+ } | {
1209
+ type: "other";
1210
+ };
1211
+ type v2_ImageGenerationFailure = {
1212
+ limitId: string;
1213
+ resetsAt?: number | null;
1214
+ type: "usageLimitExceeded";
1215
+ };
1216
+ type v2_CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | "other" | {
1217
+ httpConnectionFailed: {
1218
+ httpStatusCode?: number | null;
1219
+ };
1220
+ } | {
1221
+ responseStreamConnectionFailed: {
1222
+ httpStatusCode?: number | null;
1223
+ };
1224
+ } | {
1225
+ responseStreamDisconnected: {
1226
+ httpStatusCode?: number | null;
1227
+ };
1228
+ } | {
1229
+ responseTooManyFailedAttempts: {
1230
+ httpStatusCode?: number | null;
1231
+ };
1232
+ } | {
1233
+ activeTurnNotSteerable: {
1234
+ turnKind: v2_NonSteerableTurnKind;
1235
+ };
1236
+ };
1237
+ type v2_MisalignmentErrorDetails = {
1238
+ detailedExplanation?: string | null;
1239
+ errorType?: string | null;
1240
+ steer?: v2_MisalignmentSteer | null;
1241
+ };
1242
+ type v2_ThreadSectionAppearance = {
1243
+ color?: string | null;
1244
+ icon?: string | null;
1245
+ };
1246
+ type v2_SubAgentSource = "review" | "compact" | "memory_consolidation" | {
1247
+ thread_spawn: {
1248
+ agent_nickname?: string | null;
1249
+ agent_path?: v2_AgentPath | null;
1250
+ agent_role?: string | null;
1251
+ depth: number;
1252
+ parent_thread_id: v2_ThreadId;
1253
+ };
1254
+ } | {
1255
+ other: string;
1256
+ };
1257
+ type v2_ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput";
1258
+ type v2_FunctionCallOutputContentItem = {
1259
+ text: string;
1260
+ type: "input_text";
1261
+ } | {
1262
+ detail?: v2_ImageDetail | null;
1263
+ image_url: string;
1264
+ type: "input_image";
1265
+ } | {
1266
+ audio_url: string;
1267
+ type: "input_audio";
1268
+ } | {
1269
+ encrypted_content: string;
1270
+ type: "encrypted_content";
1271
+ };
1272
+ type v2_ByteRange = {
1273
+ end: number;
1274
+ start: number;
1275
+ };
1276
+ type v2_FileSystemSandboxEntry = {
1277
+ access: v2_FileSystemAccessMode;
1278
+ path: v2_FileSystemPath;
1279
+ };
1280
+ type McpElicitationEnumSchema = McpElicitationSingleSelectEnumSchema | McpElicitationMultiSelectEnumSchema | McpElicitationLegacyTitledEnumSchema;
1281
+ type McpElicitationStringSchema = {
1282
+ default?: string | null;
1283
+ description?: string | null;
1284
+ format?: McpElicitationStringFormat | null;
1285
+ maxLength?: number | null;
1286
+ minLength?: number | null;
1287
+ title?: string | null;
1288
+ type: McpElicitationStringType;
1289
+ };
1290
+ type McpElicitationNumberSchema = {
1291
+ default?: number | null;
1292
+ description?: string | null;
1293
+ maximum?: number | null;
1294
+ minimum?: number | null;
1295
+ title?: string | null;
1296
+ type: McpElicitationNumberType;
1297
+ };
1298
+ type McpElicitationBooleanSchema = {
1299
+ default?: boolean | null;
1300
+ description?: string | null;
1301
+ title?: string | null;
1302
+ type: McpElicitationBooleanType;
1303
+ };
1304
+ type v2_MemoryCitationEntry = {
1305
+ lineEnd: number;
1306
+ lineStart: number;
1307
+ note: string;
1308
+ path: string;
1309
+ };
1310
+ type v2_PatchChangeKind = {
1311
+ type: "add";
1312
+ } | {
1313
+ type: "delete";
1314
+ } | {
1315
+ move_path?: string | null;
1316
+ type: "update";
1317
+ };
1318
+ type v2_CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound";
1319
+ type v2_NonSteerableTurnKind = "review" | "compact";
1320
+ type v2_MisalignmentSteer = {
1321
+ message: string;
1322
+ };
1323
+ type v2_AgentPath = string;
1324
+ type v2_ThreadId = string;
1325
+ type v2_FileSystemAccessMode = "read" | "write" | "deny";
1326
+ type v2_FileSystemPath = {
1327
+ path: v2_LegacyAppPathString;
1328
+ type: "path";
1329
+ } | {
1330
+ pattern: string;
1331
+ type: "glob_pattern";
1332
+ } | {
1333
+ type: "special";
1334
+ value: v2_FileSystemSpecialPath;
1335
+ };
1336
+ type McpElicitationSingleSelectEnumSchema = McpElicitationUntitledSingleSelectEnumSchema | McpElicitationTitledSingleSelectEnumSchema;
1337
+ type McpElicitationMultiSelectEnumSchema = McpElicitationUntitledMultiSelectEnumSchema | McpElicitationTitledMultiSelectEnumSchema;
1338
+ type McpElicitationLegacyTitledEnumSchema = {
1339
+ default?: string | null;
1340
+ description?: string | null;
1341
+ enum: Array<string>;
1342
+ enumNames?: Array<string> | null;
1343
+ title?: string | null;
1344
+ type: McpElicitationStringType;
1345
+ };
1346
+ type McpElicitationStringFormat = "email" | "uri" | "date" | "date-time";
1347
+ type McpElicitationStringType = "string";
1348
+ type McpElicitationNumberType = "number" | "integer";
1349
+ type McpElicitationBooleanType = "boolean";
1350
+ type v2_FileSystemSpecialPath = {
1351
+ kind: "root";
1352
+ } | {
1353
+ kind: "minimal";
1354
+ } | {
1355
+ kind: "project_roots";
1356
+ subpath?: v2_LegacyAppPathString | null;
1357
+ } | {
1358
+ kind: "tmpdir";
1359
+ } | {
1360
+ kind: "slash_tmp";
1361
+ } | {
1362
+ kind: "unknown";
1363
+ path: string;
1364
+ subpath?: v2_LegacyAppPathString | null;
1365
+ };
1366
+ type McpElicitationUntitledSingleSelectEnumSchema = {
1367
+ default?: string | null;
1368
+ description?: string | null;
1369
+ enum: Array<string>;
1370
+ title?: string | null;
1371
+ type: McpElicitationStringType;
1372
+ };
1373
+ type McpElicitationTitledSingleSelectEnumSchema = {
1374
+ default?: string | null;
1375
+ description?: string | null;
1376
+ oneOf: Array<McpElicitationConstOption>;
1377
+ title?: string | null;
1378
+ type: McpElicitationStringType;
1379
+ };
1380
+ type McpElicitationUntitledMultiSelectEnumSchema = {
1381
+ default?: Array<string> | null;
1382
+ description?: string | null;
1383
+ items: McpElicitationUntitledEnumItems;
1384
+ maxItems?: number | null;
1385
+ minItems?: number | null;
1386
+ title?: string | null;
1387
+ type: McpElicitationArrayType;
1388
+ };
1389
+ type McpElicitationTitledMultiSelectEnumSchema = {
1390
+ default?: Array<string> | null;
1391
+ description?: string | null;
1392
+ items: McpElicitationTitledEnumItems;
1393
+ maxItems?: number | null;
1394
+ minItems?: number | null;
1395
+ title?: string | null;
1396
+ type: McpElicitationArrayType;
1397
+ };
1398
+ type McpElicitationConstOption = {
1399
+ const: string;
1400
+ title: string;
1401
+ };
1402
+ type McpElicitationUntitledEnumItems = {
1403
+ enum: Array<string>;
1404
+ type: McpElicitationStringType;
1405
+ };
1406
+ type McpElicitationArrayType = "array";
1407
+ type McpElicitationTitledEnumItems = {
1408
+ anyOf: Array<McpElicitationConstOption>;
1409
+ };
1410
+ export {};
1411
+ //# sourceMappingURL=native-protocol.generated.d.ts.map