@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
@@ -643,6 +643,25 @@ declare const SessionStorageNamespace$1: {
643
643
  identity: undefined;
644
644
  generated: undefined;
645
645
  }, {}, {}>;
646
+ machineId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
647
+ name: "machine_id";
648
+ tableName: "sessions";
649
+ dataType: "string";
650
+ columnType: "SQLiteText";
651
+ data: string;
652
+ driverParam: string;
653
+ notNull: false;
654
+ hasDefault: false;
655
+ isPrimaryKey: false;
656
+ isAutoincrement: false;
657
+ hasRuntimeDefault: false;
658
+ enumValues: [string, ...string[]];
659
+ baseColumn: never;
660
+ identity: undefined;
661
+ generated: undefined;
662
+ }, {}, {
663
+ length: number | undefined;
664
+ }>;
646
665
  };
647
666
  dialect: "sqlite";
648
667
  }>;
@@ -1116,6 +1135,7 @@ declare const SessionStorageNamespace$1: {
1116
1135
  tracking: "tracking";
1117
1136
  }>>;
1118
1137
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1138
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1119
1139
  }, _$zod_v4_core0.$strip>>;
1120
1140
  }, _$zod_v4_core0.$strip>;
1121
1141
  };
@@ -1237,6 +1257,7 @@ declare const SessionStorageNamespace$1: {
1237
1257
  tracking: "tracking";
1238
1258
  }>>;
1239
1259
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1260
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1240
1261
  }, _$zod_v4_core0.$strip>;
1241
1262
  ifAbsent: _$zod.ZodOptional<_$zod.ZodBoolean>;
1242
1263
  }, _$zod_v4_core0.$strip>;
@@ -1383,6 +1404,7 @@ declare const SessionStorageNamespace$1: {
1383
1404
  tracking: "tracking";
1384
1405
  }>>;
1385
1406
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1407
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1386
1408
  preview: _$zod.ZodOptional<_$zod.ZodObject<{
1387
1409
  messageCount: _$zod.ZodNumber;
1388
1410
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -1544,6 +1566,7 @@ declare const SessionStorageNamespace$1: {
1544
1566
  tracking: "tracking";
1545
1567
  }>>;
1546
1568
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1569
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1547
1570
  preview: _$zod.ZodObject<{
1548
1571
  messageCount: _$zod.ZodNumber;
1549
1572
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -1599,6 +1622,7 @@ declare const SessionStorageNamespace$1: {
1599
1622
  lastActivityAt: _$zod.ZodOptional<_$zod.ZodNumber>;
1600
1623
  metadata: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
1601
1624
  spawningToolCallId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1625
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1602
1626
  }, _$zod_v4_core0.$strip>;
1603
1627
  response: _$zod.ZodObject<{
1604
1628
  success: _$zod.ZodBoolean;
@@ -1727,6 +1751,7 @@ declare const SessionStorageNamespace$1: {
1727
1751
  tracking: "tracking";
1728
1752
  }>>;
1729
1753
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1754
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1730
1755
  }, _$zod_v4_core0.$strip>>;
1731
1756
  }, _$zod_v4_core0.$strip>;
1732
1757
  };
@@ -1763,6 +1788,7 @@ declare const SessionStorageNamespace$1: {
1763
1788
  tracking: "tracking";
1764
1789
  }>>;
1765
1790
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1791
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1766
1792
  kind: _$zod.ZodLiteral<"root">;
1767
1793
  parentAdapterSessionId: _$zod.ZodNull;
1768
1794
  forkPointMessageId: _$zod.ZodNull;
@@ -1788,9 +1814,10 @@ declare const SessionStorageNamespace$1: {
1788
1814
  tracking: "tracking";
1789
1815
  }>>;
1790
1816
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1817
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1791
1818
  kind: _$zod.ZodLiteral<"fork">;
1792
1819
  parentAdapterSessionId: _$zod.ZodString;
1793
- forkPointMessageId: _$zod.ZodString;
1820
+ forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
1794
1821
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1795
1822
  externalSessionId: _$zod.ZodString;
1796
1823
  source: _$zod.ZodString;
@@ -1813,6 +1840,7 @@ declare const SessionStorageNamespace$1: {
1813
1840
  tracking: "tracking";
1814
1841
  }>>;
