@makaio/framework 1.0.0-dev-1779046984397 → 1.0.0-dev-1779051654000

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 (216) hide show
  1. package/README.md +32 -315
  2. package/dist/{account-identity-Ce1Bwrqi.mjs → account-identity-Bg_vKkcs.mjs} +1 -1
  3. package/dist/{adapter-CbyjCE2d.mjs → adapter-CpF2aK_-.mjs} +1 -1
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/config/index.mjs +1 -1
  6. package/dist/adapters/index.d.mts +2 -2
  7. package/dist/adapters/index.mjs +1 -1
  8. package/dist/adapters/node.d.mts +1 -1
  9. package/dist/adapters/node.mjs +1 -1
  10. package/dist/client-DMWXCWhM.mjs +1 -0
  11. package/dist/clients/index.d.mts +122 -347
  12. package/dist/clients/index.mjs +2 -1
  13. package/dist/{clients-namespace-B0xAPZ6J.d.mts → clients-namespace-UHj5wt-l.d.mts} +7 -7
  14. package/dist/contracts/adapter/index.d.mts +2 -2
  15. package/dist/contracts/adapter/index.mjs +1 -1
  16. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  17. package/dist/contracts/client/index.d.mts +3 -3
  18. package/dist/contracts/client/index.mjs +1 -1
  19. package/dist/contracts/common/index.d.mts +1 -1
  20. package/dist/contracts/config/index.d.mts +6 -6
  21. package/dist/contracts/config/index.mjs +1 -1
  22. package/dist/contracts/extension/index.d.mts +2 -2
  23. package/dist/contracts/extension/index.mjs +1 -1
  24. package/dist/contracts/harness/index.d.mts +1 -1
  25. package/dist/contracts/harness/index.mjs +1 -1
  26. package/dist/contracts/host/index.mjs +1 -1
  27. package/dist/contracts/index.d.mts +64 -63
  28. package/dist/contracts/index.mjs +1 -1
  29. package/dist/contracts/model-registry/index.mjs +1 -1
  30. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  31. package/dist/contracts/platform/index.mjs +1 -1
  32. package/dist/contracts/session/index.d.mts +2 -2
  33. package/dist/contracts/session/index.mjs +1 -1
  34. package/dist/contracts/shared/index.d.mts +1 -1
  35. package/dist/contracts/shared/index.mjs +1 -1
  36. package/dist/contracts/skill/index.mjs +1 -1
  37. package/dist/contracts/timeout/index.d.mts +2 -0
  38. package/dist/contracts/timeout/index.mjs +1 -0
  39. package/dist/contracts/toast/index.mjs +1 -1
  40. package/dist/contracts/variant/index.mjs +1 -1
  41. package/dist/{definition-DxvZ9e22.d.mts → definition-DB7bbFSa.d.mts} +84 -91
  42. package/dist/{extension-COqwS-2Q.mjs → extension-53GerdGg.mjs} +1 -1
  43. package/dist/extension-fJmv8Yri.mjs +1 -0
  44. package/dist/{handlers-iGKUJ380.mjs → handlers-DR_4_rAT.mjs} +1 -1
  45. package/dist/{harness-CEq1Zkf9.mjs → harness-B6lGP9rm.mjs} +1 -1
  46. package/dist/{index-DBQtpFLE.d.mts → index-BnSQE7z7.d.mts} +3 -3
  47. package/dist/{index-CVA0m1g9.d.mts → index-CnmPtjnA.d.mts} +4 -4
  48. package/dist/{index-hapw9_En.d.mts → index-Cq8B7cwK.d.mts} +67 -67
  49. package/dist/{index-BJOfdtbw.d.mts → index-DGTFJB_8.d.mts} +3 -3
  50. package/dist/{index-DubqLGH8.d.mts → index-DaEp4UWW.d.mts} +56 -62
  51. package/dist/{index-C9F3Fc1A.d.mts → index-DwCA1HWa.d.mts} +133 -79
  52. package/dist/index-E8d_RwaF.d.mts +28 -0
  53. package/dist/{index-BB419vv-.d.mts → index-e5C62_M3.d.mts} +31 -11
  54. package/dist/{index-Bv15sNLn.d.mts → index-sBob9D25.d.mts} +1 -1
  55. package/dist/{index-BAKM2GMH2.d.mts → index-tKvu34DJ2.d.mts} +6 -6
  56. package/dist/{index-BdPwu6c0.d.mts → index-yvN8UcEH.d.mts} +110 -110
  57. package/dist/kernel/cli/index.mjs +1 -1
  58. package/dist/kernel/cli/schemas.mjs +1 -1
  59. package/dist/kernel/extension/index.d.mts +1 -1
  60. package/dist/kernel/extension/index.mjs +1 -1
  61. package/dist/kernel/index.d.mts +2 -2
  62. package/dist/kernel/index.mjs +1 -1
  63. package/dist/kernel/namespace/index.mjs +1 -1
  64. package/dist/kernel/observability/index.d.mts +1 -1
  65. package/dist/kernel/observability/index.mjs +1 -1
  66. package/dist/kernel/providers/index.mjs +1 -1
  67. package/dist/kernel/window/index.mjs +1 -1
  68. package/dist/{namespace-CkLUtc0g.d.mts → namespace-B1E57soL.d.mts} +22 -22
  69. package/dist/{namespace-bq4Prtzn.d.mts → namespace-B5ZCshBw.d.mts} +75 -75
  70. package/dist/{namespace-CCDEOwmW.d.mts → namespace-BCRNwPnw.d.mts} +6 -6
  71. package/dist/{namespace-ptv-pw_g.d.mts → namespace-BKrV_2gZ.d.mts} +9 -9
  72. package/dist/{namespace-O5SNY-LV.d.mts → namespace-BpIE-jQW.d.mts} +14 -14
  73. package/dist/{namespace-8cNguvIp.mjs → namespace-DGMO2E8f.mjs} +1 -1
  74. package/dist/{namespace-FWx6HxaW.d.mts → namespace-DXnMk3U8.d.mts} +14 -14
  75. package/dist/{namespace-xkvVw3hf2.d.mts → namespace-DwCyOaZn2.d.mts} +2 -2
  76. package/dist/{namespace-C2ufjgaQ.d.mts → namespace-Ysg1N6rR.d.mts} +24 -24
  77. package/dist/{native-session-supervisor-L-UIaEfd.mjs → native-session-supervisor-zPt624Tp.mjs} +1 -1
  78. package/dist/node/bus-server/index.d.mts +1 -1
  79. package/dist/node/bus-server/index.mjs +1 -1
  80. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  81. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  82. package/dist/{orchestrator-shared-Wv1GI2mW.mjs → orchestrator-shared-D2txLAUs.mjs} +1 -1
  83. package/dist/profile-Cq4A7kQa.mjs +1 -0
  84. package/dist/{provider-context-CNRQ4d5m.mjs → provider-context-BB4eD8ON.mjs} +1 -1
  85. package/dist/{schema-BwzXEtT2.d.mts → schema-B295yplx.d.mts} +1 -1
  86. package/dist/{schema-CAw_BqaG.mjs → schema-C4iznV0q.mjs} +1 -1
  87. package/dist/{schema-introspection-D61TT_7b.mjs → schema-introspection-DCYC47_d.mjs} +1 -1
  88. package/dist/{schemas-BdMU-gew.d.mts → schemas-BWvuaL0w.d.mts} +4 -4
  89. package/dist/{schemas-D9108Iv1.d.mts → schemas-BfMZAwff.d.mts} +7 -7
  90. package/dist/{schemas-BXstpWVp.mjs → schemas-Bn8aqDIE.mjs} +1 -1
  91. package/dist/{schemas-qmn5SWPU.d.mts → schemas-C31qbb0s.d.mts} +4 -4
  92. package/dist/{schemas-DbWs_hj8.d.mts → schemas-DYqKRNju.d.mts} +3 -3
  93. package/dist/{schemas-DENVYyds.d.mts → schemas-Ra8pz5M-.d.mts} +14 -14
  94. package/dist/services/adapter-runtime/index.mjs +1 -1
  95. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  96. package/dist/services/adapter-subsystem/index.mjs +1 -1
  97. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  98. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  99. package/dist/services/capability/index.mjs +1 -1
  100. package/dist/services/context-rules/index.mjs +1 -1
  101. package/dist/services/execution-target/index.d.mts +3 -3
  102. package/dist/services/execution-target/index.mjs +1 -1
  103. package/dist/services/execution-target/namespace.d.mts +1 -1
  104. package/dist/services/execution-target/schemas.d.mts +1 -1
  105. package/dist/services/filesystem/namespace.d.mts +6 -6
  106. package/dist/services/filesystem/schemas.d.mts +3 -3
  107. package/dist/services/harness/index.d.mts +34 -34
  108. package/dist/services/harness/index.mjs +1 -1
  109. package/dist/services/harness/storage/schema.d.mts +4 -4
  110. package/dist/services/index.d.mts +70 -71
  111. package/dist/services/index.mjs +1 -1
  112. package/dist/services/log-import/log-import.mjs +1 -1
  113. package/dist/services/log-import/namespace.mjs +1 -1
  114. package/dist/services/log-import/schemas.mjs +1 -1
  115. package/dist/services/model-registry/index.mjs +1 -1
  116. package/dist/services/preferences/index.d.mts +2 -2
  117. package/dist/services/preferences/schemas.d.mts +1 -1
  118. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  119. package/dist/services/provider-context/index.mjs +1 -1
  120. package/dist/services/provider-runtime/index.mjs +1 -1
  121. package/dist/services/session/handlers/index.mjs +1 -1
  122. package/dist/services/session/index.d.mts +7 -7
  123. package/dist/services/session/index.mjs +1 -1
  124. package/dist/services/session/messages/namespace.d.mts +1 -1
  125. package/dist/services/session/messages/namespace.mjs +1 -1
  126. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  127. package/dist/services/session/session-events/namespace.d.mts +1 -1
  128. package/dist/services/session/session-events/namespace.mjs +1 -1
  129. package/dist/services/session/storage/namespace.d.mts +1 -1
  130. package/dist/services/session/storage/schema.d.mts +1 -1
  131. package/dist/services/session/testing/index.mjs +1 -1
  132. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  133. package/dist/services/session/turns/namespace.d.mts +1 -1
  134. package/dist/services/session/turns/namespace.mjs +1 -1
  135. package/dist/services/session-editor/index.mjs +1 -1
  136. package/dist/services/settings/index.d.mts +1 -1
  137. package/dist/services/settings/index.mjs +1 -1
  138. package/dist/services/settings/namespace.d.mts +9 -9
  139. package/dist/services/settings/namespace.mjs +1 -1
  140. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  141. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  142. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  143. package/dist/services/settings/storage/index.d.mts +1 -1
  144. package/dist/services/settings/storage/index.mjs +1 -1
  145. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  146. package/dist/services/tool-approval/index.mjs +1 -1
  147. package/dist/services/tools/index.mjs +1 -1
  148. package/dist/services/tray-menu/index.d.mts +2 -2
  149. package/dist/services/tray-menu/index.mjs +1 -1
  150. package/dist/services/tray-menu/namespace.d.mts +1 -1
  151. package/dist/services/tray-menu/schemas.d.mts +1 -1
  152. package/dist/services/turn/index.d.mts +1 -1
  153. package/dist/services/turn/namespace.d.mts +1 -1
  154. package/dist/services/turn/schemas.d.mts +11 -11
  155. package/dist/services/worker/index.d.mts +1 -1
  156. package/dist/services/worker/schemas.d.mts +1 -1
  157. package/dist/{session-piI1R5rP.mjs → session-BCSf-Fgj.mjs} +1 -1
  158. package/dist/{session-Do6lDZM4.mjs → session-BNo_cIiz.mjs} +1 -1
  159. package/dist/{shared-DxHLl9UP.mjs → shared-BhuSHZXH.mjs} +1 -1
  160. package/dist/{skill-CB5h-ZFQ.mjs → skill-20_SBXaI.mjs} +1 -1
  161. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  162. package/dist/storage/handlers/index.mjs +1 -1
  163. package/dist/{storage-namespace-DAm8iWEj.d.mts → storage-namespace-DoH-Wkjp.d.mts} +10 -10
  164. package/dist/timeout-D33CUZ0M.mjs +1 -0
  165. package/dist/{tool-approval-service-BcBSUZCO.mjs → tool-approval-service-CZCPfvVy.mjs} +1 -1
  166. package/dist/{tools-CDSgj0ee.mjs → tools-Cid9D99F.mjs} +1 -1
  167. package/dist/{types-BjToUrHp.d.mts → types--nrtGZ1V.d.mts} +24 -24
  168. package/dist/ui-kernel/index.d.mts +4 -4
  169. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  170. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  171. package/package.json +5 -1
  172. package/dist/client-Dh4x4GQN.mjs +0 -1
  173. package/dist/extension-Cbrl4YGX.mjs +0 -1
  174. package/dist/index-CNxS4Tlu.d.mts +0 -1
  175. package/dist/profile-4StaDQW0.mjs +0 -1
  176. package/dist/schemas-CGZy_rU6.d.mts +0 -13
  177. /package/dist/{base-orchestrator-9z8TuA5a.d.mts → base-orchestrator-BOAPgqF7.d.mts} +0 -0
  178. /package/dist/{capability-service-tnpR_TaB.mjs → capability-service-DV32ecwR.mjs} +0 -0
  179. /package/dist/{cleanEnvForAdapter-DvcIGXTG.mjs → cleanEnvForAdapter-hTPNvPU5.mjs} +0 -0
  180. /package/dist/{config-namespace-DLSs83zr.d.mts → config-namespace-ChZOpi1W.d.mts} +0 -0
  181. /package/dist/{config-namespace-MJT8P0Ud.mjs → config-namespace-wJ2CakDB.mjs} +0 -0
  182. /package/dist/{cursor-storage-DOQdvo9j.mjs → cursor-storage-BoNI7OAR.mjs} +0 -0
  183. /package/dist/{drizzle-CWVVw7Er.mjs → drizzle-Bn2GtW8c.mjs} +0 -0
  184. /package/dist/{execution-target-BW_uiBVe.mjs → execution-target-D6MgthYs.mjs} +0 -0
  185. /package/dist/{extension-namespace-zaGKi6Qj.mjs → extension-namespace-CTd9kOtt.mjs} +0 -0
  186. /package/dist/{host-CXAUGGN0.mjs → host-CvEht5RT.mjs} +0 -0
  187. /package/dist/{identity-B_A0mE63.mjs → identity-DBST3-XO.mjs} +0 -0
  188. /package/dist/{index-PdUSmPT2.d.mts → index-D2jejYlV.d.mts} +0 -0
  189. /package/dist/{index-T0471kWA.d.mts → index-DQWMu5fS.d.mts} +0 -0
  190. /package/dist/{model-registry-CIscwC52.mjs → model-registry-Dzpssh9j.mjs} +0 -0
  191. /package/dist/{model-registry-BNzpR6TU.mjs → model-registry-xINyxQUT.mjs} +0 -0
  192. /package/dist/{namespace-Bmc7AW4J2.mjs → namespace-C_h7scWx2.mjs} +0 -0
  193. /package/dist/{namespace-N0dfwSg6.mjs → namespace-DBw9BYr8.mjs} +0 -0
  194. /package/dist/{namespace-pNcSglBS.mjs → namespace-DUVgMfTR.mjs} +0 -0
  195. /package/dist/{namespace-0yuzAKlr.mjs → namespace-OwAf1Brw.mjs} +0 -0
  196. /package/dist/{namespace-CfEWMXBx.mjs → namespace-Zb8HAbyF.mjs} +0 -0
  197. /package/dist/{namespace-Db-p67Rg.mjs → namespace-aALq9tnE.mjs} +0 -0
  198. /package/dist/{namespace-D5Wrt7YU.mjs → namespace-yxIxUsjo.mjs} +0 -0
  199. /package/dist/{platform-BbSLVg5b.mjs → platform-BMFUpmTA.mjs} +0 -0
  200. /package/dist/{providers-Cr4Za8a1.mjs → providers-DhiW_fx4.mjs} +0 -0
  201. /package/dist/{schema-uSGW-6oM.mjs → schema-D3ZG13h9.mjs} +0 -0
  202. /package/dist/{schemas-C40ZAJ33.mjs → schemas-CEBe89yE.mjs} +0 -0
  203. /package/dist/{schemas-Co_sVhzz.mjs → schemas-COnLJnt_.mjs} +0 -0
  204. /package/dist/{schemas-CLxtoKFy.mjs → schemas-CrnlCRep.mjs} +0 -0
  205. /package/dist/{server-lifecycle-Cf_SZ27k.d.mts → server-lifecycle-BC6FRn86.d.mts} +0 -0
  206. /package/dist/{server-lifecycle-DbFwlrTW.mjs → server-lifecycle-Dx5WgfoS.mjs} +0 -0
  207. /package/dist/{session-lineage-Eev4uo4I.d.mts → session-lineage-B0cpHfuc.d.mts} +0 -0
  208. /package/dist/{shared-schemas-BgQv_tnu.mjs → shared-schemas-Byah36lG.mjs} +0 -0
  209. /package/dist/{storage-namespace-ADwyijoe.mjs → storage-namespace-BIDs9LPb.mjs} +0 -0
  210. /package/dist/{storage-namespace-definition-CHu2k14q.mjs → storage-namespace-definition-BjK9nZAN.mjs} +0 -0
  211. /package/dist/{tray-menu-service-CTXC1Elg.mjs → tray-menu-service-BAYtLdAg.mjs} +0 -0
  212. /package/dist/{types-CD1LJwPc.d.mts → types-C11LvekX.d.mts} +0 -0
  213. /package/dist/{ui-config-CXmbsqZV.mjs → ui-config-zawaoEfB.mjs} +0 -0
  214. /package/dist/{variant-D5kSrL3m.mjs → variant-BZWfmS0q.mjs} +0 -0
  215. /package/dist/{version-CjS20oXi.mjs → version-D8S4O22A.mjs} +0 -0
  216. /package/dist/{window-registry-CUftmDr3.mjs → window-registry-B_-hBEcV.mjs} +0 -0
