@anhlp/alp-runtime 0.0.0-beta.2 → 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 (97) hide show
  1. package/dist/acp-transport.js +7 -36
  2. package/dist/antigravity-transport.d.ts +27 -2
  3. package/dist/antigravity-transport.js +104 -58
  4. package/dist/assignment-results.d.ts +55 -0
  5. package/dist/assignment-results.js +181 -0
  6. package/dist/attachments.d.ts +84 -0
  7. package/dist/attachments.js +213 -0
  8. package/dist/board-domain.js +2 -2
  9. package/dist/board.d.ts +6 -0
  10. package/dist/board.js +7 -0
  11. package/dist/catalog.d.ts +13 -0
  12. package/dist/catalog.js +11 -2
  13. package/dist/claude-transport.d.ts +80 -0
  14. package/dist/claude-transport.js +271 -23
  15. package/dist/compact.d.ts +29 -0
  16. package/dist/compact.js +49 -0
  17. package/dist/configure.d.ts +44 -0
  18. package/dist/configure.js +64 -0
  19. package/dist/contracts.d.ts +216 -7
  20. package/dist/contracts.js +11 -0
  21. package/dist/conversation.d.ts +45 -0
  22. package/dist/conversation.js +62 -0
  23. package/dist/index.d.ts +18 -5
  24. package/dist/index.js +48 -4
  25. package/dist/input-limits.d.ts +25 -0
  26. package/dist/input-limits.js +48 -0
  27. package/dist/language.d.ts +10 -0
  28. package/dist/language.js +26 -0
  29. package/dist/live.d.ts +2 -2
  30. package/dist/live.js +7 -2
  31. package/dist/mailbox.d.ts +2 -0
  32. package/dist/mailbox.js +3 -1
  33. package/dist/mcp-tools.d.ts +8 -0
  34. package/dist/mcp-tools.js +26 -0
  35. package/dist/model-catalog.d.ts +162 -0
  36. package/dist/model-catalog.js +338 -0
  37. package/dist/model-probes.d.ts +7 -0
  38. package/dist/model-probes.js +69 -0
  39. package/dist/providers.js +2 -0
  40. package/dist/recall.d.ts +2 -2
  41. package/dist/recall.js +4 -3
  42. package/dist/resolve.d.ts +2 -0
  43. package/dist/resolve.js +9 -5
  44. package/dist/runtime-context.d.ts +1 -1
  45. package/dist/runtime-context.js +1 -1
  46. package/dist/runtime.d.ts +9 -0
  47. package/dist/runtime.js +2078 -269
  48. package/dist/session-config.d.ts +378 -6
  49. package/dist/session-config.js +19 -15
  50. package/dist/session-state.d.ts +54 -7
  51. package/dist/skill-resources.d.ts +30 -0
  52. package/dist/skill-resources.js +55 -0
  53. package/dist/tool-detail.js +4 -1
  54. package/dist/tools.d.ts +154 -1
  55. package/dist/tools.js +99 -11
  56. package/dist/transport.js +3 -1
  57. package/dist/workspace.d.ts +31 -5
  58. package/dist/workspace.js +92 -11
  59. package/dist/worktree-domain.d.ts +2 -1
  60. package/dist/worktree-domain.js +4 -1
  61. package/dist/write-error.d.ts +2 -0
  62. package/dist/write-error.js +10 -0
  63. package/package.json +12 -4
  64. package/src/acp-transport.ts +10 -37
  65. package/src/antigravity-transport.ts +128 -55
  66. package/src/assignment-results.ts +154 -0
  67. package/src/attachments.ts +254 -0
  68. package/src/board-domain.ts +2 -2
  69. package/src/board.ts +7 -0
  70. package/src/catalog.ts +13 -2
  71. package/src/claude-transport.ts +333 -23
  72. package/src/compact.ts +62 -0
  73. package/src/configure.ts +93 -0
  74. package/src/contracts.ts +199 -8
  75. package/src/conversation.ts +81 -0
  76. package/src/index.ts +18 -5
  77. package/src/input-limits.ts +65 -0
  78. package/src/language.ts +28 -0
  79. package/src/live.ts +7 -3
  80. package/src/mailbox.ts +4 -1
  81. package/src/mcp-tools.ts +33 -0
  82. package/src/model-catalog.ts +316 -0
  83. package/src/model-probes.ts +58 -0
  84. package/src/providers.ts +3 -0
  85. package/src/recall.ts +4 -3
  86. package/src/resolve.ts +15 -7
  87. package/src/runtime-context.ts +2 -2
  88. package/src/runtime.ts +2253 -264
  89. package/src/session-config.ts +25 -14
  90. package/src/session-state.ts +39 -3
  91. package/src/skill-resources.ts +73 -0
  92. package/src/tool-detail.ts +4 -1
  93. package/src/tools.ts +97 -10
  94. package/src/transport.ts +3 -1
  95. package/src/workspace.ts +124 -18
  96. package/src/worktree-domain.ts +5 -1
  97. package/src/write-error.ts +4 -0
