@perstack/core 0.0.51 → 0.0.52

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.
@@ -112,14 +112,14 @@ interface ToolCallPart extends BasePart {
112
112
  /** Name of the tool to call */
113
113
  toolName: string;
114
114
  /** Arguments to pass to the tool */
115
- args: unknown;
115
+ args: Record<string, unknown>;
116
116
  }
117
117
  declare const toolCallPartSchema: z.ZodObject<{
118
118
  id: z.ZodString;
119
119
  type: z.ZodLiteral<"toolCallPart">;
120
120
  toolCallId: z.ZodString;
121
121
  toolName: z.ZodString;
122
- args: z.ZodUnknown;
122
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
123
123
  }, z.core.$strip>;
124
124
  /** Thinking block from extended thinking / reasoning models */
125
125
  interface ThinkingPart extends BasePart {
@@ -210,7 +210,7 @@ declare const messagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
210
210
  type: z.ZodLiteral<"toolCallPart">;
211
211
  toolCallId: z.ZodString;
212
212
  toolName: z.ZodString;
213
- args: z.ZodUnknown;
213
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
214
214
  }, z.core.$strip>, z.ZodObject<{
215
215
  id: z.ZodString;
216
216
  type: z.ZodLiteral<"toolResultPart">;
@@ -331,7 +331,7 @@ declare const expertMessageSchema: z.ZodObject<{
331
331
  type: z.ZodLiteral<"toolCallPart">;
332
332
  toolCallId: z.ZodString;
333
333
  toolName: z.ZodString;
334
- args: z.ZodUnknown;
334
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
335
335
  }, z.core.$strip>, z.ZodObject<{
336
336
  id: z.ZodString;
337
337
  type: z.ZodLiteral<"thinkingPart">;
@@ -437,7 +437,7 @@ declare const messageSchema: z.ZodUnion<readonly [z.ZodObject<{
437
437
  type: z.ZodLiteral<"toolCallPart">;
438
438
  toolCallId: z.ZodString;
439
439
  toolName: z.ZodString;
440
- args: z.ZodUnknown;
440
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
441
441
  }, z.core.$strip>, z.ZodObject<{
442
442
  id: z.ZodString;
443
443
  type: z.ZodLiteral<"thinkingPart">;
@@ -547,7 +547,7 @@ declare const toolResultSchema: z.ZodObject<{
547
547
  type: z.ZodLiteral<"toolCallPart">;
548
548
  toolCallId: z.ZodString;
549
549
  toolName: z.ZodString;
550
- args: z.ZodUnknown;
550
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
551
551
  }, z.core.$strip>, z.ZodObject<{
552
552
  id: z.ZodString;
553
553
  type: z.ZodLiteral<"toolResultPart">;
@@ -604,13 +604,13 @@ declare const usageSchema: z.ZodObject<{
604
604
  type CheckpointStatus = "init" | "proceeding" | "completed" | "stoppedByInteractiveTool" | "stoppedByDelegate" | "stoppedByExceededMaxSteps" | "stoppedByError" | "stoppedByCancellation";
605
605
  declare const checkpointStatusSchema: z.ZodEnum<{
606
606
  completed: "completed";
607
- stoppedByInteractiveTool: "stoppedByInteractiveTool";
608
- stoppedByError: "stoppedByError";
609
- stoppedByCancellation: "stoppedByCancellation";
610
607
  init: "init";
611
608
  proceeding: "proceeding";
609
+ stoppedByInteractiveTool: "stoppedByInteractiveTool";
612
610
  stoppedByDelegate: "stoppedByDelegate";
613
611
  stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
612
+ stoppedByError: "stoppedByError";
613
+ stoppedByCancellation: "stoppedByCancellation";
614
614
  }>;
615
615
  /** Information about a delegation target */
616
616
  interface DelegationTarget {
@@ -700,13 +700,13 @@ declare const checkpointSchema: z.ZodObject<{
700
700
  runId: z.ZodString;
701
701
  status: z.ZodEnum<{
702
702
  completed: "completed";
703
- stoppedByInteractiveTool: "stoppedByInteractiveTool";
704
- stoppedByError: "stoppedByError";
705
- stoppedByCancellation: "stoppedByCancellation";
706
703
  init: "init";
707
704
  proceeding: "proceeding";
705
+ stoppedByInteractiveTool: "stoppedByInteractiveTool";
708
706
  stoppedByDelegate: "stoppedByDelegate";
709
707
  stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
708
+ stoppedByError: "stoppedByError";
709
+ stoppedByCancellation: "stoppedByCancellation";
710
710
  }>;
711
711
  stepNumber: z.ZodNumber;
712
712
  messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -769,7 +769,7 @@ declare const checkpointSchema: z.ZodObject<{
769
769
  type: z.ZodLiteral<"toolCallPart">;
770
770
  toolCallId: z.ZodString;
771
771
  toolName: z.ZodString;
772
- args: z.ZodUnknown;
772
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
773
773
  }, z.core.$strip>, z.ZodObject<{
774
774
  id: z.ZodString;
775
775
  type: z.ZodLiteral<"thinkingPart">;
@@ -888,7 +888,7 @@ declare const checkpointSchema: z.ZodObject<{
888
888
  type: z.ZodLiteral<"toolCallPart">;
889
889
  toolCallId: z.ZodString;
890
890
  toolName: z.ZodString;
891
- args: z.ZodUnknown;
891
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
892
892
  }, z.core.$strip>, z.ZodObject<{
893
893
  id: z.ZodString;
894
894
  type: z.ZodLiteral<"toolResultPart">;
@@ -1210,12 +1210,12 @@ declare const expertSchema: z.ZodObject<{
1210
1210
  instruction: z.ZodString;
1211
1211
  skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1212
1212
  type: z.ZodLiteral<"mcpStdioSkill">;
1213
+ command: z.ZodString;
1213
1214
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1214
1215
  description: z.ZodOptional<z.ZodString>;
1215
1216
  rule: z.ZodOptional<z.ZodString>;
1216
1217
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1217
1218
  omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1218
- command: z.ZodString;
1219
1219
  packageName: z.ZodOptional<z.ZodString>;
1220
1220
  requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1221
1221
  }, z.core.$strip>, z.ZodObject<{
@@ -1227,8 +1227,6 @@ declare const expertSchema: z.ZodObject<{
1227
1227
  endpoint: z.ZodString;
1228
1228
  }, z.core.$strip>, z.ZodObject<{
1229
1229
  type: z.ZodLiteral<"interactiveSkill">;
1230
- description: z.ZodOptional<z.ZodString>;
1231
- rule: z.ZodOptional<z.ZodString>;
1232
1230
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
1233
1231
  description: z.ZodOptional<z.ZodString>;
1234
1232
  inputJsonSchema: z.ZodString;
@@ -1242,6 +1240,8 @@ declare const expertSchema: z.ZodObject<{
1242
1240
  inputJsonSchema: string;
1243
1241
  description?: string | undefined;
1244
1242
  }>>>;
1243
+ description: z.ZodOptional<z.ZodString>;
1244
+ rule: z.ZodOptional<z.ZodString>;
1245
1245
  }, z.core.$strip>], "type">>>>, z.ZodTransform<{
1246
1246
  [k: string]: {
1247
1247
  type: "mcpStdioSkill";
@@ -1277,10 +1277,10 @@ declare const expertSchema: z.ZodObject<{
1277
1277
  };
1278
1278
  }, Record<string, {
1279
1279
  type: "mcpStdioSkill";
1280
+ command: string;
1280
1281
  args: string[];
1281
1282
  pick: string[];
1282
1283
  omit: string[];
1283
- command: string;
1284
1284
  requiredEnv: string[];
1285
1285
  description?: string | undefined;
1286
1286
  rule?: string | undefined;
@@ -2083,7 +2083,7 @@ declare const stepSchema: z.ZodObject<{
2083
2083
  type: z.ZodLiteral<"toolCallPart">;
2084
2084
  toolCallId: z.ZodString;
2085
2085
  toolName: z.ZodString;
2086
- args: z.ZodUnknown;
2086
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2087
2087
  }, z.core.$strip>, z.ZodObject<{
2088
2088
  id: z.ZodString;
2089
2089
  type: z.ZodLiteral<"thinkingPart">;
@@ -2167,7 +2167,7 @@ declare const stepSchema: z.ZodObject<{
2167
2167
  type: z.ZodLiteral<"toolCallPart">;
2168
2168
  toolCallId: z.ZodString;
2169
2169
  toolName: z.ZodString;
2170
- args: z.ZodUnknown;
2170
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2171
2171
  }, z.core.$strip>, z.ZodObject<{
2172
2172
  id: z.ZodString;
2173
2173
  type: z.ZodLiteral<"toolResultPart">;
@@ -2245,7 +2245,7 @@ declare const stepSchema: z.ZodObject<{
2245
2245
  type: z.ZodLiteral<"toolCallPart">;
2246
2246
  toolCallId: z.ZodString;
2247
2247
  toolName: z.ZodString;
2248
- args: z.ZodUnknown;
2248
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2249
2249
  }, z.core.$strip>, z.ZodObject<{
2250
2250
  id: z.ZodString;
2251
2251
  type: z.ZodLiteral<"toolResultPart">;
@@ -2458,12 +2458,12 @@ declare const runSettingSchema: z.ZodObject<{
2458
2458
  instruction: z.ZodString;
2459
2459
  skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2460
2460
  type: z.ZodLiteral<"mcpStdioSkill">;
2461
+ command: z.ZodString;
2461
2462
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2462
2463
  description: z.ZodOptional<z.ZodString>;
2463
2464
  rule: z.ZodOptional<z.ZodString>;
2464
2465
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2465
2466
  omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2466
- command: z.ZodString;
2467
2467
  packageName: z.ZodOptional<z.ZodString>;
2468
2468
  requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2469
2469
  }, z.core.$strip>, z.ZodObject<{
@@ -2475,8 +2475,6 @@ declare const runSettingSchema: z.ZodObject<{
2475
2475
  endpoint: z.ZodString;
2476
2476
  }, z.core.$strip>, z.ZodObject<{
2477
2477
  type: z.ZodLiteral<"interactiveSkill">;
2478
- description: z.ZodOptional<z.ZodString>;
2479
- rule: z.ZodOptional<z.ZodString>;
2480
2478
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
2481
2479
  description: z.ZodOptional<z.ZodString>;
2482
2480
  inputJsonSchema: z.ZodString;
@@ -2490,6 +2488,8 @@ declare const runSettingSchema: z.ZodObject<{
2490
2488
  inputJsonSchema: string;
2491
2489
  description?: string | undefined;
2492
2490
  }>>>;
2491
+ description: z.ZodOptional<z.ZodString>;
2492
+ rule: z.ZodOptional<z.ZodString>;
2493
2493
  }, z.core.$strip>], "type">>>>, z.ZodTransform<{
2494
2494
  [k: string]: {
2495
2495
  type: "mcpStdioSkill";
@@ -2525,10 +2525,10 @@ declare const runSettingSchema: z.ZodObject<{
2525
2525
  };
2526
2526
  }, Record<string, {
2527
2527
  type: "mcpStdioSkill";
2528
+ command: string;
2528
2529
  args: string[];
2529
2530
  pick: string[];
2530
2531
  omit: string[];
2531
- command: string;
2532
2532
  requiredEnv: string[];
2533
2533
  description?: string | undefined;
2534
2534
  rule?: string | undefined;
@@ -2666,6 +2666,9 @@ declare const runParamsSchema: z.ZodObject<{
2666
2666
  }, z.core.$strip>>;
2667
2667
  }, z.core.$strip>;
2668
2668
  experts: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2669
+ name: z.ZodString;
2670
+ description: z.ZodOptional<z.ZodString>;
2671
+ version: z.ZodString;
2669
2672
  providerToolOptions: z.ZodOptional<z.ZodObject<{
2670
2673
  webSearch: z.ZodOptional<z.ZodObject<{
2671
2674
  maxUses: z.ZodOptional<z.ZodNumber>;
@@ -2679,18 +2682,15 @@ declare const runParamsSchema: z.ZodObject<{
2679
2682
  maxNumResults: z.ZodOptional<z.ZodNumber>;
2680
2683
  }, z.core.$strip>>;
2681
2684
  }, z.core.$strip>>;
2682
- name: z.ZodString;
2683
- version: z.ZodString;
2684
- description: z.ZodOptional<z.ZodString>;
2685
2685
  instruction: z.ZodString;
2686
2686
  skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2687
2687
  type: z.ZodLiteral<"mcpStdioSkill">;
2688
+ command: z.ZodString;
2688
2689
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2689
2690
  description: z.ZodOptional<z.ZodString>;
2690
2691
  rule: z.ZodOptional<z.ZodString>;
2691
2692
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2692
2693
  omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2693
- command: z.ZodString;
2694
2694
  packageName: z.ZodOptional<z.ZodString>;
2695
2695
  requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2696
2696
  }, z.core.$strip>, z.ZodObject<{
@@ -2702,8 +2702,6 @@ declare const runParamsSchema: z.ZodObject<{
2702
2702
  endpoint: z.ZodString;
2703
2703
  }, z.core.$strip>, z.ZodObject<{
2704
2704
  type: z.ZodLiteral<"interactiveSkill">;
2705
- description: z.ZodOptional<z.ZodString>;
2706
- rule: z.ZodOptional<z.ZodString>;
2707
2705
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
2708
2706
  description: z.ZodOptional<z.ZodString>;
2709
2707
  inputJsonSchema: z.ZodString;
@@ -2717,6 +2715,8 @@ declare const runParamsSchema: z.ZodObject<{
2717
2715
  inputJsonSchema: string;
2718
2716
  description?: string | undefined;
2719
2717
  }>>>;
2718
+ description: z.ZodOptional<z.ZodString>;
2719
+ rule: z.ZodOptional<z.ZodString>;
2720
2720
  }, z.core.$strip>], "type">>>>, z.ZodTransform<{
2721
2721
  [k: string]: {
2722
2722
  type: "mcpStdioSkill";
@@ -2752,10 +2752,10 @@ declare const runParamsSchema: z.ZodObject<{
2752
2752
  };
2753
2753
  }, Record<string, {
2754
2754
  type: "mcpStdioSkill";
2755
+ command: string;
2755
2756
  args: string[];
2756
2757
  pick: string[];
2757
2758
  omit: string[];
2758
- command: string;
2759
2759
  requiredEnv: string[];
2760
2760
  description?: string | undefined;
2761
2761
  rule?: string | undefined;
@@ -2904,6 +2904,7 @@ declare const runParamsSchema: z.ZodObject<{
2904
2904
  delegates: string[];
2905
2905
  tags: string[];
2906
2906
  minRuntimeVersion: `v${number}.${number}`;
2907
+ description?: string | undefined;
2907
2908
  providerToolOptions?: {
2908
2909
  webSearch?: {
2909
2910
  maxUses?: number | undefined;
@@ -2917,7 +2918,6 @@ declare const runParamsSchema: z.ZodObject<{
2917
2918
  maxNumResults?: number | undefined;
2918
2919
  } | undefined;
2919
2920
  } | undefined;
2920
- description?: string | undefined;
2921
2921
  providerTools?: string[] | undefined;
2922
2922
  providerSkills?: ({
2923
2923
  type: "builtin";
@@ -2953,13 +2953,13 @@ declare const runParamsSchema: z.ZodObject<{
2953
2953
  runId: z.ZodString;
2954
2954
  status: z.ZodEnum<{
2955
2955
  completed: "completed";
2956
- stoppedByInteractiveTool: "stoppedByInteractiveTool";
2957
- stoppedByError: "stoppedByError";
2958
- stoppedByCancellation: "stoppedByCancellation";
2959
2956
  init: "init";
2960
2957
  proceeding: "proceeding";
2958
+ stoppedByInteractiveTool: "stoppedByInteractiveTool";
2961
2959
  stoppedByDelegate: "stoppedByDelegate";
2962
2960
  stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
2961
+ stoppedByError: "stoppedByError";
2962
+ stoppedByCancellation: "stoppedByCancellation";
2963
2963
  }>;
2964
2964
  stepNumber: z.ZodNumber;
2965
2965
  messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -3022,7 +3022,7 @@ declare const runParamsSchema: z.ZodObject<{
3022
3022
  type: z.ZodLiteral<"toolCallPart">;
3023
3023
  toolCallId: z.ZodString;
3024
3024
  toolName: z.ZodString;
3025
- args: z.ZodUnknown;
3025
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3026
3026
  }, z.core.$strip>, z.ZodObject<{
3027
3027
  id: z.ZodString;
3028
3028
  type: z.ZodLiteral<"thinkingPart">;
@@ -3141,7 +3141,7 @@ declare const runParamsSchema: z.ZodObject<{
3141
3141
  type: z.ZodLiteral<"toolCallPart">;
3142
3142
  toolCallId: z.ZodString;
3143
3143
  toolName: z.ZodString;
3144
- args: z.ZodUnknown;
3144
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3145
3145
  }, z.core.$strip>, z.ZodObject<{
3146
3146
  id: z.ZodString;
3147
3147
  type: z.ZodLiteral<"toolResultPart">;
@@ -3332,7 +3332,7 @@ declare const startRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit
3332
3332
  } & {
3333
3333
  initialCheckpoint: Checkpoint;
3334
3334
  inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
3335
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3335
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3336
3336
  type: "startRun";
3337
3337
  } & {
3338
3338
  initialCheckpoint: Checkpoint;
@@ -3342,7 +3342,7 @@ declare const resumeFromStop: (setting: RunSetting, checkpoint: Checkpoint, data
3342
3342
  type: "resumeFromStop";
3343
3343
  } & {
3344
3344
  checkpoint: Checkpoint;
3345
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3345
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3346
3346
  type: "resumeFromStop";
3347
3347
  } & {
3348
3348
  checkpoint: Checkpoint;
@@ -3352,7 +3352,7 @@ declare const proceedToInteractiveTools: (setting: RunSetting, checkpoint: Check
3352
3352
  } & {
3353
3353
  pendingToolCalls: ToolCall[];
3354
3354
  partialToolResults: ToolResult[];
3355
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3355
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3356
3356
  type: "proceedToInteractiveTools";
3357
3357
  } & {
3358
3358
  pendingToolCalls: ToolCall[];
@@ -3362,7 +3362,7 @@ declare const startGeneration: (setting: RunSetting, checkpoint: Checkpoint, dat
3362
3362
  type: "startGeneration";
3363
3363
  } & {
3364
3364
  messages: Message[];
3365
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3365
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3366
3366
  type: "startGeneration";
3367
3367
  } & {
3368
3368
  messages: Message[];
@@ -3375,7 +3375,7 @@ declare const retry: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<Ba
3375
3375
  toolCalls?: ToolCall[];
3376
3376
  toolResults?: ToolResult[];
3377
3377
  usage: Usage;
3378
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3378
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3379
3379
  type: "retry";
3380
3380
  } & {
3381
3381
  reason: string;
@@ -3390,7 +3390,7 @@ declare const callTools: (setting: RunSetting, checkpoint: Checkpoint, data: Omi
3390
3390
  newMessage: ExpertMessage;
3391
3391
  toolCalls: ToolCall[];
3392
3392
  usage: Usage;
3393
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3393
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3394
3394
  type: "callTools";
3395
3395
  } & {
3396
3396
  newMessage: ExpertMessage;
@@ -3402,7 +3402,7 @@ declare const finishMcpTools: (setting: RunSetting, checkpoint: Checkpoint, data
3402
3402
  } & {
3403
3403
  partialToolResults: ToolResult[];
3404
3404
  pendingToolCalls: ToolCall[];
3405
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3405
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3406
3406
  type: "finishMcpTools";
3407
3407
  } & {
3408
3408
  partialToolResults: ToolResult[];
@@ -3410,14 +3410,14 @@ declare const finishMcpTools: (setting: RunSetting, checkpoint: Checkpoint, data
3410
3410
  };
3411
3411
  declare const skipDelegates: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3412
3412
  type: "skipDelegates";
3413
- } & object, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3413
+ } & object, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3414
3414
  type: "skipDelegates";
3415
3415
  } & object;
3416
3416
  declare const resolveToolResults: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3417
3417
  type: "resolveToolResults";
3418
3418
  } & {
3419
3419
  toolResults: ToolResult[];
3420
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3420
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3421
3421
  type: "resolveToolResults";
3422
3422
  } & {
3423
3423
  toolResults: ToolResult[];
@@ -3426,7 +3426,7 @@ declare const finishToolCall: (setting: RunSetting, checkpoint: Checkpoint, data
3426
3426
  type: "finishToolCall";
3427
3427
  } & {
3428
3428
  newMessages: (UserMessage | ToolMessage)[];
3429
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3429
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3430
3430
  type: "finishToolCall";
3431
3431
  } & {
3432
3432
  newMessages: (UserMessage | ToolMessage)[];
@@ -3436,7 +3436,7 @@ declare const resumeToolCalls: (setting: RunSetting, checkpoint: Checkpoint, dat
3436
3436
  } & {
3437
3437
  pendingToolCalls: ToolCall[];
3438
3438
  partialToolResults: ToolResult[];
3439
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3439
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3440
3440
  type: "resumeToolCalls";
3441
3441
  } & {
3442
3442
  pendingToolCalls: ToolCall[];
@@ -3449,7 +3449,7 @@ declare const completeRun: (setting: RunSetting, checkpoint: Checkpoint, data: O
3449
3449
  step: Step;
3450
3450
  text: string;
3451
3451
  usage: Usage;
3452
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3452
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3453
3453
  type: "completeRun";
3454
3454
  } & {
3455
3455
  checkpoint: Checkpoint;
@@ -3462,7 +3462,7 @@ declare const stopRunByInteractiveTool: (setting: RunSetting, checkpoint: Checkp
3462
3462
  } & {
3463
3463
  checkpoint: Checkpoint;
3464
3464
  step: Step;
3465
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3465
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3466
3466
  type: "stopRunByInteractiveTool";
3467
3467
  } & {
3468
3468
  checkpoint: Checkpoint;
@@ -3473,7 +3473,7 @@ declare const stopRunByDelegate: (setting: RunSetting, checkpoint: Checkpoint, d
3473
3473
  } & {
3474
3474
  checkpoint: Checkpoint;
3475
3475
  step: Step;
3476
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3476
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3477
3477
  type: "stopRunByDelegate";
3478
3478
  } & {
3479
3479
  checkpoint: Checkpoint;
@@ -3484,7 +3484,7 @@ declare const stopRunByExceededMaxSteps: (setting: RunSetting, checkpoint: Check
3484
3484
  } & {
3485
3485
  checkpoint: Checkpoint;
3486
3486
  step: Step;
3487
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3487
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3488
3488
  type: "stopRunByExceededMaxSteps";
3489
3489
  } & {
3490
3490
  checkpoint: Checkpoint;
@@ -3501,7 +3501,7 @@ declare const stopRunByError: (setting: RunSetting, checkpoint: Checkpoint, data
3501
3501
  statusCode?: number;
3502
3502
  isRetryable: boolean;
3503
3503
  };
3504
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3504
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3505
3505
  type: "stopRunByError";
3506
3506
  } & {
3507
3507
  checkpoint: Checkpoint;
@@ -3519,7 +3519,7 @@ declare const continueToNextStep: (setting: RunSetting, checkpoint: Checkpoint,
3519
3519
  checkpoint: Checkpoint;
3520
3520
  step: Step;
3521
3521
  nextCheckpoint: Checkpoint;
3522
- }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3522
+ }, "id" | "expertKey" | "runId" | "type" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3523
3523
  type: "continueToNextStep";
3524
3524
  } & {
3525
3525
  checkpoint: Checkpoint;
@@ -4094,7 +4094,7 @@ declare const generalToolActivitySchema: z.ZodObject<{
4094
4094
  type: z.ZodLiteral<"toolCallPart">;
4095
4095
  toolCallId: z.ZodString;
4096
4096
  toolName: z.ZodString;
4097
- args: z.ZodUnknown;
4097
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4098
4098
  }, z.core.$strip>, z.ZodObject<{
4099
4099
  id: z.ZodString;
4100
4100
  type: z.ZodLiteral<"toolResultPart">;
@@ -4520,7 +4520,7 @@ declare const activitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4520
4520
  type: z.ZodLiteral<"toolCallPart">;
4521
4521
  toolCallId: z.ZodString;
4522
4522
  toolName: z.ZodString;
4523
- args: z.ZodUnknown;
4523
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4524
4524
  }, z.core.$strip>, z.ZodObject<{
4525
4525
  id: z.ZodString;
4526
4526
  type: z.ZodLiteral<"toolResultPart">;
@@ -4926,7 +4926,7 @@ declare const parallelActivitiesGroupSchema: z.ZodObject<{
4926
4926
  type: z.ZodLiteral<"toolCallPart">;
4927
4927
  toolCallId: z.ZodString;
4928
4928
  toolName: z.ZodString;
4929
- args: z.ZodUnknown;
4929
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4930
4930
  }, z.core.$strip>, z.ZodObject<{
4931
4931
  id: z.ZodString;
4932
4932
  type: z.ZodLiteral<"toolResultPart">;
@@ -5313,7 +5313,7 @@ declare const activityOrGroupSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnio
5313
5313
  type: z.ZodLiteral<"toolCallPart">;
5314
5314
  toolCallId: z.ZodString;
5315
5315
  toolName: z.ZodString;
5316
- args: z.ZodUnknown;
5316
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5317
5317
  }, z.core.$strip>, z.ZodObject<{
5318
5318
  id: z.ZodString;
5319
5319
  type: z.ZodLiteral<"toolResultPart">;
@@ -5702,7 +5702,7 @@ declare const activityOrGroupSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnio
5702
5702
  type: z.ZodLiteral<"toolCallPart">;
5703
5703
  toolCallId: z.ZodString;
5704
5704
  toolName: z.ZodString;
5705
- args: z.ZodUnknown;
5705
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5706
5706
  }, z.core.$strip>, z.ZodObject<{
5707
5707
  id: z.ZodString;
5708
5708
  type: z.ZodLiteral<"toolResultPart">;
@@ -5808,11 +5808,11 @@ declare const activityOrGroupSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnio
5808
5808
  type JobStatus = "running" | "completed" | "stoppedByMaxSteps" | "stoppedByInteractiveTool" | "stoppedByError" | "stoppedByCancellation";
5809
5809
  declare const jobStatusSchema: z.ZodEnum<{
5810
5810
  completed: "completed";
5811
- running: "running";
5812
- stoppedByMaxSteps: "stoppedByMaxSteps";
5813
5811
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
5814
5812
  stoppedByError: "stoppedByError";
5815
5813
  stoppedByCancellation: "stoppedByCancellation";
5814
+ running: "running";
5815
+ stoppedByMaxSteps: "stoppedByMaxSteps";
5816
5816
  }>;
5817
5817
  interface Job {
5818
5818
  id: string;
@@ -5829,11 +5829,11 @@ declare const jobSchema: z.ZodObject<{
5829
5829
  id: z.ZodString;
5830
5830
  status: z.ZodEnum<{
5831
5831
  completed: "completed";
5832
- running: "running";
5833
- stoppedByMaxSteps: "stoppedByMaxSteps";
5834
5832
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
5835
5833
  stoppedByError: "stoppedByError";
5836
5834
  stoppedByCancellation: "stoppedByCancellation";
5835
+ running: "running";
5836
+ stoppedByMaxSteps: "stoppedByMaxSteps";
5837
5837
  }>;
5838
5838
  coordinatorExpertKey: z.ZodString;
5839
5839
  runtimeVersion: z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>;
package/dist/src/index.js CHANGED
@@ -391,7 +391,7 @@ const toolCallPartSchema = basePartSchema.extend({
391
391
  type: z.literal("toolCallPart"),
392
392
  toolCallId: z.string(),
393
393
  toolName: z.string(),
394
- args: z.unknown()
394
+ args: z.record(z.string(), z.unknown())
395
395
  });
396
396
  const thinkingPartSchema = basePartSchema.extend({
397
397
  type: z.literal("thinkingPart"),