@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.
- package/CHANGELOG.md +8 -0
- package/dist/ClientNotification-B6-FhXQf.d.ts +5 -0
- package/dist/{DynamicToolCallResponse-D2OVpa4p.d.ts → DynamicToolCallResponse-82DFjES2.d.ts} +1 -1
- package/dist/DynamicToolSpec-CfnhqAYK.d.ts +29 -0
- package/dist/PermissionsRequestApprovalResponse-DxzPPDRb.d.ts +55 -0
- package/dist/ProviderStatusBanner-BlP6lzwE.d.ts +441 -0
- package/dist/ServerRequest-B5cKVJjr.d.ts +2181 -0
- package/dist/{session-BO6EZNK7.d.ts → ThreadResumeResponse-DvmE1juU.d.ts} +3 -290
- package/dist/ToolRequestUserInputQuestion-CeZa5X1J.d.ts +23 -0
- package/dist/{ToolRequestUserInputResponse-Bxjlpgho.d.ts → ToolRequestUserInputResponse-zcPLwbiK.d.ts} +1 -1
- package/dist/TurnSteerResponse-0kBCfplh.d.ts +209 -0
- package/dist/WebSearchToolConfig-D3ep0625.d.ts +18 -0
- package/dist/chat-runtime-B6azJyKo.d.ts +381 -0
- package/dist/chunk-2DZRMCI2.js +1258 -0
- package/dist/chunk-2DZRMCI2.js.map +1 -0
- package/dist/chunk-4DPLJPB5.js +396 -0
- package/dist/chunk-4DPLJPB5.js.map +1 -0
- package/dist/chunk-5JMJ6OI5.js +3 -0
- package/dist/chunk-5JMJ6OI5.js.map +1 -0
- package/dist/chunk-6ZMJ34KE.js +1153 -0
- package/dist/chunk-6ZMJ34KE.js.map +1 -0
- package/dist/chunk-CGBS37IU.js +128 -0
- package/dist/chunk-CGBS37IU.js.map +1 -0
- package/dist/chunk-DCMKA2A6.js +18 -0
- package/dist/chunk-DCMKA2A6.js.map +1 -0
- package/dist/chunk-DYLHN3HG.js +937 -0
- package/dist/chunk-DYLHN3HG.js.map +1 -0
- package/dist/chunk-ILXA6HLX.js +1973 -0
- package/dist/chunk-ILXA6HLX.js.map +1 -0
- package/dist/{chunk-TZBLUZ2X.js → chunk-LWQNX4LI.js} +7811 -12696
- package/dist/chunk-LWQNX4LI.js.map +1 -0
- package/dist/{chunk-FFASNDXU.js → chunk-NCI4MAWZ.js} +317 -1967
- package/dist/chunk-NCI4MAWZ.js.map +1 -0
- package/dist/chunk-O44XP7LH.js +214 -0
- package/dist/chunk-O44XP7LH.js.map +1 -0
- package/dist/chunk-PST3ZWX2.js +555 -0
- package/dist/chunk-PST3ZWX2.js.map +1 -0
- package/dist/chunk-SYPHCDRD.js +1133 -0
- package/dist/chunk-SYPHCDRD.js.map +1 -0
- package/dist/chunk-V4BMZWBM.js +2401 -0
- package/dist/chunk-V4BMZWBM.js.map +1 -0
- package/dist/chunk-YHVCFD2D.js +117 -0
- package/dist/chunk-YHVCFD2D.js.map +1 -0
- package/dist/chunk-Z63UPBS3.js +152 -0
- package/dist/chunk-Z63UPBS3.js.map +1 -0
- package/dist/client/index.d.ts +16 -111
- package/dist/client/index.js +13 -1
- package/dist/codex-rs/app-server/index.d.ts +161 -0
- package/dist/codex-rs/app-server/index.js +13 -0
- package/dist/codex-rs/app-server/index.js.map +1 -0
- package/dist/codex-rs/app-server-protocol/index.d.ts +1722 -0
- package/dist/codex-rs/app-server-protocol/index.js +6 -0
- package/dist/codex-rs/app-server-protocol/index.js.map +1 -0
- package/dist/codex-rs/app-server-protocol/protocol.d.ts +19 -0
- package/dist/codex-rs/app-server-protocol/protocol.js +4 -0
- package/dist/codex-rs/app-server-protocol/protocol.js.map +1 -0
- package/dist/codex-rs/codex-api/index.d.ts +104 -0
- package/dist/codex-rs/codex-api/index.js +11 -0
- package/dist/codex-rs/codex-api/index.js.map +1 -0
- package/dist/codex-rs/config/index.d.ts +88 -0
- package/dist/codex-rs/config/index.js +4 -0
- package/dist/codex-rs/config/index.js.map +1 -0
- package/dist/codex-rs/core/config/index.d.ts +61 -0
- package/dist/codex-rs/core/config/index.js +5 -0
- package/dist/codex-rs/core/config/index.js.map +1 -0
- package/dist/codex-rs/core/index.d.ts +1393 -0
- package/dist/codex-rs/core/index.js +11 -0
- package/dist/codex-rs/core/index.js.map +1 -0
- package/dist/codex-rs/model-provider/index.d.ts +2 -0
- package/dist/codex-rs/model-provider/index.js +4 -0
- package/dist/codex-rs/model-provider/index.js.map +1 -0
- package/dist/codex-rs/models-manager/index.d.ts +2 -0
- package/dist/codex-rs/models-manager/index.js +4 -0
- package/dist/codex-rs/models-manager/index.js.map +1 -0
- package/dist/codex-rs/parity.d.ts +26 -0
- package/dist/codex-rs/parity.js +3 -0
- package/dist/codex-rs/parity.js.map +1 -0
- package/dist/codex-rs/thread-store/index.d.ts +5 -0
- package/dist/codex-rs/thread-store/index.js +4 -0
- package/dist/codex-rs/thread-store/index.js.map +1 -0
- package/dist/codex-rs/unsupported.d.ts +15 -0
- package/dist/codex-rs/unsupported.js +22 -0
- package/dist/codex-rs/unsupported.js.map +1 -0
- package/dist/codex-rs/utils/output-truncation.d.ts +21 -0
- package/dist/codex-rs/utils/output-truncation.js +4 -0
- package/dist/codex-rs/utils/output-truncation.js.map +1 -0
- package/dist/codex-rs/utils/string.d.ts +7 -0
- package/dist/codex-rs/utils/string.js +3 -0
- package/dist/codex-rs/utils/string.js.map +1 -0
- package/dist/common-CTyph5x8.d.ts +40 -0
- package/dist/event-mapping-CbISdQ1D.d.ts +43 -0
- package/dist/history-CfM-4V7b.d.ts +1654 -0
- package/dist/index-77U_Oc-a.d.ts +63 -0
- package/dist/index-CoDZosq0.d.ts +261 -0
- package/dist/index.d.ts +18 -8
- package/dist/index.js +16 -2
- package/dist/lib-nXlaKiS-.d.ts +48 -0
- package/dist/live-thread-BMvlflzM.d.ts +30 -0
- package/dist/merge-B_AWVmnI.d.ts +24 -0
- package/dist/mod-DYVLSWO4.d.ts +91 -0
- package/dist/plan-mode-Cv6KWb_S.d.ts +14 -0
- package/dist/proposed-plan-DpN1ma0Y.d.ts +53 -0
- package/dist/protocol-mpBcYHrm.d.ts +1655 -0
- package/dist/react/index.d.ts +20 -53
- package/dist/react/index.js +16 -2
- package/dist/{remote-DMPfepa9.d.ts → remote-ClZbq9KN.d.ts} +3 -1
- package/dist/rendered-thread-AOxw3V5b.d.ts +29 -0
- package/dist/responses_websocket-BhxSgCzK.d.ts +183 -0
- package/dist/runtime-Cm6ml53h.d.ts +528 -0
- package/dist/server/index.d.ts +29 -1999
- package/dist/server/index.js +13 -1
- package/dist/session-BRYzi8OT.d.ts +46 -0
- package/dist/shadcn/index.d.ts +1 -1
- package/dist/{sidebar-DT2XoitN.d.ts → sidebar-DMMij22z.d.ts} +1 -1
- package/dist/spec_plan_types-CmsJ-Tfn.d.ts +260 -0
- package/dist/{store-H2cQxdpe.d.ts → store-AGRxhgQ3.d.ts} +2 -1
- package/dist/t3code/apps/web/components/chat.d.ts +508 -0
- package/dist/t3code/apps/web/components/chat.js +12 -0
- package/dist/t3code/apps/web/components/chat.js.map +1 -0
- package/dist/t3code/apps/web/index.d.ts +12 -0
- package/dist/t3code/apps/web/index.js +13 -0
- package/dist/t3code/apps/web/index.js.map +1 -0
- package/dist/testing/index.d.ts +9 -91
- package/dist/testing/index.js +13 -1
- package/dist/thread-history-builder-zW0zeqcS.d.ts +58 -0
- package/dist/thread_event_store-C0zYzukG.d.ts +77 -0
- package/dist/types-BTeabLYr.d.ts +126 -0
- package/package.json +152 -88
- package/dist/chat-runtime-CMli5dzJ.d.ts +0 -748
- package/dist/chunk-FFASNDXU.js.map +0 -1
- package/dist/chunk-TZBLUZ2X.js.map +0 -1
- package/dist/thread_event_store-BIS0qzhi.d.ts +0 -3843
package/dist/server/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export { AppServerSession,
|
|
1
|
+
export { AppServerSession, CodexAppServerClientTransportError, PendingAppServerRequests, ThreadEventStore, createCodexAppServerClient, parseCodexAppServerEvent, requestMethodName, requestTyped, serverNotificationRequiresDelivery, serverNotificationThreadTarget, serverRequestThreadId, threadEventSnapshotHasStarted } from '../chunk-6ZMJ34KE.js';
|
|
2
|
+
export { InMemoryThreadStore, LocalThreadStore } from '../chunk-4DPLJPB5.js';
|
|
3
|
+
export { CodexAppServerConnectionSessionState, CodexAppServerMessageProcessor, CodexAppServerRequestError, ConnectionRpcGate, ConnectionRpcGateClosedError, McpRequestProcessor, OutgoingMessageSender, RequestSerializationQueues, ThreadRequestProcessor, ThreadScopedOutgoingMessageSender, TurnRequestProcessor, codexAppServerDeferredResponse, createCodexAppServerRuntime, jsonRpcInternalError, jsonRpcInvalidRequestError, jsonRpcParseError, outgoingMessageToAppServerEvent, parseClientTransportPayload, parseJsonRpcMessage, parseJsonRpcTransportPayload, parseServerTransportPayload, queuedOutgoingMessage, requestSerializationQueueKeyFromScope, serializeJsonRpcError, serializeJsonRpcResponse, serializeOutgoingMessage } from '../chunk-V4BMZWBM.js';
|
|
4
|
+
export { CodexMcpConnectionManagerAdapter, EmptyMcpConnectionManager, ModelClientSession, ResponsesClient, ResponsesWebsocketClient, ResponsesWebsocketConnection, StaticMcpConnectionManager, asThreadId, createModelClient, deniedRequestPermissionsResponse } from '../chunk-LWQNX4LI.js';
|
|
5
|
+
export { AuthMode, CODEX_CHATGPT_OAUTH_CALLBACK_PATH, CODEX_CHATGPT_OAUTH_CLIENT_ID, CODEX_CHATGPT_OAUTH_FALLBACK_PORT, CODEX_CHATGPT_OAUTH_ISSUER, CODEX_CHATGPT_OAUTH_ORIGINATOR, CODEX_CHATGPT_OAUTH_PRIMARY_PORT, CODEX_CHATGPT_OAUTH_SCOPE } from '../chunk-PST3ZWX2.js';
|
|
6
|
+
import '../chunk-Z63UPBS3.js';
|
|
7
|
+
import '../chunk-YHVCFD2D.js';
|
|
8
|
+
import '../chunk-DCMKA2A6.js';
|
|
9
|
+
export { LiveThread, SortDirection, ThreadEventPersistenceMode, ThreadMemoryMode, ThreadSortKey } from '../chunk-CGBS37IU.js';
|
|
10
|
+
export { clientRequestExperimentalReason, clientRequestId, clientRequestMethod, clientRequestSerializationScope } from '../chunk-2DZRMCI2.js';
|
|
11
|
+
export { ThreadHistoryBuilder, applyEventMsgToRenderedThread, createRenderedThreadState, renderThreadFromHistory, setRenderedThreadConnectionStatus } from '../chunk-DYLHN3HG.js';
|
|
12
|
+
export { CODEX_PLAN_MODE_INSTRUCTIONS, ModeKind, TUI_VISIBLE_COLLABORATION_MODES, allowsRequestUserInput, applyCollaborationModeMask, builtinCollaborationModePresets, builtinCollaborationModePresets as codexBuiltinCollaborationModePresets, collaborationModeForModel, collaborationModePresetForMode, collaborationModeWithUpdates, defaultModeInstructions, normalizeCollaborationMode } from '../chunk-SYPHCDRD.js';
|
|
13
|
+
export { BaseInstructions } from '../chunk-O44XP7LH.js';
|
|
2
14
|
//# sourceMappingURL=index.js.map
|
|
3
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { C as ClientRequest, I as InitializeParams, k as ThreadStartParams, h as ThreadResumeParams, i as ThreadResumeResponse, e as ThreadListParams, a as CollaborationModeListParams, L as ListMcpServerStatusParams, M as McpResourceReadParams, c as McpServerToolCallParams, b as McpServerOauthLoginParams, g as ThreadReadParams, j as ThreadSetNameParams, T as ThreadArchiveParams, l as ThreadUnarchiveParams, f as ThreadMetadataUpdateParams, n as TurnStartParams, o as TurnSteerParams, m as TurnInterruptParams, d as ThreadCompactStartParams } from './ThreadResumeResponse-DvmE1juU.js';
|
|
2
|
+
import { I as InitializeResponse, l as ThreadStartResponse, h as ThreadListResponse, b as CollaborationModeListResponse, e as McpServerRefreshResponse, L as ListMcpServerStatusResponse, c as McpResourceReadResponse, f as McpServerToolCallResponse, d as McpServerOauthLoginResponse, j as ThreadReadResponse, k as ThreadSetNameResponse, T as ThreadArchiveResponse, m as ThreadUnarchiveResponse, i as ThreadMetadataUpdateResponse, o as TurnStartResponse, p as TurnSteerResponse, n as TurnInterruptResponse, g as ThreadCompactStartResponse } from './TurnSteerResponse-0kBCfplh.js';
|
|
3
|
+
import { R as RequestId } from './ToolRequestUserInputQuestion-CeZa5X1J.js';
|
|
4
|
+
import { A as AppServerEvent, J as JSONRPCErrorError, R as Result } from './lib-nXlaKiS-.js';
|
|
5
|
+
|
|
6
|
+
type CodexAppServer = {
|
|
7
|
+
close?(): void;
|
|
8
|
+
events?(): AsyncIterable<AppServerEvent>;
|
|
9
|
+
nextEvent?(): Promise<AppServerEvent | null>;
|
|
10
|
+
rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
|
|
11
|
+
request(request: ClientRequest): Promise<unknown>;
|
|
12
|
+
requestTyped<T>(request: ClientRequest): Promise<T>;
|
|
13
|
+
resolveServerRequest(requestId: RequestId, result: Result): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
declare class AppServerSession {
|
|
16
|
+
private readonly client;
|
|
17
|
+
private nextRequestIdValue;
|
|
18
|
+
constructor(client: CodexAppServer);
|
|
19
|
+
nextRequestId(): RequestId;
|
|
20
|
+
nextEvent(): Promise<AppServerEvent | null>;
|
|
21
|
+
events(): AsyncIterable<AppServerEvent> | null;
|
|
22
|
+
requestTyped<T>(request: ClientRequest): Promise<T>;
|
|
23
|
+
initialize(params?: InitializeParams): Promise<InitializeResponse>;
|
|
24
|
+
threadStart(params: ThreadStartParams): Promise<ThreadStartResponse>;
|
|
25
|
+
threadResume(params: ThreadResumeParams): Promise<ThreadResumeResponse>;
|
|
26
|
+
threadList(params?: ThreadListParams): Promise<ThreadListResponse>;
|
|
27
|
+
collaborationModeList(params?: CollaborationModeListParams): Promise<CollaborationModeListResponse>;
|
|
28
|
+
configMcpServerReload(): Promise<McpServerRefreshResponse>;
|
|
29
|
+
mcpServerStatusList(params?: ListMcpServerStatusParams): Promise<ListMcpServerStatusResponse>;
|
|
30
|
+
mcpResourceRead(params: McpResourceReadParams): Promise<McpResourceReadResponse>;
|
|
31
|
+
mcpServerToolCall(params: McpServerToolCallParams): Promise<McpServerToolCallResponse>;
|
|
32
|
+
mcpServerOauthLogin(params: McpServerOauthLoginParams): Promise<McpServerOauthLoginResponse>;
|
|
33
|
+
threadRead(params: ThreadReadParams): Promise<ThreadReadResponse>;
|
|
34
|
+
threadNameSet(params: ThreadSetNameParams): Promise<ThreadSetNameResponse>;
|
|
35
|
+
threadArchive(params: ThreadArchiveParams): Promise<ThreadArchiveResponse>;
|
|
36
|
+
threadUnarchive(params: ThreadUnarchiveParams): Promise<ThreadUnarchiveResponse>;
|
|
37
|
+
threadMetadataUpdate(params: ThreadMetadataUpdateParams): Promise<ThreadMetadataUpdateResponse>;
|
|
38
|
+
turnStart(params: TurnStartParams): Promise<TurnStartResponse>;
|
|
39
|
+
turnSteer(params: TurnSteerParams): Promise<TurnSteerResponse>;
|
|
40
|
+
turnInterrupt(params: TurnInterruptParams): Promise<TurnInterruptResponse>;
|
|
41
|
+
threadCompactStart(params: ThreadCompactStartParams): Promise<ThreadCompactStartResponse>;
|
|
42
|
+
resolveServerRequest(requestId: RequestId, result: Result): Promise<void>;
|
|
43
|
+
rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { AppServerSession as A, type CodexAppServer as C };
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, I as Input,
|
|
1
|
+
export { B as Button, I as Input, b as Separator, S as Sidebar, c as SidebarContent, d as SidebarFooter, e as SidebarGroup, f as SidebarGroupAction, g as SidebarGroupContent, h as SidebarGroupLabel, i as SidebarHeader, j as SidebarInput, k as SidebarInset, l as SidebarMenu, m as SidebarMenuAction, n as SidebarMenuBadge, o as SidebarMenuButton, p as SidebarMenuItem, q as SidebarMenuSkeleton, r as SidebarMenuSub, s as SidebarMenuSubButton, t as SidebarMenuSubItem, a as SidebarProvider, u as SidebarRail, v as SidebarSeparator, w as SidebarTrigger, T as Tooltip, x as TooltipContent, y as TooltipProvider, z as TooltipTrigger, A as buttonVariants, C as useSidebar } from '../sidebar-DMMij22z.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { Collapsible as Collapsible$1, Dialog as Dialog$1, ScrollArea as ScrollArea$1 } from 'radix-ui';
|
|
4
4
|
import * as React$1 from 'react';
|
|
@@ -84,4 +84,4 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
84
84
|
isActive?: boolean;
|
|
85
85
|
}): react_jsx_runtime.JSX.Element;
|
|
86
86
|
|
|
87
|
-
export { buttonVariants as A, Button as B, useSidebar as C, Input as I,
|
|
87
|
+
export { buttonVariants as A, Button as B, useSidebar as C, Input as I, Sidebar as S, Tooltip as T, SidebarProvider as a, Separator as b, SidebarContent as c, SidebarFooter as d, SidebarGroup as e, SidebarGroupAction as f, SidebarGroupContent as g, SidebarGroupLabel as h, SidebarHeader as i, SidebarInput as j, SidebarInset as k, SidebarMenu as l, SidebarMenuAction as m, SidebarMenuBadge as n, SidebarMenuButton as o, SidebarMenuItem as p, SidebarMenuSkeleton as q, SidebarMenuSub as r, SidebarMenuSubButton as s, SidebarMenuSubItem as t, SidebarRail as u, SidebarSeparator as v, SidebarTrigger as w, TooltipContent as x, TooltipProvider as y, TooltipTrigger as z };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { N as ServiceTier, Q as ReasoningEffortConfig, V as ReasoningSummaryConfig, W as Personality, X as AskForApproval, Y as ApprovalsReviewer, S as SandboxPolicy, P as PermissionProfile, L as ActivePermissionProfile, Z as WindowsSandboxLevel, B as BaseInstructions, C as CollaborationMode, J as SessionSource, _ as TurnEnvironmentSelection, D as DynamicToolSpec, y as TruncationPolicy, $ as LoadableToolSpec, h as McpToolInfo, i as ModeKind, a0 as ConfiguredToolSpec } from './protocol-mpBcYHrm.js';
|
|
2
|
+
import { W as WebSearchMode$1, a as WebSearchToolConfig } from './WebSearchToolConfig-D3ep0625.js';
|
|
3
|
+
|
|
4
|
+
declare const CONFIG_TOML_FILE = "config.toml";
|
|
5
|
+
type ConfigLayerSource = {
|
|
6
|
+
type: "Mdm";
|
|
7
|
+
domain: string;
|
|
8
|
+
key: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: "System";
|
|
11
|
+
file: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "User";
|
|
14
|
+
file: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: "Project";
|
|
17
|
+
dot_codex_folder: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "SessionFlags";
|
|
20
|
+
} | {
|
|
21
|
+
type: "LegacyManagedConfigTomlFromFile";
|
|
22
|
+
file: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: "LegacyManagedConfigTomlFromMdm";
|
|
25
|
+
};
|
|
26
|
+
type ConfigLayerMetadata = {
|
|
27
|
+
name: ConfigLayerSource;
|
|
28
|
+
version: string;
|
|
29
|
+
};
|
|
30
|
+
type ConfigLayerEntry = {
|
|
31
|
+
name: ConfigLayerSource;
|
|
32
|
+
config: ConfigToml;
|
|
33
|
+
raw_toml?: string | null;
|
|
34
|
+
version: string;
|
|
35
|
+
disabled_reason?: string | null;
|
|
36
|
+
};
|
|
37
|
+
type ConfigLayerStack = {
|
|
38
|
+
layers: ConfigLayerEntry[];
|
|
39
|
+
startup_warnings: string[];
|
|
40
|
+
};
|
|
41
|
+
declare const ConfigLayerStackOrdering: {
|
|
42
|
+
readonly LowestPrecedenceFirst: "LowestPrecedenceFirst";
|
|
43
|
+
readonly HighestPrecedenceFirst: "HighestPrecedenceFirst";
|
|
44
|
+
};
|
|
45
|
+
type ConfigLayerStackOrdering = (typeof ConfigLayerStackOrdering)[keyof typeof ConfigLayerStackOrdering];
|
|
46
|
+
type ConfigOverrides = ConfigToml;
|
|
47
|
+
type ConfigToml = {
|
|
48
|
+
model?: string;
|
|
49
|
+
review_model?: string;
|
|
50
|
+
model_provider?: string;
|
|
51
|
+
service_tier?: ServiceTier | null;
|
|
52
|
+
model_reasoning_effort?: ReasoningEffortConfig | null;
|
|
53
|
+
plan_mode_reasoning_effort?: ReasoningEffortConfig | null;
|
|
54
|
+
model_reasoning_summary?: ReasoningSummaryConfig;
|
|
55
|
+
personality?: Personality | null;
|
|
56
|
+
approval_policy?: AskForApproval;
|
|
57
|
+
approvals_reviewer?: ApprovalsReviewer | null;
|
|
58
|
+
sandbox_policy?: SandboxPolicy | null;
|
|
59
|
+
sandbox_mode?: SandboxPolicy["mode"] | null;
|
|
60
|
+
default_permissions?: string | null;
|
|
61
|
+
permission_profile?: PermissionProfile | null;
|
|
62
|
+
active_permission_profile?: ActivePermissionProfile | null;
|
|
63
|
+
windows_sandbox_level?: WindowsSandboxLevel | null;
|
|
64
|
+
cwd?: string;
|
|
65
|
+
instructions?: string | null;
|
|
66
|
+
model_instructions_file?: string | null;
|
|
67
|
+
model_instructions_file_contents?: string | null;
|
|
68
|
+
base_instructions?: BaseInstructions | string | null;
|
|
69
|
+
developer_instructions?: string | null;
|
|
70
|
+
user_instructions?: string | null;
|
|
71
|
+
collaboration_mode?: CollaborationMode | null;
|
|
72
|
+
session_source?: SessionSource;
|
|
73
|
+
environments?: TurnEnvironmentSelection[];
|
|
74
|
+
dynamic_tools?: DynamicToolSpec[];
|
|
75
|
+
final_output_json_schema?: unknown;
|
|
76
|
+
truncation_policy?: TruncationPolicy | null;
|
|
77
|
+
web_search?: WebSearchMode$1 | null;
|
|
78
|
+
tools?: ToolsToml | null;
|
|
79
|
+
features?: FeaturesToml | null;
|
|
80
|
+
profiles?: Record<string, ConfigProfile>;
|
|
81
|
+
profile?: string | null;
|
|
82
|
+
compact_prompt?: string | null;
|
|
83
|
+
include_permissions_instructions?: boolean;
|
|
84
|
+
include_environment_context?: boolean;
|
|
85
|
+
include_apps_instructions?: boolean;
|
|
86
|
+
include_skill_instructions?: boolean;
|
|
87
|
+
};
|
|
88
|
+
type ConfigProfile = Omit<ConfigToml, "profiles" | "profile">;
|
|
89
|
+
type ToolsToml = Omit<DefaultToolsConfigInput, "web_search"> & {
|
|
90
|
+
web_search?: Partial<WebSearchToolConfig> | boolean | null;
|
|
91
|
+
};
|
|
92
|
+
type FeaturesToml = Record<string, unknown>;
|
|
93
|
+
type ResolvedConfig = Required<Pick<ConfigToml, "model" | "model_provider" | "approval_policy" | "cwd" | "session_source">> & Omit<ConfigToml, "model" | "model_provider" | "approval_policy" | "cwd" | "session_source"> & {
|
|
94
|
+
base_instructions: BaseInstructions;
|
|
95
|
+
base_instructions_source: "config" | "model_instructions_file" | "default";
|
|
96
|
+
service_tier: ServiceTier | null;
|
|
97
|
+
reasoning_effort: ReasoningEffortConfig | null;
|
|
98
|
+
reasoning_summary: ReasoningSummaryConfig;
|
|
99
|
+
developer_instructions: string | null;
|
|
100
|
+
user_instructions: string | null;
|
|
101
|
+
personality: Personality | null;
|
|
102
|
+
sandbox_policy: SandboxPolicy;
|
|
103
|
+
permission_profile: PermissionProfile;
|
|
104
|
+
active_permission_profile: ActivePermissionProfile | null;
|
|
105
|
+
windows_sandbox_level: WindowsSandboxLevel | null;
|
|
106
|
+
collaboration_mode: CollaborationMode;
|
|
107
|
+
environments: TurnEnvironmentSelection[];
|
|
108
|
+
dynamic_tools: DynamicToolSpec[];
|
|
109
|
+
final_output_json_schema?: unknown;
|
|
110
|
+
truncation_policy: TruncationPolicy | null;
|
|
111
|
+
web_search_mode: WebSearchMode$1;
|
|
112
|
+
tools: ToolsConfig;
|
|
113
|
+
startup_warnings: string[];
|
|
114
|
+
};
|
|
115
|
+
declare function createConfigLayerStack(layers?: ConfigLayerEntry[], startup_warnings?: string[]): ConfigLayerStack;
|
|
116
|
+
type LoaderOverrides = {
|
|
117
|
+
ignore_user_config?: boolean;
|
|
118
|
+
ignore_managed_requirements?: boolean;
|
|
119
|
+
ignore_user_and_project_exec_policy_rules?: boolean;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
type ToolNameInput = ToolName | string | {
|
|
123
|
+
namespace?: string | null;
|
|
124
|
+
name: string;
|
|
125
|
+
};
|
|
126
|
+
declare class ToolName {
|
|
127
|
+
readonly namespace: string | null;
|
|
128
|
+
readonly name: string;
|
|
129
|
+
private constructor();
|
|
130
|
+
static plain(name: string): ToolName;
|
|
131
|
+
static namespaced(namespace: string, name: string): ToolName;
|
|
132
|
+
static new(namespace: string | null | undefined, name: string): ToolName;
|
|
133
|
+
static from(input: ToolNameInput): ToolName;
|
|
134
|
+
display(): string;
|
|
135
|
+
key(): string;
|
|
136
|
+
equals(other: ToolNameInput): boolean;
|
|
137
|
+
toJSON(): string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare const TOOL_SEARCH_TOOL_NAME = "tool_search";
|
|
141
|
+
declare const TOOL_SEARCH_DEFAULT_LIMIT = 8;
|
|
142
|
+
type ToolSearchSourceInfo = {
|
|
143
|
+
name: string;
|
|
144
|
+
description?: string | null;
|
|
145
|
+
};
|
|
146
|
+
type DiscoverableTool = {
|
|
147
|
+
name: string;
|
|
148
|
+
title?: string | null;
|
|
149
|
+
description: string;
|
|
150
|
+
source: string;
|
|
151
|
+
input_schema?: unknown;
|
|
152
|
+
server_name?: string | null;
|
|
153
|
+
tool_name?: string | null;
|
|
154
|
+
mcp_app_resource_uri?: string | null;
|
|
155
|
+
};
|
|
156
|
+
type ToolSearchEntry = {
|
|
157
|
+
limit_bucket?: string | null;
|
|
158
|
+
output: LoadableToolSpec;
|
|
159
|
+
search_text: string;
|
|
160
|
+
};
|
|
161
|
+
declare function build_tool_search_entries(input: {
|
|
162
|
+
dynamic_tools: readonly DynamicToolSpec[];
|
|
163
|
+
mcp_tools?: readonly McpToolInfo[];
|
|
164
|
+
}): ToolSearchEntry[];
|
|
165
|
+
declare function build_tool_search_entries_for_config(config: ToolsConfig, mcp_tools: readonly McpToolInfo[] | null | undefined, dynamic_tools: readonly DynamicToolSpec[]): ToolSearchEntry[];
|
|
166
|
+
declare function dynamic_tool_to_tool_search_entry(tool: DynamicToolSpec): ToolSearchEntry;
|
|
167
|
+
declare function mcp_tool_to_tool_search_entry(tool: McpToolInfo): ToolSearchEntry;
|
|
168
|
+
declare function tool_search_source_info_for_dynamic_tools(tools: readonly DynamicToolSpec[]): ToolSearchSourceInfo[];
|
|
169
|
+
declare function tool_search_source_info_for_mcp_tools(tools: readonly McpToolInfo[]): ToolSearchSourceInfo[];
|
|
170
|
+
declare function tool_search_outputs(entries: readonly ToolSearchEntry[]): LoadableToolSpec[];
|
|
171
|
+
|
|
172
|
+
declare const ToolHandlerKind: {
|
|
173
|
+
readonly DynamicTool: "DynamicTool";
|
|
174
|
+
readonly RequestPermissions: "RequestPermissions";
|
|
175
|
+
readonly RequestUserInput: "RequestUserInput";
|
|
176
|
+
readonly ToolSearch: "ToolSearch";
|
|
177
|
+
readonly UnavailableTool: "UnavailableTool";
|
|
178
|
+
readonly Mcp: "Mcp";
|
|
179
|
+
readonly ListMcpResources: "ListMcpResources";
|
|
180
|
+
readonly ListMcpResourceTemplates: "ListMcpResourceTemplates";
|
|
181
|
+
readonly ReadMcpResource: "ReadMcpResource";
|
|
182
|
+
readonly ExecCommand: "ExecCommand";
|
|
183
|
+
readonly WriteStdin: "WriteStdin";
|
|
184
|
+
readonly ApplyPatch: "ApplyPatch";
|
|
185
|
+
readonly Plan: "Plan";
|
|
186
|
+
readonly GetGoal: "GetGoal";
|
|
187
|
+
readonly CreateGoal: "CreateGoal";
|
|
188
|
+
readonly UpdateGoal: "UpdateGoal";
|
|
189
|
+
readonly SpawnAgent: "SpawnAgent";
|
|
190
|
+
readonly SendInput: "SendInput";
|
|
191
|
+
readonly WaitAgent: "WaitAgent";
|
|
192
|
+
readonly CloseAgent: "CloseAgent";
|
|
193
|
+
readonly ResumeAgent: "ResumeAgent";
|
|
194
|
+
readonly ListAgents: "ListAgents";
|
|
195
|
+
readonly SendMessage: "SendMessage";
|
|
196
|
+
readonly FollowupTask: "FollowupTask";
|
|
197
|
+
};
|
|
198
|
+
type ToolHandlerKind = (typeof ToolHandlerKind)[keyof typeof ToolHandlerKind];
|
|
199
|
+
type ToolHandlerSpec = {
|
|
200
|
+
name: ToolName;
|
|
201
|
+
kind: ToolHandlerKind;
|
|
202
|
+
};
|
|
203
|
+
type ToolRegistryPlan = {
|
|
204
|
+
specs: ConfiguredToolSpec[];
|
|
205
|
+
handlers: ToolHandlerSpec[];
|
|
206
|
+
};
|
|
207
|
+
type ToolRegistryPlanParams = {
|
|
208
|
+
dynamic_tools: readonly DynamicToolSpec[];
|
|
209
|
+
mcp_tools?: readonly McpToolInfo[];
|
|
210
|
+
deferred_mcp_tools?: readonly McpToolInfo[];
|
|
211
|
+
discoverable_tools?: readonly DiscoverableTool[];
|
|
212
|
+
tool_namespaces?: readonly string[];
|
|
213
|
+
unavailable_called_tools?: readonly ToolName[];
|
|
214
|
+
parallel_mcp_tool_names?: readonly ToolName[];
|
|
215
|
+
};
|
|
216
|
+
type WebSearchMode = "disabled" | "cached" | "live";
|
|
217
|
+
type WebSearchToolType = "text" | "text_and_image";
|
|
218
|
+
type WebSearchConfig = {
|
|
219
|
+
filters?: unknown;
|
|
220
|
+
user_location?: unknown;
|
|
221
|
+
search_context_size?: unknown;
|
|
222
|
+
};
|
|
223
|
+
type ToolsConfig = {
|
|
224
|
+
namespace_tools: boolean;
|
|
225
|
+
request_permissions_tool_enabled: boolean;
|
|
226
|
+
request_user_input_available_modes: readonly ModeKind[];
|
|
227
|
+
search_tool: boolean;
|
|
228
|
+
web_search_mode: WebSearchMode | null;
|
|
229
|
+
web_search_tool_type: WebSearchToolType;
|
|
230
|
+
web_search_config?: WebSearchConfig | null;
|
|
231
|
+
image_gen_tool: boolean;
|
|
232
|
+
exec_command_tool_enabled: boolean;
|
|
233
|
+
write_stdin_tool_enabled: boolean;
|
|
234
|
+
apply_patch_tool_enabled: boolean;
|
|
235
|
+
thread_goal_tools_enabled: boolean;
|
|
236
|
+
mcp_tools_enabled: boolean;
|
|
237
|
+
multi_agent_tools_enabled: boolean;
|
|
238
|
+
};
|
|
239
|
+
type DefaultToolsConfigInput = {
|
|
240
|
+
namespace_tools?: boolean;
|
|
241
|
+
image_generation?: boolean;
|
|
242
|
+
web_search?: boolean;
|
|
243
|
+
request_permissions_tool_enabled?: boolean;
|
|
244
|
+
request_user_input_available_modes?: readonly ModeKind[];
|
|
245
|
+
search_tool?: boolean;
|
|
246
|
+
web_search_mode?: WebSearchMode | null;
|
|
247
|
+
web_search_tool_type?: WebSearchToolType;
|
|
248
|
+
web_search_config?: WebSearchConfig | null;
|
|
249
|
+
image_gen_tool?: boolean;
|
|
250
|
+
exec_command_tool_enabled?: boolean;
|
|
251
|
+
write_stdin_tool_enabled?: boolean;
|
|
252
|
+
apply_patch_tool_enabled?: boolean;
|
|
253
|
+
thread_goal_tools_enabled?: boolean;
|
|
254
|
+
mcp_tools_enabled?: boolean;
|
|
255
|
+
multi_agent_tools_enabled?: boolean;
|
|
256
|
+
};
|
|
257
|
+
declare function createToolRegistryPlan(): ToolRegistryPlan;
|
|
258
|
+
declare function defaultToolsConfig(input?: DefaultToolsConfigInput): ToolsConfig;
|
|
259
|
+
|
|
260
|
+
export { defaultToolsConfig as A, dynamic_tool_to_tool_search_entry as B, type ConfigLayerEntry as C, type DefaultToolsConfigInput as D, mcp_tool_to_tool_search_entry as E, type FeaturesToml as F, tool_search_outputs as G, tool_search_source_info_for_dynamic_tools as H, tool_search_source_info_for_mcp_tools as I, type LoaderOverrides as L, type ResolvedConfig as R, type ToolsToml as T, type WebSearchConfig as W, type ConfigLayerSource as a, type ConfigToml as b, type ConfigLayerStack as c, ConfigLayerStackOrdering as d, type ConfigOverrides as e, type WebSearchMode as f, CONFIG_TOML_FILE as g, type ConfigLayerMetadata as h, type ConfigProfile as i, createConfigLayerStack as j, type ToolsConfig as k, type ToolNameInput as l, ToolName as m, type DiscoverableTool as n, type ToolSearchEntry as o, type ToolSearchSourceInfo as p, type WebSearchToolType as q, type ToolRegistryPlanParams as r, type ToolRegistryPlan as s, TOOL_SEARCH_DEFAULT_LIMIT as t, TOOL_SEARCH_TOOL_NAME as u, ToolHandlerKind as v, type ToolHandlerSpec as w, build_tool_search_entries as x, build_tool_search_entries_for_config as y, createToolRegistryPlan as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as ThreadId } from './protocol-mpBcYHrm.js';
|
|
2
|
+
import { C as CreateThreadParams, d as ResumeThreadParams, A as AppendThreadItemsParams, b as LoadThreadHistoryParams, f as StoredThreadHistory, c as ReadThreadParams, e as StoredThread, R as ReadThreadByRolloutPathParams, L as ListThreadsParams, h as ThreadPage, U as UpdateThreadMetadataParams, a as ArchiveThreadParams } from './types-BTeabLYr.js';
|
|
2
3
|
|
|
3
4
|
interface ThreadStore {
|
|
4
5
|
createThread(params: CreateThreadParams): Promise<void>;
|