@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
@@ -140,17 +140,16 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
140
140
  cwd: z.ZodOptional<z.ZodString>;
141
141
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
142
142
  name: z.ZodString;
143
- adapterName: z.ZodOptional<z.ZodString>;
144
- clientId: z.ZodOptional<z.ZodString>;
145
143
  nativeTools: z.ZodObject<{
146
144
  enabled: z.ZodArray<z.ZodString>;
147
145
  disabled: z.ZodArray<z.ZodString>;
148
146
  }, z.core.$strip>;
149
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
150
147
  registryTools: z.ZodObject<{
151
148
  enabled: z.ZodArray<z.ZodString>;
152
149
  disabled: z.ZodArray<z.ZodString>;
153
150
  }, z.core.$strip>;
151
+ adapterName: z.ZodOptional<z.ZodString>;
152
+ clientId: z.ZodOptional<z.ZodString>;
154
153
  skills: z.ZodOptional<z.ZodObject<{
155
154
  enabled: z.ZodArray<z.ZodString>;
156
155
  disabled: z.ZodArray<z.ZodString>;
@@ -176,6 +175,7 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
176
175
  "always-ask": "always-ask";
177
176
  "full-access": "full-access";
178
177
  }>>>;
178
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
179
179
  approvalPolicy: z.ZodOptional<z.ZodEnum<{
180
180
  reject: "reject";
181
181
  "always-ask": "always-ask";
@@ -316,17 +316,16 @@ declare const HarnessSchemas: {
316
316
  cwd: z.ZodOptional<z.ZodString>;
317
317
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
318
318
  name: z.ZodString;
319
- adapterName: z.ZodOptional<z.ZodString>;
320
- clientId: z.ZodOptional<z.ZodString>;
321
319
  nativeTools: z.ZodObject<{
322
320
  enabled: z.ZodArray<z.ZodString>;
323
321
  disabled: z.ZodArray<z.ZodString>;
324
322
  }, z.core.$strip>;
325
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
326
323
  registryTools: z.ZodObject<{
327
324
  enabled: z.ZodArray<z.ZodString>;
328
325
  disabled: z.ZodArray<z.ZodString>;
329
326
  }, z.core.$strip>;
327
+ adapterName: z.ZodOptional<z.ZodString>;
328
+ clientId: z.ZodOptional<z.ZodString>;
330
329
  skills: z.ZodOptional<z.ZodObject<{
331
330
  enabled: z.ZodArray<z.ZodString>;
332
331
  disabled: z.ZodArray<z.ZodString>;
@@ -352,6 +351,7 @@ declare const HarnessSchemas: {
352
351
  "always-ask": "always-ask";
353
352
  "full-access": "full-access";
354
353
  }>>>;
354
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
355
355
  approvalPolicy: z.ZodOptional<z.ZodEnum<{
356
356
  reject: "reject";
357
357
  "always-ask": "always-ask";
@@ -759,17 +759,16 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
759
759
  cwd: z.ZodOptional<z.ZodString>;
760
760
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
761
761
  name: z.ZodString;
762
- adapterName: z.ZodOptional<z.ZodString>;
763
- clientId: z.ZodOptional<z.ZodString>;
764
762
  nativeTools: z.ZodObject<{
765
763
  enabled: z.ZodArray<z.ZodString>;
766
764
  disabled: z.ZodArray<z.ZodString>;
767
765
  }, z.core.$strip>;
768
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
769
766
  registryTools: z.ZodObject<{
770
767
  enabled: z.ZodArray<z.ZodString>;
771
768
  disabled: z.ZodArray<z.ZodString>;
772
769
  }, z.core.$strip>;
770
+ adapterName: z.ZodOptional<z.ZodString>;
771
+ clientId: z.ZodOptional<z.ZodString>;
773
772
  skills: z.ZodOptional<z.ZodObject<{
774
773
  enabled: z.ZodArray<z.ZodString>;
775
774
  disabled: z.ZodArray<z.ZodString>;
@@ -795,6 +794,7 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
795
794
  "always-ask": "always-ask";
796
795
  "full-access": "full-access";
797
796
  }>>>;
797
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
798
798
  approvalPolicy: z.ZodOptional<z.ZodEnum<{
799
799
  reject: "reject";
800
800
  "always-ask": "always-ask";
@@ -1202,17 +1202,16 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
1202
1202
  cwd: z.ZodOptional<z.ZodString>;
1203
1203
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1204
1204
  name: z.ZodString;
1205
- adapterName: z.ZodOptional<z.ZodString>;
1206
- clientId: z.ZodOptional<z.ZodString>;
1207
1205
  nativeTools: z.ZodObject<{
1208
1206
  enabled: z.ZodArray<z.ZodString>;
1209
1207
  disabled: z.ZodArray<z.ZodString>;
1210
1208
  }, z.core.$strip>;
1211
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1212
1209
  registryTools: z.ZodObject<{
1213
1210
  enabled: z.ZodArray<z.ZodString>;
1214
1211
  disabled: z.ZodArray<z.ZodString>;
1215
1212
  }, z.core.$strip>;
1213
+ adapterName: z.ZodOptional<z.ZodString>;
1214
+ clientId: z.ZodOptional<z.ZodString>;
1216
1215
  skills: z.ZodOptional<z.ZodObject<{
1217
1216
  enabled: z.ZodArray<z.ZodString>;
1218
1217
  disabled: z.ZodArray<z.ZodString>;
@@ -1238,6 +1237,7 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
1238
1237
  "always-ask": "always-ask";
1239
1238
  "full-access": "full-access";
1240
1239
  }>>>;
1240
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1241
1241
  approvalPolicy: z.ZodOptional<z.ZodEnum<{
1242
1242
  reject: "reject";
1243
1243
  "always-ask": "always-ask";
@@ -1,5 +1,5 @@
1
1
  import { i as CliContribution } from "./types-DCvp_swt.mjs";
2
- import { c as ExtensionInfo } from "./index-3X0368CL.mjs";
2
+ import { c as ExtensionInfo } from "./index-B5Uczo3R.mjs";
3
3
  import { r as WindowRegistry } from "./window-registry-ofIUQnfo.mjs";
4
4
  import { IMakaioBus } from "@makaio/framework/bus";
5
5
  import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";
@@ -9,8 +9,8 @@ import { z } from "zod";
9
9
  * - `visible` — Model is usable and shown in the AgentPicker UI.
10
10
  */
11
11
  declare const ModelVisibilitySchema: z.ZodEnum<{
12
- disabled: "disabled";
13
12
  enabled: "enabled";
13
+ disabled: "disabled";
14
14
  visible: "visible";
15
15
  }>;
16
16
  type ModelVisibility = z.infer<typeof ModelVisibilitySchema>;
@@ -1,12 +1,12 @@
1
1
  import { r as ExecutionTarget } from "./schemas-D4zaFE2p.mjs";
2
- import { d as Turn$1 } from "./index-BYfSAJRC.mjs";
3
- import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-BMS6yfLS.mjs";
2
+ import { d as Turn$1 } from "./index-BvTd61i5.mjs";
3
+ import { a as PipelineStep, o as SessionEditorAction, t as ActionCategory } from "./types-BNW5n6qm.mjs";
4
4
  import { z } from "zod";
5
5
  import * as _$_makaio_core0 from "@makaio/framework/core";
6
6
  import { ExtractSubjectPayload, SubjectDefinition } from "@makaio/framework/core";
7
7
  import { IMakaioBus } from "@makaio/framework/bus";
8
8
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
9
- import { AIReasoningLevel, AdapterRuntimeOptions, BranchKind, ContextWindowState, ForkOptions, ForkTransforms, ICapabilityProvider, IMakaioSession, JsonValue, MakaioSessionAgent, MakaioSessionEvent, Message, MessageBlock, MessageInput, ReasoningLevelMap, SessionContext, SessionEventType, SessionExtensionContext, SessionLineage, SessionLineageKind, SessionMessage, SessionMessageBlock, SessionMessageOrigin, SessionSubjects, TurnIngestionMarker, TurnInitiator, TurnUsage } from "@makaio/framework/contracts";
9
+ import { AIReasoningLevel, AdapterRuntimeOptions, BranchKind, ContextWindowState, ForkOptions, ForkTransforms, ICapabilityProvider, IMakaioSession, JsonValue, MakaioSessionAgent, MakaioSessionEvent, Message, MessageBlock, MessageInput, NativeLocalityVerdict, ReasoningLevelMap, SessionContext, SessionEventType, SessionExtensionContext, SessionLineage, SessionLineageKind, SessionMessage, SessionMessageBlock, SessionMessageOrigin, SessionSubjects, TurnIngestionMarker, TurnInitiator, TurnUsage } from "@makaio/framework/contracts";
10
10
  import { BaseService } from "@makaio/framework/service-base";
11
11
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
12
12
  import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
@@ -182,13 +182,16 @@ declare class SessionOrchestrator implements ISessionOrchestrator {
182
182
  private readonly bus;
183
183
  private readonly turnManager;
184
184
  private readonly adapterRegistry;
185
+ private readonly machineId;
185
186
  /** Cleanup functions for bus subscriptions. */
186
187
  private readonly cleanups;
187
188
  /**
188
189
  * @param bus - Event bus used for handler registration and message routing
189
- * @param _machineId - Machine identifier (reserved for future routing use)
190
+ * @param machineId - Stable machine identity forwarded to the attach handler
191
+ * to drive native-locality decisions (resume locality evaluation, adapter
192
+ * instance resolution).
190
193
  */
191
- constructor(bus: IMakaioBus | undefined, _machineId: string);
194
+ constructor(bus: IMakaioBus | undefined, machineId: string);
192
195
  /**
193
196
  * Register the `session.sendMessage` RPC handler.
194
197
  *
@@ -357,9 +360,10 @@ declare function normalizeToBlocks(message: MessageInput): SessionMessageBlock[]
357
360
  * @param providedSessionId - Session ID to look up
358
361
  * @param _sessionContext - Optional session context (scope fields removed in W1-A)
359
362
  * @param originWindowId - Window ID that initiated the session creation
363
+ * @param machineId - Machine identity to stamp on the session at creation time
360
364
  * @returns Session ID and session object
361
365
  */
362
- declare function getOrCreateSession(bus: IMakaioBus, providedSessionId: string, _sessionContext?: SessionContext, originWindowId?: string): Promise<{
366
+ declare function getOrCreateSession(bus: IMakaioBus, providedSessionId: string, _sessionContext?: SessionContext, originWindowId?: string, machineId?: string): Promise<{
363
367
  sessionId: string;
364
368
  session: IMakaioSession;
365
369
  }>;
@@ -436,6 +440,15 @@ interface RecoveryConfig {
436
440
  cwd?: string;
437
441
  /** Model identifier (e.g., 'claude-sonnet-4-20250514', 'gpt-4o') */
438
442
  model?: string;
443
+ /**
444
+ * Provider-native session ID to resume.
445
+ *
446
+ * When set, the adapter creates the connector in native-resume mode so the
447
+ * provider session continues from where it left off. The caller is responsible
448
+ * for evaluating locality (machine identity, adapter capability, CWD match)
449
+ * before setting this field.
450
+ */
451
+ resumeAdapterSessionId?: string;
439
452
  }
440
453
  /**
441
454
  * Ensure agent cwd matches desired cwd, swapping connector if needed.
@@ -797,15 +810,24 @@ type FallbackRuntimeOptions = Pick<AdapterRuntimeOptions, 'cwd' | 'systemPrompt'
797
810
  declare function pickFallbackRuntimeOptions(payload: Partial<Pick<AdapterRuntimeOptions, 'cwd' | 'systemPrompt' | 'allowedTools' | 'disallowedTools'>>): FallbackRuntimeOptions;
798
811
  //#endregion
799
812
  //#region services/core/src/session/context/assemble-fork-context.d.ts
813
+ /** Adapter capability signals required before emitting a native fork directive. */
814
+ interface AssembleForkContextCapabilities {
815
+ /** Adapter declares provider-native fork support for the selected target. */
816
+ readonly adapterSupportsNativeFork: boolean;
817
+ /** Adapter declares support for provider-native mid-history/checkpoint fork. */
818
+ readonly midHistoryForkSupported: boolean;
819
+ }
800
820
  /**
801
821
  * Assemble fork context for a session's first turn.
802
822
  *
803
823
  * For fork sessions on their first turn, this:
804
824
  * 1. Detects if this is a fork session (has parentSessionId)
805
825
  * 2. Checks if this is the first turn (via isNewTurn flag + storage query)
806
- * 3. Calls getFullConversation() to get projected context with transforms
807
- * 4. Converts SessionMessage[] to Message[] format
808
- * 5. Returns enriched SessionContext with messageHistory
826
+ * 3. Evaluates native locality for the source (parent) session
827
+ * 4a. If native: returns a fork directive without message history injection
828
+ * 4b. Otherwise: calls getFullConversation() to get projected context with transforms,
829
+ * converts SessionMessage[] to Message[] format, and attaches the locality verdict
830
+ * 5. Returns enriched SessionContext
809
831
  *
810
832
  * If not a fork first turn, returns the original sessionContext unchanged.
811
833
  * @param bus - Bus instance for RPC calls
@@ -813,9 +835,24 @@ declare function pickFallbackRuntimeOptions(payload: Partial<Pick<AdapterRuntime
813
835
  * @param sessionId - Session ID
814
836
  * @param originalContext - Original sessionContext from payload
815
837
  * @param isNewTurn - Whether this is a new turn (avoids race with just-created turn record)
838
+ * @param localMachineId - Stable machine identity of the current host process
839
+ * @param capabilities - Adapter capability signals resolved by the caller
840
+ * @param targetCwd - Effective working directory for the new agent, overriding
841
+ * `session.targetWorkingDirectory` in the locality check. Callers that resolve
842
+ * a per-request cwd override (e.g. a send payload `cwd` field) must pass the
843
+ * resolved value here so the native-fork evaluation and the eventual
844
+ * `startAgent` call operate on the same cwd — preventing a mismatch where
845
+ * locality is approved against the stored session cwd but the agent starts in
846
+ * a different directory.
847
+ * @param targetAdapterName - Stable adapter type name of the target adapter.
848
+ * Compared against the source session's adapterName to prevent cross-adapter
849
+ * fork — sending a provider session ID to a different adapter type would
850
+ * corrupt the conversation. Undefined when the caller cannot determine the
851
+ * target adapter (e.g. route-to-agents with mixed adapters); in that case the
852
+ * adapter-mismatch check is skipped.
816
853
  * @returns Enriched or original SessionContext
817
854
  */
818
- declare function assembleForkContext(bus: IMakaioBus, session: IMakaioSession, sessionId: string, originalContext?: SessionContext, isNewTurn?: boolean): Promise<SessionContext | undefined>;
855
+ declare function assembleForkContext(bus: IMakaioBus, session: IMakaioSession, sessionId: string, originalContext?: SessionContext, isNewTurn?: boolean, localMachineId?: string, capabilities?: AssembleForkContextCapabilities, targetCwd?: string, targetAdapterName?: string): Promise<SessionContext | undefined>;
819
856
  //#endregion
820
857
  //#region services/core/src/session/session-bridge.d.ts
821
858
  declare class SessionBridge {
@@ -1159,6 +1196,7 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1159
1196
  request: z.ZodObject<{
1160
1197
  agentId: z.ZodString;
1161
1198
  adapterId: z.ZodOptional<z.ZodString>;
1199
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1162
1200
  cwd: z.ZodOptional<z.ZodString>;
1163
1201
  model: z.ZodOptional<z.ZodString>;
1164
1202
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1768,6 +1806,7 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1768
1806
  request: z.ZodObject<{
1769
1807
  agentId: z.ZodString;
1770
1808
  adapterId: z.ZodOptional<z.ZodString>;
1809
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1771
1810
  cwd: z.ZodOptional<z.ZodString>;
1772
1811
  model: z.ZodOptional<z.ZodString>;
1773
1812
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2461,6 +2500,25 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
2461
2500
  identity: undefined;
2462
2501
  generated: undefined;
2463
2502
  }, {}, {}>;
2503
+ machineId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
2504
+ name: "machine_id";
2505
+ tableName: "sessions";
2506
+ dataType: "string";
2507
+ columnType: "SQLiteText";
2508
+ data: string;
2509
+ driverParam: string;
2510
+ notNull: false;
2511
+ hasDefault: false;
2512
+ isPrimaryKey: false;
2513
+ isAutoincrement: false;
2514
+ hasRuntimeDefault: false;
2515
+ enumValues: [string, ...string[]];
2516
+ baseColumn: never;
2517
+ identity: undefined;
2518
+ generated: undefined;
2519
+ }, {}, {
2520
+ length: number | undefined;
2521
+ }>;
2464
2522
  };
2465
2523
  dialect: "sqlite";
2466
2524
  }>;
@@ -2880,6 +2938,7 @@ type SearchSessionRow = {
2880
2938
  fork_transforms: string | null;
2881
2939
  target_working_directory: string | null;
2882
2940
  metadata: Record<string, JsonValue> | string | null;
2941
+ machine_id: string | null;
2883
2942
  };
2884
2943
  /**
2885
2944
  * Filter parameters accepted by FTS search queries.
@@ -4556,7 +4615,7 @@ declare const messages: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
4556
4615
  tableName: "messages";
4557
4616
  dataType: "string";
4558
4617
  columnType: "SQLiteText";
4559
- data: "text" | "voice" | "compact";
4618
+ data: "text" | "compact" | "voice";
4560
4619
  driverParam: string;
4561
4620
  notNull: false;
4562
4621
  hasDefault: false;
@@ -5283,4 +5342,78 @@ declare function buildSessionContext(bus: IMakaioBus, options: BuildContextOptio
5283
5342
  */
5284
5343
  declare function getFullConversation(bus: IMakaioBus, sessionId: string): Promise<ContextAssemblyResult>;
5285
5344
  //#endregion
5286
- export { emitSessionTurnStarted as $, resolveAdapterId as $t, registerMemoryTurnStorage as A, FallbackRuntimeOptions as At, ObservedSessionIngestionPolicyInput as B, registerResumeHandler as Bt, messages as C, registerMemorySessionStorage as Ct, SelectTurn as D, createSessionExtensionContext as Dt, InsertTurn as E, SessionExtensionContextImpl as Et, importCursorsDual as F, registerListActionsHandler as Ft, IngestCompletedTurnParams as G, buildTurnInitiator as Gt, unregisterObservedSessionIngestionPolicyProvider as H, AgentContextState as Ht, IObservedSessionIngestionPolicyProvider as I, registerBuiltInActions as It, ingestCompletedTurn as J, ensureAgentCwd as Jt, IngestCompletedTurnResult as K, RecoveryConfig as Kt, OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID as L, resetBuiltInActionsRegistration as Lt, EmbeddingIndexManager as M, CONNECTOR_SWAP_DEFAULT_PIPELINE as Mt, registerDrizzleImportCursorStorage as N, normalizeSelectionString as Nt, turns as O, SessionBridge as Ot, importCursors as P, resolveAdapterNameById as Pt, appendSessionLifecycleEvent as Q, buildRecoveryContext as Qt, ObservedSessionIngestionPolicyDecision as R, actionRegistry as Rt, SelectMessage as S, registerDrizzleSessionStorage as St, registerDrizzleMessageStorage as T, AgentStorageSubjects as Tt, LogImportTriggerSubjects as U, ContextWindowTrackerConfig as Ut, registerObservedSessionIngestionPolicyProvider as V, ContextWindowTracker as Vt, isPolicyDiscoveredObservedSession as W, SessionContextWindowState as Wt, SessionLifecycleEventArgs as X, recoverAgent as Xt, EventTransform as Y, ensureAgentModel as Yt, SessionTurnStartedPayload as Z, verifyAndRecoverAgents as Zt, messageRoutingDual as _, mapRowToSession as _t, kindToBranchKind as a, extractTextContent as an, sessionEvents as at, MessageRoutingSubjects as b, registerDrizzleAgentStorage as bt, registerSpawningToolCallResolver as c, AdapterRegistry as cn, SessionPreviewMaps as ct, MakaioSession as d, registerCoreSessionServiceHandlers as dn, mapToSession as dt, resolveExecutionTarget as en, registerSessionLifecycleEventWriters as et, MakaioSessionConfig as f, MakaioSessionService as fn, SearchFilters as ft, messageRouting as g, fetchPreviewBySession as gt, SelectMessageRouting as h, fetchMessageCountsBySession as ht, ContextAssemblyResult as i, resolveTargetAgents as in, SelectSessionEvent as it, registerDrizzleTurnStorage as j, pickFallbackRuntimeOptions as jt, turnsDual as k, assembleForkContext as kt, registerCompressLineageResolver as l, ISessionOrchestrator as ln, fetchSessionPreviewMaps as lt, InsertMessageRouting as m, fetchAgentsBySession as mt, buildSessionContext as n, findTurnByAgent as nn, registerMemorySessionEventStorage as nt, toSessionLineage as o, normalizeToBlocks as on, sessionEventsDual as ot, StartTurnOptions as p, SearchSessionRow as pt, IngestTurnMessage as q, buildRecoveryContextWithPipeline as qt, BuildContextOptions as r, getOrCreateSession as rn, InsertSessionEvent as rt, registerSessionDiscoveredHandler as s, TurnContextEnricher as sn, getSessionAncestorChain as st, getFullConversation as t, resolveModelCapabilities as tn, registerDrizzleSessionEventStorage as tt, registerParentResolver as u, SessionOrchestrator as un, mapAgentsBySession as ut, registerDrizzleMessageRoutingStorage as v, parseForkTransforms as vt, registerMemoryMessageStorage as w, AgentStorageNamespace as wt, InsertMessage as x, registerMemoryAgentStorage as xt, MessageRoutingNamespace as y, registerFtsSearchHandler as yt, ObservedSessionIngestionPolicyImportStatus as z, registerGetStatusCountsHandler as zt };
5345
+ //#region services/core/src/session/native-locality.d.ts
5346
+ /**
5347
+ * Describes whether the session resume/fork intent is a native continuation
5348
+ * or a new fork branching from an existing session.
5349
+ */
5350
+ type NativeLocalityIntent = 'resume' | 'fork';
5351
+ /**
5352
+ * All inputs required for the native locality evaluator.
5353
+ */
5354
+ interface NativeLocalityInput {
5355
+ /** Whether this is a resume or fork operation. */
5356
+ readonly intent: NativeLocalityIntent;
5357
+ /** The session being resumed or forked. */
5358
+ readonly session: IMakaioSession;
5359
+ /**
5360
+ * The stable machine identity of the current host process.
5361
+ * Undefined when the framework host has not yet resolved machine identity.
5362
+ */
5363
+ readonly localMachineId: string | undefined;
5364
+ /**
5365
+ * Whether the adapter for this session declares native resume/fork capability.
5366
+ * Adapters that cannot natively replay/branch must always inject history.
5367
+ */
5368
+ readonly adapterSupportsNative: boolean;
5369
+ /**
5370
+ * Stable adapter type name of the target adapter (e.g. 'claude-code', 'codex-mcp').
5371
+ *
5372
+ * Compared against `session.adapterName` to prevent cross-adapter resume/fork:
5373
+ * sending a Claude provider session ID to a Codex adapter (or vice versa) would
5374
+ * corrupt the provider conversation. When the session has no stored adapterName
5375
+ * (legacy records, sessions created before adapter identity tracking), the check
5376
+ * is skipped — the downstream adapter will reject an incompatible session ID.
5377
+ */
5378
+ readonly targetAdapterName: string;
5379
+ /**
5380
+ * Working directory of the current adapter instance.
5381
+ * Only relevant when `targetCwd` is also supplied.
5382
+ */
5383
+ readonly currentCwd?: string;
5384
+ /**
5385
+ * Requested working directory for the resumed or forked session.
5386
+ * When it differs from `currentCwd`, native operation cannot reuse the
5387
+ * existing connector.
5388
+ */
5389
+ readonly targetCwd?: string;
5390
+ /**
5391
+ * Turn-scoped context signals produced by the session orchestrator.
5392
+ * Used to detect compression, connector swaps, and pending transforms.
5393
+ */
5394
+ readonly sessionContext?: SessionContext;
5395
+ /**
5396
+ * Whether the underlying adapter supports forking at a mid-history message.
5397
+ * Required when `session.forkPointMessageId` is set and `intent === 'fork'`.
5398
+ */
5399
+ readonly midHistoryForkSupported?: boolean;
5400
+ }
5401
+ /**
5402
+ * Evaluates whether a session can use native resume or fork, or must fall back
5403
+ * to history injection.
5404
+ *
5405
+ * Checks are ordered from cheapest/most common disqualifier to most specific so
5406
+ * that callers pay no cost for conditions that are almost never hit:
5407
+ *
5408
+ * 1. Adapter capability declaration
5409
+ * 2. Provider-native session ID presence
5410
+ * 3. Machine identity availability and ownership
5411
+ * 4. Structural constraints (imports + orchestration, compression, transforms,
5412
+ * connector swap, CWD mismatch)
5413
+ * 5. Mid-history fork support
5414
+ * @param input - All signals needed to determine locality
5415
+ * @returns A {@link NativeLocalityVerdict} describing the outcome
5416
+ */
5417
+ declare function evaluateNativeLocality(input: NativeLocalityInput): NativeLocalityVerdict;
5418
+ //#endregion
5419
+ export { SessionLifecycleEventArgs as $, recoverAgent as $t, SelectTurn as A, createSessionExtensionContext as At, OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID as B, resetBuiltInActionsRegistration as Bt, MessageRoutingSubjects as C, registerDrizzleAgentStorage as Ct, registerMemoryMessageStorage as D, AgentStorageNamespace as Dt, messages as E, registerMemorySessionStorage as Et, EmbeddingIndexManager as F, CONNECTOR_SWAP_DEFAULT_PIPELINE as Ft, unregisterObservedSessionIngestionPolicyProvider as G, AgentContextState as Gt, ObservedSessionIngestionPolicyImportStatus as H, registerGetStatusCountsHandler as Ht, registerDrizzleImportCursorStorage as I, normalizeSelectionString as It, IngestCompletedTurnParams as J, buildTurnInitiator as Jt, LogImportTriggerSubjects as K, ContextWindowTrackerConfig as Kt, importCursors as L, resolveAdapterNameById as Lt, turnsDual as M, assembleForkContext as Mt, registerMemoryTurnStorage as N, FallbackRuntimeOptions as Nt, registerDrizzleMessageStorage as O, AgentStorageSubjects as Ot, registerDrizzleTurnStorage as P, pickFallbackRuntimeOptions as Pt, EventTransform as Q, ensureAgentModel as Qt, importCursorsDual as R, registerListActionsHandler as Rt, MessageRoutingNamespace as S, registerFtsSearchHandler as St, SelectMessage as T, registerDrizzleSessionStorage as Tt, ObservedSessionIngestionPolicyInput as U, registerResumeHandler as Ut, ObservedSessionIngestionPolicyDecision as V, actionRegistry as Vt, registerObservedSessionIngestionPolicyProvider as W, ContextWindowTracker as Wt, IngestTurnMessage as X, buildRecoveryContextWithPipeline as Xt, IngestCompletedTurnResult as Y, RecoveryConfig as Yt, ingestCompletedTurn as Z, ensureAgentCwd as Zt, InsertMessageRouting as _, fetchAgentsBySession as _t, buildSessionContext as a, findTurnByAgent as an, registerMemorySessionEventStorage as at, messageRoutingDual as b, mapRowToSession as bt, kindToBranchKind as c, extractTextContent as cn, sessionEvents as ct, registerSpawningToolCallResolver as d, AdapterRegistry as dn, SessionPreviewMaps as dt, verifyAndRecoverAgents as en, SessionTurnStartedPayload as et, registerCompressLineageResolver as f, ISessionOrchestrator as fn, fetchSessionPreviewMaps as ft, StartTurnOptions as g, SearchSessionRow as gt, MakaioSessionConfig as h, MakaioSessionService as hn, SearchFilters as ht, getFullConversation as i, resolveModelCapabilities as in, registerDrizzleSessionEventStorage as it, turns as j, SessionBridge as jt, InsertTurn as k, SessionExtensionContextImpl as kt, toSessionLineage as l, normalizeToBlocks as ln, sessionEventsDual as lt, MakaioSession as m, registerCoreSessionServiceHandlers as mn, mapToSession as mt, NativeLocalityIntent as n, resolveAdapterId as nn, emitSessionTurnStarted as nt, BuildContextOptions as o, getOrCreateSession as on, InsertSessionEvent as ot, registerParentResolver as p, SessionOrchestrator as pn, mapAgentsBySession as pt, isPolicyDiscoveredObservedSession as q, SessionContextWindowState as qt, evaluateNativeLocality as r, resolveExecutionTarget as rn, registerSessionLifecycleEventWriters as rt, ContextAssemblyResult as s, resolveTargetAgents as sn, SelectSessionEvent as st, NativeLocalityInput as t, buildRecoveryContext as tn, appendSessionLifecycleEvent as tt, registerSessionDiscoveredHandler as u, TurnContextEnricher as un, getSessionAncestorChain as ut, SelectMessageRouting as v, fetchMessageCountsBySession as vt, InsertMessage as w, registerMemoryAgentStorage as wt, registerDrizzleMessageRoutingStorage as x, parseForkTransforms as xt, messageRouting as y, fetchPreviewBySession as yt, IObservedSessionIngestionPolicyProvider as z, registerBuiltInActions as zt };
@@ -14,8 +14,8 @@ declare const ProviderConfigFileRecordSchema: z.ZodObject<{
14
14
  name: z.ZodString;
15
15
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16
16
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
17
- disabled: "disabled";
18
17
  enabled: "enabled";
18
+ disabled: "disabled";
19
19
  visible: "visible";
20
20
  }>>>;
21
21
  modelFilterMode: z.ZodEnum<{
@@ -52,13 +52,13 @@ declare const AdapterFileConfigSchema: z.ZodObject<{
52
52
  displayName: z.ZodOptional<z.ZodString>;
53
53
  protocol: z.ZodOptional<z.ZodString>;
54
54
  clientId: z.ZodOptional<z.ZodString>;
55
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
55
56
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
57
  label: z.ZodString;
57
58
  url: z.ZodString;
58
59
  }, z.core.$strict>>>;
59
60
  instructions: z.ZodOptional<z.ZodString>;
60
61
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
62
62
  name: z.ZodString;
63
63
  enabled: z.ZodBoolean;
64
64
  bindings: z.ZodArray<z.ZodObject<{
@@ -128,13 +128,13 @@ declare const AdapterSubsystemSchemas: {
128
128
  displayName: z.ZodOptional<z.ZodString>;
129
129
  protocol: z.ZodOptional<z.ZodString>;
130
130
  clientId: z.ZodOptional<z.ZodString>;
131
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
131
132
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
133
  label: z.ZodString;
133
134
  url: z.ZodString;
134
135
  }, z.core.$strict>>>;
135
136
  instructions: z.ZodOptional<z.ZodString>;
136
137
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
138
138
  name: z.ZodString;
139
139
  enabled: z.ZodBoolean;
140
140
  bindings: z.ZodArray<z.ZodObject<{
@@ -156,13 +156,13 @@ declare const AdapterSubsystemSchemas: {
156
156
  displayName: z.ZodOptional<z.ZodString>;
157
157
  protocol: z.ZodOptional<z.ZodString>;
158
158
  clientId: z.ZodOptional<z.ZodString>;
159
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
159
160
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
161
  label: z.ZodString;
161
162
  url: z.ZodString;
162
163
  }, z.core.$strict>>>;
163
164
  instructions: z.ZodOptional<z.ZodString>;
164
165
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
166
166
  name: z.ZodString;
167
167
  enabled: z.ZodBoolean;
168
168
  bindings: z.ZodArray<z.ZodObject<{
@@ -187,8 +187,8 @@ declare const AdapterSubsystemSchemas: {
187
187
  name: z.ZodString;
188
188
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
189
189
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
190
- disabled: "disabled";
191
190
  enabled: "enabled";
191
+ disabled: "disabled";
192
192
  visible: "visible";
193
193
  }>>>;
194
194
  modelFilterMode: z.ZodEnum<{
@@ -217,8 +217,8 @@ declare const AdapterSubsystemSchemas: {
217
217
  name: z.ZodString;
218
218
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
219
219
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
220
- disabled: "disabled";
221
220
  enabled: "enabled";
221
+ disabled: "disabled";
222
222
  visible: "visible";
223
223
  }>>>;
224
224
  modelFilterMode: z.ZodEnum<{
@@ -247,8 +247,8 @@ declare const AdapterSubsystemSchemas: {
247
247
  name: z.ZodString;
248
248
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
249
249
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
250
- disabled: "disabled";
251
250
  enabled: "enabled";
251
+ disabled: "disabled";
252
252
  visible: "visible";
253
253
  }>>>;
254
254
  modelFilterMode: z.ZodEnum<{
@@ -323,8 +323,8 @@ declare const AdapterSubsystemSchemas: {
323
323
  name: z.ZodString;
324
324
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
325
325
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
326
- disabled: "disabled";
327
326
  enabled: "enabled";
327
+ disabled: "disabled";
328
328
  visible: "visible";
329
329
  }>>>;
330
330
  modelFilterMode: z.ZodEnum<{
@@ -487,8 +487,8 @@ declare const AdapterSubsystemSchemas: {
487
487
  openai: z.ZodOptional<z.ZodString>;
488
488
  }, z.core.$strip>>;
489
489
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
490
- disabled: "disabled";
491
490
  enabled: "enabled";
491
+ disabled: "disabled";
492
492
  visible: "visible";
493
493
  }>>>;
494
494
  modelFilterMode: z.ZodOptional<z.ZodEnum<{
@@ -504,8 +504,8 @@ declare const AdapterSubsystemSchemas: {
504
504
  name: z.ZodString;
505
505
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
506
506
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
507
- disabled: "disabled";
508
507
  enabled: "enabled";
508
+ disabled: "disabled";
509
509
  visible: "visible";
510
510
  }>>>;
511
511
  modelFilterMode: z.ZodEnum<{
@@ -533,8 +533,8 @@ declare const AdapterSubsystemSchemas: {
533
533
  openai: z.ZodOptional<z.ZodString>;
534
534
  }, z.core.$strip>>>;
535
535
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
536
- disabled: "disabled";
537
536
  enabled: "enabled";
537
+ disabled: "disabled";
538
538
  visible: "visible";
539
539
  }>>>;
540
540
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -547,8 +547,8 @@ declare const AdapterSubsystemSchemas: {
547
547
  name: z.ZodString;
548
548
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
549
549
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
550
- disabled: "disabled";
551
550
  enabled: "enabled";
551
+ disabled: "disabled";
552
552
  visible: "visible";
553
553
  }>>>;
554
554
  modelFilterMode: z.ZodEnum<{
@@ -578,8 +578,8 @@ declare const AdapterSubsystemSchemas: {
578
578
  name: z.ZodString;
579
579
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
580
580
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
581
- disabled: "disabled";
582
581
  enabled: "enabled";
582
+ disabled: "disabled";
583
583
  visible: "visible";
584
584
  }>>>;
585
585
  modelFilterMode: z.ZodEnum<{
@@ -619,8 +619,8 @@ declare const AdapterSubsystemSchemas: {
619
619
  name: z.ZodString;
620
620
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
621
621
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
622
- disabled: "disabled";
623
622
  enabled: "enabled";
623
+ disabled: "disabled";
624
624
  visible: "visible";
625
625
  }>>>;
626
626
  modelFilterMode: z.ZodEnum<{
@@ -654,8 +654,8 @@ declare const AdapterSubsystemSchemas: {
654
654
  name: z.ZodString;
655
655
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
656
656
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
657
- disabled: "disabled";
658
657
  enabled: "enabled";
658
+ disabled: "disabled";
659
659
  visible: "visible";
660
660
  }>>>;
661
661
  modelFilterMode: z.ZodEnum<{
@@ -697,13 +697,13 @@ declare const AdapterSubsystemSchemas: {
697
697
  displayName: z.ZodOptional<z.ZodString>;
698
698
  protocol: z.ZodOptional<z.ZodString>;
699
699
  clientId: z.ZodOptional<z.ZodString>;
700
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
700
701
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
701
702
  label: z.ZodString;
702
703
  url: z.ZodString;
703
704
  }, z.core.$strict>>>;
704
705
  instructions: z.ZodOptional<z.ZodString>;
705
706
  providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
706
- settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
707
707
  name: z.ZodString;
708
708
  enabled: z.ZodBoolean;
709
709
  bindings: z.ZodArray<z.ZodObject<{
@@ -780,8 +780,8 @@ declare const AdapterSubsystemSchemas: {
780
780
  name: z.ZodString;
781
781
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
782
782
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
783
- disabled: "disabled";
784
783
  enabled: "enabled";
784
+ disabled: "disabled";
785
785
  visible: "visible";
786
786
  }>>>;
787
787
  modelFilterMode: z.ZodEnum<{
@@ -800,8 +800,8 @@ declare const AdapterSubsystemSchemas: {
800
800
  name: z.ZodString;
801
801
  endpointOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
802
802
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
803
- disabled: "disabled";
804
803
  enabled: "enabled";
804
+ disabled: "disabled";
805
805
  visible: "visible";
806
806
  }>>>;
807
807
  modelFilterMode: z.ZodEnum<{
@@ -936,8 +936,8 @@ declare const CreateCanonicalProviderConfigInputSchema: z.ZodObject<{
936
936
  openai: z.ZodOptional<z.ZodString>;
937
937
  }, z.core.$strip>>;
938
938
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
939
- disabled: "disabled";
940
939
  enabled: "enabled";
940
+ disabled: "disabled";
941
941
  visible: "visible";
942
942
  }>>>;
943
943
  modelFilterMode: z.ZodOptional<z.ZodEnum<{
@@ -959,8 +959,8 @@ declare const CanonicalProviderConfigPatchSchema: z.ZodObject<{
959
959
  openai: z.ZodOptional<z.ZodString>;
960
960
  }, z.core.$strip>>>;
961
961
  modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
962
- disabled: "disabled";
963
962
  enabled: "enabled";
963
+ disabled: "disabled";
964
964
  visible: "visible";
965
965
  }>>>;
966
966
  enabled: z.ZodOptional<z.ZodBoolean>;