@makaio/framework 1.0.0-dev-1781397017668 → 1.0.0-dev-1781442380278

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 (93) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{adapter-D_p5kKxi.mjs → adapter-BH1X0THX.mjs} +1 -1
  3. package/dist/adapters/index.d.mts +1 -1
  4. package/dist/bus/index.d.mts +20 -20
  5. package/dist/bus/index.mjs +1 -1
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/adapter/index.mjs +1 -1
  8. package/dist/contracts/artifact/index.d.mts +1 -1
  9. package/dist/contracts/canonical-model/index.d.mts +1 -1
  10. package/dist/contracts/config/index.d.mts +6 -6
  11. package/dist/contracts/extension/index.d.mts +2 -2
  12. package/dist/contracts/facet/index.d.mts +1 -1
  13. package/dist/contracts/harness/index.d.mts +1 -1
  14. package/dist/contracts/index.d.mts +188 -183
  15. package/dist/contracts/index.mjs +1 -1
  16. package/dist/contracts/materialization/index.d.mts +3 -3
  17. package/dist/contracts/provider/index.d.mts +1 -1
  18. package/dist/contracts/session/index.d.mts +2 -2
  19. package/dist/contracts/session/index.mjs +1 -1
  20. package/dist/contracts/variant/index.d.mts +1 -1
  21. package/dist/{definition-CPc6oKaF.d.mts → definition-CZcVOhXZ.d.mts} +1 -1
  22. package/dist/handlers-Cpy9Q8ho.mjs +41 -0
  23. package/dist/{index-C24PcW2r.d.mts → index-B1PgTu7q.d.mts} +8 -8
  24. package/dist/{index-CEdOq5Om.d.mts → index-BDnI2oqX.d.mts} +1 -1
  25. package/dist/{index-QvciMc7_.d.mts → index-BF84QInS.d.mts} +875 -361
  26. package/dist/{index-DfNIhEm_.d.mts → index-BVMF3kRv.d.mts} +16 -16
  27. package/dist/{index-CszoKxxO.d.mts → index-Cj3XCjXZ.d.mts} +342 -342
  28. package/dist/{index-BLqtL-_a.d.mts → index-DHVoVh-j.d.mts} +7 -7
  29. package/dist/{index-WKF5BHsw.d.mts → index-DUI1W-zN.d.mts} +8 -8
  30. package/dist/{index-B99Prx5a.d.mts → index-DUsm-DeE.d.mts} +100 -100
  31. package/dist/{index-B92SK0rO.d.mts → index-DigeEyrf.d.mts} +19 -16
  32. package/dist/{index-GuspCNLR.d.mts → index-DyqZej9j.d.mts} +8 -8
  33. package/dist/{index-DBgv39-Q.d.mts → index-HiAth5G0.d.mts} +52 -52
  34. package/dist/{index-NyKdb8kT.d.mts → index-LrZlZUvQ.d.mts} +16 -16
  35. package/dist/{index-BM_y78ZA2.d.mts → index-cN4DkU5Y2.d.mts} +9 -9
  36. package/dist/{index-C0TEY7RE.d.mts → index-oUqyVvsD.d.mts} +1 -1
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{namespace-DbvQ4HYc.d.mts → namespace-BXuuv8L9.d.mts} +152 -152
  41. package/dist/{namespace-CN2TfSCY.d.mts → namespace-Ba1gUpUu.d.mts} +4 -4
  42. package/dist/{namespace-D_ZXa76m.d.mts → namespace-CWgNi8Gv.d.mts} +26 -26
  43. package/dist/{namespace-BAJTZXWc.d.mts → namespace-DM3TSh_y.d.mts} +38 -38
  44. package/dist/{namespace-C_kaVySz.d.mts → namespace-Q-z7Lr2f.d.mts} +8 -8
  45. package/dist/{package-Bn665ylV.mjs → package-DMoFY63f.mjs} +1 -1
  46. package/dist/package.json +1 -1
  47. package/dist/primitive-runtime-DWbV7f_r.mjs +1 -0
  48. package/dist/{schema-msWs4YhT.d.mts → schema-BKdn_bdY.d.mts} +2 -2
  49. package/dist/{schemas-DMl7IKG-.d.mts → schemas-BbFAwUpf.d.mts} +5 -5
  50. package/dist/{schemas-xoTn8JZb.d.mts → schemas-CyEdMtnQ.d.mts} +152 -152
  51. package/dist/schemas-CzvG8xq7.mjs +1 -0
  52. package/dist/{schemas-DRZJK6hW2.d.mts → schemas-DvjQHkmw2.d.mts} +6 -6
  53. package/dist/{schemas-CN9hprME.d.mts → schemas-IDGAJ_zv.d.mts} +6 -6
  54. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  55. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  56. package/dist/services/agent-runtime/index.d.mts +2 -2
  57. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  58. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  59. package/dist/services/context-rules/index.d.mts +3 -3
  60. package/dist/services/filesystem/namespace.d.mts +12 -12
  61. package/dist/services/filesystem/schemas.d.mts +6 -6
  62. package/dist/services/harness/index.d.mts +3 -3
  63. package/dist/services/index.d.mts +117 -117
  64. package/dist/services/index.mjs +1 -1
  65. package/dist/services/session/handlers/index.mjs +1 -1
  66. package/dist/services/session/index.d.mts +4 -4
  67. package/dist/services/session/index.mjs +1 -1
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/session/storage/namespace.d.mts +1 -1
  70. package/dist/services/session/storage/schema.d.mts +1 -1
  71. package/dist/services/session/testing/index.mjs +1 -1
  72. package/dist/services/settings/namespace.d.mts +6 -6
  73. package/dist/services/subagent-template/index.d.mts +1 -1
  74. package/dist/services/subagent-template/schemas.d.mts +1 -1
  75. package/dist/services/tool-approval/index.mjs +1 -1
  76. package/dist/services/tools/index.mjs +1 -1
  77. package/dist/services/tray-menu/index.d.mts +2 -2
  78. package/dist/services/tray-menu/namespace.d.mts +1 -1
  79. package/dist/services/tray-menu/schemas.d.mts +1 -1
  80. package/dist/session-ZAJrcudH.mjs +39 -0
  81. package/dist/{session-bKk-XeaY.mjs → session-owtKCoUX.mjs} +1 -1
  82. package/dist/{tool-approval-service-C2xXBtdJ.mjs → tool-approval-service-B_28RhuK.mjs} +1 -1
  83. package/dist/{tools-DEUzCPBB.mjs → tools-BpzJterj.mjs} +1 -1
  84. package/dist/{types-4LKM7ZfA.d.mts → types-Bo2-N1YR.d.mts} +887 -357
  85. package/dist/workflow-engine/index.d.mts +34 -34
  86. package/dist/workflow-engine/index.mjs +1 -1
  87. package/dist/workflow-engine/package.mjs +1 -1
  88. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/handlers-CTrL8wmC.mjs +0 -41
  91. package/dist/primitive-runtime-C2yw4-F8.mjs +0 -1
  92. package/dist/schemas-CiMm2zrE.mjs +0 -1
  93. package/dist/session-Me3XO-l9.mjs +0 -39