@@ -22,8 +22,8 @@ declare const ComponentStateSchema: z.ZodEnum<{
22
22
  active: "active";
23
23
  skipped: "skipped";
24
24
  discovered: "discovered";
25
- stopped: "stopped";
26
25
  initializing: "initializing";
26
+ stopped: "stopped";
27
27
  }>;
28
28
  /** Inferred union of all valid component lifecycle states. */
29
29
  type ComponentState = z.infer<typeof ComponentStateSchema>;
@@ -51,8 +51,8 @@ declare const ComponentInfoSchema: z.ZodObject<{
51
51
  active: "active";
52
52
  skipped: "skipped";
53
53
  discovered: "discovered";
54
- stopped: "stopped";
55
54
  initializing: "initializing";
55
+ stopped: "stopped";
56
56
  }>;
57
57
  error: z.ZodOptional<z.ZodString>;
58
58
  }, z.core.$strip>;
@@ -72,8 +72,8 @@ declare const ServiceInfoSchema: z.ZodObject<{
72
72
  active: "active";
73
73
  skipped: "skipped";
74
74
  discovered: "discovered";
75
- stopped: "stopped";
76
75
  initializing: "initializing";
76
+ stopped: "stopped";
77
77
  }>;
78
78
  error: z.ZodOptional<z.ZodString>;
