@anhlp/alp-runtime 0.0.0-stage → 0.0.1-beta.4

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 (109) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +7 -0
  3. package/README.md +6 -2
  4. package/dist/acp-transport.d.ts +130 -0
  5. package/dist/acp-transport.js +511 -0
  6. package/dist/antigravity-transport.d.ts +82 -0
  7. package/dist/antigravity-transport.js +619 -0
  8. package/dist/assignment-results.d.ts +18 -0
  9. package/dist/assignment-results.js +77 -0
  10. package/dist/attachments.d.ts +84 -0
  11. package/dist/attachments.js +213 -0
  12. package/dist/board-domain.d.ts +56 -0
  13. package/dist/board-domain.js +157 -0
  14. package/dist/board.d.ts +21 -0
  15. package/dist/board.js +69 -0
  16. package/dist/catalog.d.ts +31 -0
  17. package/dist/catalog.js +38 -0
  18. package/dist/claude-transport.d.ts +202 -0
  19. package/dist/claude-transport.js +817 -0
  20. package/dist/configure.d.ts +44 -0
  21. package/dist/configure.js +64 -0
  22. package/dist/contracts.d.ts +327 -0
  23. package/dist/contracts.js +16 -0
  24. package/dist/conversation.d.ts +45 -0
  25. package/dist/conversation.js +62 -0
  26. package/dist/events.d.ts +1 -0
  27. package/dist/events.js +0 -0
  28. package/dist/github.d.ts +10 -0
  29. package/dist/github.js +39 -0
  30. package/dist/handoff.d.ts +36 -0
  31. package/dist/handoff.js +73 -0
  32. package/dist/index.d.ts +30 -0
  33. package/dist/index.js +87 -0
  34. package/dist/language.d.ts +41 -0
  35. package/dist/language.js +68 -0
  36. package/dist/live.d.ts +48 -0
  37. package/dist/live.js +45 -0
  38. package/dist/mailbox.d.ts +26 -0
  39. package/dist/mailbox.js +38 -0
  40. package/dist/mcp-tools.d.ts +115 -0
  41. package/dist/mcp-tools.js +71 -0
  42. package/dist/permission-path.d.ts +2 -0
  43. package/dist/permission-path.js +44 -0
  44. package/dist/process-info.d.ts +14 -0
  45. package/dist/process-info.js +32 -0
  46. package/dist/providers.d.ts +28 -0
  47. package/dist/providers.js +71 -0
  48. package/dist/recall.d.ts +42 -0
  49. package/dist/recall.js +60 -0
  50. package/dist/resolve.d.ts +121 -0
  51. package/dist/resolve.js +238 -0
  52. package/dist/runtime-context.d.ts +43 -0
  53. package/dist/runtime-context.js +61 -0
  54. package/dist/runtime.d.ts +11 -0
  55. package/dist/runtime.js +3976 -0
  56. package/dist/session-config.d.ts +2102 -0
  57. package/dist/session-config.js +205 -0
  58. package/dist/session-state.d.ts +166 -0
  59. package/dist/session-state.js +0 -0
  60. package/dist/tool-detail.d.ts +81 -0
  61. package/dist/tool-detail.js +332 -0
  62. package/dist/tool-results.d.ts +12 -0
  63. package/dist/tool-results.js +25 -0
  64. package/dist/tools.d.ts +719 -0
  65. package/dist/tools.js +396 -0
  66. package/dist/transport.d.ts +47 -0
  67. package/dist/transport.js +169 -0
  68. package/dist/usage.d.ts +25 -0
  69. package/dist/usage.js +60 -0
  70. package/dist/workspace.d.ts +101 -0
  71. package/dist/workspace.js +259 -0
  72. package/dist/worktree-domain.d.ts +89 -0
  73. package/dist/worktree-domain.js +199 -0
  74. package/package.json +262 -4
  75. package/src/acp-transport.ts +508 -0
  76. package/src/antigravity-transport.ts +667 -0
  77. package/src/assignment-results.ts +64 -0
  78. package/src/attachments.ts +254 -0
  79. package/src/board-domain.ts +185 -0
  80. package/src/board.ts +80 -0
  81. package/src/catalog.ts +32 -0
  82. package/src/claude-transport.ts +938 -0
  83. package/src/configure.ts +93 -0
  84. package/src/contracts.ts +318 -0
  85. package/src/conversation.ts +81 -0
  86. package/src/events.ts +1 -0
  87. package/src/github.ts +37 -0
  88. package/src/handoff.ts +86 -0
  89. package/src/index.ts +32 -0
  90. package/src/language.ts +102 -0
  91. package/src/live.ts +86 -0
  92. package/src/mailbox.ts +49 -0
  93. package/src/mcp-tools.ts +73 -0
  94. package/src/permission-path.ts +37 -0
  95. package/src/process-info.ts +40 -0
  96. package/src/providers.ts +84 -0
  97. package/src/recall.ts +85 -0
  98. package/src/resolve.ts +230 -0
  99. package/src/runtime-context.ts +49 -0
  100. package/src/runtime.ts +4691 -0
  101. package/src/session-config.ts +304 -0
  102. package/src/session-state.ts +164 -0
  103. package/src/tool-detail.ts +397 -0
  104. package/src/tool-results.ts +26 -0
  105. package/src/tools.ts +397 -0
  106. package/src/transport.ts +116 -0
  107. package/src/usage.ts +79 -0
  108. package/src/workspace.ts +318 -0
  109. package/src/worktree-domain.ts +220 -0
