@makaio/framework 1.0.0-dev-1782480236258 → 1.0.0-dev-1783282710723

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 (82) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/bus/index.d.mts +39 -1
  3. package/dist/bus/index.mjs +1 -1
  4. package/dist/bus-D-ioC0DE.mjs +1 -0
  5. package/dist/bus-rgUFuO2a.mjs +2 -0
  6. package/dist/contracts/adapter/index.d.mts +2 -2
  7. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  8. package/dist/contracts/artifact/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/config/index.d.mts +6 -6
  11. package/dist/contracts/extension/index.d.mts +3 -3
  12. package/dist/contracts/harness/index.d.mts +1 -1
  13. package/dist/contracts/index.d.mts +24 -24
  14. package/dist/contracts/materialization/index.d.mts +3 -3
  15. package/dist/contracts/provider/index.d.mts +1 -1
  16. package/dist/contracts/session/index.d.mts +2 -2
  17. package/dist/contracts/shared/index.d.mts +1 -1
  18. package/dist/contracts/workflow/index.d.mts +2 -2
  19. package/dist/{definition-DePb3ke-.d.mts → definition-DFcxkf2i.d.mts} +1 -1
  20. package/dist/{index-B1XsbrAr.d.mts → index-2fK9iSHI.d.mts} +3 -3
  21. package/dist/{index-Clqt7Nm3.d.mts → index-9b2_jXxq.d.mts} +2 -2
  22. package/dist/{index-D4gn93gL.d.mts → index-Bh6lHiW4.d.mts} +16 -16
  23. package/dist/{index-Cvjnj7Zh.d.mts → index-CL2T6LVv.d.mts} +8 -8
  24. package/dist/{index-BhOLtp0B.d.mts → index-CTEsbp9H.d.mts} +16 -16
  25. package/dist/{index-DsLpP5ek.d.mts → index-CaOWqztb.d.mts} +1 -1
  26. package/dist/{index-wfSedMR9.d.mts → index-CfIW5biI.d.mts} +1 -1
  27. package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
  28. package/dist/{index-Cyi7y_aG.d.mts → index-D6aAzr32.d.mts} +20 -20
  29. package/dist/{index-CYHWOXUm.d.mts → index-DEzdNQum.d.mts} +1 -1
  30. package/dist/{index-D8ScOpus.d.mts → index-DLy-tc0L.d.mts} +9 -9
  31. package/dist/{index-BKZhnb2B.d.mts → index-DdBRlm7m.d.mts} +3 -3
  32. package/dist/{index-0WhPbKnH.d.mts → index-Dg-y1mrq.d.mts} +8 -8
  33. package/dist/{index-C6SLILCZ.d.mts → index-GD-i3DW7.d.mts} +104 -104
  34. package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
  35. package/dist/{index-B5w-0Gg9.d.mts → index-Y2r0Zvcm.d.mts} +4 -4
  36. package/dist/kernel/extension/index.d.mts +1 -1
  37. package/dist/kernel/index.d.mts +2 -2
  38. package/dist/kernel/observability/index.d.mts +1 -1
  39. package/dist/{namespace-CGxFYDlK.d.mts → namespace-B4cV_pk3.d.mts} +32 -32
  40. package/dist/{namespace-Bm77p82L.d.mts → namespace-DGAWYjbO.d.mts} +5 -5
  41. package/dist/{namespace-Bmi5bjm4.d.mts → namespace-DXW-voCe.d.mts} +42 -42
  42. package/dist/{namespace-BeMGmLrp.d.mts → namespace-KMxsPJwm.d.mts} +9 -9
  43. package/dist/node/transports/index.d.mts +8 -0
  44. package/dist/node/transports/index.mjs +2 -2
  45. package/dist/package.json +1 -1
  46. package/dist/{schema-Bf_ZNjif.d.mts → schema-D1HrnvT7.d.mts} +2 -2
  47. package/dist/{schemas-C6TVJ80V2.d.mts → schemas-D-9zNyAM2.d.mts} +4 -4
  48. package/dist/{schemas-D512XweP.d.mts → schemas-DMCGXlKa.d.mts} +1 -1
  49. package/dist/scoped-bus-CZId-Df8.mjs +1 -0
  50. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  51. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  52. package/dist/services/context-rules/index.d.mts +6 -6
  53. package/dist/services/execution-target/index.d.mts +1 -1
  54. package/dist/services/filesystem/namespace.d.mts +6 -6
  55. package/dist/services/filesystem/schemas.d.mts +3 -3
  56. package/dist/services/git/namespace.d.mts +4 -4
  57. package/dist/services/git/schemas.d.mts +3 -3
  58. package/dist/services/index.d.mts +33 -33
  59. package/dist/services/index.mjs +1 -1
  60. package/dist/services/log-import/browser.d.mts +2 -2
  61. package/dist/services/log-import/index.d.mts +2 -2
  62. package/dist/services/log-import/log-import.d.mts +1 -1
  63. package/dist/services/log-import/namespace.d.mts +2 -2
  64. package/dist/services/log-import/schemas.d.mts +1 -1
  65. package/dist/services/session/index.d.mts +5 -5
  66. package/dist/services/session/messages/namespace.d.mts +1 -1
  67. package/dist/services/session/session-events/namespace.d.mts +1 -1
  68. package/dist/services/session/storage/namespace.d.mts +1 -1
  69. package/dist/services/session/storage/schema.d.mts +1 -1
  70. package/dist/services/settings/namespace.d.mts +7 -7
  71. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  72. package/dist/services/subagent-template/index.d.mts +1 -1
  73. package/dist/services/subagent-template/schemas.d.mts +1 -1
  74. package/dist/{session-lineage-5-wRBzuC.d.mts → session-lineage-DR-9DU-U.d.mts} +1 -1
  75. package/dist/{transition-CBjccCMw.d.mts → transition-DnXibkhX.d.mts} +1 -1
  76. package/dist/{types-InWSdi-V.d.mts → types-BslClRkH.d.mts} +1 -1
  77. package/dist/{types-8rhArs_K.d.mts → types-Dur8EtpR.d.mts} +38 -38
  78. package/dist/workflow-engine/index.d.mts +11 -11
  79. package/package.json +1 -1
  80. package/dist/bus-BgodbPl9.mjs +0 -2
  81. package/dist/bus-HgaFcCZ1.mjs +0 -1
  82. package/dist/scoped-bus-H3xMYR0E.mjs +0 -1