@@ -1,11 +1,11 @@
1
- import { F as ArtifactLifecycleHookRegistration$1, P as ArtifactLifecycleHookEvent, T as AnyArtifactKindDefinition, mt as ArtifactRevision$1 } from "./index-DBgv39-Q.mjs";
1
+ import { F as ArtifactLifecycleHookRegistration$1, P as ArtifactLifecycleHookEvent, T as AnyArtifactKindDefinition, mt as ArtifactRevision$1 } from "./index-HiAth5G0.mjs";
2
2
  import { A as VersionRange, O as VersionLiteral$1, r as ClientDefinition$1 } from "./definition-BdxbXbrq.mjs";
3
3
  import { o as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-BwLJnqEo.mjs";
4
4
  import { t as RequiredTimeoutConfig } from "./index-CBTp2XuF.mjs";
5
- import { b as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1, j as SessionMessage$1 } from "./types-4LKM7ZfA.mjs";
5
+ import { b as SESSION_EVENT_TYPES, i as MakaioSessionEvent$1, j as SessionMessage$1 } from "./types-Bo2-N1YR.mjs";
6
6
  import { D as EntityUIConfig, I as FormFieldProps, Q as JsonValue$1 } from "./index-B3mq3Qjf.mjs";
7
- import { l as FacetNamespaceDefinition } from "./index-WKF5BHsw.mjs";
8
- import { t as SurfaceBindingDefinition } from "./definition-CPc6oKaF.mjs";
7
+ import { l as FacetNamespaceDefinition } from "./index-DUI1W-zN.mjs";
8
+ import { t as SurfaceBindingDefinition } from "./definition-CZcVOhXZ.mjs";
9
9
  import { z } from "zod";
10
10
  import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
11
11
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -1614,8 +1614,8 @@ declare const ExtensionWarningActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1614
1614
  * - `'degraded'` — the extension is operating in a degraded fallback mode.
1615
1615
  */
1616
1616
  declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
1617
- info: "info";
1618
1617
  degraded: "degraded";
1618
+ info: "info";
1619
1619
  recommended: "recommended";
1620
1620
  }>;