@@ -0,0 +1,2102 @@
1
+ import { type PermissionProfile } from '@anhlp/alp-core/permissions';
2
+ import type { ResolvedSession, RuntimeKind } from './resolve.js';
3
+ /** The mode the native harness runs with: a session in a copy writes the copy, though ALP treats it as read-only. */
4
+ export declare const nativeMode: (mapping: Pick<ResolvedSession, "mode" | "copy"> & Partial<Pick<ResolvedSession, "runtimeKind" | "antigravity">>) => string;
5
+ /** The OS sandbox ALP puts a Claude session's Bash in: its profile's base, or the copy it works in. */
6
+ export declare function claudeFloor(mapping: Pick<ResolvedSession, 'mode' | 'copy' | 'permissions' | 'runtimeKind'>): 'read-only' | 'workspace-write' | undefined;
7
+ /**
8
+ * Codex runs commands inside its sandbox without asking. With 'on-request' it
9
+ * asks ALP before a command leaves the sandbox, which an allow rule permits;
10
+ * with 'untrusted' it asks before every command, which a full-access session
11
+ * with deny rules needs. Without Bash rules nothing changes: Codex never asks.
12
+ */
13
+ export declare function codexApproval(mapping: Pick<ResolvedSession, 'mode' | 'permissions'>): "never" | "untrusted" | "on-request";
14
+ /** What the session's permission profile adds to its mode, for its instructions. */
15
+ export declare function permissionNote(mapping: Pick<ResolvedSession, 'mode' | 'permissions' | 'runtimeKind' | 'copy' | 'workdir' | 'copyOf' | 'antigravity'>): string[];
16
+ /** The profiles of a coordinator's targets that change what it may expect of them. */
17
+ export declare function targetNote(profiles: Record<string, PermissionProfile | null>): string[];
18
+ /** Model and effort choices available when assigning work to a configured agent. */
19
+ export declare function modelProfileNote(mapping: ResolvedSession, targets: string[]): string[];
20
+ /** The efforts a runtime-prefixed model takes; none for a model ALP does not know. */
21
+ export declare function profileEfforts(id: string): string[];
22
+ /**
23
+ * Explicit autocompact: Claude's native window or Codex's token limit. The older
24
+ * context setting still scales Codex's window by COMPACT_SHARE (ALPD §57).
25
+ */
26
+ export declare function contextConfig(runtimeKind: RuntimeKind, mapping: ResolvedSession): {
27
+ context: number;
28
+ config?: undefined;
29
+ } | {
30
+ config: {
31
+ model_auto_compact_token_limit: number;
32
+ };
33
+ context?: undefined;
34
+ } | {
35
+ context?: undefined;
36
+ config?: undefined;
37
+ };
38
+ /** The agent's skills for Claude, which loads them as its own (ALPD §59); Codex reads them from the instructions. */
39
+ export declare function skillConfig(runtimeKind: RuntimeKind, mapping: ResolvedSession): {
40
+ skills?: Array<{
41
+ name: string;
42
+ path: string;
43
+ }>;
44
+ };
45
+ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: ResolvedSession, targets: string[], parentAgent?: string, role?: 'supervisor', supervised?: boolean, lessonFiles?: string[], targetProfiles?: Record<string, PermissionProfile | null>): {
46
+ developerInstructions: string;
47
+ mcpServers: Record<string, unknown>;
48
+ thinking: string;
49
+ /**
50
+ * ALP owns multi-agent orchestration.
51
+ *
52
+ * The adapter must disable/bypass the harness' native agent spawning
53
+ * while preserving all other native Codex capabilities.
54
+ */
55
+ nativeMultiAgent: boolean;
56
+ dynamicTools: ({
57
+ type: string;
58
+ name: string;
59
+ description: string;
60
+ inputSchema: {
61
+ type: string;
62
+ properties: {
63
+ outcome: {
64
+ type: string;
65
+ enum: readonly ["complete", "partial", "blocked", "reconsider"];
66
+ description: string;
67
+ };
68
+ summary: {
69
+ type: string;
70
+ description: string;
71
+ };
72
+ candidate: {
73
+ type: string;
74
+ items: {
75
+ type: string;
76
+ };
77
+ description: string;
78
+ };
79
+ scope: {
80
+ type: string;
81
+ items: {
82
+ type: string;
83
+ };
84
+ description: string;
85
+ };
86
+ verification: {
87
+ type: string;
88
+ items: {
89
+ type: string;
90
+ };
91
+ description: string;
92
+ };
93
+ risks: {
94
+ type: string;
95
+ items: {
96
+ type: string;
97
+ };
98
+ description: string;
99
+ };
100
+ discovered: {
101
+ type: string;
102
+ items: {
103
+ type: string;
104
+ };
105
+ description: string;
106
+ };
107
+ ownership: {
108
+ type: string;
109
+ description: string;
110
+ };
111
+ verdict: {
112
+ type: string;
113
+ description: string;
114
+ properties: {
115
+ result: {
116
+ type: string;
117
+ enum: readonly ["pass", "pass_with_findings", "fail", "blocked"];
118
+ };
119
+ criteria: {
120
+ type: string;
121
+ items: {
122
+ type: string;
123
+ properties: {
124
+ criterion: {
125
+ type: string;
126
+ description: string;
127
+ };
128
+ result: {
129
+ type: string;
130
+ enum: readonly ["pass", "fail", "not_checked"];
131
+ };
132
+ evidence: {
133
+ type: string;
134
+ description: string;
135
+ };
136
+ };
137
+ required: string[];
138
+ additionalProperties: boolean;
139
+ };
140
+ };
141
+ findings: {
142
+ type: string;
143
+ items: {
144
+ type: string;
145
+ properties: {
146
+ severity: {
147
+ type: string;
148
+ enum: readonly ["critical", "high", "medium", "low"];
149
+ description: string;
150
+ };
151
+ where: {
152
+ type: string;
153
+ description: string;
154
+ };
155
+ problem: {
156
+ type: string;
157
+ description: string;
158
+ };
159
+ fix: {
160
+ type: string;
161
+ description: string;
162
+ };
163
+ };
164
+ required: string[];
165
+ additionalProperties: boolean;
166
+ };
167
+ };
168
+ };
169
+ required: string[];
170
+ additionalProperties: boolean;
171
+ };
172
+ };
173
+ required: string[];
174
+ additionalProperties: boolean;
175
+ };
176
+ } | {
177
+ type: string;
178
+ name: string;
179
+ description: string;
180
+ inputSchema: {
181
+ type: string;
182
+ properties: {
183
+ assignments: {
184
+ type: string;
185
+ items: {
186
+ type: string;
187
+ };
188
+ description: string;
189
+ };
190
+ timeoutMs: {
191
+ type: string;
192
+ description: string;
193
+ };
194
+ };
195
+ additionalProperties: boolean;
196
+ };
197
+ } | {
198
+ type: string;
199
+ name: string;
200
+ description: string;
201
+ inputSchema: {
202
+ type: string;
203
+ properties: {
204
+ to: {
205
+ type: string;
206
+ description: string;
207
+ };
208
+ kind: {
209
+ type: string;
210
+ enum: string[];
211
+ description: string;
212
+ };
213
+ body: {
214
+ type: string;
215
+ };
216
+ replyTo: {
217
+ type: string;
218
+ description: string;
219
+ };
220
+ };
221
+ required: string[];
222
+ additionalProperties: boolean;
223
+ };
224
+ } | {
225
+ type: string;
226
+ name: string;
227
+ description: string;
228
+ inputSchema: {
229
+ type: string;
230
+ properties: {
231
+ taskId: {
232
+ type: string;
233
+ description: string;
234
+ };
235
+ };
236
+ additionalProperties: boolean;
237
+ };
238
+ } | {
239
+ type: string;
240
+ name: string;
241
+ description: string;
242
+ inputSchema: {
243
+ type: string;
244
+ properties: {
245
+ assignmentId: {
246
+ type: string;
247
+ };
248
+ };
249
+ required: string[];
250
+ additionalProperties: boolean;
251
+ };
252
+ } | {
253
+ type: string;
254
+ name: string;
255
+ description: string;
256
+ inputSchema: {
257
+ type: string;
258
+ properties: {
259
+ kind: {
260
+ type: string;
261
+ enum: readonly ["claim", "decision", "finding"];
262
+ };
263
+ body: {
264
+ type: string;
265
+ description: string;
266
+ };
267
+ paths: {
268
+ type: string;
269
+ items: {
270
+ type: string;
271
+ };
272
+ description: string;
273
+ };
274
+ };
275
+ required: string[];
276
+ additionalProperties: boolean;
277
+ };
278
+ } | {
279
+ type: string;
280
+ name: string;
281
+ description: string;
282
+ inputSchema: {
283
+ type: string;
284
+ properties: {
285
+ kinds: {
286
+ type: string;
287
+ items: {
288
+ type: string;
289
+ enum: readonly ["claim", "decision", "finding"];
290
+ };
291
+ };
292
+ limit: {
293
+ type: string;
294
+ description: string;
295
+ };
296
+ };
297
+ additionalProperties: boolean;
298
+ };
299
+ } | {
300
+ type: string;
301
+ name: string;
302
+ description: string;
303
+ inputSchema: {
304
+ type: string;
305
+ properties: {
306
+ pinId: {
307
+ type: string;
308
+ };
309
+ };
310
+ required: string[];
311
+ additionalProperties: boolean;
312
+ };
313
+ } | {
314
+ type: string;
315
+ name: string;
316
+ description: string;
317
+ inputSchema: {
318
+ type: string;
319
+ properties: {
320
+ question: {
321
+ type: string;
322
+ };
323
+ to: {
324
+ type: string;
325
+ enum: string[];
326
+ description: string;
327
+ };
328
+ options: {
329
+ type: string;
330
+ items: {
331
+ type: string;
332
+ };
333
+ description: string;
334
+ };
335
+ };
336
+ required: string[];
337
+ additionalProperties: boolean;
338
+ };
339
+ } | {
340
+ type: string;
341
+ name: string;
342
+ description: string;
343
+ inputSchema: {
344
+ type: string;
345
+ properties: {
346
+ scope: {
347
+ type: string;
348
+ enum: string[];
349
+ };
350
+ lesson: {
351
+ type: string;
352
+ description: string;
353
+ };
354
+ };
355
+ required: string[];
356
+ additionalProperties: boolean;
357
+ };
358
+ } | {
359
+ type: string;
360
+ name: string;
361
+ description: string;
362
+ inputSchema: {
363
+ type: string;
364
+ properties: {
365
+ name: {
366
+ type: string;
367
+ description: string;
368
+ };
369
+ description: {
370
+ type: string;
371
+ description: string;
372
+ };
373
+ body: {
374
+ type: string;
375
+ description: string;
376
+ };
377
+ roles: {
378
+ type: string;
379
+ items: {
380
+ type: string;
381
+ };
382
+ description: string;
383
+ };
384
+ lessons: {
385
+ type: string;
386
+ items: {
387
+ type: string;
388
+ };
389
+ description: string;
390
+ };
391
+ replace: {
392
+ type: string;
393
+ description: string;
394
+ };
395
+ requestId: {
396
+ type: string;
397
+ description: string;
398
+ };
399
+ };
400
+ required: string[];
401
+ additionalProperties: boolean;
402
+ };
403
+ } | {
404
+ type: string;
405
+ name: string;
406
+ description: string;
407
+ inputSchema: {
408
+ type: string;
409
+ properties: {
410
+ action: {
411
+ type: string;
412
+ enum: string[];
413
+ };
414
+ target: {
415
+ type: string;
416
+ enum: string[];
417
+ };
418
+ query: {
419
+ type: string;
420
+ description: string;
421
+ };
422
+ title: {
423
+ type: string;
424
+ description: string;
425
+ };
426
+ body: {
427
+ type: string;
428
+ description: string;
429
+ };
430
+ issue: {
431
+ type: string;
432
+ description: string;
433
+ };
434
+ requestId: {
435
+ type: string;
436
+ description: string;
437
+ };
438
+ labels: {
439
+ type: string;
440
+ items: {
441
+ type: string;
442
+ };
443
+ description: string;
444
+ };
445
+ };
446
+ required: string[];
447
+ additionalProperties: boolean;
448
+ };
449
+ } | {
450
+ type: string;
451
+ name: string;
452
+ description: string;
453
+ inputSchema: {
454
+ type: string;
455
+ properties: {
456
+ limit?: {
457
+ type: string;
458
+ description: string;
459
+ } | undefined;
460
+ status?: {
461
+ type: string;
462
+ enum: import("@anhlp/alp-core/tasks").TaskStatus[];
463
+ description: string;
464
+ } | undefined;
465
+ label?: {
466
+ type: string;
467
+ description: string;
468
+ } | undefined;
469
+ title?: {
470
+ type: string;
471
+ description: string;
472
+ } | undefined;
473
+ description?: {
474
+ type: string;
475
+ description: string;
476
+ } | undefined;
477
+ type?: {
478
+ type: string;
479
+ enum: import("@anhlp/alp-core/tasks").TaskType[];
480
+ } | undefined;
481
+ priority?: {
482
+ type: string;
483
+ description: string;
484
+ } | undefined;
485
+ labels?: {
486
+ type: string;
487
+ items: {
488
+ type: string;
489
+ };
490
+ } | undefined;
491
+ paths?: {
492
+ type: string;
493
+ items: {
494
+ type: string;
495
+ };
496
+ description: string;
497
+ } | undefined;
498
+ parent?: {
499
+ type: string;
500
+ description: string;
501
+ } | undefined;
502
+ blockedBy?: {
503
+ type: string;
504
+ items: {
505
+ type: string;
506
+ };
507
+ description: string;
508
+ } | undefined;
509
+ discoveredFrom?: {
510
+ type: string;
511
+ description: string;
512
+ } | undefined;
513
+ add?: {
514
+ type: string;
515
+ description: string;
516
+ properties: {
517
+ blockedBy: {
518
+ type: string;
519
+ items: {
520
+ type: string;
521
+ };
522
+ description: string;
523
+ };
524
+ related: {
525
+ type: string;
526
+ items: {
527
+ type: string;
528
+ };
529
+ };
530
+ parent: {
531
+ type: string;
532
+ description: string;
533
+ };
534
+ };
535
+ additionalProperties: boolean;
536
+ } | undefined;
537
+ remove?: {
538
+ type: string;
539
+ description: string;
540
+ properties: {
541
+ blockedBy: {
542
+ type: string;
543
+ items: {
544
+ type: string;
545
+ };
546
+ description: string;
547
+ };
548
+ related: {
549
+ type: string;
550
+ items: {
551
+ type: string;
552
+ };
553
+ };
554
+ parent: {
555
+ type: string;
556
+ description: string;
557
+ };
558
+ };
559
+ additionalProperties: boolean;
560
+ } | undefined;
561
+ reason?: {
562
+ type: string;
563
+ enum: import("@anhlp/alp-core/tasks").CloseReason[];
564
+ description: string;
565
+ } | undefined;
566
+ kind?: {
567
+ type: string;
568
+ enum: import("@anhlp/alp-core/tasks").GateKind[];
569
+ description: string;
570
+ } | undefined;
571
+ until?: {
572
+ type: string;
573
+ description: string;
574
+ } | undefined;
575
+ ref?: {
576
+ type: string;
577
+ description: string;
578
+ } | undefined;
579
+ gate?: {
580
+ type: string;
581
+ description: string;
582
+ } | undefined;
583
+ formula?: {
584
+ type: string;
585
+ description: string;
586
+ } | undefined;
587
+ vars?: {
588
+ type: string;
589
+ additionalProperties: {
590
+ type: string;
591
+ };
592
+ description: string;
593
+ } | undefined;
594
+ summary?: {
595
+ type: string;
596
+ description: string;
597
+ } | undefined;
598
+ unverified?: {
599
+ type: string;
600
+ description: string;
601
+ } | undefined;
602
+ note?: {
603
+ type: string;
604
+ description: string;
605
+ } | undefined;
606
+ action: {
607
+ type: string;
608
+ enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
609
+ };
610
+ id: {
611
+ type: string;
612
+ description: string;
613
+ };
614
+ };
615
+ required: string[];
616
+ additionalProperties: boolean;
617
+ };
618
+ } | {
619
+ type: string;
620
+ name: string;
621
+ description: string;
622
+ inputSchema: {
623
+ type: string;
624
+ properties: {
625
+ action: {
626
+ type: string;
627
+ enum: string[];
628
+ };
629
+ dueAt: {
630
+ type: string;
631
+ description: string;
632
+ };
633
+ prompt: {
634
+ type: string;
635
+ description: string;
636
+ };
637
+ requestId: {
638
+ type: string;
639
+ description: string;
640
+ };
641
+ id: {
642
+ type: string;
643
+ description: string;
644
+ };
645
+ status: {
646
+ type: string;
647
+ enum: string[];
648
+ };
649
+ };
650
+ required: string[];
651
+ additionalProperties: boolean;
652
+ };
653
+ } | {
654
+ type: string;
655
+ name: string;
656
+ description: string;
657
+ inputSchema: {
658
+ type: string;
659
+ properties: {
660
+ taskId?: {
661
+ type: string;
662
+ description: string;
663
+ } | undefined;
664
+ agent: {
665
+ type: string;
666
+ enum: string[];
667
+ };
668
+ task: {
669
+ type: string;
670
+ description: string;
671
+ };
672
+ model: {
673
+ type: string;
674
+ description: string;
675
+ };
676
+ thinking: {
677
+ type: string;
678
+ description: string;
679
+ };
680
+ modelReason: {
681
+ type: string;
682
+ description: string;
683
+ };
684
+ mode: {
685
+ type: string;
686
+ enum: string[];
687
+ description: string;
688
+ };
689
+ isolation: {
690
+ type: string;
691
+ enum: string[];
692
+ description: string;
693
+ };
694
+ writeRoot: {
695
+ type: string;
696
+ description: string;
697
+ };
698
+ continueFrom: {
699
+ type: string;
700
+ description: string;
701
+ };
702
+ wait: {
703
+ type: string;
704
+ description: string;
705
+ };
706
+ etaMinutes: {
707
+ type: string;
708
+ minimum: number;
709
+ maximum: number;
710
+ description: string;
711
+ };
712
+ };
713
+ required: string[];
714
+ additionalProperties: boolean;
715
+ };
716
+ })[];
717
+ floor?: "workspace-write" | "read-only" | undefined;
718
+ permissions?: PermissionProfile | null | undefined;
719
+ skills?: Array<{
720
+ name: string;
721
+ path: string;
722
+ }>;
723
+ context: number;
724
+ config?: undefined;
725
+ runtime: RuntimeKind;
726
+ cwd: string;
727
+ model: any;
728
+ sandbox: string;
729
+ approvalPolicy: string;
730
+ } | {
731
+ developerInstructions: string;
732
+ mcpServers: Record<string, unknown>;
733
+ thinking: string;
734
+ /**
735
+ * ALP owns multi-agent orchestration.
736
+ *
737
+ * The adapter must disable/bypass the harness' native agent spawning
738
+ * while preserving all other native Codex capabilities.
739
+ */
740
+ nativeMultiAgent: boolean;
741
+ dynamicTools: ({
742
+ type: string;
743
+ name: string;
744
+ description: string;
745
+ inputSchema: {
746
+ type: string;
747
+ properties: {
748
+ outcome: {
749
+ type: string;
750
+ enum: readonly ["complete", "partial", "blocked", "reconsider"];
751
+ description: string;
752
+ };
753
+ summary: {
754
+ type: string;
755
+ description: string;
756
+ };
757
+ candidate: {
758
+ type: string;
759
+ items: {
760
+ type: string;
761
+ };
762
+ description: string;
763
+ };
764
+ scope: {
765
+ type: string;
766
+ items: {
767
+ type: string;
768
+ };
769
+ description: string;
770
+ };
771
+ verification: {
772
+ type: string;
773
+ items: {
774
+ type: string;
775
+ };
776
+ description: string;
777
+ };
778
+ risks: {
779
+ type: string;
780
+ items: {
781
+ type: string;
782
+ };
783
+ description: string;
784
+ };
785
+ discovered: {
786
+ type: string;
787
+ items: {
788
+ type: string;
789
+ };
790
+ description: string;
791
+ };
792
+ ownership: {
793
+ type: string;
794
+ description: string;
795
+ };
796
+ verdict: {
797
+ type: string;
798
+ description: string;
799
+ properties: {
800
+ result: {
801
+ type: string;
802
+ enum: readonly ["pass", "pass_with_findings", "fail", "blocked"];
803
+ };
804
+ criteria: {
805
+ type: string;
806
+ items: {
807
+ type: string;
808
+ properties: {
809
+ criterion: {
810
+ type: string;
811
+ description: string;
812
+ };
813
+ result: {
814
+ type: string;
815
+ enum: readonly ["pass", "fail", "not_checked"];
816
+ };
817
+ evidence: {
818
+ type: string;
819
+ description: string;
820
+ };
821
+ };
822
+ required: string[];
823
+ additionalProperties: boolean;
824
+ };
825
+ };
826
+ findings: {
827
+ type: string;
828
+ items: {
829
+ type: string;
830
+ properties: {
831
+ severity: {
832
+ type: string;
833
+ enum: readonly ["critical", "high", "medium", "low"];
834
+ description: string;
835
+ };
836
+ where: {
837
+ type: string;
838
+ description: string;
839
+ };
840
+ problem: {
841
+ type: string;
842
+ description: string;
843
+ };
844
+ fix: {
845
+ type: string;
846
+ description: string;
847
+ };
848
+ };
849
+ required: string[];
850
+ additionalProperties: boolean;
851
+ };
852
+ };
853
+ };
854
+ required: string[];
855
+ additionalProperties: boolean;
856
+ };
857
+ };
858
+ required: string[];
859
+ additionalProperties: boolean;
860
+ };
861
+ } | {
862
+ type: string;
863
+ name: string;
864
+ description: string;
865
+ inputSchema: {
866
+ type: string;
867
+ properties: {
868
+ assignments: {
869
+ type: string;
870
+ items: {
871
+ type: string;
872
+ };
873
+ description: string;
874
+ };
875
+ timeoutMs: {
876
+ type: string;
877
+ description: string;
878
+ };
879
+ };
880
+ additionalProperties: boolean;
881
+ };
882
+ } | {
883
+ type: string;
884
+ name: string;
885
+ description: string;
886
+ inputSchema: {
887
+ type: string;
888
+ properties: {
889
+ to: {
890
+ type: string;
891
+ description: string;
892
+ };
893
+ kind: {
894
+ type: string;
895
+ enum: string[];
896
+ description: string;
897
+ };
898
+ body: {
899
+ type: string;
900
+ };
901
+ replyTo: {
902
+ type: string;
903
+ description: string;
904
+ };
905
+ };
906
+ required: string[];
907
+ additionalProperties: boolean;
908
+ };
909
+ } | {
910
+ type: string;
911
+ name: string;
912
+ description: string;
913
+ inputSchema: {
914
+ type: string;
915
+ properties: {
916
+ taskId: {
917
+ type: string;
918
+ description: string;
919
+ };
920
+ };
921
+ additionalProperties: boolean;
922
+ };
923
+ } | {
924
+ type: string;
925
+ name: string;
926
+ description: string;
927
+ inputSchema: {
928
+ type: string;
929
+ properties: {
930
+ assignmentId: {
931
+ type: string;
932
+ };
933
+ };
934
+ required: string[];
935
+ additionalProperties: boolean;
936
+ };
937
+ } | {
938
+ type: string;
939
+ name: string;
940
+ description: string;
941
+ inputSchema: {
942
+ type: string;
943
+ properties: {
944
+ kind: {
945
+ type: string;
946
+ enum: readonly ["claim", "decision", "finding"];
947
+ };
948
+ body: {
949
+ type: string;
950
+ description: string;
951
+ };
952
+ paths: {
953
+ type: string;
954
+ items: {
955
+ type: string;
956
+ };
957
+ description: string;
958
+ };
959
+ };
960
+ required: string[];
961
+ additionalProperties: boolean;
962
+ };
963
+ } | {
964
+ type: string;
965
+ name: string;
966
+ description: string;
967
+ inputSchema: {
968
+ type: string;
969
+ properties: {
970
+ kinds: {
971
+ type: string;
972
+ items: {
973
+ type: string;
974
+ enum: readonly ["claim", "decision", "finding"];
975
+ };
976
+ };
977
+ limit: {
978
+ type: string;
979
+ description: string;
980
+ };
981
+ };
982
+ additionalProperties: boolean;
983
+ };
984
+ } | {
985
+ type: string;
986
+ name: string;
987
+ description: string;
988
+ inputSchema: {
989
+ type: string;
990
+ properties: {
991
+ pinId: {
992
+ type: string;
993
+ };
994
+ };
995
+ required: string[];
996
+ additionalProperties: boolean;
997
+ };
998
+ } | {
999
+ type: string;
1000
+ name: string;
1001
+ description: string;
1002
+ inputSchema: {
1003
+ type: string;
1004
+ properties: {
1005
+ question: {
1006
+ type: string;
1007
+ };
1008
+ to: {
1009
+ type: string;
1010
+ enum: string[];
1011
+ description: string;
1012
+ };
1013
+ options: {
1014
+ type: string;
1015
+ items: {
1016
+ type: string;
1017
+ };
1018
+ description: string;
1019
+ };
1020
+ };
1021
+ required: string[];
1022
+ additionalProperties: boolean;
1023
+ };
1024
+ } | {
1025
+ type: string;
1026
+ name: string;
1027
+ description: string;
1028
+ inputSchema: {
1029
+ type: string;
1030
+ properties: {
1031
+ scope: {
1032
+ type: string;
1033
+ enum: string[];
1034
+ };
1035
+ lesson: {
1036
+ type: string;
1037
+ description: string;
1038
+ };
1039
+ };
1040
+ required: string[];
1041
+ additionalProperties: boolean;
1042
+ };
1043
+ } | {
1044
+ type: string;
1045
+ name: string;
1046
+ description: string;
1047
+ inputSchema: {
1048
+ type: string;
1049
+ properties: {
1050
+ name: {
1051
+ type: string;
1052
+ description: string;
1053
+ };
1054
+ description: {
1055
+ type: string;
1056
+ description: string;
1057
+ };
1058
+ body: {
1059
+ type: string;
1060
+ description: string;
1061
+ };
1062
+ roles: {
1063
+ type: string;
1064
+ items: {
1065
+ type: string;
1066
+ };
1067
+ description: string;
1068
+ };
1069
+ lessons: {
1070
+ type: string;
1071
+ items: {
1072
+ type: string;
1073
+ };
1074
+ description: string;
1075
+ };
1076
+ replace: {
1077
+ type: string;
1078
+ description: string;
1079
+ };
1080
+ requestId: {
1081
+ type: string;
1082
+ description: string;
1083
+ };
1084
+ };
1085
+ required: string[];
1086
+ additionalProperties: boolean;
1087
+ };
1088
+ } | {
1089
+ type: string;
1090
+ name: string;
1091
+ description: string;
1092
+ inputSchema: {
1093
+ type: string;
1094
+ properties: {
1095
+ action: {
1096
+ type: string;
1097
+ enum: string[];
1098
+ };
1099
+ target: {
1100
+ type: string;
1101
+ enum: string[];
1102
+ };
1103
+ query: {
1104
+ type: string;
1105
+ description: string;
1106
+ };
1107
+ title: {
1108
+ type: string;
1109
+ description: string;
1110
+ };
1111
+ body: {
1112
+ type: string;
1113
+ description: string;
1114
+ };
1115
+ issue: {
1116
+ type: string;
1117
+ description: string;
1118
+ };
1119
+ requestId: {
1120
+ type: string;
1121
+ description: string;
1122
+ };
1123
+ labels: {
1124
+ type: string;
1125
+ items: {
1126
+ type: string;
1127
+ };
1128
+ description: string;
1129
+ };
1130
+ };
1131
+ required: string[];
1132
+ additionalProperties: boolean;
1133
+ };
1134
+ } | {
1135
+ type: string;
1136
+ name: string;
1137
+ description: string;
1138
+ inputSchema: {
1139
+ type: string;
1140
+ properties: {
1141
+ limit?: {
1142
+ type: string;
1143
+ description: string;
1144
+ } | undefined;
1145
+ status?: {
1146
+ type: string;
1147
+ enum: import("@anhlp/alp-core/tasks").TaskStatus[];
1148
+ description: string;
1149
+ } | undefined;
1150
+ label?: {
1151
+ type: string;
1152
+ description: string;
1153
+ } | undefined;
1154
+ title?: {
1155
+ type: string;
1156
+ description: string;
1157
+ } | undefined;
1158
+ description?: {
1159
+ type: string;
1160
+ description: string;
1161
+ } | undefined;
1162
+ type?: {
1163
+ type: string;
1164
+ enum: import("@anhlp/alp-core/tasks").TaskType[];
1165
+ } | undefined;
1166
+ priority?: {
1167
+ type: string;
1168
+ description: string;
1169
+ } | undefined;
1170
+ labels?: {
1171
+ type: string;
1172
+ items: {
1173
+ type: string;
1174
+ };
1175
+ } | undefined;
1176
+ paths?: {
1177
+ type: string;
1178
+ items: {
1179
+ type: string;
1180
+ };
1181
+ description: string;
1182
+ } | undefined;
1183
+ parent?: {
1184
+ type: string;
1185
+ description: string;
1186
+ } | undefined;
1187
+ blockedBy?: {
1188
+ type: string;
1189
+ items: {
1190
+ type: string;
1191
+ };
1192
+ description: string;
1193
+ } | undefined;
1194
+ discoveredFrom?: {
1195
+ type: string;
1196
+ description: string;
1197
+ } | undefined;
1198
+ add?: {
1199
+ type: string;
1200
+ description: string;
1201
+ properties: {
1202
+ blockedBy: {
1203
+ type: string;
1204
+ items: {
1205
+ type: string;
1206
+ };
1207
+ description: string;
1208
+ };
1209
+ related: {
1210
+ type: string;
1211
+ items: {
1212
+ type: string;
1213
+ };
1214
+ };
1215
+ parent: {
1216
+ type: string;
1217
+ description: string;
1218
+ };
1219
+ };
1220
+ additionalProperties: boolean;
1221
+ } | undefined;
1222
+ remove?: {
1223
+ type: string;
1224
+ description: string;
1225
+ properties: {
1226
+ blockedBy: {
1227
+ type: string;
1228
+ items: {
1229
+ type: string;
1230
+ };
1231
+ description: string;
1232
+ };
1233
+ related: {
1234
+ type: string;
1235
+ items: {
1236
+ type: string;
1237
+ };
1238
+ };
1239
+ parent: {
1240
+ type: string;
1241
+ description: string;
1242
+ };
1243
+ };
1244
+ additionalProperties: boolean;
1245
+ } | undefined;
1246
+ reason?: {
1247
+ type: string;
1248
+ enum: import("@anhlp/alp-core/tasks").CloseReason[];
1249
+ description: string;
1250
+ } | undefined;
1251
+ kind?: {
1252
+ type: string;
1253
+ enum: import("@anhlp/alp-core/tasks").GateKind[];
1254
+ description: string;
1255
+ } | undefined;
1256
+ until?: {
1257
+ type: string;
1258
+ description: string;
1259
+ } | undefined;
1260
+ ref?: {
1261
+ type: string;
1262
+ description: string;
1263
+ } | undefined;
1264
+ gate?: {
1265
+ type: string;
1266
+ description: string;
1267
+ } | undefined;
1268
+ formula?: {
1269
+ type: string;
1270
+ description: string;
1271
+ } | undefined;
1272
+ vars?: {
1273
+ type: string;
1274
+ additionalProperties: {
1275
+ type: string;
1276
+ };
1277
+ description: string;
1278
+ } | undefined;
1279
+ summary?: {
1280
+ type: string;
1281
+ description: string;
1282
+ } | undefined;
1283
+ unverified?: {
1284
+ type: string;
1285
+ description: string;
1286
+ } | undefined;
1287
+ note?: {
1288
+ type: string;
1289
+ description: string;
1290
+ } | undefined;
1291
+ action: {
1292
+ type: string;
1293
+ enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1294
+ };
1295
+ id: {
1296
+ type: string;
1297
+ description: string;
1298
+ };
1299
+ };
1300
+ required: string[];
1301
+ additionalProperties: boolean;
1302
+ };
1303
+ } | {
1304
+ type: string;
1305
+ name: string;
1306
+ description: string;
1307
+ inputSchema: {
1308
+ type: string;
1309
+ properties: {
1310
+ action: {
1311
+ type: string;
1312
+ enum: string[];
1313
+ };
1314
+ dueAt: {
1315
+ type: string;
1316
+ description: string;
1317
+ };
1318
+ prompt: {
1319
+ type: string;
1320
+ description: string;
1321
+ };
1322
+ requestId: {
1323
+ type: string;
1324
+ description: string;
1325
+ };
1326
+ id: {
1327
+ type: string;
1328
+ description: string;
1329
+ };
1330
+ status: {
1331
+ type: string;
1332
+ enum: string[];
1333
+ };
1334
+ };
1335
+ required: string[];
1336
+ additionalProperties: boolean;
1337
+ };
1338
+ } | {
1339
+ type: string;
1340
+ name: string;
1341
+ description: string;
1342
+ inputSchema: {
1343
+ type: string;
1344
+ properties: {
1345
+ taskId?: {
1346
+ type: string;
1347
+ description: string;
1348
+ } | undefined;
1349
+ agent: {
1350
+ type: string;
1351
+ enum: string[];
1352
+ };
1353
+ task: {
1354
+ type: string;
1355
+ description: string;
1356
+ };
1357
+ model: {
1358
+ type: string;
1359
+ description: string;
1360
+ };
1361
+ thinking: {
1362
+ type: string;
1363
+ description: string;
1364
+ };
1365
+ modelReason: {
1366
+ type: string;
1367
+ description: string;
1368
+ };
1369
+ mode: {
1370
+ type: string;
1371
+ enum: string[];
1372
+ description: string;
1373
+ };
1374
+ isolation: {
1375
+ type: string;
1376
+ enum: string[];
1377
+ description: string;
1378
+ };
1379
+ writeRoot: {
1380
+ type: string;
1381
+ description: string;
1382
+ };
1383
+ continueFrom: {
1384
+ type: string;
1385
+ description: string;
1386
+ };
1387
+ wait: {
1388
+ type: string;
1389
+ description: string;
1390
+ };
1391
+ etaMinutes: {
1392
+ type: string;
1393
+ minimum: number;
1394
+ maximum: number;
1395
+ description: string;
1396
+ };
1397
+ };
1398
+ required: string[];
1399
+ additionalProperties: boolean;
1400
+ };
1401
+ })[];
1402
+ floor?: "workspace-write" | "read-only" | undefined;
1403
+ permissions?: PermissionProfile | null | undefined;
1404
+ skills?: Array<{
1405
+ name: string;
1406
+ path: string;
1407
+ }>;
1408
+ config: {
1409
+ model_auto_compact_token_limit: number;
1410
+ };
1411
+ context?: undefined;
1412
+ runtime: RuntimeKind;
1413
+ cwd: string;
1414
+ model: any;
1415
+ sandbox: string;
1416
+ approvalPolicy: string;
1417
+ } | {
1418
+ developerInstructions: string;
1419
+ mcpServers: Record<string, unknown>;
1420
+ thinking: string;
1421
+ /**
1422
+ * ALP owns multi-agent orchestration.
1423
+ *
1424
+ * The adapter must disable/bypass the harness' native agent spawning
1425
+ * while preserving all other native Codex capabilities.
1426
+ */
1427
+ nativeMultiAgent: boolean;
1428
+ dynamicTools: ({
1429
+ type: string;
1430
+ name: string;
1431
+ description: string;
1432
+ inputSchema: {
1433
+ type: string;
1434
+ properties: {
1435
+ outcome: {
1436
+ type: string;
1437
+ enum: readonly ["complete", "partial", "blocked", "reconsider"];
1438
+ description: string;
1439
+ };
1440
+ summary: {
1441
+ type: string;
1442
+ description: string;
1443
+ };
1444
+ candidate: {
1445
+ type: string;
1446
+ items: {
1447
+ type: string;
1448
+ };
1449
+ description: string;
1450
+ };
1451
+ scope: {
1452
+ type: string;
1453
+ items: {
1454
+ type: string;
1455
+ };
1456
+ description: string;
1457
+ };
1458
+ verification: {
1459
+ type: string;
1460
+ items: {
1461
+ type: string;
1462
+ };
1463
+ description: string;
1464
+ };
1465
+ risks: {
1466
+ type: string;
1467
+ items: {
1468
+ type: string;
1469
+ };
1470
+ description: string;
1471
+ };
1472
+ discovered: {
1473
+ type: string;
1474
+ items: {
1475
+ type: string;
1476
+ };
1477
+ description: string;
1478
+ };
1479
+ ownership: {
1480
+ type: string;
1481
+ description: string;
1482
+ };
1483
+ verdict: {
1484
+ type: string;
1485
+ description: string;
1486
+ properties: {
1487
+ result: {
1488
+ type: string;
1489
+ enum: readonly ["pass", "pass_with_findings", "fail", "blocked"];
1490
+ };
1491
+ criteria: {
1492
+ type: string;
1493
+ items: {
1494
+ type: string;
1495
+ properties: {
1496
+ criterion: {
1497
+ type: string;
1498
+ description: string;
1499
+ };
1500
+ result: {
1501
+ type: string;
1502
+ enum: readonly ["pass", "fail", "not_checked"];
1503
+ };
1504
+ evidence: {
1505
+ type: string;
1506
+ description: string;
1507
+ };
1508
+ };
1509
+ required: string[];
1510
+ additionalProperties: boolean;
1511
+ };
1512
+ };
1513
+ findings: {
1514
+ type: string;
1515
+ items: {
1516
+ type: string;
1517
+ properties: {
1518
+ severity: {
1519
+ type: string;
1520
+ enum: readonly ["critical", "high", "medium", "low"];
1521
+ description: string;
1522
+ };
1523
+ where: {
1524
+ type: string;
1525
+ description: string;
1526
+ };
1527
+ problem: {
1528
+ type: string;
1529
+ description: string;
1530
+ };
1531
+ fix: {
1532
+ type: string;
1533
+ description: string;
1534
+ };
1535
+ };
1536
+ required: string[];
1537
+ additionalProperties: boolean;
1538
+ };
1539
+ };
1540
+ };
1541
+ required: string[];
1542
+ additionalProperties: boolean;
1543
+ };
1544
+ };
1545
+ required: string[];
1546
+ additionalProperties: boolean;
1547
+ };
1548
+ } | {
1549
+ type: string;
1550
+ name: string;
1551
+ description: string;
1552
+ inputSchema: {
1553
+ type: string;
1554
+ properties: {
1555
+ assignments: {
1556
+ type: string;
1557
+ items: {
1558
+ type: string;
1559
+ };
1560
+ description: string;
1561
+ };
1562
+ timeoutMs: {
1563
+ type: string;
1564
+ description: string;
1565
+ };
1566
+ };
1567
+ additionalProperties: boolean;
1568
+ };
1569
+ } | {
1570
+ type: string;
1571
+ name: string;
1572
+ description: string;
1573
+ inputSchema: {
1574
+ type: string;
1575
+ properties: {
1576
+ to: {
1577
+ type: string;
1578
+ description: string;
1579
+ };
1580
+ kind: {
1581
+ type: string;
1582
+ enum: string[];
1583
+ description: string;
1584
+ };
1585
+ body: {
1586
+ type: string;
1587
+ };
1588
+ replyTo: {
1589
+ type: string;
1590
+ description: string;
1591
+ };
1592
+ };
1593
+ required: string[];
1594
+ additionalProperties: boolean;
1595
+ };
1596
+ } | {
1597
+ type: string;
1598
+ name: string;
1599
+ description: string;
1600
+ inputSchema: {
1601
+ type: string;
1602
+ properties: {
1603
+ taskId: {
1604
+ type: string;
1605
+ description: string;
1606
+ };
1607
+ };
1608
+ additionalProperties: boolean;
1609
+ };
1610
+ } | {
1611
+ type: string;
1612
+ name: string;
1613
+ description: string;
1614
+ inputSchema: {
1615
+ type: string;
1616
+ properties: {
1617
+ assignmentId: {
1618
+ type: string;
1619
+ };
1620
+ };
1621
+ required: string[];
1622
+ additionalProperties: boolean;
1623
+ };
1624
+ } | {
1625
+ type: string;
1626
+ name: string;
1627
+ description: string;
1628
+ inputSchema: {
1629
+ type: string;
1630
+ properties: {
1631
+ kind: {
1632
+ type: string;
1633
+ enum: readonly ["claim", "decision", "finding"];
1634
+ };
1635
+ body: {
1636
+ type: string;
1637
+ description: string;
1638
+ };
1639
+ paths: {
1640
+ type: string;
1641
+ items: {
1642
+ type: string;
1643
+ };
1644
+ description: string;
1645
+ };
1646
+ };
1647
+ required: string[];
1648
+ additionalProperties: boolean;
1649
+ };
1650
+ } | {
1651
+ type: string;
1652
+ name: string;
1653
+ description: string;
1654
+ inputSchema: {
1655
+ type: string;
1656
+ properties: {
1657
+ kinds: {
1658
+ type: string;
1659
+ items: {
1660
+ type: string;
1661
+ enum: readonly ["claim", "decision", "finding"];
1662
+ };
1663
+ };
1664
+ limit: {
1665
+ type: string;
1666
+ description: string;
1667
+ };
1668
+ };
1669
+ additionalProperties: boolean;
1670
+ };
1671
+ } | {
1672
+ type: string;
1673
+ name: string;
1674
+ description: string;
1675
+ inputSchema: {
1676
+ type: string;
1677
+ properties: {
1678
+ pinId: {
1679
+ type: string;
1680
+ };
1681
+ };
1682
+ required: string[];
1683
+ additionalProperties: boolean;
1684
+ };
1685
+ } | {
1686
+ type: string;
1687
+ name: string;
1688
+ description: string;
1689
+ inputSchema: {
1690
+ type: string;
1691
+ properties: {
1692
+ question: {
1693
+ type: string;
1694
+ };
1695
+ to: {
1696
+ type: string;
1697
+ enum: string[];
1698
+ description: string;
1699
+ };
1700
+ options: {
1701
+ type: string;
1702
+ items: {
1703
+ type: string;
1704
+ };
1705
+ description: string;
1706
+ };
1707
+ };
1708
+ required: string[];
1709
+ additionalProperties: boolean;
1710
+ };
1711
+ } | {
1712
+ type: string;
1713
+ name: string;
1714
+ description: string;
1715
+ inputSchema: {
1716
+ type: string;
1717
+ properties: {
1718
+ scope: {
1719
+ type: string;
1720
+ enum: string[];
1721
+ };
1722
+ lesson: {
1723
+ type: string;
1724
+ description: string;
1725
+ };
1726
+ };
1727
+ required: string[];
1728
+ additionalProperties: boolean;
1729
+ };
1730
+ } | {
1731
+ type: string;
1732
+ name: string;
1733
+ description: string;
1734
+ inputSchema: {
1735
+ type: string;
1736
+ properties: {
1737
+ name: {
1738
+ type: string;
1739
+ description: string;
1740
+ };
1741
+ description: {
1742
+ type: string;
1743
+ description: string;
1744
+ };
1745
+ body: {
1746
+ type: string;
1747
+ description: string;
1748
+ };
1749
+ roles: {
1750
+ type: string;
1751
+ items: {
1752
+ type: string;
1753
+ };
1754
+ description: string;
1755
+ };
1756
+ lessons: {
1757
+ type: string;
1758
+ items: {
1759
+ type: string;
1760
+ };
1761
+ description: string;
1762
+ };
1763
+ replace: {
1764
+ type: string;
1765
+ description: string;
1766
+ };
1767
+ requestId: {
1768
+ type: string;
1769
+ description: string;
1770
+ };
1771
+ };
1772
+ required: string[];
1773
+ additionalProperties: boolean;
1774
+ };
1775
+ } | {
1776
+ type: string;
1777
+ name: string;
1778
+ description: string;
1779
+ inputSchema: {
1780
+ type: string;
1781
+ properties: {
1782
+ action: {
1783
+ type: string;
1784
+ enum: string[];
1785
+ };
1786
+ target: {
1787
+ type: string;
1788
+ enum: string[];
1789
+ };
1790
+ query: {
1791
+ type: string;
1792
+ description: string;
1793
+ };
1794
+ title: {
1795
+ type: string;
1796
+ description: string;
1797
+ };
1798
+ body: {
1799
+ type: string;
1800
+ description: string;
1801
+ };
1802
+ issue: {
1803
+ type: string;
1804
+ description: string;
1805
+ };
1806
+ requestId: {
1807
+ type: string;
1808
+ description: string;
1809
+ };
1810
+ labels: {
1811
+ type: string;
1812
+ items: {
1813
+ type: string;
1814
+ };
1815
+ description: string;
1816
+ };
1817
+ };
1818
+ required: string[];
1819
+ additionalProperties: boolean;
1820
+ };
1821
+ } | {
1822
+ type: string;
1823
+ name: string;
1824
+ description: string;
1825
+ inputSchema: {
1826
+ type: string;
1827
+ properties: {
1828
+ limit?: {
1829
+ type: string;
1830
+ description: string;
1831
+ } | undefined;
1832
+ status?: {
1833
+ type: string;
1834
+ enum: import("@anhlp/alp-core/tasks").TaskStatus[];
1835
+ description: string;
1836
+ } | undefined;
1837
+ label?: {
1838
+ type: string;
1839
+ description: string;
1840
+ } | undefined;
1841
+ title?: {
1842
+ type: string;
1843
+ description: string;
1844
+ } | undefined;
1845
+ description?: {
1846
+ type: string;
1847
+ description: string;
1848
+ } | undefined;
1849
+ type?: {
1850
+ type: string;
1851
+ enum: import("@anhlp/alp-core/tasks").TaskType[];
1852
+ } | undefined;
1853
+ priority?: {
1854
+ type: string;
1855
+ description: string;
1856
+ } | undefined;
1857
+ labels?: {
1858
+ type: string;
1859
+ items: {
1860
+ type: string;
1861
+ };
1862
+ } | undefined;
1863
+ paths?: {
1864
+ type: string;
1865
+ items: {
1866
+ type: string;
1867
+ };
1868
+ description: string;
1869
+ } | undefined;
1870
+ parent?: {
1871
+ type: string;
1872
+ description: string;
1873
+ } | undefined;
1874
+ blockedBy?: {
1875
+ type: string;
1876
+ items: {
1877
+ type: string;
1878
+ };
1879
+ description: string;
1880
+ } | undefined;
1881
+ discoveredFrom?: {
1882
+ type: string;
1883
+ description: string;
1884
+ } | undefined;
1885
+ add?: {
1886
+ type: string;
1887
+ description: string;
1888
+ properties: {
1889
+ blockedBy: {
1890
+ type: string;
1891
+ items: {
1892
+ type: string;
1893
+ };
1894
+ description: string;
1895
+ };
1896
+ related: {
1897
+ type: string;
1898
+ items: {
1899
+ type: string;
1900
+ };
1901
+ };
1902
+ parent: {
1903
+ type: string;
1904
+ description: string;
1905
+ };
1906
+ };
1907
+ additionalProperties: boolean;
1908
+ } | undefined;
1909
+ remove?: {
1910
+ type: string;
1911
+ description: string;
1912
+ properties: {
1913
+ blockedBy: {
1914
+ type: string;
1915
+ items: {
1916
+ type: string;
1917
+ };
1918
+ description: string;
1919
+ };
1920
+ related: {
1921
+ type: string;
1922
+ items: {
1923
+ type: string;
1924
+ };
1925
+ };
1926
+ parent: {
1927
+ type: string;
1928
+ description: string;
1929
+ };
1930
+ };
1931
+ additionalProperties: boolean;
1932
+ } | undefined;
1933
+ reason?: {
1934
+ type: string;
1935
+ enum: import("@anhlp/alp-core/tasks").CloseReason[];
1936
+ description: string;
1937
+ } | undefined;
1938
+ kind?: {
1939
+ type: string;
1940
+ enum: import("@anhlp/alp-core/tasks").GateKind[];
1941
+ description: string;
1942
+ } | undefined;
1943
+ until?: {
1944
+ type: string;
1945
+ description: string;
1946
+ } | undefined;
1947
+ ref?: {
1948
+ type: string;
1949
+ description: string;
1950
+ } | undefined;
1951
+ gate?: {
1952
+ type: string;
1953
+ description: string;
1954
+ } | undefined;
1955
+ formula?: {
1956
+ type: string;
1957
+ description: string;
1958
+ } | undefined;
1959
+ vars?: {
1960
+ type: string;
1961
+ additionalProperties: {
1962
+ type: string;
1963
+ };
1964
+ description: string;
1965
+ } | undefined;
1966
+ summary?: {
1967
+ type: string;
1968
+ description: string;
1969
+ } | undefined;
1970
+ unverified?: {
1971
+ type: string;
1972
+ description: string;
1973
+ } | undefined;
1974
+ note?: {
1975
+ type: string;
1976
+ description: string;
1977
+ } | undefined;
1978
+ action: {
1979
+ type: string;
1980
+ enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1981
+ };
1982
+ id: {
1983
+ type: string;
1984
+ description: string;
1985
+ };
1986
+ };
1987
+ required: string[];
1988
+ additionalProperties: boolean;
1989
+ };
1990
+ } | {
1991
+ type: string;
1992
+ name: string;
1993
+ description: string;
1994
+ inputSchema: {
1995
+ type: string;
1996
+ properties: {
1997
+ action: {
1998
+ type: string;
1999
+ enum: string[];
2000
+ };
2001
+ dueAt: {
2002
+ type: string;
2003
+ description: string;
2004
+ };
2005
+ prompt: {
2006
+ type: string;
2007
+ description: string;
2008
+ };
2009
+ requestId: {
2010
+ type: string;
2011
+ description: string;
2012
+ };
2013
+ id: {
2014
+ type: string;
2015
+ description: string;
2016
+ };
2017
+ status: {
2018
+ type: string;
2019
+ enum: string[];
2020
+ };
2021
+ };
2022
+ required: string[];
2023
+ additionalProperties: boolean;
2024
+ };
2025
+ } | {
2026
+ type: string;
2027
+ name: string;
2028
+ description: string;
2029
+ inputSchema: {
2030
+ type: string;
2031
+ properties: {
2032
+ taskId?: {
2033
+ type: string;
2034
+ description: string;
2035
+ } | undefined;
2036
+ agent: {
2037
+ type: string;
2038
+ enum: string[];
2039
+ };
2040
+ task: {
2041
+ type: string;
2042
+ description: string;
2043
+ };
2044
+ model: {
2045
+ type: string;
2046
+ description: string;
2047
+ };
2048
+ thinking: {
2049
+ type: string;
2050
+ description: string;
2051
+ };
2052
+ modelReason: {
2053
+ type: string;
2054
+ description: string;
2055
+ };
2056
+ mode: {
2057
+ type: string;
2058
+ enum: string[];
2059
+ description: string;
2060
+ };
2061
+ isolation: {
2062
+ type: string;
2063
+ enum: string[];
2064
+ description: string;
2065
+ };
2066
+ writeRoot: {
2067
+ type: string;
2068
+ description: string;
2069
+ };
2070
+ continueFrom: {
2071
+ type: string;
2072
+ description: string;
2073
+ };
2074
+ wait: {
2075
+ type: string;
2076
+ description: string;
2077
+ };
2078
+ etaMinutes: {
2079
+ type: string;
2080
+ minimum: number;
2081
+ maximum: number;
2082
+ description: string;
2083
+ };
2084
+ };
2085
+ required: string[];
2086
+ additionalProperties: boolean;
2087
+ };
2088
+ })[];
2089
+ floor?: "workspace-write" | "read-only" | undefined;
2090
+ permissions?: PermissionProfile | null | undefined;
2091
+ skills?: Array<{
2092
+ name: string;
2093
+ path: string;
2094
+ }>;
2095
+ context?: undefined;
2096
+ config?: undefined;
2097
+ runtime: RuntimeKind;
2098
+ cwd: string;
2099
+ model: any;
2100
+ sandbox: string;
2101
+ approvalPolicy: string;
2102
+ };