@perstack/core 0.0.50 → 0.0.51

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.
@@ -603,14 +603,14 @@ declare const usageSchema: z.ZodObject<{
603
603
  /** Status of a checkpoint in the execution lifecycle */
604
604
  type CheckpointStatus = "init" | "proceeding" | "completed" | "stoppedByInteractiveTool" | "stoppedByDelegate" | "stoppedByExceededMaxSteps" | "stoppedByError" | "stoppedByCancellation";
605
605
  declare const checkpointStatusSchema: z.ZodEnum<{
606
- init: "init";
607
- proceeding: "proceeding";
608
606
  completed: "completed";
609
607
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
610
- stoppedByDelegate: "stoppedByDelegate";
611
- stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
612
608
  stoppedByError: "stoppedByError";
613
609
  stoppedByCancellation: "stoppedByCancellation";
610
+ init: "init";
611
+ proceeding: "proceeding";
612
+ stoppedByDelegate: "stoppedByDelegate";
613
+ stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
614
614
  }>;
615
615
  /** Information about a delegation target */
616
616
  interface DelegationTarget {
@@ -699,14 +699,14 @@ declare const checkpointSchema: z.ZodObject<{
699
699
  jobId: z.ZodString;
700
700
  runId: z.ZodString;
701
701
  status: z.ZodEnum<{
702
- init: "init";
703
- proceeding: "proceeding";
704
702
  completed: "completed";
705
703
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
706
- stoppedByDelegate: "stoppedByDelegate";
707
- stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
708
704
  stoppedByError: "stoppedByError";
709
705
  stoppedByCancellation: "stoppedByCancellation";
706
+ init: "init";
707
+ proceeding: "proceeding";
708
+ stoppedByDelegate: "stoppedByDelegate";
709
+ stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
710
710
  }>;
711
711
  stepNumber: z.ZodNumber;
712
712
  messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -1211,11 +1211,11 @@ declare const expertSchema: z.ZodObject<{
1211
1211
  skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1212
1212
  type: z.ZodLiteral<"mcpStdioSkill">;
1213
1213
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1214
- command: z.ZodString;
1215
1214
  description: z.ZodOptional<z.ZodString>;
1216
1215
  rule: z.ZodOptional<z.ZodString>;
1217
1216
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1218
1217
  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,6 +1227,8 @@ 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>;
1230
1232
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
1231
1233
  description: z.ZodOptional<z.ZodString>;
1232
1234
  inputJsonSchema: z.ZodString;
@@ -1240,8 +1242,6 @@ declare const expertSchema: z.ZodObject<{
1240
1242
  inputJsonSchema: string;
1241
1243
  description?: string | undefined;
1242
1244
  }>>>;
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";
@@ -1278,9 +1278,9 @@ declare const expertSchema: z.ZodObject<{
1278
1278
  }, Record<string, {
1279
1279
  type: "mcpStdioSkill";
1280
1280
  args: string[];
1281
- command: string;
1282
1281
  pick: string[];
1283
1282
  omit: string[];
1283
+ command: string;
1284
1284
  requiredEnv: string[];
1285
1285
  description?: string | undefined;
1286
1286
  rule?: string | undefined;
@@ -2459,11 +2459,11 @@ declare const runSettingSchema: z.ZodObject<{
2459
2459
  skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2460
2460
  type: z.ZodLiteral<"mcpStdioSkill">;
2461
2461
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2462
- command: z.ZodString;
2463
2462
  description: z.ZodOptional<z.ZodString>;
2464
2463
  rule: z.ZodOptional<z.ZodString>;
2465
2464
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2466
2465
  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,6 +2475,8 @@ 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>;
2478
2480
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
2479
2481
  description: z.ZodOptional<z.ZodString>;
2480
2482
  inputJsonSchema: z.ZodString;
@@ -2488,8 +2490,6 @@ declare const runSettingSchema: z.ZodObject<{
2488
2490
  inputJsonSchema: string;
2489
2491
  description?: string | undefined;
2490
2492
  }>>>;
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";
@@ -2526,9 +2526,9 @@ declare const runSettingSchema: z.ZodObject<{
2526
2526
  }, Record<string, {
2527
2527
  type: "mcpStdioSkill";
2528
2528
  args: string[];
2529
- command: string;
2530
2529
  pick: string[];
2531
2530
  omit: string[];
2531
+ command: string;
2532
2532
  requiredEnv: string[];
2533
2533
  description?: string | undefined;
2534
2534
  rule?: string | undefined;
@@ -2666,9 +2666,6 @@ 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
- version: z.ZodString;
2671
- description: z.ZodOptional<z.ZodString>;
2672
2669
  providerToolOptions: z.ZodOptional<z.ZodObject<{
2673
2670
  webSearch: z.ZodOptional<z.ZodObject<{
2674
2671
  maxUses: z.ZodOptional<z.ZodNumber>;
@@ -2682,15 +2679,18 @@ declare const runParamsSchema: z.ZodObject<{
2682
2679
  maxNumResults: z.ZodOptional<z.ZodNumber>;
2683
2680
  }, z.core.$strip>>;
2684
2681
  }, 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
2688
  args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2689
- command: z.ZodString;
2690
2689
  description: z.ZodOptional<z.ZodString>;
2691
2690
  rule: z.ZodOptional<z.ZodString>;
2692
2691
  pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2693
2692
  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,6 +2702,8 @@ 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>;
2705
2707
  tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
2706
2708
  description: z.ZodOptional<z.ZodString>;
2707
2709
  inputJsonSchema: z.ZodString;
@@ -2715,8 +2717,6 @@ declare const runParamsSchema: z.ZodObject<{
2715
2717
  inputJsonSchema: string;
2716
2718
  description?: string | undefined;
2717
2719
  }>>>;
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";
@@ -2753,9 +2753,9 @@ declare const runParamsSchema: z.ZodObject<{
2753
2753
  }, Record<string, {
2754
2754
  type: "mcpStdioSkill";
2755
2755
  args: string[];
2756
- command: string;
2757
2756
  pick: string[];
2758
2757
  omit: string[];
2758
+ command: string;
2759
2759
  requiredEnv: string[];
2760
2760
  description?: string | undefined;
2761
2761
  rule?: string | undefined;
@@ -2904,7 +2904,6 @@ declare const runParamsSchema: z.ZodObject<{
2904
2904
  delegates: string[];
2905
2905
  tags: string[];
2906
2906
  minRuntimeVersion: `v${number}.${number}`;
2907
- description?: string | undefined;
2908
2907
  providerToolOptions?: {
2909
2908
  webSearch?: {
2910
2909
  maxUses?: number | undefined;
@@ -2918,6 +2917,7 @@ declare const runParamsSchema: z.ZodObject<{
2918
2917
  maxNumResults?: number | undefined;
2919
2918
  } | undefined;
2920
2919
  } | undefined;
2920
+ description?: string | undefined;
2921
2921
  providerTools?: string[] | undefined;
2922
2922
  providerSkills?: ({
2923
2923
  type: "builtin";
@@ -2952,14 +2952,14 @@ declare const runParamsSchema: z.ZodObject<{
2952
2952
  jobId: z.ZodString;
2953
2953
  runId: z.ZodString;
2954
2954
  status: z.ZodEnum<{
2955
- init: "init";
2956
- proceeding: "proceeding";
2957
2955
  completed: "completed";
2958
2956
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
2959
- stoppedByDelegate: "stoppedByDelegate";
2960
- stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
2961
2957
  stoppedByError: "stoppedByError";
2962
2958
  stoppedByCancellation: "stoppedByCancellation";
2959
+ init: "init";
2960
+ proceeding: "proceeding";
2961
+ stoppedByDelegate: "stoppedByDelegate";
2962
+ stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
2963
2963
  }>;
2964
2964
  stepNumber: z.ZodNumber;
2965
2965
  messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -3219,9 +3219,6 @@ type ExpertStatePayloads = {
3219
3219
  resolveToolResults: {
3220
3220
  toolResults: ToolResult[];
3221
3221
  };
3222
- attemptCompletion: {
3223
- toolResult: ToolResult;
3224
- };
3225
3222
  finishToolCall: {
3226
3223
  newMessages: (UserMessage | ToolMessage)[];
3227
3224
  };
@@ -3335,7 +3332,7 @@ declare const startRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit
3335
3332
  } & {
3336
3333
  initialCheckpoint: Checkpoint;
3337
3334
  inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
3338
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3335
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3339
3336
  type: "startRun";
3340
3337
  } & {
3341
3338
  initialCheckpoint: Checkpoint;
@@ -3345,7 +3342,7 @@ declare const resumeFromStop: (setting: RunSetting, checkpoint: Checkpoint, data
3345
3342
  type: "resumeFromStop";
3346
3343
  } & {
3347
3344
  checkpoint: Checkpoint;
3348
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3345
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3349
3346
  type: "resumeFromStop";
3350
3347
  } & {
3351
3348
  checkpoint: Checkpoint;
@@ -3355,7 +3352,7 @@ declare const proceedToInteractiveTools: (setting: RunSetting, checkpoint: Check
3355
3352
  } & {
3356
3353
  pendingToolCalls: ToolCall[];
3357
3354
  partialToolResults: ToolResult[];
3358
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3355
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3359
3356
  type: "proceedToInteractiveTools";
3360
3357
  } & {
3361
3358
  pendingToolCalls: ToolCall[];
@@ -3365,7 +3362,7 @@ declare const startGeneration: (setting: RunSetting, checkpoint: Checkpoint, dat
3365
3362
  type: "startGeneration";
3366
3363
  } & {
3367
3364
  messages: Message[];
3368
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3365
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3369
3366
  type: "startGeneration";
3370
3367
  } & {
3371
3368
  messages: Message[];
@@ -3378,7 +3375,7 @@ declare const retry: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<Ba
3378
3375
  toolCalls?: ToolCall[];
3379
3376
  toolResults?: ToolResult[];
3380
3377
  usage: Usage;
3381
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3378
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3382
3379
  type: "retry";
3383
3380
  } & {
3384
3381
  reason: string;
@@ -3393,7 +3390,7 @@ declare const callTools: (setting: RunSetting, checkpoint: Checkpoint, data: Omi
3393
3390
  newMessage: ExpertMessage;
3394
3391
  toolCalls: ToolCall[];
3395
3392
  usage: Usage;
3396
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3393
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3397
3394
  type: "callTools";
3398
3395
  } & {
3399
3396
  newMessage: ExpertMessage;
@@ -3405,7 +3402,7 @@ declare const finishMcpTools: (setting: RunSetting, checkpoint: Checkpoint, data
3405
3402
  } & {
3406
3403
  partialToolResults: ToolResult[];
3407
3404
  pendingToolCalls: ToolCall[];
3408
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3405
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3409
3406
  type: "finishMcpTools";
3410
3407
  } & {
3411
3408
  partialToolResults: ToolResult[];
@@ -3413,32 +3410,23 @@ declare const finishMcpTools: (setting: RunSetting, checkpoint: Checkpoint, data
3413
3410
  };
3414
3411
  declare const skipDelegates: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3415
3412
  type: "skipDelegates";
3416
- } & object, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3413
+ } & object, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3417
3414
  type: "skipDelegates";
3418
3415
  } & object;
3419
3416
  declare const resolveToolResults: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3420
3417
  type: "resolveToolResults";
3421
3418
  } & {
3422
3419
  toolResults: ToolResult[];
3423
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3420
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3424
3421
  type: "resolveToolResults";
3425
3422
  } & {
3426
3423
  toolResults: ToolResult[];
3427
3424
  };
3428
- declare const attemptCompletion: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3429
- type: "attemptCompletion";
3430
- } & {
3431
- toolResult: ToolResult;
3432
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3433
- type: "attemptCompletion";
3434
- } & {
3435
- toolResult: ToolResult;
3436
- };
3437
3425
  declare const finishToolCall: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
3438
3426
  type: "finishToolCall";
3439
3427
  } & {
3440
3428
  newMessages: (UserMessage | ToolMessage)[];
3441
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3429
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3442
3430
  type: "finishToolCall";
3443
3431
  } & {
3444
3432
  newMessages: (UserMessage | ToolMessage)[];
@@ -3448,7 +3436,7 @@ declare const resumeToolCalls: (setting: RunSetting, checkpoint: Checkpoint, dat
3448
3436
  } & {
3449
3437
  pendingToolCalls: ToolCall[];
3450
3438
  partialToolResults: ToolResult[];
3451
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3439
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3452
3440
  type: "resumeToolCalls";
3453
3441
  } & {
3454
3442
  pendingToolCalls: ToolCall[];
@@ -3461,7 +3449,7 @@ declare const completeRun: (setting: RunSetting, checkpoint: Checkpoint, data: O
3461
3449
  step: Step;
3462
3450
  text: string;
3463
3451
  usage: Usage;
3464
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3452
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3465
3453
  type: "completeRun";
3466
3454
  } & {
3467
3455
  checkpoint: Checkpoint;
@@ -3474,7 +3462,7 @@ declare const stopRunByInteractiveTool: (setting: RunSetting, checkpoint: Checkp
3474
3462
  } & {
3475
3463
  checkpoint: Checkpoint;
3476
3464
  step: Step;
3477
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3465
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3478
3466
  type: "stopRunByInteractiveTool";
3479
3467
  } & {
3480
3468
  checkpoint: Checkpoint;
@@ -3485,7 +3473,7 @@ declare const stopRunByDelegate: (setting: RunSetting, checkpoint: Checkpoint, d
3485
3473
  } & {
3486
3474
  checkpoint: Checkpoint;
3487
3475
  step: Step;
3488
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3476
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3489
3477
  type: "stopRunByDelegate";
3490
3478
  } & {
3491
3479
  checkpoint: Checkpoint;
@@ -3496,7 +3484,7 @@ declare const stopRunByExceededMaxSteps: (setting: RunSetting, checkpoint: Check
3496
3484
  } & {
3497
3485
  checkpoint: Checkpoint;
3498
3486
  step: Step;
3499
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3487
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3500
3488
  type: "stopRunByExceededMaxSteps";
3501
3489
  } & {
3502
3490
  checkpoint: Checkpoint;
@@ -3513,7 +3501,7 @@ declare const stopRunByError: (setting: RunSetting, checkpoint: Checkpoint, data
3513
3501
  statusCode?: number;
3514
3502
  isRetryable: boolean;
3515
3503
  };
3516
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3504
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3517
3505
  type: "stopRunByError";
3518
3506
  } & {
3519
3507
  checkpoint: Checkpoint;
@@ -3531,7 +3519,7 @@ declare const continueToNextStep: (setting: RunSetting, checkpoint: Checkpoint,
3531
3519
  checkpoint: Checkpoint;
3532
3520
  step: Step;
3533
3521
  nextCheckpoint: Checkpoint;
3534
- }, "id" | "jobId" | "runId" | "stepNumber" | "type" | "expertKey" | "timestamp">) => BaseEvent & {
3522
+ }, "id" | "type" | "expertKey" | "runId" | "jobId" | "stepNumber" | "timestamp">) => BaseEvent & {
3535
3523
  type: "continueToNextStep";
3536
3524
  } & {
3537
3525
  checkpoint: Checkpoint;
@@ -5820,11 +5808,11 @@ declare const activityOrGroupSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnio
5820
5808
  type JobStatus = "running" | "completed" | "stoppedByMaxSteps" | "stoppedByInteractiveTool" | "stoppedByError" | "stoppedByCancellation";
5821
5809
  declare const jobStatusSchema: z.ZodEnum<{
5822
5810
  completed: "completed";
5811
+ running: "running";
5812
+ stoppedByMaxSteps: "stoppedByMaxSteps";
5823
5813
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
5824
5814
  stoppedByError: "stoppedByError";
5825
5815
  stoppedByCancellation: "stoppedByCancellation";
5826
- running: "running";
5827
- stoppedByMaxSteps: "stoppedByMaxSteps";
5828
5816
  }>;
5829
5817
  interface Job {
5830
5818
  id: string;
@@ -5841,11 +5829,11 @@ declare const jobSchema: z.ZodObject<{
5841
5829
  id: z.ZodString;
5842
5830
  status: z.ZodEnum<{
5843
5831
  completed: "completed";
5832
+ running: "running";
5833
+ stoppedByMaxSteps: "stoppedByMaxSteps";
5844
5834
  stoppedByInteractiveTool: "stoppedByInteractiveTool";
5845
5835
  stoppedByError: "stoppedByError";
5846
5836
  stoppedByCancellation: "stoppedByCancellation";
5847
- running: "running";
5848
- stoppedByMaxSteps: "stoppedByMaxSteps";
5849
5837
  }>;
5850
5838
  coordinatorExpertKey: z.ZodString;
5851
5839
  runtimeVersion: z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>;
@@ -6228,5 +6216,5 @@ declare function createFilteredEventListener(listener: (event: PerstackEvent) =>
6228
6216
  declare function formatZodError(error: ZodError): string;
6229
6217
  declare function parseWithFriendlyError<T>(schema: ZodSchema<T>, data: unknown, context?: string): T;
6230
6218
  //#endregion
6231
- export { Activity, ActivityOrGroup, ActivityType, AddDelegateActivity, AddSkillActivity, AmazonBedrockProviderConfig, AnthropicProviderConfig, AnthropicProviderSkill, AnthropicProviderToolName, AttemptCompletionActivity, AzureOpenAIProviderToolName, AzureOpenAiProviderConfig, BASE_SKILL_PREFIX, BaseEvent, BasePart, BuiltinAnthropicSkill, CallToolResultContent, Checkpoint, CheckpointStatus, ClearTodoActivity, CommandOptions, CompleteActivity, type CreateCheckpointParams, CreateExpertActivity, CustomAnthropicSkill, DeepseekProviderConfig, DelegateActivity, DelegateSkillManagerParams, DelegationCompleteActivity, DelegationTarget, EditTextFileActivity, ErrorActivity, EventForType, EventType, ExecActivity, Expert, ExpertMessage, ExpertStateEvent, ExpertStateEventType, FileBinaryPart, FileInlinePart, FileUrlPart, GeneralToolActivity, GetActivitiesParams, GoogleGenerativeAiProviderConfig, GoogleProviderToolName, GoogleVertexProviderConfig, Headers, ImageBinaryPart, ImageInlinePart, ImageUrlPart, InstructionMessage, InteractiveSkill, InteractiveSkillManagerParams, InteractiveTool, InteractiveToolActivity, Job, JobStatus, Lockfile, LockfileExpert, LockfileToolDefinition, McpSkillManagerParams, McpSseSkill, McpStdioSkill, Message, MessagePart, OllamaProviderConfig, OpenAIProviderToolName, OpenAiProviderConfig, ParallelActivitiesGroup, PerstackConfig, PerstackConfigExpert, PerstackConfigSkill, PerstackError, PerstackEvent, ProviderConfig, ProviderName, ProviderTable, ProviderToolOptions, QueryActivity, ReadImageFileActivity, ReadPdfFileActivity, ReadTextFileActivity, ReasoningBudget, RemoveDelegateActivity, RemoveSkillActivity, Resource, RetryActivity, RunCommandInput, RunEvent, RunInput, RunParams, RunParamsInput, RunSetting, RuntimeEvent, RuntimeEventForType, RuntimeEventType, RuntimeVersion, SAFE_ENV_VARS, Skill, SkillManagerParams, SkillType, StartCommandInput, Step, StreamingEvent, StreamingEventType, TextPart, ThinkingPart, TodoActivity, ToolCall, ToolCallPart, ToolDefinition, ToolMessage, ToolResult, ToolResultPart, Usage, UserMessage, VertexProviderToolName, WriteTextFileActivity, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletion, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultMaxSteps, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByExceededMaxSteps, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, usageSchema, userMessageSchema, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
6219
+ export { Activity, ActivityOrGroup, ActivityType, AddDelegateActivity, AddSkillActivity, AmazonBedrockProviderConfig, AnthropicProviderConfig, AnthropicProviderSkill, AnthropicProviderToolName, AttemptCompletionActivity, AzureOpenAIProviderToolName, AzureOpenAiProviderConfig, BASE_SKILL_PREFIX, BaseEvent, BasePart, BuiltinAnthropicSkill, CallToolResultContent, Checkpoint, CheckpointStatus, ClearTodoActivity, CommandOptions, CompleteActivity, type CreateCheckpointParams, CreateExpertActivity, CustomAnthropicSkill, DeepseekProviderConfig, DelegateActivity, DelegateSkillManagerParams, DelegationCompleteActivity, DelegationTarget, EditTextFileActivity, ErrorActivity, EventForType, EventType, ExecActivity, Expert, ExpertMessage, ExpertStateEvent, ExpertStateEventType, FileBinaryPart, FileInlinePart, FileUrlPart, GeneralToolActivity, GetActivitiesParams, GoogleGenerativeAiProviderConfig, GoogleProviderToolName, GoogleVertexProviderConfig, Headers, ImageBinaryPart, ImageInlinePart, ImageUrlPart, InstructionMessage, InteractiveSkill, InteractiveSkillManagerParams, InteractiveTool, InteractiveToolActivity, Job, JobStatus, Lockfile, LockfileExpert, LockfileToolDefinition, McpSkillManagerParams, McpSseSkill, McpStdioSkill, Message, MessagePart, OllamaProviderConfig, OpenAIProviderToolName, OpenAiProviderConfig, ParallelActivitiesGroup, PerstackConfig, PerstackConfigExpert, PerstackConfigSkill, PerstackError, PerstackEvent, ProviderConfig, ProviderName, ProviderTable, ProviderToolOptions, QueryActivity, ReadImageFileActivity, ReadPdfFileActivity, ReadTextFileActivity, ReasoningBudget, RemoveDelegateActivity, RemoveSkillActivity, Resource, RetryActivity, RunCommandInput, RunEvent, RunInput, RunParams, RunParamsInput, RunSetting, RuntimeEvent, RuntimeEventForType, RuntimeEventType, RuntimeVersion, SAFE_ENV_VARS, Skill, SkillManagerParams, SkillType, StartCommandInput, Step, StreamingEvent, StreamingEventType, TextPart, ThinkingPart, TodoActivity, ToolCall, ToolCallPart, ToolDefinition, ToolMessage, ToolResult, ToolResultPart, Usage, UserMessage, VertexProviderToolName, WriteTextFileActivity, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultMaxSteps, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByExceededMaxSteps, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, usageSchema, userMessageSchema, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
6232
6220
  //# sourceMappingURL=index.d.ts.map
package/dist/src/index.js CHANGED
@@ -1377,7 +1377,6 @@ const callTools = createEvent("callTools");
1377
1377
  const finishMcpTools = createEvent("finishMcpTools");
1378
1378
  const skipDelegates = createEvent("skipDelegates");
1379
1379
  const resolveToolResults = createEvent("resolveToolResults");
1380
- const attemptCompletion = createEvent("attemptCompletion");
1381
1380
  const finishToolCall = createEvent("finishToolCall");
1382
1381
  const resumeToolCalls = createEvent("resumeToolCalls");
1383
1382
  const completeRun = createEvent("completeRun");
@@ -1410,7 +1409,6 @@ const EXPERT_STATE_EVENT_TYPES = new Set([
1410
1409
  "finishMcpTools",
1411
1410
  "skipDelegates",
1412
1411
  "resolveToolResults",
1413
- "attemptCompletion",
1414
1412
  "finishToolCall",
1415
1413
  "resumeToolCalls",
1416
1414
  "continueToNextStep",
@@ -1903,5 +1901,5 @@ function parseWithFriendlyError(schema, data, context) {
1903
1901
  }
1904
1902
 
1905
1903
  //#endregion
1906
- export { BASE_SKILL_PREFIX, PerstackError, SAFE_ENV_VARS, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletion, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultMaxSteps, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByExceededMaxSteps, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, usageSchema, userMessageSchema, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
1904
+ export { BASE_SKILL_PREFIX, PerstackError, SAFE_ENV_VARS, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultMaxSteps, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByExceededMaxSteps, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, usageSchema, userMessageSchema, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
1907
1905
  //# sourceMappingURL=index.js.map