@easbot/plugin 0.2.47 → 0.2.49

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/index.d.ts CHANGED
@@ -68,9 +68,13 @@ declare const HookEvent: {
68
68
  readonly TaskComplete: "task.complete";
69
69
  readonly LoopStart: "loop.start";
70
70
  readonly LoopEnd: "loop.end";
71
+ readonly CreationRequest: "creation.request";
72
+ readonly CreationComplete: "creation.complete";
73
+ readonly EvolutionRequest: "evolution.request";
74
+ readonly EvolutionComplete: "evolution.complete";
71
75
  };
72
76
  type HookEvent = (typeof HookEvent)[keyof typeof HookEvent];
73
- declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "step.start" | "step.finish" | "step.stop" | "step.stop.failure" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "text.complete" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end")[];
77
+ declare const HOOK_EVENTS: ("session.start" | "session.end" | "session.compacting" | "session.compact" | "step.start" | "step.finish" | "step.stop" | "step.stop.failure" | "message.receive" | "message.transform" | "system.transform" | "tool.before" | "tool.after" | "tool.failure" | "tool.definition" | "command.before" | "command.after" | "permission.ask" | "permission.denied" | "llm.params" | "llm.headers" | "shell.env" | "text.complete" | "gateway.message.receive" | "gateway.message.process" | "gateway.message.complete" | "gateway.message.send" | "gateway.message.delivered" | "gateway.message.read" | "scheduler.heartbeat.trigger" | "scheduler.heartbeat.complete" | "scheduler.task.trigger" | "scheduler.task.complete" | "scheduler.command.trigger" | "scheduler.command.complete" | "context.build.before" | "context.build.after" | "task.start" | "task.running" | "task.progress" | "task.complete" | "loop.start" | "loop.end" | "creation.request" | "creation.complete" | "evolution.request" | "evolution.complete")[];
74
78
  interface HookContext {
75
79
  sessionId?: string;
76
80
  agent?: string;
@@ -1105,6 +1109,52 @@ declare const LoopEndInputSchema: z$1.ZodObject<{
1105
1109
  }>;
1106
1110
  }, z$1.core.$strip>;
1107
1111
  type LoopEndInput = z$1.infer<typeof LoopEndInputSchema>;
