@makaio/framework 1.0.0-dev-1783355411417 → 1.0.0-dev-1783439621927

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 (146) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-Lx6K7yQS.mjs +1 -0
  3. package/dist/adapter-subsystem/index.mjs +1 -1
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/index.d.mts +219 -40
  6. package/dist/adapters/index.mjs +6 -6
  7. package/dist/adapters/node.d.mts +1 -1
  8. package/dist/adapters/node.mjs +1 -1
  9. package/dist/{base-orchestrator-BNysGvaM.d.mts → base-orchestrator-ODRyDBzu.d.mts} +9 -1
  10. package/dist/bus/index.mjs +1 -1
  11. package/dist/client-n0OJiTt1.mjs +1 -0
  12. package/dist/contracts/adapter/index.d.mts +2 -2
  13. package/dist/contracts/adapter/index.mjs +1 -1
  14. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  15. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -1
  16. package/dist/contracts/artifact/index.d.mts +1 -1
  17. package/dist/contracts/client/index.d.mts +2 -2
  18. package/dist/contracts/client/index.mjs +1 -1
  19. package/dist/contracts/config/index.d.mts +6 -6
  20. package/dist/contracts/extension/index.d.mts +3 -3
  21. package/dist/contracts/facet/index.d.mts +1 -1
  22. package/dist/contracts/harness/index.d.mts +1 -1
  23. package/dist/contracts/index.d.mts +372 -194
  24. package/dist/contracts/index.mjs +1 -1
  25. package/dist/contracts/materialization/index.d.mts +2 -2
  26. package/dist/contracts/provider/index.d.mts +1 -1
  27. package/dist/contracts/session/index.d.mts +3 -3
  28. package/dist/contracts/session/index.mjs +1 -1
  29. package/dist/contracts/shared/index.d.mts +1 -1
  30. package/dist/contracts/variant/index.d.mts +1 -1
  31. package/dist/contracts/workflow/index.d.mts +2 -2
  32. package/dist/{definition-b9jyJqPD.d.mts → definition-DpkfJi8v.d.mts} +1 -1
  33. package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
  34. package/dist/drizzle/meta/_journal.json +7 -0
  35. package/dist/handlers-B74FvKlA.mjs +57 -0
  36. package/dist/hooks/index.d.mts +19 -2
  37. package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
  38. package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
  39. package/dist/{index-3X0368CL.d.mts → index-B5Uczo3R.d.mts} +24 -24
  40. package/dist/{index-C6Ys8pxt.d.mts → index-BIZeIA5k.d.mts} +6 -6
  41. package/dist/{index-BYfSAJRC.d.mts → index-BvTd61i5.d.mts} +151 -29
  42. package/dist/{index-B5w-0Gg9.d.mts → index-BvjLe_w9.d.mts} +12 -12
  43. package/dist/{index-DQYj8-53.d.mts → index-C8k2f_E0.d.mts} +1 -1
  44. package/dist/{index-DEzdNQum.d.mts → index-CYHWOXUm.d.mts} +1 -1
  45. package/dist/{index-3J0HZlPH.d.mts → index-CwHP8Jxs.d.mts} +145 -12
  46. package/dist/{index-D6aAzr32.d.mts → index-Cyi7y_aG.d.mts} +20 -20
  47. package/dist/{index-BKZhnb2B.d.mts → index-D7Fu3375.d.mts} +404 -24
  48. package/dist/{index-31vR1sxk.d.mts → index-DFK3tpEY.d.mts} +70 -10
  49. package/dist/{index-DV4nRk0h.d.mts → index-DS6kxiFl.d.mts} +15 -15
  50. package/dist/{index-O08Q2ikz.d.mts → index-DTBQOCar.d.mts} +8 -8
  51. package/dist/{index-DvHYpi-J.d.mts → index-DmJ-OpTD.d.mts} +917 -68
  52. package/dist/{index-C5C1tk9f.d.mts → index-Dtb2cVJz.d.mts} +47 -47
  53. package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
  54. package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
  55. package/dist/kernel/extension/index.d.mts +1 -1
  56. package/dist/kernel/index.d.mts +2 -2
  57. package/dist/kernel/observability/index.d.mts +1 -1
  58. package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
  59. package/dist/{namespace-CfvtDD_U.d.mts → namespace-BLER-Qom.d.mts} +2 -2
  60. package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
  61. package/dist/{namespace-j7vFsmYL.d.mts → namespace-C74bbsdZ.d.mts} +2 -2
  62. package/dist/{namespace-B4cV_pk3.d.mts → namespace-CGxFYDlK.d.mts} +32 -32
  63. package/dist/{namespace-DhDY0juT.d.mts → namespace-D4Uf5Mw_.d.mts} +366 -18
  64. package/dist/{namespace-DmqoDDRD.d.mts → namespace-DRXQyBe0.d.mts} +46 -2
  65. package/dist/{namespace-Bm77p82L.d.mts → namespace-JFzrlNs4.d.mts} +24 -24
  66. package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
  67. package/dist/{package-BmRhhi-3.mjs → package-BQn_RTo7.mjs} +1 -1
  68. package/dist/package.json +1 -1
  69. package/dist/{schema-DLNBajAV.d.mts → schema-B9goOieO.d.mts} +27 -0
  70. package/dist/{schemas-DuuVuhHX2.d.mts → schemas-9S9Y9PHT2.d.mts} +5 -5
  71. package/dist/{schemas-CoFCV42v.d.mts → schemas-B_t6oOK-.d.mts} +2 -2
  72. package/dist/{schemas-lnE9YoG7.d.mts → schemas-CW6YsPT4.d.mts} +3 -3
  73. package/dist/schemas-CkOigLAT.mjs +1 -0
  74. package/dist/{schemas-BemsLc_V.d.mts → schemas-CurUbHy4.d.mts} +4 -4
  75. package/dist/{schemas-DMMWmWjq.d.mts → schemas-DXeGCbJ9.d.mts} +1 -1
  76. package/dist/{schemas-DWfo0wp4.d.mts → schemas-DnmbwE_V.d.mts} +7 -7
  77. package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
  78. package/dist/services/adapter-runtime/index.d.mts +4 -4
  79. package/dist/services/adapter-runtime/index.mjs +1 -1
  80. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  81. package/dist/services/adapter-runtime/schemas.d.mts +2 -2
  82. package/dist/services/adapter-runtime/schemas.mjs +1 -1
  83. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  84. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  85. package/dist/services/agent-runtime/index.d.mts +2 -2
  86. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  87. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  88. package/dist/services/context-rules/index.d.mts +3 -3
  89. package/dist/services/filesystem/namespace.d.mts +6 -6
  90. package/dist/services/filesystem/schemas.d.mts +3 -3
  91. package/dist/services/git/namespace.d.mts +2 -2
  92. package/dist/services/git/schemas.d.mts +1 -1
  93. package/dist/services/harness/index.d.mts +3 -3
  94. package/dist/services/index.d.mts +55 -48
  95. package/dist/services/index.mjs +1 -1
  96. package/dist/services/log-import/browser.d.mts +1 -1
  97. package/dist/services/log-import/index.d.mts +14 -1
  98. package/dist/services/log-import/index.mjs +2 -2
  99. package/dist/services/preferences/index.d.mts +2 -2
  100. package/dist/services/preferences/schemas.d.mts +1 -1
  101. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  102. package/dist/services/session/handlers/index.d.mts +1 -1
  103. package/dist/services/session/handlers/index.mjs +1 -1
  104. package/dist/services/session/index.d.mts +7 -7
  105. package/dist/services/session/index.mjs +1 -1
  106. package/dist/services/session/messages/namespace.d.mts +1 -1
  107. package/dist/services/session/session-events/namespace.d.mts +1 -1
  108. package/dist/services/session/storage/namespace.d.mts +1 -1
  109. package/dist/services/session/storage/schema.d.mts +1 -1
  110. package/dist/services/session/storage/schema.mjs +1 -1
  111. package/dist/services/session/testing/index.mjs +3 -2
  112. package/dist/services/session-editor/index.d.mts +1 -1
  113. package/dist/services/settings/namespace.d.mts +5 -5
  114. package/dist/services/subagent-template/index.d.mts +2 -2
  115. package/dist/services/subagent-template/namespace.d.mts +1 -1
  116. package/dist/services/subagent-template/schemas.d.mts +1 -1
  117. package/dist/services/tool-approval/index.mjs +1 -1
  118. package/dist/services/tools/index.mjs +1 -1
  119. package/dist/services/tray-menu/index.d.mts +2 -2
  120. package/dist/services/tray-menu/namespace.d.mts +1 -1
  121. package/dist/services/tray-menu/schemas.d.mts +1 -1
  122. package/dist/session-CZUrp7gC.mjs +69 -0
  123. package/dist/session-Dp7z5N1d.mjs +1 -0
  124. package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
  125. package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-BvRF22by.d.mts} +10 -10
  126. package/dist/{tool-approval-service-MU_DmJsf.mjs → tool-approval-service-BIbUSuqg.mjs} +1 -1
  127. package/dist/{tools-BrNm-een.mjs → tools-Yz8XyiwA.mjs} +1 -1
  128. package/dist/{transition-Dq41YCkc.d.mts → transition-DYorNHZu.d.mts} +1 -1
  129. package/dist/{types-C76EP81O.d.mts → types-9XCB1aPK.d.mts} +442 -30
  130. package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
  131. package/dist/{types-BMlzmWp6.d.mts → types-BWduCvRU.d.mts} +11 -0
  132. package/dist/{types-Cse8s_cD.d.mts → types-N_BOtTqt.d.mts} +29 -18
  133. package/dist/ui-kernel/index.d.mts +4 -4
  134. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  135. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  136. package/dist/workflow-engine/index.d.mts +44 -44
  137. package/dist/workflow-engine/index.mjs +1 -1
  138. package/dist/workflow-engine/package.d.mts +1 -1
  139. package/dist/workflow-engine/package.mjs +1 -1
  140. package/package.json +1 -1
  141. package/dist/adapter-BRxCc72E.mjs +0 -1
  142. package/dist/client-BgUjVbXX.mjs +0 -1
  143. package/dist/handlers-v47Gbsr1.mjs +0 -57
  144. package/dist/schemas-ftgVeWIG.mjs +0 -1
  145. package/dist/session-CKWfn3oc.mjs +0 -1
  146. package/dist/session-DCbJwYEU.mjs +0 -69