1815
1842
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1843
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1816
1844
  kind: _$zod.ZodLiteral<"subagent">;
1817
1845
  parentAdapterSessionId: _$zod.ZodString;
1818
1846
  forkPointMessageId: _$zod.ZodNull;
@@ -1838,6 +1866,7 @@ declare const SessionStorageNamespace$1: {
1838
1866
  tracking: "tracking";
1839
1867
  }>>;
1840
1868
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1869
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1841
1870
  kind: _$zod.ZodLiteral<"compress">;
1842
1871
  parentAdapterSessionId: _$zod.ZodString;
1843
1872
  forkPointMessageId: _$zod.ZodNull;
@@ -1967,6 +1996,7 @@ declare const SessionStorageNamespace$1: {
1967
1996
  tracking: "tracking";
1968
1997
  }>>;
1969
1998
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
1999
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
1970
2000
  }, _$zod_v4_core0.$strip>>;
1971
2001
  }, _$zod_v4_core0.$strip>;
1972
2002
  };
@@ -2095,6 +2125,7 @@ declare const SessionStorageNamespace$1: {
2095
2125
  tracking: "tracking";
2096
2126
  }>>;
2097
2127
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2128
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2098
2129
  }, _$zod_v4_core0.$strip>>;
2099
2130
  }, _$zod_v4_core0.$strip>;
2100
2131
  };
@@ -2244,6 +2275,7 @@ declare const SessionStorageNamespace$1: {
2244
2275
  tracking: "tracking";
2245
2276
  }>>;
2246
2277
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2278
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2247
2279
  }, _$zod_v4_core0.$strip>>;
2248
2280
  }, _$zod_v4_core0.$strip>;
2249
2281
  };
@@ -2365,6 +2397,7 @@ declare const SessionStorageNamespace$1: {
2365
2397
  tracking: "tracking";
2366
2398
  }>>;
2367
2399
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2400
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2368
2401
  }, _$zod_v4_core0.$strip>;
2369
2402
  ifAbsent: _$zod.ZodOptional<_$zod.ZodBoolean>;
2370
2403
  }, _$zod_v4_core0.$strip>;
@@ -2511,6 +2544,7 @@ declare const SessionStorageNamespace$1: {
2511
2544
  tracking: "tracking";
2512
2545
  }>>;
2513
2546
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2547
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2514
2548
  preview: _$zod.ZodOptional<_$zod.ZodObject<{
2515
2549
  messageCount: _$zod.ZodNumber;
2516
2550
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -2672,6 +2706,7 @@ declare const SessionStorageNamespace$1: {
2672
2706
  tracking: "tracking";
2673
2707
  }>>;
2674
2708
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2709
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2675
2710
  preview: _$zod.ZodObject<{
2676
2711
  messageCount: _$zod.ZodNumber;
2677
2712
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -2727,6 +2762,7 @@ declare const SessionStorageNamespace$1: {
2727
2762
  lastActivityAt: _$zod.ZodOptional<_$zod.ZodNumber>;
2728
2763
  metadata: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
2729
2764
  spawningToolCallId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2765
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2730
2766
  }, _$zod_v4_core0.$strip>;
2731
2767
  response: _$zod.ZodObject<{
2732
2768
  success: _$zod.ZodBoolean;
@@ -2855,6 +2891,7 @@ declare const SessionStorageNamespace$1: {
2855
2891
  tracking: "tracking";
2856
2892
  }>>;
2857
2893
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2894
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2858
2895
  }, _$zod_v4_core0.$strip>>;
2859
2896
  }, _$zod_v4_core0.$strip>;
2860
2897
  };
@@ -2891,6 +2928,7 @@ declare const SessionStorageNamespace$1: {
2891
2928
  tracking: "tracking";
2892
2929
  }>>;
2893
2930
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2931
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2894
2932
  kind: _$zod.ZodLiteral<"root">;
2895
2933
  parentAdapterSessionId: _$zod.ZodNull;
2896
2934
  forkPointMessageId: _$zod.ZodNull;
@@ -2916,9 +2954,10 @@ declare const SessionStorageNamespace$1: {
2916
2954
  tracking: "tracking";
2917
2955
  }>>;
