@autohq/cli 0.1.220 → 0.1.221
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/agent-bridge.js +78 -1
- package/dist/index.js +87 -1
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -23319,7 +23319,7 @@ Object.assign(lookup, {
|
|
|
23319
23319
|
// package.json
|
|
23320
23320
|
var package_default = {
|
|
23321
23321
|
name: "@autohq/cli",
|
|
23322
|
-
version: "0.1.
|
|
23322
|
+
version: "0.1.221",
|
|
23323
23323
|
license: "SEE LICENSE IN README.md",
|
|
23324
23324
|
publishConfig: {
|
|
23325
23325
|
access: "public"
|
|
@@ -24642,6 +24642,83 @@ function userContentProjections(message) {
|
|
|
24642
24642
|
return projections;
|
|
24643
24643
|
}
|
|
24644
24644
|
|
|
24645
|
+
// ../../packages/schemas/src/codex.ts
|
|
24646
|
+
var CodexRequestIdSchema = external_exports.union([external_exports.string(), external_exports.number()]);
|
|
24647
|
+
var CodexTurnStatusSchema = external_exports.enum([
|
|
24648
|
+
"completed",
|
|
24649
|
+
"interrupted",
|
|
24650
|
+
"failed",
|
|
24651
|
+
"inProgress"
|
|
24652
|
+
]);
|
|
24653
|
+
var CodexUserMessageItemSchema = external_exports.object({ type: external_exports.literal("userMessage"), id: external_exports.string() }).passthrough();
|
|
24654
|
+
var CodexAgentMessageItemSchema = external_exports.object({
|
|
24655
|
+
type: external_exports.literal("agentMessage"),
|
|
24656
|
+
id: external_exports.string(),
|
|
24657
|
+
text: external_exports.string().default("")
|
|
24658
|
+
}).passthrough();
|
|
24659
|
+
var CodexReasoningItemSchema = external_exports.object({
|
|
24660
|
+
type: external_exports.literal("reasoning"),
|
|
24661
|
+
id: external_exports.string(),
|
|
24662
|
+
summary: external_exports.array(external_exports.string()).default([])
|
|
24663
|
+
}).passthrough();
|
|
24664
|
+
var CodexCommandExecutionItemSchema = external_exports.object({
|
|
24665
|
+
type: external_exports.literal("commandExecution"),
|
|
24666
|
+
id: external_exports.string(),
|
|
24667
|
+
command: external_exports.string().default(""),
|
|
24668
|
+
cwd: external_exports.string().optional(),
|
|
24669
|
+
status: external_exports.string().optional(),
|
|
24670
|
+
aggregatedOutput: external_exports.string().nullish(),
|
|
24671
|
+
exitCode: external_exports.number().nullish()
|
|
24672
|
+
}).passthrough();
|
|
24673
|
+
var CodexFileChangeItemSchema = external_exports.object({
|
|
24674
|
+
type: external_exports.literal("fileChange"),
|
|
24675
|
+
id: external_exports.string(),
|
|
24676
|
+
status: external_exports.string().optional(),
|
|
24677
|
+
changes: external_exports.array(external_exports.unknown()).default([])
|
|
24678
|
+
}).passthrough();
|
|
24679
|
+
var CodexMcpToolCallItemSchema = external_exports.object({
|
|
24680
|
+
type: external_exports.literal("mcpToolCall"),
|
|
24681
|
+
id: external_exports.string(),
|
|
24682
|
+
server: external_exports.string().default(""),
|
|
24683
|
+
tool: external_exports.string().default(""),
|
|
24684
|
+
status: external_exports.string().optional(),
|
|
24685
|
+
arguments: external_exports.unknown().optional(),
|
|
24686
|
+
result: external_exports.unknown().nullish(),
|
|
24687
|
+
error: external_exports.object({ message: external_exports.string() }).passthrough().nullish()
|
|
24688
|
+
}).passthrough();
|
|
24689
|
+
var CodexItemSchema = external_exports.discriminatedUnion("type", [
|
|
24690
|
+
CodexUserMessageItemSchema,
|
|
24691
|
+
CodexAgentMessageItemSchema,
|
|
24692
|
+
CodexReasoningItemSchema,
|
|
24693
|
+
CodexCommandExecutionItemSchema,
|
|
24694
|
+
CodexFileChangeItemSchema,
|
|
24695
|
+
CodexMcpToolCallItemSchema
|
|
24696
|
+
]);
|
|
24697
|
+
var OptionalCodexItemSchema = external_exports.unknown().transform((value2) => {
|
|
24698
|
+
const parsed = CodexItemSchema.safeParse(value2);
|
|
24699
|
+
return parsed.success ? parsed.data : null;
|
|
24700
|
+
});
|
|
24701
|
+
var CodexItemEnvelopeSchema = external_exports.object({
|
|
24702
|
+
threadId: external_exports.string(),
|
|
24703
|
+
turnId: external_exports.string(),
|
|
24704
|
+
item: OptionalCodexItemSchema
|
|
24705
|
+
}).passthrough();
|
|
24706
|
+
var CodexTurnEnvelopeSchema = external_exports.object({
|
|
24707
|
+
threadId: external_exports.string(),
|
|
24708
|
+
turn: external_exports.object({
|
|
24709
|
+
id: external_exports.string(),
|
|
24710
|
+
status: CodexTurnStatusSchema,
|
|
24711
|
+
error: external_exports.object({ message: external_exports.string() }).passthrough().nullish()
|
|
24712
|
+
}).passthrough()
|
|
24713
|
+
}).passthrough();
|
|
24714
|
+
var CodexFrameSchema = external_exports.object({
|
|
24715
|
+
id: CodexRequestIdSchema.optional(),
|
|
24716
|
+
method: external_exports.string().optional(),
|
|
24717
|
+
params: external_exports.unknown().optional(),
|
|
24718
|
+
result: external_exports.unknown().optional(),
|
|
24719
|
+
error: external_exports.object({ message: external_exports.string().optional() }).passthrough().optional()
|
|
24720
|
+
}).passthrough();
|
|
24721
|
+
|
|
24645
24722
|
// ../../packages/schemas/src/resources.ts
|
|
24646
24723
|
var ResourceNameSchema = external_exports.string().trim().min(1).max(128).regex(/^[A-Za-z0-9_.-]+$/);
|
|
24647
24724
|
var StringMapSchema = external_exports.record(external_exports.string().min(1), external_exports.string());
|
package/dist/index.js
CHANGED
|
@@ -16197,6 +16197,91 @@ var init_claude_code = __esm({
|
|
|
16197
16197
|
}
|
|
16198
16198
|
});
|
|
16199
16199
|
|
|
16200
|
+
// ../../packages/schemas/src/codex.ts
|
|
16201
|
+
var CodexRequestIdSchema, CodexTurnStatusSchema, CodexUserMessageItemSchema, CodexAgentMessageItemSchema, CodexReasoningItemSchema, CodexCommandExecutionItemSchema, CodexFileChangeItemSchema, CodexMcpToolCallItemSchema, CodexItemSchema, OptionalCodexItemSchema, CodexItemEnvelopeSchema, CodexTurnEnvelopeSchema, CodexFrameSchema;
|
|
16202
|
+
var init_codex = __esm({
|
|
16203
|
+
"../../packages/schemas/src/codex.ts"() {
|
|
16204
|
+
"use strict";
|
|
16205
|
+
init_zod();
|
|
16206
|
+
init_primitives();
|
|
16207
|
+
CodexRequestIdSchema = external_exports.union([external_exports.string(), external_exports.number()]);
|
|
16208
|
+
CodexTurnStatusSchema = external_exports.enum([
|
|
16209
|
+
"completed",
|
|
16210
|
+
"interrupted",
|
|
16211
|
+
"failed",
|
|
16212
|
+
"inProgress"
|
|
16213
|
+
]);
|
|
16214
|
+
CodexUserMessageItemSchema = external_exports.object({ type: external_exports.literal("userMessage"), id: external_exports.string() }).passthrough();
|
|
16215
|
+
CodexAgentMessageItemSchema = external_exports.object({
|
|
16216
|
+
type: external_exports.literal("agentMessage"),
|
|
16217
|
+
id: external_exports.string(),
|
|
16218
|
+
text: external_exports.string().default("")
|
|
16219
|
+
}).passthrough();
|
|
16220
|
+
CodexReasoningItemSchema = external_exports.object({
|
|
16221
|
+
type: external_exports.literal("reasoning"),
|
|
16222
|
+
id: external_exports.string(),
|
|
16223
|
+
summary: external_exports.array(external_exports.string()).default([])
|
|
16224
|
+
}).passthrough();
|
|
16225
|
+
CodexCommandExecutionItemSchema = external_exports.object({
|
|
16226
|
+
type: external_exports.literal("commandExecution"),
|
|
16227
|
+
id: external_exports.string(),
|
|
16228
|
+
command: external_exports.string().default(""),
|
|
16229
|
+
cwd: external_exports.string().optional(),
|
|
16230
|
+
status: external_exports.string().optional(),
|
|
16231
|
+
aggregatedOutput: external_exports.string().nullish(),
|
|
16232
|
+
exitCode: external_exports.number().nullish()
|
|
16233
|
+
}).passthrough();
|
|
16234
|
+
CodexFileChangeItemSchema = external_exports.object({
|
|
16235
|
+
type: external_exports.literal("fileChange"),
|
|
16236
|
+
id: external_exports.string(),
|
|
16237
|
+
status: external_exports.string().optional(),
|
|
16238
|
+
changes: external_exports.array(external_exports.unknown()).default([])
|
|
16239
|
+
}).passthrough();
|
|
16240
|
+
CodexMcpToolCallItemSchema = external_exports.object({
|
|
16241
|
+
type: external_exports.literal("mcpToolCall"),
|
|
16242
|
+
id: external_exports.string(),
|
|
16243
|
+
server: external_exports.string().default(""),
|
|
16244
|
+
tool: external_exports.string().default(""),
|
|
16245
|
+
status: external_exports.string().optional(),
|
|
16246
|
+
arguments: external_exports.unknown().optional(),
|
|
16247
|
+
result: external_exports.unknown().nullish(),
|
|
16248
|
+
error: external_exports.object({ message: external_exports.string() }).passthrough().nullish()
|
|
16249
|
+
}).passthrough();
|
|
16250
|
+
CodexItemSchema = external_exports.discriminatedUnion("type", [
|
|
16251
|
+
CodexUserMessageItemSchema,
|
|
16252
|
+
CodexAgentMessageItemSchema,
|
|
16253
|
+
CodexReasoningItemSchema,
|
|
16254
|
+
CodexCommandExecutionItemSchema,
|
|
16255
|
+
CodexFileChangeItemSchema,
|
|
16256
|
+
CodexMcpToolCallItemSchema
|
|
16257
|
+
]);
|
|
16258
|
+
OptionalCodexItemSchema = external_exports.unknown().transform((value) => {
|
|
16259
|
+
const parsed = CodexItemSchema.safeParse(value);
|
|
16260
|
+
return parsed.success ? parsed.data : null;
|
|
16261
|
+
});
|
|
16262
|
+
CodexItemEnvelopeSchema = external_exports.object({
|
|
16263
|
+
threadId: external_exports.string(),
|
|
16264
|
+
turnId: external_exports.string(),
|
|
16265
|
+
item: OptionalCodexItemSchema
|
|
16266
|
+
}).passthrough();
|
|
16267
|
+
CodexTurnEnvelopeSchema = external_exports.object({
|
|
16268
|
+
threadId: external_exports.string(),
|
|
16269
|
+
turn: external_exports.object({
|
|
16270
|
+
id: external_exports.string(),
|
|
16271
|
+
status: CodexTurnStatusSchema,
|
|
16272
|
+
error: external_exports.object({ message: external_exports.string() }).passthrough().nullish()
|
|
16273
|
+
}).passthrough()
|
|
16274
|
+
}).passthrough();
|
|
16275
|
+
CodexFrameSchema = external_exports.object({
|
|
16276
|
+
id: CodexRequestIdSchema.optional(),
|
|
16277
|
+
method: external_exports.string().optional(),
|
|
16278
|
+
params: external_exports.unknown().optional(),
|
|
16279
|
+
result: external_exports.unknown().optional(),
|
|
16280
|
+
error: external_exports.object({ message: external_exports.string().optional() }).passthrough().optional()
|
|
16281
|
+
}).passthrough();
|
|
16282
|
+
}
|
|
16283
|
+
});
|
|
16284
|
+
|
|
16200
16285
|
// ../../packages/schemas/src/conversation-reducer.ts
|
|
16201
16286
|
function reduceConversationRealtimeEvent(entries, event) {
|
|
16202
16287
|
if (event.type === "conversation.delta") {
|
|
@@ -19192,6 +19277,7 @@ var init_src = __esm({
|
|
|
19192
19277
|
init_auth();
|
|
19193
19278
|
init_chat();
|
|
19194
19279
|
init_claude_code();
|
|
19280
|
+
init_codex();
|
|
19195
19281
|
init_conversation();
|
|
19196
19282
|
init_conversation_reducer();
|
|
19197
19283
|
init_connections();
|
|
@@ -21910,7 +21996,7 @@ var init_package = __esm({
|
|
|
21910
21996
|
"package.json"() {
|
|
21911
21997
|
package_default = {
|
|
21912
21998
|
name: "@autohq/cli",
|
|
21913
|
-
version: "0.1.
|
|
21999
|
+
version: "0.1.221",
|
|
21914
22000
|
license: "SEE LICENSE IN README.md",
|
|
21915
22001
|
publishConfig: {
|
|
21916
22002
|
access: "public"
|