@@ -268,7 +268,9 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
268
268
  type: string;
269
269
  items: {
270
270
  type: string;
271
+ maxLength: number;
271
272
  };
273
+ maxItems: number;
272
274
  description: string;
273
275
  };
274
276
  };
@@ -288,6 +290,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
288
290
  type: string;
289
291
  enum: readonly ["claim", "decision", "finding"];
290
292
  };
293
+ maxItems: 3;
291
294
  };
292
295
  limit: {
293
296
  type: string;
@@ -355,6 +358,51 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
355
358
  required: string[];
356
359
  additionalProperties: boolean;
357
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
+ };
358
406
  } | {
359
407
  type: string;
360
408
  name: string;
@@ -392,6 +440,33 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
392
440
  type: string;
393
441
  description: string;
394
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
+ };
395
470
  };
396
471
  required: string[];
397
472
  additionalProperties: boolean;
@@ -427,6 +502,10 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
427
502
  type: string;
428
503
  description: string;
429
504
  };
505
+ requestId: {
506
+ type: string;
507
+ description: string;
508
+ };
430
509
  labels: {
431
510
  type: string;
432
511
  items: {
@@ -568,6 +647,15 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
568
647
  type: string;
569
648
  description: string;
570
649
  } | undefined;
650
+ options?: {
651
+ type: string;
652
+ items: {
653
+ type: string;
654
+ maxLength: number;
655
+ };
656
+ maxItems: number;
657
+ description: string;
658
+ } | undefined;
571
659
  gate?: {
572
660
  type: string;
573
661
  description: string;
@@ -580,6 +668,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
580
668
  type: string;
581
669
  additionalProperties: {
582
670
  type: string;
671
+ maxLength: number;
583
672
  };
584
673
  description: string;
585
674
  } | undefined;
@@ -597,7 +686,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
597
686
  } | undefined;
598
687
  action: {
599
688
  type: string;
600
- enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
689
+ enum: ("link" | "close" | "list" | "create" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
601
690
  };
602
691
  id: {
603
692
  type: string;
@@ -607,6 +696,41 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
607
696
  required: string[];
608
697
  additionalProperties: boolean;
609
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
+ };
610
734
  } | {
611
735
  type: string;
612
736
  name: string;
@@ -671,7 +795,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
671
795
  additionalProperties: boolean;
672
796
  };
673
797
  })[];
674
- floor?: "workspace-write" | "read-only" | undefined;
798
+ floor?: "read-only" | "workspace-write" | undefined;
675
799
  permissions?: PermissionProfile | null | undefined;
676
800
  skills?: Array<{
677
801
  name: string;
@@ -910,7 +1034,9 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
910
1034
  type: string;
911
1035
  items: {
912
1036
  type: string;
1037
+ maxLength: number;
913
1038
  };
1039
+ maxItems: number;
914
1040
  description: string;
915
1041
  };
916
1042
  };
@@ -930,6 +1056,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
930
1056
  type: string;
931
1057
  enum: readonly ["claim", "decision", "finding"];
932
1058
  };
1059
+ maxItems: 3;
933
1060
  };
934
1061
  limit: {
935
1062
  type: string;
@@ -997,6 +1124,51 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
997
1124
  required: string[];
998
1125
  additionalProperties: boolean;
999
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
+ };
1000
1172
  } | {
1001
1173
  type: string;
1002
1174
  name: string;
@@ -1034,6 +1206,33 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1034
1206
  type: string;
1035
1207
  description: string;
1036
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
+ };
1037
1236
  };
1038
1237
  required: string[];
1039
1238
  additionalProperties: boolean;
@@ -1069,6 +1268,10 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1069
1268
  type: string;
1070
1269
  description: string;
1071
1270
  };