2918
2956
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2957
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2919
2958
  kind: _$zod.ZodLiteral<"fork">;
2920
2959
  parentAdapterSessionId: _$zod.ZodString;
2921
- forkPointMessageId: _$zod.ZodString;
2960
+ forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
2922
2961
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2923
2962
  externalSessionId: _$zod.ZodString;
2924
2963
  source: _$zod.ZodString;
@@ -2941,6 +2980,7 @@ declare const SessionStorageNamespace$1: {
2941
2980
  tracking: "tracking";
2942
2981
  }>>;
2943
2982
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
2983
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2944
2984
  kind: _$zod.ZodLiteral<"subagent">;
2945
2985
  parentAdapterSessionId: _$zod.ZodString;
2946
2986
  forkPointMessageId: _$zod.ZodNull;
@@ -2966,6 +3006,7 @@ declare const SessionStorageNamespace$1: {
2966
3006
  tracking: "tracking";
2967
3007
  }>>;
2968
3008
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
3009
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
2969
3010
  kind: _$zod.ZodLiteral<"compress">;
2970
3011
  parentAdapterSessionId: _$zod.ZodString;
2971
3012
  forkPointMessageId: _$zod.ZodNull;
@@ -3095,6 +3136,7 @@ declare const SessionStorageNamespace$1: {
3095
3136
  tracking: "tracking";
3096
3137
  }>>;
3097
3138
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
3139
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
3098
3140
  }, _$zod_v4_core0.$strip>>;
3099
3141
  }, _$zod_v4_core0.$strip>;
3100
3142
  };
@@ -3223,6 +3265,7 @@ declare const SessionStorageNamespace$1: {
3223
3265
  tracking: "tracking";
3224
3266
  }>>;
3225
3267
  isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
3268
+ machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
3226
3269
  }, _$zod_v4_core0.$strip>>;
3227
3270
  }, _$zod_v4_core0.$strip>;
3228
3271
  };
@@ -3335,6 +3378,7 @@ declare const SessionStorageNamespace$1: {
3335
3378
  discoveredAt?: number | undefined;
3336
3379
  importStatus?: "discovered" | "imported" | "tracking" | undefined;
3337
3380
  isSidechain?: boolean | undefined;
3381
+ machineId?: string | null | undefined;
3338
3382
  } | null;
3339
3383
  } | undefined;
3340
3384
  };
@@ -241,7 +241,7 @@ declare const MessageStorageNamespace$1: {
241
241
  tableName: "messages";
242
242
  dataType: "string";
243
243
  columnType: "SQLiteText";
244
- data: "text" | "voice" | "compact";
244
+ data: "text" | "compact" | "voice";
245
245
  driverParam: string;
246
246
  notNull: false;
247
247
  hasDefault: false;
@@ -268,8 +268,8 @@ declare const MessageStorageNamespace$1: {
268
268
  message: _$zod.ZodObject<{
269
269
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
270
270
  text: "text";
271
- voice: "voice";
272
271
  compact: "compact";
272
+ voice: "voice";
273
273
  }>>;
274
274
  sessionId: _$zod.ZodString;
275
275
  role: _$zod.ZodEnum<{
@@ -420,8 +420,8 @@ declare const MessageStorageNamespace$1: {
420
420
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
421
421
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
422
422
  text: "text";
423
- voice: "voice";
424
423
  compact: "compact";
424
+ voice: "voice";
425
425
  }>>;
426
426
  }, _$zod_v4_core0.$strip>;
427
427
  }, _$zod_v4_core0.$strip>;
@@ -515,8 +515,8 @@ declare const MessageStorageNamespace$1: {
515
515
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
516
516
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
517
517
  text: "text";
518
- voice: "voice";
519
518
  compact: "compact";
519
+ voice: "voice";
520
520
  }>>;
521
521
  }, _$zod_v4_core0.$strip>>;
522
522
  nextCursor: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -604,8 +604,8 @@ declare const MessageStorageNamespace$1: {
604
604
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
605
605
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
606
606
  text: "text";
607
- voice: "voice";
608
607
  compact: "compact";
608
+ voice: "voice";
609
609
  }>>;
610
610
  }, _$zod_v4_core0.$strip>>;