@@ -272,7 +272,7 @@ declare const SessionEventStorageNamespace$1: {
272
272
  type: _$zod.ZodLiteral<"agent.added">;
273
273
  payload: _$zod.ZodObject<{
274
274
  sessionId: _$zod.ZodString;
275
- adapterSessionId: _$zod.ZodString;
275
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
276
276
  agentId: _$zod.ZodString;
277
277
  adapterId: _$zod.ZodString;
278
278
  adapterName: _$zod.ZodString;
@@ -423,8 +423,8 @@ declare const SessionEventStorageNamespace$1: {
423
423
  }>>;
424
424
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
425
425
  text: "text";
426
- voice: "voice";
427
426
  compact: "compact";
427
+ voice: "voice";
428
428
  }>>;
429
429
  }, _$zod_v4_core0.$strip>;
430
430
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -576,6 +576,47 @@ declare const SessionEventStorageNamespace$1: {
576
576
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
577
577
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
578
578
  }, _$zod_v4_core0.$strip>;
579
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
580
+ sessionId: _$zod.ZodString;
581
+ eventId: _$zod.ZodString;
582
+ timestamp: _$zod.ZodNumber;
583
+ type: _$zod.ZodLiteral<"locality.degraded">;
584
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
585
+ intent: _$zod.ZodEnum<{
586
+ fork: "fork";
587
+ resume: "resume";
588
+ }>;
589
+ verdictKind: _$zod.ZodLiteral<"degrade">;
590
+ reason: _$zod.ZodEnum<{
591
+ "adapter-unsupported": "adapter-unsupported";
592
+ "adapter-mismatch": "adapter-mismatch";
593
+ "no-adapter-session": "no-adapter-session";
594
+ "missing-machine-id": "missing-machine-id";
595
+ "machine-mismatch": "machine-mismatch";
596
+ "cwd-mismatch": "cwd-mismatch";
597
+ "transforms-present": "transforms-present";
598
+ "compression-present": "compression-present";
599
+ "connector-swap": "connector-swap";
600
+ "mid-history-unsupported": "mid-history-unsupported";
601
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
602
+ "native-attempt-failed": "native-attempt-failed";
603
+ "agent-already-started": "agent-already-started";
604
+ "fork-point-unresolvable": "fork-point-unresolvable";
605
+ }>;
606
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
607
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
608
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
609
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
610
+ intent: _$zod.ZodEnum<{
611
+ fork: "fork";
612
+ resume: "resume";
613
+ }>;
614
+ verdictKind: _$zod.ZodLiteral<"foreign">;
615
+ foreignMachineId: _$zod.ZodString;
616
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
617
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
618
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
619
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
579
620
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
580
621
  sessionId: _$zod.ZodString;
