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

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 (97) 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/board-domain.d.ts +56 -0
  9. package/dist/board-domain.js +157 -0
  10. package/dist/board.d.ts +21 -0
  11. package/dist/board.js +69 -0
  12. package/dist/catalog.d.ts +31 -0
  13. package/dist/catalog.js +38 -0
  14. package/dist/claude-transport.d.ts +174 -0
  15. package/dist/claude-transport.js +734 -0
  16. package/dist/contracts.d.ts +170 -0
  17. package/dist/contracts.js +5 -0
  18. package/dist/events.d.ts +1 -0
  19. package/dist/events.js +0 -0
  20. package/dist/github.d.ts +10 -0
  21. package/dist/github.js +39 -0
  22. package/dist/handoff.d.ts +36 -0
  23. package/dist/handoff.js +73 -0
  24. package/dist/index.d.ts +26 -0
  25. package/dist/index.js +78 -0
  26. package/dist/language.d.ts +41 -0
  27. package/dist/language.js +68 -0
  28. package/dist/live.d.ts +48 -0
  29. package/dist/live.js +45 -0
  30. package/dist/mailbox.d.ts +24 -0
  31. package/dist/mailbox.js +36 -0
  32. package/dist/mcp-tools.d.ts +115 -0
  33. package/dist/mcp-tools.js +71 -0
  34. package/dist/permission-path.d.ts +2 -0
  35. package/dist/permission-path.js +44 -0
  36. package/dist/process-info.d.ts +14 -0
  37. package/dist/process-info.js +32 -0
  38. package/dist/providers.d.ts +28 -0
  39. package/dist/providers.js +71 -0
  40. package/dist/recall.d.ts +42 -0
  41. package/dist/recall.js +60 -0
  42. package/dist/resolve.d.ts +121 -0
  43. package/dist/resolve.js +238 -0
  44. package/dist/runtime-context.d.ts +43 -0
  45. package/dist/runtime-context.js +61 -0
  46. package/dist/runtime.d.ts +4 -0
  47. package/dist/runtime.js +3131 -0
  48. package/dist/session-config.d.ts +1997 -0
  49. package/dist/session-config.js +205 -0
  50. package/dist/session-state.d.ts +150 -0
  51. package/dist/session-state.js +0 -0
  52. package/dist/tool-detail.d.ts +81 -0
  53. package/dist/tool-detail.js +332 -0
  54. package/dist/tool-results.d.ts +12 -0
  55. package/dist/tool-results.js +25 -0
  56. package/dist/tools.d.ts +682 -0
  57. package/dist/tools.js +377 -0
  58. package/dist/transport.d.ts +47 -0
  59. package/dist/transport.js +169 -0
  60. package/dist/usage.d.ts +25 -0
  61. package/dist/usage.js +60 -0
  62. package/dist/workspace.d.ts +101 -0
  63. package/dist/workspace.js +259 -0
  64. package/dist/worktree-domain.d.ts +88 -0
  65. package/dist/worktree-domain.js +196 -0
  66. package/package.json +254 -4
  67. package/src/acp-transport.ts +508 -0
  68. package/src/antigravity-transport.ts +667 -0
  69. package/src/board-domain.ts +185 -0
  70. package/src/board.ts +80 -0
  71. package/src/catalog.ts +32 -0
  72. package/src/claude-transport.ts +843 -0
  73. package/src/contracts.ts +172 -0
  74. package/src/events.ts +1 -0
  75. package/src/github.ts +37 -0
  76. package/src/handoff.ts +86 -0
  77. package/src/index.ts +28 -0
  78. package/src/language.ts +102 -0
  79. package/src/live.ts +86 -0
  80. package/src/mailbox.ts +46 -0
  81. package/src/mcp-tools.ts +73 -0
  82. package/src/permission-path.ts +37 -0
  83. package/src/process-info.ts +40 -0
  84. package/src/providers.ts +84 -0
  85. package/src/recall.ts +85 -0
  86. package/src/resolve.ts +230 -0
  87. package/src/runtime-context.ts +49 -0
  88. package/src/runtime.ts +3765 -0
  89. package/src/session-config.ts +304 -0
  90. package/src/session-state.ts +151 -0
  91. package/src/tool-detail.ts +397 -0
  92. package/src/tool-results.ts +26 -0
  93. package/src/tools.ts +381 -0
  94. package/src/transport.ts +116 -0
  95. package/src/usage.ts +79 -0
  96. package/src/workspace.ts +318 -0
  97. package/src/worktree-domain.ts +216 -0