79
79
  critical: z.ZodBoolean;
@@ -94,8 +94,8 @@ declare const ExtensionInfoSchema: z.ZodObject<{
94
94
  active: "active";
95
95
  skipped: "skipped";
96
96
  discovered: "discovered";
97
- stopped: "stopped";
98
97
  initializing: "initializing";
98
+ stopped: "stopped";
99
99
  }>;
100
100
  error: z.ZodOptional<z.ZodString>;
101
101
  surface: z.ZodOptional<z.ZodEnum<{
@@ -142,16 +142,16 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
142
142
  active: "active";
143
143
  skipped: "skipped";
144
144
  discovered: "discovered";
145
- stopped: "stopped";
146
145
  initializing: "initializing";
146
+ stopped: "stopped";
147
147
  }>;
148
148
  to: z.ZodEnum<{
149
149
  failed: "failed";
150
150
  active: "active";
151
151
  skipped: "skipped";
152
152
  discovered: "discovered";
153
- stopped: "stopped";
154
153
  initializing: "initializing";
154
+ stopped: "stopped";
155
155
  }>;
156
156
  error: z.ZodOptional<z.ZodString>;
157
157
  contributes: z.ZodOptional<z.ZodObject<{
@@ -185,8 +185,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
185
185
  active: "active";
186
186
  skipped: "skipped";
187
187
  discovered: "discovered";
188
- stopped: "stopped";
189
188
  initializing: "initializing";
189
+ stopped: "stopped";
190
190
  }>;
191
191
  error: z.ZodOptional<z.ZodString>;
192
192
  surface: z.ZodOptional<z.ZodEnum<{
@@ -223,8 +223,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
223
223
  active: "active";
224
224
  skipped: "skipped";
225
225
  discovered: "discovered";
226
- stopped: "stopped";
227
226
  initializing: "initializing";
227
+ stopped: "stopped";
228
228
  }>;
229
229
  error: z.ZodOptional<z.ZodString>;
230
230
  surface: z.ZodOptional<z.ZodEnum<{
@@ -366,8 +366,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
366
366
  }, z.core.$strip>>>;
367
367
  }, z.core.$strip>>>;
368
368
  defaultApprovalPolicy: z.ZodEnum<{
369
- reject: "reject";
370
369
  "always-ask": "always-ask";
370
+ reject: "reject";
371
371
  "full-access": "full-access";
372
372
  }>;
373
373
  logSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -406,34 +406,31 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
406
406
  }[];
407
407
  } | undefined>>;
408
408
  managedInstall: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