1271
+ requestId: {
1272
+ type: string;
1273
+ description: string;
1274
+ };
1072
1275
  labels: {
1073
1276
  type: string;
1074
1277
  items: {
@@ -1210,6 +1413,15 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1210
1413
  type: string;
1211
1414
  description: string;
1212
1415
  } | undefined;
1416
+ options?: {
1417
+ type: string;
1418
+ items: {
1419
+ type: string;
1420
+ maxLength: number;
1421
+ };
1422
+ maxItems: number;
1423
+ description: string;
1424
+ } | undefined;
1213
1425
  gate?: {
1214
1426
  type: string;
1215
1427
  description: string;
@@ -1222,6 +1434,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1222
1434
  type: string;
1223
1435
  additionalProperties: {
1224
1436
  type: string;
1437
+ maxLength: number;
1225
1438
  };
1226
1439
  description: string;
1227
1440
  } | undefined;
@@ -1239,7 +1452,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1239
1452
  } | undefined;
1240
1453
  action: {
1241
1454
  type: string;
1242
- enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1455
+ enum: ("link" | "close" | "list" | "create" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1243
1456
  };
1244
1457
  id: {
1245
1458
  type: string;
@@ -1249,6 +1462,41 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1249
1462
  required: string[];
1250
1463
  additionalProperties: boolean;
1251
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
+ };
1252
1500
  } | {
1253
1501
  type: string;
1254
1502
  name: string;
@@ -1313,7 +1561,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1313
1561
  additionalProperties: boolean;
1314
1562
  };
1315
1563
  })[];
1316
- floor?: "workspace-write" | "read-only" | undefined;
1564
+ floor?: "read-only" | "workspace-write" | undefined;
1317
1565
  permissions?: PermissionProfile | null | undefined;
1318
1566
  skills?: Array<{
1319
1567
  name: string;
@@ -1554,7 +1802,9 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1554
1802
  type: string;
1555
1803
  items: {
1556
1804
  type: string;
1805
+ maxLength: number;
1557
1806
  };
1807
+ maxItems: number;
1558
1808
  description: string;
1559
1809
  };
1560
1810
  };
@@ -1574,6 +1824,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1574
1824
  type: string;
1575
1825
  enum: readonly ["claim", "decision", "finding"];
1576
1826
  };
1827
+ maxItems: 3;
1577
1828
  };
1578
1829
  limit: {
1579
1830
  type: string;
@@ -1641,6 +1892,51 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1641
1892
  required: string[];
1642
1893
  additionalProperties: boolean;
1643
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
+ };
1644
1940
  } | {
1645
1941
  type: string;
1646
1942
  name: string;
@@ -1678,6 +1974,33 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1678
1974
  type: string;
1679
1975
  description: string;
1680
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
+ };
1681
2004
  };
1682
2005
  required: string[];
1683
2006
  additionalProperties: boolean;
@@ -1713,6 +2036,10 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1713
2036
  type: string;
1714
2037
  description: string;
1715
2038
  };
2039
+ requestId: {
2040
+ type: string;
2041
+ description: string;
2042
+ };
1716
2043
  labels: {
1717
2044
  type: string;
1718
2045
  items: {
@@ -1854,6 +2181,15 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1854
2181
  type: string;
1855
2182
  description: string;
1856
2183
  } | undefined;
2184
+ options?: {
2185
+ type: string;
2186
+ items: {
2187
+ type: string;
2188
+ maxLength: number;
2189
+ };
2190
+ maxItems: number;
2191
+ description: string;
2192
+ } | undefined;
1857
2193
  gate?: {
1858
2194
  type: string;
1859
2195
  description: string;
@@ -1866,6 +2202,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1866
2202
  type: string;
1867
2203
  additionalProperties: {
1868
2204
  type: string;
2205
+ maxLength: number;
1869
2206
  };
1870
2207
  description: string;
1871
2208
  } | undefined;
@@ -1883,7 +2220,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1883
2220
  } | undefined;
1884
2221
  action: {
1885
2222
  type: string;
1886
- enum: ("close" | "list" | "create" | "link" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
2223
+ enum: ("link" | "close" | "list" | "create" | "update" | "start" | "reopen" | "gate" | "clear" | "pour" | "formulas" | "show" | "ready")[];
1887
2224
  };
1888
2225
  id: {
1889
2226
  type: string;
@@ -1893,6 +2230,41 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1893
2230
  required: string[];
1894
2231
  additionalProperties: boolean;
1895
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
+ };
1896
2268
  } | {
1897
2269
  type: string;
1898
2270
  name: string;
@@ -1957,7 +2329,7 @@ export declare function nativeSessionConfig(runtimeKind: RuntimeKind, mapping: R
1957
2329
  additionalProperties: boolean;
1958
2330
  };
1959
2331
  })[];
1960
- floor?: "workspace-write" | "read-only" | undefined;
2332
+ floor?: "read-only" | "workspace-write" | undefined;
1961
2333
  permissions?: PermissionProfile | null | undefined;
1962
2334
  skills?: Array<{
1963
2335
  name: string;