@jrkropp/codex-js 0.1.0 → 0.1.2
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 +6 -2
- package/dist/{chat-runtime-CMli5dzJ.d.ts → chat-runtime-D7wu_KbX.d.ts} +3 -4
- package/dist/{chunk-FFASNDXU.js → chunk-JLDH4U5L.js} +3 -3
- package/dist/{chunk-FFASNDXU.js.map → chunk-JLDH4U5L.js.map} +1 -1
- package/dist/{chunk-TZBLUZ2X.js → chunk-SVK6PLGO.js} +4300 -2426
- package/dist/chunk-SVK6PLGO.js.map +1 -0
- package/dist/client/index.d.ts +4 -111
- package/dist/client/index.js +1 -1
- package/dist/index-CB9la6xE.d.ts +112 -0
- package/dist/index.d.ts +5 -6
- package/dist/index.js +2 -2
- package/dist/react/index.d.ts +5 -6
- package/dist/react/index.js +2 -2
- package/dist/{remote-DMPfepa9.d.ts → remote-_6TDvg-g.d.ts} +1 -1
- package/dist/server/index.d.ts +449 -32
- package/dist/server/index.js +1 -1
- package/dist/{session-BO6EZNK7.d.ts → session-DPhHN7RZ.d.ts} +18 -2
- package/dist/{store-H2cQxdpe.d.ts → store-GYldc9EJ.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{thread_event_store-BIS0qzhi.d.ts → thread_event_store-B9CoQUIA.d.ts} +26 -1
- package/package.json +88 -88
- package/dist/DynamicToolCallResponse-D2OVpa4p.d.ts +0 -8
- package/dist/ToolRequestUserInputResponse-Bxjlpgho.d.ts +0 -17
- package/dist/chunk-TZBLUZ2X.js.map +0 -1
package/dist/server/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppServerSession, CodexAppServerConnectionSessionState, CodexAppServerMessageProcessor, CodexAppServerRequestError, ConnectionRpcGate, ConnectionRpcGateClosedError, EmptyMcpConnectionManager, InMemoryThreadStore, LiveThread, LocalThreadStore, McpRequestProcessor, ModelClientSession, OutgoingMessageSender, RequestSerializationQueues, ResponsesClient, ResponsesWebsocketClient, ResponsesWebsocketConnection, StaticMcpConnectionManager, ThreadEventPersistenceMode, ThreadEventStore, ThreadHistoryBuilder, ThreadMemoryMode, ThreadRequestProcessor, ThreadScopedOutgoingMessageSender, TurnRequestProcessor, asThreadId, clientRequestExperimentalReason, clientRequestId, clientRequestMethod, clientRequestSerializationScope, createCodexAppServerRuntime, createModelClient, deniedRequestPermissionsResponse, jsonRpcInternalError, jsonRpcInvalidRequestError, jsonRpcParseError, parseClientTransportPayload, parseServerTransportPayload, queuedOutgoingMessage, serializeJsonRpcError, serializeJsonRpcResponse, serializeOutgoingMessage } from '../chunk-
|
|
1
|
+
export { AppServerSession, AuthMode, BaseInstructions, 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, CODEX_PLAN_MODE_INSTRUCTIONS, CodexAppServerClientTransportError, CodexAppServerConnectionSessionState, CodexAppServerMessageProcessor, CodexAppServerRequestError, CodexMcpConnectionManagerAdapter, ConnectionRpcGate, ConnectionRpcGateClosedError, EmptyMcpConnectionManager, InMemoryThreadStore, LiveThread, LocalThreadStore, McpRequestProcessor, ModeKind, ModelClientSession, OutgoingMessageSender, PendingAppServerRequests, RequestSerializationQueues, ResponsesClient, ResponsesWebsocketClient, ResponsesWebsocketConnection, SortDirection, StaticMcpConnectionManager, TUI_VISIBLE_COLLABORATION_MODES, ThreadEventPersistenceMode, ThreadEventStore, ThreadHistoryBuilder, ThreadMemoryMode, ThreadRequestProcessor, ThreadScopedOutgoingMessageSender, ThreadSortKey, TurnRequestProcessor, allowsRequestUserInput, applyCollaborationModeMask, applyEventMsgToRenderedThread, asThreadId, builtinCollaborationModePresets, clientRequestExperimentalReason, clientRequestId, clientRequestMethod, clientRequestSerializationScope, codexAppServerDeferredResponse, builtinCollaborationModePresets as codexBuiltinCollaborationModePresets, collaborationModeForModel, collaborationModePresetForMode, collaborationModeWithUpdates, createCodexAppServerClient, createCodexAppServerRuntime, createModelClient, createRenderedThreadState, defaultModeInstructions, deniedRequestPermissionsResponse, jsonRpcInternalError, jsonRpcInvalidRequestError, jsonRpcParseError, normalizeCollaborationMode, outgoingMessageToAppServerEvent, parseClientTransportPayload, parseCodexAppServerEvent, parseJsonRpcMessage, parseJsonRpcTransportPayload, parseServerTransportPayload, queuedOutgoingMessage, renderThreadFromHistory, requestMethodName, requestSerializationQueueKeyFromScope, requestTyped, serializeJsonRpcError, serializeJsonRpcResponse, serializeOutgoingMessage, serverNotificationRequiresDelivery, serverNotificationThreadTarget, serverRequestThreadId, setRenderedThreadConnectionStatus, threadEventSnapshotHasStarted } from '../chunk-SVK6PLGO.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b3 as ThreadId, b4 as AbsolutePathBuf, J as JsonValue, b5 as ThreadSource, aR as UserInput, s as ReasoningEffort, b6 as WindowsSandboxSetupMode, j as RequestId, aH as Thread, aQ as Turn, S as ServerNotification, a as ServerRequest } from './thread_event_store-B9CoQUIA.js';
|
|
2
2
|
|
|
3
3
|
type ClientInfo = {
|
|
4
4
|
name: string;
|
|
@@ -1733,6 +1733,22 @@ type ThreadUnarchiveResponse = {
|
|
|
1733
1733
|
thread: Thread;
|
|
1734
1734
|
};
|
|
1735
1735
|
|
|
1736
|
+
/**
|
|
1737
|
+
* EXPERIMENTAL. Captures a user's answer to a request_user_input question.
|
|
1738
|
+
*/
|
|
1739
|
+
type ToolRequestUserInputAnswer = {
|
|
1740
|
+
answers: Array<string>;
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* EXPERIMENTAL. Response payload mapping question ids to answers.
|
|
1745
|
+
*/
|
|
1746
|
+
type ToolRequestUserInputResponse = {
|
|
1747
|
+
answers: {
|
|
1748
|
+
[key in string]?: ToolRequestUserInputAnswer;
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1736
1752
|
type TurnInterruptResponse = Record<string, never>;
|
|
1737
1753
|
|
|
1738
1754
|
type TurnStartResponse = {
|
|
@@ -1826,4 +1842,4 @@ declare class AppServerSession {
|
|
|
1826
1842
|
rejectServerRequest(requestId: RequestId, error: JSONRPCErrorError): Promise<void>;
|
|
1827
1843
|
}
|
|
1828
1844
|
|
|
1829
|
-
export { type AppServerEvent as A, type
|
|
1845
|
+
export { type AppServerEvent as A, type ThreadResumeParams as B, type CodexAppServer as C, type ThreadResumeResponse as D, type ThreadStartResponse as E, type ThreadUnarchiveParams as F, type ThreadUnarchiveResponse as G, type TurnInterruptParams as H, type InitializeParams as I, type JSONRPCErrorError as J, type TurnInterruptResponse as K, type ListMcpServerStatusParams as L, type ModeKind as M, type TurnStartResponse as N, type TurnSteerParams as O, type TurnSteerResponse as P, type CollaborationModeMask as Q, type Result as R, type McpServerStatus as S, type ToolRequestUserInputResponse as T, type AppServerRequestHandle as U, AppServerSession as V, type TypedRequestError as W, requestMethodName as X, requestTyped as Y, serverNotificationRequiresDelivery as Z, type ThreadStartParams as a, type TurnStartParams as b, type ClientRequest as c, type CollaborationModeListParams as d, type CollaborationModeListResponse as e, type InitializeResponse as f, type McpServerRefreshResponse as g, type McpResourceReadParams as h, type McpResourceReadResponse as i, type McpServerOauthLoginParams as j, type McpServerOauthLoginResponse as k, type ListMcpServerStatusResponse as l, type McpServerToolCallParams as m, type McpServerToolCallResponse as n, type ThreadArchiveParams as o, type ThreadArchiveResponse as p, type ThreadCompactStartParams as q, type ThreadCompactStartResponse as r, type ThreadListParams as s, type ThreadListResponse as t, type ThreadMetadataUpdateParams as u, type ThreadMetadataUpdateResponse as v, type ThreadSetNameParams as w, type ThreadSetNameResponse as x, type ThreadReadParams as y, type ThreadReadResponse as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CreateThreadParams, R as ResumeThreadParams, A as AppendThreadItemsParams, T as ThreadId, L as LoadThreadHistoryParams, b as StoredThreadHistory, c as ReadThreadParams, d as StoredThread, e as ReadThreadByRolloutPathParams, f as ListThreadsParams, g as ThreadPage, U as UpdateThreadMetadataParams, h as ArchiveThreadParams } from './thread_event_store-
|
|
1
|
+
import { C as CreateThreadParams, R as ResumeThreadParams, A as AppendThreadItemsParams, T as ThreadId, L as LoadThreadHistoryParams, b as StoredThreadHistory, c as ReadThreadParams, d as StoredThread, e as ReadThreadByRolloutPathParams, f as ListThreadsParams, g as ThreadPage, U as UpdateThreadMetadataParams, h as ArchiveThreadParams } from './thread_event_store-B9CoQUIA.js';
|
|
2
2
|
|
|
3
3
|
interface ThreadStore {
|
|
4
4
|
createThread(params: CreateThreadParams): Promise<void>;
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as ThreadId, C as CreateThreadParams,
|
|
2
|
-
export {
|
|
3
|
-
import { T as ThreadStore } from '../store-
|
|
1
|
+
import { T as ThreadId, C as CreateThreadParams, O as RolloutItem, d as StoredThread, R as ResumeThreadParams, A as AppendThreadItemsParams, L as LoadThreadHistoryParams, b as StoredThreadHistory, c as ReadThreadParams, e as ReadThreadByRolloutPathParams, f as ListThreadsParams, g as ThreadPage, U as UpdateThreadMetadataParams, h as ArchiveThreadParams } from '../thread_event_store-B9CoQUIA.js';
|
|
2
|
+
export { aD as RenderedThreadState, p as ThreadEventSnapshot, aK as ThreadEventStore, aY as createRenderedThreadState, a_ as renderThreadFromHistory } from '../thread_event_store-B9CoQUIA.js';
|
|
3
|
+
import { T as ThreadStore } from '../store-GYldc9EJ.js';
|
|
4
4
|
|
|
5
5
|
type InMemoryThreadStoreCalls = {
|
|
6
6
|
archiveThread: number;
|
package/dist/testing/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { InMemoryThreadStore, LocalThreadStore, ThreadEventStore, createRenderedThreadState, renderThreadFromHistory } from '../chunk-
|
|
1
|
+
export { InMemoryThreadStore, LocalThreadStore, ThreadEventStore, createRenderedThreadState, renderThreadFromHistory } from '../chunk-SVK6PLGO.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -2219,6 +2219,18 @@ type CollaborationMode = {
|
|
|
2219
2219
|
mode: ModeKind;
|
|
2220
2220
|
settings: CollaborationModeSettings;
|
|
2221
2221
|
};
|
|
2222
|
+
type CollaborationModeMask = {
|
|
2223
|
+
name: string;
|
|
2224
|
+
mode?: ModeKind | null;
|
|
2225
|
+
model?: string | null;
|
|
2226
|
+
reasoning_effort?: ReasoningEffort | null | undefined;
|
|
2227
|
+
developer_instructions?: string | null | undefined;
|
|
2228
|
+
};
|
|
2229
|
+
declare const TUI_VISIBLE_COLLABORATION_MODES: readonly ["default", "plan"];
|
|
2230
|
+
declare function allowsRequestUserInput(mode: ModeKind): boolean;
|
|
2231
|
+
declare function collaborationModeWithUpdates(collaborationMode: CollaborationMode, model?: string | null, effort?: ReasoningEffort | null | undefined, developerInstructions?: string | null | undefined): CollaborationMode;
|
|
2232
|
+
declare function applyCollaborationModeMask(collaborationMode: CollaborationMode, mask: CollaborationModeMask): CollaborationMode;
|
|
2233
|
+
declare function collaborationModeForModel(model: string, effort?: ReasoningEffort | null, mode?: ModeKind, developerInstructions?: string | null): CollaborationMode;
|
|
2222
2234
|
|
|
2223
2235
|
declare const ThreadMemoryMode: {
|
|
2224
2236
|
readonly Enabled: "Enabled";
|
|
@@ -2428,6 +2440,14 @@ type DynamicToolCallResponseEvent = {
|
|
|
2428
2440
|
error?: string | null;
|
|
2429
2441
|
duration: string;
|
|
2430
2442
|
};
|
|
2443
|
+
type DynamicToolSpecWire = {
|
|
2444
|
+
namespace?: string | null;
|
|
2445
|
+
name: string;
|
|
2446
|
+
description: string;
|
|
2447
|
+
inputSchema: unknown;
|
|
2448
|
+
deferLoading?: boolean;
|
|
2449
|
+
exposeToContext?: boolean;
|
|
2450
|
+
};
|
|
2431
2451
|
|
|
2432
2452
|
type RequestUserInputQuestionOption = {
|
|
2433
2453
|
label: string;
|
|
@@ -3765,8 +3785,13 @@ type RenderedThreadState = {
|
|
|
3765
3785
|
last_history_fingerprint: string | null;
|
|
3766
3786
|
connection_status: RenderedThreadConnectionStatus;
|
|
3767
3787
|
};
|
|
3788
|
+
type ApplyEventOptions = {
|
|
3789
|
+
event_id?: string;
|
|
3790
|
+
};
|
|
3768
3791
|
declare function createRenderedThreadState(threadId: ThreadId): RenderedThreadState;
|
|
3769
3792
|
declare function renderThreadFromHistory(history: StoredThreadHistory): RenderedThreadState;
|
|
3793
|
+
declare function applyEventMsgToRenderedThread(state: RenderedThreadState, msg: EventMsg, options?: ApplyEventOptions): RenderedThreadState;
|
|
3794
|
+
declare function setRenderedThreadConnectionStatus(state: RenderedThreadState, connectionStatus: RenderedThreadConnectionStatus): RenderedThreadState;
|
|
3770
3795
|
|
|
3771
3796
|
type ThreadBufferedEvent = {
|
|
3772
3797
|
notification: ServerNotification;
|
|
@@ -3840,4 +3865,4 @@ declare function serverRequestThreadId(request: ServerRequest): string | null;
|
|
|
3840
3865
|
declare function serverNotificationThreadTarget(notification: ServerNotification): ServerNotificationThreadTarget;
|
|
3841
3866
|
declare function threadEventSnapshotHasStarted(snapshot: ThreadEventSnapshot | null): boolean;
|
|
3842
3867
|
|
|
3843
|
-
export { type
|
|
3868
|
+
export { type AskForApproval as $, type AppendThreadItemsParams as A, type McpResourceReadResponse as B, type CreateThreadParams as C, type DynamicToolCallRequest as D, type McpServerToolCallParams as E, type McpServerToolCallResponse as F, type McpToolInfo as G, type McpRequestId as H, type McpServerElicitationResponse as I, type JsonValue as J, type McpResourceInfo as K, type LoadThreadHistoryParams as L, type McpServerRefreshConfig as M, type McpResourceTemplateInfo as N, type RolloutItem as O, ThreadMemoryMode as P, type ThreadMetadataPatch as Q, type ResumeThreadParams as R, type ServerNotification as S, type ThreadId as T, type UpdateThreadMetadataParams as U, type CollaborationModeMask as V, ModeKind as W, type ServiceTier as X, type ReasoningEffortConfig as Y, type ReasoningSummaryConfig as Z, type Personality as _, type ServerRequest as a, serverNotificationThreadTarget as a$, type ApprovalsReviewer as a0, type SandboxPolicy as a1, type PermissionProfile as a2, type ActivePermissionProfile as a3, type WindowsSandboxLevel as a4, BaseInstructions as a5, type SessionSource as a6, type TurnEnvironmentSelection as a7, type DynamicToolSpec as a8, type TruncationPolicy as a9, type DynamicToolSpecWire as aA, type RealtimeEvent as aB, type RenderedThreadConnectionStatus as aC, type RenderedThreadState as aD, type ServerNotificationThreadTarget as aE, SortDirection as aF, TUI_VISIBLE_COLLABORATION_MODES as aG, type Thread as aH, type ThreadBufferedEvent as aI, ThreadEventPersistenceMode as aJ, ThreadEventStore as aK, ThreadHistoryBuilder as aL, type ThreadItem as aM, type ThreadPersistenceMetadata as aN, ThreadSortKey as aO, type ThreadTokenUsageSnapshot as aP, type Turn$1 as aQ, type UserInput$1 as aR, allowsRequestUserInput as aS, applyCollaborationModeMask as aT, applyEventMsgToRenderedThread as aU, asThreadId as aV, collaborationModeForModel as aW, collaborationModeWithUpdates as aX, createRenderedThreadState as aY, deniedRequestPermissionsResponse as aZ, renderThreadFromHistory as a_, type ThreadGoal as aa, ThreadGoalStatus as ab, HookEventName as ac, HookSource as ad, HookRunStatus as ae, type HookOutputEntry as af, type HookRunSummary as ag, type HookCompletedEvent as ah, type TokenUsage as ai, type RequestUserInputResponse as aj, type DynamicToolResponse as ak, type RequestPermissionsResponse as al, type RequestPermissionProfile as am, type EventMsg as an, type Op as ao, type Submission as ap, type NormalizedRequestUserInputArgs as aq, type RequestPermissionsArgs as ar, type McpServerElicitationRequest as as, type CompactedItem as at, type ResponseItem as au, type RateLimitSnapshot as av, type TokenUsageInfo as aw, type TurnContextItem as ax, type W3cTraceContext as ay, type DynamicToolCallParams as az, type StoredThreadHistory as b, serverRequestThreadId as b0, setRenderedThreadConnectionStatus as b1, threadEventSnapshotHasStarted as b2, type ThreadId$1 as b3, type AbsolutePathBuf as b4, type ThreadSource as b5, type WindowsSandboxSetupMode as b6, type ExecPolicyAmendment as b7, type NetworkPolicyAmendment as b8, type DynamicToolCallOutputContentItem$1 as b9, type AdditionalNetworkPermissions as ba, type AdditionalFileSystemPermissions as bb, type ReadThreadParams as c, type StoredThread as d, type ReadThreadByRolloutPathParams as e, type ListThreadsParams as f, type ThreadPage as g, type ArchiveThreadParams as h, type TextElement as i, type RequestId as j, type ToolRequestUserInputQuestion as k, type UserInput as l, type UserMessageTurnItem as m, type Turn as n, type CollaborationMode as o, type ThreadEventSnapshot as p, type RequestPermissionsEvent as q, type TurnItem as r, type ReasoningEffort$1 as s, type McpRuntimeEnvironment as t, type McpServerStatusListOptions as u, type McpServerStatus as v, type McpResourceListParams as w, type McpResourceListResponse as x, type McpResourceTemplateListResponse as y, type McpResourceReadParams as z };
|
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
2
|
+
"name": "@jrkropp/codex-js",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Unofficial TypeScript Codex runtime for building Codex-backed web apps.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"NOTICE"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./client": {
|
|
23
|
+
"types": "./dist/client/index.d.ts",
|
|
24
|
+
"import": "./dist/client/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./server": {
|
|
27
|
+
"types": "./dist/server/index.d.ts",
|
|
28
|
+
"import": "./dist/server/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./react": {
|
|
31
|
+
"types": "./dist/react/index.d.ts",
|
|
32
|
+
"import": "./dist/react/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./shadcn": {
|
|
35
|
+
"types": "./dist/shadcn/index.d.ts",
|
|
36
|
+
"import": "./dist/shadcn/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./testing": {
|
|
39
|
+
"types": "./dist/testing/index.d.ts",
|
|
40
|
+
"import": "./dist/testing/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./styles.css": "./dist/styles.css"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@legendapp/list": "^3.0.0-beta.44",
|
|
46
|
+
"@lexical/react": "^0.44.0",
|
|
47
|
+
"class-variance-authority": "^0.7.1",
|
|
48
|
+
"clsx": "^2.1.1",
|
|
49
|
+
"cmdk": "^1.1.1",
|
|
50
|
+
"lexical": "^0.44.0",
|
|
51
|
+
"lucide-react": "^1.11.0",
|
|
52
|
+
"radix-ui": "^1.4.3",
|
|
53
|
+
"react-markdown": "^10.1.0",
|
|
54
|
+
"remark-gfm": "^4.0.1",
|
|
55
|
+
"smol-toml": "^1.6.1",
|
|
56
|
+
"tailwind-merge": "^3.5.0",
|
|
57
|
+
"zustand": "^5.0.13"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"react": "^18.3.0 || ^19.0.0",
|
|
61
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/react": "19.2.7",
|
|
65
|
+
"@types/react-dom": "19.2.3",
|
|
66
|
+
"typescript": "5.8.3"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public",
|
|
70
|
+
"provenance": true
|
|
71
|
+
},
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/jrkropp/codex-js.git",
|
|
75
|
+
"directory": "packages/codex-js"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/jrkropp/codex-js/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/jrkropp/codex-js#readme",
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "tsup && node scripts/copy-assets.mjs",
|
|
83
|
+
"clean": "rm -rf dist",
|
|
84
|
+
"codex:mirror": "node scripts/generate-codex-mirror.mjs",
|
|
85
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
86
|
+
"publint": "publint",
|
|
87
|
+
"typecheck": "tsc -p tsconfig.json --pretty false"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXPERIMENTAL. Captures a user's answer to a request_user_input question.
|
|
3
|
-
*/
|
|
4
|
-
type ToolRequestUserInputAnswer = {
|
|
5
|
-
answers: Array<string>;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* EXPERIMENTAL. Response payload mapping question ids to answers.
|
|
10
|
-
*/
|
|
11
|
-
type ToolRequestUserInputResponse = {
|
|
12
|
-
answers: {
|
|
13
|
-
[key in string]?: ToolRequestUserInputAnswer;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type { ToolRequestUserInputResponse as T };
|