409
- type: z.ZodLiteral<"manifest-bucket">;
410
- config: z.ZodObject<{
411
- baseUrl: z.ZodString;
412
- versionIndex: z.ZodObject<{
413
- latest: z.ZodString;
414
- }, z.core.$strip>;
415
- manifestPath: z.ZodString;
416
- manifestChecksumField: z.ZodString;
417
- binaryPath: z.ZodString;
418
- archiveFormat: z.ZodOptional<z.ZodEnum<{
419
- raw: "raw";
420
- "tar.gz": "tar.gz";
421
- zip: "zip";
422
- }>>;
423
- }, z.core.$strip>;
424
- }, z.core.$strip>, z.ZodObject<{
425
409
  type: z.ZodLiteral<"npm">;
426
410
  package: z.ZodString;
411
+ version: z.ZodString;
427
412
  }, z.core.$strip>, z.ZodObject<{
428
- type: z.ZodLiteral<"github-release">;
429
- repo: z.ZodString;
430
- assetPattern: z.ZodRecord<z.ZodString, z.ZodString>;
431
- archiveFormat: z.ZodEnum<{
432
- "tar.gz": "tar.gz";
433
- zip: "zip";
434
- }>;
413
+ type: z.ZodLiteral<"signed-binary-bucket">;
414
+ version: z.ZodString;
415
+ config: z.ZodObject<{
416
+ baseUrl: z.ZodString;
417
+ manifestPathTemplate: z.ZodString;
418
+ manifestSignaturePathTemplate: z.ZodString;
419
+ publicKeyUrl: z.ZodString;
420
+ publicKeyFingerprint: z.ZodString;
421
+ binaryPathTemplate: z.ZodString;
422
+ platforms: z.ZodRecord<z.ZodString, z.ZodString>;
423
+ }, z.core.$strip>;
435
424
  }, z.core.$strip>], "type">>;
436
- versionCommand: z.ZodOptional<z.ZodArray<z.ZodString>>;
425
+ versionCommand: z.ZodOptional<z.ZodObject<{
426
+ executable: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
427
+ default: z.ZodString;
428
+ darwin: z.ZodOptional<z.ZodString>;
429
+ linux: z.ZodOptional<z.ZodString>;
430
+ win32: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strict>]>;
432
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
433
+ }, z.core.$strict>>;
437
434
  postInstall: z.ZodOptional<z.ZodObject<{
438
435
  kind: z.ZodString;
439
436
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -593,16 +590,16 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
593
590
  active: "active";
594
591
  skipped: "skipped";
595
592
  discovered: "discovered";
596
- stopped: "stopped";
597
593
  initializing: "initializing";
594
+ stopped: "stopped";
598
595
  }>;
599
596
  to: z.ZodEnum<{
600
597
  failed: "failed";
601
598
  active: "active";
602
599
  skipped: "skipped";
603
600
  discovered: "discovered";
604
- stopped: "stopped";
605
601
  initializing: "initializing";
602
+ stopped: "stopped";
606
603
  }>;
607
604
  error: z.ZodOptional<z.ZodString>;
608
605
  contributes: z.ZodOptional<z.ZodObject<{
@@ -636,8 +633,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
636
633
  active: "active";
637
634
  skipped: "skipped";
638
635
  discovered: "discovered";
639
- stopped: "stopped";
640
636
  initializing: "initializing";
637
+ stopped: "stopped";
641
638
  }>;
642
639
  error: z.ZodOptional<z.ZodString>;
643
640
  surface: z.ZodOptional<z.ZodEnum<{
@@ -674,8 +671,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
674
671
  active: "active";
675
672
  skipped: "skipped";
676
673
  discovered: "discovered";
677
- stopped: "stopped";
678
674
  initializing: "initializing";
675
+ stopped: "stopped";
679
676
  }>;
680
677
  error: z.ZodOptional<z.ZodString>;
681
678
  surface: z.ZodOptional<z.ZodEnum<{
@@ -817,8 +814,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
817
814
  }, z.core.$strip>>>;
818
815
  }, z.core.$strip>>>;
819
816
  defaultApprovalPolicy: z.ZodEnum<{
820
- reject: "reject";
821
817
  "always-ask": "always-ask";
818
+ reject: "reject";
822
819
  "full-access": "full-access";
823
820
  }>;
824
821
  logSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -857,34 +854,31 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
857
854
  }[];
858
855
  } | undefined>>;
859
856
  managedInstall: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
860
- type: z.ZodLiteral<"manifest-bucket">;
861
- config: z.ZodObject<{
862
- baseUrl: z.ZodString;
863
- versionIndex: z.ZodObject<{
864
- latest: z.ZodString;
865
- }, z.core.$strip>;
866
- manifestPath: z.ZodString;
867
- manifestChecksumField: z.ZodString;
868
- binaryPath: z.ZodString;
869
- archiveFormat: z.ZodOptional<z.ZodEnum<{
870
- raw: "raw";
871
- "tar.gz": "tar.gz";
872
- zip: "zip";
873
- }>>;
874
- }, z.core.$strip>;
875
- }, z.core.$strip>, z.ZodObject<{
876
857
  type: z.ZodLiteral<"npm">;
877
858
  package: z.ZodString;
859
+ version: z.ZodString;
878
860
  }, z.core.$strip>, z.ZodObject<{
879
- type: z.ZodLiteral<"github-release">;
880
- repo: z.ZodString;
881
- assetPattern: z.ZodRecord<z.ZodString, z.ZodString>;
882
- archiveFormat: z.ZodEnum<{
883
- "tar.gz": "tar.gz";
884
- zip: "zip";
885
- }>;
861
+ type: z.ZodLiteral<"signed-binary-bucket">;
862
+ version: z.ZodString;
863
+ config: z.ZodObject<{
864
+ baseUrl: z.ZodString;
865
+ manifestPathTemplate: z.ZodString;
866
+ manifestSignaturePathTemplate: z.ZodString;
867
+ publicKeyUrl: z.ZodString;
868
+ publicKeyFingerprint: z.ZodString;
869
+ binaryPathTemplate: z.ZodString;
870
+ platforms: z.ZodRecord<z.ZodString, z.ZodString>;
871
+ }, z.core.$strip>;
886
872
  }, z.core.$strip>], "type">>;