@@ -88,7 +88,7 @@ declare const SessionStorageNamespace$1: {
88
88
  tableName: "sessions";
89
89
  dataType: "string";
90
90
  columnType: "SQLiteText";
91
- data: "closed" | "discovered" | "active" | "archived";
91
+ data: "discovered" | "closed" | "active" | "archived";
92
92
  driverParam: string;
93
93
  notNull: true;
94
94
  hasDefault: false;
@@ -202,7 +202,7 @@ declare const SessionStorageNamespace$1: {
202
202
  tableName: "sessions";
203
203
  dataType: "string";
204
204
  columnType: "SQLiteText";
205
- data: "branch" | "fork" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside";
205
+ data: "fork" | "subagent" | "compress" | "branch" | "rewrite" | "coordinator" | "aside";
206
206
  driverParam: string;
207
207
  notNull: false;
208
208
  hasDefault: false;
@@ -1021,8 +1021,8 @@ declare const SessionStorageNamespace$1: {
1021
1021
  lastActivityAt: _$zod.ZodNumber;
1022
1022
  }, _$zod_v4_core0.$strip>>;
1023
1023
  status: _$zod.ZodEnum<{
1024
- closed: "closed";
1025
1024
  discovered: "discovered";
1025
+ closed: "closed";
1026
1026
  active: "active";
1027
1027
  archived: "archived";
1028
1028
  }>;
@@ -1035,10 +1035,10 @@ declare const SessionStorageNamespace$1: {
1035
1035
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1036
1036
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1037
1037
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1038
- branch: "branch";
1039
1038
  fork: "fork";
1040
1039
  subagent: "subagent";
1041
1040
  compress: "compress";
1041
+ branch: "branch";
1042
1042
  rewrite: "rewrite";
1043
1043
  coordinator: "coordinator";
1044
1044
  aside: "aside";
@@ -1141,8 +1141,8 @@ declare const SessionStorageNamespace$1: {
1141
1141
  lastActivityAt: _$zod.ZodNumber;
1142
1142
  }, _$zod_v4_core0.$strip>>;
1143
1143
  status: _$zod.ZodEnum<{
1144
- closed: "closed";
1145
1144
  discovered: "discovered";
1145
+ closed: "closed";
1146
1146
  active: "active";
1147
1147
  archived: "archived";
1148
1148
  }>;
@@ -1155,10 +1155,10 @@ declare const SessionStorageNamespace$1: {
1155
1155
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1156
1156
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1157
1157
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1158
- branch: "branch";
1159
1158
  fork: "fork";
1160
1159
  subagent: "subagent";
1161
1160
  compress: "compress";
1161
+ branch: "branch";
1162
1162
  rewrite: "rewrite";
1163
1163
  coordinator: "coordinator";
1164
1164
  aside: "aside";
@@ -1238,8 +1238,8 @@ declare const SessionStorageNamespace$1: {
1238
1238
  request: _$zod.ZodObject<{
1239
1239
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1240
1240
  all: "all";
1241
- closed: "closed";
1242
1241
  discovered: "discovered";
1242
+ closed: "closed";
1243
1243
  active: "active";
1244
1244
  archived: "archived";
1245
1245
  }>>;
@@ -1286,8 +1286,8 @@ declare const SessionStorageNamespace$1: {
1286
1286
  lastActivityAt: _$zod.ZodNumber;
1287
1287
  }, _$zod_v4_core0.$strip>>;
1288
1288
  status: _$zod.ZodEnum<{
1289
- closed: "closed";
1290
1289
  discovered: "discovered";
1290
+ closed: "closed";
1291
1291
  active: "active";
1292
1292
  archived: "archived";
1293
1293
  }>;
@@ -1300,10 +1300,10 @@ declare const SessionStorageNamespace$1: {
1300
1300
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1301
1301
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1302
1302
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1303
- branch: "branch";
1304
1303
  fork: "fork";
1305
1304
  subagent: "subagent";
1306
1305
  compress: "compress";
1306
+ branch: "branch";
1307
1307
  rewrite: "rewrite";
1308
1308
  coordinator: "coordinator";
1309
1309
  aside: "aside";
@@ -1381,10 +1381,10 @@ declare const SessionStorageNamespace$1: {
1381
1381
  title: _$zod.ZodNullable<_$zod.ZodString>;
1382
1382
  forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
1383
1383
  branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
1384
- branch: "branch";
1385
1384
  fork: "fork";
1386
1385
  subagent: "subagent";
1387
1386
  compress: "compress";
1387
+ branch: "branch";
1388
1388
  rewrite: "rewrite";
1389
1389
  coordinator: "coordinator";
1390
1390
  aside: "aside";
@@ -1401,8 +1401,8 @@ declare const SessionStorageNamespace$1: {
1401
1401
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1402
1402
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1403
1403
  all: "all";
1404
- closed: "closed";
1405
1404
  discovered: "discovered";
1405
+ closed: "closed";
1406
1406
  active: "active";
1407
1407
  archived: "archived";
1408
1408
  }>>;
@@ -1446,8 +1446,8 @@ declare const SessionStorageNamespace$1: {
1446
1446
  lastActivityAt: _$zod.ZodNumber;
1447
1447
  }, _$zod_v4_core0.$strip>>;
1448
1448
  status: _$zod.ZodEnum<{
1449
- closed: "closed";
1450
1449
  discovered: "discovered";
1450
+ closed: "closed";
1451
1451
  active: "active";
1452
1452
  archived: "archived";
1453
1453
  }>;
@@ -1460,10 +1460,10 @@ declare const SessionStorageNamespace$1: {
1460
1460
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1461
1461
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1462
1462
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1463
- branch: "branch";
1464
1463
  fork: "fork";
1465
1464
  subagent: "subagent";
1466
1465
  compress: "compress";
1466
+ branch: "branch";
1467
1467
  rewrite: "rewrite";
1468
1468
  coordinator: "coordinator";
1469
1469
  aside: "aside";
@@ -1535,8 +1535,8 @@ declare const SessionStorageNamespace$1: {
1535
1535
  request: _$zod.ZodObject<{
1536
1536
  sessionId: _$zod.ZodString;
1537
1537
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1538
- closed: "closed";
1539
1538
  discovered: "discovered";
1539
+ closed: "closed";
1540
1540
  active: "active";
1541
1541
  archived: "archived";
1542
1542
  }>>;
@@ -1548,10 +1548,10 @@ declare const SessionStorageNamespace$1: {
1548
1548
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1549
1549
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1550
1550
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1551
- branch: "branch";
1552
1551
  fork: "fork";
1553
1552
  subagent: "subagent";
1554
1553
  compress: "compress";
1554
+ branch: "branch";
1555
1555
  rewrite: "rewrite";
1556
1556
  coordinator: "coordinator";
1557
1557
  aside: "aside";
@@ -1628,8 +1628,8 @@ declare const SessionStorageNamespace$1: {
1628
1628
  lastActivityAt: _$zod.ZodNumber;
1629
1629
  }, _$zod_v4_core0.$strip>>;
1630
1630
  status: _$zod.ZodEnum<{
1631
- closed: "closed";
1632
1631
  discovered: "discovered";
1632
+ closed: "closed";
1633
1633
  active: "active";
1634
1634
  archived: "archived";
1635
1635
  }>;
@@ -1642,10 +1642,10 @@ declare const SessionStorageNamespace$1: {
1642
1642
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1643
1643
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1644
1644
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1645
- branch: "branch";
1646
1645
  fork: "fork";
1647
1646
  subagent: "subagent";
1648
1647
  compress: "compress";
1648
+ branch: "branch";
1649
1649
  rewrite: "rewrite";
1650
1650
  coordinator: "coordinator";
1651
1651
  aside: "aside";
@@ -1815,8 +1815,8 @@ declare const SessionStorageNamespace$1: {
1815
1815
  lastActivityAt: _$zod.ZodNumber;
1816
1816
  }, _$zod_v4_core0.$strip>>;
1817
1817
  status: _$zod.ZodEnum<{
1818
- closed: "closed";
1819
1818
  discovered: "discovered";
1819
+ closed: "closed";
1820
1820
  active: "active";
1821
1821
  archived: "archived";
1822
1822
  }>;
@@ -1829,10 +1829,10 @@ declare const SessionStorageNamespace$1: {
1829
1829
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1830
1830
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1831
1831
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1832
- branch: "branch";
1833
1832
  fork: "fork";
1834
1833
  subagent: "subagent";
1835
1834
  compress: "compress";
1835
+ branch: "branch";
1836
1836
  rewrite: "rewrite";
1837
1837
  coordinator: "coordinator";
1838
1838
  aside: "aside";
@@ -1942,8 +1942,8 @@ declare const SessionStorageNamespace$1: {
1942
1942
  lastActivityAt: _$zod.ZodNumber;
1943
1943
  }, _$zod_v4_core0.$strip>>;
1944
1944
  status: _$zod.ZodEnum<{
1945
- closed: "closed";
1946
1945
  discovered: "discovered";
1946
+ closed: "closed";
1947
1947
  active: "active";
1948
1948
  archived: "archived";
1949
1949
  }>;
@@ -1956,10 +1956,10 @@ declare const SessionStorageNamespace$1: {
1956
1956
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1957
1957
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
1958
1958
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
1959
- branch: "branch";
1960
1959
  fork: "fork";
1961
1960
  subagent: "subagent";
1962
1961
  compress: "compress";
1962
+ branch: "branch";
1963
1963
  rewrite: "rewrite";
1964
1964
  coordinator: "coordinator";
1965
1965
  aside: "aside";
@@ -2090,8 +2090,8 @@ declare const SessionStorageNamespace$1: {
2090
2090
  lastActivityAt: _$zod.ZodNumber;
2091
2091
  }, _$zod_v4_core0.$strip>>;
2092
2092
  status: _$zod.ZodEnum<{
2093
- closed: "closed";
2094
2093
  discovered: "discovered";
2094
+ closed: "closed";
2095
2095
  active: "active";
2096
2096
  archived: "archived";
2097
2097
  }>;
@@ -2104,10 +2104,10 @@ declare const SessionStorageNamespace$1: {
2104
2104
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2105
2105
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2106
2106
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2107
- branch: "branch";
2108
2107
  fork: "fork";
2109
2108
  subagent: "subagent";
2110
2109
  compress: "compress";
2110
+ branch: "branch";
2111
2111
  rewrite: "rewrite";
2112
2112
  coordinator: "coordinator";
2113
2113
  aside: "aside";
@@ -2210,8 +2210,8 @@ declare const SessionStorageNamespace$1: {
2210
2210
  lastActivityAt: _$zod.ZodNumber;
2211
2211
  }, _$zod_v4_core0.$strip>>;
2212
2212
  status: _$zod.ZodEnum<{
2213
- closed: "closed";
2214
2213
  discovered: "discovered";
2214
+ closed: "closed";
2215
2215
  active: "active";
2216
2216
  archived: "archived";
2217
2217
  }>;
@@ -2224,10 +2224,10 @@ declare const SessionStorageNamespace$1: {
2224
2224
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2225
2225
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2226
2226
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2227
- branch: "branch";
2228
2227
  fork: "fork";
2229
2228
  subagent: "subagent";
2230
2229
  compress: "compress";
2230
+ branch: "branch";
2231
2231
  rewrite: "rewrite";
2232
2232
  coordinator: "coordinator";
2233
2233
  aside: "aside";
@@ -2307,8 +2307,8 @@ declare const SessionStorageNamespace$1: {
2307
2307
  request: _$zod.ZodObject<{
2308
2308
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2309
2309
  all: "all";
2310
- closed: "closed";
2311
2310
  discovered: "discovered";
2311
+ closed: "closed";
2312
2312
  active: "active";
2313
2313
  archived: "archived";
2314
2314
  }>>;
@@ -2355,8 +2355,8 @@ declare const SessionStorageNamespace$1: {
2355
2355
  lastActivityAt: _$zod.ZodNumber;
2356
2356
  }, _$zod_v4_core0.$strip>>;
2357
2357
  status: _$zod.ZodEnum<{
2358
- closed: "closed";
2359
2358
  discovered: "discovered";
2359
+ closed: "closed";
2360
2360
  active: "active";
2361
2361
  archived: "archived";
2362
2362
  }>;
@@ -2369,10 +2369,10 @@ declare const SessionStorageNamespace$1: {
2369
2369
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2370
2370
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2371
2371
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2372
- branch: "branch";
2373
2372
  fork: "fork";
2374
2373
  subagent: "subagent";
2375
2374
  compress: "compress";
2375
+ branch: "branch";
2376
2376
  rewrite: "rewrite";
2377
2377
  coordinator: "coordinator";
2378
2378
  aside: "aside";
@@ -2450,10 +2450,10 @@ declare const SessionStorageNamespace$1: {
2450
2450
  title: _$zod.ZodNullable<_$zod.ZodString>;
2451
2451
  forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
2452
2452
  branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
2453
- branch: "branch";
2454
2453
  fork: "fork";
2455
2454
  subagent: "subagent";
2456
2455
  compress: "compress";
2456
+ branch: "branch";
2457
2457
  rewrite: "rewrite";
2458
2458
  coordinator: "coordinator";
2459
2459
  aside: "aside";
@@ -2470,8 +2470,8 @@ declare const SessionStorageNamespace$1: {
2470
2470
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
2471
2471
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2472
2472
  all: "all";
2473
- closed: "closed";
2474
2473
  discovered: "discovered";
2474
+ closed: "closed";
2475
2475
  active: "active";
2476
2476
  archived: "archived";
2477
2477
  }>>;
@@ -2515,8 +2515,8 @@ declare const SessionStorageNamespace$1: {
2515
2515
  lastActivityAt: _$zod.ZodNumber;
2516
2516
  }, _$zod_v4_core0.$strip>>;
2517
2517
  status: _$zod.ZodEnum<{
2518
- closed: "closed";
2519
2518
  discovered: "discovered";
2519
+ closed: "closed";
2520
2520
  active: "active";
2521
2521
  archived: "archived";
2522
2522
  }>;
@@ -2529,10 +2529,10 @@ declare const SessionStorageNamespace$1: {
2529
2529
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2530
2530
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2531
2531
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2532
- branch: "branch";
2533
2532
  fork: "fork";
2534
2533
  subagent: "subagent";
2535
2534
  compress: "compress";
2535
+ branch: "branch";
2536
2536
  rewrite: "rewrite";
2537
2537
  coordinator: "coordinator";
2538
2538
  aside: "aside";
@@ -2604,8 +2604,8 @@ declare const SessionStorageNamespace$1: {
2604
2604
  request: _$zod.ZodObject<{
2605
2605
  sessionId: _$zod.ZodString;
2606
2606
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2607
- closed: "closed";
2608
2607
  discovered: "discovered";
2608
+ closed: "closed";
2609
2609
  active: "active";
2610
2610
  archived: "archived";
2611
2611
  }>>;
@@ -2617,10 +2617,10 @@ declare const SessionStorageNamespace$1: {
2617
2617
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2618
2618
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2619
2619
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2620
- branch: "branch";
2621
2620
  fork: "fork";
2622
2621
  subagent: "subagent";
2623
2622
  compress: "compress";
2623
+ branch: "branch";
2624
2624
  rewrite: "rewrite";
2625
2625
  coordinator: "coordinator";
2626
2626
  aside: "aside";
@@ -2697,8 +2697,8 @@ declare const SessionStorageNamespace$1: {
2697
2697
  lastActivityAt: _$zod.ZodNumber;
2698
2698
  }, _$zod_v4_core0.$strip>>;
2699
2699
  status: _$zod.ZodEnum<{
2700
- closed: "closed";
2701
2700
  discovered: "discovered";
2701
+ closed: "closed";
2702
2702
  active: "active";
2703
2703
  archived: "archived";
2704
2704
  }>;
@@ -2711,10 +2711,10 @@ declare const SessionStorageNamespace$1: {
2711
2711
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2712
2712
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2713
2713
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2714
- branch: "branch";
2715
2714
  fork: "fork";
2716
2715
  subagent: "subagent";
2717
2716
  compress: "compress";
2717
+ branch: "branch";
2718
2718
  rewrite: "rewrite";
2719
2719
  coordinator: "coordinator";
2720
2720
  aside: "aside";
@@ -2884,8 +2884,8 @@ declare const SessionStorageNamespace$1: {
2884
2884
  lastActivityAt: _$zod.ZodNumber;
2885
2885
  }, _$zod_v4_core0.$strip>>;
2886
2886
  status: _$zod.ZodEnum<{
2887
- closed: "closed";
2888
2887
  discovered: "discovered";
2888
+ closed: "closed";
2889
2889
  active: "active";
2890
2890
  archived: "archived";
2891
2891
  }>;
@@ -2898,10 +2898,10 @@ declare const SessionStorageNamespace$1: {
2898
2898
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2899
2899
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
2900
2900
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
2901
- branch: "branch";
2902
2901
  fork: "fork";
2903
2902
  subagent: "subagent";
2904
2903
  compress: "compress";
2904
+ branch: "branch";
2905
2905
  rewrite: "rewrite";
2906
2906
  coordinator: "coordinator";
2907
2907
  aside: "aside";
@@ -3011,8 +3011,8 @@ declare const SessionStorageNamespace$1: {
3011
3011
  lastActivityAt: _$zod.ZodNumber;
3012
3012
  }, _$zod_v4_core0.$strip>>;
3013
3013
  status: _$zod.ZodEnum<{
3014
- closed: "closed";
3015
3014
  discovered: "discovered";
3015
+ closed: "closed";
3016
3016
  active: "active";
3017
3017
  archived: "archived";
3018
3018
  }>;
@@ -3025,10 +3025,10 @@ declare const SessionStorageNamespace$1: {
3025
3025
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
3026
3026
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
3027
3027
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
3028
- branch: "branch";
3029
3028
  fork: "fork";
3030
3029
  subagent: "subagent";
3031
3030
  compress: "compress";
3031
+ branch: "branch";
3032
3032
  rewrite: "rewrite";
3033
3033
  coordinator: "coordinator";
3034
3034
  aside: "aside";
@@ -3149,13 +3149,13 @@ declare const SessionStorageNamespace$1: {
3149
3149
  clientId?: string | undefined;
3150
3150
  compressionMode?: "auto" | "manual" | "off" | undefined;
3151
3151
  }[];
3152
- status: "closed" | "discovered" | "active" | "archived";
3152
+ status: "discovered" | "closed" | "active" | "archived";
3153
3153
  leadAgentId?: string | undefined;
3154
3154
  parentSessionId?: string | undefined;
3155
3155
  contextInheritance?: "none" | "parent-history" | undefined;
3156
3156
  rootSessionId?: string | undefined;
3157
3157
  forkPointMessageId?: string | undefined;
3158
- branchKind?: "branch" | "fork" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside" | undefined;
3158
+ branchKind?: "fork" | "subagent" | "compress" | "branch" | "rewrite" | "coordinator" | "aside" | undefined;
3159
3159
  adapterName?: string | undefined;
3160
3160
  adapterSessionId?: string | undefined;
3161
3161
  adapterId?: string | undefined;
@@ -536,10 +536,10 @@ declare const SessionEventStorageNamespace$1: {
536
536
  childSessionId: _$zod.ZodString;
537
537
  parentSessionId: _$zod.ZodString;
538
538
  kind: _$zod.ZodEnum<{
539
- branch: "branch";
540
539
  fork: "fork";
541
540
  subagent: "subagent";
542
541
  compress: "compress";
542
+ branch: "branch";
543
543
  rewrite: "rewrite";
544
544
  coordinator: "coordinator";
545
545
  aside: "aside";
@@ -866,10 +866,10 @@ declare const SessionEventStorageNamespace$1: {
866
866
  childSessionId: _$zod.ZodString;
867
867
  parentSessionId: _$zod.ZodString;
868
868
  kind: _$zod.ZodEnum<{
869
- branch: "branch";
870
869
  fork: "fork";
871
870
  subagent: "subagent";
872
871
  compress: "compress";
872
+ branch: "branch";
873
873
  rewrite: "rewrite";
874
874
  coordinator: "coordinator";
875
875
  aside: "aside";
@@ -1186,10 +1186,10 @@ declare const SessionEventStorageNamespace$1: {
1186
1186
  childSessionId: _$zod.ZodString;
1187
1187
  parentSessionId: _$zod.ZodString;
1188
1188
  kind: _$zod.ZodEnum<{
1189
- branch: "branch";
1190
1189
  fork: "fork";
1191
1190
  subagent: "subagent";
1192
1191
  compress: "compress";
1192
+ branch: "branch";
1193
1193
  rewrite: "rewrite";
1194
1194
  coordinator: "coordinator";
1195
1195
  aside: "aside";
@@ -1514,10 +1514,10 @@ declare const SessionEventStorageNamespace$1: {
1514
1514
  childSessionId: _$zod.ZodString;
1515
1515
  parentSessionId: _$zod.ZodString;
1516
1516
  kind: _$zod.ZodEnum<{
1517
- branch: "branch";
1518
1517
  fork: "fork";
1519
1518
  subagent: "subagent";
1520
1519
  compress: "compress";
1520
+ branch: "branch";
1521
1521
  rewrite: "rewrite";
1522
1522
  coordinator: "coordinator";
1523
1523
  aside: "aside";
@@ -1830,10 +1830,10 @@ declare const SessionEventStorageNamespace$1: {
1830
1830
  childSessionId: _$zod.ZodString;
1831
1831
  parentSessionId: _$zod.ZodString;
1832
1832
  kind: _$zod.ZodEnum<{
1833
- branch: "branch";
1834
1833
  fork: "fork";
1835
1834
  subagent: "subagent";
1836
1835
  compress: "compress";
1836
+ branch: "branch";
1837
1837
  rewrite: "rewrite";
1838
1838
  coordinator: "coordinator";
1839
1839
  aside: "aside";
@@ -2160,10 +2160,10 @@ declare const SessionEventStorageNamespace$1: {
2160
2160
  childSessionId: _$zod.ZodString;
2161
2161
  parentSessionId: _$zod.ZodString;
2162
2162
  kind: _$zod.ZodEnum<{
2163
- branch: "branch";
2164
2163
  fork: "fork";
2165
2164
  subagent: "subagent";
2166
2165
  compress: "compress";
2166
+ branch: "branch";
2167
2167
  rewrite: "rewrite";
2168
2168
  coordinator: "coordinator";
2169
2169
  aside: "aside";
@@ -2480,10 +2480,10 @@ declare const SessionEventStorageNamespace$1: {
2480
2480
  childSessionId: _$zod.ZodString;
2481
2481
  parentSessionId: _$zod.ZodString;
2482
2482
  kind: _$zod.ZodEnum<{
2483
- branch: "branch";
2484
2483
  fork: "fork";
2485
2484
  subagent: "subagent";
2486
2485
  compress: "compress";
2486
+ branch: "branch";
2487
2487
  rewrite: "rewrite";
2488
2488
  coordinator: "coordinator";
2489
2489
  aside: "aside";
@@ -2808,10 +2808,10 @@ declare const SessionEventStorageNamespace$1: {
2808
2808
  childSessionId: _$zod.ZodString;
2809
2809
  parentSessionId: _$zod.ZodString;
2810
2810
  kind: _$zod.ZodEnum<{
2811
- branch: "branch";
2812
2811
  fork: "fork";
2813
2812
  subagent: "subagent";
2814
2813
  compress: "compress";
2814
+ branch: "branch";
2815
2815
  rewrite: "rewrite";
2816
2816
  coordinator: "coordinator";
2817
2817
  aside: "aside";
@@ -3086,7 +3086,7 @@ declare const SessionEventStorageNamespace$1: {
3086
3086
  payload: {
3087
3087
  childSessionId: string;
3088
3088
  parentSessionId: string;
3089
- kind: "branch" | "fork" | "subagent" | "compress" | "rewrite" | "coordinator" | "aside";
3089
+ kind: "fork" | "subagent" | "compress" | "branch" | "rewrite" | "coordinator" | "aside";
3090
3090
  forkPointMessageId?: string | undefined;
3091
3091
  };
3092
3092
  } | {
@@ -1069,6 +1069,14 @@ declare class WebSocketClientTransport implements BusTransport {
1069
1069
  private closeListener;
1070
1070
  /** AbortController for the active reconnect loop; `null` when not connected. */
1071
1071
  private reconnectAbort;
1072
+ /**
1073
+ * In-flight `handleInboundMessage` promises for the current socket session.
1074
+ *
1075
+ * Reset to a new `Set` at the start of each connection attempt so that the
1076
+ * drain-before-rejectAll logic in `drainAndRejectPendingCorrelations` only
1077
+ * waits on the promises belonging to the active session.
1078
+ */
1079
+ private inFlightMessages;
1072
1080
  /** AbortController for the current backoff sleep; aborting wakes the sleep early. */
1073
1081
  private backoffWakeAbort;
1074
1082
  /**