581
622
  eventId: _$zod.ZodString;
@@ -610,7 +651,7 @@ declare const SessionEventStorageNamespace$1: {
610
651
  type: _$zod.ZodLiteral<"agent.added">;
611
652
  payload: _$zod.ZodObject<{
612
653
  sessionId: _$zod.ZodString;
613
- adapterSessionId: _$zod.ZodString;
654
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
614
655
  agentId: _$zod.ZodString;
615
656
  adapterId: _$zod.ZodString;
616
657
  adapterName: _$zod.ZodString;
@@ -761,8 +802,8 @@ declare const SessionEventStorageNamespace$1: {
761
802
  }>>;
762
803
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
763
804
  text: "text";
764
- voice: "voice";
765
805
  compact: "compact";
806
+ voice: "voice";
766
807
  }>>;
767
808
  }, _$zod_v4_core0.$strip>;
768
809
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -914,6 +955,47 @@ declare const SessionEventStorageNamespace$1: {
914
955
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
915
956
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
916
957
  }, _$zod_v4_core0.$strip>;
958
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
959
+ sessionId: _$zod.ZodString;
960
+ eventId: _$zod.ZodString;
961
+ timestamp: _$zod.ZodNumber;
962
+ type: _$zod.ZodLiteral<"locality.degraded">;
963
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
964
+ intent: _$zod.ZodEnum<{
965
+ fork: "fork";
966
+ resume: "resume";
967
+ }>;
968
+ verdictKind: _$zod.ZodLiteral<"degrade">;
969
+ reason: _$zod.ZodEnum<{
970
+ "adapter-unsupported": "adapter-unsupported";
971
+ "adapter-mismatch": "adapter-mismatch";
972
+ "no-adapter-session": "no-adapter-session";
973
+ "missing-machine-id": "missing-machine-id";
974
+ "machine-mismatch": "machine-mismatch";
975
+ "cwd-mismatch": "cwd-mismatch";
976
+ "transforms-present": "transforms-present";
977
+ "compression-present": "compression-present";
978
+ "connector-swap": "connector-swap";
979
+ "mid-history-unsupported": "mid-history-unsupported";
980
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
981
+ "native-attempt-failed": "native-attempt-failed";
982
+ "agent-already-started": "agent-already-started";
983
+ "fork-point-unresolvable": "fork-point-unresolvable";
984
+ }>;
985
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
986
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
987
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
988
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
989
+ intent: _$zod.ZodEnum<{
990
+ fork: "fork";
991
+ resume: "resume";
992
+ }>;
993
+ verdictKind: _$zod.ZodLiteral<"foreign">;
994
+ foreignMachineId: _$zod.ZodString;
995
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
996
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
997
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
998
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
917
999
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
918
1000
  sessionId: _$zod.ZodString;