611
611
  }, _$zod_v4_core0.$strip>;
@@ -689,8 +689,8 @@ declare const MessageStorageNamespace$1: {
689
689
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
690
690
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
691
691
  text: "text";
692
- voice: "voice";
693
692
  compact: "compact";
693
+ voice: "voice";
694
694
  }>>;
695
695
  }, _$zod_v4_core0.$strip>>;
696
696
  }, _$zod_v4_core0.$strip>;
@@ -774,8 +774,8 @@ declare const MessageStorageNamespace$1: {
774
774
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
775
775
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
776
776
  text: "text";
777
- voice: "voice";
778
777
  compact: "compact";
778
+ voice: "voice";
779
779
  }>>;
780
780
  }, _$zod_v4_core0.$strip>>;
781
781
  }, _$zod_v4_core0.$strip>;
@@ -861,8 +861,8 @@ declare const MessageStorageNamespace$1: {
861
861
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
862
862
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
863
863
  text: "text";
864
- voice: "voice";
865
864
  compact: "compact";
865
+ voice: "voice";
866
866
  }>>;
867
867
  }, _$zod_v4_core0.$strip>>;
868
868
  total: _$zod.ZodNumber;
@@ -957,8 +957,8 @@ declare const MessageStorageNamespace$1: {
957
957
  timestamp: _$zod.ZodNumber;
958
958
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
959
959
  text: "text";
960
- voice: "voice";
961
960
  compact: "compact";
961
+ voice: "voice";
962
962
  }>>;
963
963
  }, _$zod_v4_core0.$strip>;
964
964
  response: _$zod.ZodObject<{
@@ -1041,8 +1041,8 @@ declare const MessageStorageNamespace$1: {
1041
1041
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1042
1042
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1043
1043
  text: "text";
1044
- voice: "voice";
1045
1044
  compact: "compact";
1045
+ voice: "voice";
1046
1046
  }>>;
1047
1047
  }, _$zod_v4_core0.$strip>;
1048
1048
  }, _$zod_v4_core0.$strip>;
@@ -1053,8 +1053,8 @@ declare const MessageStorageNamespace$1: {
1053
1053
  message: _$zod.ZodObject<{
1054
1054
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1055
1055
  text: "text";
1056
- voice: "voice";
1057
1056
  compact: "compact";
1057
+ voice: "voice";
1058
1058
  }>>;
1059
1059
  sessionId: _$zod.ZodString;
1060
1060
  role: _$zod.ZodEnum<{
@@ -1205,8 +1205,8 @@ declare const MessageStorageNamespace$1: {
1205
1205
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1206
1206
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1207
1207
  text: "text";
1208
- voice: "voice";
1209
1208
  compact: "compact";
1209
+ voice: "voice";
1210
1210
  }>>;
1211
1211
  }, _$zod_v4_core0.$strip>;
1212
1212
  }, _$zod_v4_core0.$strip>;
@@ -1300,8 +1300,8 @@ declare const MessageStorageNamespace$1: {
1300
1300
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1301
1301
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1302
1302
  text: "text";
1303
- voice: "voice";
1304
1303
  compact: "compact";
1304
+ voice: "voice";
1305
1305
  }>>;
1306
1306
  }, _$zod_v4_core0.$strip>>;
1307
1307
  nextCursor: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -1389,8 +1389,8 @@ declare const MessageStorageNamespace$1: {
1389
1389
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1390
1390
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1391
1391
  text: "text";
1392
- voice: "voice";
1393
1392
  compact: "compact";
1393
+ voice: "voice";
1394
1394
  }>>;
1395
1395
  }, _$zod_v4_core0.$strip>>;
1396
1396
  }, _$zod_v4_core0.$strip>;
@@ -1474,8 +1474,8 @@ declare const MessageStorageNamespace$1: {
1474
1474
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1475
1475
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1476
1476
  text: "text";
1477
- voice: "voice";
1478
1477
  compact: "compact";
1478
+ voice: "voice";
1479
1479
  }>>;
1480
1480
  }, _$zod_v4_core0.$strip>>;
1481
1481
  }, _$zod_v4_core0.$strip>;
