@jrkropp/codex-js 0.1.1 → 0.1.3

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 (132) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/ClientNotification-B6-FhXQf.d.ts +5 -0
  3. package/dist/{DynamicToolCallResponse-D2OVpa4p.d.ts → DynamicToolCallResponse-82DFjES2.d.ts} +1 -1
  4. package/dist/DynamicToolSpec-CfnhqAYK.d.ts +29 -0
  5. package/dist/PermissionsRequestApprovalResponse-DxzPPDRb.d.ts +55 -0
  6. package/dist/ProviderStatusBanner-BlP6lzwE.d.ts +441 -0
  7. package/dist/ServerRequest-B5cKVJjr.d.ts +2181 -0
  8. package/dist/{session-BO6EZNK7.d.ts → ThreadResumeResponse-DvmE1juU.d.ts} +3 -290
  9. package/dist/ToolRequestUserInputQuestion-CeZa5X1J.d.ts +23 -0
  10. package/dist/{ToolRequestUserInputResponse-Bxjlpgho.d.ts → ToolRequestUserInputResponse-zcPLwbiK.d.ts} +1 -1
  11. package/dist/TurnSteerResponse-0kBCfplh.d.ts +209 -0
  12. package/dist/WebSearchToolConfig-D3ep0625.d.ts +18 -0
  13. package/dist/chat-runtime-B6azJyKo.d.ts +381 -0
  14. package/dist/chunk-2DZRMCI2.js +1258 -0
  15. package/dist/chunk-2DZRMCI2.js.map +1 -0
  16. package/dist/chunk-4DPLJPB5.js +396 -0
  17. package/dist/chunk-4DPLJPB5.js.map +1 -0
  18. package/dist/chunk-5JMJ6OI5.js +3 -0
  19. package/dist/chunk-5JMJ6OI5.js.map +1 -0
  20. package/dist/chunk-6ZMJ34KE.js +1153 -0
  21. package/dist/chunk-6ZMJ34KE.js.map +1 -0
  22. package/dist/chunk-CGBS37IU.js +128 -0
  23. package/dist/chunk-CGBS37IU.js.map +1 -0
  24. package/dist/chunk-DCMKA2A6.js +18 -0
  25. package/dist/chunk-DCMKA2A6.js.map +1 -0
  26. package/dist/chunk-DYLHN3HG.js +937 -0
  27. package/dist/chunk-DYLHN3HG.js.map +1 -0
  28. package/dist/chunk-ILXA6HLX.js +1973 -0
  29. package/dist/chunk-ILXA6HLX.js.map +1 -0
  30. package/dist/{chunk-TZBLUZ2X.js → chunk-LWQNX4LI.js} +7811 -12696
  31. package/dist/chunk-LWQNX4LI.js.map +1 -0
  32. package/dist/{chunk-FFASNDXU.js → chunk-NCI4MAWZ.js} +317 -1967
  33. package/dist/chunk-NCI4MAWZ.js.map +1 -0
  34. package/dist/chunk-O44XP7LH.js +214 -0
  35. package/dist/chunk-O44XP7LH.js.map +1 -0
  36. package/dist/chunk-PST3ZWX2.js +555 -0
  37. package/dist/chunk-PST3ZWX2.js.map +1 -0
  38. package/dist/chunk-SYPHCDRD.js +1133 -0
  39. package/dist/chunk-SYPHCDRD.js.map +1 -0
  40. package/dist/chunk-V4BMZWBM.js +2401 -0
  41. package/dist/chunk-V4BMZWBM.js.map +1 -0
  42. package/dist/chunk-YHVCFD2D.js +117 -0
  43. package/dist/chunk-YHVCFD2D.js.map +1 -0
  44. package/dist/chunk-Z63UPBS3.js +152 -0
  45. package/dist/chunk-Z63UPBS3.js.map +1 -0
  46. package/dist/client/index.d.ts +16 -111
  47. package/dist/client/index.js +13 -1
  48. package/dist/codex-rs/app-server/index.d.ts +161 -0
  49. package/dist/codex-rs/app-server/index.js +13 -0
  50. package/dist/codex-rs/app-server/index.js.map +1 -0
  51. package/dist/codex-rs/app-server-protocol/index.d.ts +1722 -0
  52. package/dist/codex-rs/app-server-protocol/index.js +6 -0
  53. package/dist/codex-rs/app-server-protocol/index.js.map +1 -0
  54. package/dist/codex-rs/app-server-protocol/protocol.d.ts +19 -0
  55. package/dist/codex-rs/app-server-protocol/protocol.js +4 -0
  56. package/dist/codex-rs/app-server-protocol/protocol.js.map +1 -0
  57. package/dist/codex-rs/codex-api/index.d.ts +104 -0
  58. package/dist/codex-rs/codex-api/index.js +11 -0
  59. package/dist/codex-rs/codex-api/index.js.map +1 -0
  60. package/dist/codex-rs/config/index.d.ts +88 -0
  61. package/dist/codex-rs/config/index.js +4 -0
  62. package/dist/codex-rs/config/index.js.map +1 -0
  63. package/dist/codex-rs/core/config/index.d.ts +61 -0
  64. package/dist/codex-rs/core/config/index.js +5 -0
  65. package/dist/codex-rs/core/config/index.js.map +1 -0
  66. package/dist/codex-rs/core/index.d.ts +1393 -0
  67. package/dist/codex-rs/core/index.js +11 -0
  68. package/dist/codex-rs/core/index.js.map +1 -0
  69. package/dist/codex-rs/model-provider/index.d.ts +2 -0
  70. package/dist/codex-rs/model-provider/index.js +4 -0
  71. package/dist/codex-rs/model-provider/index.js.map +1 -0
  72. package/dist/codex-rs/models-manager/index.d.ts +2 -0
  73. package/dist/codex-rs/models-manager/index.js +4 -0
  74. package/dist/codex-rs/models-manager/index.js.map +1 -0
  75. package/dist/codex-rs/parity.d.ts +26 -0
  76. package/dist/codex-rs/parity.js +3 -0
  77. package/dist/codex-rs/parity.js.map +1 -0
  78. package/dist/codex-rs/thread-store/index.d.ts +5 -0
  79. package/dist/codex-rs/thread-store/index.js +4 -0
  80. package/dist/codex-rs/thread-store/index.js.map +1 -0
  81. package/dist/codex-rs/unsupported.d.ts +15 -0
  82. package/dist/codex-rs/unsupported.js +22 -0
  83. package/dist/codex-rs/unsupported.js.map +1 -0
  84. package/dist/codex-rs/utils/output-truncation.d.ts +21 -0
  85. package/dist/codex-rs/utils/output-truncation.js +4 -0
  86. package/dist/codex-rs/utils/output-truncation.js.map +1 -0
  87. package/dist/codex-rs/utils/string.d.ts +7 -0
  88. package/dist/codex-rs/utils/string.js +3 -0
  89. package/dist/codex-rs/utils/string.js.map +1 -0
  90. package/dist/common-CTyph5x8.d.ts +40 -0
  91. package/dist/event-mapping-CbISdQ1D.d.ts +43 -0
  92. package/dist/history-CfM-4V7b.d.ts +1654 -0
  93. package/dist/index-77U_Oc-a.d.ts +63 -0
  94. package/dist/index-CoDZosq0.d.ts +261 -0
  95. package/dist/index.d.ts +18 -8
  96. package/dist/index.js +16 -2
  97. package/dist/lib-nXlaKiS-.d.ts +48 -0
  98. package/dist/live-thread-BMvlflzM.d.ts +30 -0
  99. package/dist/merge-B_AWVmnI.d.ts +24 -0
  100. package/dist/mod-DYVLSWO4.d.ts +91 -0
  101. package/dist/plan-mode-Cv6KWb_S.d.ts +14 -0
  102. package/dist/proposed-plan-DpN1ma0Y.d.ts +53 -0
  103. package/dist/protocol-mpBcYHrm.d.ts +1655 -0
  104. package/dist/react/index.d.ts +20 -53
  105. package/dist/react/index.js +16 -2
  106. package/dist/{remote-DMPfepa9.d.ts → remote-ClZbq9KN.d.ts} +3 -1
  107. package/dist/rendered-thread-AOxw3V5b.d.ts +29 -0
  108. package/dist/responses_websocket-BhxSgCzK.d.ts +183 -0
  109. package/dist/runtime-Cm6ml53h.d.ts +528 -0
  110. package/dist/server/index.d.ts +29 -1999
  111. package/dist/server/index.js +13 -1
  112. package/dist/session-BRYzi8OT.d.ts +46 -0
  113. package/dist/shadcn/index.d.ts +1 -1
  114. package/dist/{sidebar-DT2XoitN.d.ts → sidebar-DMMij22z.d.ts} +1 -1
  115. package/dist/spec_plan_types-CmsJ-Tfn.d.ts +260 -0
  116. package/dist/{store-H2cQxdpe.d.ts → store-AGRxhgQ3.d.ts} +2 -1
  117. package/dist/t3code/apps/web/components/chat.d.ts +508 -0
  118. package/dist/t3code/apps/web/components/chat.js +12 -0
  119. package/dist/t3code/apps/web/components/chat.js.map +1 -0
  120. package/dist/t3code/apps/web/index.d.ts +12 -0
  121. package/dist/t3code/apps/web/index.js +13 -0
  122. package/dist/t3code/apps/web/index.js.map +1 -0
  123. package/dist/testing/index.d.ts +9 -91
  124. package/dist/testing/index.js +13 -1
  125. package/dist/thread-history-builder-zW0zeqcS.d.ts +58 -0
  126. package/dist/thread_event_store-C0zYzukG.d.ts +77 -0
  127. package/dist/types-BTeabLYr.d.ts +126 -0
  128. package/package.json +152 -88
  129. package/dist/chat-runtime-CMli5dzJ.d.ts +0 -748
  130. package/dist/chunk-FFASNDXU.js.map +0 -1
  131. package/dist/chunk-TZBLUZ2X.js.map +0 -1
  132. package/dist/thread_event_store-BIS0qzhi.d.ts +0 -3843
