@perstack/core 0.0.32 → 0.0.33
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/src/index.d.ts +2734 -209
- package/dist/src/index.js +731 -17
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1074,6 +1074,8 @@ interface Checkpoint {
|
|
|
1074
1074
|
toolName: string;
|
|
1075
1075
|
/** Checkpoint ID of the parent */
|
|
1076
1076
|
checkpointId: string;
|
|
1077
|
+
/** Run ID of the parent */
|
|
1078
|
+
runId: string;
|
|
1077
1079
|
};
|
|
1078
1080
|
/** Accumulated token usage */
|
|
1079
1081
|
usage: Usage;
|
|
@@ -1245,6 +1247,7 @@ declare const checkpointSchema: z.ZodObject<{
|
|
|
1245
1247
|
toolCallId: z.ZodString;
|
|
1246
1248
|
toolName: z.ZodString;
|
|
1247
1249
|
checkpointId: z.ZodString;
|
|
1250
|
+
runId: z.ZodString;
|
|
1248
1251
|
}, z.core.$strip>>;
|
|
1249
1252
|
usage: z.ZodObject<{
|
|
1250
1253
|
inputTokens: z.ZodNumber;
|
|
@@ -3106,6 +3109,7 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
3106
3109
|
toolCallId: z.ZodString;
|
|
3107
3110
|
toolName: z.ZodString;
|
|
3108
3111
|
checkpointId: z.ZodString;
|
|
3112
|
+
runId: z.ZodString;
|
|
3109
3113
|
}, z.core.$strip>>;
|
|
3110
3114
|
usage: z.ZodObject<{
|
|
3111
3115
|
inputTokens: z.ZodNumber;
|
|
@@ -3213,14 +3217,23 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
3213
3217
|
}, z.core.$strip>>;
|
|
3214
3218
|
}, z.core.$strip>;
|
|
3215
3219
|
/**
|
|
3216
|
-
* Expert
|
|
3220
|
+
* Expert state events - state machine transitions during execution.
|
|
3217
3221
|
* All events contain deeply serializable properties for checkpoint storage.
|
|
3218
3222
|
*/
|
|
3219
|
-
type
|
|
3223
|
+
type ExpertStatePayloads = {
|
|
3220
3224
|
startRun: {
|
|
3221
3225
|
initialCheckpoint: Checkpoint;
|
|
3222
3226
|
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3223
3227
|
};
|
|
3228
|
+
/** Resume from stoppedByDelegate or stoppedByInteractiveTool */
|
|
3229
|
+
resumeFromStop: {
|
|
3230
|
+
checkpoint: Checkpoint;
|
|
3231
|
+
};
|
|
3232
|
+
/** Proceed to CallingInteractiveTools from ResumingFromStop */
|
|
3233
|
+
proceedToInteractiveTools: {
|
|
3234
|
+
pendingToolCalls: ToolCall[];
|
|
3235
|
+
partialToolResults: ToolResult[];
|
|
3236
|
+
};
|
|
3224
3237
|
startGeneration: {
|
|
3225
3238
|
messages: Message[];
|
|
3226
3239
|
};
|
|
@@ -3236,16 +3249,13 @@ type ExpertEventPayloads = {
|
|
|
3236
3249
|
toolCalls: ToolCall[];
|
|
3237
3250
|
usage: Usage;
|
|
3238
3251
|
};
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
};
|
|
3244
|
-
callDelegate: {
|
|
3245
|
-
newMessage: ExpertMessage;
|
|
3246
|
-
toolCalls: ToolCall[];
|
|
3247
|
-
usage: Usage;
|
|
3252
|
+
/** Internal: MCP tools finished, proceed to delegates */
|
|
3253
|
+
finishMcpTools: {
|
|
3254
|
+
partialToolResults: ToolResult[];
|
|
3255
|
+
pendingToolCalls: ToolCall[];
|
|
3248
3256
|
};
|
|
3257
|
+
/** Internal: No delegates, proceed to interactive tools */
|
|
3258
|
+
skipDelegates: object;
|
|
3249
3259
|
resolveToolResults: {
|
|
3250
3260
|
toolResults: ToolResult[];
|
|
3251
3261
|
};
|
|
@@ -3259,9 +3269,6 @@ type ExpertEventPayloads = {
|
|
|
3259
3269
|
pendingToolCalls: ToolCall[];
|
|
3260
3270
|
partialToolResults: ToolResult[];
|
|
3261
3271
|
};
|
|
3262
|
-
finishAllToolCalls: {
|
|
3263
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3264
|
-
};
|
|
3265
3272
|
continueToNextStep: {
|
|
3266
3273
|
checkpoint: Checkpoint;
|
|
3267
3274
|
step: Step;
|
|
@@ -3296,7 +3303,33 @@ type ExpertEventPayloads = {
|
|
|
3296
3303
|
usage: Usage;
|
|
3297
3304
|
};
|
|
3298
3305
|
};
|
|
3299
|
-
/**
|
|
3306
|
+
/**
|
|
3307
|
+
* Streaming events - reasoning/result streaming during LLM generation.
|
|
3308
|
+
* Moved from RuntimeEvent to RunEvent to support proper attribution in parallel runs.
|
|
3309
|
+
*/
|
|
3310
|
+
type StreamingPayloads = {
|
|
3311
|
+
/** Start of reasoning stream (display hint) */
|
|
3312
|
+
startStreamingReasoning: object;
|
|
3313
|
+
/** Streaming reasoning delta */
|
|
3314
|
+
streamReasoning: {
|
|
3315
|
+
delta: string;
|
|
3316
|
+
};
|
|
3317
|
+
/** Reasoning stream completion (extended thinking / test-time scaling) */
|
|
3318
|
+
completeStreamingReasoning: {
|
|
3319
|
+
text: string;
|
|
3320
|
+
};
|
|
3321
|
+
/** Start of run result stream (display hint) */
|
|
3322
|
+
startStreamingRunResult: object;
|
|
3323
|
+
/** Streaming run result delta */
|
|
3324
|
+
streamRunResult: {
|
|
3325
|
+
delta: string;
|
|
3326
|
+
};
|
|
3327
|
+
/** Run result stream completion */
|
|
3328
|
+
completeStreamingRunResult: {
|
|
3329
|
+
text: string;
|
|
3330
|
+
};
|
|
3331
|
+
};
|
|
3332
|
+
/** Base properties for all run events (both state and streaming) */
|
|
3300
3333
|
interface BaseEvent {
|
|
3301
3334
|
/** Unique event ID */
|
|
3302
3335
|
id: string;
|
|
@@ -3311,20 +3344,42 @@ interface BaseEvent {
|
|
|
3311
3344
|
/** Step number when event was emitted */
|
|
3312
3345
|
stepNumber: number;
|
|
3313
3346
|
}
|
|
3314
|
-
/**
|
|
3315
|
-
type
|
|
3316
|
-
/**
|
|
3317
|
-
type
|
|
3318
|
-
|
|
3347
|
+
/** Expert state event types (state machine transitions) */
|
|
3348
|
+
type ExpertStateEventType = keyof ExpertStatePayloads;
|
|
3349
|
+
/** Streaming event types */
|
|
3350
|
+
type StreamingEventType = keyof StreamingPayloads;
|
|
3351
|
+
/** All run event types (state + streaming) */
|
|
3352
|
+
type EventType = ExpertStateEventType | StreamingEventType;
|
|
3353
|
+
/** Union type of expert state events */
|
|
3354
|
+
type ExpertStateEvent = {
|
|
3355
|
+
[K in ExpertStateEventType]: BaseEvent & {
|
|
3356
|
+
type: K;
|
|
3357
|
+
} & ExpertStatePayloads[K];
|
|
3358
|
+
}[ExpertStateEventType];
|
|
3359
|
+
/** Union type of streaming events */
|
|
3360
|
+
type StreamingEvent = {
|
|
3361
|
+
[K in StreamingEventType]: BaseEvent & {
|
|
3319
3362
|
type: K;
|
|
3320
|
-
} &
|
|
3321
|
-
}[
|
|
3363
|
+
} & StreamingPayloads[K];
|
|
3364
|
+
}[StreamingEventType];
|
|
3365
|
+
/** Union type of all run events (state machine + streaming) */
|
|
3366
|
+
type RunEvent = ExpertStateEvent | StreamingEvent;
|
|
3322
3367
|
/** Extract a specific event type */
|
|
3323
3368
|
type EventForType<T extends EventType> = Extract<RunEvent, {
|
|
3324
3369
|
type: T;
|
|
3325
3370
|
}>;
|
|
3326
|
-
/** Factory function to create
|
|
3327
|
-
declare function createEvent<T extends
|
|
3371
|
+
/** Factory function to create expert state events */
|
|
3372
|
+
declare function createEvent<T extends ExpertStateEventType>(type: T): (setting: RunSetting, checkpoint: Checkpoint, data: Omit<Extract<ExpertStateEvent, {
|
|
3373
|
+
type: T;
|
|
3374
|
+
}>, "type" | "id" | "expertKey" | "timestamp" | "jobId" | "runId" | "stepNumber">) => Extract<ExpertStateEvent, {
|
|
3375
|
+
type: T;
|
|
3376
|
+
}>;
|
|
3377
|
+
/** Factory function to create streaming events */
|
|
3378
|
+
declare function createStreamingEvent<T extends StreamingEventType>(type: T, setting: RunSetting, checkpoint: Checkpoint, data: Omit<Extract<StreamingEvent, {
|
|
3379
|
+
type: T;
|
|
3380
|
+
}>, "type" | "id" | "expertKey" | "timestamp" | "jobId" | "runId" | "stepNumber">): Extract<StreamingEvent, {
|
|
3381
|
+
type: T;
|
|
3382
|
+
}>;
|
|
3328
3383
|
declare const startRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3329
3384
|
type: "startRun";
|
|
3330
3385
|
} & {
|
|
@@ -3336,6 +3391,26 @@ declare const startRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit
|
|
|
3336
3391
|
initialCheckpoint: Checkpoint;
|
|
3337
3392
|
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3338
3393
|
};
|
|
3394
|
+
declare const resumeFromStop: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3395
|
+
type: "resumeFromStop";
|
|
3396
|
+
} & {
|
|
3397
|
+
checkpoint: Checkpoint;
|
|
3398
|
+
}, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3399
|
+
type: "resumeFromStop";
|
|
3400
|
+
} & {
|
|
3401
|
+
checkpoint: Checkpoint;
|
|
3402
|
+
};
|
|
3403
|
+
declare const proceedToInteractiveTools: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3404
|
+
type: "proceedToInteractiveTools";
|
|
3405
|
+
} & {
|
|
3406
|
+
pendingToolCalls: ToolCall[];
|
|
3407
|
+
partialToolResults: ToolResult[];
|
|
3408
|
+
}, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3409
|
+
type: "proceedToInteractiveTools";
|
|
3410
|
+
} & {
|
|
3411
|
+
pendingToolCalls: ToolCall[];
|
|
3412
|
+
partialToolResults: ToolResult[];
|
|
3413
|
+
};
|
|
3339
3414
|
declare const startGeneration: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3340
3415
|
type: "startGeneration";
|
|
3341
3416
|
} & {
|
|
@@ -3375,32 +3450,22 @@ declare const callTools: (setting: RunSetting, checkpoint: Checkpoint, data: Omi
|
|
|
3375
3450
|
toolCalls: ToolCall[];
|
|
3376
3451
|
usage: Usage;
|
|
3377
3452
|
};
|
|
3378
|
-
declare const
|
|
3379
|
-
type: "
|
|
3380
|
-
} & {
|
|
3381
|
-
newMessage: ExpertMessage;
|
|
3382
|
-
toolCall: ToolCall;
|
|
3383
|
-
usage: Usage;
|
|
3384
|
-
}, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3385
|
-
type: "callInteractiveTool";
|
|
3386
|
-
} & {
|
|
3387
|
-
newMessage: ExpertMessage;
|
|
3388
|
-
toolCall: ToolCall;
|
|
3389
|
-
usage: Usage;
|
|
3390
|
-
};
|
|
3391
|
-
declare const callDelegate: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3392
|
-
type: "callDelegate";
|
|
3453
|
+
declare const finishMcpTools: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3454
|
+
type: "finishMcpTools";
|
|
3393
3455
|
} & {
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
usage: Usage;
|
|
3456
|
+
partialToolResults: ToolResult[];
|
|
3457
|
+
pendingToolCalls: ToolCall[];
|
|
3397
3458
|
}, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3398
|
-
type: "
|
|
3459
|
+
type: "finishMcpTools";
|
|
3399
3460
|
} & {
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
usage: Usage;
|
|
3461
|
+
partialToolResults: ToolResult[];
|
|
3462
|
+
pendingToolCalls: ToolCall[];
|
|
3403
3463
|
};
|
|
3464
|
+
declare const skipDelegates: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3465
|
+
type: "skipDelegates";
|
|
3466
|
+
} & object, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3467
|
+
type: "skipDelegates";
|
|
3468
|
+
} & object;
|
|
3404
3469
|
declare const resolveToolResults: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3405
3470
|
type: "resolveToolResults";
|
|
3406
3471
|
} & {
|
|
@@ -3439,15 +3504,6 @@ declare const resumeToolCalls: (setting: RunSetting, checkpoint: Checkpoint, dat
|
|
|
3439
3504
|
pendingToolCalls: ToolCall[];
|
|
3440
3505
|
partialToolResults: ToolResult[];
|
|
3441
3506
|
};
|
|
3442
|
-
declare const finishAllToolCalls: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3443
|
-
type: "finishAllToolCalls";
|
|
3444
|
-
} & {
|
|
3445
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3446
|
-
}, "type" | "id" | "jobId" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
3447
|
-
type: "finishAllToolCalls";
|
|
3448
|
-
} & {
|
|
3449
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3450
|
-
};
|
|
3451
3507
|
declare const completeRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
3452
3508
|
type: "completeRun";
|
|
3453
3509
|
} & {
|
|
@@ -3532,7 +3588,7 @@ declare const continueToNextStep: (setting: RunSetting, checkpoint: Checkpoint,
|
|
|
3532
3588
|
step: Step;
|
|
3533
3589
|
nextCheckpoint: Checkpoint;
|
|
3534
3590
|
};
|
|
3535
|
-
/** Base properties for runtime events */
|
|
3591
|
+
/** Base properties for runtime events (infrastructure-level, no expertKey) */
|
|
3536
3592
|
interface BaseRuntimeEvent {
|
|
3537
3593
|
/** Unique event ID */
|
|
3538
3594
|
id: string;
|
|
@@ -3543,7 +3599,7 @@ interface BaseRuntimeEvent {
|
|
|
3543
3599
|
/** Run ID */
|
|
3544
3600
|
runId: string;
|
|
3545
3601
|
}
|
|
3546
|
-
/** Runtime event payloads (infrastructure-level events) */
|
|
3602
|
+
/** Runtime event payloads (infrastructure-level events only) */
|
|
3547
3603
|
type RuntimeEventPayloads = {
|
|
3548
3604
|
initializeRuntime: {
|
|
3549
3605
|
runtimeVersion: string;
|
|
@@ -3585,9 +3641,6 @@ type RuntimeEventPayloads = {
|
|
|
3585
3641
|
skillDisconnected: {
|
|
3586
3642
|
skillName: string;
|
|
3587
3643
|
};
|
|
3588
|
-
streamingText: {
|
|
3589
|
-
text: string;
|
|
3590
|
-
};
|
|
3591
3644
|
/** Docker build progress event */
|
|
3592
3645
|
dockerBuildProgress: {
|
|
3593
3646
|
stage: "pulling" | "building" | "complete" | "error";
|
|
@@ -3608,22 +3661,6 @@ type RuntimeEventPayloads = {
|
|
|
3608
3661
|
port: number;
|
|
3609
3662
|
reason?: string;
|
|
3610
3663
|
};
|
|
3611
|
-
/** Reasoning completion event (extended thinking / test-time scaling) */
|
|
3612
|
-
completeReasoning: {
|
|
3613
|
-
text: string;
|
|
3614
|
-
};
|
|
3615
|
-
/** Start of reasoning stream (display hint) */
|
|
3616
|
-
startReasoning: Record<string, never>;
|
|
3617
|
-
/** Streaming reasoning delta */
|
|
3618
|
-
streamReasoning: {
|
|
3619
|
-
delta: string;
|
|
3620
|
-
};
|
|
3621
|
-
/** Start of run result stream (display hint) */
|
|
3622
|
-
startRunResult: Record<string, never>;
|
|
3623
|
-
/** Streaming run result delta */
|
|
3624
|
-
streamRunResult: {
|
|
3625
|
-
delta: string;
|
|
3626
|
-
};
|
|
3627
3664
|
};
|
|
3628
3665
|
/** All runtime event types */
|
|
3629
3666
|
type RuntimeEventType = keyof RuntimeEventPayloads;
|
|
@@ -3639,9 +3676,20 @@ type RuntimeEventForType<T extends RuntimeEventType> = Extract<RuntimeEvent, {
|
|
|
3639
3676
|
}>;
|
|
3640
3677
|
/** Factory function to create runtime events */
|
|
3641
3678
|
declare function createRuntimeEvent<T extends RuntimeEventType>(type: T, jobId: string, runId: string, data: Omit<RuntimeEventForType<T>, "type" | "id" | "timestamp" | "jobId" | "runId">): RuntimeEventForType<T>;
|
|
3679
|
+
/** Union of all Perstack events (RunEvent for state machine, RuntimeEvent for environment) */
|
|
3680
|
+
type PerstackEvent = RunEvent | RuntimeEvent;
|
|
3681
|
+
/** Validate if a string is a valid RunEvent type (ExpertStateEvent or StreamingEvent) */
|
|
3682
|
+
declare function isValidEventType(type: string): type is EventType;
|
|
3683
|
+
/** Validate if a string is a valid RuntimeEvent type */
|
|
3684
|
+
declare function isValidRuntimeEventType(type: string): type is RuntimeEventType;
|
|
3642
3685
|
|
|
3686
|
+
/** Setting type for adapter run - external input with required jobId and runId added by dispatcher */
|
|
3687
|
+
type AdapterRunSetting = RunParamsInput["setting"] & {
|
|
3688
|
+
jobId: string;
|
|
3689
|
+
runId: string;
|
|
3690
|
+
};
|
|
3643
3691
|
type AdapterRunParams = {
|
|
3644
|
-
setting:
|
|
3692
|
+
setting: AdapterRunSetting;
|
|
3645
3693
|
config?: PerstackConfig;
|
|
3646
3694
|
checkpoint?: Checkpoint;
|
|
3647
3695
|
eventListener?: (event: RunEvent | RuntimeEvent) => void;
|
|
@@ -3651,6 +3699,8 @@ type AdapterRunParams = {
|
|
|
3651
3699
|
workspace?: string;
|
|
3652
3700
|
/** Additional environment variable names to pass to Docker runtime */
|
|
3653
3701
|
additionalEnvKeys?: string[];
|
|
3702
|
+
/** Additional volume mounts for Docker runtime (format: "hostPath:containerPath:mode") */
|
|
3703
|
+
additionalVolumes?: string[];
|
|
3654
3704
|
};
|
|
3655
3705
|
type AdapterRunResult = {
|
|
3656
3706
|
checkpoint: Checkpoint;
|
|
@@ -3708,7 +3758,6 @@ declare function createNormalizedCheckpoint(params: CreateCheckpointParams): Che
|
|
|
3708
3758
|
declare function createStartRunEvent(jobId: string, runId: string, expertKey: string, checkpoint: Checkpoint): RunEvent;
|
|
3709
3759
|
declare function createRuntimeInitEvent(jobId: string, runId: string, expertName: string, runtime: RuntimeName, version: string, query?: string): RuntimeEvent;
|
|
3710
3760
|
declare function createCompleteRunEvent(jobId: string, runId: string, expertKey: string, checkpoint: Checkpoint, output: string, startedAt?: number): RunEvent;
|
|
3711
|
-
declare function createStreamingTextEvent(jobId: string, runId: string, text: string): RuntimeEvent;
|
|
3712
3761
|
declare function createCallToolsEvent(jobId: string, runId: string, expertKey: string, stepNumber: number, toolCalls: ToolCall[], _checkpoint: Checkpoint): RunEvent;
|
|
3713
3762
|
declare function createResolveToolResultsEvent(jobId: string, runId: string, expertKey: string, stepNumber: number, toolResults: ToolResult[]): RunEvent;
|
|
3714
3763
|
declare function createToolMessage(toolCallId: string, toolName: string, resultText: string): ToolMessage;
|
|
@@ -3763,146 +3812,2584 @@ declare const knownModels: {
|
|
|
3763
3812
|
}[];
|
|
3764
3813
|
}[];
|
|
3765
3814
|
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
3770
|
-
stoppedByError: "stoppedByError";
|
|
3771
|
-
running: "running";
|
|
3772
|
-
stoppedByMaxSteps: "stoppedByMaxSteps";
|
|
3773
|
-
}>;
|
|
3774
|
-
interface Job {
|
|
3815
|
+
/** Base fields shared by all activities */
|
|
3816
|
+
interface BaseActivity {
|
|
3817
|
+
/** Unique activity ID */
|
|
3775
3818
|
id: string;
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3819
|
+
/** Expert key that executed this activity */
|
|
3820
|
+
expertKey: string;
|
|
3821
|
+
/** Run ID this activity belongs to */
|
|
3822
|
+
runId: string;
|
|
3823
|
+
/** Previous activity ID for daisy chain within the same run */
|
|
3824
|
+
previousActivityId?: string;
|
|
3825
|
+
/** Delegation info if this run was delegated from another */
|
|
3826
|
+
delegatedBy?: {
|
|
3827
|
+
expertKey: string;
|
|
3828
|
+
runId: string;
|
|
3829
|
+
};
|
|
3830
|
+
/** LLM's reasoning/thinking process before executing this action */
|
|
3831
|
+
reasoning?: string;
|
|
3783
3832
|
}
|
|
3784
|
-
|
|
3833
|
+
/** Query activity - User input that starts a run */
|
|
3834
|
+
interface QueryActivity extends BaseActivity {
|
|
3835
|
+
type: "query";
|
|
3836
|
+
text: string;
|
|
3837
|
+
}
|
|
3838
|
+
declare const queryActivitySchema: z.ZodObject<{
|
|
3785
3839
|
id: z.ZodString;
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
}
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
usage: z.ZodObject<{
|
|
3797
|
-
inputTokens: z.ZodNumber;
|
|
3798
|
-
outputTokens: z.ZodNumber;
|
|
3799
|
-
reasoningTokens: z.ZodNumber;
|
|
3800
|
-
totalTokens: z.ZodNumber;
|
|
3801
|
-
cachedInputTokens: z.ZodNumber;
|
|
3802
|
-
}, z.core.$strip>;
|
|
3803
|
-
startedAt: z.ZodNumber;
|
|
3804
|
-
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
3840
|
+
expertKey: z.ZodString;
|
|
3841
|
+
runId: z.ZodString;
|
|
3842
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3843
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3844
|
+
expertKey: z.ZodString;
|
|
3845
|
+
runId: z.ZodString;
|
|
3846
|
+
}, z.core.$strip>>;
|
|
3847
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
type: z.ZodLiteral<"query">;
|
|
3849
|
+
text: z.ZodString;
|
|
3805
3850
|
}, z.core.$strip>;
|
|
3806
|
-
|
|
3807
|
-
interface
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
inputSchema: Record<string, unknown>;
|
|
3851
|
+
/** Retry activity - generation failed and will be retried */
|
|
3852
|
+
interface RetryActivity extends BaseActivity {
|
|
3853
|
+
type: "retry";
|
|
3854
|
+
error: string;
|
|
3855
|
+
message: string;
|
|
3812
3856
|
}
|
|
3813
|
-
declare const
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3857
|
+
declare const retryActivitySchema: z.ZodObject<{
|
|
3858
|
+
id: z.ZodString;
|
|
3859
|
+
expertKey: z.ZodString;
|
|
3860
|
+
runId: z.ZodString;
|
|
3861
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3862
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3863
|
+
expertKey: z.ZodString;
|
|
3864
|
+
runId: z.ZodString;
|
|
3865
|
+
}, z.core.$strip>>;
|
|
3866
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3867
|
+
type: z.ZodLiteral<"retry">;
|
|
3868
|
+
error: z.ZodString;
|
|
3869
|
+
message: z.ZodString;
|
|
3818
3870
|
}, z.core.$strip>;
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
description?: string;
|
|
3824
|
-
instruction: string;
|
|
3825
|
-
skills: Record<string, Skill>;
|
|
3826
|
-
delegates: string[];
|
|
3827
|
-
tags: string[];
|
|
3828
|
-
toolDefinitions: LockfileToolDefinition[];
|
|
3871
|
+
/** Complete activity - Run completed successfully with final result */
|
|
3872
|
+
interface CompleteActivity extends BaseActivity {
|
|
3873
|
+
type: "complete";
|
|
3874
|
+
text: string;
|
|
3829
3875
|
}
|
|
3830
|
-
declare const
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
name: z.ZodString;
|
|
3839
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3840
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
3841
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3842
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3843
|
-
command: z.ZodString;
|
|
3844
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
3845
|
-
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3846
|
-
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3847
|
-
lazyInit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3848
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3849
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
3850
|
-
name: z.ZodString;
|
|
3851
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3852
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
3853
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3854
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3855
|
-
endpoint: z.ZodString;
|
|
3856
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3857
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
3858
|
-
name: z.ZodString;
|
|
3859
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3860
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
3861
|
-
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3862
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3863
|
-
inputJsonSchema: z.ZodString;
|
|
3864
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
3865
|
-
[k: string]: {
|
|
3866
|
-
name: string;
|
|
3867
|
-
inputJsonSchema: string;
|
|
3868
|
-
description?: string | undefined;
|
|
3869
|
-
};
|
|
3870
|
-
}, Record<string, {
|
|
3871
|
-
inputJsonSchema: string;
|
|
3872
|
-
description?: string | undefined;
|
|
3873
|
-
}>>>;
|
|
3874
|
-
}, z.core.$strip>], "type">>;
|
|
3875
|
-
delegates: z.ZodArray<z.ZodString>;
|
|
3876
|
-
tags: z.ZodArray<z.ZodString>;
|
|
3877
|
-
toolDefinitions: z.ZodArray<z.ZodObject<{
|
|
3878
|
-
skillName: z.ZodString;
|
|
3879
|
-
name: z.ZodString;
|
|
3880
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3881
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3876
|
+
declare const completeActivitySchema: z.ZodObject<{
|
|
3877
|
+
id: z.ZodString;
|
|
3878
|
+
expertKey: z.ZodString;
|
|
3879
|
+
runId: z.ZodString;
|
|
3880
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3881
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3882
|
+
expertKey: z.ZodString;
|
|
3883
|
+
runId: z.ZodString;
|
|
3882
3884
|
}, z.core.$strip>>;
|
|
3885
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3886
|
+
type: z.ZodLiteral<"complete">;
|
|
3887
|
+
text: z.ZodString;
|
|
3883
3888
|
}, z.core.$strip>;
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
+
/** Error activity - When run stopped by error */
|
|
3890
|
+
interface ErrorActivity extends BaseActivity {
|
|
3891
|
+
type: "error";
|
|
3892
|
+
error?: string;
|
|
3893
|
+
errorName?: string;
|
|
3894
|
+
isRetryable?: boolean;
|
|
3889
3895
|
}
|
|
3890
|
-
declare const
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3896
|
+
declare const errorActivitySchema: z.ZodObject<{
|
|
3897
|
+
id: z.ZodString;
|
|
3898
|
+
expertKey: z.ZodString;
|
|
3899
|
+
runId: z.ZodString;
|
|
3900
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3901
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3902
|
+
expertKey: z.ZodString;
|
|
3903
|
+
runId: z.ZodString;
|
|
3904
|
+
}, z.core.$strip>>;
|
|
3905
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3906
|
+
type: z.ZodLiteral<"error">;
|
|
3907
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3908
|
+
errorName: z.ZodOptional<z.ZodString>;
|
|
3909
|
+
isRetryable: z.ZodOptional<z.ZodBoolean>;
|
|
3910
|
+
}, z.core.$strip>;
|
|
3911
|
+
/** Attempt completion activity - Expert signaling task completion */
|
|
3912
|
+
interface AttemptCompletionActivity extends BaseActivity {
|
|
3913
|
+
type: "attemptCompletion";
|
|
3914
|
+
remainingTodos?: Array<{
|
|
3915
|
+
id: number;
|
|
3916
|
+
title: string;
|
|
3917
|
+
completed: boolean;
|
|
3918
|
+
}>;
|
|
3919
|
+
error?: string;
|
|
3920
|
+
}
|
|
3921
|
+
declare const attemptCompletionActivitySchema: z.ZodObject<{
|
|
3922
|
+
id: z.ZodString;
|
|
3923
|
+
expertKey: z.ZodString;
|
|
3924
|
+
runId: z.ZodString;
|
|
3925
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3926
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3927
|
+
expertKey: z.ZodString;
|
|
3928
|
+
runId: z.ZodString;
|
|
3929
|
+
}, z.core.$strip>>;
|
|
3930
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3931
|
+
type: z.ZodLiteral<"attemptCompletion">;
|
|
3932
|
+
remainingTodos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3933
|
+
id: z.ZodNumber;
|
|
3934
|
+
title: z.ZodString;
|
|
3935
|
+
completed: z.ZodBoolean;
|
|
3936
|
+
}, z.core.$strip>>>;
|
|
3937
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
}, z.core.$strip>;
|
|
3939
|
+
/** Todo activity - Expert managing todo list */
|
|
3940
|
+
interface TodoActivity extends BaseActivity {
|
|
3941
|
+
type: "todo";
|
|
3942
|
+
newTodos?: string[];
|
|
3943
|
+
completedTodos?: number[];
|
|
3944
|
+
todos: Array<{
|
|
3945
|
+
id: number;
|
|
3946
|
+
title: string;
|
|
3947
|
+
completed: boolean;
|
|
3948
|
+
}>;
|
|
3949
|
+
error?: string;
|
|
3950
|
+
}
|
|
3951
|
+
declare const todoActivitySchema: z.ZodObject<{
|
|
3952
|
+
id: z.ZodString;
|
|
3953
|
+
expertKey: z.ZodString;
|
|
3954
|
+
runId: z.ZodString;
|
|
3955
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3956
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3957
|
+
expertKey: z.ZodString;
|
|
3958
|
+
runId: z.ZodString;
|
|
3959
|
+
}, z.core.$strip>>;
|
|
3960
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3961
|
+
type: z.ZodLiteral<"todo">;
|
|
3962
|
+
newTodos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3963
|
+
completedTodos: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3964
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
3965
|
+
id: z.ZodNumber;
|
|
3966
|
+
title: z.ZodString;
|
|
3967
|
+
completed: z.ZodBoolean;
|
|
3968
|
+
}, z.core.$strip>>;
|
|
3969
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3970
|
+
}, z.core.$strip>;
|
|
3971
|
+
/** Clear todo activity - Expert clearing the todo list */
|
|
3972
|
+
interface ClearTodoActivity extends BaseActivity {
|
|
3973
|
+
type: "clearTodo";
|
|
3974
|
+
error?: string;
|
|
3975
|
+
}
|
|
3976
|
+
declare const clearTodoActivitySchema: z.ZodObject<{
|
|
3977
|
+
id: z.ZodString;
|
|
3978
|
+
expertKey: z.ZodString;
|
|
3979
|
+
runId: z.ZodString;
|
|
3980
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
3982
|
+
expertKey: z.ZodString;
|
|
3983
|
+
runId: z.ZodString;
|
|
3984
|
+
}, z.core.$strip>>;
|
|
3985
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3986
|
+
type: z.ZodLiteral<"clearTodo">;
|
|
3987
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3988
|
+
}, z.core.$strip>;
|
|
3989
|
+
/** Read image file activity */
|
|
3990
|
+
interface ReadImageFileActivity extends BaseActivity {
|
|
3991
|
+
type: "readImageFile";
|
|
3992
|
+
path: string;
|
|
3993
|
+
mimeType?: string;
|
|
3994
|
+
size?: number;
|
|
3995
|
+
error?: string;
|
|
3996
|
+
}
|
|
3997
|
+
declare const readImageFileActivitySchema: z.ZodObject<{
|
|
3998
|
+
id: z.ZodString;
|
|
3999
|
+
expertKey: z.ZodString;
|
|
4000
|
+
runId: z.ZodString;
|
|
4001
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4002
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4003
|
+
expertKey: z.ZodString;
|
|
4004
|
+
runId: z.ZodString;
|
|
4005
|
+
}, z.core.$strip>>;
|
|
4006
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4007
|
+
type: z.ZodLiteral<"readImageFile">;
|
|
4008
|
+
path: z.ZodString;
|
|
4009
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
4010
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4011
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4012
|
+
}, z.core.$strip>;
|
|
4013
|
+
/** Read PDF file activity */
|
|
4014
|
+
interface ReadPdfFileActivity extends BaseActivity {
|
|
4015
|
+
type: "readPdfFile";
|
|
4016
|
+
path: string;
|
|
4017
|
+
mimeType?: string;
|
|
4018
|
+
size?: number;
|
|
4019
|
+
error?: string;
|
|
4020
|
+
}
|
|
4021
|
+
declare const readPdfFileActivitySchema: z.ZodObject<{
|
|
4022
|
+
id: z.ZodString;
|
|
4023
|
+
expertKey: z.ZodString;
|
|
4024
|
+
runId: z.ZodString;
|
|
4025
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4027
|
+
expertKey: z.ZodString;
|
|
4028
|
+
runId: z.ZodString;
|
|
4029
|
+
}, z.core.$strip>>;
|
|
4030
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4031
|
+
type: z.ZodLiteral<"readPdfFile">;
|
|
4032
|
+
path: z.ZodString;
|
|
4033
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
4034
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4035
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4036
|
+
}, z.core.$strip>;
|
|
4037
|
+
/** Read text file activity */
|
|
4038
|
+
interface ReadTextFileActivity extends BaseActivity {
|
|
4039
|
+
type: "readTextFile";
|
|
4040
|
+
path: string;
|
|
4041
|
+
content?: string;
|
|
4042
|
+
from?: number;
|
|
4043
|
+
to?: number;
|
|
4044
|
+
error?: string;
|
|
4045
|
+
}
|
|
4046
|
+
declare const readTextFileActivitySchema: z.ZodObject<{
|
|
4047
|
+
id: z.ZodString;
|
|
4048
|
+
expertKey: z.ZodString;
|
|
4049
|
+
runId: z.ZodString;
|
|
4050
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4051
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4052
|
+
expertKey: z.ZodString;
|
|
4053
|
+
runId: z.ZodString;
|
|
4054
|
+
}, z.core.$strip>>;
|
|
4055
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4056
|
+
type: z.ZodLiteral<"readTextFile">;
|
|
4057
|
+
path: z.ZodString;
|
|
4058
|
+
content: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
4060
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
4061
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4062
|
+
}, z.core.$strip>;
|
|
4063
|
+
/** Edit text file activity */
|
|
4064
|
+
interface EditTextFileActivity extends BaseActivity {
|
|
4065
|
+
type: "editTextFile";
|
|
4066
|
+
path: string;
|
|
4067
|
+
newText: string;
|
|
4068
|
+
oldText: string;
|
|
4069
|
+
error?: string;
|
|
4070
|
+
}
|
|
4071
|
+
declare const editTextFileActivitySchema: z.ZodObject<{
|
|
4072
|
+
id: z.ZodString;
|
|
4073
|
+
expertKey: z.ZodString;
|
|
4074
|
+
runId: z.ZodString;
|
|
4075
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4077
|
+
expertKey: z.ZodString;
|
|
4078
|
+
runId: z.ZodString;
|
|
4079
|
+
}, z.core.$strip>>;
|
|
4080
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4081
|
+
type: z.ZodLiteral<"editTextFile">;
|
|
4082
|
+
path: z.ZodString;
|
|
4083
|
+
newText: z.ZodString;
|
|
4084
|
+
oldText: z.ZodString;
|
|
4085
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4086
|
+
}, z.core.$strip>;
|
|
4087
|
+
/** Append text file activity */
|
|
4088
|
+
interface AppendTextFileActivity extends BaseActivity {
|
|
4089
|
+
type: "appendTextFile";
|
|
4090
|
+
path: string;
|
|
4091
|
+
text: string;
|
|
4092
|
+
error?: string;
|
|
4093
|
+
}
|
|
4094
|
+
declare const appendTextFileActivitySchema: z.ZodObject<{
|
|
4095
|
+
id: z.ZodString;
|
|
4096
|
+
expertKey: z.ZodString;
|
|
4097
|
+
runId: z.ZodString;
|
|
4098
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4099
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4100
|
+
expertKey: z.ZodString;
|
|
4101
|
+
runId: z.ZodString;
|
|
4102
|
+
}, z.core.$strip>>;
|
|
4103
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4104
|
+
type: z.ZodLiteral<"appendTextFile">;
|
|
4105
|
+
path: z.ZodString;
|
|
4106
|
+
text: z.ZodString;
|
|
4107
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4108
|
+
}, z.core.$strip>;
|
|
4109
|
+
/** Write text file activity */
|
|
4110
|
+
interface WriteTextFileActivity extends BaseActivity {
|
|
4111
|
+
type: "writeTextFile";
|
|
4112
|
+
path: string;
|
|
4113
|
+
text: string;
|
|
4114
|
+
error?: string;
|
|
4115
|
+
}
|
|
4116
|
+
declare const writeTextFileActivitySchema: z.ZodObject<{
|
|
4117
|
+
id: z.ZodString;
|
|
4118
|
+
expertKey: z.ZodString;
|
|
4119
|
+
runId: z.ZodString;
|
|
4120
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4121
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4122
|
+
expertKey: z.ZodString;
|
|
4123
|
+
runId: z.ZodString;
|
|
4124
|
+
}, z.core.$strip>>;
|
|
4125
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4126
|
+
type: z.ZodLiteral<"writeTextFile">;
|
|
4127
|
+
path: z.ZodString;
|
|
4128
|
+
text: z.ZodString;
|
|
4129
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4130
|
+
}, z.core.$strip>;
|
|
4131
|
+
/** Delete file activity */
|
|
4132
|
+
interface DeleteFileActivity extends BaseActivity {
|
|
4133
|
+
type: "deleteFile";
|
|
4134
|
+
path: string;
|
|
4135
|
+
error?: string;
|
|
4136
|
+
}
|
|
4137
|
+
declare const deleteFileActivitySchema: z.ZodObject<{
|
|
4138
|
+
id: z.ZodString;
|
|
4139
|
+
expertKey: z.ZodString;
|
|
4140
|
+
runId: z.ZodString;
|
|
4141
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4142
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4143
|
+
expertKey: z.ZodString;
|
|
4144
|
+
runId: z.ZodString;
|
|
4145
|
+
}, z.core.$strip>>;
|
|
4146
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4147
|
+
type: z.ZodLiteral<"deleteFile">;
|
|
4148
|
+
path: z.ZodString;
|
|
4149
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4150
|
+
}, z.core.$strip>;
|
|
4151
|
+
/** Delete directory activity */
|
|
4152
|
+
interface DeleteDirectoryActivity extends BaseActivity {
|
|
4153
|
+
type: "deleteDirectory";
|
|
4154
|
+
path: string;
|
|
4155
|
+
recursive?: boolean;
|
|
4156
|
+
error?: string;
|
|
4157
|
+
}
|
|
4158
|
+
declare const deleteDirectoryActivitySchema: z.ZodObject<{
|
|
4159
|
+
id: z.ZodString;
|
|
4160
|
+
expertKey: z.ZodString;
|
|
4161
|
+
runId: z.ZodString;
|
|
4162
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4164
|
+
expertKey: z.ZodString;
|
|
4165
|
+
runId: z.ZodString;
|
|
4166
|
+
}, z.core.$strip>>;
|
|
4167
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4168
|
+
type: z.ZodLiteral<"deleteDirectory">;
|
|
4169
|
+
path: z.ZodString;
|
|
4170
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
4171
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4172
|
+
}, z.core.$strip>;
|
|
4173
|
+
/** Move file activity */
|
|
4174
|
+
interface MoveFileActivity extends BaseActivity {
|
|
4175
|
+
type: "moveFile";
|
|
4176
|
+
source: string;
|
|
4177
|
+
destination: string;
|
|
4178
|
+
error?: string;
|
|
4179
|
+
}
|
|
4180
|
+
declare const moveFileActivitySchema: z.ZodObject<{
|
|
4181
|
+
id: z.ZodString;
|
|
4182
|
+
expertKey: z.ZodString;
|
|
4183
|
+
runId: z.ZodString;
|
|
4184
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4185
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4186
|
+
expertKey: z.ZodString;
|
|
4187
|
+
runId: z.ZodString;
|
|
4188
|
+
}, z.core.$strip>>;
|
|
4189
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4190
|
+
type: z.ZodLiteral<"moveFile">;
|
|
4191
|
+
source: z.ZodString;
|
|
4192
|
+
destination: z.ZodString;
|
|
4193
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4194
|
+
}, z.core.$strip>;
|
|
4195
|
+
/** Get file info activity */
|
|
4196
|
+
interface GetFileInfoActivity extends BaseActivity {
|
|
4197
|
+
type: "getFileInfo";
|
|
4198
|
+
path: string;
|
|
4199
|
+
info?: {
|
|
4200
|
+
exists: boolean;
|
|
4201
|
+
name: string;
|
|
4202
|
+
directory: string;
|
|
4203
|
+
extension: string | null;
|
|
4204
|
+
type: "file" | "directory";
|
|
4205
|
+
mimeType: string | null;
|
|
4206
|
+
size: number;
|
|
4207
|
+
sizeFormatted: string;
|
|
4208
|
+
created: string;
|
|
4209
|
+
modified: string;
|
|
4210
|
+
accessed: string;
|
|
4211
|
+
};
|
|
4212
|
+
error?: string;
|
|
4213
|
+
}
|
|
4214
|
+
declare const getFileInfoActivitySchema: z.ZodObject<{
|
|
4215
|
+
id: z.ZodString;
|
|
4216
|
+
expertKey: z.ZodString;
|
|
4217
|
+
runId: z.ZodString;
|
|
4218
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4219
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4220
|
+
expertKey: z.ZodString;
|
|
4221
|
+
runId: z.ZodString;
|
|
4222
|
+
}, z.core.$strip>>;
|
|
4223
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4224
|
+
type: z.ZodLiteral<"getFileInfo">;
|
|
4225
|
+
path: z.ZodString;
|
|
4226
|
+
info: z.ZodOptional<z.ZodObject<{
|
|
4227
|
+
exists: z.ZodBoolean;
|
|
4228
|
+
name: z.ZodString;
|
|
4229
|
+
directory: z.ZodString;
|
|
4230
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
4231
|
+
type: z.ZodEnum<{
|
|
4232
|
+
file: "file";
|
|
4233
|
+
directory: "directory";
|
|
4234
|
+
}>;
|
|
4235
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
4236
|
+
size: z.ZodNumber;
|
|
4237
|
+
sizeFormatted: z.ZodString;
|
|
4238
|
+
created: z.ZodString;
|
|
4239
|
+
modified: z.ZodString;
|
|
4240
|
+
accessed: z.ZodString;
|
|
4241
|
+
}, z.core.$strip>>;
|
|
4242
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4243
|
+
}, z.core.$strip>;
|
|
4244
|
+
/** Create directory activity */
|
|
4245
|
+
interface CreateDirectoryActivity extends BaseActivity {
|
|
4246
|
+
type: "createDirectory";
|
|
4247
|
+
path: string;
|
|
4248
|
+
error?: string;
|
|
4249
|
+
}
|
|
4250
|
+
declare const createDirectoryActivitySchema: z.ZodObject<{
|
|
4251
|
+
id: z.ZodString;
|
|
4252
|
+
expertKey: z.ZodString;
|
|
4253
|
+
runId: z.ZodString;
|
|
4254
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4255
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4256
|
+
expertKey: z.ZodString;
|
|
4257
|
+
runId: z.ZodString;
|
|
4258
|
+
}, z.core.$strip>>;
|
|
4259
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4260
|
+
type: z.ZodLiteral<"createDirectory">;
|
|
4261
|
+
path: z.ZodString;
|
|
4262
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4263
|
+
}, z.core.$strip>;
|
|
4264
|
+
/** List directory activity */
|
|
4265
|
+
interface ListDirectoryActivity extends BaseActivity {
|
|
4266
|
+
type: "listDirectory";
|
|
4267
|
+
path: string;
|
|
4268
|
+
items?: Array<{
|
|
4269
|
+
name: string;
|
|
4270
|
+
path: string;
|
|
4271
|
+
type: "file" | "directory";
|
|
4272
|
+
size: number;
|
|
4273
|
+
modified: string;
|
|
4274
|
+
}>;
|
|
4275
|
+
error?: string;
|
|
4276
|
+
}
|
|
4277
|
+
declare const listDirectoryActivitySchema: z.ZodObject<{
|
|
4278
|
+
id: z.ZodString;
|
|
4279
|
+
expertKey: z.ZodString;
|
|
4280
|
+
runId: z.ZodString;
|
|
4281
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4282
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4283
|
+
expertKey: z.ZodString;
|
|
4284
|
+
runId: z.ZodString;
|
|
4285
|
+
}, z.core.$strip>>;
|
|
4286
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4287
|
+
type: z.ZodLiteral<"listDirectory">;
|
|
4288
|
+
path: z.ZodString;
|
|
4289
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4290
|
+
name: z.ZodString;
|
|
4291
|
+
path: z.ZodString;
|
|
4292
|
+
type: z.ZodEnum<{
|
|
4293
|
+
file: "file";
|
|
4294
|
+
directory: "directory";
|
|
4295
|
+
}>;
|
|
4296
|
+
size: z.ZodNumber;
|
|
4297
|
+
modified: z.ZodString;
|
|
4298
|
+
}, z.core.$strip>>>;
|
|
4299
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4300
|
+
}, z.core.$strip>;
|
|
4301
|
+
/** Exec activity - Command execution */
|
|
4302
|
+
interface ExecActivity extends BaseActivity {
|
|
4303
|
+
type: "exec";
|
|
4304
|
+
command: string;
|
|
4305
|
+
args: string[];
|
|
4306
|
+
cwd: string;
|
|
4307
|
+
output?: string;
|
|
4308
|
+
error?: string;
|
|
4309
|
+
stdout?: string;
|
|
4310
|
+
stderr?: string;
|
|
4311
|
+
}
|
|
4312
|
+
declare const execActivitySchema: z.ZodObject<{
|
|
4313
|
+
id: z.ZodString;
|
|
4314
|
+
expertKey: z.ZodString;
|
|
4315
|
+
runId: z.ZodString;
|
|
4316
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4317
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4318
|
+
expertKey: z.ZodString;
|
|
4319
|
+
runId: z.ZodString;
|
|
4320
|
+
}, z.core.$strip>>;
|
|
4321
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4322
|
+
type: z.ZodLiteral<"exec">;
|
|
4323
|
+
command: z.ZodString;
|
|
4324
|
+
args: z.ZodArray<z.ZodString>;
|
|
4325
|
+
cwd: z.ZodString;
|
|
4326
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4327
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4328
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
4329
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
4330
|
+
}, z.core.$strip>;
|
|
4331
|
+
/** Delegate activity - Expert delegating to another Expert */
|
|
4332
|
+
interface DelegateActivity extends BaseActivity {
|
|
4333
|
+
type: "delegate";
|
|
4334
|
+
delegateExpertKey: string;
|
|
4335
|
+
query: string;
|
|
4336
|
+
}
|
|
4337
|
+
declare const delegateActivitySchema: z.ZodObject<{
|
|
4338
|
+
id: z.ZodString;
|
|
4339
|
+
expertKey: z.ZodString;
|
|
4340
|
+
runId: z.ZodString;
|
|
4341
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4342
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4343
|
+
expertKey: z.ZodString;
|
|
4344
|
+
runId: z.ZodString;
|
|
4345
|
+
}, z.core.$strip>>;
|
|
4346
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4347
|
+
type: z.ZodLiteral<"delegate">;
|
|
4348
|
+
delegateExpertKey: z.ZodString;
|
|
4349
|
+
query: z.ZodString;
|
|
4350
|
+
}, z.core.$strip>;
|
|
4351
|
+
/** Delegation complete activity - All delegated experts have returned */
|
|
4352
|
+
interface DelegationCompleteActivity extends BaseActivity {
|
|
4353
|
+
type: "delegationComplete";
|
|
4354
|
+
count: number;
|
|
4355
|
+
}
|
|
4356
|
+
declare const delegationCompleteActivitySchema: z.ZodObject<{
|
|
4357
|
+
id: z.ZodString;
|
|
4358
|
+
expertKey: z.ZodString;
|
|
4359
|
+
runId: z.ZodString;
|
|
4360
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4361
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4362
|
+
expertKey: z.ZodString;
|
|
4363
|
+
runId: z.ZodString;
|
|
4364
|
+
}, z.core.$strip>>;
|
|
4365
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4366
|
+
type: z.ZodLiteral<"delegationComplete">;
|
|
4367
|
+
count: z.ZodNumber;
|
|
4368
|
+
}, z.core.$strip>;
|
|
4369
|
+
/** Interactive tool activity - Tool requiring user interaction */
|
|
4370
|
+
interface InteractiveToolActivity extends BaseActivity {
|
|
4371
|
+
type: "interactiveTool";
|
|
4372
|
+
skillName: string;
|
|
4373
|
+
toolName: string;
|
|
4374
|
+
args: Record<string, unknown>;
|
|
4375
|
+
}
|
|
4376
|
+
declare const interactiveToolActivitySchema: z.ZodObject<{
|
|
4377
|
+
id: z.ZodString;
|
|
4378
|
+
expertKey: z.ZodString;
|
|
4379
|
+
runId: z.ZodString;
|
|
4380
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4381
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4382
|
+
expertKey: z.ZodString;
|
|
4383
|
+
runId: z.ZodString;
|
|
4384
|
+
}, z.core.$strip>>;
|
|
4385
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4386
|
+
type: z.ZodLiteral<"interactiveTool">;
|
|
4387
|
+
skillName: z.ZodString;
|
|
4388
|
+
toolName: z.ZodString;
|
|
4389
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4390
|
+
}, z.core.$strip>;
|
|
4391
|
+
/** General tool activity - Any other tool call */
|
|
4392
|
+
interface GeneralToolActivity extends BaseActivity {
|
|
4393
|
+
type: "generalTool";
|
|
4394
|
+
skillName: string;
|
|
4395
|
+
toolName: string;
|
|
4396
|
+
args: Record<string, unknown>;
|
|
4397
|
+
result?: MessagePart[];
|
|
4398
|
+
error?: string;
|
|
4399
|
+
}
|
|
4400
|
+
declare const generalToolActivitySchema: z.ZodObject<{
|
|
4401
|
+
id: z.ZodString;
|
|
4402
|
+
expertKey: z.ZodString;
|
|
4403
|
+
runId: z.ZodString;
|
|
4404
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4405
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4406
|
+
expertKey: z.ZodString;
|
|
4407
|
+
runId: z.ZodString;
|
|
4408
|
+
}, z.core.$strip>>;
|
|
4409
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4410
|
+
type: z.ZodLiteral<"generalTool">;
|
|
4411
|
+
skillName: z.ZodString;
|
|
4412
|
+
toolName: z.ZodString;
|
|
4413
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4414
|
+
result: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4415
|
+
id: z.ZodString;
|
|
4416
|
+
type: z.ZodLiteral<"textPart">;
|
|
4417
|
+
text: z.ZodString;
|
|
4418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4419
|
+
id: z.ZodString;
|
|
4420
|
+
type: z.ZodLiteral<"imageUrlPart">;
|
|
4421
|
+
url: z.ZodURL;
|
|
4422
|
+
mimeType: z.ZodString;
|
|
4423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4424
|
+
id: z.ZodString;
|
|
4425
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
4426
|
+
encodedData: z.ZodString;
|
|
4427
|
+
mimeType: z.ZodString;
|
|
4428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4429
|
+
id: z.ZodString;
|
|
4430
|
+
type: z.ZodLiteral<"imageBinaryPart">;
|
|
4431
|
+
data: z.ZodString;
|
|
4432
|
+
mimeType: z.ZodString;
|
|
4433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4434
|
+
id: z.ZodString;
|
|
4435
|
+
type: z.ZodLiteral<"fileUrlPart">;
|
|
4436
|
+
url: z.ZodString;
|
|
4437
|
+
mimeType: z.ZodString;
|
|
4438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4439
|
+
id: z.ZodString;
|
|
4440
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
4441
|
+
encodedData: z.ZodString;
|
|
4442
|
+
mimeType: z.ZodString;
|
|
4443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4444
|
+
id: z.ZodString;
|
|
4445
|
+
type: z.ZodLiteral<"fileBinaryPart">;
|
|
4446
|
+
data: z.ZodString;
|
|
4447
|
+
mimeType: z.ZodString;
|
|
4448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4449
|
+
id: z.ZodString;
|
|
4450
|
+
type: z.ZodLiteral<"toolCallPart">;
|
|
4451
|
+
toolCallId: z.ZodString;
|
|
4452
|
+
toolName: z.ZodString;
|
|
4453
|
+
args: z.ZodUnknown;
|
|
4454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4455
|
+
id: z.ZodString;
|
|
4456
|
+
type: z.ZodLiteral<"toolResultPart">;
|
|
4457
|
+
toolCallId: z.ZodString;
|
|
4458
|
+
toolName: z.ZodString;
|
|
4459
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4460
|
+
id: z.ZodString;
|
|
4461
|
+
type: z.ZodLiteral<"textPart">;
|
|
4462
|
+
text: z.ZodString;
|
|
4463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4464
|
+
id: z.ZodString;
|
|
4465
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
4466
|
+
encodedData: z.ZodString;
|
|
4467
|
+
mimeType: z.ZodString;
|
|
4468
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4469
|
+
id: z.ZodString;
|
|
4470
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
4471
|
+
encodedData: z.ZodString;
|
|
4472
|
+
mimeType: z.ZodString;
|
|
4473
|
+
}, z.core.$strip>]>>;
|
|
4474
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4476
|
+
id: z.ZodString;
|
|
4477
|
+
type: z.ZodLiteral<"thinkingPart">;
|
|
4478
|
+
thinking: z.ZodString;
|
|
4479
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
}, z.core.$strip>], "type">>>;
|
|
4481
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4482
|
+
}, z.core.$strip>;
|
|
4483
|
+
/** Union of all activity types */
|
|
4484
|
+
type Activity = QueryActivity | RetryActivity | CompleteActivity | ErrorActivity | AttemptCompletionActivity | TodoActivity | ClearTodoActivity | ReadImageFileActivity | ReadPdfFileActivity | ReadTextFileActivity | EditTextFileActivity | AppendTextFileActivity | WriteTextFileActivity | DeleteFileActivity | DeleteDirectoryActivity | MoveFileActivity | GetFileInfoActivity | CreateDirectoryActivity | ListDirectoryActivity | ExecActivity | DelegateActivity | DelegationCompleteActivity | InteractiveToolActivity | GeneralToolActivity;
|
|
4485
|
+
declare const activitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4486
|
+
id: z.ZodString;
|
|
4487
|
+
expertKey: z.ZodString;
|
|
4488
|
+
runId: z.ZodString;
|
|
4489
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4490
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4491
|
+
expertKey: z.ZodString;
|
|
4492
|
+
runId: z.ZodString;
|
|
4493
|
+
}, z.core.$strip>>;
|
|
4494
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4495
|
+
type: z.ZodLiteral<"query">;
|
|
4496
|
+
text: z.ZodString;
|
|
4497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4498
|
+
id: z.ZodString;
|
|
4499
|
+
expertKey: z.ZodString;
|
|
4500
|
+
runId: z.ZodString;
|
|
4501
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4502
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4503
|
+
expertKey: z.ZodString;
|
|
4504
|
+
runId: z.ZodString;
|
|
4505
|
+
}, z.core.$strip>>;
|
|
4506
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4507
|
+
type: z.ZodLiteral<"retry">;
|
|
4508
|
+
error: z.ZodString;
|
|
4509
|
+
message: z.ZodString;
|
|
4510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4511
|
+
id: z.ZodString;
|
|
4512
|
+
expertKey: z.ZodString;
|
|
4513
|
+
runId: z.ZodString;
|
|
4514
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4515
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4516
|
+
expertKey: z.ZodString;
|
|
4517
|
+
runId: z.ZodString;
|
|
4518
|
+
}, z.core.$strip>>;
|
|
4519
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4520
|
+
type: z.ZodLiteral<"complete">;
|
|
4521
|
+
text: z.ZodString;
|
|
4522
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4523
|
+
id: z.ZodString;
|
|
4524
|
+
expertKey: z.ZodString;
|
|
4525
|
+
runId: z.ZodString;
|
|
4526
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4527
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4528
|
+
expertKey: z.ZodString;
|
|
4529
|
+
runId: z.ZodString;
|
|
4530
|
+
}, z.core.$strip>>;
|
|
4531
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4532
|
+
type: z.ZodLiteral<"error">;
|
|
4533
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4534
|
+
errorName: z.ZodOptional<z.ZodString>;
|
|
4535
|
+
isRetryable: z.ZodOptional<z.ZodBoolean>;
|
|
4536
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4537
|
+
id: z.ZodString;
|
|
4538
|
+
expertKey: z.ZodString;
|
|
4539
|
+
runId: z.ZodString;
|
|
4540
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4541
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4542
|
+
expertKey: z.ZodString;
|
|
4543
|
+
runId: z.ZodString;
|
|
4544
|
+
}, z.core.$strip>>;
|
|
4545
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4546
|
+
type: z.ZodLiteral<"attemptCompletion">;
|
|
4547
|
+
remainingTodos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4548
|
+
id: z.ZodNumber;
|
|
4549
|
+
title: z.ZodString;
|
|
4550
|
+
completed: z.ZodBoolean;
|
|
4551
|
+
}, z.core.$strip>>>;
|
|
4552
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4554
|
+
id: z.ZodString;
|
|
4555
|
+
expertKey: z.ZodString;
|
|
4556
|
+
runId: z.ZodString;
|
|
4557
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4558
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4559
|
+
expertKey: z.ZodString;
|
|
4560
|
+
runId: z.ZodString;
|
|
4561
|
+
}, z.core.$strip>>;
|
|
4562
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4563
|
+
type: z.ZodLiteral<"todo">;
|
|
4564
|
+
newTodos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4565
|
+
completedTodos: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4566
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
4567
|
+
id: z.ZodNumber;
|
|
4568
|
+
title: z.ZodString;
|
|
4569
|
+
completed: z.ZodBoolean;
|
|
4570
|
+
}, z.core.$strip>>;
|
|
4571
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4572
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4573
|
+
id: z.ZodString;
|
|
4574
|
+
expertKey: z.ZodString;
|
|
4575
|
+
runId: z.ZodString;
|
|
4576
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4577
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4578
|
+
expertKey: z.ZodString;
|
|
4579
|
+
runId: z.ZodString;
|
|
4580
|
+
}, z.core.$strip>>;
|
|
4581
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4582
|
+
type: z.ZodLiteral<"clearTodo">;
|
|
4583
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4584
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4585
|
+
id: z.ZodString;
|
|
4586
|
+
expertKey: z.ZodString;
|
|
4587
|
+
runId: z.ZodString;
|
|
4588
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4589
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4590
|
+
expertKey: z.ZodString;
|
|
4591
|
+
runId: z.ZodString;
|
|
4592
|
+
}, z.core.$strip>>;
|
|
4593
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4594
|
+
type: z.ZodLiteral<"readImageFile">;
|
|
4595
|
+
path: z.ZodString;
|
|
4596
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
4597
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4598
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4599
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4600
|
+
id: z.ZodString;
|
|
4601
|
+
expertKey: z.ZodString;
|
|
4602
|
+
runId: z.ZodString;
|
|
4603
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4605
|
+
expertKey: z.ZodString;
|
|
4606
|
+
runId: z.ZodString;
|
|
4607
|
+
}, z.core.$strip>>;
|
|
4608
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4609
|
+
type: z.ZodLiteral<"readPdfFile">;
|
|
4610
|
+
path: z.ZodString;
|
|
4611
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
4612
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4613
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4615
|
+
id: z.ZodString;
|
|
4616
|
+
expertKey: z.ZodString;
|
|
4617
|
+
runId: z.ZodString;
|
|
4618
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4619
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4620
|
+
expertKey: z.ZodString;
|
|
4621
|
+
runId: z.ZodString;
|
|
4622
|
+
}, z.core.$strip>>;
|
|
4623
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4624
|
+
type: z.ZodLiteral<"readTextFile">;
|
|
4625
|
+
path: z.ZodString;
|
|
4626
|
+
content: z.ZodOptional<z.ZodString>;
|
|
4627
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
4628
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
4629
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4630
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4631
|
+
id: z.ZodString;
|
|
4632
|
+
expertKey: z.ZodString;
|
|
4633
|
+
runId: z.ZodString;
|
|
4634
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4635
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4636
|
+
expertKey: z.ZodString;
|
|
4637
|
+
runId: z.ZodString;
|
|
4638
|
+
}, z.core.$strip>>;
|
|
4639
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4640
|
+
type: z.ZodLiteral<"editTextFile">;
|
|
4641
|
+
path: z.ZodString;
|
|
4642
|
+
newText: z.ZodString;
|
|
4643
|
+
oldText: z.ZodString;
|
|
4644
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4646
|
+
id: z.ZodString;
|
|
4647
|
+
expertKey: z.ZodString;
|
|
4648
|
+
runId: z.ZodString;
|
|
4649
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4650
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4651
|
+
expertKey: z.ZodString;
|
|
4652
|
+
runId: z.ZodString;
|
|
4653
|
+
}, z.core.$strip>>;
|
|
4654
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4655
|
+
type: z.ZodLiteral<"appendTextFile">;
|
|
4656
|
+
path: z.ZodString;
|
|
4657
|
+
text: z.ZodString;
|
|
4658
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4660
|
+
id: z.ZodString;
|
|
4661
|
+
expertKey: z.ZodString;
|
|
4662
|
+
runId: z.ZodString;
|
|
4663
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4664
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4665
|
+
expertKey: z.ZodString;
|
|
4666
|
+
runId: z.ZodString;
|
|
4667
|
+
}, z.core.$strip>>;
|
|
4668
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4669
|
+
type: z.ZodLiteral<"writeTextFile">;
|
|
4670
|
+
path: z.ZodString;
|
|
4671
|
+
text: z.ZodString;
|
|
4672
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4674
|
+
id: z.ZodString;
|
|
4675
|
+
expertKey: z.ZodString;
|
|
4676
|
+
runId: z.ZodString;
|
|
4677
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4678
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4679
|
+
expertKey: z.ZodString;
|
|
4680
|
+
runId: z.ZodString;
|
|
4681
|
+
}, z.core.$strip>>;
|
|
4682
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4683
|
+
type: z.ZodLiteral<"deleteFile">;
|
|
4684
|
+
path: z.ZodString;
|
|
4685
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4687
|
+
id: z.ZodString;
|
|
4688
|
+
expertKey: z.ZodString;
|
|
4689
|
+
runId: z.ZodString;
|
|
4690
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4691
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4692
|
+
expertKey: z.ZodString;
|
|
4693
|
+
runId: z.ZodString;
|
|
4694
|
+
}, z.core.$strip>>;
|
|
4695
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4696
|
+
type: z.ZodLiteral<"deleteDirectory">;
|
|
4697
|
+
path: z.ZodString;
|
|
4698
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
4699
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4701
|
+
id: z.ZodString;
|
|
4702
|
+
expertKey: z.ZodString;
|
|
4703
|
+
runId: z.ZodString;
|
|
4704
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4705
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4706
|
+
expertKey: z.ZodString;
|
|
4707
|
+
runId: z.ZodString;
|
|
4708
|
+
}, z.core.$strip>>;
|
|
4709
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4710
|
+
type: z.ZodLiteral<"moveFile">;
|
|
4711
|
+
source: z.ZodString;
|
|
4712
|
+
destination: z.ZodString;
|
|
4713
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4715
|
+
id: z.ZodString;
|
|
4716
|
+
expertKey: z.ZodString;
|
|
4717
|
+
runId: z.ZodString;
|
|
4718
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4719
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4720
|
+
expertKey: z.ZodString;
|
|
4721
|
+
runId: z.ZodString;
|
|
4722
|
+
}, z.core.$strip>>;
|
|
4723
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4724
|
+
type: z.ZodLiteral<"getFileInfo">;
|
|
4725
|
+
path: z.ZodString;
|
|
4726
|
+
info: z.ZodOptional<z.ZodObject<{
|
|
4727
|
+
exists: z.ZodBoolean;
|
|
4728
|
+
name: z.ZodString;
|
|
4729
|
+
directory: z.ZodString;
|
|
4730
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
4731
|
+
type: z.ZodEnum<{
|
|
4732
|
+
file: "file";
|
|
4733
|
+
directory: "directory";
|
|
4734
|
+
}>;
|
|
4735
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
4736
|
+
size: z.ZodNumber;
|
|
4737
|
+
sizeFormatted: z.ZodString;
|
|
4738
|
+
created: z.ZodString;
|
|
4739
|
+
modified: z.ZodString;
|
|
4740
|
+
accessed: z.ZodString;
|
|
4741
|
+
}, z.core.$strip>>;
|
|
4742
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4744
|
+
id: z.ZodString;
|
|
4745
|
+
expertKey: z.ZodString;
|
|
4746
|
+
runId: z.ZodString;
|
|
4747
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4748
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4749
|
+
expertKey: z.ZodString;
|
|
4750
|
+
runId: z.ZodString;
|
|
4751
|
+
}, z.core.$strip>>;
|
|
4752
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4753
|
+
type: z.ZodLiteral<"createDirectory">;
|
|
4754
|
+
path: z.ZodString;
|
|
4755
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4756
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4757
|
+
id: z.ZodString;
|
|
4758
|
+
expertKey: z.ZodString;
|
|
4759
|
+
runId: z.ZodString;
|
|
4760
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4761
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4762
|
+
expertKey: z.ZodString;
|
|
4763
|
+
runId: z.ZodString;
|
|
4764
|
+
}, z.core.$strip>>;
|
|
4765
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4766
|
+
type: z.ZodLiteral<"listDirectory">;
|
|
4767
|
+
path: z.ZodString;
|
|
4768
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4769
|
+
name: z.ZodString;
|
|
4770
|
+
path: z.ZodString;
|
|
4771
|
+
type: z.ZodEnum<{
|
|
4772
|
+
file: "file";
|
|
4773
|
+
directory: "directory";
|
|
4774
|
+
}>;
|
|
4775
|
+
size: z.ZodNumber;
|
|
4776
|
+
modified: z.ZodString;
|
|
4777
|
+
}, z.core.$strip>>>;
|
|
4778
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4780
|
+
id: z.ZodString;
|
|
4781
|
+
expertKey: z.ZodString;
|
|
4782
|
+
runId: z.ZodString;
|
|
4783
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4784
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4785
|
+
expertKey: z.ZodString;
|
|
4786
|
+
runId: z.ZodString;
|
|
4787
|
+
}, z.core.$strip>>;
|
|
4788
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4789
|
+
type: z.ZodLiteral<"exec">;
|
|
4790
|
+
command: z.ZodString;
|
|
4791
|
+
args: z.ZodArray<z.ZodString>;
|
|
4792
|
+
cwd: z.ZodString;
|
|
4793
|
+
output: z.ZodOptional<z.ZodString>;
|
|
4794
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4795
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
4796
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
4797
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4798
|
+
id: z.ZodString;
|
|
4799
|
+
expertKey: z.ZodString;
|
|
4800
|
+
runId: z.ZodString;
|
|
4801
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4802
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4803
|
+
expertKey: z.ZodString;
|
|
4804
|
+
runId: z.ZodString;
|
|
4805
|
+
}, z.core.$strip>>;
|
|
4806
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4807
|
+
type: z.ZodLiteral<"delegate">;
|
|
4808
|
+
delegateExpertKey: z.ZodString;
|
|
4809
|
+
query: z.ZodString;
|
|
4810
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4811
|
+
id: z.ZodString;
|
|
4812
|
+
expertKey: z.ZodString;
|
|
4813
|
+
runId: z.ZodString;
|
|
4814
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4815
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4816
|
+
expertKey: z.ZodString;
|
|
4817
|
+
runId: z.ZodString;
|
|
4818
|
+
}, z.core.$strip>>;
|
|
4819
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4820
|
+
type: z.ZodLiteral<"delegationComplete">;
|
|
4821
|
+
count: z.ZodNumber;
|
|
4822
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4823
|
+
id: z.ZodString;
|
|
4824
|
+
expertKey: z.ZodString;
|
|
4825
|
+
runId: z.ZodString;
|
|
4826
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4827
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4828
|
+
expertKey: z.ZodString;
|
|
4829
|
+
runId: z.ZodString;
|
|
4830
|
+
}, z.core.$strip>>;
|
|
4831
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4832
|
+
type: z.ZodLiteral<"interactiveTool">;
|
|
4833
|
+
skillName: z.ZodString;
|
|
4834
|
+
toolName: z.ZodString;
|
|
4835
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4836
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4837
|
+
id: z.ZodString;
|
|
4838
|
+
expertKey: z.ZodString;
|
|
4839
|
+
runId: z.ZodString;
|
|
4840
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4841
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4842
|
+
expertKey: z.ZodString;
|
|
4843
|
+
runId: z.ZodString;
|
|
4844
|
+
}, z.core.$strip>>;
|
|
4845
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4846
|
+
type: z.ZodLiteral<"generalTool">;
|
|
4847
|
+
skillName: z.ZodString;
|
|
4848
|
+
toolName: z.ZodString;
|
|
4849
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4850
|
+
result: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4851
|
+
id: z.ZodString;
|
|
4852
|
+
type: z.ZodLiteral<"textPart">;
|
|
4853
|
+
text: z.ZodString;
|
|
4854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4855
|
+
id: z.ZodString;
|
|
4856
|
+
type: z.ZodLiteral<"imageUrlPart">;
|
|
4857
|
+
url: z.ZodURL;
|
|
4858
|
+
mimeType: z.ZodString;
|
|
4859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4860
|
+
id: z.ZodString;
|
|
4861
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
4862
|
+
encodedData: z.ZodString;
|
|
4863
|
+
mimeType: z.ZodString;
|
|
4864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4865
|
+
id: z.ZodString;
|
|
4866
|
+
type: z.ZodLiteral<"imageBinaryPart">;
|
|
4867
|
+
data: z.ZodString;
|
|
4868
|
+
mimeType: z.ZodString;
|
|
4869
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4870
|
+
id: z.ZodString;
|
|
4871
|
+
type: z.ZodLiteral<"fileUrlPart">;
|
|
4872
|
+
url: z.ZodString;
|
|
4873
|
+
mimeType: z.ZodString;
|
|
4874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4875
|
+
id: z.ZodString;
|
|
4876
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
4877
|
+
encodedData: z.ZodString;
|
|
4878
|
+
mimeType: z.ZodString;
|
|
4879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4880
|
+
id: z.ZodString;
|
|
4881
|
+
type: z.ZodLiteral<"fileBinaryPart">;
|
|
4882
|
+
data: z.ZodString;
|
|
4883
|
+
mimeType: z.ZodString;
|
|
4884
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4885
|
+
id: z.ZodString;
|
|
4886
|
+
type: z.ZodLiteral<"toolCallPart">;
|
|
4887
|
+
toolCallId: z.ZodString;
|
|
4888
|
+
toolName: z.ZodString;
|
|
4889
|
+
args: z.ZodUnknown;
|
|
4890
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4891
|
+
id: z.ZodString;
|
|
4892
|
+
type: z.ZodLiteral<"toolResultPart">;
|
|
4893
|
+
toolCallId: z.ZodString;
|
|
4894
|
+
toolName: z.ZodString;
|
|
4895
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4896
|
+
id: z.ZodString;
|
|
4897
|
+
type: z.ZodLiteral<"textPart">;
|
|
4898
|
+
text: z.ZodString;
|
|
4899
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4900
|
+
id: z.ZodString;
|
|
4901
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
4902
|
+
encodedData: z.ZodString;
|
|
4903
|
+
mimeType: z.ZodString;
|
|
4904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4905
|
+
id: z.ZodString;
|
|
4906
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
4907
|
+
encodedData: z.ZodString;
|
|
4908
|
+
mimeType: z.ZodString;
|
|
4909
|
+
}, z.core.$strip>]>>;
|
|
4910
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4912
|
+
id: z.ZodString;
|
|
4913
|
+
type: z.ZodLiteral<"thinkingPart">;
|
|
4914
|
+
thinking: z.ZodString;
|
|
4915
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
4916
|
+
}, z.core.$strip>], "type">>>;
|
|
4917
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4918
|
+
}, z.core.$strip>], "type">;
|
|
4919
|
+
/** Activity type discriminator */
|
|
4920
|
+
type ActivityType = Activity["type"];
|
|
4921
|
+
/** Group of parallel activities sharing the same reasoning */
|
|
4922
|
+
interface ParallelActivitiesGroup {
|
|
4923
|
+
type: "parallelGroup";
|
|
4924
|
+
/** Unique group ID */
|
|
4925
|
+
id: string;
|
|
4926
|
+
/** Expert key that executed these activities */
|
|
4927
|
+
expertKey: string;
|
|
4928
|
+
/** Run ID these activities belong to */
|
|
4929
|
+
runId: string;
|
|
4930
|
+
/** Shared reasoning for all activities in the group */
|
|
4931
|
+
reasoning?: string;
|
|
4932
|
+
/** Activities in this parallel group (without individual reasoning) */
|
|
4933
|
+
activities: Activity[];
|
|
4934
|
+
}
|
|
4935
|
+
declare const parallelActivitiesGroupSchema: z.ZodObject<{
|
|
4936
|
+
type: z.ZodLiteral<"parallelGroup">;
|
|
4937
|
+
id: z.ZodString;
|
|
4938
|
+
expertKey: z.ZodString;
|
|
4939
|
+
runId: z.ZodString;
|
|
4940
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
activities: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4942
|
+
id: z.ZodString;
|
|
4943
|
+
expertKey: z.ZodString;
|
|
4944
|
+
runId: z.ZodString;
|
|
4945
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4946
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4947
|
+
expertKey: z.ZodString;
|
|
4948
|
+
runId: z.ZodString;
|
|
4949
|
+
}, z.core.$strip>>;
|
|
4950
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4951
|
+
type: z.ZodLiteral<"query">;
|
|
4952
|
+
text: z.ZodString;
|
|
4953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4954
|
+
id: z.ZodString;
|
|
4955
|
+
expertKey: z.ZodString;
|
|
4956
|
+
runId: z.ZodString;
|
|
4957
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4958
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4959
|
+
expertKey: z.ZodString;
|
|
4960
|
+
runId: z.ZodString;
|
|
4961
|
+
}, z.core.$strip>>;
|
|
4962
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4963
|
+
type: z.ZodLiteral<"retry">;
|
|
4964
|
+
error: z.ZodString;
|
|
4965
|
+
message: z.ZodString;
|
|
4966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4967
|
+
id: z.ZodString;
|
|
4968
|
+
expertKey: z.ZodString;
|
|
4969
|
+
runId: z.ZodString;
|
|
4970
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4971
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4972
|
+
expertKey: z.ZodString;
|
|
4973
|
+
runId: z.ZodString;
|
|
4974
|
+
}, z.core.$strip>>;
|
|
4975
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4976
|
+
type: z.ZodLiteral<"complete">;
|
|
4977
|
+
text: z.ZodString;
|
|
4978
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4979
|
+
id: z.ZodString;
|
|
4980
|
+
expertKey: z.ZodString;
|
|
4981
|
+
runId: z.ZodString;
|
|
4982
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4983
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4984
|
+
expertKey: z.ZodString;
|
|
4985
|
+
runId: z.ZodString;
|
|
4986
|
+
}, z.core.$strip>>;
|
|
4987
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
4988
|
+
type: z.ZodLiteral<"error">;
|
|
4989
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4990
|
+
errorName: z.ZodOptional<z.ZodString>;
|
|
4991
|
+
isRetryable: z.ZodOptional<z.ZodBoolean>;
|
|
4992
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4993
|
+
id: z.ZodString;
|
|
4994
|
+
expertKey: z.ZodString;
|
|
4995
|
+
runId: z.ZodString;
|
|
4996
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
4997
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
4998
|
+
expertKey: z.ZodString;
|
|
4999
|
+
runId: z.ZodString;
|
|
5000
|
+
}, z.core.$strip>>;
|
|
5001
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5002
|
+
type: z.ZodLiteral<"attemptCompletion">;
|
|
5003
|
+
remainingTodos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5004
|
+
id: z.ZodNumber;
|
|
5005
|
+
title: z.ZodString;
|
|
5006
|
+
completed: z.ZodBoolean;
|
|
5007
|
+
}, z.core.$strip>>>;
|
|
5008
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5009
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5010
|
+
id: z.ZodString;
|
|
5011
|
+
expertKey: z.ZodString;
|
|
5012
|
+
runId: z.ZodString;
|
|
5013
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5014
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5015
|
+
expertKey: z.ZodString;
|
|
5016
|
+
runId: z.ZodString;
|
|
5017
|
+
}, z.core.$strip>>;
|
|
5018
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5019
|
+
type: z.ZodLiteral<"todo">;
|
|
5020
|
+
newTodos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5021
|
+
completedTodos: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5022
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
5023
|
+
id: z.ZodNumber;
|
|
5024
|
+
title: z.ZodString;
|
|
5025
|
+
completed: z.ZodBoolean;
|
|
5026
|
+
}, z.core.$strip>>;
|
|
5027
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5029
|
+
id: z.ZodString;
|
|
5030
|
+
expertKey: z.ZodString;
|
|
5031
|
+
runId: z.ZodString;
|
|
5032
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5033
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5034
|
+
expertKey: z.ZodString;
|
|
5035
|
+
runId: z.ZodString;
|
|
5036
|
+
}, z.core.$strip>>;
|
|
5037
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5038
|
+
type: z.ZodLiteral<"clearTodo">;
|
|
5039
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5040
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5041
|
+
id: z.ZodString;
|
|
5042
|
+
expertKey: z.ZodString;
|
|
5043
|
+
runId: z.ZodString;
|
|
5044
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5045
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5046
|
+
expertKey: z.ZodString;
|
|
5047
|
+
runId: z.ZodString;
|
|
5048
|
+
}, z.core.$strip>>;
|
|
5049
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5050
|
+
type: z.ZodLiteral<"readImageFile">;
|
|
5051
|
+
path: z.ZodString;
|
|
5052
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5053
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5054
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5056
|
+
id: z.ZodString;
|
|
5057
|
+
expertKey: z.ZodString;
|
|
5058
|
+
runId: z.ZodString;
|
|
5059
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5060
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5061
|
+
expertKey: z.ZodString;
|
|
5062
|
+
runId: z.ZodString;
|
|
5063
|
+
}, z.core.$strip>>;
|
|
5064
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5065
|
+
type: z.ZodLiteral<"readPdfFile">;
|
|
5066
|
+
path: z.ZodString;
|
|
5067
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5069
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5070
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5071
|
+
id: z.ZodString;
|
|
5072
|
+
expertKey: z.ZodString;
|
|
5073
|
+
runId: z.ZodString;
|
|
5074
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5075
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5076
|
+
expertKey: z.ZodString;
|
|
5077
|
+
runId: z.ZodString;
|
|
5078
|
+
}, z.core.$strip>>;
|
|
5079
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5080
|
+
type: z.ZodLiteral<"readTextFile">;
|
|
5081
|
+
path: z.ZodString;
|
|
5082
|
+
content: z.ZodOptional<z.ZodString>;
|
|
5083
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
5084
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
5085
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5086
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5087
|
+
id: z.ZodString;
|
|
5088
|
+
expertKey: z.ZodString;
|
|
5089
|
+
runId: z.ZodString;
|
|
5090
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5091
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5092
|
+
expertKey: z.ZodString;
|
|
5093
|
+
runId: z.ZodString;
|
|
5094
|
+
}, z.core.$strip>>;
|
|
5095
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5096
|
+
type: z.ZodLiteral<"editTextFile">;
|
|
5097
|
+
path: z.ZodString;
|
|
5098
|
+
newText: z.ZodString;
|
|
5099
|
+
oldText: z.ZodString;
|
|
5100
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5102
|
+
id: z.ZodString;
|
|
5103
|
+
expertKey: z.ZodString;
|
|
5104
|
+
runId: z.ZodString;
|
|
5105
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5106
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5107
|
+
expertKey: z.ZodString;
|
|
5108
|
+
runId: z.ZodString;
|
|
5109
|
+
}, z.core.$strip>>;
|
|
5110
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5111
|
+
type: z.ZodLiteral<"appendTextFile">;
|
|
5112
|
+
path: z.ZodString;
|
|
5113
|
+
text: z.ZodString;
|
|
5114
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5116
|
+
id: z.ZodString;
|
|
5117
|
+
expertKey: z.ZodString;
|
|
5118
|
+
runId: z.ZodString;
|
|
5119
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5120
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5121
|
+
expertKey: z.ZodString;
|
|
5122
|
+
runId: z.ZodString;
|
|
5123
|
+
}, z.core.$strip>>;
|
|
5124
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5125
|
+
type: z.ZodLiteral<"writeTextFile">;
|
|
5126
|
+
path: z.ZodString;
|
|
5127
|
+
text: z.ZodString;
|
|
5128
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5130
|
+
id: z.ZodString;
|
|
5131
|
+
expertKey: z.ZodString;
|
|
5132
|
+
runId: z.ZodString;
|
|
5133
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5134
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5135
|
+
expertKey: z.ZodString;
|
|
5136
|
+
runId: z.ZodString;
|
|
5137
|
+
}, z.core.$strip>>;
|
|
5138
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5139
|
+
type: z.ZodLiteral<"deleteFile">;
|
|
5140
|
+
path: z.ZodString;
|
|
5141
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5143
|
+
id: z.ZodString;
|
|
5144
|
+
expertKey: z.ZodString;
|
|
5145
|
+
runId: z.ZodString;
|
|
5146
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5147
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5148
|
+
expertKey: z.ZodString;
|
|
5149
|
+
runId: z.ZodString;
|
|
5150
|
+
}, z.core.$strip>>;
|
|
5151
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5152
|
+
type: z.ZodLiteral<"deleteDirectory">;
|
|
5153
|
+
path: z.ZodString;
|
|
5154
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
5155
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5157
|
+
id: z.ZodString;
|
|
5158
|
+
expertKey: z.ZodString;
|
|
5159
|
+
runId: z.ZodString;
|
|
5160
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5161
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5162
|
+
expertKey: z.ZodString;
|
|
5163
|
+
runId: z.ZodString;
|
|
5164
|
+
}, z.core.$strip>>;
|
|
5165
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5166
|
+
type: z.ZodLiteral<"moveFile">;
|
|
5167
|
+
source: z.ZodString;
|
|
5168
|
+
destination: z.ZodString;
|
|
5169
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5171
|
+
id: z.ZodString;
|
|
5172
|
+
expertKey: z.ZodString;
|
|
5173
|
+
runId: z.ZodString;
|
|
5174
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5176
|
+
expertKey: z.ZodString;
|
|
5177
|
+
runId: z.ZodString;
|
|
5178
|
+
}, z.core.$strip>>;
|
|
5179
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5180
|
+
type: z.ZodLiteral<"getFileInfo">;
|
|
5181
|
+
path: z.ZodString;
|
|
5182
|
+
info: z.ZodOptional<z.ZodObject<{
|
|
5183
|
+
exists: z.ZodBoolean;
|
|
5184
|
+
name: z.ZodString;
|
|
5185
|
+
directory: z.ZodString;
|
|
5186
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
5187
|
+
type: z.ZodEnum<{
|
|
5188
|
+
file: "file";
|
|
5189
|
+
directory: "directory";
|
|
5190
|
+
}>;
|
|
5191
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
5192
|
+
size: z.ZodNumber;
|
|
5193
|
+
sizeFormatted: z.ZodString;
|
|
5194
|
+
created: z.ZodString;
|
|
5195
|
+
modified: z.ZodString;
|
|
5196
|
+
accessed: z.ZodString;
|
|
5197
|
+
}, z.core.$strip>>;
|
|
5198
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5200
|
+
id: z.ZodString;
|
|
5201
|
+
expertKey: z.ZodString;
|
|
5202
|
+
runId: z.ZodString;
|
|
5203
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5204
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5205
|
+
expertKey: z.ZodString;
|
|
5206
|
+
runId: z.ZodString;
|
|
5207
|
+
}, z.core.$strip>>;
|
|
5208
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5209
|
+
type: z.ZodLiteral<"createDirectory">;
|
|
5210
|
+
path: z.ZodString;
|
|
5211
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5213
|
+
id: z.ZodString;
|
|
5214
|
+
expertKey: z.ZodString;
|
|
5215
|
+
runId: z.ZodString;
|
|
5216
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5217
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5218
|
+
expertKey: z.ZodString;
|
|
5219
|
+
runId: z.ZodString;
|
|
5220
|
+
}, z.core.$strip>>;
|
|
5221
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5222
|
+
type: z.ZodLiteral<"listDirectory">;
|
|
5223
|
+
path: z.ZodString;
|
|
5224
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5225
|
+
name: z.ZodString;
|
|
5226
|
+
path: z.ZodString;
|
|
5227
|
+
type: z.ZodEnum<{
|
|
5228
|
+
file: "file";
|
|
5229
|
+
directory: "directory";
|
|
5230
|
+
}>;
|
|
5231
|
+
size: z.ZodNumber;
|
|
5232
|
+
modified: z.ZodString;
|
|
5233
|
+
}, z.core.$strip>>>;
|
|
5234
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5236
|
+
id: z.ZodString;
|
|
5237
|
+
expertKey: z.ZodString;
|
|
5238
|
+
runId: z.ZodString;
|
|
5239
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5240
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5241
|
+
expertKey: z.ZodString;
|
|
5242
|
+
runId: z.ZodString;
|
|
5243
|
+
}, z.core.$strip>>;
|
|
5244
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5245
|
+
type: z.ZodLiteral<"exec">;
|
|
5246
|
+
command: z.ZodString;
|
|
5247
|
+
args: z.ZodArray<z.ZodString>;
|
|
5248
|
+
cwd: z.ZodString;
|
|
5249
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5250
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5251
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
5252
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
5253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5254
|
+
id: z.ZodString;
|
|
5255
|
+
expertKey: z.ZodString;
|
|
5256
|
+
runId: z.ZodString;
|
|
5257
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5258
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5259
|
+
expertKey: z.ZodString;
|
|
5260
|
+
runId: z.ZodString;
|
|
5261
|
+
}, z.core.$strip>>;
|
|
5262
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5263
|
+
type: z.ZodLiteral<"delegate">;
|
|
5264
|
+
delegateExpertKey: z.ZodString;
|
|
5265
|
+
query: z.ZodString;
|
|
5266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5267
|
+
id: z.ZodString;
|
|
5268
|
+
expertKey: z.ZodString;
|
|
5269
|
+
runId: z.ZodString;
|
|
5270
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5271
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5272
|
+
expertKey: z.ZodString;
|
|
5273
|
+
runId: z.ZodString;
|
|
5274
|
+
}, z.core.$strip>>;
|
|
5275
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5276
|
+
type: z.ZodLiteral<"delegationComplete">;
|
|
5277
|
+
count: z.ZodNumber;
|
|
5278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5279
|
+
id: z.ZodString;
|
|
5280
|
+
expertKey: z.ZodString;
|
|
5281
|
+
runId: z.ZodString;
|
|
5282
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5283
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5284
|
+
expertKey: z.ZodString;
|
|
5285
|
+
runId: z.ZodString;
|
|
5286
|
+
}, z.core.$strip>>;
|
|
5287
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5288
|
+
type: z.ZodLiteral<"interactiveTool">;
|
|
5289
|
+
skillName: z.ZodString;
|
|
5290
|
+
toolName: z.ZodString;
|
|
5291
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5293
|
+
id: z.ZodString;
|
|
5294
|
+
expertKey: z.ZodString;
|
|
5295
|
+
runId: z.ZodString;
|
|
5296
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5297
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5298
|
+
expertKey: z.ZodString;
|
|
5299
|
+
runId: z.ZodString;
|
|
5300
|
+
}, z.core.$strip>>;
|
|
5301
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5302
|
+
type: z.ZodLiteral<"generalTool">;
|
|
5303
|
+
skillName: z.ZodString;
|
|
5304
|
+
toolName: z.ZodString;
|
|
5305
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5306
|
+
result: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5307
|
+
id: z.ZodString;
|
|
5308
|
+
type: z.ZodLiteral<"textPart">;
|
|
5309
|
+
text: z.ZodString;
|
|
5310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5311
|
+
id: z.ZodString;
|
|
5312
|
+
type: z.ZodLiteral<"imageUrlPart">;
|
|
5313
|
+
url: z.ZodURL;
|
|
5314
|
+
mimeType: z.ZodString;
|
|
5315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5316
|
+
id: z.ZodString;
|
|
5317
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
5318
|
+
encodedData: z.ZodString;
|
|
5319
|
+
mimeType: z.ZodString;
|
|
5320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5321
|
+
id: z.ZodString;
|
|
5322
|
+
type: z.ZodLiteral<"imageBinaryPart">;
|
|
5323
|
+
data: z.ZodString;
|
|
5324
|
+
mimeType: z.ZodString;
|
|
5325
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5326
|
+
id: z.ZodString;
|
|
5327
|
+
type: z.ZodLiteral<"fileUrlPart">;
|
|
5328
|
+
url: z.ZodString;
|
|
5329
|
+
mimeType: z.ZodString;
|
|
5330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5331
|
+
id: z.ZodString;
|
|
5332
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
5333
|
+
encodedData: z.ZodString;
|
|
5334
|
+
mimeType: z.ZodString;
|
|
5335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5336
|
+
id: z.ZodString;
|
|
5337
|
+
type: z.ZodLiteral<"fileBinaryPart">;
|
|
5338
|
+
data: z.ZodString;
|
|
5339
|
+
mimeType: z.ZodString;
|
|
5340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5341
|
+
id: z.ZodString;
|
|
5342
|
+
type: z.ZodLiteral<"toolCallPart">;
|
|
5343
|
+
toolCallId: z.ZodString;
|
|
5344
|
+
toolName: z.ZodString;
|
|
5345
|
+
args: z.ZodUnknown;
|
|
5346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5347
|
+
id: z.ZodString;
|
|
5348
|
+
type: z.ZodLiteral<"toolResultPart">;
|
|
5349
|
+
toolCallId: z.ZodString;
|
|
5350
|
+
toolName: z.ZodString;
|
|
5351
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
5352
|
+
id: z.ZodString;
|
|
5353
|
+
type: z.ZodLiteral<"textPart">;
|
|
5354
|
+
text: z.ZodString;
|
|
5355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5356
|
+
id: z.ZodString;
|
|
5357
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
5358
|
+
encodedData: z.ZodString;
|
|
5359
|
+
mimeType: z.ZodString;
|
|
5360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5361
|
+
id: z.ZodString;
|
|
5362
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
5363
|
+
encodedData: z.ZodString;
|
|
5364
|
+
mimeType: z.ZodString;
|
|
5365
|
+
}, z.core.$strip>]>>;
|
|
5366
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
5367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5368
|
+
id: z.ZodString;
|
|
5369
|
+
type: z.ZodLiteral<"thinkingPart">;
|
|
5370
|
+
thinking: z.ZodString;
|
|
5371
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
5372
|
+
}, z.core.$strip>], "type">>>;
|
|
5373
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5374
|
+
}, z.core.$strip>], "type">>;
|
|
5375
|
+
}, z.core.$strip>;
|
|
5376
|
+
/** Activity or group of parallel activities */
|
|
5377
|
+
type ActivityOrGroup = Activity | ParallelActivitiesGroup;
|
|
5378
|
+
declare const activityOrGroupSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5379
|
+
id: z.ZodString;
|
|
5380
|
+
expertKey: z.ZodString;
|
|
5381
|
+
runId: z.ZodString;
|
|
5382
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5383
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5384
|
+
expertKey: z.ZodString;
|
|
5385
|
+
runId: z.ZodString;
|
|
5386
|
+
}, z.core.$strip>>;
|
|
5387
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5388
|
+
type: z.ZodLiteral<"query">;
|
|
5389
|
+
text: z.ZodString;
|
|
5390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5391
|
+
id: z.ZodString;
|
|
5392
|
+
expertKey: z.ZodString;
|
|
5393
|
+
runId: z.ZodString;
|
|
5394
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5395
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5396
|
+
expertKey: z.ZodString;
|
|
5397
|
+
runId: z.ZodString;
|
|
5398
|
+
}, z.core.$strip>>;
|
|
5399
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5400
|
+
type: z.ZodLiteral<"retry">;
|
|
5401
|
+
error: z.ZodString;
|
|
5402
|
+
message: z.ZodString;
|
|
5403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5404
|
+
id: z.ZodString;
|
|
5405
|
+
expertKey: z.ZodString;
|
|
5406
|
+
runId: z.ZodString;
|
|
5407
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5408
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5409
|
+
expertKey: z.ZodString;
|
|
5410
|
+
runId: z.ZodString;
|
|
5411
|
+
}, z.core.$strip>>;
|
|
5412
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5413
|
+
type: z.ZodLiteral<"complete">;
|
|
5414
|
+
text: z.ZodString;
|
|
5415
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5416
|
+
id: z.ZodString;
|
|
5417
|
+
expertKey: z.ZodString;
|
|
5418
|
+
runId: z.ZodString;
|
|
5419
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5420
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5421
|
+
expertKey: z.ZodString;
|
|
5422
|
+
runId: z.ZodString;
|
|
5423
|
+
}, z.core.$strip>>;
|
|
5424
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5425
|
+
type: z.ZodLiteral<"error">;
|
|
5426
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5427
|
+
errorName: z.ZodOptional<z.ZodString>;
|
|
5428
|
+
isRetryable: z.ZodOptional<z.ZodBoolean>;
|
|
5429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5430
|
+
id: z.ZodString;
|
|
5431
|
+
expertKey: z.ZodString;
|
|
5432
|
+
runId: z.ZodString;
|
|
5433
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5434
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5435
|
+
expertKey: z.ZodString;
|
|
5436
|
+
runId: z.ZodString;
|
|
5437
|
+
}, z.core.$strip>>;
|
|
5438
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5439
|
+
type: z.ZodLiteral<"attemptCompletion">;
|
|
5440
|
+
remainingTodos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5441
|
+
id: z.ZodNumber;
|
|
5442
|
+
title: z.ZodString;
|
|
5443
|
+
completed: z.ZodBoolean;
|
|
5444
|
+
}, z.core.$strip>>>;
|
|
5445
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5446
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5447
|
+
id: z.ZodString;
|
|
5448
|
+
expertKey: z.ZodString;
|
|
5449
|
+
runId: z.ZodString;
|
|
5450
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5451
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5452
|
+
expertKey: z.ZodString;
|
|
5453
|
+
runId: z.ZodString;
|
|
5454
|
+
}, z.core.$strip>>;
|
|
5455
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5456
|
+
type: z.ZodLiteral<"todo">;
|
|
5457
|
+
newTodos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5458
|
+
completedTodos: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5459
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
5460
|
+
id: z.ZodNumber;
|
|
5461
|
+
title: z.ZodString;
|
|
5462
|
+
completed: z.ZodBoolean;
|
|
5463
|
+
}, z.core.$strip>>;
|
|
5464
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5466
|
+
id: z.ZodString;
|
|
5467
|
+
expertKey: z.ZodString;
|
|
5468
|
+
runId: z.ZodString;
|
|
5469
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5470
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5471
|
+
expertKey: z.ZodString;
|
|
5472
|
+
runId: z.ZodString;
|
|
5473
|
+
}, z.core.$strip>>;
|
|
5474
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5475
|
+
type: z.ZodLiteral<"clearTodo">;
|
|
5476
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5477
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5478
|
+
id: z.ZodString;
|
|
5479
|
+
expertKey: z.ZodString;
|
|
5480
|
+
runId: z.ZodString;
|
|
5481
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5482
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5483
|
+
expertKey: z.ZodString;
|
|
5484
|
+
runId: z.ZodString;
|
|
5485
|
+
}, z.core.$strip>>;
|
|
5486
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5487
|
+
type: z.ZodLiteral<"readImageFile">;
|
|
5488
|
+
path: z.ZodString;
|
|
5489
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5490
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5491
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5493
|
+
id: z.ZodString;
|
|
5494
|
+
expertKey: z.ZodString;
|
|
5495
|
+
runId: z.ZodString;
|
|
5496
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5497
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5498
|
+
expertKey: z.ZodString;
|
|
5499
|
+
runId: z.ZodString;
|
|
5500
|
+
}, z.core.$strip>>;
|
|
5501
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5502
|
+
type: z.ZodLiteral<"readPdfFile">;
|
|
5503
|
+
path: z.ZodString;
|
|
5504
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5505
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5506
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5508
|
+
id: z.ZodString;
|
|
5509
|
+
expertKey: z.ZodString;
|
|
5510
|
+
runId: z.ZodString;
|
|
5511
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5512
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5513
|
+
expertKey: z.ZodString;
|
|
5514
|
+
runId: z.ZodString;
|
|
5515
|
+
}, z.core.$strip>>;
|
|
5516
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5517
|
+
type: z.ZodLiteral<"readTextFile">;
|
|
5518
|
+
path: z.ZodString;
|
|
5519
|
+
content: z.ZodOptional<z.ZodString>;
|
|
5520
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
5521
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
5522
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5524
|
+
id: z.ZodString;
|
|
5525
|
+
expertKey: z.ZodString;
|
|
5526
|
+
runId: z.ZodString;
|
|
5527
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5528
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5529
|
+
expertKey: z.ZodString;
|
|
5530
|
+
runId: z.ZodString;
|
|
5531
|
+
}, z.core.$strip>>;
|
|
5532
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5533
|
+
type: z.ZodLiteral<"editTextFile">;
|
|
5534
|
+
path: z.ZodString;
|
|
5535
|
+
newText: z.ZodString;
|
|
5536
|
+
oldText: z.ZodString;
|
|
5537
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5539
|
+
id: z.ZodString;
|
|
5540
|
+
expertKey: z.ZodString;
|
|
5541
|
+
runId: z.ZodString;
|
|
5542
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5543
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5544
|
+
expertKey: z.ZodString;
|
|
5545
|
+
runId: z.ZodString;
|
|
5546
|
+
}, z.core.$strip>>;
|
|
5547
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5548
|
+
type: z.ZodLiteral<"appendTextFile">;
|
|
5549
|
+
path: z.ZodString;
|
|
5550
|
+
text: z.ZodString;
|
|
5551
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5553
|
+
id: z.ZodString;
|
|
5554
|
+
expertKey: z.ZodString;
|
|
5555
|
+
runId: z.ZodString;
|
|
5556
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5557
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5558
|
+
expertKey: z.ZodString;
|
|
5559
|
+
runId: z.ZodString;
|
|
5560
|
+
}, z.core.$strip>>;
|
|
5561
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5562
|
+
type: z.ZodLiteral<"writeTextFile">;
|
|
5563
|
+
path: z.ZodString;
|
|
5564
|
+
text: z.ZodString;
|
|
5565
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5567
|
+
id: z.ZodString;
|
|
5568
|
+
expertKey: z.ZodString;
|
|
5569
|
+
runId: z.ZodString;
|
|
5570
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5571
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5572
|
+
expertKey: z.ZodString;
|
|
5573
|
+
runId: z.ZodString;
|
|
5574
|
+
}, z.core.$strip>>;
|
|
5575
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5576
|
+
type: z.ZodLiteral<"deleteFile">;
|
|
5577
|
+
path: z.ZodString;
|
|
5578
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5580
|
+
id: z.ZodString;
|
|
5581
|
+
expertKey: z.ZodString;
|
|
5582
|
+
runId: z.ZodString;
|
|
5583
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5584
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5585
|
+
expertKey: z.ZodString;
|
|
5586
|
+
runId: z.ZodString;
|
|
5587
|
+
}, z.core.$strip>>;
|
|
5588
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5589
|
+
type: z.ZodLiteral<"deleteDirectory">;
|
|
5590
|
+
path: z.ZodString;
|
|
5591
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
5592
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5594
|
+
id: z.ZodString;
|
|
5595
|
+
expertKey: z.ZodString;
|
|
5596
|
+
runId: z.ZodString;
|
|
5597
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5598
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5599
|
+
expertKey: z.ZodString;
|
|
5600
|
+
runId: z.ZodString;
|
|
5601
|
+
}, z.core.$strip>>;
|
|
5602
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5603
|
+
type: z.ZodLiteral<"moveFile">;
|
|
5604
|
+
source: z.ZodString;
|
|
5605
|
+
destination: z.ZodString;
|
|
5606
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5607
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5608
|
+
id: z.ZodString;
|
|
5609
|
+
expertKey: z.ZodString;
|
|
5610
|
+
runId: z.ZodString;
|
|
5611
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5612
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5613
|
+
expertKey: z.ZodString;
|
|
5614
|
+
runId: z.ZodString;
|
|
5615
|
+
}, z.core.$strip>>;
|
|
5616
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5617
|
+
type: z.ZodLiteral<"getFileInfo">;
|
|
5618
|
+
path: z.ZodString;
|
|
5619
|
+
info: z.ZodOptional<z.ZodObject<{
|
|
5620
|
+
exists: z.ZodBoolean;
|
|
5621
|
+
name: z.ZodString;
|
|
5622
|
+
directory: z.ZodString;
|
|
5623
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
5624
|
+
type: z.ZodEnum<{
|
|
5625
|
+
file: "file";
|
|
5626
|
+
directory: "directory";
|
|
5627
|
+
}>;
|
|
5628
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
5629
|
+
size: z.ZodNumber;
|
|
5630
|
+
sizeFormatted: z.ZodString;
|
|
5631
|
+
created: z.ZodString;
|
|
5632
|
+
modified: z.ZodString;
|
|
5633
|
+
accessed: z.ZodString;
|
|
5634
|
+
}, z.core.$strip>>;
|
|
5635
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5637
|
+
id: z.ZodString;
|
|
5638
|
+
expertKey: z.ZodString;
|
|
5639
|
+
runId: z.ZodString;
|
|
5640
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5641
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5642
|
+
expertKey: z.ZodString;
|
|
5643
|
+
runId: z.ZodString;
|
|
5644
|
+
}, z.core.$strip>>;
|
|
5645
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5646
|
+
type: z.ZodLiteral<"createDirectory">;
|
|
5647
|
+
path: z.ZodString;
|
|
5648
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5650
|
+
id: z.ZodString;
|
|
5651
|
+
expertKey: z.ZodString;
|
|
5652
|
+
runId: z.ZodString;
|
|
5653
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5654
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5655
|
+
expertKey: z.ZodString;
|
|
5656
|
+
runId: z.ZodString;
|
|
5657
|
+
}, z.core.$strip>>;
|
|
5658
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5659
|
+
type: z.ZodLiteral<"listDirectory">;
|
|
5660
|
+
path: z.ZodString;
|
|
5661
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5662
|
+
name: z.ZodString;
|
|
5663
|
+
path: z.ZodString;
|
|
5664
|
+
type: z.ZodEnum<{
|
|
5665
|
+
file: "file";
|
|
5666
|
+
directory: "directory";
|
|
5667
|
+
}>;
|
|
5668
|
+
size: z.ZodNumber;
|
|
5669
|
+
modified: z.ZodString;
|
|
5670
|
+
}, z.core.$strip>>>;
|
|
5671
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5672
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5673
|
+
id: z.ZodString;
|
|
5674
|
+
expertKey: z.ZodString;
|
|
5675
|
+
runId: z.ZodString;
|
|
5676
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5677
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5678
|
+
expertKey: z.ZodString;
|
|
5679
|
+
runId: z.ZodString;
|
|
5680
|
+
}, z.core.$strip>>;
|
|
5681
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5682
|
+
type: z.ZodLiteral<"exec">;
|
|
5683
|
+
command: z.ZodString;
|
|
5684
|
+
args: z.ZodArray<z.ZodString>;
|
|
5685
|
+
cwd: z.ZodString;
|
|
5686
|
+
output: z.ZodOptional<z.ZodString>;
|
|
5687
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5688
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
5689
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
5690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5691
|
+
id: z.ZodString;
|
|
5692
|
+
expertKey: z.ZodString;
|
|
5693
|
+
runId: z.ZodString;
|
|
5694
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5695
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5696
|
+
expertKey: z.ZodString;
|
|
5697
|
+
runId: z.ZodString;
|
|
5698
|
+
}, z.core.$strip>>;
|
|
5699
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5700
|
+
type: z.ZodLiteral<"delegate">;
|
|
5701
|
+
delegateExpertKey: z.ZodString;
|
|
5702
|
+
query: z.ZodString;
|
|
5703
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5704
|
+
id: z.ZodString;
|
|
5705
|
+
expertKey: z.ZodString;
|
|
5706
|
+
runId: z.ZodString;
|
|
5707
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5708
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5709
|
+
expertKey: z.ZodString;
|
|
5710
|
+
runId: z.ZodString;
|
|
5711
|
+
}, z.core.$strip>>;
|
|
5712
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5713
|
+
type: z.ZodLiteral<"delegationComplete">;
|
|
5714
|
+
count: z.ZodNumber;
|
|
5715
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5716
|
+
id: z.ZodString;
|
|
5717
|
+
expertKey: z.ZodString;
|
|
5718
|
+
runId: z.ZodString;
|
|
5719
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5720
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5721
|
+
expertKey: z.ZodString;
|
|
5722
|
+
runId: z.ZodString;
|
|
5723
|
+
}, z.core.$strip>>;
|
|
5724
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5725
|
+
type: z.ZodLiteral<"interactiveTool">;
|
|
5726
|
+
skillName: z.ZodString;
|
|
5727
|
+
toolName: z.ZodString;
|
|
5728
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5730
|
+
id: z.ZodString;
|
|
5731
|
+
expertKey: z.ZodString;
|
|
5732
|
+
runId: z.ZodString;
|
|
5733
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5734
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5735
|
+
expertKey: z.ZodString;
|
|
5736
|
+
runId: z.ZodString;
|
|
5737
|
+
}, z.core.$strip>>;
|
|
5738
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5739
|
+
type: z.ZodLiteral<"generalTool">;
|
|
5740
|
+
skillName: z.ZodString;
|
|
5741
|
+
toolName: z.ZodString;
|
|
5742
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5743
|
+
result: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5744
|
+
id: z.ZodString;
|
|
5745
|
+
type: z.ZodLiteral<"textPart">;
|
|
5746
|
+
text: z.ZodString;
|
|
5747
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5748
|
+
id: z.ZodString;
|
|
5749
|
+
type: z.ZodLiteral<"imageUrlPart">;
|
|
5750
|
+
url: z.ZodURL;
|
|
5751
|
+
mimeType: z.ZodString;
|
|
5752
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5753
|
+
id: z.ZodString;
|
|
5754
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
5755
|
+
encodedData: z.ZodString;
|
|
5756
|
+
mimeType: z.ZodString;
|
|
5757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5758
|
+
id: z.ZodString;
|
|
5759
|
+
type: z.ZodLiteral<"imageBinaryPart">;
|
|
5760
|
+
data: z.ZodString;
|
|
5761
|
+
mimeType: z.ZodString;
|
|
5762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5763
|
+
id: z.ZodString;
|
|
5764
|
+
type: z.ZodLiteral<"fileUrlPart">;
|
|
5765
|
+
url: z.ZodString;
|
|
5766
|
+
mimeType: z.ZodString;
|
|
5767
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5768
|
+
id: z.ZodString;
|
|
5769
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
5770
|
+
encodedData: z.ZodString;
|
|
5771
|
+
mimeType: z.ZodString;
|
|
5772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5773
|
+
id: z.ZodString;
|
|
5774
|
+
type: z.ZodLiteral<"fileBinaryPart">;
|
|
5775
|
+
data: z.ZodString;
|
|
5776
|
+
mimeType: z.ZodString;
|
|
5777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5778
|
+
id: z.ZodString;
|
|
5779
|
+
type: z.ZodLiteral<"toolCallPart">;
|
|
5780
|
+
toolCallId: z.ZodString;
|
|
5781
|
+
toolName: z.ZodString;
|
|
5782
|
+
args: z.ZodUnknown;
|
|
5783
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5784
|
+
id: z.ZodString;
|
|
5785
|
+
type: z.ZodLiteral<"toolResultPart">;
|
|
5786
|
+
toolCallId: z.ZodString;
|
|
5787
|
+
toolName: z.ZodString;
|
|
5788
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
5789
|
+
id: z.ZodString;
|
|
5790
|
+
type: z.ZodLiteral<"textPart">;
|
|
5791
|
+
text: z.ZodString;
|
|
5792
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5793
|
+
id: z.ZodString;
|
|
5794
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
5795
|
+
encodedData: z.ZodString;
|
|
5796
|
+
mimeType: z.ZodString;
|
|
5797
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5798
|
+
id: z.ZodString;
|
|
5799
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
5800
|
+
encodedData: z.ZodString;
|
|
5801
|
+
mimeType: z.ZodString;
|
|
5802
|
+
}, z.core.$strip>]>>;
|
|
5803
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
5804
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5805
|
+
id: z.ZodString;
|
|
5806
|
+
type: z.ZodLiteral<"thinkingPart">;
|
|
5807
|
+
thinking: z.ZodString;
|
|
5808
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
5809
|
+
}, z.core.$strip>], "type">>>;
|
|
5810
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5811
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
5812
|
+
type: z.ZodLiteral<"parallelGroup">;
|
|
5813
|
+
id: z.ZodString;
|
|
5814
|
+
expertKey: z.ZodString;
|
|
5815
|
+
runId: z.ZodString;
|
|
5816
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5817
|
+
activities: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5818
|
+
id: z.ZodString;
|
|
5819
|
+
expertKey: z.ZodString;
|
|
5820
|
+
runId: z.ZodString;
|
|
5821
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5822
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5823
|
+
expertKey: z.ZodString;
|
|
5824
|
+
runId: z.ZodString;
|
|
5825
|
+
}, z.core.$strip>>;
|
|
5826
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5827
|
+
type: z.ZodLiteral<"query">;
|
|
5828
|
+
text: z.ZodString;
|
|
5829
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5830
|
+
id: z.ZodString;
|
|
5831
|
+
expertKey: z.ZodString;
|
|
5832
|
+
runId: z.ZodString;
|
|
5833
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5834
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5835
|
+
expertKey: z.ZodString;
|
|
5836
|
+
runId: z.ZodString;
|
|
5837
|
+
}, z.core.$strip>>;
|
|
5838
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5839
|
+
type: z.ZodLiteral<"retry">;
|
|
5840
|
+
error: z.ZodString;
|
|
5841
|
+
message: z.ZodString;
|
|
5842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5843
|
+
id: z.ZodString;
|
|
5844
|
+
expertKey: z.ZodString;
|
|
5845
|
+
runId: z.ZodString;
|
|
5846
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5847
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5848
|
+
expertKey: z.ZodString;
|
|
5849
|
+
runId: z.ZodString;
|
|
5850
|
+
}, z.core.$strip>>;
|
|
5851
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5852
|
+
type: z.ZodLiteral<"complete">;
|
|
5853
|
+
text: z.ZodString;
|
|
5854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5855
|
+
id: z.ZodString;
|
|
5856
|
+
expertKey: z.ZodString;
|
|
5857
|
+
runId: z.ZodString;
|
|
5858
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5859
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5860
|
+
expertKey: z.ZodString;
|
|
5861
|
+
runId: z.ZodString;
|
|
5862
|
+
}, z.core.$strip>>;
|
|
5863
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5864
|
+
type: z.ZodLiteral<"error">;
|
|
5865
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5866
|
+
errorName: z.ZodOptional<z.ZodString>;
|
|
5867
|
+
isRetryable: z.ZodOptional<z.ZodBoolean>;
|
|
5868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5869
|
+
id: z.ZodString;
|
|
5870
|
+
expertKey: z.ZodString;
|
|
5871
|
+
runId: z.ZodString;
|
|
5872
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5873
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5874
|
+
expertKey: z.ZodString;
|
|
5875
|
+
runId: z.ZodString;
|
|
5876
|
+
}, z.core.$strip>>;
|
|
5877
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
type: z.ZodLiteral<"attemptCompletion">;
|
|
5879
|
+
remainingTodos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5880
|
+
id: z.ZodNumber;
|
|
5881
|
+
title: z.ZodString;
|
|
5882
|
+
completed: z.ZodBoolean;
|
|
5883
|
+
}, z.core.$strip>>>;
|
|
5884
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5885
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5886
|
+
id: z.ZodString;
|
|
5887
|
+
expertKey: z.ZodString;
|
|
5888
|
+
runId: z.ZodString;
|
|
5889
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5890
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5891
|
+
expertKey: z.ZodString;
|
|
5892
|
+
runId: z.ZodString;
|
|
5893
|
+
}, z.core.$strip>>;
|
|
5894
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5895
|
+
type: z.ZodLiteral<"todo">;
|
|
5896
|
+
newTodos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5897
|
+
completedTodos: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5898
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
5899
|
+
id: z.ZodNumber;
|
|
5900
|
+
title: z.ZodString;
|
|
5901
|
+
completed: z.ZodBoolean;
|
|
5902
|
+
}, z.core.$strip>>;
|
|
5903
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5905
|
+
id: z.ZodString;
|
|
5906
|
+
expertKey: z.ZodString;
|
|
5907
|
+
runId: z.ZodString;
|
|
5908
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5909
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5910
|
+
expertKey: z.ZodString;
|
|
5911
|
+
runId: z.ZodString;
|
|
5912
|
+
}, z.core.$strip>>;
|
|
5913
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5914
|
+
type: z.ZodLiteral<"clearTodo">;
|
|
5915
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5917
|
+
id: z.ZodString;
|
|
5918
|
+
expertKey: z.ZodString;
|
|
5919
|
+
runId: z.ZodString;
|
|
5920
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5921
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5922
|
+
expertKey: z.ZodString;
|
|
5923
|
+
runId: z.ZodString;
|
|
5924
|
+
}, z.core.$strip>>;
|
|
5925
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5926
|
+
type: z.ZodLiteral<"readImageFile">;
|
|
5927
|
+
path: z.ZodString;
|
|
5928
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5929
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5930
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5931
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5932
|
+
id: z.ZodString;
|
|
5933
|
+
expertKey: z.ZodString;
|
|
5934
|
+
runId: z.ZodString;
|
|
5935
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5936
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5937
|
+
expertKey: z.ZodString;
|
|
5938
|
+
runId: z.ZodString;
|
|
5939
|
+
}, z.core.$strip>>;
|
|
5940
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5941
|
+
type: z.ZodLiteral<"readPdfFile">;
|
|
5942
|
+
path: z.ZodString;
|
|
5943
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
5944
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
5945
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5946
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5947
|
+
id: z.ZodString;
|
|
5948
|
+
expertKey: z.ZodString;
|
|
5949
|
+
runId: z.ZodString;
|
|
5950
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5951
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5952
|
+
expertKey: z.ZodString;
|
|
5953
|
+
runId: z.ZodString;
|
|
5954
|
+
}, z.core.$strip>>;
|
|
5955
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5956
|
+
type: z.ZodLiteral<"readTextFile">;
|
|
5957
|
+
path: z.ZodString;
|
|
5958
|
+
content: z.ZodOptional<z.ZodString>;
|
|
5959
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
5960
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
5961
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5963
|
+
id: z.ZodString;
|
|
5964
|
+
expertKey: z.ZodString;
|
|
5965
|
+
runId: z.ZodString;
|
|
5966
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5967
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5968
|
+
expertKey: z.ZodString;
|
|
5969
|
+
runId: z.ZodString;
|
|
5970
|
+
}, z.core.$strip>>;
|
|
5971
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5972
|
+
type: z.ZodLiteral<"editTextFile">;
|
|
5973
|
+
path: z.ZodString;
|
|
5974
|
+
newText: z.ZodString;
|
|
5975
|
+
oldText: z.ZodString;
|
|
5976
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5977
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5978
|
+
id: z.ZodString;
|
|
5979
|
+
expertKey: z.ZodString;
|
|
5980
|
+
runId: z.ZodString;
|
|
5981
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5982
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5983
|
+
expertKey: z.ZodString;
|
|
5984
|
+
runId: z.ZodString;
|
|
5985
|
+
}, z.core.$strip>>;
|
|
5986
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5987
|
+
type: z.ZodLiteral<"appendTextFile">;
|
|
5988
|
+
path: z.ZodString;
|
|
5989
|
+
text: z.ZodString;
|
|
5990
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5992
|
+
id: z.ZodString;
|
|
5993
|
+
expertKey: z.ZodString;
|
|
5994
|
+
runId: z.ZodString;
|
|
5995
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
5996
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
5997
|
+
expertKey: z.ZodString;
|
|
5998
|
+
runId: z.ZodString;
|
|
5999
|
+
}, z.core.$strip>>;
|
|
6000
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6001
|
+
type: z.ZodLiteral<"writeTextFile">;
|
|
6002
|
+
path: z.ZodString;
|
|
6003
|
+
text: z.ZodString;
|
|
6004
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6005
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6006
|
+
id: z.ZodString;
|
|
6007
|
+
expertKey: z.ZodString;
|
|
6008
|
+
runId: z.ZodString;
|
|
6009
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6010
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6011
|
+
expertKey: z.ZodString;
|
|
6012
|
+
runId: z.ZodString;
|
|
6013
|
+
}, z.core.$strip>>;
|
|
6014
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6015
|
+
type: z.ZodLiteral<"deleteFile">;
|
|
6016
|
+
path: z.ZodString;
|
|
6017
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6018
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6019
|
+
id: z.ZodString;
|
|
6020
|
+
expertKey: z.ZodString;
|
|
6021
|
+
runId: z.ZodString;
|
|
6022
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6023
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6024
|
+
expertKey: z.ZodString;
|
|
6025
|
+
runId: z.ZodString;
|
|
6026
|
+
}, z.core.$strip>>;
|
|
6027
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6028
|
+
type: z.ZodLiteral<"deleteDirectory">;
|
|
6029
|
+
path: z.ZodString;
|
|
6030
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
6031
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6032
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6033
|
+
id: z.ZodString;
|
|
6034
|
+
expertKey: z.ZodString;
|
|
6035
|
+
runId: z.ZodString;
|
|
6036
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6037
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6038
|
+
expertKey: z.ZodString;
|
|
6039
|
+
runId: z.ZodString;
|
|
6040
|
+
}, z.core.$strip>>;
|
|
6041
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6042
|
+
type: z.ZodLiteral<"moveFile">;
|
|
6043
|
+
source: z.ZodString;
|
|
6044
|
+
destination: z.ZodString;
|
|
6045
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6046
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6047
|
+
id: z.ZodString;
|
|
6048
|
+
expertKey: z.ZodString;
|
|
6049
|
+
runId: z.ZodString;
|
|
6050
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6051
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6052
|
+
expertKey: z.ZodString;
|
|
6053
|
+
runId: z.ZodString;
|
|
6054
|
+
}, z.core.$strip>>;
|
|
6055
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6056
|
+
type: z.ZodLiteral<"getFileInfo">;
|
|
6057
|
+
path: z.ZodString;
|
|
6058
|
+
info: z.ZodOptional<z.ZodObject<{
|
|
6059
|
+
exists: z.ZodBoolean;
|
|
6060
|
+
name: z.ZodString;
|
|
6061
|
+
directory: z.ZodString;
|
|
6062
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
6063
|
+
type: z.ZodEnum<{
|
|
6064
|
+
file: "file";
|
|
6065
|
+
directory: "directory";
|
|
6066
|
+
}>;
|
|
6067
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
6068
|
+
size: z.ZodNumber;
|
|
6069
|
+
sizeFormatted: z.ZodString;
|
|
6070
|
+
created: z.ZodString;
|
|
6071
|
+
modified: z.ZodString;
|
|
6072
|
+
accessed: z.ZodString;
|
|
6073
|
+
}, z.core.$strip>>;
|
|
6074
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6075
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6076
|
+
id: z.ZodString;
|
|
6077
|
+
expertKey: z.ZodString;
|
|
6078
|
+
runId: z.ZodString;
|
|
6079
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6080
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6081
|
+
expertKey: z.ZodString;
|
|
6082
|
+
runId: z.ZodString;
|
|
6083
|
+
}, z.core.$strip>>;
|
|
6084
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6085
|
+
type: z.ZodLiteral<"createDirectory">;
|
|
6086
|
+
path: z.ZodString;
|
|
6087
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6089
|
+
id: z.ZodString;
|
|
6090
|
+
expertKey: z.ZodString;
|
|
6091
|
+
runId: z.ZodString;
|
|
6092
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6093
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6094
|
+
expertKey: z.ZodString;
|
|
6095
|
+
runId: z.ZodString;
|
|
6096
|
+
}, z.core.$strip>>;
|
|
6097
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6098
|
+
type: z.ZodLiteral<"listDirectory">;
|
|
6099
|
+
path: z.ZodString;
|
|
6100
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6101
|
+
name: z.ZodString;
|
|
6102
|
+
path: z.ZodString;
|
|
6103
|
+
type: z.ZodEnum<{
|
|
6104
|
+
file: "file";
|
|
6105
|
+
directory: "directory";
|
|
6106
|
+
}>;
|
|
6107
|
+
size: z.ZodNumber;
|
|
6108
|
+
modified: z.ZodString;
|
|
6109
|
+
}, z.core.$strip>>>;
|
|
6110
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6112
|
+
id: z.ZodString;
|
|
6113
|
+
expertKey: z.ZodString;
|
|
6114
|
+
runId: z.ZodString;
|
|
6115
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6116
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6117
|
+
expertKey: z.ZodString;
|
|
6118
|
+
runId: z.ZodString;
|
|
6119
|
+
}, z.core.$strip>>;
|
|
6120
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6121
|
+
type: z.ZodLiteral<"exec">;
|
|
6122
|
+
command: z.ZodString;
|
|
6123
|
+
args: z.ZodArray<z.ZodString>;
|
|
6124
|
+
cwd: z.ZodString;
|
|
6125
|
+
output: z.ZodOptional<z.ZodString>;
|
|
6126
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6127
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
6128
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
6129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6130
|
+
id: z.ZodString;
|
|
6131
|
+
expertKey: z.ZodString;
|
|
6132
|
+
runId: z.ZodString;
|
|
6133
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6134
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6135
|
+
expertKey: z.ZodString;
|
|
6136
|
+
runId: z.ZodString;
|
|
6137
|
+
}, z.core.$strip>>;
|
|
6138
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6139
|
+
type: z.ZodLiteral<"delegate">;
|
|
6140
|
+
delegateExpertKey: z.ZodString;
|
|
6141
|
+
query: z.ZodString;
|
|
6142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6143
|
+
id: z.ZodString;
|
|
6144
|
+
expertKey: z.ZodString;
|
|
6145
|
+
runId: z.ZodString;
|
|
6146
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6147
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6148
|
+
expertKey: z.ZodString;
|
|
6149
|
+
runId: z.ZodString;
|
|
6150
|
+
}, z.core.$strip>>;
|
|
6151
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6152
|
+
type: z.ZodLiteral<"delegationComplete">;
|
|
6153
|
+
count: z.ZodNumber;
|
|
6154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6155
|
+
id: z.ZodString;
|
|
6156
|
+
expertKey: z.ZodString;
|
|
6157
|
+
runId: z.ZodString;
|
|
6158
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6159
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6160
|
+
expertKey: z.ZodString;
|
|
6161
|
+
runId: z.ZodString;
|
|
6162
|
+
}, z.core.$strip>>;
|
|
6163
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6164
|
+
type: z.ZodLiteral<"interactiveTool">;
|
|
6165
|
+
skillName: z.ZodString;
|
|
6166
|
+
toolName: z.ZodString;
|
|
6167
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6169
|
+
id: z.ZodString;
|
|
6170
|
+
expertKey: z.ZodString;
|
|
6171
|
+
runId: z.ZodString;
|
|
6172
|
+
previousActivityId: z.ZodOptional<z.ZodString>;
|
|
6173
|
+
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
6174
|
+
expertKey: z.ZodString;
|
|
6175
|
+
runId: z.ZodString;
|
|
6176
|
+
}, z.core.$strip>>;
|
|
6177
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
6178
|
+
type: z.ZodLiteral<"generalTool">;
|
|
6179
|
+
skillName: z.ZodString;
|
|
6180
|
+
toolName: z.ZodString;
|
|
6181
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6182
|
+
result: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6183
|
+
id: z.ZodString;
|
|
6184
|
+
type: z.ZodLiteral<"textPart">;
|
|
6185
|
+
text: z.ZodString;
|
|
6186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6187
|
+
id: z.ZodString;
|
|
6188
|
+
type: z.ZodLiteral<"imageUrlPart">;
|
|
6189
|
+
url: z.ZodURL;
|
|
6190
|
+
mimeType: z.ZodString;
|
|
6191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6192
|
+
id: z.ZodString;
|
|
6193
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
6194
|
+
encodedData: z.ZodString;
|
|
6195
|
+
mimeType: z.ZodString;
|
|
6196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6197
|
+
id: z.ZodString;
|
|
6198
|
+
type: z.ZodLiteral<"imageBinaryPart">;
|
|
6199
|
+
data: z.ZodString;
|
|
6200
|
+
mimeType: z.ZodString;
|
|
6201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6202
|
+
id: z.ZodString;
|
|
6203
|
+
type: z.ZodLiteral<"fileUrlPart">;
|
|
6204
|
+
url: z.ZodString;
|
|
6205
|
+
mimeType: z.ZodString;
|
|
6206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6207
|
+
id: z.ZodString;
|
|
6208
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
6209
|
+
encodedData: z.ZodString;
|
|
6210
|
+
mimeType: z.ZodString;
|
|
6211
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6212
|
+
id: z.ZodString;
|
|
6213
|
+
type: z.ZodLiteral<"fileBinaryPart">;
|
|
6214
|
+
data: z.ZodString;
|
|
6215
|
+
mimeType: z.ZodString;
|
|
6216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6217
|
+
id: z.ZodString;
|
|
6218
|
+
type: z.ZodLiteral<"toolCallPart">;
|
|
6219
|
+
toolCallId: z.ZodString;
|
|
6220
|
+
toolName: z.ZodString;
|
|
6221
|
+
args: z.ZodUnknown;
|
|
6222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6223
|
+
id: z.ZodString;
|
|
6224
|
+
type: z.ZodLiteral<"toolResultPart">;
|
|
6225
|
+
toolCallId: z.ZodString;
|
|
6226
|
+
toolName: z.ZodString;
|
|
6227
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6228
|
+
id: z.ZodString;
|
|
6229
|
+
type: z.ZodLiteral<"textPart">;
|
|
6230
|
+
text: z.ZodString;
|
|
6231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6232
|
+
id: z.ZodString;
|
|
6233
|
+
type: z.ZodLiteral<"imageInlinePart">;
|
|
6234
|
+
encodedData: z.ZodString;
|
|
6235
|
+
mimeType: z.ZodString;
|
|
6236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6237
|
+
id: z.ZodString;
|
|
6238
|
+
type: z.ZodLiteral<"fileInlinePart">;
|
|
6239
|
+
encodedData: z.ZodString;
|
|
6240
|
+
mimeType: z.ZodString;
|
|
6241
|
+
}, z.core.$strip>]>>;
|
|
6242
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
6243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6244
|
+
id: z.ZodString;
|
|
6245
|
+
type: z.ZodLiteral<"thinkingPart">;
|
|
6246
|
+
thinking: z.ZodString;
|
|
6247
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
6248
|
+
}, z.core.$strip>], "type">>>;
|
|
6249
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6250
|
+
}, z.core.$strip>], "type">>;
|
|
6251
|
+
}, z.core.$strip>]>;
|
|
6252
|
+
|
|
6253
|
+
type JobStatus = "running" | "completed" | "stoppedByMaxSteps" | "stoppedByInteractiveTool" | "stoppedByError";
|
|
6254
|
+
declare const jobStatusSchema: z.ZodEnum<{
|
|
6255
|
+
completed: "completed";
|
|
6256
|
+
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
6257
|
+
stoppedByError: "stoppedByError";
|
|
6258
|
+
running: "running";
|
|
6259
|
+
stoppedByMaxSteps: "stoppedByMaxSteps";
|
|
6260
|
+
}>;
|
|
6261
|
+
interface Job {
|
|
6262
|
+
id: string;
|
|
6263
|
+
status: JobStatus;
|
|
6264
|
+
coordinatorExpertKey: string;
|
|
6265
|
+
totalSteps: number;
|
|
6266
|
+
maxSteps?: number;
|
|
6267
|
+
usage: Usage;
|
|
6268
|
+
startedAt: number;
|
|
6269
|
+
finishedAt?: number;
|
|
6270
|
+
}
|
|
6271
|
+
declare const jobSchema: z.ZodObject<{
|
|
6272
|
+
id: z.ZodString;
|
|
6273
|
+
status: z.ZodEnum<{
|
|
6274
|
+
completed: "completed";
|
|
6275
|
+
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
6276
|
+
stoppedByError: "stoppedByError";
|
|
6277
|
+
running: "running";
|
|
6278
|
+
stoppedByMaxSteps: "stoppedByMaxSteps";
|
|
6279
|
+
}>;
|
|
6280
|
+
coordinatorExpertKey: z.ZodString;
|
|
6281
|
+
totalSteps: z.ZodNumber;
|
|
6282
|
+
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
6283
|
+
usage: z.ZodObject<{
|
|
6284
|
+
inputTokens: z.ZodNumber;
|
|
6285
|
+
outputTokens: z.ZodNumber;
|
|
6286
|
+
reasoningTokens: z.ZodNumber;
|
|
6287
|
+
totalTokens: z.ZodNumber;
|
|
6288
|
+
cachedInputTokens: z.ZodNumber;
|
|
6289
|
+
}, z.core.$strip>;
|
|
6290
|
+
startedAt: z.ZodNumber;
|
|
6291
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
6292
|
+
}, z.core.$strip>;
|
|
6293
|
+
|
|
6294
|
+
interface LockfileToolDefinition {
|
|
6295
|
+
skillName: string;
|
|
6296
|
+
name: string;
|
|
6297
|
+
description?: string;
|
|
6298
|
+
inputSchema: Record<string, unknown>;
|
|
6299
|
+
}
|
|
6300
|
+
declare const lockfileToolDefinitionSchema: z.ZodObject<{
|
|
6301
|
+
skillName: z.ZodString;
|
|
6302
|
+
name: z.ZodString;
|
|
6303
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6304
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6305
|
+
}, z.core.$strip>;
|
|
6306
|
+
interface LockfileExpert {
|
|
6307
|
+
key: string;
|
|
6308
|
+
name: string;
|
|
6309
|
+
version: string;
|
|
6310
|
+
description?: string;
|
|
6311
|
+
instruction: string;
|
|
6312
|
+
skills: Record<string, Skill>;
|
|
6313
|
+
delegates: string[];
|
|
6314
|
+
tags: string[];
|
|
6315
|
+
toolDefinitions: LockfileToolDefinition[];
|
|
6316
|
+
}
|
|
6317
|
+
declare const lockfileExpertSchema: z.ZodObject<{
|
|
6318
|
+
key: z.ZodString;
|
|
6319
|
+
name: z.ZodString;
|
|
6320
|
+
version: z.ZodString;
|
|
6321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6322
|
+
instruction: z.ZodString;
|
|
6323
|
+
skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6324
|
+
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
6325
|
+
name: z.ZodString;
|
|
6326
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6327
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
6328
|
+
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6329
|
+
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6330
|
+
command: z.ZodString;
|
|
6331
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
6332
|
+
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6333
|
+
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6334
|
+
lazyInit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6336
|
+
type: z.ZodLiteral<"mcpSseSkill">;
|
|
6337
|
+
name: z.ZodString;
|
|
6338
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6339
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
6340
|
+
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6341
|
+
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6342
|
+
endpoint: z.ZodString;
|
|
6343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6344
|
+
type: z.ZodLiteral<"interactiveSkill">;
|
|
6345
|
+
name: z.ZodString;
|
|
6346
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6347
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
6348
|
+
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6349
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6350
|
+
inputJsonSchema: z.ZodString;
|
|
6351
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
6352
|
+
[k: string]: {
|
|
6353
|
+
name: string;
|
|
6354
|
+
inputJsonSchema: string;
|
|
6355
|
+
description?: string | undefined;
|
|
6356
|
+
};
|
|
6357
|
+
}, Record<string, {
|
|
6358
|
+
inputJsonSchema: string;
|
|
6359
|
+
description?: string | undefined;
|
|
6360
|
+
}>>>;
|
|
6361
|
+
}, z.core.$strip>], "type">>;
|
|
6362
|
+
delegates: z.ZodArray<z.ZodString>;
|
|
6363
|
+
tags: z.ZodArray<z.ZodString>;
|
|
6364
|
+
toolDefinitions: z.ZodArray<z.ZodObject<{
|
|
6365
|
+
skillName: z.ZodString;
|
|
6366
|
+
name: z.ZodString;
|
|
6367
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6368
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6369
|
+
}, z.core.$strip>>;
|
|
6370
|
+
}, z.core.$strip>;
|
|
6371
|
+
interface Lockfile {
|
|
6372
|
+
version: "1";
|
|
6373
|
+
generatedAt: number;
|
|
6374
|
+
configPath: string;
|
|
6375
|
+
experts: Record<string, LockfileExpert>;
|
|
6376
|
+
}
|
|
6377
|
+
declare const lockfileSchema: z.ZodObject<{
|
|
6378
|
+
version: z.ZodLiteral<"1">;
|
|
6379
|
+
generatedAt: z.ZodNumber;
|
|
6380
|
+
configPath: z.ZodString;
|
|
6381
|
+
experts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6382
|
+
key: z.ZodString;
|
|
6383
|
+
name: z.ZodString;
|
|
6384
|
+
version: z.ZodString;
|
|
6385
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6386
|
+
instruction: z.ZodString;
|
|
6387
|
+
skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6388
|
+
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
6389
|
+
name: z.ZodString;
|
|
6390
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6391
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
6392
|
+
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3906
6393
|
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
3907
6394
|
command: z.ZodString;
|
|
3908
6395
|
packageName: z.ZodOptional<z.ZodString>;
|
|
@@ -3985,6 +6472,10 @@ interface CommandOptions {
|
|
|
3985
6472
|
runtime?: RuntimeName;
|
|
3986
6473
|
/** Workspace directory for Docker runtime */
|
|
3987
6474
|
workspace?: string;
|
|
6475
|
+
/** Additional volume mounts for Docker runtime (format: hostPath:containerPath:mode) */
|
|
6476
|
+
volume?: string[];
|
|
6477
|
+
/** Event types to filter (e.g., completeRun,stopRunByError) */
|
|
6478
|
+
filter?: string[];
|
|
3988
6479
|
}
|
|
3989
6480
|
/** Input for the `perstack run` command */
|
|
3990
6481
|
interface RunCommandInput {
|
|
@@ -4038,6 +6529,8 @@ declare const runCommandInputSchema: z.ZodObject<{
|
|
|
4038
6529
|
docker: "docker";
|
|
4039
6530
|
}>>;
|
|
4040
6531
|
workspace: z.ZodOptional<z.ZodString>;
|
|
6532
|
+
volume: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | undefined>>;
|
|
6533
|
+
filter: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
4041
6534
|
}, z.core.$strip>;
|
|
4042
6535
|
}, z.core.$strip>;
|
|
4043
6536
|
/** Input for the `perstack start` command */
|
|
@@ -4092,6 +6585,8 @@ declare const startCommandInputSchema: z.ZodObject<{
|
|
|
4092
6585
|
docker: "docker";
|
|
4093
6586
|
}>>;
|
|
4094
6587
|
workspace: z.ZodOptional<z.ZodString>;
|
|
6588
|
+
volume: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | undefined>>;
|
|
6589
|
+
filter: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
4095
6590
|
}, z.core.$strip>;
|
|
4096
6591
|
}, z.core.$strip>;
|
|
4097
6592
|
|
|
@@ -4222,10 +6717,40 @@ interface Storage {
|
|
|
4222
6717
|
getAllRuns(): Promise<RunSetting[]>;
|
|
4223
6718
|
}
|
|
4224
6719
|
|
|
6720
|
+
declare const BASE_SKILL_PREFIX = "@perstack/base";
|
|
6721
|
+
type GetActivitiesParams = {
|
|
6722
|
+
checkpoint: Checkpoint;
|
|
6723
|
+
step: Step;
|
|
6724
|
+
};
|
|
6725
|
+
/**
|
|
6726
|
+
* Computes activities from a checkpoint and step.
|
|
6727
|
+
* Returns an array of activities or activity groups, supporting parallel tool calls and delegations.
|
|
6728
|
+
* When multiple activities are produced from a single step, they are wrapped in a ParallelActivitiesGroup
|
|
6729
|
+
* with shared reasoning.
|
|
6730
|
+
*/
|
|
6731
|
+
declare function getActivities(params: GetActivitiesParams): ActivityOrGroup[];
|
|
6732
|
+
declare function createBaseToolActivity(toolName: string, toolCall: ToolCall, toolResult: ToolResult, reasoning: string | undefined): Activity;
|
|
6733
|
+
declare function createGeneralToolActivity(skillName: string, toolName: string, toolCall: ToolCall, toolResult: ToolResult, reasoning: string | undefined): Activity;
|
|
6734
|
+
|
|
4225
6735
|
declare const SAFE_ENV_VARS: string[];
|
|
4226
6736
|
declare function getFilteredEnv(additional?: Record<string, string>): Record<string, string>;
|
|
4227
6737
|
|
|
6738
|
+
/**
|
|
6739
|
+
* Validate and parse event filter option
|
|
6740
|
+
* @param filter - Array of event type strings to validate
|
|
6741
|
+
* @returns The validated filter array
|
|
6742
|
+
* @throws Error if any event type is invalid
|
|
6743
|
+
*/
|
|
6744
|
+
declare function validateEventFilter(filter: string[]): string[];
|
|
6745
|
+
/**
|
|
6746
|
+
* Create a filtered event listener that only emits events of allowed types
|
|
6747
|
+
* @param listener - The original event listener to wrap
|
|
6748
|
+
* @param allowedTypes - Set of event types to allow through
|
|
6749
|
+
* @returns A filtered event listener
|
|
6750
|
+
*/
|
|
6751
|
+
declare function createFilteredEventListener(listener: (event: PerstackEvent) => void, allowedTypes: Set<string>): (event: PerstackEvent) => void;
|
|
6752
|
+
|
|
4228
6753
|
declare function formatZodError(error: ZodError): string;
|
|
4229
6754
|
declare function parseWithFriendlyError<T>(schema: ZodSchema<T>, data: unknown, context?: string): T;
|
|
4230
6755
|
|
|
4231
|
-
export { type AdapterRunParams, type AdapterRunResult, type AmazonBedrockProviderConfig, type AnthropicProviderConfig, type AnthropicProviderSkill, type AnthropicProviderToolName, type AzureOpenAIProviderToolName, type AzureOpenAiProviderConfig, BaseAdapter, type BaseEvent, type BasePart, type BuiltinAnthropicSkill, type CallToolResultContent, type Checkpoint, type CheckpointStatus, type CommandOptions, type CreateCheckpointParams, type CustomAnthropicSkill, type DeepseekProviderConfig, type DelegateSkillManagerParams, type DelegationTarget, type EventForType, type EventMeta, type EventType, type ExecResult, type Expert, type ExpertMessage, type FileBinaryPart, type FileInlinePart, type FileUrlPart, type GoogleGenerativeAiProviderConfig, type GoogleProviderToolName, type GoogleVertexProviderConfig, type Headers, type ImageBinaryPart, type ImageInlinePart, type ImageUrlPart, type InstructionMessage, type InteractiveSkill, type InteractiveSkillManagerParams, type InteractiveTool, type Job, type JobStatus, type Lockfile, type LockfileExpert, type LockfileToolDefinition, type McpSkillManagerParams, type McpSseSkill, type McpStdioSkill, type Message, type MessagePart, type OllamaProviderConfig, type OpenAIProviderToolName, type OpenAiProviderConfig, type PerstackConfig, type PerstackConfigExpert, type PerstackConfigSkill, type PrerequisiteError, type PrerequisiteResult, type ProviderConfig, type ProviderName, type ProviderTable, type ProviderToolOptions, type ReasoningBudget, type Resource, type RunCommandInput, type RunEvent, type RunInput, type RunParams, type RunParamsInput, type RunSetting, type RuntimeAdapter, type RuntimeEvent, type RuntimeEventForType, type RuntimeEventType, type RuntimeExpertConfig, type RuntimeName, SAFE_ENV_VARS, type Skill, type SkillManagerParams, type SkillType, type StartCommandInput, type Step, type Storage, type TextPart, type ThinkingPart, type ToolCall, type ToolCallPart, type ToolDefinition, type ToolMessage, type ToolResult, type ToolResultPart, type Usage, type UserMessage, type VertexProviderToolName, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletion, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema,
|
|
6756
|
+
export { type Activity, type ActivityOrGroup, type ActivityType, type AdapterRunParams, type AdapterRunResult, type AmazonBedrockProviderConfig, type AnthropicProviderConfig, type AnthropicProviderSkill, type AnthropicProviderToolName, type AppendTextFileActivity, type AttemptCompletionActivity, type AzureOpenAIProviderToolName, type AzureOpenAiProviderConfig, BASE_SKILL_PREFIX, BaseAdapter, type BaseEvent, type BasePart, type BuiltinAnthropicSkill, type CallToolResultContent, type Checkpoint, type CheckpointStatus, type ClearTodoActivity, type CommandOptions, type CompleteActivity, type CreateCheckpointParams, type CreateDirectoryActivity, type CustomAnthropicSkill, type DeepseekProviderConfig, type DelegateActivity, type DelegateSkillManagerParams, type DelegationCompleteActivity, type DelegationTarget, type DeleteDirectoryActivity, type DeleteFileActivity, type EditTextFileActivity, type ErrorActivity, type EventForType, type EventMeta, type EventType, type ExecActivity, type ExecResult, type Expert, type ExpertMessage, type ExpertStateEvent, type ExpertStateEventType, type FileBinaryPart, type FileInlinePart, type FileUrlPart, type GeneralToolActivity, type GetActivitiesParams, type GetFileInfoActivity, type GoogleGenerativeAiProviderConfig, type GoogleProviderToolName, type GoogleVertexProviderConfig, type Headers, type ImageBinaryPart, type ImageInlinePart, type ImageUrlPart, type InstructionMessage, type InteractiveSkill, type InteractiveSkillManagerParams, type InteractiveTool, type InteractiveToolActivity, type Job, type JobStatus, type ListDirectoryActivity, type Lockfile, type LockfileExpert, type LockfileToolDefinition, type McpSkillManagerParams, type McpSseSkill, type McpStdioSkill, type Message, type MessagePart, type MoveFileActivity, type OllamaProviderConfig, type OpenAIProviderToolName, type OpenAiProviderConfig, type ParallelActivitiesGroup, type PerstackConfig, type PerstackConfigExpert, type PerstackConfigSkill, type PerstackEvent, type PrerequisiteError, type PrerequisiteResult, type ProviderConfig, type ProviderName, type ProviderTable, type ProviderToolOptions, type QueryActivity, type ReadImageFileActivity, type ReadPdfFileActivity, type ReadTextFileActivity, type ReasoningBudget, type Resource, type RetryActivity, type RunCommandInput, type RunEvent, type RunInput, type RunParams, type RunParamsInput, type RunSetting, type RuntimeAdapter, type RuntimeEvent, type RuntimeEventForType, type RuntimeEventType, type RuntimeExpertConfig, type RuntimeName, SAFE_ENV_VARS, type Skill, type SkillManagerParams, type SkillType, type StartCommandInput, type Step, type Storage, type StreamingEvent, type StreamingEventType, type TextPart, type ThinkingPart, type TodoActivity, type ToolCall, type ToolCallPart, type ToolDefinition, type ToolMessage, type ToolResult, type ToolResultPart, type Usage, type UserMessage, type VertexProviderToolName, type WriteTextFileActivity, activityOrGroupSchema, activitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, appendTextFileActivitySchema, attemptCompletion, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createDirectoryActivitySchema, createEmptyUsage, createEvent, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultMaxSteps, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, deleteDirectoryActivitySchema, deleteFileActivitySchema, domainPatternSchema, editTextFileActivitySchema, envNameRegex, errorActivitySchema, execActivitySchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getAdapter, getFileInfoActivitySchema, getFilteredEnv, getRegisteredRuntimes, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, hasCustomProviderSkills, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isAdapterAvailable, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, listDirectoryActivitySchema, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxApplicationNameLength, maxCheckpointToolCallIdLength, maxEnvNameLength, maxExpertDelegateItems, maxExpertDescriptionLength, maxExpertInstructionLength, maxExpertJobFileNameLength, maxExpertJobQueryLength, maxExpertKeyLength, maxExpertNameLength, maxExpertSkillItems, maxExpertTagItems, maxExpertVersionTagLength, maxOrganizationNameLength, maxSkillDescriptionLength, maxSkillEndpointLength, maxSkillInputJsonSchemaLength, maxSkillNameLength, maxSkillPickOmitItems, maxSkillRequiredEnvItems, maxSkillRuleLength, maxSkillToolItems, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, moveFileActivitySchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, organizationNameRegex, packageWithVersionRegex, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, registerAdapter, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeNameSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByExceededMaxSteps, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, urlSafeRegex, usageSchema, userMessageSchema, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
|