@makaio/framework 1.0.0-dev-1790175294701 → 1.0.0-dev-1790248497521

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 (80) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-DF2UJsjP.mjs +1 -0
  3. package/dist/bus/index.mjs +1 -1
  4. package/dist/bus-DgpPEPoM.mjs +9 -0
  5. package/dist/contracts/adapter/index.d.mts +1 -1
  6. package/dist/contracts/artifact/index.d.mts +2 -2
  7. package/dist/contracts/artifact/index.mjs +1 -1
  8. package/dist/contracts/capabilities/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/extension/index.d.mts +2 -2
  11. package/dist/contracts/facet/index.d.mts +1 -1
  12. package/dist/contracts/index.d.mts +69 -69
  13. package/dist/contracts/index.mjs +1 -1
  14. package/dist/contracts/materialization/index.d.mts +3 -3
  15. package/dist/contracts/materialization/index.mjs +1 -1
  16. package/dist/contracts/session/index.d.mts +2 -2
  17. package/dist/contracts/variant/index.d.mts +1 -1
  18. package/dist/contracts/worker/index.d.mts +1 -1
  19. package/dist/contracts/worker/index.mjs +1 -1
  20. package/dist/contracts/workflow/index.d.mts +1 -1
  21. package/dist/contracts/workflow/index.mjs +1 -1
  22. package/dist/{index-9O8N514B2.d.mts → index-6UlianLY2.d.mts} +4 -4
  23. package/dist/{index-CVRQS5jk.d.mts → index-BM53WQaQ.d.mts} +1 -1
  24. package/dist/{index-oE2q0pTG.d.mts → index-BZQ3OviE.d.mts} +1 -1
  25. package/dist/{index-Csua5M_M2.d.mts → index-Bmb7jPIe2.d.mts} +8 -8
  26. package/dist/{index-BusmMFMN.d.mts → index-Bon00c4i.d.mts} +48 -11
  27. package/dist/{index-7pt_bh4z.d.mts → index-BrMihjbI.d.mts} +68 -68
  28. package/dist/{index-DWKSiTxX.d.mts → index-C4VB63lu.d.mts} +18 -18
  29. package/dist/{index-Bgz81LHZ.d.mts → index-CEX9qfLa.d.mts} +1 -1
  30. package/dist/{index-DxtUM-qd.d.mts → index-CLwnkYRD.d.mts} +1 -1
  31. package/dist/{index-BMr77str2.d.mts → index-CydQ1dLS2.d.mts} +12 -12
  32. package/dist/{index-BgkQiruC.d.mts → index-D5BLD2Pw.d.mts} +7 -7
  33. package/dist/{index-B1iXL1pW.d.mts → index-D5Lw1UsO.d.mts} +8 -8
  34. package/dist/{index-Cu8k2ZGe.d.mts → index-DJLRXASA.d.mts} +24 -24
  35. package/dist/{index-D8V1DhrY.d.mts → index-Dcwee5Cl.d.mts} +90 -14
  36. package/dist/{index-DIEnLLhi2.d.mts → index-LCumcYK12.d.mts} +37 -37
  37. package/dist/{index-Mk478DlF.d.mts → index-QgSmUedN.d.mts} +4 -4
  38. package/dist/{index-BVN64wQx.d.mts → index-rkN_9bde.d.mts} +24 -24
  39. package/dist/kernel/extension/index.d.mts +2 -2
  40. package/dist/kernel/index.d.mts +2 -2
  41. package/dist/kernel/observability/index.d.mts +1 -1
  42. package/dist/{materialization-iFhpbs1s.mjs → materialization-CIrHHspa.mjs} +4 -1
  43. package/dist/{namespace-Bz0ZDWhE.d.mts → namespace-BEi98VfQ.d.mts} +18 -18
  44. package/dist/{namespace-B9iQN3FQ.d.mts → namespace-C5tKjqgb.d.mts} +4 -4
  45. package/dist/{namespace-h7gq_v5U.d.mts → namespace-CHSwZhH7.d.mts} +2 -2
  46. package/dist/{namespace-DAzOxaux.d.mts → namespace-D6W4Erwp.d.mts} +2 -2
  47. package/dist/{namespace-C1-ZAKEG.d.mts → namespace-D8oTiLLo.d.mts} +6 -6
  48. package/dist/package.json +1 -1
  49. package/dist/{schemas-BTJvvq9Y.d.mts → schemas-BXkSHQaF.d.mts} +2 -2
  50. package/dist/{schemas-CBDNnyz4.d.mts → schemas-Cb9OJ9va.d.mts} +1 -1
  51. package/dist/{schemas-Dec5VtBU.d.mts → schemas-CrOeGZHg.d.mts} +10 -10
  52. package/dist/{schemas-Dyp3rHZ7.d.mts → schemas-__oTCzF6.d.mts} +4 -4
  53. package/dist/services/adapter-runtime/index.d.mts +3 -3
  54. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  55. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  56. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  57. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  58. package/dist/services/execution-target/index.d.mts +2 -2
  59. package/dist/services/execution-target/namespace.d.mts +1 -1
  60. package/dist/services/execution-target/schemas.d.mts +1 -1
  61. package/dist/services/filesystem/namespace.d.mts +6 -6
  62. package/dist/services/filesystem/schemas.d.mts +3 -3
  63. package/dist/services/index.d.mts +32 -28
  64. package/dist/services/index.mjs +1 -1
  65. package/dist/services/provider-context/index.d.mts +1 -1
  66. package/dist/services/session/handlers/index.d.mts +1 -1
  67. package/dist/services/session/index.d.mts +5 -5
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/session/session-events/namespace.d.mts +1 -1
  70. package/dist/services/settings/namespace.d.mts +10 -10
  71. package/dist/services/subagent-template/index.d.mts +1 -1
  72. package/dist/services/subagent-template/schemas.d.mts +1 -1
  73. package/dist/{types-DTpwvvY9.d.mts → types-BP_P1izV.d.mts} +15 -15
  74. package/dist/{view-builder-cjQZJmTY.d.mts → view-builder-2cR7vI7R.d.mts} +10 -10
  75. package/dist/{worker-B72n8bse.mjs → worker-YKEWHrx5.mjs} +1 -1
  76. package/dist/{workflow-D-X3rPsl.mjs → workflow-01evBylF.mjs} +1 -1
  77. package/dist/workflow-engine/index.d.mts +9 -9
  78. package/package.json +1 -1
  79. package/dist/artifact-CKz9YQPu.mjs +0 -1
  80. package/dist/bus-30AlabEz.mjs +0 -9
