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

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 (153) 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 +4 -4
  9. package/dist/{base-orchestrator-BNysGvaM.d.mts → base-orchestrator-J1WKAUkF.d.mts} +32 -3
  10. package/dist/bus/index.d.mts +22 -22
  11. package/dist/bus/index.mjs +1 -1
  12. package/dist/client-l1Rq5p6X.mjs +1 -0
  13. package/dist/clients/index.d.mts +30 -0
  14. package/dist/clients/index.mjs +2 -2
  15. package/dist/contracts/adapter/index.d.mts +2 -2
  16. package/dist/contracts/adapter/index.mjs +1 -1
  17. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  18. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -1
  19. package/dist/contracts/artifact/index.d.mts +1 -1
  20. package/dist/contracts/canonical-model/index.d.mts +1 -1
  21. package/dist/contracts/client/index.d.mts +2 -2
  22. package/dist/contracts/client/index.mjs +1 -1
  23. package/dist/contracts/config/index.d.mts +12 -12
  24. package/dist/contracts/extension/index.d.mts +3 -3
  25. package/dist/contracts/facet/index.d.mts +1 -1
  26. package/dist/contracts/harness/index.d.mts +1 -1
  27. package/dist/contracts/index.d.mts +454 -276
  28. package/dist/contracts/index.mjs +1 -1
  29. package/dist/contracts/materialization/index.d.mts +3 -3
  30. package/dist/contracts/provider/index.d.mts +1 -1
  31. package/dist/contracts/session/index.d.mts +3 -3
  32. package/dist/contracts/session/index.mjs +1 -1
  33. package/dist/contracts/shared/index.d.mts +1 -1
  34. package/dist/contracts/skill/index.d.mts +1 -1
  35. package/dist/contracts/variant/index.d.mts +1 -1
  36. package/dist/contracts/workflow/index.d.mts +2 -2
  37. package/dist/{definition-b9jyJqPD.d.mts → definition-DePb3ke-.d.mts} +1 -1
  38. package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
  39. package/dist/drizzle/meta/_journal.json +7 -0
  40. package/dist/handlers-B74FvKlA.mjs +57 -0
  41. package/dist/hooks/index.d.mts +19 -2
  42. package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
  43. package/dist/{index-BwGfdbI0.d.mts → index-2fK9iSHI.d.mts} +9 -9
  44. package/dist/{index-D7rWAEY0.d.mts → index-B-6DtLLz.d.mts} +1 -1
  45. package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
  46. package/dist/{index-O08Q2ikz.d.mts → index-BMbmoarE.d.mts} +8 -8
  47. package/dist/{index-DV4nRk0h.d.mts → index-BX1MxwFr.d.mts} +28 -28
  48. package/dist/{index-CqCe7Phc.d.mts → index-BcwOnvUh.d.mts} +6 -6
  49. package/dist/{index-D6aAzr32.d.mts → index-BeouVICp.d.mts} +36 -36
  50. package/dist/{index-DQYj8-53.d.mts → index-BjO4Zkap.d.mts} +1 -1
  51. package/dist/{index-B5w-0Gg9.d.mts → index-Bl42SCEI.d.mts} +8 -8
  52. package/dist/{index-BYfSAJRC.d.mts → index-BvTd61i5.d.mts} +151 -29
  53. package/dist/{index-3X0368CL.d.mts → index-CA-AJbq6.d.mts} +4 -4
  54. package/dist/{index-C5C1tk9f.d.mts → index-CQQcnpev.d.mts} +41 -41
  55. package/dist/{index-BKZhnb2B.d.mts → index-C_xQM96Y.d.mts} +802 -422
  56. package/dist/{index-31vR1sxk.d.mts → index-CwFSL4xI.d.mts} +144 -21
  57. package/dist/{index-WHUV7neB.d.mts → index-DMz-2ACU.d.mts} +105 -105
  58. package/dist/{index-3J0HZlPH.d.mts → index-DScUb-hF.d.mts} +334 -13
  59. package/dist/{index-DEzdNQum.d.mts → index-Di84JjS0.d.mts} +2 -2
  60. package/dist/{index-DvHYpi-J.d.mts → index-Dv4oGVZK.d.mts} +1246 -397
  61. package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
  62. package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
  63. package/dist/{index-DLNRgZPo2.d.mts → index-j_X5xefv2.d.mts} +26 -26
  64. package/dist/{index-C6Ys8pxt.d.mts → index-uM4KZopE.d.mts} +9 -9
  65. package/dist/kernel/extension/index.d.mts +1 -1
  66. package/dist/kernel/index.d.mts +2 -2
  67. package/dist/kernel/observability/index.d.mts +1 -1
  68. package/dist/{namespace-j7vFsmYL.d.mts → namespace-3yGm4WF9.d.mts} +2 -2
  69. package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
  70. package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
  71. package/dist/{namespace-DmqoDDRD.d.mts → namespace-Boh42UoL.d.mts} +66 -22
  72. package/dist/{namespace-CfvtDD_U.d.mts → namespace-COEUMuHL.d.mts} +156 -156
  73. package/dist/{namespace-B4cV_pk3.d.mts → namespace-D94HrTtq.d.mts} +58 -58
  74. package/dist/{namespace-DhDY0juT.d.mts → namespace-OLAh9wHU.d.mts} +375 -27
  75. package/dist/{namespace-Bm77p82L.d.mts → namespace-TPbegIMi.d.mts} +27 -27
  76. package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
  77. package/dist/{package-BmRhhi-3.mjs → package-BQn_RTo7.mjs} +1 -1
  78. package/dist/package.json +1 -1
  79. package/dist/{schema-DLNBajAV.d.mts → schema-B5vHi7Uu.d.mts} +28 -1
  80. package/dist/{schemas-CoFCV42v.d.mts → schemas-CDBn9MTz.d.mts} +156 -156
  81. package/dist/schemas-CkOigLAT.mjs +1 -0
  82. package/dist/{schemas-lnE9YoG7.d.mts → schemas-CscdPqCt.d.mts} +3 -3
  83. package/dist/{schemas-DMMWmWjq.d.mts → schemas-D512XweP.d.mts} +4 -4
  84. package/dist/{schemas-DuuVuhHX2.d.mts → schemas-DOV4UouN2.d.mts} +13 -13
  85. package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
  86. package/dist/services/adapter-runtime/index.d.mts +4 -4
  87. package/dist/services/adapter-runtime/index.mjs +1 -1
  88. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  89. package/dist/services/adapter-runtime/schemas.d.mts +2 -2
  90. package/dist/services/adapter-runtime/schemas.mjs +1 -1
  91. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  92. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  93. package/dist/services/agent-runtime/index.d.mts +2 -2
  94. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  95. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  96. package/dist/services/context-rules/index.d.mts +8 -8
  97. package/dist/services/execution-target/index.d.mts +1 -1
  98. package/dist/services/filesystem/namespace.d.mts +12 -12
  99. package/dist/services/filesystem/schemas.d.mts +6 -6
  100. package/dist/services/git/namespace.d.mts +2 -2
  101. package/dist/services/git/schemas.d.mts +1 -1
  102. package/dist/services/harness/index.d.mts +3 -3
  103. package/dist/services/index.d.mts +147 -140
  104. package/dist/services/index.mjs +1 -1
  105. package/dist/services/log-import/browser.d.mts +2 -2
  106. package/dist/services/log-import/index.d.mts +15 -2
  107. package/dist/services/log-import/index.mjs +2 -2
  108. package/dist/services/log-import/log-import.d.mts +1 -1
  109. package/dist/services/log-import/namespace.d.mts +2 -2
  110. package/dist/services/log-import/schemas.d.mts +1 -1
  111. package/dist/services/session/handlers/index.d.mts +1 -1
  112. package/dist/services/session/handlers/index.mjs +1 -1
  113. package/dist/services/session/index.d.mts +7 -7
  114. package/dist/services/session/index.mjs +1 -1
  115. package/dist/services/session/messages/namespace.d.mts +1 -1
  116. package/dist/services/session/session-events/namespace.d.mts +1 -1
  117. package/dist/services/session/storage/namespace.d.mts +1 -1
  118. package/dist/services/session/storage/schema.d.mts +1 -1
  119. package/dist/services/session/storage/schema.mjs +1 -1
  120. package/dist/services/session/testing/index.mjs +3 -2
  121. package/dist/services/session-editor/index.d.mts +1 -1
  122. package/dist/services/settings/namespace.d.mts +10 -10
  123. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  124. package/dist/services/subagent-template/index.d.mts +2 -2
  125. package/dist/services/subagent-template/namespace.d.mts +1 -1
  126. package/dist/services/subagent-template/schemas.d.mts +1 -1
  127. package/dist/services/tool-approval/index.mjs +1 -1
  128. package/dist/services/tools/index.mjs +1 -1
  129. package/dist/services/tray-menu/index.d.mts +2 -2
  130. package/dist/services/tray-menu/namespace.d.mts +1 -1
  131. package/dist/services/tray-menu/schemas.d.mts +1 -1
  132. package/dist/session-CoGaTin6.mjs +69 -0
  133. package/dist/session-Dp7z5N1d.mjs +1 -0
  134. package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
  135. package/dist/{tool-approval-service-MU_DmJsf.mjs → tool-approval-service-BNXgr-az.mjs} +1 -1
  136. package/dist/tools-BaO4GYj0.mjs +1 -0
  137. package/dist/{transition-Dq41YCkc.d.mts → transition-Bbjlwv5K.d.mts} +1 -1
  138. package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
  139. package/dist/{types-BMlzmWp6.d.mts → types-CNkx2awa.d.mts} +12 -1
  140. package/dist/{types-Cse8s_cD.d.mts → types-D7W0ntGr.d.mts} +45 -18
  141. package/dist/{types-C76EP81O.d.mts → types-jruUn6oW.d.mts} +694 -282
  142. package/dist/workflow-engine/index.d.mts +41 -41
  143. package/dist/workflow-engine/index.mjs +1 -1
  144. package/dist/workflow-engine/package.d.mts +1 -1
  145. package/dist/workflow-engine/package.mjs +1 -1
  146. package/package.json +1 -1
  147. package/dist/adapter-BRxCc72E.mjs +0 -1
  148. package/dist/client-BgUjVbXX.mjs +0 -1
  149. package/dist/handlers-v47Gbsr1.mjs +0 -57
  150. package/dist/schemas-ftgVeWIG.mjs +0 -1
  151. package/dist/session-CKWfn3oc.mjs +0 -1
  152. package/dist/session-DCbJwYEU.mjs +0 -69
  153. package/dist/tools-BrNm-een.mjs +0 -1