887
- versionCommand: z.ZodOptional<z.ZodArray<z.ZodString>>;
873
+ versionCommand: z.ZodOptional<z.ZodObject<{
874
+ executable: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
875
+ default: z.ZodString;
876
+ darwin: z.ZodOptional<z.ZodString>;
877
+ linux: z.ZodOptional<z.ZodString>;
878
+ win32: z.ZodOptional<z.ZodString>;
879
+ }, z.core.$strict>]>;
880
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
881
+ }, z.core.$strict>>;
888
882
  postInstall: z.ZodOptional<z.ZodObject<{
889
883
  kind: z.ZodString;
890
884
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1,4 +1,4 @@
1
- import { i as ClientDefinitionInput, r as ClientDefinition } from "./definition-DxvZ9e22.mjs";
1
+ import { i as ClientDefinitionInput, r as ClientDefinition } from "./definition-DB7bbFSa.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -63,6 +63,23 @@ type ClientResolveBinaryResponse = z.infer<typeof ClientResolveBinarySchema.resp
63
63
  * Client namespace schemas.
64
64
  */
65
65
  declare const ClientSchemas: {
66
+ 'config.prime': {
67
+ request: z.ZodObject<{
68
+ clientId: z.ZodString;
69
+ configDir: z.ZodString;
70
+ phase: z.ZodEnum<{
71
+ "managed-install": "managed-install";
72
+ "profile-create": "profile-create";
73
+ "session-create": "session-create";
74
+ }>;
75
+ binaryVersion: z.ZodOptional<z.ZodString>;
76
+ adapterName: z.ZodOptional<z.ZodString>;
77
+ projectDir: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ response: z.ZodObject<{
80
+ primed: z.ZodBoolean;
81
+ }, z.core.$strip>;
82
+ };
66
83
  'sessionConfig.create': {
67
84
  request: z.ZodObject<{
68
85
  clientId: z.ZodString;
@@ -518,15 +535,9 @@ declare const ClientSchemas: {
518
535
  isActive: z.ZodBoolean;
519
536
  }, z.core.$strip>>;
520
537
  activeVersion: z.ZodNullable<z.ZodString>;
521
- latestAvailableVersion: z.ZodNullable<z.ZodString>;
522
- latestVersionLastCheckedAt: z.ZodNullable<z.ZodNumber>;
523
- latestVersionSourceStatus: z.ZodEnum<{
524
- error: "error";
525
- fresh: "fresh";
526
- cached: "cached";
527
- }>;
538
+ pinnedVersion: z.ZodString;
528
539
  updateAvailable: z.ZodBoolean;
529
- }, z.core.$strip>>;
540
+ }, z.core.$strict>>;
530
541
  }, z.core.$strip>;
531
542
  };
532
543
  install: {
@@ -575,9 +586,8 @@ declare const ClientSchemas: {
575
586
  clientId: z.ZodString;
576
587
  version: z.ZodOptional<z.ZodString>;
577
588
  strategy: z.ZodEnum<{
578
- "manifest-bucket": "manifest-bucket";
579
589
  npm: "npm";
580
- "github-release": "github-release";
590
+ "signed-binary-bucket": "signed-binary-bucket";
581
591
  }>;
582
592
  stage: z.ZodEnum<{
583
593
  downloading: "downloading";
@@ -598,9 +608,8 @@ declare const ClientSchemas: {
598
608
  clientId: z.ZodString;
599
609
  version: z.ZodOptional<z.ZodString>;
600
610
  strategy: z.ZodEnum<{
601
- "manifest-bucket": "manifest-bucket";
602
611
  npm: "npm";
603
- "github-release": "github-release";
612
+ "signed-binary-bucket": "signed-binary-bucket";
604
613
  }>;
605
614
  status: z.ZodEnum<{
606
615
  success: "success";
@@ -882,26 +891,15 @@ type ClientUsageIngestResponse = z.infer<typeof ClientUsageIngestSchema.response
882
891
  //#region packages/contracts/src/client/binary-management.d.ts
883
892
  /**
884
893
  * Install strategies that Makaio supports for managed client binaries.
894
+ *
895
+ * - `npm` — npm registry installation with an exact version pin.
896
+ * - `signed-binary-bucket` — signed static bucket download with an exact version pin.
885
897
  */
886
898
  declare const ManagedInstallStrategySchema: z.ZodEnum<{
887
- "manifest-bucket": "manifest-bucket";
888
899
  npm: "npm";
889
- "github-release": "github-release";
900
+ "signed-binary-bucket": "signed-binary-bucket";
890
901
  }>;
891
902
  type ManagedInstallStrategy = z.infer<typeof ManagedInstallStrategySchema>;
892
- /**
893
- * Freshness classification for the latest-version cache entry.
894
- *
895
- * - `'fresh'` — the version index was fetched within the cache TTL.
896
- * - `'cached'` — the cached value is stale but still available.
897
- * - `'error'` — the last refresh attempt failed; cached value may be absent.
898
- */
899
- declare const LatestVersionSourceStatusSchema: z.ZodEnum<{
900
- error: "error";
901
- fresh: "fresh";
902
- cached: "cached";
903
- }>;
904
- type LatestVersionSourceStatus = z.infer<typeof LatestVersionSourceStatusSchema>;
905
903
  /**
906
904
  * A single installed version entry for a managed client binary.
907
905
  */
@@ -924,21 +922,15 @@ declare const ClientBinaryListEntrySchema: z.ZodObject<{
924
922
  isActive: z.ZodBoolean;
925
923
  }, z.core.$strip>>;
926
924
  activeVersion: z.ZodNullable<z.ZodString>;
927
- latestAvailableVersion: z.ZodNullable<z.ZodString>;
928
- latestVersionLastCheckedAt: z.ZodNullable<z.ZodNumber>;
929
- latestVersionSourceStatus: z.ZodEnum<{
930
- error: "error";
931
- fresh: "fresh";
932
- cached: "cached";
933
- }>;
925
+ pinnedVersion: z.ZodString;
934
926
  updateAvailable: z.ZodBoolean;
935
- }, z.core.$strip>;
927
+ }, z.core.$strict>;
936
928
  type ClientBinaryListEntry = z.infer<typeof ClientBinaryListEntrySchema>;
937
929
  /**
938
930
  * Request and response schemas for `client.list`.
939
931
  *
940
- * Returns the local installation inventory for all managed clients, enriched
941
- * with the latest-available-version from the upstream index.
932
+ * Returns the local installation inventory for all managed clients, including
933
+ * their pinned version and whether the active version matches the current pin.
942
934
  */
943
935
  declare const ClientListSchema: {
944
936
  request: z.ZodObject<{
@@ -954,15 +946,9 @@ declare const ClientListSchema: {
954
946
  isActive: z.ZodBoolean;
955
947
  }, z.core.$strip>>;
956
948
  activeVersion: z.ZodNullable<z.ZodString>;
957
- latestAvailableVersion: z.ZodNullable<z.ZodString>;
958
- latestVersionLastCheckedAt: z.ZodNullable<z.ZodNumber>;
959
- latestVersionSourceStatus: z.ZodEnum<{
960
- error: "error";
961
- fresh: "fresh";
962
- cached: "cached";
963
- }>;
949
+ pinnedVersion: z.ZodString;
964
950
  updateAvailable: z.ZodBoolean;
965
- }, z.core.$strip>>;
951
+ }, z.core.$strict>>;
966
952
  }, z.core.$strip>;
967
953
  };
968
954
  type ClientListRequest = z.infer<typeof ClientListSchema.request>;
@@ -1011,8 +997,8 @@ type ClientUninstallResponse = z.infer<typeof ClientUninstallSchema.response>;
1011
997
  /**
1012
998
  * Request and response schemas for `client.update`.
1013
999
  *
1014
- * Enqueues an update job that installs the latest available version and
1015
- * activates it. Callers can track progress via `client.installJob.progress` and
1000
+ * Enqueues an update job that installs the client package pin and activates it.
1001
+ * Callers can track progress via `client.installJob.progress` and
1016
1002
  * `client.installJob.completed` events using the returned `jobId`.
1017
1003
  */
1018
1004
  declare const ClientUpdateSchema: {
@@ -1077,9 +1063,8 @@ declare const ClientInstallProgressSchema: z.ZodObject<{
1077
1063
  clientId: z.ZodString;
1078
1064
  version: z.ZodOptional<z.ZodString>;
1079
1065
  strategy: z.ZodEnum<{
1080
- "manifest-bucket": "manifest-bucket";
1081
1066
  npm: "npm";
1082
- "github-release": "github-release";
1067
+ "signed-binary-bucket": "signed-binary-bucket";
1083
1068
  }>;
1084
1069
  stage: z.ZodEnum<{
1085
1070
  downloading: "downloading";
@@ -1116,9 +1101,8 @@ declare const ClientInstallCompletedSchema: z.ZodObject<{
1116
1101
  clientId: z.ZodString;
1117
1102
  version: z.ZodOptional<z.ZodString>;
1118
1103
  strategy: z.ZodEnum<{
1119
- "manifest-bucket": "manifest-bucket";
1120
1104
  npm: "npm";
1121
- "github-release": "github-release";
1105
+ "signed-binary-bucket": "signed-binary-bucket";
1122
1106
  }>;
1123
1107
  status: z.ZodEnum<{
1124
1108
  success: "success";
@@ -1461,15 +1445,33 @@ type ClientWiringEntry = z.infer<typeof ClientWiringEntrySchema>;
1461
1445
  * resolution command (`client.resolveBinary`), the profile management
1462
1446
  * subjects (`client.profile.create`, `client.profile.list`,
1463
1447
  * `client.profile.get`, `client.profile.update`, `client.profile.delete`,
1464
- * `client.profile.setDefault`), and the session config lifecycle subjects
1448
+ * `client.profile.setDefault`), the session config lifecycle subjects
1465
1449
  * (`client.sessionConfig.create`, `client.sessionConfig.destroy`,
1466
- * `client.sessionConfig.cleanup`).
1450
+ * `client.sessionConfig.cleanup`), and the generic blocking config-prime
1451
+ * lifecycle hook (`client.config.prime`).
1467
1452
  * @packageDocumentation
1468
1453
  */
1469
1454
  /**
1470
1455
  * Client namespace definition under the `client` prefix.
1471
1456
  */
1472
1457
  declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client", {
1458
+ 'config.prime': {
1459
+ request: _$zod.ZodObject<{
1460
+ clientId: _$zod.ZodString;
1461
+ configDir: _$zod.ZodString;
1462
+ phase: _$zod.ZodEnum<{
1463
+ "managed-install": "managed-install";
1464
+ "profile-create": "profile-create";
1465
+ "session-create": "session-create";
1466
+ }>;
1467
+ binaryVersion: _$zod.ZodOptional<_$zod.ZodString>;
1468
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1469
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1470
+ }, _$zod_v4_core0.$strip>;
1471
+ response: _$zod.ZodObject<{
1472
+ primed: _$zod.ZodBoolean;
1473
+ }, _$zod_v4_core0.$strip>;
1474
+ };
1473
1475
  'sessionConfig.create': {
1474
1476
  request: _$zod.ZodObject<{
1475
1477
  clientId: _$zod.ZodString;
@@ -1909,15 +1911,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1909
1911
  isActive: _$zod.ZodBoolean;
1910
1912
  }, _$zod_v4_core0.$strip>>;
1911
1913
  activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
1912
- latestAvailableVersion: _$zod.ZodNullable<_$zod.ZodString>;
1913
- latestVersionLastCheckedAt: _$zod.ZodNullable<_$zod.ZodNumber>;
1914
- latestVersionSourceStatus: _$zod.ZodEnum<{
1915
- error: "error";
1916
- fresh: "fresh";
1917
- cached: "cached";
1918
- }>;
1914
+ pinnedVersion: _$zod.ZodString;
1919
1915
  updateAvailable: _$zod.ZodBoolean;
1920
- }, _$zod_v4_core0.$strip>>;
1916
+ }, _$zod_v4_core0.$strict>>;
1921
1917
  }, _$zod_v4_core0.$strip>;
1922
1918
  };
1923
1919
  install: {
@@ -1966,9 +1962,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1966
1962
  clientId: _$zod.ZodString;
1967
1963
  version: _$zod.ZodOptional<_$zod.ZodString>;
1968
1964
  strategy: _$zod.ZodEnum<{
1969
- "manifest-bucket": "manifest-bucket";
1970
1965
  npm: "npm";
1971
- "github-release": "github-release";
1966
+ "signed-binary-bucket": "signed-binary-bucket";
1972
1967
  }>;
1973
1968
  stage: _$zod.ZodEnum<{
1974
1969
  downloading: "downloading";
@@ -1989,9 +1984,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1989
1984
  clientId: _$zod.ZodString;
1990
1985
  version: _$zod.ZodOptional<_$zod.ZodString>;
1991
1986
  strategy: _$zod.ZodEnum<{
1992
- "manifest-bucket": "manifest-bucket";
1993
1987
  npm: "npm";
1994
- "github-release": "github-release";
1988
+ "signed-binary-bucket": "signed-binary-bucket";
1995
1989
  }>;
1996
1990
  status: _$zod.ZodEnum<{
1997
1991
  success: "success";
@@ -2043,6 +2037,23 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2043
2037
  * Typed bus subjects for the client namespace.
2044
2038
  */
2045
2039
  declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"client", {
2040
+ 'config.prime': {
2041
+ request: _$zod.ZodObject<{
2042
+ clientId: _$zod.ZodString;
2043
+ configDir: _$zod.ZodString;
2044
+ phase: _$zod.ZodEnum<{
2045
+ "managed-install": "managed-install";
2046
+ "profile-create": "profile-create";
2047
+ "session-create": "session-create";
2048
+ }>;
2049
+ binaryVersion: _$zod.ZodOptional<_$zod.ZodString>;
2050
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
2051
+ projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2052
+ }, _$zod_v4_core0.$strip>;
2053
+ response: _$zod.ZodObject<{
2054
+ primed: _$zod.ZodBoolean;
2055
+ }, _$zod_v4_core0.$strip>;
2056
+ };
2046
2057
  'sessionConfig.create': {
2047
2058
  request: _$zod.ZodObject<{
2048
2059
  clientId: _$zod.ZodString;
@@ -2482,15 +2493,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2482
2493
  isActive: _$zod.ZodBoolean;
2483
2494
  }, _$zod_v4_core0.$strip>>;
2484
2495
  activeVersion: _$zod.ZodNullable<_$zod.ZodString>;
2485
- latestAvailableVersion: _$zod.ZodNullable<_$zod.ZodString>;
2486
- latestVersionLastCheckedAt: _$zod.ZodNullable<_$zod.ZodNumber>;
2487
- latestVersionSourceStatus: _$zod.ZodEnum<{
2488
- error: "error";
2489
- fresh: "fresh";
2490
- cached: "cached";
2491
- }>;
2496
+ pinnedVersion: _$zod.ZodString;
2492
2497
  updateAvailable: _$zod.ZodBoolean;
2493
- }, _$zod_v4_core0.$strip>>;
2498
+ }, _$zod_v4_core0.$strict>>;
2494
2499
  }, _$zod_v4_core0.$strip>;
2495
2500
  };
2496
2501
  install: {
@@ -2539,9 +2544,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2539
2544
  clientId: _$zod.ZodString;
2540
2545
  version: _$zod.ZodOptional<_$zod.ZodString>;
2541
2546
  strategy: _$zod.ZodEnum<{
2542
- "manifest-bucket": "manifest-bucket";
2543
2547
  npm: "npm";
2544
- "github-release": "github-release";
2548
+ "signed-binary-bucket": "signed-binary-bucket";
2545
2549
  }>;
2546
2550
  stage: _$zod.ZodEnum<{
2547
2551
  downloading: "downloading";
@@ -2562,9 +2566,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2562
2566
  clientId: _$zod.ZodString;
2563
2567
  version: _$zod.ZodOptional<_$zod.ZodString>;
2564
2568
  strategy: _$zod.ZodEnum<{
2565
- "manifest-bucket": "manifest-bucket";
2566
2569
  npm: "npm";
2567
- "github-release": "github-release";
2570
+ "signed-binary-bucket": "signed-binary-bucket";
2568
2571
  }>;
2569
2572
  status: _$zod.ZodEnum<{
2570
2573
  success: "success";
@@ -2916,6 +2919,57 @@ declare const SessionConfigSetupResponseSchema: z.ZodObject<{
2916
2919
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2917
2920
  }, z.core.$strip>;
2918
2921
  type SessionConfigSetupResponse = z.infer<typeof SessionConfigSetupResponseSchema>;
2922
+ /**
2923
+ * Lifecycle phases at which the config-prime hook fires.
2924
+ *
2925
+ * - `'managed-install'` — after a managed binary is verified and before the
2926
+ * version record is persisted and the binary is activated.
2927
+ * - `'profile-create'` — after a named profile directory is created and
2928
+ * before the profile record is written to storage.
2929
+ * - `'session-create'` — after a session config directory is created and the
2930
+ * client-owned setup handler has run, before the session config response is
2931
+ * returned.
2932
+ */
2933
+ declare const ClientConfigPrimePhaseSchema: z.ZodEnum<{
2934
+ "managed-install": "managed-install";
2935
+ "profile-create": "profile-create";
2936
+ "session-create": "session-create";
2937
+ }>;
2938
+ type ClientConfigPrimePhase = z.infer<typeof ClientConfigPrimePhaseSchema>;
2939
+ /**
2940
+ * Request and response schemas for `client.config.prime`.
2941
+ *
2942
+ * The generic `client.config.prime` handler delegates to the per-client
2943
+ * `client:<clientId>.config.prime` subject via `requestOptional`. If no
2944
+ * client-specific handler is registered the call is a no-op.
2945
+ *
2946
+ * This allows client packages to perform one-time or per-session config
2947
+ * initialisation (e.g. writing settings templates, injecting MCP server
2948
+ * entries) at well-defined lifecycle points without the framework needing to
2949
+ * know the client's config file format.
2950
+ */
2951
+ declare const ClientConfigPrimeSchema: {
2952
+ /**
2953
+ * Initiate a config prime for the given client directory and phase.
2954
+ */
2955
+ request: z.ZodObject<{
2956
+ clientId: z.ZodString;
2957
+ configDir: z.ZodString;
2958
+ phase: z.ZodEnum<{
2959
+ "managed-install": "managed-install";
2960
+ "profile-create": "profile-create";
2961
+ "session-create": "session-create";
2962
+ }>;
2963
+ binaryVersion: z.ZodOptional<z.ZodString>;
2964
+ adapterName: z.ZodOptional<z.ZodString>;
2965
+ projectDir: z.ZodOptional<z.ZodString>;
2966
+ }, z.core.$strip>; /** Outcome of the config-prime operation. */
2967
+ response: z.ZodObject<{
2968
+ primed: z.ZodBoolean;
2969
+ }, z.core.$strip>;
2970
+ };
2971
+ type ClientConfigPrimeRequest = z.infer<typeof ClientConfigPrimeSchema.request>;
2972
+ type ClientConfigPrimeResponse = z.infer<typeof ClientConfigPrimeSchema.response>;
2919
2973
  type ProfileCreateRequest = z.infer<(typeof ClientProfileSchemas)['profile.create']['request']>;
2920
2974
  type ProfileCreateResponse = z.infer<(typeof ClientProfileSchemas)['profile.create']['response']>;
2921
2975
  type ProfileListRequest = z.infer<(typeof ClientProfileSchemas)['profile.list']['request']>;
@@ -2935,4 +2989,4 @@ type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)[
2935
2989
  type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
2936
2990
  type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
2937
2991
  //#endregion
2938
- export { ClientWiringEntry as $, ClientIdentityObservationSchema as $t, SessionConfigSetupResponse as A, ClientUpdateRequest as At, ClientSessionObservedBaseSchema as B, InstalledVersionEntrySchema as Bt, SessionConfigDestroyResponse as C, ClientResolveBinaryResponse as Cn, ClientListSchema as Ct, SessionConfigInheritanceSchema as D, ClientUninstallRequest as Dt, SessionConfigInheritance as E, ClientSetActiveSchema as Et, SessionConfigTeardownResponseSchema as F, InstallError as Ft, ClientSessionToolPre as G, ClientAccountIdentifier as Gt, ClientSessionStartedSchema as H, LatestVersionSourceStatusSchema as Ht, createClientDefinition as I, InstallErrorSchema as It, ClientSessionTurnCompletedSchema as J, ClientAccountObserveResponse as Jt, ClientSessionToolPreSchema as K, ClientAccountIdentifierSchema as Kt, ClientNamespace as L, InstallStage as Lt, SessionConfigTeardownRequest as M, ClientUpdateSchema as Mt, SessionConfigTeardownRequestSchema as N, ClientVersionChanged as Nt, SessionConfigSetupRequest as O, ClientUninstallResponse as Ot, SessionConfigTeardownResponse as P, ClientVersionChangedSchema as Pt, ClientSessionUserPromptSubmittedSchema as Q, ClientIdentityObservation as Qt, ClientSubjects as R, InstallStageSchema as Rt, SessionConfigDestroyRequest as S, ClientResolveBinaryRequest as Sn, ClientListResponse as St, SessionConfigIdSchema as T, ClientSetActiveResponse as Tt, ClientSessionToolPost as U, ManagedInstallStrategy as Ut, ClientSessionStarted as V, LatestVersionSourceStatus as Vt, ClientSessionToolPostSchema as W, ManagedInstallStrategySchema as Wt, ClientSessionTurnStartedSchema as X, ClientIdentifierStrength as Xt, ClientSessionTurnStarted as Y, ClientAccountObserveSchema as Yt, ClientSessionUserPromptSubmitted as Z, ClientIdentifierStrengthSchema as Zt, ProfileUpdateResponse as _, ClientUsageWindows as _n, ClientInstallProgressSchema as _t, ClientSessionConfigSchemas as a, ClientSessionAccountObserveRequest as an, ClientRuntimeObserveSchema as at, SessionConfigCreateRequest as b, ClientExecutionContext as bn, ClientInstallSchema as bt, ProfileDeleteRequest as c, ClientSessionLocator as cn, ClientRuntimeSourceLayerSchema as ct, ProfileGetResponse as d, ClientUsageIngestResponse as dn, ClientRuntimeStartedSchema as dt, ClientMetadataSchema as en, ClientWiringEntrySchema as et, ProfileListRequest as f, ClientUsageIngestSchema as fn, ClientBinaryListEntry as ft, ProfileUpdateRequest as g, ClientUsageWindowSchema as gn, ClientInstallProgress as gt, ProfileSetDefaultResponse as h, ClientUsageWindow as hn, ClientInstallCompletedSchema as ht, ClientProfileSchemas as i, ClientScanTargetSchema as in, ClientRuntimeObserveResponse as it, SessionConfigSetupResponseSchema as j, ClientUpdateResponse as jt, SessionConfigSetupRequestSchema as k, ClientUninstallSchema as kt, ProfileDeleteResponse as l, ClientSessionLocatorSchema as ln, ClientRuntimeSourceSchema as lt, ProfileSetDefaultRequest as m, ClientUsageSnapshotSchema as mn, ClientInstallCompleted as mt, ClientProfileNameSchema as n, ClientScanResultSchema as nn, ClientRuntimeEvidenceBaseSchema as nt, ProfileCreateRequest as o, ClientSessionAccountObserveResponse as on, ClientRuntimeSource as ot, ProfileListResponse as p, ClientUsageSnapshot as pn, ClientBinaryListEntrySchema as pt, ClientSessionTurnCompleted as q, ClientAccountObserveRequest as qt, ClientProfileSchema as r, ClientScanTarget as rn, ClientRuntimeObserveRequest as rt, ProfileCreateResponse as s, ClientSessionAccountObserveSchema as sn, ClientRuntimeSourceLayer as st, ClientProfile as t, ClientScanResult as tn, ClientRuntimeEvidenceBase as tt, ProfileGetRequest as u, ClientUsageIngestRequest as un, ClientRuntimeStarted as ut, SessionConfigCleanupRequest as v, ClientUsageWindowsSchema as vn, ClientInstallRequest as vt, SessionConfigEnvSchema as w, ClientResolveBinarySchema as wn, ClientSetActiveRequest as wt, SessionConfigCreateResponse as x, ClientExecutionContextSchema as xn, ClientListRequest as xt, SessionConfigCleanupResponse as y, ClientSchemas as yn, ClientInstallResponse as yt, ClientSessionObservedBase as z, InstalledVersionEntry as zt };
2992
+ export { ClientSessionTurnCompletedSchema as $, ClientIdentifierStrength as $t, SessionConfigIdSchema as A, ClientSetActiveResponse as At, SessionConfigTeardownResponseSchema as B, InstallError as Bt, SessionConfigCleanupRequest as C, ClientExecutionContext as Cn, ClientInstallRequest as Ct, SessionConfigDestroyRequest as D, ClientResolveBinarySchema as Dn, ClientListResponse as Dt, SessionConfigCreateResponse as E, ClientResolveBinaryResponse as En, ClientListRequest as Et, SessionConfigSetupResponse as F, ClientUpdateRequest as Ft, ClientSessionObservedBaseSchema as G, InstalledVersionEntrySchema as Gt, ClientNamespace as H, InstallStage as Ht, SessionConfigSetupResponseSchema as I, ClientUpdateResponse as It, ClientSessionToolPost as J, ClientAccountIdentifier as Jt, ClientSessionStarted as K, ManagedInstallStrategy as Kt, SessionConfigTeardownRequest as L, ClientUpdateSchema as Lt, SessionConfigInheritanceSchema as M, ClientUninstallRequest as Mt, SessionConfigSetupRequest as N, ClientUninstallResponse as Nt, SessionConfigDestroyResponse as O, ClientListSchema as Ot, SessionConfigSetupRequestSchema as P, ClientUninstallSchema as Pt, ClientSessionTurnCompleted as Q, ClientAccountObserveSchema as Qt, SessionConfigTeardownRequestSchema as R, ClientVersionChanged as Rt, ProfileUpdateResponse as S, ClientSchemas as Sn, ClientInstallProgressSchema as St, SessionConfigCreateRequest as T, ClientResolveBinaryRequest as Tn, ClientInstallSchema as Tt, ClientSubjects as U, InstallStageSchema as Ut, createClientDefinition as V, InstallErrorSchema as Vt, ClientSessionObservedBase as W, InstalledVersionEntry as Wt, ClientSessionToolPre as X, ClientAccountObserveRequest as Xt, ClientSessionToolPostSchema as Y, ClientAccountIdentifierSchema as Yt, ClientSessionToolPreSchema as Z, ClientAccountObserveResponse as Zt, ProfileListRequest as _, ClientUsageSnapshotSchema as _n, ClientBinaryListEntry as _t, ClientConfigPrimeSchema as a, ClientScanResultSchema as an, ClientWiringEntrySchema as at, ProfileSetDefaultResponse as b, ClientUsageWindows as bn, ClientInstallCompletedSchema as bt, ClientProfileSchema as c, ClientSessionAccountObserveRequest as cn, ClientRuntimeObserveRequest as ct, ProfileCreateRequest as d, ClientSessionLocator as dn, ClientRuntimeSource as dt, ClientIdentifierStrengthSchema as en, ClientSessionTurnStarted as et, ProfileCreateResponse as f, ClientSessionLocatorSchema as fn, ClientRuntimeSourceLayer as ft, ProfileGetResponse as g, ClientUsageSnapshot as gn, ClientRuntimeStartedSchema as gt, ProfileGetRequest as h, ClientUsageIngestSchema as hn, ClientRuntimeStarted as ht, ClientConfigPrimeResponse as i, ClientScanResult as in, ClientWiringEntry as it, SessionConfigInheritance as j, ClientSetActiveSchema as jt, SessionConfigEnvSchema as k, ClientSetActiveRequest as kt, ClientProfileSchemas as l, ClientSessionAccountObserveResponse as ln, ClientRuntimeObserveResponse as lt, ProfileDeleteResponse as m, ClientUsageIngestResponse as mn, ClientRuntimeSourceSchema as mt, ClientConfigPrimePhaseSchema as n, ClientIdentityObservationSchema as nn, ClientSessionUserPromptSubmitted as nt, ClientProfile as o, ClientScanTarget as on, ClientRuntimeEvidenceBase as ot, ProfileDeleteRequest as p, ClientUsageIngestRequest as pn, ClientRuntimeSourceLayerSchema as pt, ClientSessionStartedSchema as q, ManagedInstallStrategySchema as qt, ClientConfigPrimeRequest as r, ClientMetadataSchema as rn, ClientSessionUserPromptSubmittedSchema as rt, ClientProfileNameSchema as s, ClientScanTargetSchema as sn, ClientRuntimeEvidenceBaseSchema as st, ClientConfigPrimePhase as t, ClientIdentityObservation as tn, ClientSessionTurnStartedSchema as tt, ClientSessionConfigSchemas as u, ClientSessionAccountObserveSchema as un, ClientRuntimeObserveSchema as ut, ProfileListResponse as v, ClientUsageWindow as vn, ClientBinaryListEntrySchema as vt, SessionConfigCleanupResponse as w, ClientExecutionContextSchema as wn, ClientInstallResponse as wt, ProfileUpdateRequest as x, ClientUsageWindowsSchema as xn, ClientInstallProgress as xt, ProfileSetDefaultRequest as y, ClientUsageWindowSchema as yn, ClientInstallCompleted as yt, SessionConfigTeardownResponse as z, ClientVersionChangedSchema as zt };
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+
3
+ //#region packages/contracts/src/timeout/schemas.d.ts
4
+ /**
5
+ * Categories of timeouts in the adapter lifecycle.
6
+ */
7
+ type TimeoutCategory = 'initialization' | 'acknowledgement' | 'completion' | 'toolApproval' | 'eventWait';
8
+ /**
9
+ * Complete timeout configuration where all categories are required.
10
+ */
11
+ type RequiredTimeoutConfig = Record<TimeoutCategory, number>;
12
+ /**
13
+ * Partial timeout configuration for user overrides.
14
+ */
15
+ type TimeoutConfig = Partial<RequiredTimeoutConfig>;
16
+ /**
17
+ * Zod schema for timeout configuration validation.
18
+ *
19
+ * Each field represents a distinct phase in the adapter lifecycle
20
+ * with different performance characteristics and failure modes.
21
+ * All values are in milliseconds.
22
+ *
23
+ * Contracts owns this public shape so downstream consumers do not need utility
24
+ * implementation packages to resolve generated declarations.
25
+ */
26
+ declare const TimeoutConfigSchema: z.ZodType<TimeoutConfig>;
27
+ //#endregion
28
+ export { TimeoutConfigSchema as i, TimeoutCategory as n, TimeoutConfig as r, RequiredTimeoutConfig as t };