@@ -1,4 +1,4 @@
1
- import { sr as AnyArtifactKindDefinition, vr as ArtifactLifecycleHookEvent, yr as ArtifactLifecycleHookRegistration$1 } from "./index-D8V1DhrY.mjs";
1
+ import { Cr as ArtifactLifecycleHookRegistration$1, Sr as ArtifactLifecycleHookEvent, dr as AnyArtifactKindDefinition } from "./index-Dcwee5Cl.mjs";
2
2
  import { l as JsonValue$1 } from "./json-value--pv1-OHx.mjs";
3
3
  import { s as AdapterProviderAuth$1 } from "./adapter-binding-DF-j-XHg.mjs";
4
4
  import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-DH84KOm9.mjs";
@@ -7,11 +7,11 @@ import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActi
7
7
  import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-OETFKaAL.mjs";
8
8
  import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-D2SO1tX-.mjs";
9
9
  import { t as RequiredTimeoutConfig } from "./index-DOui-7u2.mjs";
10
- import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-DTpwvvY9.mjs";
10
+ import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-BP_P1izV.mjs";
11
11
  import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-DDCixELI.mjs";
12
- import { l as FacetNamespaceDefinition } from "./index-Csua5M_M2.mjs";
12
+ import { l as FacetNamespaceDefinition } from "./index-Bmb7jPIe2.mjs";
13
13
  import { t as ExtensionReactionsContribution } from "./index-BRXETFym.mjs";
14
- import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-cjQZJmTY.mjs";
14
+ import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-2cR7vI7R.mjs";
15
15
  import { z } from "zod";
16
16
  import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
17
17
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -18,11 +18,11 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
18
18
  * detail, not an externally observable state.
19
19
  */
20
20
  declare const ComponentStateSchema: z.ZodEnum<{
21
- discovered: "discovered";
22
21
  failed: "failed";
23
- stopped: "stopped";
22
+ discovered: "discovered";
24
23
  active: "active";
25
24
  skipped: "skipped";
25
+ stopped: "stopped";
26
26
  initializing: "initializing";
27
27
  }>;
28
28
  /** Inferred union of all valid component lifecycle states. */