@@ -1559,8 +1559,8 @@ declare const MessageStorageNamespace$1: {
1559
1559
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1560
1560
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1561
1561
  text: "text";
1562
- voice: "voice";
1563
1562
  compact: "compact";
1563
+ voice: "voice";
1564
1564
  }>>;
1565
1565
  }, _$zod_v4_core0.$strip>>;
1566
1566
  }, _$zod_v4_core0.$strip>;
@@ -1646,8 +1646,8 @@ declare const MessageStorageNamespace$1: {
1646
1646
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1647
1647
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1648
1648
  text: "text";
1649
- voice: "voice";
1650
1649
  compact: "compact";
1650
+ voice: "voice";
1651
1651
  }>>;
1652
1652
  }, _$zod_v4_core0.$strip>>;
1653
1653
  total: _$zod.ZodNumber;
@@ -1742,8 +1742,8 @@ declare const MessageStorageNamespace$1: {
1742
1742
  timestamp: _$zod.ZodNumber;
1743
1743
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1744
1744
  text: "text";
1745
- voice: "voice";
1746
1745
  compact: "compact";
1746
+ voice: "voice";
1747
1747
  }>>;
1748
1748
  }, _$zod_v4_core0.$strip>;
1749
1749
  response: _$zod.ZodObject<{
@@ -1826,8 +1826,8 @@ declare const MessageStorageNamespace$1: {
1826
1826
  editOf: _$zod.ZodOptional<_$zod.ZodString>;
1827
1827
  origin: _$zod.ZodOptional<_$zod.ZodEnum<{
1828
1828
  text: "text";
1829
- voice: "voice";
1830
1829
  compact: "compact";
1830
+ voice: "voice";
1831
1831
  }>>;
1832
1832
  }, _$zod_v4_core0.$strip>;
1833
1833
  }, _$zod_v4_core0.$strip>;
@@ -1901,7 +1901,7 @@ declare const MessageStorageNamespace$1: {
1901
1901
  adapterSessionId?: string | undefined;
1902
1902
  adapterMessageId?: string | undefined;
1903
1903
  editOf?: string | undefined;
1904
- origin?: "text" | "voice" | "compact" | undefined;
1904
+ origin?: "text" | "compact" | "voice" | undefined;
1905
1905
  } | {
1906
1906
  sessionId: string;
1907
1907
  role: "user" | "assistant";
@@ -1963,7 +1963,7 @@ declare const MessageStorageNamespace$1: {
1963
1963
  turnId: string | null;
1964
1964
  timestamp: number;
1965
1965
  contentText: string;
1966
- origin?: "text" | "voice" | "compact" | undefined;
1966
+ origin?: "text" | "compact" | "voice" | undefined;
1967
1967
  agentId?: string | undefined;
1968
1968
  adapterSessionId?: string | undefined;
1969
1969
  adapterMessageId?: string | undefined;
@@ -2032,15 +2032,15 @@ declare const MessageStorageNamespace$1: {
2032
2032
  agentId: never;
2033
2033
  adapterSessionId: never;
2034
2034
  turnId: string | null;
2035
- limit: never;
2036
2035
  timestamp: number;
2036
+ limit: never;
2037
2037
  query: string;
2038
2038
  contentText: string;
2039
2039
  adapterMessageId: string;
2040
- emitEvent: never;
2041
2040
  after: never;
2042
- includeAfter: never;
2043
2041
  order: never;
2042
+ emitEvent: never;
2043
+ includeAfter: never;
2044
2044
  } | undefined;
2045
2045
  };
2046
2046
  //#endregion
@@ -131,8 +131,13 @@ declare class WorkflowExecutor extends BaseService {
131
131
  *
132
132
  * Coordinator sessions are created with this target working directory so
133
133
  * in-process shell steps and workflow-level workers share the same workspace.
134
+ *
135
+ * Throws when a `parentSessionId` is supplied but the session does not exist.
136
+ * The session create handler enforces the same invariant, but throwing here
137
+ * provides a cleaner error before any coordinator session is created.
134
138
  * @param parentSessionId - Optional parent session identifier.
135
139
  * @returns Parent session working directory, or the executor default cwd.
140
+ * @throws When `parentSessionId` is provided but the session is not found.
136
141
  */
137
142
  private resolveExecutionWorkspaceRoot;
138
143
  /**