919
1001
  eventId: _$zod.ZodString;
@@ -938,7 +1020,7 @@ declare const SessionEventStorageNamespace$1: {
938
1020
  type: _$zod.ZodLiteral<"agent.added">;
939
1021
  payload: _$zod.ZodObject<{
940
1022
  sessionId: _$zod.ZodString;
941
- adapterSessionId: _$zod.ZodString;
1023
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
942
1024
  agentId: _$zod.ZodString;
943
1025
  adapterId: _$zod.ZodString;
944
1026
  adapterName: _$zod.ZodString;
@@ -1089,8 +1171,8 @@ declare const SessionEventStorageNamespace$1: {
1089
1171
  }>>;
1090
1172
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1091
1173
  text: "text";
1092
- voice: "voice";
1093
1174
  compact: "compact";
1175
+ voice: "voice";
1094
1176
  }>>;
1095
1177
  }, _$zod_v4_core0.$strip>;
1096
1178
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -1242,6 +1324,47 @@ declare const SessionEventStorageNamespace$1: {
1242
1324
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1243
1325
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1244
1326
  }, _$zod_v4_core0.$strip>;
1327
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1328
+ sessionId: _$zod.ZodString;
1329
+ eventId: _$zod.ZodString;
1330
+ timestamp: _$zod.ZodNumber;
1331
+ type: _$zod.ZodLiteral<"locality.degraded">;
1332
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1333
+ intent: _$zod.ZodEnum<{
1334
+ fork: "fork";
1335
+ resume: "resume";
1336
+ }>;
1337
+ verdictKind: _$zod.ZodLiteral<"degrade">;
1338
+ reason: _$zod.ZodEnum<{
1339
+ "adapter-unsupported": "adapter-unsupported";
1340
+ "adapter-mismatch": "adapter-mismatch";
1341
+ "no-adapter-session": "no-adapter-session";
1342
+ "missing-machine-id": "missing-machine-id";
1343
+ "machine-mismatch": "machine-mismatch";
1344
+ "cwd-mismatch": "cwd-mismatch";
1345
+ "transforms-present": "transforms-present";
1346
+ "compression-present": "compression-present";
1347
+ "connector-swap": "connector-swap";
1348
+ "mid-history-unsupported": "mid-history-unsupported";
1349
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
1350
+ "native-attempt-failed": "native-attempt-failed";
1351
+ "agent-already-started": "agent-already-started";
1352
+ "fork-point-unresolvable": "fork-point-unresolvable";
1353
+ }>;
1354
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1355
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1356
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
1357
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1358
+ intent: _$zod.ZodEnum<{
1359
+ fork: "fork";
1360
+ resume: "resume";
1361
+ }>;
1362
+ verdictKind: _$zod.ZodLiteral<"foreign">;
1363
+ foreignMachineId: _$zod.ZodString;
1364
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1365
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1366
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
1367
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
1245
1368
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1246
1369
  sessionId: _$zod.ZodString;