@@ -0,0 +1,1997 @@
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
+ taskId?: {
626
+ type: string;
627
+ description: string;
628
+ } | undefined;
629
+ agent: {
630
+ type: string;
631
+ enum: string[];
632
+ };
633
+ task: {
634
+ type: string;
635
+ description: string;
636
+ };
637
+ model: {
638
+ type: string;
639
+ description: string;
640
+ };
641
+ thinking: {
642
+ type: string;
643
+ description: string;
644
+ };
645
+ modelReason: {
646
+ type: string;
647
+ description: string;
648
+ };
649
+ mode: {
650
+ type: string;
651
+ enum: string[];
652
+ description: string;
653
+ };
654
+ isolation: {
655
+ type: string;
656
+ enum: string[];
657
+ description: string;
658
+ };
659
+ writeRoot: {
660
+ type: string;
661
+ description: string;
662
+ };
663
+ continueFrom: {
664
+ type: string;
665
+ description: string;
666
+ };
667
+ wait: {
668
+ type: string;
669
+ description: string;
670
+ };
671
+ etaMinutes: {
672
+ type: string;
673
+ minimum: number;
674
+ maximum: number;
675
+ description: string;
676
+ };
677
+ };
678
+ required: string[];
679
+ additionalProperties: boolean;
680
+ };
681
+ })[];
682
+ floor?: "workspace-write" | "read-only" | undefined;
683
+ permissions?: PermissionProfile | null | undefined;
684
+ skills?: Array<{
685
+ name: string;
686
+ path: string;
687
+ }>;
688
+ context: number;
689
+ config?: undefined;
690
+ runtime: RuntimeKind;
691
+ cwd: string;
692
+ model: any;
693
+ sandbox: string;
694
+ approvalPolicy: string;
695
+ } | {
696
+ developerInstructions: string;
697
+ mcpServers: Record<string, unknown>;
698
+ thinking: string;
699
+ /**
700
+ * ALP owns multi-agent orchestration.
701
+ *
702
+ * The adapter must disable/bypass the harness' native agent spawning
703
+ * while preserving all other native Codex capabilities.
704
+ */
705
+ nativeMultiAgent: boolean;
706
+ dynamicTools: ({
707
+ type: string;
708
+ name: string;
709
+ description: string;
710
+ inputSchema: {
711
+ type: string;
712
+ properties: {
713
+ outcome: {
714
+ type: string;
715
+ enum: readonly ["complete", "partial", "blocked", "reconsider"];
716
+ description: string;
717
+ };
718
+ summary: {
719
+ type: string;
720
+ description: string;
721
+ };
722
+ candidate: {
723
+ type: string;
724
+ items: {
725
+ type: string;
726
+ };
727
+ description: string;
728
+ };
729
+ scope: {
730
+ type: string;
731
+ items: {
732
+ type: string;
733
+ };
734
+ description: string;
735
+ };
736
+ verification: {
737
+ type: string;
738
+ items: {
739
+ type: string;
740
+ };
741
+ description: string;
742
+ };
743
+ risks: {
744
+ type: string;
745
+ items: {
746
+ type: string;
747
+ };
748
+ description: string;
749
+ };
750
+ discovered: {
751
+ type: string;
752
+ items: {
753
+ type: string;
754
+ };
755
+ description: string;
756
+ };
757
+ ownership: {
758
+ type: string;
759
+ description: string;
760
+ };
761
+ verdict: {
762
+ type: string;
763
+ description: string;
764
+ properties: {
765
+ result: {
766
+ type: string;
767
+ enum: readonly ["pass", "pass_with_findings", "fail", "blocked"];
768
+ };
769
+ criteria: {
770
+ type: string;
771
+ items: {
772
+ type: string;
773
+ properties: {
774
+ criterion: {
775
+ type: string;
776
+ description: string;
777
+ };
778
+ result: {
779
+ type: string;
780
+ enum: readonly ["pass", "fail", "not_checked"];
781
+ };
782
+ evidence: {
783
+ type: string;
784
+ description: string;
785
+ };
786
+ };
787
+ required: string[];
788
+ additionalProperties: boolean;
789
+ };
790
+ };
791
+ findings: {
792
+ type: string;
793
+ items: {
794
+ type: string;
795
+ properties: {
796
+ severity: {
797
+ type: string;
798
+ enum: readonly ["critical", "high", "medium", "low"];
799
+ description: string;
800
+ };
801
+ where: {
802
+ type: string;
803
+ description: string;
804
+ };
805
+ problem: {
806
+ type: string;
807
+ description: string;
808
+ };
809
+ fix: {
810
+ type: string;
811
+ description: string;
812
+ };
813
+ };
814
+ required: string[];
815
+ additionalProperties: boolean;
816
+ };
817
+ };
818
+ };
819
+ required: string[];
820
+ additionalProperties: boolean;
821
+ };
822
+ };
823
+ required: string[];
824
+ additionalProperties: boolean;
825
+ };
826
+ } | {
827
+ type: string;
828
+ name: string;
829
+ description: string;
830
+ inputSchema: {
831
+ type: string;
832
+ properties: {
833
+ assignments: {
834
+ type: string;
835
+ items: {
836
+ type: string;
837
+ };
838
+ description: string;
839
+ };
840
+ timeoutMs: {
841
+ type: string;
842
+ description: string;
843
+ };
844
+ };
845
+ additionalProperties: boolean;
846
+ };
847
+ } | {
848
+ type: string;
849
+ name: string;
850
+ description: string;
851
+ inputSchema: {
852
+ type: string;
853
+ properties: {
854
+ to: {
855
+ type: string;
856
+ description: string;
857
+ };
858
+ kind: {
859
+ type: string;
860
+ enum: string[];
861
+ description: string;
862
+ };
863
+ body: {
864
+ type: string;
865
+ };
866
+ replyTo: {
867
+ type: string;
868
+ description: string;
869
+ };
870
+ };
871
+ required: string[];
872
+ additionalProperties: boolean;
873
+ };
874
+ } | {
875
+ type: string;
876
+ name: string;
877
+ description: string;
878
+ inputSchema: {
879
+ type: string;
880
+ properties: {
881
+ taskId: {
882
+ type: string;
883
+ description: string;
884
+ };
885
+ };
886
+ additionalProperties: boolean;
887
+ };
888
+ } | {
889
+ type: string;
890
+ name: string;
891
+ description: string;
892
+ inputSchema: {
893
+ type: string;
894
+ properties: {
895
+ assignmentId: {
896
+ type: string;
897
+ };
898
+ };
899
+ required: string[];
900
+ additionalProperties: boolean;
901
+ };
902
+ } | {
903
+ type: string;
904
+ name: string;
905
+ description: string;
906
+ inputSchema: {
907
+ type: string;
908
+ properties: {
909
+ kind: {
910
+ type: string;
911
+ enum: readonly ["claim", "decision", "finding"];
912
+ };
913
+ body: {
914
+ type: string;
915
+ description: string;
916
+ };
917
+ paths: {
918
+ type: string;
919
+ items: {
920
+ type: string;
921
+ };
922
+ description: string;
923
+ };
924
+ };
925
+ required: string[];
926
+ additionalProperties: boolean;
927
+ };
928
+ } | {
929
+ type: string;
930
+ name: string;
931
+ description: string;
932
+ inputSchema: {
933
+ type: string;
934
+ properties: {
935
+ kinds: {
936
+ type: string;
937
+ items: {
938
+ type: string;
939
+ enum: readonly ["claim", "decision", "finding"];
940
+ };
941
+ };
942
+ limit: {
943
+ type: string;
944
+ description: string;
945
+ };
946
+ };
947
+ additionalProperties: boolean;
948
+ };
949
+ } | {
950
+ type: string;
951
+ name: string;
952
+ description: string;
953
+ inputSchema: {
954
+ type: string;
955
+ properties: {
956
+ pinId: {
957
+ type: 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
+ question: {
971
+ type: string;
972
+ };
973
+ to: {
974
+ type: string;
975
+ enum: string[];
976
+ description: string;
977
+ };
978
+ options: {
979
+ type: string;
980
+ items: {
981
+ type: string;
982
+ };
983
+ description: string;
984
+ };
985
+ };
986
+ required: string[];
987
+ additionalProperties: boolean;
988
+ };
989
+ } | {
990
+ type: string;
991
+ name: string;
992
+ description: string;
993
+ inputSchema: {
994
+ type: string;
995
+ properties: {
996
+ scope: {
997
+ type: string;
998
+ enum: string[];
999
+ };
1000
+ lesson: {
1001
+ type: string;
1002
+ description: string;
1003
+ };
1004
+ };
1005
+ required: string[];
1006
+ additionalProperties: boolean;
1007
+ };
1008
+ } | {
1009
+ type: string;
1010
+ name: string;
1011
+ description: string;
1012
+ inputSchema: {
1013
+ type: string;
1014
+ properties: {
1015
+ name: {
1016
+ type: string;
1017
+ description: string;
1018
+ };
1019
+ description: {
1020
+ type: string;
1021
+ description: string;
1022
+ };
1023
+ body: {
1024
+ type: string;
1025
+ description: string;
1026
+ };
1027
+ roles: {
1028
+ type: string;
1029
+ items: {
1030
+ type: string;
1031
+ };
1032
+ description: string;
1033
+ };
1034
+ lessons: {
1035
+ type: string;
1036
+ items: {
1037
+ type: string;
1038
+ };
1039
+ description: string;
1040
+ };
1041
+ replace: {
1042
+ type: string;
1043
+ description: string;
1044
+ };
1045
+ requestId: {
1046
+ type: string;
1047
+ description: string;
1048
+ };
1049
+ };
1050
+ required: string[];
1051
+ additionalProperties: boolean;
1052
+ };
1053
+ } | {
1054
+ type: string;
1055
+ name: string;
1056
+ description: string;
1057
+ inputSchema: {
1058
+ type: string;
1059
+ properties: {
1060
+ action: {
1061
+ type: string;
1062
+ enum: string[];
1063
+ };
1064
+ target: {
1065
+ type: string;
1066
+ enum: string[];
1067
+ };
1068
+ query: {
1069
+ type: string;
1070
+ description: string;
1071
+ };
1072
+ title: {
1073
+ type: string;
1074
+ description: string;
1075
+ };
1076
+ body: {
1077
+ type: string;
1078
+ description: string;
1079
+ };
1080
+ issue: {
1081
+ type: string;
1082
+ description: string;
1083
+ };
1084
+ requestId: {
1085
+ type: string;
1086
+ description: string;
1087
+ };
1088
+ labels: {
1089
+ type: string;
1090
+ items: {
1091
+ type: string;
1092
+ };
1093
+ description: string;
1094
+ };
1095
+ };
1096
+ required: string[];
1097
+ additionalProperties: boolean;
1098
+ };
1099
+ } | {
1100
+ type: string;
1101
+ name: string;
1102
+ description: string;
1103
+ inputSchema: {
1104
+ type: string;
1105
+ properties: {
1106
+ limit?: {
1107
+ type: string;
1108
+ description: string;
1109
+ } | undefined;
1110
+ status?: {
1111
+ type: string;
1112
+ enum: import("@anhlp/alp-core/tasks").TaskStatus[];
1113
+ description: string;
1114
+ } | undefined;
1115
+ label?: {
1116
+ type: string;
1117
+ description: string;
1118
+ } | undefined;
1119
+ title?: {
1120
+ type: string;
1121
+ description: string;
1122
+ } | undefined;
1123
+ description?: {
1124
+ type: string;
1125
+ description: string;
1126
+ } | undefined;
1127
+ type?: {
1128
+ type: string;
1129
+ enum: import("@anhlp/alp-core/tasks").TaskType[];
1130
+ } | undefined;
1131
+ priority?: {
1132
+ type: string;
1133
+ description: string;
1134
+ } | undefined;
1135
+ labels?: {
1136
+ type: string;
1137
+ items: {
1138
+ type: string;
1139
+ };
1140
+ } | undefined;
1141
+ paths?: {
1142
+ type: string;
1143
+ items: {
1144
+ type: string;
1145
+ };
1146
+ description: string;
1147
+ } | undefined;
1148
+ parent?: {
1149
+ type: string;
1150
+ description: string;
1151
+ } | undefined;
1152
+ blockedBy?: {
1153
+ type: string;
1154
+ items: {
1155
+ type: string;
1156
+ };
1157
+ description: string;
1158
+ } | undefined;
1159
+ discoveredFrom?: {
1160
+ type: string;
1161
+ description: string;
1162
+ } | undefined;
1163
+ add?: {
1164
+ type: string;
1165
+ description: string;
1166
+ properties: {
1167
+ blockedBy: {
1168
+ type: string;
1169
+ items: {
1170
+ type: string;
1171
+ };
1172
+ description: string;
1173
+ };
1174
+ related: {
1175
+ type: string;
1176
+ items: {
1177
+ type: string;
1178
+ };
1179
+ };
1180
+ parent: {
1181
+ type: string;
1182
+ description: string;
1183
+ };
1184
+ };
1185
+ additionalProperties: boolean;
1186
+ } | undefined;
1187
+ remove?: {
1188
+ type: string;
1189
+ description: string;
1190
+ properties: {
1191
+ blockedBy: {
1192
+ type: string;
1193
+ items: {
1194
+ type: string;
1195
+ };
1196
+ description: string;
1197
+ };
1198
+ related: {
1199
+ type: string;
1200
+ items: {
1201
+ type: string;
1202
+ };
1203
+ };
1204
+ parent: {
1205
+ type: string;
1206
+ description: string;
1207
+ };
1208
+ };
1209
+ additionalProperties: boolean;
1210
+ } | undefined;
1211
+ reason?: {
1212
+ type: string;
1213
+ enum: import("@anhlp/alp-core/tasks").CloseReason[];
1214
+ description: string;
1215
+ } | undefined;
1216
+ kind?: {
1217
+ type: string;
1218
+ enum: import("@anhlp/alp-core/tasks").GateKind[];
1219
+ description: string;
1220
+ } | undefined;
1221
+ until?: {
1222
+ type: string;
1223
+ description: string;
1224
+ } | undefined;
1225
+ ref?: {
1226
+ type: string;
1227
+ description: string;
1228
+ } | undefined;
1229
+ gate?: {
1230
+ type: string;
1231
+ description: string;
1232
+ } | undefined;
1233
+ formula?: {
1234
+ type: string;
1235
+ description: string;
1236
+ } | undefined;
1237
+ vars?: {
1238
+ type: string;
1239
+ additionalProperties: {
1240
+ type: string;
1241
+ };
1242
+ description: string;
1243
+ } | undefined;
1244
+ summary?: {
1245
+ type: string;
1246
+ description: string;
1247
+ } | undefined;
1248
+ unverified?: {
1249
+ type: string;
1250
+ description: string;
1251
+ } | undefined;
1252
+ note?: {
1253
+ type: string;
1254
+ description: string;
1255
+ } | undefined;
1256
+ action: {
1257
+ type: string;
1258
+ enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1259
+ };
1260
+ id: {
1261
+ type: string;
1262
+ description: string;
1263
+ };
1264
+ };
1265
+ required: string[];
1266
+ additionalProperties: boolean;
1267
+ };
1268
+ } | {
1269
+ type: string;
1270
+ name: string;
1271
+ description: string;
1272
+ inputSchema: {
1273
+ type: string;
1274
+ properties: {
1275
+ taskId?: {
1276
+ type: string;
1277
+ description: string;
1278
+ } | undefined;
1279
+ agent: {
1280
+ type: string;
1281
+ enum: string[];
1282
+ };
1283
+ task: {
1284
+ type: string;
1285
+ description: string;
1286
+ };
1287
+ model: {
1288
+ type: string;
1289
+ description: string;
1290
+ };
1291
+ thinking: {
1292
+ type: string;
1293
+ description: string;
1294
+ };
1295
+ modelReason: {
1296
+ type: string;
1297
+ description: string;
1298
+ };
1299
+ mode: {
1300
+ type: string;
1301
+ enum: string[];
1302
+ description: string;
1303
+ };
1304
+ isolation: {
1305
+ type: string;
1306
+ enum: string[];
1307
+ description: string;
1308
+ };
1309
+ writeRoot: {
1310
+ type: string;
1311
+ description: string;
1312
+ };
1313
+ continueFrom: {
1314
+ type: string;
1315
+ description: string;
1316
+ };
1317
+ wait: {
1318
+ type: string;
1319
+ description: string;
1320
+ };
1321
+ etaMinutes: {
1322
+ type: string;
1323
+ minimum: number;
1324
+ maximum: number;
1325
+ description: string;
1326
+ };
1327
+ };
1328
+ required: string[];
1329
+ additionalProperties: boolean;
1330
+ };
1331
+ })[];
1332
+ floor?: "workspace-write" | "read-only" | undefined;
1333
+ permissions?: PermissionProfile | null | undefined;
1334
+ skills?: Array<{
1335
+ name: string;
1336
+ path: string;
1337
+ }>;
1338
+ config: {
1339
+ model_auto_compact_token_limit: number;
1340
+ };
1341
+ context?: undefined;
1342
+ runtime: RuntimeKind;
1343
+ cwd: string;
1344
+ model: any;
1345
+ sandbox: string;
1346
+ approvalPolicy: string;
1347
+ } | {
1348
+ developerInstructions: string;
1349
+ mcpServers: Record<string, unknown>;
1350
+ thinking: string;
1351
+ /**
1352
+ * ALP owns multi-agent orchestration.
1353
+ *
1354
+ * The adapter must disable/bypass the harness' native agent spawning
1355
+ * while preserving all other native Codex capabilities.
1356
+ */
1357
+ nativeMultiAgent: boolean;
1358
+ dynamicTools: ({
1359
+ type: string;
1360
+ name: string;
1361
+ description: string;
1362
+ inputSchema: {
1363
+ type: string;
1364
+ properties: {
1365
+ outcome: {
1366
+ type: string;
1367
+ enum: readonly ["complete", "partial", "blocked", "reconsider"];
1368
+ description: string;
1369
+ };
1370
+ summary: {
1371
+ type: string;
1372
+ description: string;
1373
+ };
1374
+ candidate: {
1375
+ type: string;
1376
+ items: {
1377
+ type: string;
1378
+ };
1379
+ description: string;
1380
+ };
1381
+ scope: {
1382
+ type: string;
1383
+ items: {
1384
+ type: string;
1385
+ };
1386
+ description: string;
1387
+ };
1388
+ verification: {
1389
+ type: string;
1390
+ items: {
1391
+ type: string;
1392
+ };
1393
+ description: string;
1394
+ };
1395
+ risks: {
1396
+ type: string;
1397
+ items: {
1398
+ type: string;
1399
+ };
1400
+ description: string;
1401
+ };
1402
+ discovered: {
1403
+ type: string;
1404
+ items: {
1405
+ type: string;
1406
+ };
1407
+ description: string;
1408
+ };
1409
+ ownership: {
1410
+ type: string;
1411
+ description: string;
1412
+ };
1413
+ verdict: {
1414
+ type: string;
1415
+ description: string;
1416
+ properties: {
1417
+ result: {
1418
+ type: string;
1419
+ enum: readonly ["pass", "pass_with_findings", "fail", "blocked"];
1420
+ };
1421
+ criteria: {
1422
+ type: string;
1423
+ items: {
1424
+ type: string;
1425
+ properties: {
1426
+ criterion: {
1427
+ type: string;
1428
+ description: string;
1429
+ };
1430
+ result: {
1431
+ type: string;
1432
+ enum: readonly ["pass", "fail", "not_checked"];
1433
+ };
1434
+ evidence: {
1435
+ type: string;
1436
+ description: string;
1437
+ };
1438
+ };
1439
+ required: string[];
1440
+ additionalProperties: boolean;
1441
+ };
1442
+ };
1443
+ findings: {
1444
+ type: string;
1445
+ items: {
1446
+ type: string;
1447
+ properties: {
1448
+ severity: {
1449
+ type: string;
1450
+ enum: readonly ["critical", "high", "medium", "low"];
1451
+ description: string;
1452
+ };
1453
+ where: {
1454
+ type: string;
1455
+ description: string;
1456
+ };
1457
+ problem: {
1458
+ type: string;
1459
+ description: string;
1460
+ };
1461
+ fix: {
1462
+ type: string;
1463
+ description: string;
1464
+ };
1465
+ };
1466
+ required: string[];
1467
+ additionalProperties: boolean;
1468
+ };
1469
+ };
1470
+ };
1471
+ required: string[];
1472
+ additionalProperties: boolean;
1473
+ };
1474
+ };
1475
+ required: string[];
1476
+ additionalProperties: boolean;
1477
+ };
1478
+ } | {
1479
+ type: string;
1480
+ name: string;
1481
+ description: string;
1482
+ inputSchema: {
1483
+ type: string;
1484
+ properties: {
1485
+ assignments: {
1486
+ type: string;
1487
+ items: {
1488
+ type: string;
1489
+ };
1490
+ description: string;
1491
+ };
1492
+ timeoutMs: {
1493
+ type: string;
1494
+ description: string;
1495
+ };
1496
+ };
1497
+ additionalProperties: boolean;
1498
+ };
1499
+ } | {
1500
+ type: string;
1501
+ name: string;
1502
+ description: string;
1503
+ inputSchema: {
1504
+ type: string;
1505
+ properties: {
1506
+ to: {
1507
+ type: string;
1508
+ description: string;
1509
+ };
1510
+ kind: {
1511
+ type: string;
1512
+ enum: string[];
1513
+ description: string;
1514
+ };
1515
+ body: {
1516
+ type: string;
1517
+ };
1518
+ replyTo: {
1519
+ type: string;
1520
+ description: string;
1521
+ };
1522
+ };
1523
+ required: string[];
1524
+ additionalProperties: boolean;
1525
+ };
1526
+ } | {
1527
+ type: string;
1528
+ name: string;
1529
+ description: string;
1530
+ inputSchema: {
1531
+ type: string;
1532
+ properties: {
1533
+ taskId: {
1534
+ type: string;
1535
+ description: string;
1536
+ };
1537
+ };
1538
+ additionalProperties: boolean;
1539
+ };
1540
+ } | {
1541
+ type: string;
1542
+ name: string;
1543
+ description: string;
1544
+ inputSchema: {
1545
+ type: string;
1546
+ properties: {
1547
+ assignmentId: {
1548
+ type: string;
1549
+ };
1550
+ };
1551
+ required: string[];
1552
+ additionalProperties: boolean;
1553
+ };
1554
+ } | {
1555
+ type: string;
1556
+ name: string;
1557
+ description: string;
1558
+ inputSchema: {
1559
+ type: string;
1560
+ properties: {
1561
+ kind: {
1562
+ type: string;
1563
+ enum: readonly ["claim", "decision", "finding"];
1564
+ };
1565
+ body: {
1566
+ type: string;
1567
+ description: string;
1568
+ };
1569
+ paths: {
1570
+ type: string;
1571
+ items: {
1572
+ type: string;
1573
+ };
1574
+ description: string;
1575
+ };
1576
+ };
1577
+ required: string[];
1578
+ additionalProperties: boolean;
1579
+ };
1580
+ } | {
1581
+ type: string;
1582
+ name: string;
1583
+ description: string;
1584
+ inputSchema: {
1585
+ type: string;
1586
+ properties: {
1587
+ kinds: {
1588
+ type: string;
1589
+ items: {
1590
+ type: string;
1591
+ enum: readonly ["claim", "decision", "finding"];
1592
+ };
1593
+ };
1594
+ limit: {
1595
+ type: string;
1596
+ description: string;
1597
+ };
1598
+ };
1599
+ additionalProperties: boolean;
1600
+ };
1601
+ } | {
1602
+ type: string;
1603
+ name: string;
1604
+ description: string;
1605
+ inputSchema: {
1606
+ type: string;
1607
+ properties: {
1608
+ pinId: {
1609
+ type: string;
1610
+ };
1611
+ };
1612
+ required: string[];
1613
+ additionalProperties: boolean;
1614
+ };
1615
+ } | {
1616
+ type: string;
1617
+ name: string;
1618
+ description: string;
1619
+ inputSchema: {
1620
+ type: string;
1621
+ properties: {
1622
+ question: {
1623
+ type: string;
1624
+ };
1625
+ to: {
1626
+ type: string;
1627
+ enum: string[];
1628
+ description: string;
1629
+ };
1630
+ options: {
1631
+ type: string;
1632
+ items: {
1633
+ type: string;
1634
+ };
1635
+ description: string;
1636
+ };
1637
+ };
1638
+ required: string[];
1639
+ additionalProperties: boolean;
1640
+ };
1641
+ } | {
1642
+ type: string;
1643
+ name: string;
1644
+ description: string;
1645
+ inputSchema: {
1646
+ type: string;
1647
+ properties: {
1648
+ scope: {
1649
+ type: string;
1650
+ enum: string[];
1651
+ };
1652
+ lesson: {
1653
+ type: string;
1654
+ description: string;
1655
+ };
1656
+ };
1657
+ required: string[];
1658
+ additionalProperties: boolean;
1659
+ };
1660
+ } | {
1661
+ type: string;
1662
+ name: string;
1663
+ description: string;
1664
+ inputSchema: {
1665
+ type: string;
1666
+ properties: {
1667
+ name: {
1668
+ type: string;
1669
+ description: string;
1670
+ };
1671
+ description: {
1672
+ type: string;
1673
+ description: string;
1674
+ };
1675
+ body: {
1676
+ type: string;
1677
+ description: string;
1678
+ };
1679
+ roles: {
1680
+ type: string;
1681
+ items: {
1682
+ type: string;
1683
+ };
1684
+ description: string;
1685
+ };
1686
+ lessons: {
1687
+ type: string;
1688
+ items: {
1689
+ type: string;
1690
+ };
1691
+ description: string;
1692
+ };
1693
+ replace: {
1694
+ type: string;
1695
+ description: string;
1696
+ };
1697
+ requestId: {
1698
+ type: string;
1699
+ description: string;
1700
+ };
1701
+ };
1702
+ required: string[];
1703
+ additionalProperties: boolean;
1704
+ };
1705
+ } | {
1706
+ type: string;
1707
+ name: string;
1708
+ description: string;
1709
+ inputSchema: {
1710
+ type: string;
1711
+ properties: {
1712
+ action: {
1713
+ type: string;
1714
+ enum: string[];
1715
+ };
1716
+ target: {
1717
+ type: string;
1718
+ enum: string[];
1719
+ };
1720
+ query: {
1721
+ type: string;
1722
+ description: string;
1723
+ };
1724
+ title: {
1725
+ type: string;
1726
+ description: string;
1727
+ };
1728
+ body: {
1729
+ type: string;
1730
+ description: string;
1731
+ };
1732
+ issue: {
1733
+ type: string;
1734
+ description: string;
1735
+ };
1736
+ requestId: {
1737
+ type: string;
1738
+ description: string;
1739
+ };
1740
+ labels: {
1741
+ type: string;
1742
+ items: {
1743
+ type: string;
1744
+ };
1745
+ description: string;
1746
+ };
1747
+ };
1748
+ required: string[];
1749
+ additionalProperties: boolean;
1750
+ };
1751
+ } | {
1752
+ type: string;
1753
+ name: string;
1754
+ description: string;
1755
+ inputSchema: {
1756
+ type: string;
1757
+ properties: {
1758
+ limit?: {
1759
+ type: string;
1760
+ description: string;
1761
+ } | undefined;
1762
+ status?: {
1763
+ type: string;
1764
+ enum: import("@anhlp/alp-core/tasks").TaskStatus[];
1765
+ description: string;
1766
+ } | undefined;
1767
+ label?: {
1768
+ type: string;
1769
+ description: string;
1770
+ } | undefined;
1771
+ title?: {
1772
+ type: string;
1773
+ description: string;
1774
+ } | undefined;
1775
+ description?: {
1776
+ type: string;
1777
+ description: string;
1778
+ } | undefined;
1779
+ type?: {
1780
+ type: string;
1781
+ enum: import("@anhlp/alp-core/tasks").TaskType[];
1782
+ } | undefined;
1783
+ priority?: {
1784
+ type: string;
1785
+ description: string;
1786
+ } | undefined;
1787
+ labels?: {
1788
+ type: string;
1789
+ items: {
1790
+ type: string;
1791
+ };
1792
+ } | undefined;
1793
+ paths?: {
1794
+ type: string;
1795
+ items: {
1796
+ type: string;
1797
+ };
1798
+ description: string;
1799
+ } | undefined;
1800
+ parent?: {
1801
+ type: string;
1802
+ description: string;
1803
+ } | undefined;
1804
+ blockedBy?: {
1805
+ type: string;
1806
+ items: {
1807
+ type: string;
1808
+ };
1809
+ description: string;
1810
+ } | undefined;
1811
+ discoveredFrom?: {
1812
+ type: string;
1813
+ description: string;
1814
+ } | undefined;
1815
+ add?: {
1816
+ type: string;
1817
+ description: string;
1818
+ properties: {
1819
+ blockedBy: {
1820
+ type: string;
1821
+ items: {
1822
+ type: string;
1823
+ };
1824
+ description: string;
1825
+ };
1826
+ related: {
1827
+ type: string;
1828
+ items: {
1829
+ type: string;
1830
+ };
1831
+ };
1832
+ parent: {
1833
+ type: string;
1834
+ description: string;
1835
+ };
1836
+ };
1837
+ additionalProperties: boolean;
1838
+ } | undefined;
1839
+ remove?: {
1840
+ type: string;
1841
+ description: string;
1842
+ properties: {
1843
+ blockedBy: {
1844
+ type: string;
1845
+ items: {
1846
+ type: string;
1847
+ };
1848
+ description: string;
1849
+ };
1850
+ related: {
1851
+ type: string;
1852
+ items: {
1853
+ type: string;
1854
+ };
1855
+ };
1856
+ parent: {
1857
+ type: string;
1858
+ description: string;
1859
+ };
1860
+ };
1861
+ additionalProperties: boolean;
1862
+ } | undefined;
1863
+ reason?: {
1864
+ type: string;
1865
+ enum: import("@anhlp/alp-core/tasks").CloseReason[];
1866
+ description: string;
1867
+ } | undefined;
1868
+ kind?: {
1869
+ type: string;
1870
+ enum: import("@anhlp/alp-core/tasks").GateKind[];
1871
+ description: string;
1872
+ } | undefined;
1873
+ until?: {
1874
+ type: string;
1875
+ description: string;
1876
+ } | undefined;
1877
+ ref?: {
1878
+ type: string;
1879
+ description: string;
1880
+ } | undefined;
1881
+ gate?: {
1882
+ type: string;
1883
+ description: string;
1884
+ } | undefined;
1885
+ formula?: {
1886
+ type: string;
1887
+ description: string;
1888
+ } | undefined;
1889
+ vars?: {
1890
+ type: string;
1891
+ additionalProperties: {
1892
+ type: string;
1893
+ };
1894
+ description: string;
1895
+ } | undefined;
1896
+ summary?: {
1897
+ type: string;
1898
+ description: string;
1899
+ } | undefined;
1900
+ unverified?: {
1901
+ type: string;
1902
+ description: string;
1903
+ } | undefined;
1904
+ note?: {
1905
+ type: string;
1906
+ description: string;
1907
+ } | undefined;
1908
+ action: {
1909
+ type: string;
1910
+ enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1911
+ };
1912
+ id: {
1913
+ type: string;
1914
+ description: string;
1915
+ };
1916
+ };
1917
+ required: string[];
1918
+ additionalProperties: boolean;
1919
+ };
1920
+ } | {
1921
+ type: string;
1922
+ name: string;
1923
+ description: string;
1924
+ inputSchema: {
1925
+ type: string;
1926
+ properties: {
1927
+ taskId?: {
1928
+ type: string;
1929
+ description: string;
1930
+ } | undefined;
1931
+ agent: {
1932
+ type: string;
1933
+ enum: string[];
1934
+ };
1935
+ task: {
1936
+ type: string;
1937
+ description: string;
1938
+ };
1939
+ model: {
1940
+ type: string;
1941
+ description: string;
1942
+ };
1943
+ thinking: {
1944
+ type: string;
1945
+ description: string;
1946
+ };
1947
+ modelReason: {
1948
+ type: string;
1949
+ description: string;
1950
+ };
1951
+ mode: {
1952
+ type: string;
1953
+ enum: string[];
1954
+ description: string;
1955
+ };
1956
+ isolation: {
1957
+ type: string;
1958
+ enum: string[];
1959
+ description: string;
1960
+ };
1961
+ writeRoot: {
1962
+ type: string;
1963
+ description: string;
1964
+ };
1965
+ continueFrom: {
1966
+ type: string;
1967
+ description: string;
1968
+ };
1969
+ wait: {
1970
+ type: string;
1971
+ description: string;
1972
+ };
1973
+ etaMinutes: {
1974
+ type: string;
1975
+ minimum: number;
1976
+ maximum: number;
1977
+ description: string;
1978
+ };
1979
+ };
1980
+ required: string[];
1981
+ additionalProperties: boolean;
1982
+ };
1983
+ })[];
1984
+ floor?: "workspace-write" | "read-only" | undefined;
1985
+ permissions?: PermissionProfile | null | undefined;
1986
+ skills?: Array<{
1987
+ name: string;
1988
+ path: string;
1989
+ }>;
1990
+ context?: undefined;
1991
+ config?: undefined;
1992
+ runtime: RuntimeKind;
1993
+ cwd: string;
1994
+ model: any;
1995
+ sandbox: string;
1996
+ approvalPolicy: string;
1997
+ };