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

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