1247
1370
  eventId: _$zod.ZodString;
@@ -1274,7 +1397,7 @@ declare const SessionEventStorageNamespace$1: {
1274
1397
  type: _$zod.ZodLiteral<"agent.added">;
1275
1398
  payload: _$zod.ZodObject<{
1276
1399
  sessionId: _$zod.ZodString;
1277
- adapterSessionId: _$zod.ZodString;
1400
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1278
1401
  agentId: _$zod.ZodString;
1279
1402
  adapterId: _$zod.ZodString;
1280
1403
  adapterName: _$zod.ZodString;
@@ -1425,8 +1548,8 @@ declare const SessionEventStorageNamespace$1: {
1425
1548
  }>>;
1426
1549
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1427
1550
  text: "text";
1428
- voice: "voice";
1429
1551
  compact: "compact";
1552
+ voice: "voice";
1430
1553
  }>>;
1431
1554
  }, _$zod_v4_core0.$strip>;
1432
1555
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -1578,6 +1701,47 @@ declare const SessionEventStorageNamespace$1: {
1578
1701
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1579
1702
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1580
1703
  }, _$zod_v4_core0.$strip>;
1704
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1705
+ sessionId: _$zod.ZodString;
1706
+ eventId: _$zod.ZodString;
1707
+ timestamp: _$zod.ZodNumber;
1708
+ type: _$zod.ZodLiteral<"locality.degraded">;
1709
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1710
+ intent: _$zod.ZodEnum<{
1711
+ fork: "fork";
1712
+ resume: "resume";
1713
+ }>;
1714
+ verdictKind: _$zod.ZodLiteral<"degrade">;
1715
+ reason: _$zod.ZodEnum<{
1716
+ "adapter-unsupported": "adapter-unsupported";
1717
+ "adapter-mismatch": "adapter-mismatch";
1718
+ "no-adapter-session": "no-adapter-session";
1719
+ "missing-machine-id": "missing-machine-id";
1720
+ "machine-mismatch": "machine-mismatch";
1721
+ "cwd-mismatch": "cwd-mismatch";
1722
+ "transforms-present": "transforms-present";
1723
+ "compression-present": "compression-present";
1724
+ "connector-swap": "connector-swap";
1725
+ "mid-history-unsupported": "mid-history-unsupported";
1726
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
1727
+ "native-attempt-failed": "native-attempt-failed";
1728
+ "agent-already-started": "agent-already-started";
1729
+ "fork-point-unresolvable": "fork-point-unresolvable";
1730
+ }>;
1731
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1732
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1733
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
1734
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1735
+ intent: _$zod.ZodEnum<{
1736
+ fork: "fork";
1737
+ resume: "resume";
1738
+ }>;
1739
+ verdictKind: _$zod.ZodLiteral<"foreign">;
1740
+ foreignMachineId: _$zod.ZodString;
1741
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
1742
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
1743
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
1744
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
1581
1745
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1582
1746
  sessionId: _$zod.ZodString;
1583
1747
  eventId: _$zod.ZodString;
@@ -1598,7 +1762,7 @@ declare const SessionEventStorageNamespace$1: {
1598
1762
  type: _$zod.ZodLiteral<"agent.added">;
1599
1763
  payload: _$zod.ZodObject<{
1600
1764
  sessionId: _$zod.ZodString;
1601
- adapterSessionId: _$zod.ZodString;
1765
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1602
1766
  agentId: _$zod.ZodString;
1603
1767
  adapterId: _$zod.ZodString;
1604
1768
  adapterName: _$zod.ZodString;
@@ -1749,8 +1913,8 @@ declare const SessionEventStorageNamespace$1: {
1749
1913
  }>>;
1750
1914
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1751
1915
  text: "text";
1752
- voice: "voice";
1753
1916
  compact: "compact";
1917
+ voice: "voice";
1754
1918
  }>>;
1755
1919
  }, _$zod_v4_core0.$strip>;
