@anyi61/codex-claude-delegate-mcp 0.1.0

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.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +262 -0
  3. package/dist/claude-cli.d.ts +84 -0
  4. package/dist/claude-cli.js +3123 -0
  5. package/dist/claude-cli.js.map +1 -0
  6. package/dist/cli.d.ts +61 -0
  7. package/dist/cli.js +334 -0
  8. package/dist/cli.js.map +1 -0
  9. package/dist/codex-config.d.ts +104 -0
  10. package/dist/codex-config.js +446 -0
  11. package/dist/codex-config.js.map +1 -0
  12. package/dist/guard.d.ts +27 -0
  13. package/dist/guard.js +229 -0
  14. package/dist/guard.js.map +1 -0
  15. package/dist/job-runner.d.ts +13 -0
  16. package/dist/job-runner.js +75 -0
  17. package/dist/job-runner.js.map +1 -0
  18. package/dist/jobs.d.ts +46 -0
  19. package/dist/jobs.js +175 -0
  20. package/dist/jobs.js.map +1 -0
  21. package/dist/package-info.d.ts +4 -0
  22. package/dist/package-info.js +14 -0
  23. package/dist/package-info.js.map +1 -0
  24. package/dist/schema.d.ts +779 -0
  25. package/dist/schema.js +325 -0
  26. package/dist/schema.js.map +1 -0
  27. package/dist/server.d.ts +1142 -0
  28. package/dist/server.js +693 -0
  29. package/dist/server.js.map +1 -0
  30. package/dist/session.d.ts +35 -0
  31. package/dist/session.js +109 -0
  32. package/dist/session.js.map +1 -0
  33. package/package.json +49 -0
  34. package/plugins/codex-claude-delegate/.codex-plugin/plugin.json +36 -0
  35. package/plugins/codex-claude-delegate/.mcp.json +9 -0
  36. package/plugins/codex-claude-delegate/hooks/hooks.json +16 -0
  37. package/plugins/codex-claude-delegate/hooks/review-gate-stop.mjs +66 -0
  38. package/plugins/codex-claude-delegate/server/job-runner.js +16999 -0
  39. package/plugins/codex-claude-delegate/server/server.js +28048 -0
  40. package/plugins/codex-claude-delegate/skills/claude-delegate.md +30 -0
  41. package/plugins/codex-claude-delegate/skills/claude-rescue.md +52 -0
  42. package/plugins/codex-claude-delegate/skills/claude-review.md +25 -0
