codex-relay 1.0.2 → 1.0.4
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/dist/api-schema.js +2 -2
- package/dist/api-schema2.js +178 -2
- package/dist/cli.js +1 -1
- package/dist/src.js +611 -41
- package/package.json +1 -1
- package/src/api-schema.ts +174 -0
package/dist/api-schema.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as SandboxModeSchema, A as PairResponseSchema, At as
|
|
2
|
-
export { AgentSkillSchema, AgentSkillSourceSchema, ApprovalDecisionSchema, ApprovalModeSchema, ArchiveThreadResponseSchema, ChatMessageKindSchema, ChatMessagePromptDetailsSchema, ChatMessageRoleSchema, ChatMessageSchema, ChatMessageStateSchema, CheckoutWorkspaceBranchRequestSchema, CodexModelSchema, CommitPushWorkspaceRequestSchema, ContextWindowUsageSchema, CreateThreadRequestSchema, CreateThreadResponseSchema, EncryptedPayloadSchema, ErrorResponseSchema, ImageAttachmentUploadResponseSchema, InterruptThreadRunResponseSchema, IsoDateTimeSchema, ListModelsResponseSchema, ListQueuedThreadInputsResponseSchema, ListSkillsResponseSchema, ListThreadsResponseSchema, ListWorkspaceDirectoriesResponseSchema, ListWorkspaceFilesResponseSchema, PairEncryptedPayloadSchema, PairRequestSchema, PairResponseSchema, PendingInputRequestOptionSchema, PendingInputRequestQuestionSchema, PendingInputRequestSchema, PromptAttachmentSchema, PromptAttachmentSummarySchema, PromptContextInputSchema, PromptContextSchema, PromptSkillSchema, QueuedThreadInputActionResponseSchema, QueuedThreadInputSchema, RateLimitBucketSchema, RateLimitWindowSchema, RateLimitsResponseSchema, ReasoningEffortSchema, ResolveApprovalRequestSchema, ResolveApprovalResponseSchema, RunThreadRequestSchema, RunThreadResponseSchema, RuntimeModeSchema, RuntimePreferencesByWorkspacePathSchema, RuntimePreferencesResponseSchema, RuntimePreferencesSchema, SandboxModeSchema, StatusResponseSchema, StreamThreadRunEventSchema, StreamThreadRunRequestSchema, SubmitThreadInputResponseSchema, ThreadCollaborationModeSchema, ThreadContextWindowResponseSchema, ThreadDetailResponseSchema, ThreadMessageDetailFieldSchema, ThreadMessageDetailResponseSchema, ThreadRunOptionsSchema, ThreadStateSchema, ThreadSummarySchema, UpdateRuntimePreferencesRequestSchema, VersionResponseSchema, WebPreviewTargetSchema, WorkspaceChangesResponseSchema, WorkspaceDirectoryEntrySchema, WorkspaceFileMentionSchema, WorkspaceGitActionResponseSchema, WorkspaceSelectionRequestSchema, apiPaths, chatMessageDetailsFromPromptContext, createOpenApiDocument, isPromptSkillMarkdownMention, normalizePromptContext, promptMarkdownWithSkills, promptSkillDisplayName, promptSkillMentionLabel, promptSkillMentionMarkdown, promptSkillMentionTextCandidates, stripPromptSkillMentions };
|
|
1
|
+
import { $ as SandboxModeSchema, A as PairResponseSchema, At as isPromptSkillMarkdownMention, B as QueuedThreadInputSchema, C as ListQueuedThreadInputsResponseSchema, Ct as WorkspaceMarkdownPreviewTargetSchema, D as ListWorkspaceFilesResponseSchema, Dt as apiPaths, E as ListWorkspaceDirectoriesResponseSchema, Et as WorkspaceSelectionRequestSchema, F as PromptAttachmentSummarySchema, Ft as promptSkillMentionMarkdown, G as ResolveApprovalRequestSchema, H as RateLimitWindowSchema, I as PromptContextInputSchema, It as promptSkillMentionTextCandidates, J as RunThreadResponseSchema, K as ResolveApprovalResponseSchema, L as PromptContextSchema, Lt as stripPromptSkillMentions, M as PendingInputRequestQuestionSchema, Mt as promptMarkdownWithSkills, N as PendingInputRequestSchema, Nt as promptSkillDisplayName, O as PairEncryptedPayloadSchema, Ot as chatMessageDetailsFromPromptContext, P as PromptAttachmentSchema, Pt as promptSkillMentionLabel, Q as RuntimePreferencesSchema, R as PromptSkillSchema, S as ListModelsResponseSchema, St as WorkspaceGitActionResponseSchema, T as ListThreadsResponseSchema, Tt as WorkspacePreviewTabSchema, U as RateLimitsResponseSchema, V as RateLimitBucketSchema, W as ReasoningEffortSchema, X as RuntimePreferencesByWorkspacePathSchema, Y as RuntimeModeSchema, Z as RuntimePreferencesResponseSchema, _ as EncryptedPayloadSchema, _t as WebPreviewTargetSchema, a as ArchiveThreadResponseSchema, at as ThreadContextWindowResponseSchema, b as InterruptThreadRunResponseSchema, bt as WorkspaceFileContentResponseSchema, c as ChatMessageRoleSchema, ct as ThreadMessageDetailResponseSchema, d as CheckoutWorkspaceBranchRequestSchema, dt as ThreadSummarySchema, et as StatusResponseSchema, f as CodexModelSchema, ft as UpdateRuntimePreferencesRequestSchema, g as CreateThreadResponseSchema, gt as WORKSPACE_PREVIEW_TAB_VALUES, h as CreateThreadRequestSchema, ht as WORKSPACE_PREVIEW_OPEN_PROTOCOL, i as ApprovalModeSchema, it as ThreadCollaborationModeSchema, j as PendingInputRequestOptionSchema, jt as normalizePromptContext, k as PairRequestSchema, kt as createOpenApiDocument, l as ChatMessageSchema, lt as ThreadRunOptionsSchema, m as ContextWindowUsageSchema, mt as VersionResponseSchema, n as AgentSkillSourceSchema, nt as StreamThreadRunRequestSchema, o as ChatMessageKindSchema, ot as ThreadDetailResponseSchema, p as CommitPushWorkspaceRequestSchema, pt as UpdateWorkspaceFileContentRequestSchema, q as RunThreadRequestSchema, r as ApprovalDecisionSchema, rt as SubmitThreadInputResponseSchema, s as ChatMessagePromptDetailsSchema, st as ThreadMessageDetailFieldSchema, t as AgentSkillSchema, tt as StreamThreadRunEventSchema, u as ChatMessageStateSchema, ut as ThreadStateSchema, v as ErrorResponseSchema, vt as WorkspaceChangesResponseSchema, w as ListSkillsResponseSchema, wt as WorkspacePreviewNavigationRequestSchema, x as IsoDateTimeSchema, xt as WorkspaceFileMentionSchema, y as ImageAttachmentUploadResponseSchema, yt as WorkspaceDirectoryEntrySchema, z as QueuedThreadInputActionResponseSchema } from "./api-schema2.js";
|
|
2
|
+
export { AgentSkillSchema, AgentSkillSourceSchema, ApprovalDecisionSchema, ApprovalModeSchema, ArchiveThreadResponseSchema, ChatMessageKindSchema, ChatMessagePromptDetailsSchema, ChatMessageRoleSchema, ChatMessageSchema, ChatMessageStateSchema, CheckoutWorkspaceBranchRequestSchema, CodexModelSchema, CommitPushWorkspaceRequestSchema, ContextWindowUsageSchema, CreateThreadRequestSchema, CreateThreadResponseSchema, EncryptedPayloadSchema, ErrorResponseSchema, ImageAttachmentUploadResponseSchema, InterruptThreadRunResponseSchema, IsoDateTimeSchema, ListModelsResponseSchema, ListQueuedThreadInputsResponseSchema, ListSkillsResponseSchema, ListThreadsResponseSchema, ListWorkspaceDirectoriesResponseSchema, ListWorkspaceFilesResponseSchema, PairEncryptedPayloadSchema, PairRequestSchema, PairResponseSchema, PendingInputRequestOptionSchema, PendingInputRequestQuestionSchema, PendingInputRequestSchema, PromptAttachmentSchema, PromptAttachmentSummarySchema, PromptContextInputSchema, PromptContextSchema, PromptSkillSchema, QueuedThreadInputActionResponseSchema, QueuedThreadInputSchema, RateLimitBucketSchema, RateLimitWindowSchema, RateLimitsResponseSchema, ReasoningEffortSchema, ResolveApprovalRequestSchema, ResolveApprovalResponseSchema, RunThreadRequestSchema, RunThreadResponseSchema, RuntimeModeSchema, RuntimePreferencesByWorkspacePathSchema, RuntimePreferencesResponseSchema, RuntimePreferencesSchema, SandboxModeSchema, StatusResponseSchema, StreamThreadRunEventSchema, StreamThreadRunRequestSchema, SubmitThreadInputResponseSchema, ThreadCollaborationModeSchema, ThreadContextWindowResponseSchema, ThreadDetailResponseSchema, ThreadMessageDetailFieldSchema, ThreadMessageDetailResponseSchema, ThreadRunOptionsSchema, ThreadStateSchema, ThreadSummarySchema, UpdateRuntimePreferencesRequestSchema, UpdateWorkspaceFileContentRequestSchema, VersionResponseSchema, WORKSPACE_PREVIEW_OPEN_PROTOCOL, WORKSPACE_PREVIEW_TAB_VALUES, WebPreviewTargetSchema, WorkspaceChangesResponseSchema, WorkspaceDirectoryEntrySchema, WorkspaceFileContentResponseSchema, WorkspaceFileMentionSchema, WorkspaceGitActionResponseSchema, WorkspaceMarkdownPreviewTargetSchema, WorkspacePreviewNavigationRequestSchema, WorkspacePreviewTabSchema, WorkspaceSelectionRequestSchema, apiPaths, chatMessageDetailsFromPromptContext, createOpenApiDocument, isPromptSkillMarkdownMention, normalizePromptContext, promptMarkdownWithSkills, promptSkillDisplayName, promptSkillMentionLabel, promptSkillMentionMarkdown, promptSkillMentionTextCandidates, stripPromptSkillMentions };
|
package/dist/api-schema2.js
CHANGED
|
@@ -65,6 +65,7 @@ const VersionResponseSchema = z.object({
|
|
|
65
65
|
});
|
|
66
66
|
const ThreadRunOptionsSchema = z.object({
|
|
67
67
|
model: z.string().trim().min(1).optional(),
|
|
68
|
+
serviceTier: z.string().trim().min(1).optional(),
|
|
68
69
|
runtimeMode: RuntimeModeSchema.optional(),
|
|
69
70
|
approvalPolicy: ApprovalModeSchema.optional(),
|
|
70
71
|
sandboxMode: SandboxModeSchema.optional(),
|
|
@@ -73,12 +74,14 @@ const ThreadRunOptionsSchema = z.object({
|
|
|
73
74
|
});
|
|
74
75
|
const RuntimePreferencesSchema = z.object({
|
|
75
76
|
model: z.string().trim().min(1).optional(),
|
|
77
|
+
serviceTier: z.string().trim().min(1).optional(),
|
|
76
78
|
runtimeMode: RuntimeModeSchema.default("default"),
|
|
77
79
|
reasoningEffort: ReasoningEffortSchema.optional()
|
|
78
80
|
});
|
|
79
81
|
const RuntimePreferencesByWorkspacePathSchema = z.record(z.string().trim().min(1), RuntimePreferencesSchema);
|
|
80
82
|
const UpdateRuntimePreferencesRequestSchema = z.object({
|
|
81
83
|
model: z.string().trim().min(1).nullable().optional(),
|
|
84
|
+
serviceTier: z.string().trim().min(1).nullable().optional(),
|
|
82
85
|
runtimeMode: RuntimeModeSchema.optional(),
|
|
83
86
|
reasoningEffort: ReasoningEffortSchema.nullable().optional(),
|
|
84
87
|
threadId: z.string().trim().min(1).optional(),
|
|
@@ -97,7 +100,12 @@ const CodexModelSchema = z.object({
|
|
|
97
100
|
description: z.string().optional(),
|
|
98
101
|
isDefault: z.boolean().default(false),
|
|
99
102
|
defaultReasoningEffort: ReasoningEffortSchema.optional(),
|
|
100
|
-
supportedReasoningEfforts: z.array(ReasoningEffortSchema).default([])
|
|
103
|
+
supportedReasoningEfforts: z.array(ReasoningEffortSchema).default([]),
|
|
104
|
+
serviceTiers: z.array(z.object({
|
|
105
|
+
id: z.string().min(1),
|
|
106
|
+
name: z.string().min(1),
|
|
107
|
+
description: z.string().optional()
|
|
108
|
+
})).default([])
|
|
101
109
|
});
|
|
102
110
|
const AgentSkillSourceSchema = z.enum([
|
|
103
111
|
"workspace",
|
|
@@ -169,10 +177,28 @@ const WorkspaceFileMentionSchema = z.object({
|
|
|
169
177
|
path: z.string().min(1)
|
|
170
178
|
});
|
|
171
179
|
const ListWorkspaceFilesResponseSchema = z.object({
|
|
180
|
+
directory: z.string(),
|
|
172
181
|
files: z.array(WorkspaceFileMentionSchema),
|
|
182
|
+
parentDirectory: z.string().nullable(),
|
|
173
183
|
query: z.string(),
|
|
174
184
|
workspacePath: z.string().min(1)
|
|
175
185
|
});
|
|
186
|
+
const WorkspaceFileContentResponseSchema = z.object({
|
|
187
|
+
binary: z.boolean(),
|
|
188
|
+
content: z.string(),
|
|
189
|
+
directory: z.string(),
|
|
190
|
+
language: z.string(),
|
|
191
|
+
name: z.string().min(1),
|
|
192
|
+
path: z.string().min(1),
|
|
193
|
+
size: z.number().int().nonnegative(),
|
|
194
|
+
truncated: z.boolean(),
|
|
195
|
+
workspacePath: z.string().min(1)
|
|
196
|
+
});
|
|
197
|
+
const UpdateWorkspaceFileContentRequestSchema = z.object({
|
|
198
|
+
content: z.string().max(1024 * 1024),
|
|
199
|
+
path: z.string().trim().min(1),
|
|
200
|
+
workspacePath: z.string().trim().min(1).optional()
|
|
201
|
+
});
|
|
176
202
|
const PendingInputRequestOptionSchema = z.object({
|
|
177
203
|
label: z.string().min(1),
|
|
178
204
|
description: z.string().optional()
|
|
@@ -208,6 +234,7 @@ const ThreadSummarySchema = z.object({
|
|
|
208
234
|
updatedAt: IsoDateTimeSchema,
|
|
209
235
|
state: ThreadStateSchema,
|
|
210
236
|
model: z.string().optional(),
|
|
237
|
+
serviceTier: z.string().optional(),
|
|
211
238
|
runtimeMode: RuntimeModeSchema.optional(),
|
|
212
239
|
approvalPolicy: ApprovalModeSchema.optional(),
|
|
213
240
|
sandboxMode: SandboxModeSchema.optional(),
|
|
@@ -282,6 +309,19 @@ const WorkspaceGitActionResponseSchema = z.object({
|
|
|
282
309
|
message: z.string().min(1),
|
|
283
310
|
output: z.string().default("")
|
|
284
311
|
});
|
|
312
|
+
const WORKSPACE_PREVIEW_TAB_VALUES = [
|
|
313
|
+
"git",
|
|
314
|
+
"files",
|
|
315
|
+
"markdown",
|
|
316
|
+
"web"
|
|
317
|
+
];
|
|
318
|
+
const WorkspacePreviewTabSchema = z.enum(WORKSPACE_PREVIEW_TAB_VALUES);
|
|
319
|
+
const WorkspaceMarkdownPreviewTargetSchema = z.object({
|
|
320
|
+
name: z.string().trim().min(1).optional(),
|
|
321
|
+
path: z.string().trim().min(1),
|
|
322
|
+
workspacePath: z.string().trim().min(1).optional()
|
|
323
|
+
});
|
|
324
|
+
const WORKSPACE_PREVIEW_OPEN_PROTOCOL = "workspace-preview.open";
|
|
285
325
|
const WebPreviewTargetSchema = z.object({
|
|
286
326
|
kind: z.literal("web"),
|
|
287
327
|
url: z.string().url(),
|
|
@@ -299,6 +339,25 @@ const WebPreviewTargetSchema = z.object({
|
|
|
299
339
|
]),
|
|
300
340
|
detectedAt: IsoDateTimeSchema
|
|
301
341
|
});
|
|
342
|
+
const WorkspacePreviewOpenBaseSchema = z.object({
|
|
343
|
+
protocol: z.literal(WORKSPACE_PREVIEW_OPEN_PROTOCOL),
|
|
344
|
+
workspacePath: z.string().trim().min(1).optional()
|
|
345
|
+
});
|
|
346
|
+
const WorkspacePreviewNavigationRequestSchema = z.discriminatedUnion("tab", [
|
|
347
|
+
WorkspacePreviewOpenBaseSchema.extend({ tab: z.literal("git") }),
|
|
348
|
+
WorkspacePreviewOpenBaseSchema.extend({
|
|
349
|
+
tab: z.literal("files"),
|
|
350
|
+
target: z.object({ path: z.string().trim().min(1).optional() }).optional()
|
|
351
|
+
}),
|
|
352
|
+
WorkspacePreviewOpenBaseSchema.extend({
|
|
353
|
+
tab: z.literal("markdown"),
|
|
354
|
+
target: WorkspaceMarkdownPreviewTargetSchema
|
|
355
|
+
}),
|
|
356
|
+
WorkspacePreviewOpenBaseSchema.extend({
|
|
357
|
+
tab: z.literal("web"),
|
|
358
|
+
target: WebPreviewTargetSchema.optional()
|
|
359
|
+
})
|
|
360
|
+
]);
|
|
302
361
|
const PairRequestSchema = z.object({
|
|
303
362
|
clientSessionId: z.string().trim().min(1).max(120).optional(),
|
|
304
363
|
clientName: z.string().trim().min(1).max(80).optional(),
|
|
@@ -588,6 +647,7 @@ const apiPaths = {
|
|
|
588
647
|
models: "/v1/models",
|
|
589
648
|
skills: "/v1/skills",
|
|
590
649
|
workspaceFiles: "/v1/workspace/files",
|
|
650
|
+
workspaceFileContent: "/v1/workspace/file",
|
|
591
651
|
workspaceDirectories: "/v1/workspace-directories",
|
|
592
652
|
workspaceChanges: "/v1/workspace/changes",
|
|
593
653
|
workspaceCheckout: "/v1/workspace/checkout",
|
|
@@ -681,6 +741,35 @@ function createOpenApiDocument() {
|
|
|
681
741
|
"400": jsonResponse("ErrorResponse")
|
|
682
742
|
}
|
|
683
743
|
} },
|
|
744
|
+
"/v1/workspace/files": { get: {
|
|
745
|
+
summary: "List files under the configured workspace",
|
|
746
|
+
responses: {
|
|
747
|
+
"200": jsonResponse("ListWorkspaceFilesResponse"),
|
|
748
|
+
"400": jsonResponse("ErrorResponse"),
|
|
749
|
+
"502": jsonResponse("ErrorResponse")
|
|
750
|
+
}
|
|
751
|
+
} },
|
|
752
|
+
"/v1/workspace/file": {
|
|
753
|
+
get: {
|
|
754
|
+
summary: "Read a workspace file preview",
|
|
755
|
+
responses: {
|
|
756
|
+
"200": jsonResponse("WorkspaceFileContentResponse"),
|
|
757
|
+
"400": jsonResponse("ErrorResponse"),
|
|
758
|
+
"404": jsonResponse("ErrorResponse"),
|
|
759
|
+
"502": jsonResponse("ErrorResponse")
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
put: {
|
|
763
|
+
summary: "Update a workspace text file",
|
|
764
|
+
requestBody: jsonRequest("UpdateWorkspaceFileContentRequest"),
|
|
765
|
+
responses: {
|
|
766
|
+
"200": jsonResponse("WorkspaceFileContentResponse"),
|
|
767
|
+
"400": jsonResponse("ErrorResponse"),
|
|
768
|
+
"404": jsonResponse("ErrorResponse"),
|
|
769
|
+
"502": jsonResponse("ErrorResponse")
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
},
|
|
684
773
|
"/v1/threads/{threadId}/runs": { post: {
|
|
685
774
|
summary: "Run a prompt on a Codex thread",
|
|
686
775
|
parameters: [{
|
|
@@ -814,6 +903,7 @@ function createOpenApiDocument() {
|
|
|
814
903
|
minimum: 0
|
|
815
904
|
},
|
|
816
905
|
model: { type: "string" },
|
|
906
|
+
serviceTier: { type: "string" },
|
|
817
907
|
runtimeMode: { $ref: "#/components/schemas/RuntimeMode" },
|
|
818
908
|
approvalPolicy: {
|
|
819
909
|
type: "string",
|
|
@@ -901,6 +991,7 @@ function createOpenApiDocument() {
|
|
|
901
991
|
required: ["runtimeMode"],
|
|
902
992
|
properties: {
|
|
903
993
|
model: { type: "string" },
|
|
994
|
+
serviceTier: { type: "string" },
|
|
904
995
|
runtimeMode: {
|
|
905
996
|
type: "string",
|
|
906
997
|
enum: [
|
|
@@ -932,6 +1023,10 @@ function createOpenApiDocument() {
|
|
|
932
1023
|
type: "string",
|
|
933
1024
|
nullable: true
|
|
934
1025
|
},
|
|
1026
|
+
serviceTier: {
|
|
1027
|
+
type: "string",
|
|
1028
|
+
nullable: true
|
|
1029
|
+
},
|
|
935
1030
|
runtimeMode: {
|
|
936
1031
|
type: "string",
|
|
937
1032
|
enum: [
|
|
@@ -996,6 +1091,87 @@ function createOpenApiDocument() {
|
|
|
996
1091
|
}
|
|
997
1092
|
}
|
|
998
1093
|
},
|
|
1094
|
+
WorkspaceFileMention: {
|
|
1095
|
+
type: "object",
|
|
1096
|
+
required: [
|
|
1097
|
+
"directory",
|
|
1098
|
+
"kind",
|
|
1099
|
+
"name",
|
|
1100
|
+
"path"
|
|
1101
|
+
],
|
|
1102
|
+
properties: {
|
|
1103
|
+
directory: { type: "string" },
|
|
1104
|
+
kind: {
|
|
1105
|
+
type: "string",
|
|
1106
|
+
enum: ["directory", "file"]
|
|
1107
|
+
},
|
|
1108
|
+
name: { type: "string" },
|
|
1109
|
+
path: { type: "string" }
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
ListWorkspaceFilesResponse: {
|
|
1113
|
+
type: "object",
|
|
1114
|
+
required: [
|
|
1115
|
+
"directory",
|
|
1116
|
+
"files",
|
|
1117
|
+
"parentDirectory",
|
|
1118
|
+
"query",
|
|
1119
|
+
"workspacePath"
|
|
1120
|
+
],
|
|
1121
|
+
properties: {
|
|
1122
|
+
directory: { type: "string" },
|
|
1123
|
+
files: {
|
|
1124
|
+
type: "array",
|
|
1125
|
+
items: { $ref: "#/components/schemas/WorkspaceFileMention" }
|
|
1126
|
+
},
|
|
1127
|
+
parentDirectory: {
|
|
1128
|
+
type: "string",
|
|
1129
|
+
nullable: true
|
|
1130
|
+
},
|
|
1131
|
+
query: { type: "string" },
|
|
1132
|
+
workspacePath: { type: "string" }
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
WorkspaceFileContentResponse: {
|
|
1136
|
+
type: "object",
|
|
1137
|
+
required: [
|
|
1138
|
+
"binary",
|
|
1139
|
+
"content",
|
|
1140
|
+
"directory",
|
|
1141
|
+
"language",
|
|
1142
|
+
"name",
|
|
1143
|
+
"path",
|
|
1144
|
+
"size",
|
|
1145
|
+
"truncated",
|
|
1146
|
+
"workspacePath"
|
|
1147
|
+
],
|
|
1148
|
+
properties: {
|
|
1149
|
+
binary: { type: "boolean" },
|
|
1150
|
+
content: { type: "string" },
|
|
1151
|
+
directory: { type: "string" },
|
|
1152
|
+
language: { type: "string" },
|
|
1153
|
+
name: { type: "string" },
|
|
1154
|
+
path: { type: "string" },
|
|
1155
|
+
size: {
|
|
1156
|
+
type: "integer",
|
|
1157
|
+
minimum: 0
|
|
1158
|
+
},
|
|
1159
|
+
truncated: { type: "boolean" },
|
|
1160
|
+
workspacePath: { type: "string" }
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
UpdateWorkspaceFileContentRequest: {
|
|
1164
|
+
type: "object",
|
|
1165
|
+
required: ["content", "path"],
|
|
1166
|
+
properties: {
|
|
1167
|
+
content: {
|
|
1168
|
+
type: "string",
|
|
1169
|
+
maxLength: 1048576
|
|
1170
|
+
},
|
|
1171
|
+
path: { type: "string" },
|
|
1172
|
+
workspacePath: { type: "string" }
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
999
1175
|
CreateThreadRequest: {
|
|
1000
1176
|
type: "object",
|
|
1001
1177
|
properties: {
|
|
@@ -1346,4 +1522,4 @@ function jsonResponse(schemaName) {
|
|
|
1346
1522
|
};
|
|
1347
1523
|
}
|
|
1348
1524
|
//#endregion
|
|
1349
|
-
export { SandboxModeSchema as $, PairResponseSchema as A,
|
|
1525
|
+
export { SandboxModeSchema as $, PairResponseSchema as A, isPromptSkillMarkdownMention as At, QueuedThreadInputSchema as B, ListQueuedThreadInputsResponseSchema as C, WorkspaceMarkdownPreviewTargetSchema as Ct, ListWorkspaceFilesResponseSchema as D, apiPaths as Dt, ListWorkspaceDirectoriesResponseSchema as E, WorkspaceSelectionRequestSchema as Et, PromptAttachmentSummarySchema as F, promptSkillMentionMarkdown as Ft, ResolveApprovalRequestSchema as G, RateLimitWindowSchema as H, PromptContextInputSchema as I, promptSkillMentionTextCandidates as It, RunThreadResponseSchema as J, ResolveApprovalResponseSchema as K, PromptContextSchema as L, stripPromptSkillMentions as Lt, PendingInputRequestQuestionSchema as M, promptMarkdownWithSkills as Mt, PendingInputRequestSchema as N, promptSkillDisplayName as Nt, PairEncryptedPayloadSchema as O, chatMessageDetailsFromPromptContext as Ot, PromptAttachmentSchema as P, promptSkillMentionLabel as Pt, RuntimePreferencesSchema as Q, PromptSkillSchema as R, ListModelsResponseSchema as S, WorkspaceGitActionResponseSchema as St, ListThreadsResponseSchema as T, WorkspacePreviewTabSchema as Tt, RateLimitsResponseSchema as U, RateLimitBucketSchema as V, ReasoningEffortSchema as W, RuntimePreferencesByWorkspacePathSchema as X, RuntimeModeSchema as Y, RuntimePreferencesResponseSchema as Z, EncryptedPayloadSchema as _, WebPreviewTargetSchema as _t, ArchiveThreadResponseSchema as a, ThreadContextWindowResponseSchema as at, InterruptThreadRunResponseSchema as b, WorkspaceFileContentResponseSchema as bt, ChatMessageRoleSchema as c, ThreadMessageDetailResponseSchema as ct, CheckoutWorkspaceBranchRequestSchema as d, ThreadSummarySchema as dt, StatusResponseSchema as et, CodexModelSchema as f, UpdateRuntimePreferencesRequestSchema as ft, CreateThreadResponseSchema as g, WORKSPACE_PREVIEW_TAB_VALUES as gt, CreateThreadRequestSchema as h, WORKSPACE_PREVIEW_OPEN_PROTOCOL as ht, ApprovalModeSchema as i, ThreadCollaborationModeSchema as it, PendingInputRequestOptionSchema as j, normalizePromptContext as jt, PairRequestSchema as k, createOpenApiDocument as kt, ChatMessageSchema as l, ThreadRunOptionsSchema as lt, ContextWindowUsageSchema as m, VersionResponseSchema as mt, AgentSkillSourceSchema as n, StreamThreadRunRequestSchema as nt, ChatMessageKindSchema as o, ThreadDetailResponseSchema as ot, CommitPushWorkspaceRequestSchema as p, UpdateWorkspaceFileContentRequestSchema as pt, RunThreadRequestSchema as q, ApprovalDecisionSchema as r, SubmitThreadInputResponseSchema as rt, ChatMessagePromptDetailsSchema as s, ThreadMessageDetailFieldSchema as st, AgentSkillSchema as t, StreamThreadRunEventSchema as tt, ChatMessageStateSchema as u, ThreadStateSchema as ut, ErrorResponseSchema as v, WorkspaceChangesResponseSchema as vt, ListSkillsResponseSchema as w, WorkspacePreviewNavigationRequestSchema as wt, IsoDateTimeSchema as x, WorkspaceFileMentionSchema as xt, ImageAttachmentUploadResponseSchema as y, WorkspaceDirectoryEntrySchema as yt, QueuedThreadInputActionResponseSchema as z };
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as apiPaths } from "./api-schema2.js";
|
|
3
3
|
import { n as codexRelayHome, r as legacyCodexRelayDataPath, t as codexRelayDataPath } from "./paths.js";
|
|
4
4
|
import { Command } from "@commander-js/extra-typings";
|
|
5
5
|
import qrcode from "qrcode-terminal";
|