@@ -1,4 +1,5 @@
1
- import { aL as ThreadId, aM as AbsolutePathBuf, J as JsonValue, aN as ThreadSource, aO as UserInput, aP as ReasoningEffort, aQ as WindowsSandboxSetupMode, l as RequestId, aR as Thread, aS as Turn, S as ServerNotification, a as ServerRequest } from './thread_event_store-BIS0qzhi.js';
1
+ import { i as ThreadId, h as AbsolutePathBuf, J as JsonValue, j as ThreadSource, U as UserInput, f as ReasoningEffort, W as WindowsSandboxSetupMode, T as Thread } from './ServerRequest-B5cKVJjr.js';
2
+ import { R as RequestId } from './ToolRequestUserInputQuestion-CeZa5X1J.js';
2
3
 
3
4
  type ClientInfo = {
4
5
  name: string;
@@ -1517,174 +1518,6 @@ type ClientRequest = {
1517
1518
  params: FuzzyFileSearchParams;
1518
1519
  };
1519
1520
 
1520
- /**
1521
- * Initial collaboration mode to use when the TUI starts.
1522
- */
1523
- type ModeKind = "plan" | "default";
1524
-
1525
- type InitializeResponse = {
1526
- userAgent: string;
1527
- /**
1528
- * Absolute path to the server's $CODEX_HOME directory.
1529
- */
1530
- codexHome: AbsolutePathBuf;
1531
- /**
1532
- * Platform family for the running app-server target, for example
1533
- * `"unix"` or `"windows"`.
1534
- */
1535
- platformFamily: string;
1536
- /**
1537
- * Operating system for the running app-server target, for example
1538
- * `"macos"`, `"linux"`, or `"windows"`.
1539
- */
1540
- platformOs: string;
1541
- };
1542
-
1543
- /**
1544
- * A known resource that the server is capable of reading.
1545
- */
1546
- type Resource = {
1547
- annotations?: JsonValue;
1548
- description?: string;
1549
- mimeType?: string;
1550
- name: string;
1551
- size?: number;
1552
- title?: string;
1553
- uri: string;
1554
- icons?: Array<JsonValue>;
1555
- _meta?: JsonValue;
1556
- };
1557
-
1558
- /**
1559
- * Contents returned when reading a resource from an MCP server.
1560
- */
1561
- type ResourceContent = {
1562
- /**
1563
- * The URI of this resource.
1564
- */
1565
- uri: string;
1566
- mimeType?: string;
1567
- text: string;
1568
- _meta?: JsonValue;
1569
- } | {
1570
- /**
1571
- * The URI of this resource.
1572
- */
1573
- uri: string;
1574
- mimeType?: string;
1575
- blob: string;
1576
- _meta?: JsonValue;
1577
- };
1578
-
1579
- /**
1580
- * A template description for resources available on the server.
1581
- */
1582
- type ResourceTemplate = {
1583
- annotations?: JsonValue;
1584
- uriTemplate: string;
1585
- name: string;
1586
- title?: string;
1587
- description?: string;
1588
- mimeType?: string;
1589
- };
1590
-
1591
- /**
1592
- * Definition for a tool the client can call.
1593
- */
1594
- type Tool = {
1595
- name: string;
1596
- title?: string;
1597
- description?: string;
1598
- inputSchema: JsonValue;
1599
- outputSchema?: JsonValue;
1600
- annotations?: JsonValue;
1601
- icons?: Array<JsonValue>;
1602
- _meta?: JsonValue;
1603
- };
1604
-
1605
- /**
1606
- * EXPERIMENTAL - collaboration mode preset metadata for clients.
1607
- */
1608
- type CollaborationModeMask = {
1609
- name: string;
1610
- mode: ModeKind | null;
1611
- model: string | null;
1612
- reasoning_effort: ReasoningEffort | null | null;
1613
- };
1614
-
1615
- /**
1616
- * EXPERIMENTAL - collaboration mode presets response.
1617
- */
1618
- type CollaborationModeListResponse = {
1619
- data: Array<CollaborationModeMask>;
1620
- };
1621
-
1622
- type McpAuthStatus = "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth";
1623
-
1624
- type McpServerStatus = {
1625
- name: string;
1626
- tools: {
1627
- [key in string]?: Tool;
1628
- };
1629
- resources: Array<Resource>;
1630
- resourceTemplates: Array<ResourceTemplate>;
1631
- authStatus: McpAuthStatus;
1632
- };
1633
-
1634
- type ListMcpServerStatusResponse = {
1635
- data: Array<McpServerStatus>;
1636
- /**
1637
- * Opaque cursor to pass to the next call to continue after the last item.
1638
- * If None, there are no more items to return.
1639
- */
1640
- nextCursor: string | null;
1641
- };
1642
-
1643
- type McpResourceReadResponse = {
1644
- contents: Array<ResourceContent>;
1645
- };
1646
-
1647
- type McpServerOauthLoginResponse = {
1648
- authorizationUrl: string;
1649
- };
1650
-
1651
- type McpServerRefreshResponse = Record<string, never>;
1652
-
1653
- type McpServerToolCallResponse = {
1654
- content: Array<JsonValue>;
1655
- structuredContent?: JsonValue;
1656
- isError?: boolean;
1657
- _meta?: JsonValue;
1658
- };
1659
-
1660
- type ThreadArchiveResponse = Record<string, never>;
1661
-
1662
- type ThreadCompactStartResponse = Record<string, never>;
1663
-
1664
- type ThreadListResponse = {
1665
- data: Array<Thread>;
1666
- /**
1667
- * Opaque cursor to pass to the next call to continue after the last item.
1668
- * if None, there are no more items to return.
1669
- */
1670
- nextCursor: string | null;
1671
- /**
1672
- * Opaque cursor to pass as `cursor` when reversing `sortDirection`.
1673
- * This is only populated when the page contains at least one thread.
1674
- * Use it with the opposite `sortDirection`; for timestamp sorts it anchors
1675
- * at the start of the page timestamp so same-second updates are not skipped.
1676
- */
1677
- backwardsCursor: string | null;
1678
- };
1679
-
1680
- type ThreadMetadataUpdateResponse = {
1681
- thread: Thread;
1682
- };
1683
-
1684
- type ThreadReadResponse = {
1685
- thread: Thread;
1686
- };
1687
-
1688
1521
  type ThreadResumeResponse = {
1689
1522
  thread: Thread;
1690
1523
  model: string;
@@ -1706,124 +1539,4 @@ type ThreadResumeResponse = {
1706
1539
  reasoningEffort: ReasoningEffort | null;
1707
1540
  };
1708
1541
 
1709
- type ThreadSetNameResponse = Record<string, never>;
1710
-
1711
- type ThreadStartResponse = {
1712
- thread: Thread;
1713
- model: string;
1714
- modelProvider: string;
1715
- serviceTier: string | null;
1716
- cwd: AbsolutePathBuf; /**
1717
- * Instruction source files currently loaded for this thread.
1718
- */
1719
- instructionSources: Array<AbsolutePathBuf>;
1720
- approvalPolicy: AskForApproval; /**
1721
- * Reviewer currently used for approval requests on this thread.
1722
- */
1723
- approvalsReviewer: ApprovalsReviewer; /**
1724
- * Legacy sandbox policy retained for compatibility. Experimental clients
1725
- * should prefer `permissionProfile` when they need exact runtime
1726
- * permissions.
1727
- */
1728
- sandbox: SandboxPolicy;
1729
- reasoningEffort: ReasoningEffort | null;
1730
- };
1731
-
1732
- type ThreadUnarchiveResponse = {
1733
- thread: Thread;
1734
- };
1735
-
1736
- type TurnInterruptResponse = Record<string, never>;
1737
-
1738
- type TurnStartResponse = {
1739
- turn: Turn;
1740
- };
1741
-
1742
- type TurnSteerResponse = {
1743
- turnId: string;
1744
- };
1745
-
1746
- type JsonRpcResult = unknown;
1747
- type JSONRPCErrorError = {
1748
- code: number;
1749
- data?: unknown;
1750
- message: string;
1751
- };
1752
- type Result = JsonRpcResult;
1753
- type AppServerEvent = {
1754
- skipped: number;
1755
- type: "lagged";
1756
- } | {
1757
- notification: ServerNotification;
1758
- type: "server_notification";
1759
- } | {
1760
- request: ServerRequest;
1761
- type: "server_request";
1762
- } | {
1763
- message: string;
1764
- type: "disconnected";
1765
- };
1766
- type TypedRequestError = {
1767
- method: string;
1768
- source: unknown;
1769
- type: "transport";
1770
- } | {
1771
- method: string;
1772
- source: JSONRPCErrorError;
1773
- type: "server";
1774
- } | {
1775
- method: string;
1776
- source: unknown;
1777
- type: "deserialize";
1778
- };
1779
- type AppServerRequestHandle = {
1780
- rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
1781
- request(request: ClientRequest): Promise<unknown>;
1782
- requestTyped<T>(request: ClientRequest): Promise<T>;
1783
- resolveServerRequest(requestId: RequestId, result: Result): Promise<void>;
1784
- };
1785
- declare function requestTyped<T>(request: ClientRequest, send: (request: ClientRequest) => Promise<unknown>): Promise<T>;
1786
- declare function serverNotificationRequiresDelivery(notification: ServerNotification): boolean;
1787
- declare function requestMethodName(request: ClientRequest): string;
1788
-
1789
- type CodexAppServer = {
1790
- close?(): void;
1791
- events?(): AsyncIterable<AppServerEvent>;
1792
- nextEvent?(): Promise<AppServerEvent | null>;
1793
- rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
1794
- request(request: ClientRequest): Promise<unknown>;
1795
- requestTyped<T>(request: ClientRequest): Promise<T>;
1796
- resolveServerRequest(requestId: RequestId, result: Result): Promise<void>;
1797
- };
1798
- declare class AppServerSession {
1799
- private readonly client;
1800
- private nextRequestIdValue;
1801
- constructor(client: CodexAppServer);
1802
- nextRequestId(): RequestId;
1803
- nextEvent(): Promise<AppServerEvent | null>;
1804
- events(): AsyncIterable<AppServerEvent> | null;
1805
- requestTyped<T>(request: ClientRequest): Promise<T>;
1806
- initialize(params?: InitializeParams): Promise<InitializeResponse>;
1807
- threadStart(params: ThreadStartParams): Promise<ThreadStartResponse>;
1808
- threadResume(params: ThreadResumeParams): Promise<ThreadResumeResponse>;
1809
- threadList(params?: ThreadListParams): Promise<ThreadListResponse>;
1810
- collaborationModeList(params?: CollaborationModeListParams): Promise<CollaborationModeListResponse>;
1811
- configMcpServerReload(): Promise<McpServerRefreshResponse>;
1812
- mcpServerStatusList(params?: ListMcpServerStatusParams): Promise<ListMcpServerStatusResponse>;
1813
- mcpResourceRead(params: McpResourceReadParams): Promise<McpResourceReadResponse>;
1814
- mcpServerToolCall(params: McpServerToolCallParams): Promise<McpServerToolCallResponse>;
1815
- mcpServerOauthLogin(params: McpServerOauthLoginParams): Promise<McpServerOauthLoginResponse>;
1816
- threadRead(params: ThreadReadParams): Promise<ThreadReadResponse>;
1817
- threadNameSet(params: ThreadSetNameParams): Promise<ThreadSetNameResponse>;
1818
- threadArchive(params: ThreadArchiveParams): Promise<ThreadArchiveResponse>;
1819
- threadUnarchive(params: ThreadUnarchiveParams): Promise<ThreadUnarchiveResponse>;
1820
- threadMetadataUpdate(params: ThreadMetadataUpdateParams): Promise<ThreadMetadataUpdateResponse>;
1821
- turnStart(params: TurnStartParams): Promise<TurnStartResponse>;
1822
- turnSteer(params: TurnSteerParams): Promise<TurnSteerResponse>;
1823
- turnInterrupt(params: TurnInterruptParams): Promise<TurnInterruptResponse>;
1824
- threadCompactStart(params: ThreadCompactStartParams): Promise<ThreadCompactStartResponse>;
1825
- resolveServerRequest(requestId: RequestId, result: Result): Promise<void>;
1826
- rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
1827
- }
1828
-
1829
- export { type AppServerEvent as A, type ThreadSetNameParams as B, type CodexAppServer as C, type ThreadSetNameResponse as D, type ThreadReadParams as E, type ThreadReadResponse as F, type ThreadResumeParams as G, type ThreadResumeResponse as H, type InitializeParams as I, type JSONRPCErrorError as J, type ThreadStartResponse as K, type ListMcpServerStatusParams as L, type McpServerRefreshResponse as M, type ThreadUnarchiveParams as N, type ThreadUnarchiveResponse as O, type TurnInterruptParams as P, type TurnInterruptResponse as Q, type Result as R, type TurnStartResponse as S, type TypedRequestError as T, type TurnSteerParams as U, type TurnSteerResponse as V, type AppServerRequestHandle as a, AppServerSession as b, type ClientRequest as c, type InitializeResponse as d, requestTyped as e, type ThreadStartParams as f, type TurnStartParams as g, type CollaborationModeListParams as h, type CollaborationModeListResponse as i, type McpResourceReadParams as j, type McpResourceReadResponse as k, type McpServerOauthLoginParams as l, type McpServerOauthLoginResponse as m, type ListMcpServerStatusResponse as n, type McpServerToolCallParams as o, type McpServerToolCallResponse as p, type ThreadArchiveParams as q, requestMethodName as r, serverNotificationRequiresDelivery as s, type ThreadArchiveResponse as t, type ThreadCompactStartParams as u, type ThreadCompactStartResponse as v, type ThreadListParams as w, type ThreadListResponse as x, type ThreadMetadataUpdateParams as y, type ThreadMetadataUpdateResponse as z };
1542
+ export type { FsGetMetadataParams as $, AskForApproval as A, ConfigBatchWriteParams as B, ClientRequest as C, ConfigEdit as D, ExternalAgentConfigMigrationItem as E, ConfigReadParams as F, ConfigValueWriteParams as G, DeviceKeyCreateParams as H, InitializeParams as I, DeviceKeyProtectionPolicy as J, DeviceKeyPublicParams as K, ListMcpServerStatusParams as L, McpResourceReadParams as M, DeviceKeySignParams as N, DeviceKeySignPayload as O, PluginSharePrincipalType as P, ExperimentalFeatureEnablementSetParams as Q, ReasoningSummary as R, SandboxPolicy as S, ThreadArchiveParams as T, ExperimentalFeatureListParams as U, ExternalAgentConfigDetectParams as V, ExternalAgentConfigImportParams as W, ExternalAgentConfigMigrationItemType as X, FeedbackUploadParams as Y, FsCopyParams as Z, FsCreateDirectoryParams as _, CollaborationModeListParams as a, Personality as a$, FsReadDirectoryParams as a0, FsReadFileParams as a1, FsRemoveParams as a2, FsUnwatchParams as a3, FsWatchParams as a4, FsWriteFileParams as a5, GetAccountParams as a6, HookMigration as a7, HooksListParams as a8, LoginAccountParams as a9, ReviewStartParams as aA, ReviewTarget as aB, SendAddCreditsNudgeEmailParams as aC, SessionMigration as aD, SkillsConfigWriteParams as aE, SkillsListExtraRootsForCwd as aF, SkillsListParams as aG, SortDirection as aH, SubagentMigration as aI, ThreadApproveGuardianDeniedActionParams as aJ, ThreadForkParams as aK, ThreadInjectItemsParams as aL, ThreadLoadedListParams as aM, ThreadMetadataGitInfoUpdateParams as aN, ThreadRollbackParams as aO, ThreadShellCommandParams as aP, ThreadSortKey as aQ, ThreadSourceKind as aR, ThreadStartSource as aS, ThreadUnsubscribeParams as aT, WindowsSandboxSetupStartParams as aU, ClientInfo as aV, FuzzyFileSearchParams as aW, GetAuthStatusParams as aX, GetConversationSummaryParams as aY, GitDiffToRemoteParams as aZ, InitializeCapabilities as a_, MarketplaceAddParams as aa, MarketplaceRemoveParams as ab, MarketplaceUpgradeParams as ac, McpServerMigration as ad, McpServerStatusDetail as ae, MergeStrategy as af, MigrationDetails as ag, ModelListParams as ah, ModelProviderCapabilitiesReadParams as ai, NetworkAccess as aj, PluginInstallParams as ak, PluginListMarketplaceKind as al, PluginListParams as am, PluginReadParams as an, PluginShareDeleteParams as ao, PluginShareDiscoverability as ap, PluginShareListParams as aq, PluginShareSaveParams as ar, PluginShareTarget as as, PluginShareUpdateTargetsParams as at, PluginSkillReadParams as au, PluginUninstallParams as av, PluginsMigration as aw, RemoteControlClientConnectionAudience as ax, RemoteControlClientEnrollmentAudience as ay, ReviewDelivery as az, McpServerOauthLoginParams as b, McpServerToolCallParams as c, ThreadCompactStartParams as d, ThreadListParams as e, ThreadMetadataUpdateParams as f, ThreadReadParams as g, ThreadResumeParams as h, ThreadResumeResponse as i, ThreadSetNameParams as j, ThreadStartParams as k, ThreadUnarchiveParams as l, TurnInterruptParams as m, TurnStartParams as n, TurnSteerParams as o, ApprovalsReviewer as p, SandboxMode as q, AddCreditsNudgeCreditType as r, AppsListParams as s, CancelLoginAccountParams as t, CommandExecParams as u, CommandExecResizeParams as v, CommandExecTerminalSize as w, CommandExecTerminateParams as x, CommandExecWriteParams as y, CommandMigration as z };
@@ -0,0 +1,23 @@
1
+ type RequestId = string | number;
2
+
3
+ /**
4
+ * EXPERIMENTAL. Defines a single selectable option for request_user_input.
5
+ */
6
+ type ToolRequestUserInputOption = {
7
+ label: string;
8
+ description: string;
9
+ };
10
+
11
+ /**
12
+ * EXPERIMENTAL. Represents one request_user_input question and its required options.
13
+ */
14
+ type ToolRequestUserInputQuestion = {
15
+ id: string;
16
+ header: string;
17
+ question: string;
18
+ isOther: boolean;
19
+ isSecret: boolean;
20
+ options: Array<ToolRequestUserInputOption> | null;
21
+ };
22
+
23
+ export type { RequestId as R, ToolRequestUserInputQuestion as T, ToolRequestUserInputOption as a };
@@ -14,4 +14,4 @@ type ToolRequestUserInputResponse = {
14
14
  };
15
15
  };
16
16
 
17
- export type { ToolRequestUserInputResponse as T };
17
+ export type { ToolRequestUserInputResponse as T, ToolRequestUserInputAnswer as a };
@@ -0,0 +1,209 @@
1
+ import { h as AbsolutePathBuf, J as JsonValue, f as ReasoningEffort, T as Thread, c as Turn } from './ServerRequest-B5cKVJjr.js';
2
+ import { A as AskForApproval, p as ApprovalsReviewer, S as SandboxPolicy } from './ThreadResumeResponse-DvmE1juU.js';
3
+
4
+ /**
5
+ * Initial collaboration mode to use when the TUI starts.
6
+ */
7
+ type ModeKind = "plan" | "default";
8
+
9
+ type InitializeResponse = {
10
+ userAgent: string;
11
+ /**
12
+ * Absolute path to the server's $CODEX_HOME directory.
13
+ */
14
+ codexHome: AbsolutePathBuf;
15
+ /**
16
+ * Platform family for the running app-server target, for example
17
+ * `"unix"` or `"windows"`.
18
+ */
19
+ platformFamily: string;
20
+ /**
21
+ * Operating system for the running app-server target, for example
22
+ * `"macos"`, `"linux"`, or `"windows"`.
23
+ */
24
+ platformOs: string;
25
+ };
26
+
27
+ /**
28
+ * A known resource that the server is capable of reading.
29
+ */
30
+ type Resource = {
31
+ annotations?: JsonValue;
32
+ description?: string;
33
+ mimeType?: string;
34
+ name: string;
35
+ size?: number;
36
+ title?: string;
37
+ uri: string;
38
+ icons?: Array<JsonValue>;
39
+ _meta?: JsonValue;
40
+ };
41
+
42
+ /**
43
+ * Contents returned when reading a resource from an MCP server.
44
+ */
45
+ type ResourceContent = {
46
+ /**
47
+ * The URI of this resource.
48
+ */
49
+ uri: string;
50
+ mimeType?: string;
51
+ text: string;
52
+ _meta?: JsonValue;
53
+ } | {
54
+ /**
55
+ * The URI of this resource.
56
+ */
57
+ uri: string;
58
+ mimeType?: string;
59
+ blob: string;
60
+ _meta?: JsonValue;
61
+ };
62
+
63
+ /**
64
+ * A template description for resources available on the server.
65
+ */
66
+ type ResourceTemplate = {
67
+ annotations?: JsonValue;
68
+ uriTemplate: string;
69
+ name: string;
70
+ title?: string;
71
+ description?: string;
72
+ mimeType?: string;
73
+ };
74
+
75
+ /**
76
+ * Definition for a tool the client can call.
77
+ */
78
+ type Tool = {
79
+ name: string;
80
+ title?: string;
81
+ description?: string;
82
+ inputSchema: JsonValue;
83
+ outputSchema?: JsonValue;
84
+ annotations?: JsonValue;
85
+ icons?: Array<JsonValue>;
86
+ _meta?: JsonValue;
87
+ };
88
+
89
+ /**
90
+ * EXPERIMENTAL - collaboration mode preset metadata for clients.
91
+ */
92
+ type CollaborationModeMask = {
93
+ name: string;
94
+ mode: ModeKind | null;
95
+ model: string | null;
96
+ reasoning_effort: ReasoningEffort | null | null;
97
+ };
98
+
99
+ /**
100
+ * EXPERIMENTAL - collaboration mode presets response.
101
+ */
102
+ type CollaborationModeListResponse = {
103
+ data: Array<CollaborationModeMask>;
104
+ };
105
+
106
+ type McpAuthStatus = "unsupported" | "notLoggedIn" | "bearerToken" | "oAuth";
107
+
108
+ type McpServerStatus = {
109
+ name: string;
110
+ tools: {
111
+ [key in string]?: Tool;
112
+ };
113
+ resources: Array<Resource>;
114
+ resourceTemplates: Array<ResourceTemplate>;
115
+ authStatus: McpAuthStatus;
116
+ };
117
+
118
+ type ListMcpServerStatusResponse = {
119
+ data: Array<McpServerStatus>;
120
+ /**
121
+ * Opaque cursor to pass to the next call to continue after the last item.
122
+ * If None, there are no more items to return.
123
+ */
124
+ nextCursor: string | null;
125
+ };
126
+
127
+ type McpResourceReadResponse = {
128
+ contents: Array<ResourceContent>;
129
+ };
130
+
131
+ type McpServerOauthLoginResponse = {
132
+ authorizationUrl: string;
133
+ };
134
+
135
+ type McpServerRefreshResponse = Record<string, never>;
136
+
137
+ type McpServerToolCallResponse = {
138
+ content: Array<JsonValue>;
139
+ structuredContent?: JsonValue;
140
+ isError?: boolean;
141
+ _meta?: JsonValue;
142
+ };
143
+
144
+ type ThreadArchiveResponse = Record<string, never>;
145
+
146
+ type ThreadCompactStartResponse = Record<string, never>;
147
+
148
+ type ThreadListResponse = {
149
+ data: Array<Thread>;
150
+ /**
151
+ * Opaque cursor to pass to the next call to continue after the last item.
152
+ * if None, there are no more items to return.
153
+ */
154
+ nextCursor: string | null;
155
+ /**
156
+ * Opaque cursor to pass as `cursor` when reversing `sortDirection`.
157
+ * This is only populated when the page contains at least one thread.
158
+ * Use it with the opposite `sortDirection`; for timestamp sorts it anchors
159
+ * at the start of the page timestamp so same-second updates are not skipped.
160
+ */
161
+ backwardsCursor: string | null;
162
+ };
163
+
164
+ type ThreadMetadataUpdateResponse = {
165
+ thread: Thread;
166
+ };
167
+
168
+ type ThreadReadResponse = {
169
+ thread: Thread;
170
+ };
171
+
172
+ type ThreadSetNameResponse = Record<string, never>;
173
+
174
+ type ThreadStartResponse = {
175
+ thread: Thread;
176
+ model: string;
177
+ modelProvider: string;
178
+ serviceTier: string | null;
179
+ cwd: AbsolutePathBuf; /**
180
+ * Instruction source files currently loaded for this thread.
181
+ */
182
+ instructionSources: Array<AbsolutePathBuf>;
183
+ approvalPolicy: AskForApproval; /**
184
+ * Reviewer currently used for approval requests on this thread.
185
+ */
186
+ approvalsReviewer: ApprovalsReviewer; /**
187
+ * Legacy sandbox policy retained for compatibility. Experimental clients
188
+ * should prefer `permissionProfile` when they need exact runtime
189
+ * permissions.
190
+ */
191
+ sandbox: SandboxPolicy;
192
+ reasoningEffort: ReasoningEffort | null;
193
+ };
194
+
195
+ type ThreadUnarchiveResponse = {
196
+ thread: Thread;
197
+ };
198
+
199
+ type TurnInterruptResponse = Record<string, never>;
200
+
201
+ type TurnStartResponse = {
202
+ turn: Turn;
203
+ };
204
+
205
+ type TurnSteerResponse = {
206
+ turnId: string;
207
+ };
208
+
209
+ export type { CollaborationModeMask as C, InitializeResponse as I, ListMcpServerStatusResponse as L, McpServerStatus as M, Resource as R, ThreadArchiveResponse as T, ModeKind as a, CollaborationModeListResponse as b, McpResourceReadResponse as c, McpServerOauthLoginResponse as d, McpServerRefreshResponse as e, McpServerToolCallResponse as f, ThreadCompactStartResponse as g, ThreadListResponse as h, ThreadMetadataUpdateResponse as i, ThreadReadResponse as j, ThreadSetNameResponse as k, ThreadStartResponse as l, ThreadUnarchiveResponse as m, TurnInterruptResponse as n, TurnStartResponse as o, TurnSteerResponse as p, McpAuthStatus as q, ResourceContent as r, ResourceTemplate as s, Tool as t };
@@ -0,0 +1,18 @@
1
+ type WebSearchContextSize = "low" | "medium" | "high";
2
+
3
+ type WebSearchLocation = {
4
+ country: string | null;
5
+ region: string | null;
6
+ city: string | null;
7
+ timezone: string | null;
8
+ };
9
+
10
+ type WebSearchMode = "disabled" | "cached" | "live";
11
+
12
+ type WebSearchToolConfig = {
13
+ context_size: WebSearchContextSize | null;
14
+ allowed_domains: Array<string> | null;
15
+ location: WebSearchLocation | null;
16
+ };
17
+
18
+ export type { WebSearchMode as W, WebSearchToolConfig as a, WebSearchContextSize as b, WebSearchLocation as c };