1112
+ declare const CreationRequestInputSchema: z$1.ZodObject<{
1113
+ requestId: z$1.ZodString;
1114
+ kind: z$1.ZodEnum<{
1115
+ "create-skill": "create-skill";
1116
+ "create-workflow": "create-workflow";
1117
+ "create-bundle": "create-bundle";
1118
+ }>;
1119
+ requirement: z$1.ZodString;
1120
+ hints: z$1.ZodArray<z$1.ZodString>;
1121
+ origin: z$1.ZodObject<{
1122
+ source: z$1.ZodOptional<z$1.ZodEnum<{
1123
+ tool: "tool";
1124
+ scheduler: "scheduler";
1125
+ human: "human";
1126
+ namespace: "namespace";
1127
+ }>>;
1128
+ timestamp: z$1.ZodNumber;
1129
+ }, z$1.core.$strip>;
1130
+ }, z$1.core.$strip>;
1131
+ type CreationRequestInput = z$1.infer<typeof CreationRequestInputSchema>;
1132
+ declare const CreationCompleteInputSchema: z$1.ZodObject<{
1133
+ requestId: z$1.ZodString;
1134
+ status: z$1.ZodEnum<{
1135
+ success: "success";
1136
+ failed: "failed";
1137
+ }>;
1138
+ specId: z$1.ZodOptional<z$1.ZodString>;
1139
+ durationMs: z$1.ZodNumber;
1140
+ error: z$1.ZodOptional<z$1.ZodString>;
1141
+ }, z$1.core.$strip>;
1142
+ type CreationCompleteInput = z$1.infer<typeof CreationCompleteInputSchema>;
1143
+ declare const EvolutionRequestInputSchema: z$1.ZodObject<{
1144
+ dryRun: z$1.ZodBoolean;
1145
+ }, z$1.core.$strip>;
1146
+ type EvolutionRequestInput = z$1.infer<typeof EvolutionRequestInputSchema>;
1147
+ declare const EvolutionCompleteInputSchema: z$1.ZodObject<{
1148
+ status: z$1.ZodEnum<{
1149
+ success: "success";
1150
+ failed: "failed";
1151
+ "awaiting-approval": "awaiting-approval";
1152
+ }>;
1153
+ applied: z$1.ZodOptional<z$1.ZodNumber>;
1154
+ awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
1155
+ error: z$1.ZodOptional<z$1.ZodString>;
1156
+ }, z$1.core.$strip>;
1157
+ type EvolutionCompleteInput = z$1.infer<typeof EvolutionCompleteInputSchema>;
1108
1158
  declare const EventInputSchemas: {
1109
1159
  readonly "session.start": z$1.ZodObject<{
1110
1160
  sessionId: z$1.ZodString;
@@ -1636,6 +1686,48 @@ declare const EventInputSchemas: {
1636
1686
  continue: "continue";
1637
1687
  }>;
1638
1688
  }, z$1.core.$strip>;
1689
+ readonly "creation.request": z$1.ZodObject<{
1690
+ requestId: z$1.ZodString;
1691
+ kind: z$1.ZodEnum<{
1692
+ "create-skill": "create-skill";
1693
+ "create-workflow": "create-workflow";
1694
+ "create-bundle": "create-bundle";
1695
+ }>;
1696
+ requirement: z$1.ZodString;
1697
+ hints: z$1.ZodArray<z$1.ZodString>;
1698
+ origin: z$1.ZodObject<{
1699
+ source: z$1.ZodOptional<z$1.ZodEnum<{
1700
+ tool: "tool";
1701
+ scheduler: "scheduler";
1702
+ human: "human";
1703
+ namespace: "namespace";
1704
+ }>>;
1705
+ timestamp: z$1.ZodNumber;
1706
+ }, z$1.core.$strip>;
1707
+ }, z$1.core.$strip>;
1708
+ readonly "creation.complete": z$1.ZodObject<{
1709
+ requestId: z$1.ZodString;
1710
+ status: z$1.ZodEnum<{
1711
+ success: "success";
1712
+ failed: "failed";
1713
+ }>;
1714
+ specId: z$1.ZodOptional<z$1.ZodString>;
1715
+ durationMs: z$1.ZodNumber;
1716
+ error: z$1.ZodOptional<z$1.ZodString>;
1717
+ }, z$1.core.$strip>;
1718
+ readonly "evolution.request": z$1.ZodObject<{
1719
+ dryRun: z$1.ZodBoolean;
1720
+ }, z$1.core.$strip>;
1721
+ readonly "evolution.complete": z$1.ZodObject<{
1722
+ status: z$1.ZodEnum<{
1723
+ success: "success";
1724
+ failed: "failed";
1725
+ "awaiting-approval": "awaiting-approval";
1726
+ }>;
1727
+ applied: z$1.ZodOptional<z$1.ZodNumber>;
1728
+ awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
1729
+ error: z$1.ZodOptional<z$1.ZodString>;
1730
+ }, z$1.core.$strip>;
1639
1731
  };
1640
1732
  declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
1641
1733
  sessionId: z$1.ZodString;
@@ -2124,6 +2216,44 @@ declare function getEventInputSchema(event: HookEvent): z$1.ZodObject<{
2124
2216
  stop: "stop";
2125
2217
  continue: "continue";
2126
2218
  }>;
2219
+ }, z$1.core.$strip> | z$1.ZodObject<{
2220
+ requestId: z$1.ZodString;
2221
+ kind: z$1.ZodEnum<{
2222
+ "create-skill": "create-skill";
2223
+ "create-workflow": "create-workflow";
2224
+ "create-bundle": "create-bundle";
2225
+ }>;
2226
+ requirement: z$1.ZodString;
2227
+ hints: z$1.ZodArray<z$1.ZodString>;
2228
+ origin: z$1.ZodObject<{
2229
+ source: z$1.ZodOptional<z$1.ZodEnum<{
2230
+ tool: "tool";
2231
+ scheduler: "scheduler";
2232
+ human: "human";
2233
+ namespace: "namespace";
2234
+ }>>;
2235
+ timestamp: z$1.ZodNumber;
2236
+ }, z$1.core.$strip>;
2237
+ }, z$1.core.$strip> | z$1.ZodObject<{
2238
+ requestId: z$1.ZodString;
2239
+ status: z$1.ZodEnum<{
2240
+ success: "success";
2241
+ failed: "failed";
2242
+ }>;
2243
+ specId: z$1.ZodOptional<z$1.ZodString>;
2244
+ durationMs: z$1.ZodNumber;
2245
+ error: z$1.ZodOptional<z$1.ZodString>;
2246
+ }, z$1.core.$strip> | z$1.ZodObject<{
2247
+ dryRun: z$1.ZodBoolean;
2248
+ }, z$1.core.$strip> | z$1.ZodObject<{
2249
+ status: z$1.ZodEnum<{
2250
+ success: "success";
2251
+ failed: "failed";
2252
+ "awaiting-approval": "awaiting-approval";
2253
+ }>;
2254
+ applied: z$1.ZodOptional<z$1.ZodNumber>;
2255
+ awaitingApproval: z$1.ZodOptional<z$1.ZodNumber>;
2256
+ error: z$1.ZodOptional<z$1.ZodString>;
2127
2257
  }, z$1.core.$strip>;