@@ -0,0 +1,1142 @@
1
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
+ export declare const TOOL_DEFINITIONS: ({
3
+ name: string;
4
+ description: string;
5
+ inputSchema: {
6
+ type: string;
7
+ required: string[];
8
+ properties: {
9
+ cwd: {
10
+ type: string;
11
+ description: string;
12
+ };
13
+ configure_allow_root?: undefined;
14
+ limit?: undefined;
15
+ type?: undefined;
16
+ status?: undefined;
17
+ worktree_name?: undefined;
18
+ run_id?: undefined;
19
+ job_id?: undefined;
20
+ prefer?: undefined;
21
+ include_terminal?: undefined;
22
+ task?: undefined;
23
+ mode?: undefined;
24
+ background?: undefined;
25
+ resume_latest?: undefined;
26
+ instruction_files?: undefined;
27
+ files?: undefined;
28
+ constraints?: undefined;
29
+ diff?: undefined;
30
+ timeout_sec?: undefined;
31
+ dirty_policy?: undefined;
32
+ action?: undefined;
33
+ max_turns?: undefined;
34
+ fast?: undefined;
35
+ resume?: undefined;
36
+ session_key?: undefined;
37
+ fork_session?: undefined;
38
+ max_cost_usd?: undefined;
39
+ max_changed_files?: undefined;
40
+ worktreeName?: undefined;
41
+ not_before?: undefined;
42
+ older_than_hours?: undefined;
43
+ dry_run?: undefined;
44
+ worktree_path?: undefined;
45
+ cleanup?: undefined;
46
+ preview?: undefined;
47
+ confirmed_by_user?: undefined;
48
+ };
49
+ };
50
+ } | {
51
+ name: string;
52
+ description: string;
53
+ inputSchema: {
54
+ type: string;
55
+ required: string[];
56
+ properties: {
57
+ cwd: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ configure_allow_root: {
62
+ type: string;
63
+ description: string;
64
+ };
65
+ limit?: undefined;
66
+ type?: undefined;
67
+ status?: undefined;
68
+ worktree_name?: undefined;
69
+ run_id?: undefined;
70
+ job_id?: undefined;
71
+ prefer?: undefined;
72
+ include_terminal?: undefined;
73
+ task?: undefined;
74
+ mode?: undefined;
75
+ background?: undefined;
76
+ resume_latest?: undefined;
77
+ instruction_files?: undefined;
78
+ files?: undefined;
79
+ constraints?: undefined;
80
+ diff?: undefined;
81
+ timeout_sec?: undefined;
82
+ dirty_policy?: undefined;
83
+ action?: undefined;
84
+ max_turns?: undefined;
85
+ fast?: undefined;
86
+ resume?: undefined;
87
+ session_key?: undefined;
88
+ fork_session?: undefined;
89
+ max_cost_usd?: undefined;
90
+ max_changed_files?: undefined;
91
+ worktreeName?: undefined;
92
+ not_before?: undefined;
93
+ older_than_hours?: undefined;
94
+ dry_run?: undefined;
95
+ worktree_path?: undefined;
96
+ cleanup?: undefined;
97
+ preview?: undefined;
98
+ confirmed_by_user?: undefined;
99
+ };
100
+ };
101
+ } | {
102
+ name: string;
103
+ description: string;
104
+ inputSchema: {
105
+ type: string;
106
+ required: string[];
107
+ properties: {
108
+ cwd: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ limit: {
113
+ type: string;
114
+ description: string;
115
+ };
116
+ type: {
117
+ type: string;
118
+ enum: string[];
119
+ description: string;
120
+ };
121
+ status: {
122
+ type: string;
123
+ enum: string[];
124
+ description: string;
125
+ };
126
+ worktree_name: {
127
+ type: string;
128
+ description: string;
129
+ };
130
+ configure_allow_root?: undefined;
131
+ run_id?: undefined;
132
+ job_id?: undefined;
133
+ prefer?: undefined;
134
+ include_terminal?: undefined;
135
+ task?: undefined;
136
+ mode?: undefined;
137
+ background?: undefined;
138
+ resume_latest?: undefined;
139
+ instruction_files?: undefined;
140
+ files?: undefined;
141
+ constraints?: undefined;
142
+ diff?: undefined;
143
+ timeout_sec?: undefined;
144
+ dirty_policy?: undefined;
145
+ action?: undefined;
146
+ max_turns?: undefined;
147
+ fast?: undefined;
148
+ resume?: undefined;
149
+ session_key?: undefined;
150
+ fork_session?: undefined;
151
+ max_cost_usd?: undefined;
152
+ max_changed_files?: undefined;
153
+ worktreeName?: undefined;
154
+ not_before?: undefined;
155
+ older_than_hours?: undefined;
156
+ dry_run?: undefined;
157
+ worktree_path?: undefined;
158
+ cleanup?: undefined;
159
+ preview?: undefined;
160
+ confirmed_by_user?: undefined;
161
+ };
162
+ };
163
+ } | {
164
+ name: string;
165
+ description: string;
166
+ inputSchema: {
167
+ type: string;
168
+ required: string[];
169
+ properties: {
170
+ cwd: {
171
+ type: string;
172
+ description: string;
173
+ };
174
+ run_id: {
175
+ type: string;
176
+ description: string;
177
+ };
178
+ configure_allow_root?: undefined;
179
+ limit?: undefined;
180
+ type?: undefined;
181
+ status?: undefined;
182
+ worktree_name?: undefined;
183
+ job_id?: undefined;
184
+ prefer?: undefined;
185
+ include_terminal?: undefined;
186
+ task?: undefined;
187
+ mode?: undefined;
188
+ background?: undefined;
189
+ resume_latest?: undefined;
190
+ instruction_files?: undefined;
191
+ files?: undefined;
192
+ constraints?: undefined;
193
+ diff?: undefined;
194
+ timeout_sec?: undefined;
195
+ dirty_policy?: undefined;
196
+ action?: undefined;
197
+ max_turns?: undefined;
198
+ fast?: undefined;
199
+ resume?: undefined;
200
+ session_key?: undefined;
201
+ fork_session?: undefined;
202
+ max_cost_usd?: undefined;
203
+ max_changed_files?: undefined;
204
+ worktreeName?: undefined;
205
+ not_before?: undefined;
206
+ older_than_hours?: undefined;
207
+ dry_run?: undefined;
208
+ worktree_path?: undefined;
209
+ cleanup?: undefined;
210
+ preview?: undefined;
211
+ confirmed_by_user?: undefined;
212
+ };
213
+ };
214
+ } | {
215
+ name: string;
216
+ description: string;
217
+ inputSchema: {
218
+ type: string;
219
+ required: string[];
220
+ properties: {
221
+ cwd: {
222
+ type: string;
223
+ description: string;
224
+ };
225
+ job_id: {
226
+ type: string;
227
+ description: string;
228
+ };
229
+ run_id: {
230
+ type: string;
231
+ description: string;
232
+ };
233
+ prefer: {
234
+ type: string;
235
+ enum: string[];
236
+ description: string;
237
+ };
238
+ configure_allow_root?: undefined;
239
+ limit?: undefined;
240
+ type?: undefined;
241
+ status?: undefined;
242
+ worktree_name?: undefined;
243
+ include_terminal?: undefined;
244
+ task?: undefined;
245
+ mode?: undefined;
246
+ background?: undefined;
247
+ resume_latest?: undefined;
248
+ instruction_files?: undefined;
249
+ files?: undefined;
250
+ constraints?: undefined;
251
+ diff?: undefined;
252
+ timeout_sec?: undefined;
253
+ dirty_policy?: undefined;
254
+ action?: undefined;
255
+ max_turns?: undefined;
256
+ fast?: undefined;
257
+ resume?: undefined;
258
+ session_key?: undefined;
259
+ fork_session?: undefined;
260
+ max_cost_usd?: undefined;
261
+ max_changed_files?: undefined;
262
+ worktreeName?: undefined;
263
+ not_before?: undefined;
264
+ older_than_hours?: undefined;
265
+ dry_run?: undefined;
266
+ worktree_path?: undefined;
267
+ cleanup?: undefined;
268
+ preview?: undefined;
269
+ confirmed_by_user?: undefined;
270
+ };
271
+ };
272
+ } | {
273
+ name: string;
274
+ description: string;
275
+ inputSchema: {
276
+ type: string;
277
+ required: string[];
278
+ properties: {
279
+ cwd: {
280
+ type: string;
281
+ description: string;
282
+ };
283
+ limit: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ include_terminal: {
288
+ type: string;
289
+ description: string;
290
+ };
291
+ configure_allow_root?: undefined;
292
+ type?: undefined;
293
+ status?: undefined;
294
+ worktree_name?: undefined;
295
+ run_id?: undefined;
296
+ job_id?: undefined;
297
+ prefer?: undefined;
298
+ task?: undefined;
299
+ mode?: undefined;
300
+ background?: undefined;
301
+ resume_latest?: undefined;
302
+ instruction_files?: undefined;
303
+ files?: undefined;
304
+ constraints?: undefined;
305
+ diff?: undefined;
306
+ timeout_sec?: undefined;
307
+ dirty_policy?: undefined;
308
+ action?: undefined;
309
+ max_turns?: undefined;
310
+ fast?: undefined;
311
+ resume?: undefined;
312
+ session_key?: undefined;
313
+ fork_session?: undefined;
314
+ max_cost_usd?: undefined;
315
+ max_changed_files?: undefined;
316
+ worktreeName?: undefined;
317
+ not_before?: undefined;
318
+ older_than_hours?: undefined;
319
+ dry_run?: undefined;
320
+ worktree_path?: undefined;
321
+ cleanup?: undefined;
322
+ preview?: undefined;
323
+ confirmed_by_user?: undefined;
324
+ };
325
+ };
326
+ } | {
327
+ name: string;
328
+ description: string;
329
+ inputSchema: {
330
+ type: string;
331
+ required: string[];
332
+ properties: {
333
+ cwd: {
334
+ type: string;
335
+ description: string;
336
+ };
337
+ task: {
338
+ type: string;
339
+ description: string;
340
+ };
341
+ mode: {
342
+ type: string;
343
+ enum: string[];
344
+ description: string;
345
+ };
346
+ background: {
347
+ type: string;
348
+ description: string;
349
+ };
350
+ resume_latest: {
351
+ type: string;
352
+ description: string;
353
+ };
354
+ instruction_files: {
355
+ type: string;
356
+ items: {
357
+ type: string;
358
+ };
359
+ description: string;
360
+ };
361
+ files: {
362
+ type: string;
363
+ items: {
364
+ type: string;
365
+ };
366
+ description: string;
367
+ };
368
+ constraints: {
369
+ type: string;
370
+ items: {
371
+ type: string;
372
+ };
373
+ description: string;
374
+ };
375
+ diff: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ timeout_sec: {
380
+ type: string;
381
+ description: string;
382
+ };
383
+ dirty_policy: {
384
+ type: string;
385
+ enum: string[];
386
+ description: string;
387
+ };
388
+ configure_allow_root?: undefined;
389
+ limit?: undefined;
390
+ type?: undefined;
391
+ status?: undefined;
392
+ worktree_name?: undefined;
393
+ run_id?: undefined;
394
+ job_id?: undefined;
395
+ prefer?: undefined;
396
+ include_terminal?: undefined;
397
+ action?: undefined;
398
+ max_turns?: undefined;
399
+ fast?: undefined;
400
+ resume?: undefined;
401
+ session_key?: undefined;
402
+ fork_session?: undefined;
403
+ max_cost_usd?: undefined;
404
+ max_changed_files?: undefined;
405
+ worktreeName?: undefined;
406
+ not_before?: undefined;
407
+ older_than_hours?: undefined;
408
+ dry_run?: undefined;
409
+ worktree_path?: undefined;
410
+ cleanup?: undefined;
411
+ preview?: undefined;
412
+ confirmed_by_user?: undefined;
413
+ };
414
+ };
415
+ } | {
416
+ name: string;
417
+ description: string;
418
+ inputSchema: {
419
+ type: string;
420
+ required: string[];
421
+ properties: {
422
+ cwd: {
423
+ type: string;
424
+ description: string;
425
+ };
426
+ action: {
427
+ type: string;
428
+ enum: string[];
429
+ description: string;
430
+ };
431
+ configure_allow_root?: undefined;
432
+ limit?: undefined;
433
+ type?: undefined;
434
+ status?: undefined;
435
+ worktree_name?: undefined;
436
+ run_id?: undefined;
437
+ job_id?: undefined;
438
+ prefer?: undefined;
439
+ include_terminal?: undefined;
440
+ task?: undefined;
441
+ mode?: undefined;
442
+ background?: undefined;
443
+ resume_latest?: undefined;
444
+ instruction_files?: undefined;
445
+ files?: undefined;
446
+ constraints?: undefined;
447
+ diff?: undefined;
448
+ timeout_sec?: undefined;
449
+ dirty_policy?: undefined;
450
+ max_turns?: undefined;
451
+ fast?: undefined;
452
+ resume?: undefined;
453
+ session_key?: undefined;
454
+ fork_session?: undefined;
455
+ max_cost_usd?: undefined;
456
+ max_changed_files?: undefined;
457
+ worktreeName?: undefined;
458
+ not_before?: undefined;
459
+ older_than_hours?: undefined;
460
+ dry_run?: undefined;
461
+ worktree_path?: undefined;
462
+ cleanup?: undefined;
463
+ preview?: undefined;
464
+ confirmed_by_user?: undefined;
465
+ };
466
+ };
467
+ } | {
468
+ name: string;
469
+ description: string;
470
+ inputSchema: {
471
+ type: string;
472
+ required: string[];
473
+ properties: {
474
+ task: {
475
+ type: string;
476
+ description: string;
477
+ };
478
+ cwd: {
479
+ type: string;
480
+ description: string;
481
+ };
482
+ instruction_files: {
483
+ type: string;
484
+ items: {
485
+ type: string;
486
+ };
487
+ description: string;
488
+ };
489
+ timeout_sec: {
490
+ type: string;
491
+ description: string;
492
+ };
493
+ max_turns: {
494
+ type: string;
495
+ description: string;
496
+ };
497
+ fast: {
498
+ type: string;
499
+ description: string;
500
+ };
501
+ resume: {
502
+ type: string;
503
+ description: string;
504
+ };
505
+ configure_allow_root?: undefined;
506
+ limit?: undefined;
507
+ type?: undefined;
508
+ status?: undefined;
509
+ worktree_name?: undefined;
510
+ run_id?: undefined;
511
+ job_id?: undefined;
512
+ prefer?: undefined;
513
+ include_terminal?: undefined;
514
+ mode?: undefined;
515
+ background?: undefined;
516
+ resume_latest?: undefined;
517
+ files?: undefined;
518
+ constraints?: undefined;
519
+ diff?: undefined;
520
+ dirty_policy?: undefined;
521
+ action?: undefined;
522
+ session_key?: undefined;
523
+ fork_session?: undefined;
524
+ max_cost_usd?: undefined;
525
+ max_changed_files?: undefined;
526
+ worktreeName?: undefined;
527
+ not_before?: undefined;
528
+ older_than_hours?: undefined;
529
+ dry_run?: undefined;
530
+ worktree_path?: undefined;
531
+ cleanup?: undefined;
532
+ preview?: undefined;
533
+ confirmed_by_user?: undefined;
534
+ };
535
+ };
536
+ } | {
537
+ name: string;
538
+ description: string;
539
+ inputSchema: {
540
+ type: string;
541
+ required: string[];
542
+ properties: {
543
+ task: {
544
+ type: string;
545
+ description: string;
546
+ };
547
+ cwd: {
548
+ type: string;
549
+ description: string;
550
+ };
551
+ instruction_files: {
552
+ type: string;
553
+ items: {
554
+ type: string;
555
+ };
556
+ description: string;
557
+ };
558
+ diff: {
559
+ type: string;
560
+ description: string;
561
+ };
562
+ files: {
563
+ type: string;
564
+ items: {
565
+ type: string;
566
+ };
567
+ description: string;
568
+ };
569
+ timeout_sec: {
570
+ type: string;
571
+ description: string;
572
+ };
573
+ max_turns: {
574
+ type: string;
575
+ description: string;
576
+ };
577
+ configure_allow_root?: undefined;
578
+ limit?: undefined;
579
+ type?: undefined;
580
+ status?: undefined;
581
+ worktree_name?: undefined;
582
+ run_id?: undefined;
583
+ job_id?: undefined;
584
+ prefer?: undefined;
585
+ include_terminal?: undefined;
586
+ mode?: undefined;
587
+ background?: undefined;
588
+ resume_latest?: undefined;
589
+ constraints?: undefined;
590
+ dirty_policy?: undefined;
591
+ action?: undefined;
592
+ fast?: undefined;
593
+ resume?: undefined;
594
+ session_key?: undefined;
595
+ fork_session?: undefined;
596
+ max_cost_usd?: undefined;
597
+ max_changed_files?: undefined;
598
+ worktreeName?: undefined;
599
+ not_before?: undefined;
600
+ older_than_hours?: undefined;
601
+ dry_run?: undefined;
602
+ worktree_path?: undefined;
603
+ cleanup?: undefined;
604
+ preview?: undefined;
605
+ confirmed_by_user?: undefined;
606
+ };
607
+ };
608
+ } | {
609
+ name: string;
610
+ description: string;
611
+ inputSchema: {
612
+ type: string;
613
+ required: string[];
614
+ properties: {
615
+ task: {
616
+ type: string;
617
+ description: string;
618
+ };
619
+ cwd: {
620
+ type: string;
621
+ description: string;
622
+ };
623
+ files: {
624
+ type: string;
625
+ items: {
626
+ type: string;
627
+ };
628
+ description: string;
629
+ };
630
+ constraints: {
631
+ type: string;
632
+ items: {
633
+ type: string;
634
+ };
635
+ description: string;
636
+ };
637
+ timeout_sec: {
638
+ type: string;
639
+ description: string;
640
+ };
641
+ max_turns: {
642
+ type: string;
643
+ description: string;
644
+ };
645
+ session_key: {
646
+ type: string;
647
+ description: string;
648
+ };
649
+ fork_session: {
650
+ type: string;
651
+ description: string;
652
+ };
653
+ resume_latest: {
654
+ type: string;
655
+ description: string;
656
+ };
657
+ max_cost_usd: {
658
+ type: string;
659
+ description: string;
660
+ };
661
+ max_changed_files: {
662
+ type: string;
663
+ description: string;
664
+ };
665
+ worktreeName: {
666
+ type: string;
667
+ description: string;
668
+ };
669
+ dirty_policy: {
670
+ type: string;
671
+ enum: string[];
672
+ description: string;
673
+ };
674
+ configure_allow_root?: undefined;
675
+ limit?: undefined;
676
+ type?: undefined;
677
+ status?: undefined;
678
+ worktree_name?: undefined;
679
+ run_id?: undefined;
680
+ job_id?: undefined;
681
+ prefer?: undefined;
682
+ include_terminal?: undefined;
683
+ mode?: undefined;
684
+ background?: undefined;
685
+ instruction_files?: undefined;
686
+ diff?: undefined;
687
+ action?: undefined;
688
+ fast?: undefined;
689
+ resume?: undefined;
690
+ not_before?: undefined;
691
+ older_than_hours?: undefined;
692
+ dry_run?: undefined;
693
+ worktree_path?: undefined;
694
+ cleanup?: undefined;
695
+ preview?: undefined;
696
+ confirmed_by_user?: undefined;
697
+ };
698
+ };
699
+ } | {
700
+ name: string;
701
+ description: string;
702
+ inputSchema: {
703
+ type: string;
704
+ required: string[];
705
+ properties: {
706
+ cwd: {
707
+ type: string;
708
+ description: string;
709
+ };
710
+ limit: {
711
+ type: string;
712
+ description: string;
713
+ };
714
+ status: {
715
+ type: string;
716
+ enum: string[];
717
+ description: string;
718
+ };
719
+ type: {
720
+ type: string;
721
+ enum: string[];
722
+ description: string;
723
+ };
724
+ configure_allow_root?: undefined;
725
+ worktree_name?: undefined;
726
+ run_id?: undefined;
727
+ job_id?: undefined;
728
+ prefer?: undefined;
729
+ include_terminal?: undefined;
730
+ task?: undefined;
731
+ mode?: undefined;
732
+ background?: undefined;
733
+ resume_latest?: undefined;
734
+ instruction_files?: undefined;
735
+ files?: undefined;
736
+ constraints?: undefined;
737
+ diff?: undefined;
738
+ timeout_sec?: undefined;
739
+ dirty_policy?: undefined;
740
+ action?: undefined;
741
+ max_turns?: undefined;
742
+ fast?: undefined;
743
+ resume?: undefined;
744
+ session_key?: undefined;
745
+ fork_session?: undefined;
746
+ max_cost_usd?: undefined;
747
+ max_changed_files?: undefined;
748
+ worktreeName?: undefined;
749
+ not_before?: undefined;
750
+ older_than_hours?: undefined;
751
+ dry_run?: undefined;
752
+ worktree_path?: undefined;
753
+ cleanup?: undefined;
754
+ preview?: undefined;
755
+ confirmed_by_user?: undefined;
756
+ };
757
+ };
758
+ } | {
759
+ name: string;
760
+ description: string;
761
+ inputSchema: {
762
+ type: string;
763
+ required: string[];
764
+ properties: {
765
+ cwd: {
766
+ type: string;
767
+ description: string;
768
+ };
769
+ job_id: {
770
+ type: string;
771
+ description: string;
772
+ };
773
+ configure_allow_root?: undefined;
774
+ limit?: undefined;
775
+ type?: undefined;
776
+ status?: undefined;
777
+ worktree_name?: undefined;
778
+ run_id?: undefined;
779
+ prefer?: undefined;
780
+ include_terminal?: undefined;
781
+ task?: undefined;
782
+ mode?: undefined;
783
+ background?: undefined;
784
+ resume_latest?: undefined;
785
+ instruction_files?: undefined;
786
+ files?: undefined;
787
+ constraints?: undefined;
788
+ diff?: undefined;
789
+ timeout_sec?: undefined;
790
+ dirty_policy?: undefined;
791
+ action?: undefined;
792
+ max_turns?: undefined;
793
+ fast?: undefined;
794
+ resume?: undefined;
795
+ session_key?: undefined;
796
+ fork_session?: undefined;
797
+ max_cost_usd?: undefined;
798
+ max_changed_files?: undefined;
799
+ worktreeName?: undefined;
800
+ not_before?: undefined;
801
+ older_than_hours?: undefined;
802
+ dry_run?: undefined;
803
+ worktree_path?: undefined;
804
+ cleanup?: undefined;
805
+ preview?: undefined;
806
+ confirmed_by_user?: undefined;
807
+ };
808
+ };
809
+ } | {
810
+ name: string;
811
+ description: string;
812
+ inputSchema: {
813
+ type: string;
814
+ required: string[];
815
+ properties: {
816
+ cwd: {
817
+ type: string;
818
+ description: string;
819
+ };
820
+ job_id: {
821
+ type: string;
822
+ description: string;
823
+ };
824
+ not_before: {
825
+ type: string;
826
+ description: string;
827
+ };
828
+ configure_allow_root?: undefined;
829
+ limit?: undefined;
830
+ type?: undefined;
831
+ status?: undefined;
832
+ worktree_name?: undefined;
833
+ run_id?: undefined;
834
+ prefer?: undefined;
835
+ include_terminal?: undefined;
836
+ task?: undefined;
837
+ mode?: undefined;
838
+ background?: undefined;
839
+ resume_latest?: undefined;
840
+ instruction_files?: undefined;
841
+ files?: undefined;
842
+ constraints?: undefined;
843
+ diff?: undefined;
844
+ timeout_sec?: undefined;
845
+ dirty_policy?: undefined;
846
+ action?: undefined;
847
+ max_turns?: undefined;
848
+ fast?: undefined;
849
+ resume?: undefined;
850
+ session_key?: undefined;
851
+ fork_session?: undefined;
852
+ max_cost_usd?: undefined;
853
+ max_changed_files?: undefined;
854
+ worktreeName?: undefined;
855
+ older_than_hours?: undefined;
856
+ dry_run?: undefined;
857
+ worktree_path?: undefined;
858
+ cleanup?: undefined;
859
+ preview?: undefined;
860
+ confirmed_by_user?: undefined;
861
+ };
862
+ };
863
+ } | {
864
+ name: string;
865
+ description: string;
866
+ inputSchema: {
867
+ type: string;
868
+ required: string[];
869
+ properties: {
870
+ cwd: {
871
+ type: string;
872
+ description: string;
873
+ };
874
+ older_than_hours: {
875
+ type: string;
876
+ description: string;
877
+ };
878
+ dry_run: {
879
+ type: string;
880
+ description: string;
881
+ };
882
+ limit: {
883
+ type: string;
884
+ description: string;
885
+ };
886
+ configure_allow_root?: undefined;
887
+ type?: undefined;
888
+ status?: undefined;
889
+ worktree_name?: undefined;
890
+ run_id?: undefined;
891
+ job_id?: undefined;
892
+ prefer?: undefined;
893
+ include_terminal?: undefined;
894
+ task?: undefined;
895
+ mode?: undefined;
896
+ background?: undefined;
897
+ resume_latest?: undefined;
898
+ instruction_files?: undefined;
899
+ files?: undefined;
900
+ constraints?: undefined;
901
+ diff?: undefined;
902
+ timeout_sec?: undefined;
903
+ dirty_policy?: undefined;
904
+ action?: undefined;
905
+ max_turns?: undefined;
906
+ fast?: undefined;
907
+ resume?: undefined;
908
+ session_key?: undefined;
909
+ fork_session?: undefined;
910
+ max_cost_usd?: undefined;
911
+ max_changed_files?: undefined;
912
+ worktreeName?: undefined;
913
+ not_before?: undefined;
914
+ worktree_path?: undefined;
915
+ cleanup?: undefined;
916
+ preview?: undefined;
917
+ confirmed_by_user?: undefined;
918
+ };
919
+ };
920
+ } | {
921
+ name: string;
922
+ description: string;
923
+ inputSchema: {
924
+ type: string;
925
+ required: string[];
926
+ properties: {
927
+ cwd: {
928
+ type: string;
929
+ description: string;
930
+ };
931
+ worktree_path: {
932
+ type: string;
933
+ description: string;
934
+ };
935
+ cleanup: {
936
+ type: string;
937
+ description: string;
938
+ };
939
+ preview: {
940
+ type: string;
941
+ description: string;
942
+ };
943
+ background: {
944
+ type: string;
945
+ description: string;
946
+ };
947
+ confirmed_by_user: {
948
+ type: string;
949
+ description: string;
950
+ };
951
+ configure_allow_root?: undefined;
952
+ limit?: undefined;
953
+ type?: undefined;
954
+ status?: undefined;
955
+ worktree_name?: undefined;
956
+ run_id?: undefined;
957
+ job_id?: undefined;
958
+ prefer?: undefined;
959
+ include_terminal?: undefined;
960
+ task?: undefined;
961
+ mode?: undefined;
962
+ resume_latest?: undefined;
963
+ instruction_files?: undefined;
964
+ files?: undefined;
965
+ constraints?: undefined;
966
+ diff?: undefined;
967
+ timeout_sec?: undefined;
968
+ dirty_policy?: undefined;
969
+ action?: undefined;
970
+ max_turns?: undefined;
971
+ fast?: undefined;
972
+ resume?: undefined;
973
+ session_key?: undefined;
974
+ fork_session?: undefined;
975
+ max_cost_usd?: undefined;
976
+ max_changed_files?: undefined;
977
+ worktreeName?: undefined;
978
+ not_before?: undefined;
979
+ older_than_hours?: undefined;
980
+ dry_run?: undefined;
981
+ };
982
+ };
983
+ } | {
984
+ name: string;
985
+ description: string;
986
+ inputSchema: {
987
+ type: string;
988
+ required: string[];
989
+ properties: {
990
+ cwd: {
991
+ type: string;
992
+ description: string;
993
+ };
994
+ older_than_hours: {
995
+ type: string;
996
+ description: string;
997
+ };
998
+ dry_run: {
999
+ type: string;
1000
+ description: string;
1001
+ };
1002
+ background: {
1003
+ type: string;
1004
+ description: string;
1005
+ };
1006
+ configure_allow_root?: undefined;
1007
+ limit?: undefined;
1008
+ type?: undefined;
1009
+ status?: undefined;
1010
+ worktree_name?: undefined;
1011
+ run_id?: undefined;
1012
+ job_id?: undefined;
1013
+ prefer?: undefined;
1014
+ include_terminal?: undefined;
1015
+ task?: undefined;
1016
+ mode?: undefined;
1017
+ resume_latest?: undefined;
1018
+ instruction_files?: undefined;
1019
+ files?: undefined;
1020
+ constraints?: undefined;
1021
+ diff?: undefined;
1022
+ timeout_sec?: undefined;
1023
+ dirty_policy?: undefined;
1024
+ action?: undefined;
1025
+ max_turns?: undefined;
1026
+ fast?: undefined;
1027
+ resume?: undefined;
1028
+ session_key?: undefined;
1029
+ fork_session?: undefined;
1030
+ max_cost_usd?: undefined;
1031
+ max_changed_files?: undefined;
1032
+ worktreeName?: undefined;
1033
+ not_before?: undefined;
1034
+ worktree_path?: undefined;
1035
+ cleanup?: undefined;
1036
+ preview?: undefined;
1037
+ confirmed_by_user?: undefined;
1038
+ };
1039
+ };
1040
+ })[];
1041
+ export declare function registerToolDefinitions(server: Server): void;
1042
+ export declare function handleToolCall(name: string, args: unknown, runId?: `${string}-${string}-${string}-${string}-${string}`): Promise<{
1043
+ [x: string]: unknown;
1044
+ content: ({
1045
+ type: "text";
1046
+ text: string;
1047
+ annotations?: {
1048
+ audience?: ("user" | "assistant")[] | undefined;
1049
+ priority?: number | undefined;
1050
+ lastModified?: string | undefined;
1051
+ } | undefined;
1052
+ _meta?: {
1053
+ [x: string]: unknown;
1054
+ } | undefined;
1055
+ } | {
1056
+ type: "image";
1057
+ data: string;
1058
+ mimeType: string;
1059
+ annotations?: {
1060
+ audience?: ("user" | "assistant")[] | undefined;
1061
+ priority?: number | undefined;
1062
+ lastModified?: string | undefined;
1063
+ } | undefined;
1064
+ _meta?: {
1065
+ [x: string]: unknown;
1066
+ } | undefined;
1067
+ } | {
1068
+ type: "audio";
1069
+ data: string;
1070
+ mimeType: string;
1071
+ annotations?: {
1072
+ audience?: ("user" | "assistant")[] | undefined;
1073
+ priority?: number | undefined;
1074
+ lastModified?: string | undefined;
1075
+ } | undefined;
1076
+ _meta?: {
1077
+ [x: string]: unknown;
1078
+ } | undefined;
1079
+ } | {
1080
+ uri: string;
1081
+ name: string;
1082
+ type: "resource_link";
1083
+ description?: string | undefined;
1084
+ mimeType?: string | undefined;
1085
+ size?: number | undefined;
1086
+ annotations?: {
1087
+ audience?: ("user" | "assistant")[] | undefined;
1088
+ priority?: number | undefined;
1089
+ lastModified?: string | undefined;
1090
+ } | undefined;
1091
+ _meta?: {
1092
+ [x: string]: unknown;
1093
+ } | undefined;
1094
+ icons?: {
1095
+ src: string;
1096
+ mimeType?: string | undefined;
1097
+ sizes?: string[] | undefined;
1098
+ theme?: "light" | "dark" | undefined;
1099
+ }[] | undefined;
1100
+ title?: string | undefined;
1101
+ } | {
1102
+ type: "resource";
1103
+ resource: {
1104
+ uri: string;
1105
+ text: string;
1106
+ mimeType?: string | undefined;
1107
+ _meta?: {
1108
+ [x: string]: unknown;
1109
+ } | undefined;
1110
+ } | {
1111
+ uri: string;
1112
+ blob: string;
1113
+ mimeType?: string | undefined;
1114
+ _meta?: {
1115
+ [x: string]: unknown;
1116
+ } | undefined;
1117
+ };
1118
+ annotations?: {
1119
+ audience?: ("user" | "assistant")[] | undefined;
1120
+ priority?: number | undefined;
1121
+ lastModified?: string | undefined;
1122
+ } | undefined;
1123
+ _meta?: {
1124
+ [x: string]: unknown;
1125
+ } | undefined;
1126
+ })[];
1127
+ _meta?: {
1128
+ [x: string]: unknown;
1129
+ progressToken?: string | number | undefined;
1130
+ "io.modelcontextprotocol/related-task"?: {
1131
+ taskId: string;
1132
+ } | undefined;
1133
+ } | undefined;
1134
+ structuredContent?: {
1135
+ [x: string]: unknown;
1136
+ } | undefined;
1137
+ isError?: boolean | undefined;
1138
+ }>;
1139
+ export declare function registerToolHandlers(server: Server): void;
1140
+ export declare function createServer(): Promise<Server>;
1141
+ export declare function main(): Promise<void>;
1142
+ export { main as startServer };