1756
1920
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -1902,6 +2066,47 @@ declare const SessionEventStorageNamespace$1: {
1902
2066
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
1903
2067
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1904
2068
  }, _$zod_v4_core0.$strip>;
2069
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2070
+ sessionId: _$zod.ZodString;
2071
+ eventId: _$zod.ZodString;
2072
+ timestamp: _$zod.ZodNumber;
2073
+ type: _$zod.ZodLiteral<"locality.degraded">;
2074
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2075
+ intent: _$zod.ZodEnum<{
2076
+ fork: "fork";
2077
+ resume: "resume";
2078
+ }>;
2079
+ verdictKind: _$zod.ZodLiteral<"degrade">;
2080
+ reason: _$zod.ZodEnum<{
2081
+ "adapter-unsupported": "adapter-unsupported";
2082
+ "adapter-mismatch": "adapter-mismatch";
2083
+ "no-adapter-session": "no-adapter-session";
2084
+ "missing-machine-id": "missing-machine-id";
2085
+ "machine-mismatch": "machine-mismatch";
2086
+ "cwd-mismatch": "cwd-mismatch";
2087
+ "transforms-present": "transforms-present";
2088
+ "compression-present": "compression-present";
2089
+ "connector-swap": "connector-swap";
2090
+ "mid-history-unsupported": "mid-history-unsupported";
2091
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
2092
+ "native-attempt-failed": "native-attempt-failed";
2093
+ "agent-already-started": "agent-already-started";
2094
+ "fork-point-unresolvable": "fork-point-unresolvable";
2095
+ }>;
2096
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2097
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2098
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2099
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2100
+ intent: _$zod.ZodEnum<{
2101
+ fork: "fork";
2102
+ resume: "resume";
2103
+ }>;
2104
+ verdictKind: _$zod.ZodLiteral<"foreign">;
2105
+ foreignMachineId: _$zod.ZodString;
2106
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2107
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2108
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2109
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
1905
2110
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
1906
2111
  sessionId: _$zod.ZodString;
1907
2112
  eventId: _$zod.ZodString;
@@ -1936,7 +2141,7 @@ declare const SessionEventStorageNamespace$1: {
1936
2141
  type: _$zod.ZodLiteral<"agent.added">;
1937
2142
  payload: _$zod.ZodObject<{
1938
2143
  sessionId: _$zod.ZodString;
1939
- adapterSessionId: _$zod.ZodString;
2144
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1940
2145
  agentId: _$zod.ZodString;
1941
2146
  adapterId: _$zod.ZodString;
1942
2147
  adapterName: _$zod.ZodString;
@@ -2087,8 +2292,8 @@ declare const SessionEventStorageNamespace$1: {
2087
2292
  }>>;
2088
2293
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2089
2294
  text: "text";
2090
- voice: "voice";
2091
2295
  compact: "compact";
2296
+ voice: "voice";
2092
2297
  }>>;
2093
2298
  }, _$zod_v4_core0.$strip>;
2094
2299
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -2240,6 +2445,47 @@ declare const SessionEventStorageNamespace$1: {
2240
2445
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2241
2446
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2242
2447
  }, _$zod_v4_core0.$strip>;
2448
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2449
+ sessionId: _$zod.ZodString;
2450
+ eventId: _$zod.ZodString;
2451
+ timestamp: _$zod.ZodNumber;
2452
+ type: _$zod.ZodLiteral<"locality.degraded">;
2453
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2454
+ intent: _$zod.ZodEnum<{
2455
+ fork: "fork";
2456
+ resume: "resume";
2457
+ }>;
2458
+ verdictKind: _$zod.ZodLiteral<"degrade">;
2459
+ reason: _$zod.ZodEnum<{
2460
+ "adapter-unsupported": "adapter-unsupported";
2461
+ "adapter-mismatch": "adapter-mismatch";
2462
+ "no-adapter-session": "no-adapter-session";
2463
+ "missing-machine-id": "missing-machine-id";
2464
+ "machine-mismatch": "machine-mismatch";
2465
+ "cwd-mismatch": "cwd-mismatch";
2466
+ "transforms-present": "transforms-present";
2467
+ "compression-present": "compression-present";
2468
+ "connector-swap": "connector-swap";
2469
+ "mid-history-unsupported": "mid-history-unsupported";
2470
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
2471
+ "native-attempt-failed": "native-attempt-failed";
2472
+ "agent-already-started": "agent-already-started";
2473
+ "fork-point-unresolvable": "fork-point-unresolvable";
2474
+ }>;
2475
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2476
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2477
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2478
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2479
+ intent: _$zod.ZodEnum<{
2480
+ fork: "fork";
2481
+ resume: "resume";
2482
+ }>;
2483
+ verdictKind: _$zod.ZodLiteral<"foreign">;
2484
+ foreignMachineId: _$zod.ZodString;
2485
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2486
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2487
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2488
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
2243
2489
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2244
2490
  sessionId: _$zod.ZodString;