2128
2258
  declare function validateHookInput<T extends HookEvent>(event: T, input: unknown): unknown;
2129
2259
  declare function safeValidateHookInput<T extends HookEvent>(event: T, input: unknown): {
@@ -2245,6 +2375,417 @@ interface CommandDefinition extends Command {
2245
2375
  init?: (context?: CommandInitContext) => Promise<CommandInitResult>;
2246
2376
  }
2247
2377
 
2378
+ declare const PermissionActionSchema: z$1.ZodEnum<{
2379
+ ask: "ask";
2380
+ allow: "allow";
2381
+ deny: "deny";
2382
+ }>;
2383
+ type PermissionAction = z$1.infer<typeof PermissionActionSchema>;
2384
+ declare const PermissionRuleSchema: z$1.ZodUnion<readonly [z$1.ZodEnum<{
2385
+ ask: "ask";
2386
+ allow: "allow";
2387
+ deny: "deny";
2388
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2389
+ ask: "ask";
2390
+ allow: "allow";
2391
+ deny: "deny";
2392
+ }>>]>;
2393
+ type PermissionRule = z$1.infer<typeof PermissionRuleSchema>;
2394
+ declare const AgentPermissionSchema: z$1.ZodObject<{
2395
+ read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2396
+ ask: "ask";
2397
+ allow: "allow";
2398
+ deny: "deny";
2399
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2400
+ ask: "ask";
2401
+ allow: "allow";
2402
+ deny: "deny";
2403
+ }>>]>>;
2404
+ edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2405
+ ask: "ask";
2406
+ allow: "allow";
2407
+ deny: "deny";
2408
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2409
+ ask: "ask";
2410
+ allow: "allow";
2411
+ deny: "deny";
2412
+ }>>]>>;
2413
+ write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2414
+ ask: "ask";
2415
+ allow: "allow";
2416
+ deny: "deny";
2417
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2418
+ ask: "ask";
2419
+ allow: "allow";
2420
+ deny: "deny";
2421
+ }>>]>>;
2422
+ glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2423
+ ask: "ask";
2424
+ allow: "allow";
2425
+ deny: "deny";
2426
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2427
+ ask: "ask";
2428
+ allow: "allow";
2429
+ deny: "deny";
2430
+ }>>]>>;
2431
+ grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2432
+ ask: "ask";
2433
+ allow: "allow";
2434
+ deny: "deny";
2435
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2436
+ ask: "ask";
2437
+ allow: "allow";
2438
+ deny: "deny";
2439
+ }>>]>>;
2440
+ list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2441
+ ask: "ask";
2442
+ allow: "allow";
2443
+ deny: "deny";
2444
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2445
+ ask: "ask";
2446
+ allow: "allow";
2447
+ deny: "deny";
2448
+ }>>]>>;
2449
+ bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2450
+ ask: "ask";
2451
+ allow: "allow";
2452
+ deny: "deny";
2453
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2454
+ ask: "ask";
2455
+ allow: "allow";
2456
+ deny: "deny";
2457
+ }>>]>>;
2458
+ webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2459
+ ask: "ask";
2460
+ allow: "allow";
2461
+ deny: "deny";
2462
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2463
+ ask: "ask";
2464
+ allow: "allow";
2465
+ deny: "deny";
2466
+ }>>]>>;
2467
+ websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2468
+ ask: "ask";
2469
+ allow: "allow";
2470
+ deny: "deny";
2471
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2472
+ ask: "ask";
2473
+ allow: "allow";
2474
+ deny: "deny";
2475
+ }>>]>>;
2476
+ task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2477
+ ask: "ask";
2478
+ allow: "allow";
2479
+ deny: "deny";
2480
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2481
+ ask: "ask";
2482
+ allow: "allow";
2483
+ deny: "deny";
2484
+ }>>]>>;
2485
+ todo: z$1.ZodOptional<z$1.ZodEnum<{
2486
+ ask: "ask";
2487
+ allow: "allow";
2488
+ deny: "deny";
2489
+ }>>;
2490
+ question: z$1.ZodOptional<z$1.ZodEnum<{
2491
+ ask: "ask";
2492
+ allow: "allow";
2493
+ deny: "deny";
2494
+ }>>;
2495
+ skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2496
+ ask: "ask";
2497
+ allow: "allow";
2498
+ deny: "deny";
2499
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2500
+ ask: "ask";
2501
+ allow: "allow";
2502
+ deny: "deny";
2503
+ }>>]>>;
2504
+ memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2505
+ ask: "ask";
2506
+ allow: "allow";
2507
+ deny: "deny";
2508
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2509
+ ask: "ask";
2510
+ allow: "allow";
2511
+ deny: "deny";
2512
+ }>>]>>;
2513
+ note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2514
+ ask: "ask";
2515
+ allow: "allow";
2516
+ deny: "deny";
2517
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2518
+ ask: "ask";
2519
+ allow: "allow";
2520
+ deny: "deny";
2521
+ }>>]>>;
2522
+ pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2523
+ ask: "ask";
2524
+ allow: "allow";
2525
+ deny: "deny";
2526
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2527
+ ask: "ask";
2528
+ allow: "allow";
2529
+ deny: "deny";
2530
+ }>>]>>;
2531
+ pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2532
+ ask: "ask";
2533
+ allow: "allow";
2534
+ deny: "deny";
2535
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2536
+ ask: "ask";
2537
+ allow: "allow";
2538
+ deny: "deny";
2539
+ }>>]>>;
2540
+ external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2541
+ ask: "ask";
2542
+ allow: "allow";
2543
+ deny: "deny";
2544
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2545
+ ask: "ask";
2546
+ allow: "allow";
2547
+ deny: "deny";
2548
+ }>>]>>;
2549
+ doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
2550
+ ask: "ask";
2551
+ allow: "allow";
2552
+ deny: "deny";
2553
+ }>>;
2554
+ }, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2555
+ ask: "ask";
2556
+ allow: "allow";
2557
+ deny: "deny";
2558
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2559
+ ask: "ask";
2560
+ allow: "allow";
2561
+ deny: "deny";
2562
+ }>>]>>>;
2563
+ type AgentPermission = z$1.infer<typeof AgentPermissionSchema>;
2564
+ declare const AgentModeSchema: z$1.ZodEnum<{
2565
+ all: "all";
2566
+ subagent: "subagent";
2567
+ primary: "primary";
2568
+ }>;
2569
+ type AgentMode = z$1.infer<typeof AgentModeSchema>;
2570
+ declare const AgentScopeSchema: z$1.ZodEnum<{
2571
+ general: "general";
2572
+ coder: "coder";
2573
+ all: "all";
2574
+ }>;
2575
+ type AgentScope = z$1.infer<typeof AgentScopeSchema>;
2576
+ declare const AgentModelSchema: z$1.ZodObject<{
2577
+ providerId: z$1.ZodString;
2578
+ modelId: z$1.ZodString;
2579
+ }, z$1.core.$strip>;
2580
+ type AgentModel = z$1.infer<typeof AgentModelSchema>;
2581
+ declare const AgentMetadataSchema: z$1.ZodObject<{
2582
+ name: z$1.ZodString;
2583
+ description: z$1.ZodOptional<z$1.ZodString>;
2584
+ mode: z$1.ZodOptional<z$1.ZodEnum<{
2585
+ all: "all";
2586
+ subagent: "subagent";
2587
+ primary: "primary";
2588
+ }>>;
2589
+ hidden: z$1.ZodOptional<z$1.ZodBoolean>;
2590
+ scope: z$1.ZodOptional<z$1.ZodEnum<{
2591
+ general: "general";
2592
+ coder: "coder";
2593
+ all: "all";
2594
+ }>>;
2595
+ model: z$1.ZodOptional<z$1.ZodObject<{
2596
+ providerId: z$1.ZodString;
2597
+ modelId: z$1.ZodString;
2598
+ }, z$1.core.$strip>>;
2599
+ variant: z$1.ZodOptional<z$1.ZodString>;
2600
+ temperature: z$1.ZodOptional<z$1.ZodNumber>;
2601
+ topP: z$1.ZodOptional<z$1.ZodNumber>;
2602
+ prompt: z$1.ZodOptional<z$1.ZodString>;
2603
+ permission: z$1.ZodOptional<z$1.ZodObject<{
2604
+ read: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2605
+ ask: "ask";
2606
+ allow: "allow";
2607
+ deny: "deny";
2608
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2609
+ ask: "ask";
2610
+ allow: "allow";
2611
+ deny: "deny";
2612
+ }>>]>>;
2613
+ edit: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2614
+ ask: "ask";
2615
+ allow: "allow";
2616
+ deny: "deny";
2617
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2618
+ ask: "ask";
2619
+ allow: "allow";
2620
+ deny: "deny";
2621
+ }>>]>>;
2622
+ write: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2623
+ ask: "ask";
2624
+ allow: "allow";
2625
+ deny: "deny";
2626
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2627
+ ask: "ask";
2628
+ allow: "allow";
2629
+ deny: "deny";
2630
+ }>>]>>;
2631
+ glob: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2632
+ ask: "ask";
2633
+ allow: "allow";
2634
+ deny: "deny";
2635
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2636
+ ask: "ask";
2637
+ allow: "allow";
2638
+ deny: "deny";
2639
+ }>>]>>;
2640
+ grep: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2641
+ ask: "ask";
2642
+ allow: "allow";
2643
+ deny: "deny";
2644
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2645
+ ask: "ask";
2646
+ allow: "allow";
2647
+ deny: "deny";
2648
+ }>>]>>;
2649
+ list: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2650
+ ask: "ask";
2651
+ allow: "allow";
2652
+ deny: "deny";
2653
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2654
+ ask: "ask";
2655
+ allow: "allow";
2656
+ deny: "deny";
2657
+ }>>]>>;
2658
+ bash: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2659
+ ask: "ask";
2660
+ allow: "allow";
2661
+ deny: "deny";
2662
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2663
+ ask: "ask";
2664
+ allow: "allow";
2665
+ deny: "deny";
2666
+ }>>]>>;
2667
+ webfetch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2668
+ ask: "ask";
2669
+ allow: "allow";
2670
+ deny: "deny";
2671
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2672
+ ask: "ask";
2673
+ allow: "allow";
2674
+ deny: "deny";
2675
+ }>>]>>;
2676
+ websearch: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2677
+ ask: "ask";
2678
+ allow: "allow";
2679
+ deny: "deny";
2680
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2681
+ ask: "ask";
2682
+ allow: "allow";
2683
+ deny: "deny";
2684
+ }>>]>>;
2685
+ task: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2686
+ ask: "ask";
2687
+ allow: "allow";
2688
+ deny: "deny";
2689
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2690
+ ask: "ask";
2691
+ allow: "allow";
2692
+ deny: "deny";
2693
+ }>>]>>;
2694
+ todo: z$1.ZodOptional<z$1.ZodEnum<{
2695
+ ask: "ask";
2696
+ allow: "allow";
2697
+ deny: "deny";
2698
+ }>>;
2699
+ question: z$1.ZodOptional<z$1.ZodEnum<{
2700
+ ask: "ask";
2701
+ allow: "allow";
2702
+ deny: "deny";
2703
+ }>>;
2704
+ skill: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2705
+ ask: "ask";
2706
+ allow: "allow";
2707
+ deny: "deny";
2708
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2709
+ ask: "ask";
2710
+ allow: "allow";
2711
+ deny: "deny";
2712
+ }>>]>>;
2713
+ memory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2714
+ ask: "ask";
2715
+ allow: "allow";
2716
+ deny: "deny";
2717
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2718
+ ask: "ask";
2719
+ allow: "allow";
2720
+ deny: "deny";
2721
+ }>>]>>;
2722
+ note: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2723
+ ask: "ask";
2724
+ allow: "allow";
2725
+ deny: "deny";
2726
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2727
+ ask: "ask";
2728
+ allow: "allow";
2729
+ deny: "deny";
2730
+ }>>]>>;
2731
+ pty_session: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2732
+ ask: "ask";
2733
+ allow: "allow";
2734
+ deny: "deny";
2735
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2736
+ ask: "ask";
2737
+ allow: "allow";
2738
+ deny: "deny";
2739
+ }>>]>>;
2740
+ pty_manage: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2741
+ ask: "ask";
2742
+ allow: "allow";
2743
+ deny: "deny";
2744
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2745
+ ask: "ask";
2746
+ allow: "allow";
2747
+ deny: "deny";
2748
+ }>>]>>;
2749
+ external_directory: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2750
+ ask: "ask";
2751
+ allow: "allow";
2752
+ deny: "deny";
2753
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2754
+ ask: "ask";
2755
+ allow: "allow";
2756
+ deny: "deny";
2757
+ }>>]>>;
2758
+ doom_loop: z$1.ZodOptional<z$1.ZodEnum<{
2759
+ ask: "ask";
2760
+ allow: "allow";
2761
+ deny: "deny";
2762
+ }>>;
2763
+ }, z$1.core.$catchall<z$1.ZodUnion<readonly [z$1.ZodEnum<{
2764
+ ask: "ask";
2765
+ allow: "allow";
2766
+ deny: "deny";
2767
+ }>, z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
2768
+ ask: "ask";
2769
+ allow: "allow";
2770
+ deny: "deny";
2771
+ }>>]>>>>;
2772
+ steps: z$1.ZodOptional<z$1.ZodNumber>;
2773
+ color: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodEnum<{
2774
+ success: "success";
2775
+ error: "error";
2776
+ info: "info";
2777
+ primary: "primary";
2778
+ secondary: "secondary";
2779
+ accent: "accent";
2780
+ warning: "warning";
2781
+ }>]>>;
2782
+ options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2783
+ }, z$1.core.$strip>;
2784
+ type AgentMetadata = z$1.infer<typeof AgentMetadataSchema>;
2785
+ interface AgentDefinition extends AgentMetadata {
2786
+ id?: string;
2787
+ }
2788
+
2248
2789
  type PluginInput = {
2249
2790
  client: ReturnType<typeof createEasbotClient>;
2250
2791
  project: Project;
@@ -2346,6 +2887,7 @@ type AuthOuathResult = {
2346
2887
  interface PluginDefinition {
2347
2888
  hooks?: HookMatcher[];
2348
2889
  commands?: CommandDefinition[];
2890
+ agents?: AgentDefinition[];
2349
2891
  event?: (input: {
2350
2892
  event: Event;
2351
2893
  }) => Promise<void>;
@@ -2389,4 +2931,4 @@ interface PluginDefinition {
2389
2931
  'context.build.after'?: (input: ContextBuildAfterInput, output: HookOutputWrapper<ContextBuildAfterInput>) => Promise<void>;
2390
2932
  }
2391
2933
 
2392
- export { AgentExecutorSchema, type AgentHookDefinition, AgentSchema, type AuthHook, type AuthOuathResult, CallIDSchema, type CommandAfterInput, CommandAfterInputSchema, type CommandArguments, CommandArgumentsSchema, type CommandBeforeInput, CommandBeforeInputSchema, type CommandCompleteInput, CommandCompleteInputSchema, type CommandDefinition, type CommandExecuteResult, type CommandExecuteResultMetadata, CommandExecuteResultMetadataSchema, CommandExecuteResultSchema, type CommandExecutionContext, CommandExecutionContextSchema, CommandExecutorSchema, type CommandHookDefinition, type CommandInitContext, CommandInitContextSchema, type CommandInitResult, CommandInitResultSchema, type CommandMetadata, CommandMetadataSchema, type CommandPromptPart, CommandPromptPartSchema, type CommandSource, CommandSourceSchema, type CommandTaskDefinition, CommandTaskDefinitionSchema, type CommandTriggerInput, CommandTriggerInputSchema, ContentPartSchema, type ContextBuildAfterInput, ContextBuildAfterInputSchema, type ContextBuildBeforeInput, ContextBuildBeforeInputSchema, CwdSchema, EndReasonSchema, EventInputSchemas, FinishReasonSchema, FunctionExecutorSchema, type FunctionHookDefinition, type GatewayMessageCompleteInput, GatewayMessageCompleteInputSchema, type GatewayMessageDeliveredInput, GatewayMessageDeliveredInputSchema, type GatewayMessageProcessInput, GatewayMessageProcessInputSchema, type GatewayMessageReadInput, GatewayMessageReadInputSchema, type GatewayMessageReceiveInput, GatewayMessageReceiveInputSchema, type GatewayMessageSendInput, GatewayMessageSendInputSchema, HOOK_EVENTS, type HeartbeatCompleteInput, HeartbeatCompleteInputSchema, type HeartbeatTaskDefinition, HeartbeatTaskDefinitionSchema, type HeartbeatTriggerInput, HeartbeatTriggerInputSchema, type HookChainResult, type HookContext, type HookDefinition, type HookError, HookEvent, type HookExecutionDetail, HookExecutorSchema, type HookHandler, type HookMatcher, HookMatcherSchema, type HookOutputWrapper, type HookResult, HookType, type HooksConfig, HooksConfigSchema, HttpExecutorSchema, type HttpHookDefinition, type LlmHeadersInput, LlmHeadersInputSchema, type LlmParamsInput, LlmParamsInputSchema, LlmParamsSchema, LlmProviderSchema, type LoopEndInput, LoopEndInputSchema, type LoopStartInput, LoopStartInputSchema, MessageIDSchema, type MessageReceiveInput, MessageReceiveInputSchema, MessageRoleSchema, MessageSchema, type MessageTransformInput, MessageTransformInputSchema, ModelObjectSchema, ModelSchema, type PermissionAskInput, PermissionAskInputSchema, type PermissionDeniedInput, PermissionDeniedInputSchema, PermissionLevelSchema, PermissionRequestSchema, type Plugin, type PluginDefinition, type PluginInput, PromptExecutorSchema, type PromptHookDefinition, type ScheduledTaskCompleteInput, ScheduledTaskCompleteInputSchema, type ScheduledTaskTriggerInput, ScheduledTaskTriggerInputSchema, type SchedulerTaskDefinition, SchedulerTaskDefinitionSchema, type SessionCompactInput, SessionCompactInputSchema, type SessionCompactingInput, SessionCompactingInputSchema, type SessionEndInput, SessionEndInputSchema, SessionIDSchema, type SessionStartInput, SessionStartInputSchema, type ShellEnvInput, ShellEnvInputSchema, type StepFinishInput, StepFinishInputSchema, type StepStartInput, StepStartInputSchema, type StepStopFailureInput, StepStopFailureInputSchema, type StepStopInput, StepStopInputSchema, type SystemTransformInput, SystemTransformInputSchema, type TaskCompleteInput, TaskCompleteInputSchema, type TaskDefinition, type TaskProgressInput, TaskProgressInputSchema, type TaskRunningInput, TaskRunningInputSchema, type TaskSource, TaskSourceSchema, type TaskStartInput, TaskStartInputSchema, type TextCompleteInput, TextCompleteInputSchema, type ToolAfterInput, ToolAfterInputSchema, ToolArgsSchema, type ToolBeforeInput, ToolBeforeInputSchema, type ToolDefinitionInput, ToolDefinitionInputSchema, type ToolFailureInput, ToolFailureInputSchema, ToolResultSchema, getEventInputSchema, safeValidateHookInput, tool, validateHookInput };
2934
+ export { type AgentDefinition, AgentExecutorSchema, type AgentHookDefinition, type AgentMetadata, AgentMetadataSchema, type AgentMode, AgentModeSchema, type AgentModel, AgentModelSchema, type AgentPermission, AgentPermissionSchema, AgentSchema, type AgentScope, AgentScopeSchema, type AuthHook, type AuthOuathResult, CallIDSchema, type CommandAfterInput, CommandAfterInputSchema, type CommandArguments, CommandArgumentsSchema, type CommandBeforeInput, CommandBeforeInputSchema, type CommandCompleteInput, CommandCompleteInputSchema, type CommandDefinition, type CommandExecuteResult, type CommandExecuteResultMetadata, CommandExecuteResultMetadataSchema, CommandExecuteResultSchema, type CommandExecutionContext, CommandExecutionContextSchema, CommandExecutorSchema, type CommandHookDefinition, type CommandInitContext, CommandInitContextSchema, type CommandInitResult, CommandInitResultSchema, type CommandMetadata, CommandMetadataSchema, type CommandPromptPart, CommandPromptPartSchema, type CommandSource, CommandSourceSchema, type CommandTaskDefinition, CommandTaskDefinitionSchema, type CommandTriggerInput, CommandTriggerInputSchema, ContentPartSchema, type ContextBuildAfterInput, ContextBuildAfterInputSchema, type ContextBuildBeforeInput, ContextBuildBeforeInputSchema, type CreationCompleteInput, CreationCompleteInputSchema, type CreationRequestInput, CreationRequestInputSchema, CwdSchema, EndReasonSchema, EventInputSchemas, type EvolutionCompleteInput, EvolutionCompleteInputSchema, type EvolutionRequestInput, EvolutionRequestInputSchema, FinishReasonSchema, FunctionExecutorSchema, type FunctionHookDefinition, type GatewayMessageCompleteInput, GatewayMessageCompleteInputSchema, type GatewayMessageDeliveredInput, GatewayMessageDeliveredInputSchema, type GatewayMessageProcessInput, GatewayMessageProcessInputSchema, type GatewayMessageReadInput, GatewayMessageReadInputSchema, type GatewayMessageReceiveInput, GatewayMessageReceiveInputSchema, type GatewayMessageSendInput, GatewayMessageSendInputSchema, HOOK_EVENTS, type HeartbeatCompleteInput, HeartbeatCompleteInputSchema, type HeartbeatTaskDefinition, HeartbeatTaskDefinitionSchema, type HeartbeatTriggerInput, HeartbeatTriggerInputSchema, type HookChainResult, type HookContext, type HookDefinition, type HookError, HookEvent, type HookExecutionDetail, HookExecutorSchema, type HookHandler, type HookMatcher, HookMatcherSchema, type HookOutputWrapper, type HookResult, HookType, type HooksConfig, HooksConfigSchema, HttpExecutorSchema, type HttpHookDefinition, type LlmHeadersInput, LlmHeadersInputSchema, type LlmParamsInput, LlmParamsInputSchema, LlmParamsSchema, LlmProviderSchema, type LoopEndInput, LoopEndInputSchema, type LoopStartInput, LoopStartInputSchema, MessageIDSchema, type MessageReceiveInput, MessageReceiveInputSchema, MessageRoleSchema, MessageSchema, type MessageTransformInput, MessageTransformInputSchema, ModelObjectSchema, ModelSchema, type PermissionAction, PermissionActionSchema, type PermissionAskInput, PermissionAskInputSchema, type PermissionDeniedInput, PermissionDeniedInputSchema, PermissionLevelSchema, PermissionRequestSchema, type PermissionRule, PermissionRuleSchema, type Plugin, type PluginDefinition, type PluginInput, PromptExecutorSchema, type PromptHookDefinition, type ScheduledTaskCompleteInput, ScheduledTaskCompleteInputSchema, type ScheduledTaskTriggerInput, ScheduledTaskTriggerInputSchema, type SchedulerTaskDefinition, SchedulerTaskDefinitionSchema, type SessionCompactInput, SessionCompactInputSchema, type SessionCompactingInput, SessionCompactingInputSchema, type SessionEndInput, SessionEndInputSchema, SessionIDSchema, type SessionStartInput, SessionStartInputSchema, type ShellEnvInput, ShellEnvInputSchema, type StepFinishInput, StepFinishInputSchema, type StepStartInput, StepStartInputSchema, type StepStopFailureInput, StepStopFailureInputSchema, type StepStopInput, StepStopInputSchema, type SystemTransformInput, SystemTransformInputSchema, type TaskCompleteInput, TaskCompleteInputSchema, type TaskDefinition, type TaskProgressInput, TaskProgressInputSchema, type TaskRunningInput, TaskRunningInputSchema, type TaskSource, TaskSourceSchema, type TaskStartInput, TaskStartInputSchema, type TextCompleteInput, TextCompleteInputSchema, type ToolAfterInput, ToolAfterInputSchema, ToolArgsSchema, type ToolBeforeInput, ToolBeforeInputSchema, type ToolDefinitionInput, ToolDefinitionInputSchema, type ToolFailureInput, ToolFailureInputSchema, ToolResultSchema, getEventInputSchema, safeValidateHookInput, tool, validateHookInput };