@@ -17,8 +17,8 @@ declare const ClientExecutionContextSchema: z.ZodObject<{
17
17
  env: z.ZodRecord<z.ZodString, z.ZodString>;
18
18
  configDir: z.ZodNullable<z.ZodString>;
19
19
  source: z.ZodEnum<{
20
- managed: "managed";
21
20
  global: "global";
21
+ managed: "managed";
22
22
  }>;
23
23
  version: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>;
@@ -39,8 +39,8 @@ declare const ClientResolveBinarySchema: {
39
39
  sessionId: z.ZodOptional<z.ZodString>;
40
40
  projectDir: z.ZodOptional<z.ZodString>;
41
41
  preferSource: z.ZodOptional<z.ZodEnum<{
42
- managed: "managed";
43
42
  global: "global";
43
+ managed: "managed";
44
44
  }>>;
45
45
  harnessId: z.ZodOptional<z.ZodString>;
46
46
  }, z.core.$strip>;
@@ -49,8 +49,8 @@ declare const ClientResolveBinarySchema: {
49
49
  env: z.ZodRecord<z.ZodString, z.ZodString>;
50
50
  configDir: z.ZodNullable<z.ZodString>;
51
51
  source: z.ZodEnum<{
52
- managed: "managed";
53
52
  global: "global";
53
+ managed: "managed";
54
54
  }>;
55
55
  version: z.ZodNullable<z.ZodString>;
56
56
  }, z.core.$strip>;
@@ -88,9 +88,9 @@ declare const ClientSchemas: {
88
88
  baseConfigDir: z.ZodOptional<z.ZodString>;
89
89
  projectDir: z.ZodOptional<z.ZodString>;
90
90
  configInheritance: z.ZodOptional<z.ZodEnum<{
91
- empty: "empty";
92
91
  "auth-only": "auth-only";
93
92
  full: "full";
93
+ empty: "empty";
94
94
  }>>;
95
95
  }, z.core.$strip>;
96
96
  response: z.ZodObject<{
@@ -271,6 +271,15 @@ declare const ClientSchemas: {
271
271
  }, z.core.$strip>;
272
272
  observedAt: z.ZodNumber;
273
273
  }, z.core.$strip>;
274
+ 'runtime.isAdapterManaged': {
275
+ request: z.ZodObject<{
276
+ adapterSessionId: z.ZodString;
277
+ clientId: z.ZodString;
278
+ }, z.core.$strip>;
279
+ response: z.ZodObject<{
280
+ managed: z.ZodBoolean;
281
+ }, z.core.$strip>;
282
+ };
274
283
  scan: {
275
284
  request: z.ZodObject<{
276
285
  targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -458,6 +467,15 @@ declare const ClientSchemas: {
458
467
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
468
  transcriptPath: z.ZodOptional<z.ZodString>;
460
469
  cwd: z.ZodOptional<z.ZodString>;
470
+ machineId: z.ZodOptional<z.ZodString>;
471
+ startMode: z.ZodOptional<z.ZodEnum<{
472
+ fork: "fork";
473
+ fresh: "fresh";
474
+ resume: "resume";
475
+ clear: "clear";
476
+ compact: "compact";
477
+ }>>;
478
+ parentAdapterSessionId: z.ZodOptional<z.ZodString>;
461
479
  }, z.core.$strip>;
462
480
  'session.userPrompt.submitted': z.ZodObject<{
463
481
  clientId: z.ZodString;
@@ -633,8 +651,8 @@ declare const ClientSchemas: {
633
651
  reason: z.ZodEnum<{
634
652
  update: "update";
635
653
  install: "install";
636
- "set-active": "set-active";
637
654
  uninstall: "uninstall";
655
+ "set-active": "set-active";
638
656
  }>;
639
657
  }, z.core.$strip>;
640
658
  resolveBinary: {
@@ -643,8 +661,8 @@ declare const ClientSchemas: {
643
661
  sessionId: z.ZodOptional<z.ZodString>;
644
662
  projectDir: z.ZodOptional<z.ZodString>;
645
663
  preferSource: z.ZodOptional<z.ZodEnum<{
646
- managed: "managed";
647
664
  global: "global";
665
+ managed: "managed";
648
666
  }>>;
649
667
  harnessId: z.ZodOptional<z.ZodString>;
650
668
  }, z.core.$strip>;
@@ -653,8 +671,8 @@ declare const ClientSchemas: {
653
671
  env: z.ZodRecord<z.ZodString, z.ZodString>;
654
672
  configDir: z.ZodNullable<z.ZodString>;
655
673
  source: z.ZodEnum<{
656
- managed: "managed";
657
674
  global: "global";
675
+ managed: "managed";
658
676
  }>;
659
677
  version: z.ZodNullable<z.ZodString>;
660
678
  }, z.core.$strip>;
@@ -1133,8 +1151,8 @@ declare const ClientVersionChangedSchema: z.ZodObject<{
1133
1151
  reason: z.ZodEnum<{
1134
1152
  update: "update";
1135
1153
  install: "install";
1136
- "set-active": "set-active";
1137
1154
  uninstall: "uninstall";
1155
+ "set-active": "set-active";
1138
1156
  }>;
1139
1157
  }, z.core.$strip>;
1140
1158
  type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
@@ -1285,6 +1303,41 @@ declare const ClientRuntimeStartedSchema: z.ZodObject<{
1285
1303
  observedAt: z.ZodNumber;
1286
1304
  }, z.core.$strip>;
1287
1305
  type ClientRuntimeStarted = z.infer<typeof ClientRuntimeStartedSchema>;
1306
+ /**
1307
+ * Request and response schemas for `client.runtime.isAdapterManaged`.
1308
+ *
1309
+ * Query the runtime registry to determine whether an adapter session ID
1310
+ * was bound by an adapter-layer observation (`source.layer === 'adapter'`)
1311
+ * of the **current process**. This is present-tense runtime truth — it
1312
+ * does NOT merely check whether a runtime record exists for the pair.
1313
+ *
1314
+ * The distinction matters because `client.runtime.observe` is also emitted
1315
+ * by non-adapter layers (e.g. `client-hook` observations forwarded from
1316
+ * the hook bridge), and those sessions must remain importable. Only
1317
+ * adapter-layer observations mark the pair as adapter-owned in the
1318
+ * in-memory provenance set.
1319
+ *
1320
+ * **Provenance is intentionally in-memory-only.** After a restart,
1321
+ * adapter-managed processes are re-observed by the adapter layer and the
1322
+ * provenance set is rebuilt. Hydrated records from a prior process do not
1323
+ * count as "currently managed."
1324
+ *
1325
+ * Primary consumer: the log-importer skip predicate, which needs to
1326
+ * distinguish adapter-managed sessions from externally observed sessions
1327
+ * that share the same storage fingerprint (`isImported: true`,
1328
+ * `importStatus: 'tracking'`, `clientId` set).
1329
+ */
1330
+ declare const ClientRuntimeIsAdapterManagedSchema: {
1331
+ request: z.ZodObject<{
1332
+ adapterSessionId: z.ZodString;
1333
+ clientId: z.ZodString;
1334
+ }, z.core.$strip>;
1335
+ response: z.ZodObject<{
1336
+ managed: z.ZodBoolean;
1337
+ }, z.core.$strip>;
1338
+ };
1339
+ type ClientRuntimeIsAdapterManagedRequest = z.infer<typeof ClientRuntimeIsAdapterManagedSchema.request>;
1340
+ type ClientRuntimeIsAdapterManagedResponse = z.infer<typeof ClientRuntimeIsAdapterManagedSchema.response>;
1288
1341
  //#endregion
1289
1342
  //#region core/contracts/src/client/session-observed.d.ts
1290
1343
  /**
@@ -1322,6 +1375,30 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
1322
1375
  * This is a normalized observed signal — not a command. The session may not
1323
1376
  * yet be linked to a framework session at emission time.
1324
1377
  */
1378
+ /**
1379
+ * Closed set of session start modes a client runtime can report.
1380
+ *
1381
+ * Narrower than the agent-level {@link StartMode}: a client can distinguish
1382
+ * `'fresh'` (new session) from `'fork'` (fork child), `'resume'`
1383
+ * (continuation of an existing session), `'clear'` (conversation cleared),
1384
+ * and `'compact'` (context compacted), but cannot know `'rotation'`
1385
+ * (a framework-level concept).
1386
+ *
1387
+ * Maps 1:1 to the Claude Code SDK `SessionStartHookInput.source` union:
1388
+ * `'startup'` → `'fresh'`, `'resume'` → `'resume'` or `'fork'` (after
1389
+ * transcript sniff), `'clear'` → `'clear'`, `'compact'` → `'compact'`.
1390
+ */
1391
+ declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
1392
+ /** Zod schema for the client-reported session start mode. */
1393
+ declare const ClientSessionStartModeSchema: z.ZodEnum<{
1394
+ fork: "fork";
1395
+ fresh: "fresh";
1396
+ resume: "resume";
1397
+ clear: "clear";
1398
+ compact: "compact";
1399
+ }>;
1400
+ /** Client-reported session start mode discriminator. */
1401
+ type ClientSessionStartMode = z.infer<typeof ClientSessionStartModeSchema>;
1325
1402
  declare const ClientSessionStartedSchema: z.ZodObject<{
1326
1403
  clientId: z.ZodString;
1327
1404
  source: z.ZodString;
@@ -1331,6 +1408,15 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
1331
1408
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1332
1409
  transcriptPath: z.ZodOptional<z.ZodString>;
1333
1410
  cwd: z.ZodOptional<z.ZodString>;
1411
+ machineId: z.ZodOptional<z.ZodString>;
1412
+ startMode: z.ZodOptional<z.ZodEnum<{
1413
+ fork: "fork";
1414
+ fresh: "fresh";
1415
+ resume: "resume";
1416
+ clear: "clear";
1417
+ compact: "compact";
1418
+ }>>;
1419
+ parentAdapterSessionId: z.ZodOptional<z.ZodString>;
1334
1420
  }, z.core.$strip>;
1335
1421
  type ClientSessionStarted = z.infer<typeof ClientSessionStartedSchema>;
1336
1422
  /**
@@ -1446,7 +1532,8 @@ type ClientWiringEntry = z.infer<typeof ClientWiringEntrySchema>;
1446
1532
  * Defines the global `client.*` namespace for scan, account observation
1447
1533
  * (`client.account.observe`, `client.account.activate`, `client.account.getActive`),
1448
1534
  * usage ingestion/snapshot, runtime observation (`client.runtime.observe`,
1449
- * `client.runtime.started`), observed session semantics subjects
1535
+ * `client.runtime.started`, `client.runtime.isAdapterManaged`),
1536
+ * observed session semantics subjects
1450
1537
  * (`client.session.started`, `client.session.userPrompt.submitted`,
1451
1538
  * `client.session.turn.started`, `client.session.turn.completed`,
1452
1539
  * `client.session.tool.pre`, `client.session.tool.post`), the global
@@ -1492,9 +1579,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1492
1579
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
1493
1580
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1494
1581
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1495
- empty: "empty";
1496
1582
  "auth-only": "auth-only";
1497
1583
  full: "full";
1584
+ empty: "empty";
1498
1585
  }>>;
1499
1586
  }, _$zod_v4_core0.$strip>;
1500
1587
  response: _$zod.ZodObject<{
@@ -1675,6 +1762,15 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1675
1762
  }, _$zod_v4_core0.$strip>;
1676
1763
  observedAt: _$zod.ZodNumber;
1677
1764
  }, _$zod_v4_core0.$strip>;
1765
+ 'runtime.isAdapterManaged': {
1766
+ request: _$zod.ZodObject<{
1767
+ adapterSessionId: _$zod.ZodString;
1768
+ clientId: _$zod.ZodString;
1769
+ }, _$zod_v4_core0.$strip>;
1770
+ response: _$zod.ZodObject<{
1771
+ managed: _$zod.ZodBoolean;
1772
+ }, _$zod_v4_core0.$strip>;
1773
+ };
1678
1774
  scan: {
1679
1775
  request: _$zod.ZodObject<{
1680
1776
  targets: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
@@ -1846,6 +1942,15 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1846
1942
  metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
1847
1943
  transcriptPath: _$zod.ZodOptional<_$zod.ZodString>;
1848
1944
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1945
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
1946
+ startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
1947
+ fork: "fork";
1948
+ fresh: "fresh";
1949
+ resume: "resume";
1950
+ clear: "clear";
1951
+ compact: "compact";
1952
+ }>>;
1953
+ parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1849
1954
  }, _$zod_v4_core0.$strip>;
1850
1955
  'session.userPrompt.submitted': _$zod.ZodObject<{
1851
1956
  clientId: _$zod.ZodString;
@@ -2021,8 +2126,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2021
2126
  reason: _$zod.ZodEnum<{
2022
2127
  update: "update";
2023
2128
  install: "install";
2024
- "set-active": "set-active";
2025
2129
  uninstall: "uninstall";
2130
+ "set-active": "set-active";
2026
2131
  }>;
2027
2132
  }, _$zod_v4_core0.$strip>;
2028
2133
  resolveBinary: {
@@ -2031,8 +2136,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2031
2136
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2032
2137
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2033
2138
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2034
- managed: "managed";
2035
2139
  global: "global";
2140
+ managed: "managed";
2036
2141
  }>>;
2037
2142
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2038
2143
  }, _$zod_v4_core0.$strip>;
@@ -2041,8 +2146,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2041
2146
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2042
2147
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2043
2148
  source: _$zod.ZodEnum<{
2044
- managed: "managed";
2045
2149
  global: "global";
2150
+ managed: "managed";
2046
2151
  }>;
2047
2152
  version: _$zod.ZodNullable<_$zod.ZodString>;
2048
2153
  }, _$zod_v4_core0.$strip>;
@@ -2077,9 +2182,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2077
2182
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
2078
2183
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2079
2184
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2080
- empty: "empty";
2081
2185
  "auth-only": "auth-only";
2082
2186
  full: "full";
2187
+ empty: "empty";
2083
2188
  }>>;
2084
2189
  }, _$zod_v4_core0.$strip>;
2085
2190
  response: _$zod.ZodObject<{
@@ -2260,6 +2365,15 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2260
2365
  }, _$zod_v4_core0.$strip>;
2261
2366
  observedAt: _$zod.ZodNumber;
2262
2367
  }, _$zod_v4_core0.$strip>;
2368
+ 'runtime.isAdapterManaged': {
2369
+ request: _$zod.ZodObject<{
2370
+ adapterSessionId: _$zod.ZodString;
2371
+ clientId: _$zod.ZodString;
2372
+ }, _$zod_v4_core0.$strip>;
2373
+ response: _$zod.ZodObject<{
2374
+ managed: _$zod.ZodBoolean;
2375
+ }, _$zod_v4_core0.$strip>;
2376
+ };
2263
2377
  scan: {
2264
2378
  request: _$zod.ZodObject<{
2265
2379
  targets: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
@@ -2431,6 +2545,15 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2431
2545
  metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
2432
2546
  transcriptPath: _$zod.ZodOptional<_$zod.ZodString>;
2433
2547
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2548
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
2549
+ startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2550
+ fork: "fork";
2551
+ fresh: "fresh";
2552
+ resume: "resume";
2553
+ clear: "clear";
2554
+ compact: "compact";
2555
+ }>>;
2556
+ parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2434
2557
  }, _$zod_v4_core0.$strip>;
2435
2558
  'session.userPrompt.submitted': _$zod.ZodObject<{
2436
2559
  clientId: _$zod.ZodString;
@@ -2606,8 +2729,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2606
2729
  reason: _$zod.ZodEnum<{
2607
2730
  update: "update";
2608
2731
  install: "install";
2609
- "set-active": "set-active";
2610
2732
  uninstall: "uninstall";
2733
+ "set-active": "set-active";
2611
2734
  }>;
2612
2735
  }, _$zod_v4_core0.$strip>;
2613
2736
  resolveBinary: {
@@ -2616,8 +2739,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2616
2739
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2617
2740
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2618
2741
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2619
- managed: "managed";
2620
2742
  global: "global";
2743
+ managed: "managed";
2621
2744
  }>>;
2622
2745
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2623
2746
  }, _$zod_v4_core0.$strip>;
@@ -2626,8 +2749,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2626
2749
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2627
2750
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2628
2751
  source: _$zod.ZodEnum<{
2629
- managed: "managed";
2630
2752
  global: "global";
2753
+ managed: "managed";
2631
2754
  }>;
2632
2755
  version: _$zod.ZodNullable<_$zod.ZodString>;
2633
2756
  }, _$zod_v4_core0.$strip>;
@@ -2686,9 +2809,9 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2686
2809
  * Policy for materializing a session config directory from a base client config.
2687
2810
  */
2688
2811
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2689
- empty: "empty";
2690
2812
  "auth-only": "auth-only";
2691
2813
  full: "full";
2814
+ empty: "empty";
2692
2815
  }>;
2693
2816
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2694
2817
  /**
@@ -2843,9 +2966,9 @@ declare const ClientSessionConfigSchemas: {
2843
2966
  baseConfigDir: z.ZodOptional<z.ZodString>;
2844
2967
  projectDir: z.ZodOptional<z.ZodString>;
2845
2968
  configInheritance: z.ZodOptional<z.ZodEnum<{
2846
- empty: "empty";
2847
2969
  "auth-only": "auth-only";
2848
2970
  full: "full";
2971
+ empty: "empty";
2849
2972
  }>>;
2850
2973
  }, z.core.$strip>;
2851
2974
  response: z.ZodObject<{
@@ -2898,9 +3021,9 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
2898
3021
  win32: "win32";
2899
3022
  }>;
2900
3023
  configInheritance: z.ZodEnum<{
2901
- empty: "empty";
2902
3024
  "auth-only": "auth-only";
2903
3025
  full: "full";
3026
+ empty: "empty";
2904
3027
  }>;
2905
3028
  }, z.core.$strip>;
2906
3029
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
@@ -3007,4 +3130,4 @@ type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)[
3007
3130
  type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
3008
3131
  type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
3009
3132
  //#endregion
3010
- 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 };
3133
+ export { ClientSessionToolPre as $, ManagedInstallStrategySchema as $t, SessionConfigIdSchema as A, ClientExecutionContextSchema as An, ClientInstallResponse as At, SessionConfigTeardownResponseSchema as B, ClientUninstallSchema as Bt, SessionConfigCleanupRequest as C, ClientUsageSnapshotSchema as Cn, ClientBinaryListEntry as Ct, SessionConfigDestroyRequest as D, ClientUsageWindowsSchema as Dn, ClientInstallProgress as Dt, SessionConfigCreateResponse as E, ClientUsageWindows as En, ClientInstallCompletedSchema as Et, SessionConfigSetupResponse as F, ClientSetActiveRequest as Ft, ClientSessionObservedBase as G, ClientVersionChangedSchema as Gt, ClientNamespace as H, ClientUpdateResponse as Ht, SessionConfigSetupResponseSchema as I, ClientSetActiveResponse as It, ClientSessionStartModeSchema as J, InstallStage as Jt, ClientSessionObservedBaseSchema as K, InstallError as Kt, SessionConfigTeardownRequest as L, ClientSetActiveSchema as Lt, SessionConfigInheritanceSchema as M, ClientResolveBinaryResponse as Mn, ClientListRequest as Mt, SessionConfigSetupRequest as N, ClientResolveBinarySchema as Nn, ClientListResponse as Nt, SessionConfigDestroyResponse as O, ClientSchemas as On, ClientInstallProgressSchema as Ot, SessionConfigSetupRequestSchema as P, ClientListSchema as Pt, ClientSessionToolPostSchema as Q, ManagedInstallStrategy as Qt, SessionConfigTeardownRequestSchema as R, ClientUninstallRequest as Rt, ProfileUpdateResponse as S, ClientUsageSnapshot as Sn, ClientRuntimeStartedSchema as St, SessionConfigCreateRequest as T, ClientUsageWindowSchema as Tn, ClientInstallCompleted as Tt, ClientSubjects as U, ClientUpdateSchema as Ut, createClientDefinition as V, ClientUpdateRequest as Vt, CLIENT_SESSION_START_MODES as W, ClientVersionChanged as Wt, ClientSessionStartedSchema as X, InstalledVersionEntry as Xt, ClientSessionStarted as Y, InstallStageSchema as Yt, ClientSessionToolPost as Z, InstalledVersionEntrySchema as Zt, ProfileListRequest as _, ClientSessionLocator as _n, ClientRuntimeSource as _t, ClientConfigPrimeSchema as a, ClientIdentifierStrength as an, ClientSessionUserPromptSubmitted as at, ProfileSetDefaultResponse as b, ClientUsageIngestResponse as bn, ClientRuntimeSourceSchema as bt, ClientProfileSchema as c, ClientIdentityObservationSchema as cn, ClientWiringEntrySchema as ct, ProfileCreateRequest as d, ClientScanResultSchema as dn, ClientRuntimeIsAdapterManagedRequest as dt, ClientAccountIdentifier as en, ClientSessionToolPreSchema as et, ProfileCreateResponse as f, ClientScanTarget as fn, ClientRuntimeIsAdapterManagedResponse as ft, ProfileGetResponse as g, ClientSessionAccountObserveSchema as gn, ClientRuntimeObserveSchema as gt, ProfileGetRequest as h, ClientSessionAccountObserveResponse as hn, ClientRuntimeObserveResponse as ht, ClientConfigPrimeResponse as i, ClientAccountObserveSchema as in, ClientSessionTurnStartedSchema as it, SessionConfigInheritance as j, ClientResolveBinaryRequest as jn, ClientInstallSchema as jt, SessionConfigEnvSchema as k, ClientExecutionContext as kn, ClientInstallRequest as kt, ClientProfileSchemas as l, ClientMetadataSchema as ln, ClientRuntimeEvidenceBase as lt, ProfileDeleteResponse as m, ClientSessionAccountObserveRequest as mn, ClientRuntimeObserveRequest as mt, ClientConfigPrimePhaseSchema as n, ClientAccountObserveRequest as nn, ClientSessionTurnCompletedSchema as nt, ClientProfile as o, ClientIdentifierStrengthSchema as on, ClientSessionUserPromptSubmittedSchema as ot, ProfileDeleteRequest as p, ClientScanTargetSchema as pn, ClientRuntimeIsAdapterManagedSchema as pt, ClientSessionStartMode as q, InstallErrorSchema as qt, ClientConfigPrimeRequest as r, ClientAccountObserveResponse as rn, ClientSessionTurnStarted as rt, ClientProfileNameSchema as s, ClientIdentityObservation as sn, ClientWiringEntry as st, ClientConfigPrimePhase as t, ClientAccountIdentifierSchema as tn, ClientSessionTurnCompleted as tt, ClientSessionConfigSchemas as u, ClientScanResult as un, ClientRuntimeEvidenceBaseSchema as ut, ProfileListResponse as v, ClientSessionLocatorSchema as vn, ClientRuntimeSourceLayer as vt, SessionConfigCleanupResponse as w, ClientUsageWindow as wn, ClientBinaryListEntrySchema as wt, ProfileUpdateRequest as x, ClientUsageIngestSchema as xn, ClientRuntimeStarted as xt, ProfileSetDefaultRequest as y, ClientUsageIngestRequest as yn, ClientRuntimeSourceLayerSchema as yt, SessionConfigTeardownResponse as z, ClientUninstallResponse as zt };