2245
2491
  eventId: _$zod.ZodString;
@@ -2264,7 +2510,7 @@ declare const SessionEventStorageNamespace$1: {
2264
2510
  type: _$zod.ZodLiteral<"agent.added">;
2265
2511
  payload: _$zod.ZodObject<{
2266
2512
  sessionId: _$zod.ZodString;
2267
- adapterSessionId: _$zod.ZodString;
2513
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2268
2514
  agentId: _$zod.ZodString;
2269
2515
  adapterId: _$zod.ZodString;
2270
2516
  adapterName: _$zod.ZodString;
@@ -2415,8 +2661,8 @@ declare const SessionEventStorageNamespace$1: {
2415
2661
  }>>;
2416
2662
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2417
2663
  text: "text";
2418
- voice: "voice";
2419
2664
  compact: "compact";
2665
+ voice: "voice";
2420
2666
  }>>;
2421
2667
  }, _$zod_v4_core0.$strip>;
2422
2668
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -2568,6 +2814,47 @@ declare const SessionEventStorageNamespace$1: {
2568
2814
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2569
2815
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2570
2816
  }, _$zod_v4_core0.$strip>;
2817
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2818
+ sessionId: _$zod.ZodString;
2819
+ eventId: _$zod.ZodString;
2820
+ timestamp: _$zod.ZodNumber;
2821
+ type: _$zod.ZodLiteral<"locality.degraded">;
2822
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2823
+ intent: _$zod.ZodEnum<{
2824
+ fork: "fork";
2825
+ resume: "resume";
2826
+ }>;
2827
+ verdictKind: _$zod.ZodLiteral<"degrade">;
2828
+ reason: _$zod.ZodEnum<{
2829
+ "adapter-unsupported": "adapter-unsupported";
2830
+ "adapter-mismatch": "adapter-mismatch";
2831
+ "no-adapter-session": "no-adapter-session";
2832
+ "missing-machine-id": "missing-machine-id";
2833
+ "machine-mismatch": "machine-mismatch";
2834
+ "cwd-mismatch": "cwd-mismatch";
2835
+ "transforms-present": "transforms-present";
2836
+ "compression-present": "compression-present";
2837
+ "connector-swap": "connector-swap";
2838
+ "mid-history-unsupported": "mid-history-unsupported";
2839
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
2840
+ "native-attempt-failed": "native-attempt-failed";
2841
+ "agent-already-started": "agent-already-started";
2842
+ "fork-point-unresolvable": "fork-point-unresolvable";
2843
+ }>;
2844
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2845
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2846
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2847
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2848
+ intent: _$zod.ZodEnum<{
2849
+ fork: "fork";
2850
+ resume: "resume";
2851
+ }>;
2852
+ verdictKind: _$zod.ZodLiteral<"foreign">;
2853
+ foreignMachineId: _$zod.ZodString;
2854
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2855
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2856
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
2857
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
2571
2858
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2572
2859
  sessionId: _$zod.ZodString;
2573
2860
  eventId: _$zod.ZodString;
@@ -2600,7 +2887,7 @@ declare const SessionEventStorageNamespace$1: {
2600
2887
  type: _$zod.ZodLiteral<"agent.added">;
2601
2888
  payload: _$zod.ZodObject<{
2602
2889
  sessionId: _$zod.ZodString;
2603
- adapterSessionId: _$zod.ZodString;
2890
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2604
2891
  agentId: _$zod.ZodString;
2605
2892
  adapterId: _$zod.ZodString;
2606
2893
  adapterName: _$zod.ZodString;
@@ -2751,8 +3038,8 @@ declare const SessionEventStorageNamespace$1: {
2751
3038
  }>>;
2752
3039
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
2753
3040
  text: "text";
2754
- voice: "voice";
2755
3041
  compact: "compact";
3042
+ voice: "voice";
2756
3043
  }>>;
2757
3044
  }, _$zod_v4_core0.$strip>;