1621
1621
  /**
@@ -1626,8 +1626,8 @@ declare const ExtensionWarningSeveritySchema: z.ZodEnum<{
1626
1626
  */
1627
1627
  declare const ExtensionWarningSchema: z.ZodObject<{
1628
1628
  severity: z.ZodEnum<{
1629
- info: "info";
1630
1629
  degraded: "degraded";
1630
+ info: "info";
1631
1631
  recommended: "recommended";
1632
1632
  }>;
1633
1633
  title: z.ZodString;
@@ -1673,8 +1673,8 @@ declare const ExtensionWarningEntrySchema: z.ZodObject<{
1673
1673
  extensionName: z.ZodString;
1674
1674
  warnings: z.ZodArray<z.ZodObject<{
1675
1675
  severity: z.ZodEnum<{
1676
- info: "info";
1677
1676
  degraded: "degraded";
1677
+ info: "info";
1678
1678
  recommended: "recommended";
1679
1679
  }>;
1680
1680
  title: z.ZodString;
@@ -32,9 +32,9 @@ declare const FacetCardinalitySchema: z.ZodEnum<{
32
32
  * - `'surface'` — a UI surface or layout area
33
33
  */
34
34
  declare const FacetAppliesToSchema: z.ZodEnum<{
35
+ workpiece: "workpiece";
35
36
  artifact: "artifact";
36
37
  surface: "surface";
37
- workpiece: "workpiece";
38
38
  }>;
39
39
  /**
40
40
  * Serializable registration record for a named facet namespace.
@@ -57,9 +57,9 @@ declare const FacetNamespaceRegistrationSchema: z.ZodObject<{
57
57
  human: "human";
58
58
  }>>>;
59
59
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
60
+ workpiece: "workpiece";
60
61
  artifact: "artifact";
61
62
  surface: "surface";
62
- workpiece: "workpiece";
63
63
  }>>>;
64
64
  description: z.ZodOptional<z.ZodString>;
65
65
  }, z.core.$strip>;
@@ -161,9 +161,9 @@ declare const FacetSchemas: {
161
161
  human: "human";
162
162
  }>>>;
163
163
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
164
+ workpiece: "workpiece";
164
165
  artifact: "artifact";
165
166
  surface: "surface";
166
- workpiece: "workpiece";
167
167
  }>>>;
168
168
  description: z.ZodOptional<z.ZodString>;
169
169
  }, z.core.$strip>;
@@ -189,9 +189,9 @@ declare const FacetSchemas: {
189
189
  human: "human";
190
190
  }>>>;
191
191
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
192
+ workpiece: "workpiece";
192
193
  artifact: "artifact";
193
194
  surface: "surface";
194
- workpiece: "workpiece";
195
195
  }>>>;
196
196
  description: z.ZodOptional<z.ZodString>;
197
197
  }, z.core.$strip>>;
@@ -227,9 +227,9 @@ declare const FacetNamespace: _$_makaio_core0.BusNamespaceDefinition<"facet", {
227
227
  human: "human";
228
228
  }>>>;
229
229
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
230
+ workpiece: "workpiece";
230
231
  artifact: "artifact";
231
232
  surface: "surface";
232
- workpiece: "workpiece";
233
233
  }>>>;
234
234
  description: z.ZodOptional<z.ZodString>;
235
235
  }, z.core.$strip>;
@@ -255,9 +255,9 @@ declare const FacetNamespace: _$_makaio_core0.BusNamespaceDefinition<"facet", {
255
255
  human: "human";
256
256
  }>>>;
257
257
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
258
+ workpiece: "workpiece";
258
259
  artifact: "artifact";
259
260
  surface: "surface";
260
- workpiece: "workpiece";
261
261
  }>>>;
262
262
  description: z.ZodOptional<z.ZodString>;
263
263
  }, z.core.$strip>>;
@@ -299,9 +299,9 @@ declare const FacetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
299
299
  human: "human";
300
300
  }>>>;
301
301
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
302
+ workpiece: "workpiece";
302
303
  artifact: "artifact";
303
304
  surface: "surface";
304
- workpiece: "workpiece";
305
305
  }>>>;
306
306
  description: z.ZodOptional<z.ZodString>;
307
307
  }, z.core.$strip>;
@@ -327,9 +327,9 @@ declare const FacetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
327
327
  human: "human";
328
328
  }>>>;
329
329
  appliesTo: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
330
+ workpiece: "workpiece";
330
331
  artifact: "artifact";
331
332
  surface: "surface";
332
- workpiece: "workpiece";
333
333
  }>>>;
334
334
  description: z.ZodOptional<z.ZodString>;
335
335
  }, z.core.$strip>>;
@@ -263,25 +263,6 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
263
263
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
264
264
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
265
265
  sessionId: z.ZodString;
266
- directTools: z.ZodArray<z.ZodObject<{
267
- fullName: z.ZodString;
268
- originalName: z.ZodString;
269
- serverName: z.ZodString;
270
- description: z.ZodOptional<z.ZodString>;
271
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
272
- exposureMode: z.ZodEnum<{
273
- hidden: "hidden";
274
- discovery: "discovery";
275
- direct: "direct";
276
- }>;
277
- enabled: z.ZodBoolean;
278
- enabledBy: z.ZodOptional<z.ZodEnum<{
279
- discovery: "discovery";
280
- toolset: "toolset";
281
- }>>;
282
- enabledAt: z.ZodOptional<z.ZodNumber>;
283
- exposed: z.ZodBoolean;
284
- }, z.core.$strip>>;
285
266
  servers: z.ZodArray<z.ZodObject<{
286
267
  name: z.ZodString;
287
268
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -318,9 +299,28 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
318
299
  type: z.ZodLiteral<"http">;
319
300
  }, z.core.$strip>], "type">;
320
301
  exposureMode: z.ZodEnum<{
302
+ direct: "direct";
321
303
  discovery: "discovery";
304
+ }>;
305
+ }, z.core.$strip>>;
306
+ directTools: z.ZodArray<z.ZodObject<{
307
+ fullName: z.ZodString;
308
+ originalName: z.ZodString;
309
+ serverName: z.ZodString;
310
+ description: z.ZodOptional<z.ZodString>;
311
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
312
+ exposureMode: z.ZodEnum<{
313
+ hidden: "hidden";
322
314
  direct: "direct";
315
+ discovery: "discovery";
323
316
  }>;
317
+ enabled: z.ZodBoolean;
318
+ enabledBy: z.ZodOptional<z.ZodEnum<{
319
+ discovery: "discovery";
320
+ toolset: "toolset";
321
+ }>>;
322
+ enabledAt: z.ZodOptional<z.ZodNumber>;
323
+ exposed: z.ZodBoolean;
324
324
  }, z.core.$strip>>;
325
325
  discoverableTools: z.ZodArray<z.ZodObject<{
326
326
  fullName: z.ZodString;
@@ -330,8 +330,8 @@ declare const CanonicalModelSelectionSchema: z.ZodObject<{
330
330
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
331
331
  exposureMode: z.ZodEnum<{
332
332
  hidden: "hidden";
333
- discovery: "discovery";
334
333
  direct: "direct";
334
+ discovery: "discovery";
335
335
  }>;
336
336
  enabled: z.ZodBoolean;
337
337
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -380,25 +380,6 @@ declare const CanonicalModelResolvedSelectionSchema: z.ZodObject<{
380
380
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
381
381
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
382
382
  sessionId: z.ZodString;
383
- directTools: z.ZodArray<z.ZodObject<{
384
- fullName: z.ZodString;
385
- originalName: z.ZodString;
386
- serverName: z.ZodString;
387
- description: z.ZodOptional<z.ZodString>;
388
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
389
- exposureMode: z.ZodEnum<{
390
- hidden: "hidden";
391
- discovery: "discovery";
392
- direct: "direct";
393
- }>;
394
- enabled: z.ZodBoolean;
395
- enabledBy: z.ZodOptional<z.ZodEnum<{
396
- discovery: "discovery";
397
- toolset: "toolset";
398
- }>>;
399
- enabledAt: z.ZodOptional<z.ZodNumber>;
400
- exposed: z.ZodBoolean;
401
- }, z.core.$strip>>;
402
383
  servers: z.ZodArray<z.ZodObject<{
403
384
  name: z.ZodString;
404
385
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -435,9 +416,28 @@ declare const CanonicalModelResolvedSelectionSchema: z.ZodObject<{
435
416
  type: z.ZodLiteral<"http">;
436
417
  }, z.core.$strip>], "type">;
437
418
  exposureMode: z.ZodEnum<{
419
+ direct: "direct";
438
420
  discovery: "discovery";
421
+ }>;
422
+ }, z.core.$strip>>;
423
+ directTools: z.ZodArray<z.ZodObject<{
424
+ fullName: z.ZodString;
425
+ originalName: z.ZodString;
426
+ serverName: z.ZodString;
427
+ description: z.ZodOptional<z.ZodString>;
428
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
429
+ exposureMode: z.ZodEnum<{
430
+ hidden: "hidden";
439
431
  direct: "direct";
432
+ discovery: "discovery";
440
433
  }>;
434
+ enabled: z.ZodBoolean;
435
+ enabledBy: z.ZodOptional<z.ZodEnum<{
436
+ discovery: "discovery";
437
+ toolset: "toolset";
438
+ }>>;
439
+ enabledAt: z.ZodOptional<z.ZodNumber>;
440
+ exposed: z.ZodBoolean;
441
441
  }, z.core.$strip>>;
442
442
  discoverableTools: z.ZodArray<z.ZodObject<{
443
443
  fullName: z.ZodString;
@@ -447,8 +447,8 @@ declare const CanonicalModelResolvedSelectionSchema: z.ZodObject<{
447
447
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
448
448
  exposureMode: z.ZodEnum<{
449
449
  hidden: "hidden";
450
- discovery: "discovery";
451
450
  direct: "direct";
451
+ discovery: "discovery";
452
452
  }>;
453
453
  enabled: z.ZodBoolean;
454
454
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -510,25 +510,6 @@ declare const CanonicalModelSchemas: {
510
510
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
511
511
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
512
512
  sessionId: z.ZodString;
513
- directTools: z.ZodArray<z.ZodObject<{
514
- fullName: z.ZodString;
515
- originalName: z.ZodString;
516
- serverName: z.ZodString;
517
- description: z.ZodOptional<z.ZodString>;
518
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
519
- exposureMode: z.ZodEnum<{
520
- hidden: "hidden";
521
- discovery: "discovery";
522
- direct: "direct";
523
- }>;
524
- enabled: z.ZodBoolean;
525
- enabledBy: z.ZodOptional<z.ZodEnum<{
526
- discovery: "discovery";
527
- toolset: "toolset";
528
- }>>;
529
- enabledAt: z.ZodOptional<z.ZodNumber>;
530
- exposed: z.ZodBoolean;
531
- }, z.core.$strip>>;
532
513
  servers: z.ZodArray<z.ZodObject<{
533
514
  name: z.ZodString;
534
515
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -565,9 +546,28 @@ declare const CanonicalModelSchemas: {
565
546
  type: z.ZodLiteral<"http">;
566
547
  }, z.core.$strip>], "type">;
567
548
  exposureMode: z.ZodEnum<{
549
+ direct: "direct";
568
550
  discovery: "discovery";
551
+ }>;
552
+ }, z.core.$strip>>;
553
+ directTools: z.ZodArray<z.ZodObject<{
554
+ fullName: z.ZodString;
555
+ originalName: z.ZodString;
556
+ serverName: z.ZodString;
557
+ description: z.ZodOptional<z.ZodString>;
558
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
559
+ exposureMode: z.ZodEnum<{
560
+ hidden: "hidden";
569
561
  direct: "direct";
562
+ discovery: "discovery";
570
563
  }>;
564
+ enabled: z.ZodBoolean;
565
+ enabledBy: z.ZodOptional<z.ZodEnum<{
566
+ discovery: "discovery";
567
+ toolset: "toolset";
568
+ }>>;
569
+ enabledAt: z.ZodOptional<z.ZodNumber>;
570
+ exposed: z.ZodBoolean;
571
571
  }, z.core.$strip>>;
572
572
  discoverableTools: z.ZodArray<z.ZodObject<{
573
573
  fullName: z.ZodString;
@@ -577,8 +577,8 @@ declare const CanonicalModelSchemas: {
577
577
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
578
578
  exposureMode: z.ZodEnum<{
579
579
  hidden: "hidden";
580
- discovery: "discovery";
581
580
  direct: "direct";
581
+ discovery: "discovery";
582
582
  }>;
583
583
  enabled: z.ZodBoolean;
584
584
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -639,25 +639,6 @@ declare const CanonicalModelNamespace: _$_makaio_core0.BusNamespaceDefinition<"c
639
639
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
640
640
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
641
641
  sessionId: _$zod.ZodString;
642
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
643
- fullName: _$zod.ZodString;
644
- originalName: _$zod.ZodString;
645
- serverName: _$zod.ZodString;
646
- description: _$zod.ZodOptional<_$zod.ZodString>;
647
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
648
- exposureMode: _$zod.ZodEnum<{
649
- hidden: "hidden";
650
- discovery: "discovery";
651
- direct: "direct";
652
- }>;
653
- enabled: _$zod.ZodBoolean;
654
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
655
- discovery: "discovery";
656
- toolset: "toolset";
657
- }>>;
658
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
659
- exposed: _$zod.ZodBoolean;
660
- }, _$zod_v4_core0.$strip>>;
661
642
  servers: _$zod.ZodArray<_$zod.ZodObject<{
662
643
  name: _$zod.ZodString;
663
644
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -694,9 +675,28 @@ declare const CanonicalModelNamespace: _$_makaio_core0.BusNamespaceDefinition<"c
694
675
  type: _$zod.ZodLiteral<"http">;
695
676
  }, _$zod_v4_core0.$strip>], "type">;
696
677
  exposureMode: _$zod.ZodEnum<{
678
+ direct: "direct";
697
679
  discovery: "discovery";
680
+ }>;
681
+ }, _$zod_v4_core0.$strip>>;
682
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
683
+ fullName: _$zod.ZodString;
684
+ originalName: _$zod.ZodString;
685
+ serverName: _$zod.ZodString;
686
+ description: _$zod.ZodOptional<_$zod.ZodString>;
687
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
688
+ exposureMode: _$zod.ZodEnum<{
689
+ hidden: "hidden";
698
690
  direct: "direct";
691
+ discovery: "discovery";
699
692
  }>;
693
+ enabled: _$zod.ZodBoolean;
694
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
695
+ discovery: "discovery";
696
+ toolset: "toolset";
697
+ }>>;
698
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
699
+ exposed: _$zod.ZodBoolean;
700
700
  }, _$zod_v4_core0.$strip>>;
701
701
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
702
702
  fullName: _$zod.ZodString;
@@ -706,8 +706,8 @@ declare const CanonicalModelNamespace: _$_makaio_core0.BusNamespaceDefinition<"c
706
706
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
707
707
  exposureMode: _$zod.ZodEnum<{
708
708
  hidden: "hidden";
709
- discovery: "discovery";
710
709
  direct: "direct";
710
+ discovery: "discovery";
711
711
  }>;
712
712
  enabled: _$zod.ZodBoolean;
713
713
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -766,25 +766,6 @@ declare const CanonicalModelSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
766
766
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
767
767
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
768
768
  sessionId: _$zod.ZodString;
769
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
770
- fullName: _$zod.ZodString;
771
- originalName: _$zod.ZodString;
772
- serverName: _$zod.ZodString;
773
- description: _$zod.ZodOptional<_$zod.ZodString>;
774
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
775
- exposureMode: _$zod.ZodEnum<{
776
- hidden: "hidden";
777
- discovery: "discovery";
778
- direct: "direct";
779
- }>;
780
- enabled: _$zod.ZodBoolean;
781
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
782
- discovery: "discovery";
783
- toolset: "toolset";
784
- }>>;
785
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
786
- exposed: _$zod.ZodBoolean;
787
- }, _$zod_v4_core0.$strip>>;
788
769
  servers: _$zod.ZodArray<_$zod.ZodObject<{
789
770
  name: _$zod.ZodString;
790
771
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -821,9 +802,28 @@ declare const CanonicalModelSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
821
802
  type: _$zod.ZodLiteral<"http">;
822
803
  }, _$zod_v4_core0.$strip>], "type">;
823
804
  exposureMode: _$zod.ZodEnum<{
805
+ direct: "direct";
824
806
  discovery: "discovery";
807
+ }>;
808
+ }, _$zod_v4_core0.$strip>>;
809
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
810
+ fullName: _$zod.ZodString;
811
+ originalName: _$zod.ZodString;
812
+ serverName: _$zod.ZodString;
813
+ description: _$zod.ZodOptional<_$zod.ZodString>;
814
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
815
+ exposureMode: _$zod.ZodEnum<{
816
+ hidden: "hidden";
825
817
  direct: "direct";
818
+ discovery: "discovery";
826
819
  }>;
820
+ enabled: _$zod.ZodBoolean;
821
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
822
+ discovery: "discovery";
823
+ toolset: "toolset";
824
+ }>>;
825
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
826
+ exposed: _$zod.ZodBoolean;
827
827
  }, _$zod_v4_core0.$strip>>;
828
828
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
829
829
  fullName: _$zod.ZodString;
@@ -833,8 +833,8 @@ declare const CanonicalModelSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
833
833
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
834
834
  exposureMode: _$zod.ZodEnum<{
835
835
  hidden: "hidden";
836
- discovery: "discovery";
837
836
  direct: "direct";
837
+ discovery: "discovery";
838
838
  }>;
839
839
  enabled: _$zod.ZodBoolean;
840
840
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -144,7 +144,7 @@ interface ISessionOrchestrator {
144
144
  * adapter-subsystem reverse lookup for canonical `adapterId` to `adapterName`
145
145
  * validation when callers select a direct adapter instance.
146
146
  *
147
- * Registers the core `session.sendMessage` handler only:
147
+ * Registers the core session orchestration handlers:
148
148
  * 1. Get or create session (via `getOrCreateSession`)
149
149
  * 2. Start agent if session has no agents — resolves the canonical
150
150
  * `adapterName` from direct selections, uses `adapterId` directly when
@@ -160,6 +160,9 @@ interface ISessionOrchestrator {
160
160
  * 8. Route to agents (via `routeToAgentsCore`, single shared context)
161
161
  * 9. Return result with `messageId`, `turnId`, `sessionId`
162
162
  *
163
+ * Explicit `session.agent.attach` handlers share the same turn manager so
164
+ * attach-time initial messages participate in the same completion lifecycle.
165
+ *
163
166
  * Host-specific features (personas, MCP, execution targets, container spawn,
164
167
  * connector swap, CWD/model enforcement, fork context, TurnContextEnricher) are
165
168
  * handled by a host-provided orchestrator.
@@ -942,8 +945,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
942
945
  member: "member";
943
946
  }>;
944
947
  status: z.ZodEnum<{
945
- active: "active";
946
948
  idle: "idle";
949
+ active: "active";
947
950
  dead: "dead";
948
951
  disposed: "disposed";
949
952
  }>;
@@ -985,8 +988,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
985
988
  member: "member";
986
989
  }>;
987
990
  status: z.ZodEnum<{
988
- active: "active";
989
991
  idle: "idle";
992
+ active: "active";
990
993
  dead: "dead";
991
994
  disposed: "disposed";
992
995
  }>;
@@ -1023,8 +1026,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1023
1026
  adapterName: z.ZodString;
1024
1027
  status: z.ZodOptional<z.ZodEnum<{
1025
1028
  all: "all";
1026
- active: "active";
1027
1029
  idle: "idle";
1030
+ active: "active";
1028
1031
  dead: "dead";
1029
1032
  disposed: "disposed";
1030
1033
  }>>;
@@ -1054,8 +1057,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1054
1057
  member: "member";
1055
1058
  }>;
1056
1059
  status: z.ZodEnum<{
1057
- active: "active";
1058
1060
  idle: "idle";
1061
+ active: "active";
1059
1062
  dead: "dead";
1060
1063
  disposed: "disposed";
1061
1064
  }>;
@@ -1099,8 +1102,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1099
1102
  member: "member";
1100
1103
  }>;
1101
1104
  status: z.ZodEnum<{
1102
- active: "active";
1103
1105
  idle: "idle";
1106
+ active: "active";
1104
1107
  dead: "dead";
1105
1108
  disposed: "disposed";
1106
1109
  }>;
@@ -1119,8 +1122,8 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1119
1122
  request: z.ZodObject<{
1120
1123
  agentId: z.ZodString;
1121
1124
  status: z.ZodEnum<{
1122
- active: "active";
1123
1125
  idle: "idle";
1126
+ active: "active";
1124
1127
  dead: "dead";
1125
1128
  disposed: "disposed";
1126
1129
  }>;
@@ -1459,7 +1462,7 @@ declare const AgentStorageNamespace: _$_makaio_storage_core0.StorageNamespaceDef
1459
1462
  tableName: "agents";
1460
1463
  dataType: "string";
1461
1464
  columnType: "SQLiteText";
1462
- data: "active" | "idle" | "dead" | "disposed";
1465
+ data: "idle" | "active" | "dead" | "disposed";
1463
1466
  driverParam: string;
1464
1467
  notNull: true;
1465
1468
  hasDefault: false;
@@ -1551,8 +1554,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1551
1554
  member: "member";
1552
1555
  }>;
1553
1556
  status: z.ZodEnum<{
1554
- active: "active";
1555
1557
  idle: "idle";
1558
+ active: "active";
1556
1559
  dead: "dead";
1557
1560
  disposed: "disposed";
1558
1561
  }>;
@@ -1594,8 +1597,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1594
1597
  member: "member";
1595
1598
  }>;
1596
1599
  status: z.ZodEnum<{
1597
- active: "active";
1598
1600
  idle: "idle";
1601
+ active: "active";
1599
1602
  dead: "dead";
1600
1603
  disposed: "disposed";
1601
1604
  }>;
@@ -1632,8 +1635,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1632
1635
  adapterName: z.ZodString;
1633
1636
  status: z.ZodOptional<z.ZodEnum<{
1634
1637
  all: "all";
1635
- active: "active";
1636
1638
  idle: "idle";
1639
+ active: "active";
1637
1640
  dead: "dead";
1638
1641
  disposed: "disposed";
1639
1642
  }>>;
@@ -1663,8 +1666,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1663
1666
  member: "member";
1664
1667
  }>;
1665
1668
  status: z.ZodEnum<{
1666
- active: "active";
1667
1669
  idle: "idle";
1670
+ active: "active";
1668
1671
  dead: "dead";
1669
1672
  disposed: "disposed";
1670
1673
  }>;
@@ -1708,8 +1711,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1708
1711
  member: "member";
1709
1712
  }>;
1710
1713
  status: z.ZodEnum<{
1711
- active: "active";
1712
1714
  idle: "idle";
1715
+ active: "active";
1713
1716
  dead: "dead";
1714
1717
  disposed: "disposed";
1715
1718
  }>;
@@ -1728,8 +1731,8 @@ declare const AgentStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.
1728
1731
  request: z.ZodObject<{
1729
1732
  agentId: z.ZodString;
1730
1733
  status: z.ZodEnum<{
1731
- active: "active";
1732
1734
  idle: "idle";
1735
+ active: "active";
1733
1736
  dead: "dead";
1734
1737
  disposed: "disposed";
1735
1738
  }>;
@@ -1901,7 +1904,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
1901
1904
  tableName: "sessions";
1902
1905
  dataType: "string";
1903
1906
  columnType: "SQLiteText";
1904
- data: "active" | "archived" | "discovered" | "closed";
1907
+ data: "closed" | "active" | "archived" | "discovered";
1905
1908
  driverParam: string;
1906
1909
  notNull: true;
1907
1910
  hasDefault: false;
@@ -2717,7 +2720,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
2717
2720
  tableName: "agents";
2718
2721
  dataType: "string";
2719
2722
  columnType: "SQLiteText";
2720
- data: "active" | "idle" | "dead" | "disposed";
2723
+ data: "idle" | "active" | "dead" | "disposed";
2721
2724
  driverParam: string;
2722
2725
  notNull: true;
2723
2726
  hasDefault: false;
@@ -27,10 +27,10 @@ type MakaioVariant = z.infer<typeof MakaioVariantSchema>;
27
27
  */
28
28
  declare const VariantUpgradeStatusSchema: z.ZodEnum<{
29
29
  error: "error";
30
- downloading: "downloading";
30
+ complete: "complete";
31
31
  progress: "progress";
32
+ downloading: "downloading";
32
33
  applying: "applying";
33
- complete: "complete";
34
34
  }>;
35
35
  /** Inferred TypeScript type for an upgrade status value. */
36
36
  type VariantUpgradeStatus = z.infer<typeof VariantUpgradeStatusSchema>;
@@ -101,10 +101,10 @@ declare const VariantSchemas: {
101
101
  upgradeProgress: z.ZodObject<{
102
102
  status: z.ZodEnum<{
103
103
  error: "error";
104
- downloading: "downloading";
104
+ complete: "complete";
105
105
  progress: "progress";
106
+ downloading: "downloading";
106
107
  applying: "applying";
107
- complete: "complete";
108
108
  }>;
109
109
  percent: z.ZodOptional<z.ZodNumber>;
110
110
  message: z.ZodOptional<z.ZodString>;
@@ -158,10 +158,10 @@ declare const VariantNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:var
158
158
  upgradeProgress: _$zod.ZodObject<{
159
159
  status: _$zod.ZodEnum<{
160
160
  error: "error";
161
- downloading: "downloading";
161
+ complete: "complete";
162
162
  progress: "progress";
163
+ downloading: "downloading";
163
164
  applying: "applying";
164
- complete: "complete";
165
165
  }>;
166
166
  percent: _$zod.ZodOptional<_$zod.ZodNumber>;
167
167
  message: _$zod.ZodOptional<_$zod.ZodString>;
@@ -205,10 +205,10 @@ declare const VariantSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
205
205
  upgradeProgress: _$zod.ZodObject<{
206
206
  status: _$zod.ZodEnum<{
207
207
  error: "error";
208
- downloading: "downloading";
208
+ complete: "complete";
209
209
  progress: "progress";
210
+ downloading: "downloading";
210
211
  applying: "applying";
211
- complete: "complete";
212
212
  }>;
213
213
  percent: _$zod.ZodOptional<_$zod.ZodNumber>;
214
214
  message: _$zod.ZodOptional<_$zod.ZodString>;