@@ -47,11 +47,11 @@ declare const ComponentInfoSchema: z.ZodObject<{
47
47
  name: z.ZodString;
48
48
  displayName: z.ZodString;
49
49
  state: z.ZodEnum<{
50
- discovered: "discovered";
51
50
  failed: "failed";
52
- stopped: "stopped";
51
+ discovered: "discovered";
53
52
  active: "active";
54
53
  skipped: "skipped";
54
+ stopped: "stopped";
55
55
  initializing: "initializing";
56
56
  }>;
57
57
  error: z.ZodOptional<z.ZodString>;
@@ -68,11 +68,11 @@ declare const ServiceInfoSchema: z.ZodObject<{
68
68
  name: z.ZodString;
69
69
  displayName: z.ZodString;
70
70
  state: z.ZodEnum<{
71
- discovered: "discovered";
72
71
  failed: "failed";
73
- stopped: "stopped";
72
+ discovered: "discovered";
74
73
  active: "active";
75
74
  skipped: "skipped";
75
+ stopped: "stopped";
76
76
  initializing: "initializing";
77
77
  }>;
78
78
  error: z.ZodOptional<z.ZodString>;
@@ -90,11 +90,11 @@ declare const ExtensionInfoSchema: z.ZodObject<{
90
90
  name: z.ZodString;
91
91
  displayName: z.ZodString;
92
92
  state: z.ZodEnum<{
93
- discovered: "discovered";
94
93
  failed: "failed";
95
- stopped: "stopped";
94
+ discovered: "discovered";
96
95
  active: "active";
97
96
  skipped: "skipped";
97
+ stopped: "stopped";
98
98
  initializing: "initializing";
99
99
  }>;
100
100
  error: z.ZodOptional<z.ZodString>;
@@ -227,19 +227,19 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
227
227
  name: z.ZodString;
228
228
  displayName: z.ZodString;
229
229
  from: z.ZodEnum<{
230
- discovered: "discovered";
231
230
  failed: "failed";
232
- stopped: "stopped";
231
+ discovered: "discovered";
233
232
  active: "active";
234
233
  skipped: "skipped";
234
+ stopped: "stopped";
235
235
  initializing: "initializing";
236
236
  }>;
237
237
  to: z.ZodEnum<{
238
- discovered: "discovered";
239
238
  failed: "failed";
240
- stopped: "stopped";
239
+ discovered: "discovered";
241
240
  active: "active";
242
241
  skipped: "skipped";
242
+ stopped: "stopped";
243
243
  initializing: "initializing";
244
244
  }>;
245
245
  error: z.ZodOptional<z.ZodString>;
@@ -270,11 +270,11 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
270
270
  name: z.ZodString;
271
271
  displayName: z.ZodString;
272
272
  state: z.ZodEnum<{
273
- discovered: "discovered";
274
273
  failed: "failed";
275
- stopped: "stopped";
274
+ discovered: "discovered";
276
275
  active: "active";
277
276
  skipped: "skipped";
277
+ stopped: "stopped";
278
278
  initializing: "initializing";
279
279
  }>;
280
280
  error: z.ZodOptional<z.ZodString>;
@@ -311,11 +311,11 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
311
311
  name: z.ZodString;
312
312
  displayName: z.ZodString;
313
313
  state: z.ZodEnum<{
314
- discovered: "discovered";
315
314
  failed: "failed";
316
- stopped: "stopped";
315
+ discovered: "discovered";
317
316
  active: "active";
318
317
  skipped: "skipped";
318
+ stopped: "stopped";
319
319
  initializing: "initializing";
320
320
  }>;
321
321
  error: z.ZodOptional<z.ZodString>;
@@ -838,19 +838,19 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
838
838
  name: z.ZodString;
839
839
  displayName: z.ZodString;
840
840
  from: z.ZodEnum<{
841
- discovered: "discovered";
842
841
  failed: "failed";
843
- stopped: "stopped";
842
+ discovered: "discovered";
844
843
  active: "active";
845
844
  skipped: "skipped";
845
+ stopped: "stopped";
846
846
  initializing: "initializing";
847
847
  }>;
848
848
  to: z.ZodEnum<{
849
- discovered: "discovered";
850
849
  failed: "failed";
851
- stopped: "stopped";
850
+ discovered: "discovered";
852
851
  active: "active";
853
852
  skipped: "skipped";
853
+ stopped: "stopped";
854
854
  initializing: "initializing";
855
855
  }>;
856
856
  error: z.ZodOptional<z.ZodString>;
@@ -881,11 +881,11 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
881
881
  name: z.ZodString;
882
882
  displayName: z.ZodString;
883
883
  state: z.ZodEnum<{
884
- discovered: "discovered";
885
884
  failed: "failed";
886
- stopped: "stopped";
885
+ discovered: "discovered";
887
886
  active: "active";
888
887
  skipped: "skipped";
888
+ stopped: "stopped";
889
889
  initializing: "initializing";
890
890
  }>;
891
891
  error: z.ZodOptional<z.ZodString>;
@@ -922,11 +922,11 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
922
922
  name: z.ZodString;
923
923
  displayName: z.ZodString;
924
924
  state: z.ZodEnum<{
925
- discovered: "discovered";
926
925
  failed: "failed";
927
- stopped: "stopped";
926
+ discovered: "discovered";
928
927
  active: "active";
929
928
  skipped: "skipped";
929
+ stopped: "stopped";
930
930
  initializing: "initializing";
931
931
  }>;
932
932
  error: z.ZodOptional<z.ZodString>;
@@ -1,3 +1,3 @@
1
- import { d as TransitionOutcome } from "../../index-BVN64wQx.mjs";
2
- import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-Bgz81LHZ.mjs";
1
+ import { d as TransitionOutcome } from "../../index-rkN_9bde.mjs";
2
+ import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-CEX9qfLa.mjs";
3
3
  export { ContributionProcessor, ExtensionConfigResolution, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionOperatorConfigError, ExtensionRuntimeSurface, InstalledExtensionCatalogSource, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, SetEnabledResult, TransitionOutcome, coalesceExtensionOverrides, filterEligibleExtensions, resolveInstalledExtensionRecord };
@@ -1,5 +1,5 @@
1
- import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-BVN64wQx.mjs";
2
- import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-Bgz81LHZ.mjs";
1
+ import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-rkN_9bde.mjs";
2
+ import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-CEX9qfLa.mjs";
3
3
  import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-1jI3f9ir.mjs";
4
4
  import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-62OoZLGr.mjs";
5
5
  import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-_OD_Nz3m.mjs";
@@ -1,2 +1,2 @@
1
- import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-BVN64wQx.mjs";
1
+ import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-rkN_9bde.mjs";
2
2
  export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, InstalledExtensionCatalogEntry, InstalledExtensionCatalogEntrySchema, InstalledExtensionOrigin, InstalledExtensionOriginSchema, InstalledExtensionRecord, InstalledExtensionRecordSchema, ServiceInfo, ServiceInfoSchema, SetEnabledReason, SetEnabledReasonSchema, TransitionOutcome, TransitionOutcomeSchema };
@@ -1 +1,4 @@
1
- import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-CHM0wMq4.mjs";import{z as i}from"zod";import{createBusNamespace as a}from"@makaio/framework/core";const o=i.enum([`link`,`summary`,`full`]),s=i.object({artifactId:i.string().min(1).optional(),url:i.string().min(1).optional(),label:i.string().min(1),sourceLocalId:n.shape.sourceLocalId}),c=i.object({id:i.string().min(1),kind:i.string().min(1),revision:i.string().min(1),status:i.string().min(1).optional()}),l=i.object({breadcrumbs:i.array(s),related:i.array(s)}),u=i.object({dashboard:i.string().min(1).optional(),materialized:i.string().min(1).optional()}),d=i.object({type:i.literal(`summary`),title:i.string().min(1),text:i.string().min(1)}),f=i.object({type:i.literal(`properties`),title:i.string().min(1),rows:i.array(i.object({label:i.string().min(1),value:i.string()}))}),p=i.object({type:i.literal(`table`),title:i.string().min(1),columns:i.array(i.string().min(1)),rows:i.array(i.object({cells:i.array(i.string()),link:s.optional()}))}),m=i.object({type:i.literal(`relations`),title:i.string().min(1),groups:i.array(i.object({type:i.string().min(1),items:i.array(s)}))}),h=i.object({type:i.literal(`evidence`),title:i.string().min(1),items:i.array(i.object({kind:i.string().min(1),id:i.string().min(1),locator:i.string().min(1).optional()}))}),g=i.object({type:i.literal(`raw`),title:i.string().min(1),json:t}),_=i.object({type:i.literal(`code`),title:i.string().min(1),language:i.string().min(1),content:i.string()}),v=i.object({type:i.literal(`diagram`),title:i.string().min(1),notation:i.literal(`mermaid`),source:i.string().min(1)}),y=i.discriminatedUnion(`type`,[d,f,p,m,h,g,_,v]),b=i.object({title:i.string().min(1),artifact:c,navigation:l,sections:i.array(y),links:u}),x=e,S=i.object({level:o,params:x.optional()}),C=i.object({kind:i.literal(`entry`),via:i.string().min(1).optional(),collection:i.string().min(1).optional()});function w(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:i.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const T=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1),as:o.optional()}),C.extend({title:i.string().min(1).optional(),hostRelation:i.string().min(1).optional()}).superRefine(w(`affordance`))]),E=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1)}),C.superRefine(w(`request`))]);function D(e){return e}const O=i.enum([`title`,`summary`]),k=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`label`),prefix:i.string().min(1).optional()}),i.object({kind:i.literal(`field`),name:i.string().min(1),fieldId:i.string().min(1).optional()}),i.object({kind:i.literal(`issue-type`),name:i.string().min(1),typeId:i.string().min(1).optional()}),i.object({kind:i.literal(`body-fragment`),slot:i.string().min(1)}),i.object({kind:i.literal(`comment`),template:i.string().min(1)})]),A=i.object({id:i.string().min(1),provider:i.string().min(1),namespace:i.string().min(1),target:k,appliesTo:i.array(i.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:i.record(i.string(),i.string()).optional(),description:i.string().min(1).optional(),params:e.optional()}),j=i.enum([`status`,`workflow`,`priority`]),M=i.object({path:i.string().min(1),semantic:j.optional(),fromLevel:o.optional(),viewRole:O.optional()}),N=i.object({mode:i.enum([`none`,`surface`,`comment`]),defaultRole:i.enum([`workpiece`,`artifact`]).optional(),semanticEvents:i.array(i.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:i.array(M).optional(),affordances:i.array(T).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,r=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&r++;n>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),r>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),P=i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),externalUrl:i.string().optional(),surfaceRole:i.enum([`workpiece`,`artifact`]),lastSyncedRevision:i.string().optional(),metadata:i.record(i.string(),i.unknown()).optional()}),F=S.extend({ref:r,affordance:E}),I=i.discriminatedUnion(`status`,[i.object({status:i.literal(`ok`),view:b,builderVersion:i.number().int().positive(),sourceRevision:i.string().min(1)}),i.object({status:i.literal(`artifact-not-found`),view:i.null()}),i.object({status:i.literal(`not-rendered`),view:i.null()})]),L={"surfaceBinding.register":{request:A,response:i.object({registered:i.boolean()})},"surfaceBinding.list":{request:i.object({id:i.string().min(1).optional(),provider:i.string().min(1).optional(),namespace:i.string().min(1).optional()}),response:i.object({bindings:i.array(A)})},"surfaceBinding.changed":i.object({id:i.string().min(1),provider:i.string().min(1)}),"ref.changed":i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),operation:i.enum([`upserted`,`deleted`]),origin:i.enum([`factory`,`external`]).optional()}),"capability.resolved":i.object({provider:i.string().min(1),surface:i.string().min(1),capabilities:i.record(i.string().min(1),i.boolean()),degraded:i.boolean()}),"artifact.view.resolve":{request:F,response:I}},R=a(`materialization`,L),z=R.subjects;function B(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}export{y as A,o as C,f as D,l as E,u as M,p as N,g as O,c as S,b as T,S as _,L as a,v as b,N as c,O as d,A as f,x as g,E as h,R as i,d as j,m as k,M as l,T as m,F as n,z as o,k as p,I as r,P as s,B as t,j as u,D as v,s as w,h as x,_ as y};
1
+ import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-CHM0wMq4.mjs";import{z as i}from"zod";import{createBusNamespace as a}from"@makaio/framework/core";const o=i.enum([`link`,`summary`,`full`]),s=i.object({artifactId:i.string().min(1).optional(),url:i.string().min(1).optional(),label:i.string().min(1),sourceLocalId:n.shape.sourceLocalId}),c=i.object({id:i.string().min(1),kind:i.string().min(1),revision:i.string().min(1),status:i.string().min(1).optional()}),l=i.object({breadcrumbs:i.array(s),related:i.array(s)}),u=i.object({dashboard:i.string().min(1).optional(),materialized:i.string().min(1).optional()}),d=i.object({type:i.literal(`summary`),title:i.string().min(1),text:i.string().min(1)}),f=i.object({type:i.literal(`properties`),title:i.string().min(1),rows:i.array(i.object({label:i.string().min(1),value:i.string()}))}),p=i.object({type:i.literal(`table`),title:i.string().min(1),columns:i.array(i.string().min(1)),rows:i.array(i.object({cells:i.array(i.string()),link:s.optional()}))}),m=i.object({type:i.literal(`relations`),title:i.string().min(1),groups:i.array(i.object({type:i.string().min(1),items:i.array(s)}))}),h=i.object({type:i.literal(`evidence`),title:i.string().min(1),items:i.array(i.object({kind:i.string().min(1),id:i.string().min(1),locator:i.string().min(1).optional()}))}),g=i.object({type:i.literal(`raw`),title:i.string().min(1),json:t}),_=i.object({type:i.literal(`code`),title:i.string().min(1),language:i.string().min(1),content:i.string()}),v=i.object({type:i.literal(`diagram`),title:i.string().min(1),notation:i.literal(`mermaid`),source:i.string().min(1)}),y=i.discriminatedUnion(`type`,[d,f,p,m,h,g,_,v]),b=i.object({title:i.string().min(1),artifact:c,navigation:l,sections:i.array(y),links:u}),x=e,S=i.object({level:o,params:x.optional()}),C=i.object({kind:i.literal(`entry`),via:i.string().min(1).optional(),collection:i.string().min(1).optional()});function w(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:i.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const T=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1),as:o.optional()}),C.extend({title:i.string().min(1).optional(),hostRelation:i.string().min(1).optional()}).superRefine(w(`affordance`))]),E=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1)}),C.superRefine(w(`request`))]);function D(e){return e}const O=i.enum([`title`,`summary`]),k=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`label`),prefix:i.string().min(1).optional()}),i.object({kind:i.literal(`field`),name:i.string().min(1),fieldId:i.string().min(1).optional()}),i.object({kind:i.literal(`issue-type`),name:i.string().min(1),typeId:i.string().min(1).optional()}),i.object({kind:i.literal(`body-fragment`),slot:i.string().min(1)}),i.object({kind:i.literal(`comment`),template:i.string().min(1)})]),A=i.object({id:i.string().min(1),provider:i.string().min(1),namespace:i.string().min(1),target:k,appliesTo:i.array(i.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:i.record(i.string(),i.string()).optional(),description:i.string().min(1).optional(),params:e.optional()}),j=i.enum([`status`,`workflow`,`priority`]),M=i.object({path:i.string().min(1),semantic:j.optional(),fromLevel:o.optional(),viewRole:O.optional()}),N=i.object({mode:i.enum([`none`,`surface`,`comment`]),defaultRole:i.enum([`workpiece`,`artifact`]).optional(),semanticEvents:i.array(i.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:i.array(M).optional(),affordances:i.array(T).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,r=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&r++;n>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),r>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),P=i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),externalUrl:i.string().optional(),surfaceRole:i.enum([`workpiece`,`artifact`]),lastSyncedRevision:i.string().optional(),metadata:i.record(i.string(),i.unknown()).optional()}),F=S.extend({ref:r,affordance:E}),I=i.discriminatedUnion(`status`,[i.object({status:i.literal(`ok`),view:b,builderVersion:i.number().int().positive(),sourceRevision:i.string().min(1)}),i.object({status:i.literal(`artifact-not-found`),view:i.null()}),i.object({status:i.literal(`not-rendered`),view:i.null()})]),L={"surfaceBinding.register":{request:A,response:i.object({registered:i.boolean()})},"surfaceBinding.list":{request:i.object({id:i.string().min(1).optional(),provider:i.string().min(1).optional(),namespace:i.string().min(1).optional()}),response:i.object({bindings:i.array(A)})},"surfaceBinding.changed":i.object({id:i.string().min(1),provider:i.string().min(1)}),"ref.changed":i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),operation:i.enum([`upserted`,`deleted`]),origin:i.enum([`factory`,`external`]).optional()}),"capability.resolved":i.object({provider:i.string().min(1),surface:i.string().min(1),capabilities:i.record(i.string().min(1),i.boolean()),degraded:i.boolean()}),"artifact.view.resolve":{request:F,response:I}},R=a(`materialization`,L),ee=R.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}const B=8;function V(e){let t=0,n=0;for(let r=0;r<e.length;r++)e[r]==="`"?(n++,n>t&&(t=n)):n=0;let r=Math.max(3,t+1);return"`".repeat(r)}function H(e){return e.replace(/`/g,``)}function U(e){return e.replace(/\]/g,`\\]`)}function W(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n),i=e[n];t+=r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||i===`-`?i:`%${r.toString(16).toUpperCase().padStart(4,`0`)}`}return t}function G(e){return e.replace(/\(/g,`%28`).replace(/\)/g,`%29`)}function K(e){let t=e.sourceLocalId?W(e.sourceLocalId):void 0,n=t?`${e.label} (from part: ${t})`:e.label;return e.url?`[${U(n)}](${G(e.url)})`:t?`${e.label} (from part: ${U(t)})`:n}function q(e){let t=[];if(e.breadcrumbs.length>0&&t.push(`**Breadcrumbs:** ${e.breadcrumbs.map(K).join(` › `)}`),e.related.length>0){t.length>0&&t.push(``),t.push(`**Related:**`);for(let n of e.related)t.push(`- ${K(n)}`)}return t}function J(e){return e.replace(/\|/g,`\\|`).replace(/[\r\n]+/g,` `)}function Y(e){return[`### ${e.title}`,``,e.text]}function X(e){let t=[`### ${e.title}`,``];for(let n of e.rows)n.value.length>0?t.push(`**${n.label}:** ${n.value}`):t.push(`**${n.label}:**`);return t}function Z(e){let t=[`### ${e.title}`,``],n=e.rows.some(e=>e.link!==void 0),r=e.columns.map(J);n&&r.push(``);let i=r.length;t.push(`| ${r.join(` | `)} |`),t.push(`| ${r.map(()=>`---`).join(` | `)} |`);for(let r of e.rows){let e=r.cells.map(J);for(n&&e.push(r.link?J(K(r.link)):``);e.length<i;)e.push(``);t.push(`| ${e.join(` | `)} |`)}return t}function Q(e){let t=[`### ${e.title}`,``];for(let n of e.groups){t.push(`**${n.type}**`,``);for(let e of n.items)t.push(`- ${K(e)}`);t.push(``)}return t}function te(e){let t=[`### ${e.title}`,``];for(let n of e.items){let e=n.locator?` (${n.locator})`:``;t.push(`- **${n.kind}:** ${n.id}${e}`)}return t}function $(e,t,n){let r=V(t);return[`### ${e}`,``,`${r}${H(n)}`,t,r]}function ne(e){return $(e.title,JSON.stringify(e.json,null,2),`json`)}function re(e){return $(e.title,e.content,e.language)}function ie(e){return $(e.title,e.source,e.notation)}function ae(e){switch(e.type){case`summary`:return Y(e);case`properties`:return X(e);case`table`:return Z(e);case`relations`:return Q(e);case`evidence`:return te(e);case`raw`:return ne(e);case`code`:return re(e);case`diagram`:return ie(e)}}function oe(e,t={}){let n=[];t.includeTitle!==!1&&n.push([`## ${e.title}`]);let r=q(e.navigation);r.length>0&&n.push(r);for(let t of e.sections)n.push(ae(t));return n.map(e=>e.join(`
2
+ `)).join(`
3
+
4
+ `)}export{g as A,h as C,b as D,s as E,p as F,y as M,d as N,l as O,u as P,v as S,o as T,E as _,I as a,D as b,ee as c,M as d,j as f,T as g,k as h,F as i,m as j,f as k,P as l,A as m,oe as n,R as o,O as p,z as r,L as s,B as t,N as u,x as v,c as w,_ as x,S as y};
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
585
585
  type: _$zod.ZodLiteral<"locality.degraded">;
586
586
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
587
587
  intent: _$zod.ZodEnum<{
588
- fork: "fork";
589
588
  resume: "resume";
589
+ fork: "fork";
590
590
  }>;
591
591
  verdictKind: _$zod.ZodLiteral<"degrade">;
592
592
  reason: _$zod.ZodEnum<{
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
611
611
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
612
612
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
613
613
  intent: _$zod.ZodEnum<{
614
- fork: "fork";
615
614
  resume: "resume";
615
+ fork: "fork";
616
616
  }>;
617
617
  verdictKind: _$zod.ZodLiteral<"foreign">;
618
618
  foreignMachineId: _$zod.ZodString;
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
967
967
  type: _$zod.ZodLiteral<"locality.degraded">;
968
968
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
969
969
  intent: _$zod.ZodEnum<{
970
- fork: "fork";
971
970
  resume: "resume";
971
+ fork: "fork";
972
972
  }>;
973
973
  verdictKind: _$zod.ZodLiteral<"degrade">;
974
974
  reason: _$zod.ZodEnum<{
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
993
993
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
994
994
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
995
995
  intent: _$zod.ZodEnum<{
996
- fork: "fork";
997
996
  resume: "resume";
997
+ fork: "fork";
998
998
  }>;
999
999
  verdictKind: _$zod.ZodLiteral<"foreign">;
1000
1000
  foreignMachineId: _$zod.ZodString;
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
1339
1339
  type: _$zod.ZodLiteral<"locality.degraded">;
1340
1340
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1341
1341
  intent: _$zod.ZodEnum<{
1342
- fork: "fork";
1343
1342
  resume: "resume";
1343
+ fork: "fork";
1344
1344
  }>;
1345
1345
  verdictKind: _$zod.ZodLiteral<"degrade">;
1346
1346
  reason: _$zod.ZodEnum<{
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
1365
1365
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1366
1366
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1367
1367
  intent: _$zod.ZodEnum<{
1368
- fork: "fork";
1369
1368
  resume: "resume";
1369
+ fork: "fork";
1370
1370
  }>;
1371
1371
  verdictKind: _$zod.ZodLiteral<"foreign">;
1372
1372
  foreignMachineId: _$zod.ZodString;
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
1719
1719
  type: _$zod.ZodLiteral<"locality.degraded">;
1720
1720
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1721
1721
  intent: _$zod.ZodEnum<{
1722
- fork: "fork";
1723
1722
  resume: "resume";
1723
+ fork: "fork";
1724
1724
  }>;
1725
1725
  verdictKind: _$zod.ZodLiteral<"degrade">;
1726
1726
  reason: _$zod.ZodEnum<{
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
1745
1745
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1746
1746
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1747
1747
  intent: _$zod.ZodEnum<{
1748
- fork: "fork";
1749
1748
  resume: "resume";
1749
+ fork: "fork";
1750
1750
  }>;
1751
1751
  verdictKind: _$zod.ZodLiteral<"foreign">;
1752
1752
  foreignMachineId: _$zod.ZodString;
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
2087
2087
  type: _$zod.ZodLiteral<"locality.degraded">;
2088
2088
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2089
2089
  intent: _$zod.ZodEnum<{
2090
- fork: "fork";
2091
2090
  resume: "resume";
2091
+ fork: "fork";
2092
2092
  }>;
2093
2093
  verdictKind: _$zod.ZodLiteral<"degrade">;
2094
2094
  reason: _$zod.ZodEnum<{
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
2113
2113
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2114
2114
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2115
2115
  intent: _$zod.ZodEnum<{
2116
- fork: "fork";
2117
2116
  resume: "resume";
2117
+ fork: "fork";
2118
2118
  }>;
2119
2119
  verdictKind: _$zod.ZodLiteral<"foreign">;
2120
2120
  foreignMachineId: _$zod.ZodString;
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
2469
2469
  type: _$zod.ZodLiteral<"locality.degraded">;
2470
2470
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2471
2471
  intent: _$zod.ZodEnum<{
2472
- fork: "fork";
2473
2472
  resume: "resume";
2473
+ fork: "fork";
2474
2474
  }>;
2475
2475
  verdictKind: _$zod.ZodLiteral<"degrade">;
2476
2476
  reason: _$zod.ZodEnum<{
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
2495
2495
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2496
2496
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2497
2497
  intent: _$zod.ZodEnum<{
2498
- fork: "fork";
2499
2498
  resume: "resume";
2499
+ fork: "fork";
2500
2500
  }>;
2501
2501
  verdictKind: _$zod.ZodLiteral<"foreign">;
2502
2502
  foreignMachineId: _$zod.ZodString;
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
2841
2841
  type: _$zod.ZodLiteral<"locality.degraded">;
2842
2842
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2843
2843
  intent: _$zod.ZodEnum<{
2844
- fork: "fork";
2845
2844
  resume: "resume";
2845
+ fork: "fork";
2846
2846
  }>;
2847
2847
  verdictKind: _$zod.ZodLiteral<"degrade">;
2848
2848
  reason: _$zod.ZodEnum<{
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
2867
2867
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2868
2868
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2869
2869
  intent: _$zod.ZodEnum<{
2870
- fork: "fork";
2871
2870
  resume: "resume";
2871
+ fork: "fork";
2872
2872
  }>;
2873
2873
  verdictKind: _$zod.ZodLiteral<"foreign">;
2874
2874
  foreignMachineId: _$zod.ZodString;
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
3221
3221
  type: _$zod.ZodLiteral<"locality.degraded">;
3222
3222
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3223
3223
  intent: _$zod.ZodEnum<{
3224
- fork: "fork";
3225
3224
  resume: "resume";
3225
+ fork: "fork";
3226
3226
  }>;
3227
3227
  verdictKind: _$zod.ZodLiteral<"degrade">;
3228
3228
  reason: _$zod.ZodEnum<{
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
3247
3247
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3248
3248
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3249
3249
  intent: _$zod.ZodEnum<{
3250
- fork: "fork";
3251
3250
  resume: "resume";
3251
+ fork: "fork";
3252
3252
  }>;
3253
3253
  verdictKind: _$zod.ZodLiteral<"foreign">;
3254
3254
  foreignMachineId: _$zod.ZodString;
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
3537
3537
  timestamp: number;
3538
3538
  type: "locality.degraded";
3539
3539
  payload: {
3540
- intent: "fork" | "resume";
3540
+ intent: "resume" | "fork";
3541
3541
  verdictKind: "degrade";
3542
3542
  reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
3543
3543
  agentId?: string | undefined;
3544
3544
  adapterId?: string | undefined;
3545
3545
  turnId?: string | undefined;
3546
3546
  } | {
3547
- intent: "fork" | "resume";
3547
+ intent: "resume" | "fork";
3548
3548
  verdictKind: "foreign";
3549
3549
  foreignMachineId: string;
3550
3550
  agentId?: string | undefined;
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
335
335
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
336
336
  }, _$zod_v4_core0.$strip>], "type">>;
337
337
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
338
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
339
338
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
339
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
340
340
  timestamp: _$zod.ZodNumber;
341
341
  contentText: _$zod.ZodString;
342
342
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
1120
1120
  isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
1121
1121
  }, _$zod_v4_core0.$strip>], "type">>;
1122
1122
  agentId: _$zod.ZodOptional<_$zod.ZodString>;
1123
- turnId: _$zod.ZodNullable<_$zod.ZodString>;
1124
1123
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1124
+ turnId: _$zod.ZodNullable<_$zod.ZodString>;
1125
1125
  timestamp: _$zod.ZodNumber;
1126
1126
  contentText: _$zod.ZodString;
1127
1127
  adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2030,10 +2030,10 @@ declare const MessageStorageNamespace$1: {
2030
2030
  })[];
2031
2031
  messageId: string;
2032
2032
  agentId: never;
2033
- turnId: string | null;
2034
2033
  adapterSessionId: never;
2035
- timestamp: number;
2034
+ turnId: string | null;
2036
2035
  limit: never;
2036
+ timestamp: number;
2037
2037
  query: string;
2038
2038
  contentText: string;
2039
2039
  adapterMessageId: string;
@@ -67,8 +67,8 @@ declare const ExecutionTargetNamespace: _$_makaio_core0.BusNamespaceDefinition<"
67
67
  name: _$zod.ZodString;
68
68
  image: _$zod.ZodOptional<_$zod.ZodString>;
69
69
  enabled: _$zod.ZodBoolean;
70
- scope: _$zod.ZodString;
71
70
  busUrl: _$zod.ZodOptional<_$zod.ZodString>;
71
+ scope: _$zod.ZodString;
72
72
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
73
73
  type: _$zod.ZodLiteral<"container-isolated">;
74
74
  id: _$zod.ZodString;
@@ -338,8 +338,8 @@ declare const ExecutionTargetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
338
338
  name: _$zod.ZodString;
339
339
  image: _$zod.ZodOptional<_$zod.ZodString>;
340
340
  enabled: _$zod.ZodBoolean;
341
- scope: _$zod.ZodString;
342
341
  busUrl: _$zod.ZodOptional<_$zod.ZodString>;
342
+ scope: _$zod.ZodString;
343
343
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
344
344
  type: _$zod.ZodLiteral<"container-isolated">;
345
345
  id: _$zod.ZodString;
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
47
47
  teardownCompleted: _$zod.ZodObject<{
48
48
  evidence: _$zod.ZodEnum<{
49
49
  unknown: "unknown";
50
- exited: "exited";
51
50
  closed: "closed";
51
+ exited: "exited";
52
52
  released: "released";
53
53
  detached: "detached";
54
54
  }>;
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
100
100
  teardownCompleted: _$zod.ZodObject<{
101
101
  evidence: _$zod.ZodEnum<{
102
102
  unknown: "unknown";
103
- exited: "exited";
104
103
  closed: "closed";
104
+ exited: "exited";
105
105
  released: "released";
106
106
  detached: "detached";
107
107
  }>;
@@ -15,8 +15,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
15
15
  config: _$zod.ZodNullable<_$zod.ZodObject<{
16
16
  description: _$zod.ZodOptional<_$zod.ZodString>;
17
17
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
18
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
19
18
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
19
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
20
20
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
21
21
  label: _$zod.ZodString;
22
22
  url: _$zod.ZodString;
@@ -40,8 +40,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
40
40
  configs: _$zod.ZodArray<_$zod.ZodObject<{
41
41
  description: _$zod.ZodOptional<_$zod.ZodString>;
42
42
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
43
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
44
43
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
44
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
45
45
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
46
46
  label: _$zod.ZodString;
47
47
  url: _$zod.ZodString;
@@ -1651,8 +1651,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
1651
1651
  config: _$zod.ZodObject<{
1652
1652
  description: _$zod.ZodOptional<_$zod.ZodString>;
1653
1653
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1654
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1655
1654
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1655
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1656
1656
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1657
1657
  label: _$zod.ZodString;
1658
1658
  url: _$zod.ZodString;
@@ -1876,8 +1876,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1876
1876
  config: _$zod.ZodNullable<_$zod.ZodObject<{
1877
1877
  description: _$zod.ZodOptional<_$zod.ZodString>;
1878
1878
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1879
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1880
1879
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1880
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1881
1881
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1882
1882
  label: _$zod.ZodString;
1883
1883
  url: _$zod.ZodString;
@@ -1901,8 +1901,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1901
1901
  configs: _$zod.ZodArray<_$zod.ZodObject<{
1902
1902
  description: _$zod.ZodOptional<_$zod.ZodString>;
1903
1903
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1904
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1905
1904
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1905
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1906
1906
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1907
1907
  label: _$zod.ZodString;
1908
1908
  url: _$zod.ZodString;
@@ -3512,8 +3512,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
3512
3512
  config: _$zod.ZodObject<{
3513
3513
  description: _$zod.ZodOptional<_$zod.ZodString>;
3514
3514
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
3515
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
3516
3515
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3516
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
3517
3517
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
3518
3518
  label: _$zod.ZodString;
3519
3519
  url: _$zod.ZodString;
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@makaio/framework",
3
- "version": "1.0.0-dev-1790175294701",
3
+ "version": "1.0.0-dev-1790248497521",
4
4
  "type": "module"
5
5
  }
@@ -102,8 +102,8 @@ declare const ExecutionTargetInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
102
102
  name: z.ZodString;
103
103
  image: z.ZodOptional<z.ZodString>;
104
104
  enabled: z.ZodBoolean;
105
- scope: z.ZodString;
106
105
  busUrl: z.ZodOptional<z.ZodString>;
106
+ scope: z.ZodString;
107
107
  }, z.core.$strip>, z.ZodObject<{
108
108
  type: z.ZodLiteral<"container-isolated">;
109
109
  id: z.ZodString;
@@ -205,8 +205,8 @@ declare const ExecutionTargetSchemas: {
205
205
  name: z.ZodString;
206
206
  image: z.ZodOptional<z.ZodString>;
207
207
  enabled: z.ZodBoolean;
208
- scope: z.ZodString;
209
208
  busUrl: z.ZodOptional<z.ZodString>;
209
+ scope: z.ZodString;
210
210
  }, z.core.$strip>, z.ZodObject<{
211
211
  type: z.ZodLiteral<"container-isolated">;
212
212
  id: z.ZodString;
@@ -143,8 +143,8 @@ declare const AdapterRuntimeSchemas: {
143
143
  teardownCompleted: z.ZodObject<{
144
144
  evidence: z.ZodEnum<{
145
145
  unknown: "unknown";
146
- exited: "exited";
147
146
  closed: "closed";
147
+ exited: "exited";
148
148
  released: "released";
149
149
  detached: "detached";
150
150
  }>;