2758
3045
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
@@ -2904,6 +3191,47 @@ declare const SessionEventStorageNamespace$1: {
2904
3191
  tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
2905
3192
  compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2906
3193
  }, _$zod_v4_core0.$strip>;
3194
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3195
+ sessionId: _$zod.ZodString;
3196
+ eventId: _$zod.ZodString;
3197
+ timestamp: _$zod.ZodNumber;
3198
+ type: _$zod.ZodLiteral<"locality.degraded">;
3199
+ payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3200
+ intent: _$zod.ZodEnum<{
3201
+ fork: "fork";
3202
+ resume: "resume";
3203
+ }>;
3204
+ verdictKind: _$zod.ZodLiteral<"degrade">;
3205
+ reason: _$zod.ZodEnum<{
3206
+ "adapter-unsupported": "adapter-unsupported";
3207
+ "adapter-mismatch": "adapter-mismatch";
3208
+ "no-adapter-session": "no-adapter-session";
3209
+ "missing-machine-id": "missing-machine-id";
3210
+ "machine-mismatch": "machine-mismatch";
3211
+ "cwd-mismatch": "cwd-mismatch";
3212
+ "transforms-present": "transforms-present";
3213
+ "compression-present": "compression-present";
3214
+ "connector-swap": "connector-swap";
3215
+ "mid-history-unsupported": "mid-history-unsupported";
3216
+ "hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
3217
+ "native-attempt-failed": "native-attempt-failed";
3218
+ "agent-already-started": "agent-already-started";
3219
+ "fork-point-unresolvable": "fork-point-unresolvable";
3220
+ }>;
3221
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
3222
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
3223
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
3224
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3225
+ intent: _$zod.ZodEnum<{
3226
+ fork: "fork";
3227
+ resume: "resume";
3228
+ }>;
3229
+ verdictKind: _$zod.ZodLiteral<"foreign">;
3230
+ foreignMachineId: _$zod.ZodString;
3231
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
3232
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
3233
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
3234
+ }, _$zod_v4_core0.$strip>], "verdictKind">;
2907
3235
  }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
2908
3236
  sessionId: _$zod.ZodString;
2909
3237
  eventId: _$zod.ZodString;
@@ -2926,10 +3254,10 @@ declare const SessionEventStorageNamespace$1: {
2926
3254
  type: "agent.added";
2927
3255
  payload: {
2928
3256
  sessionId: string;
2929
- adapterSessionId: string;
2930
3257
  agentId: string;
2931
3258
  adapterId: string;
2932
3259
  adapterName: string;
3260
+ adapterSessionId?: string | undefined;
2933
3261
  role?: "lead" | "member" | undefined;
2934
3262
  model?: string | undefined;
2935
3263
  cwd?: string | undefined;
@@ -3058,7 +3386,7 @@ declare const SessionEventStorageNamespace$1: {
3058
3386
  };
3059
3387
  agentIds: string[];
3060
3388
  source?: "user" | "system" | "extension" | undefined;
3061
- origin?: "text" | "voice" | "compact" | undefined;
3389
+ origin?: "text" | "compact" | "voice" | undefined;
3062
3390
  };
3063
3391
  } | {
3064
3392
  sessionId: string;
@@ -3177,6 +3505,26 @@ declare const SessionEventStorageNamespace$1: {
3177
3505
  tokensAfter?: number | undefined;
3178
3506
  compressedMessageIds?: string[] | undefined;
3179
3507
  };
3508
+ } | {
3509
+ sessionId: string;
3510
+ eventId: string;
3511
+ timestamp: number;
3512
+ type: "locality.degraded";
3513
+ payload: {
3514
+ intent: "fork" | "resume";
3515
+ verdictKind: "degrade";
3516
+ reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable";
3517
+ agentId?: string | undefined;
3518
+ adapterId?: string | undefined;
3519
+ turnId?: string | undefined;
3520
+ } | {
3521
+ intent: "fork" | "resume";
3522
+ verdictKind: "foreign";
3523
+ foreignMachineId: string;
3524
+ agentId?: string | undefined;
3525
+ adapterId?: string | undefined;
3526
+ turnId?: string | undefined;
3527
+ };
3180
3528
  } | {
3181
3529
  sessionId: string;
3182
3530
  eventId: string;