@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
@@ -596,15 +596,31 @@ type ArtifactContextKnownRenderHint = (typeof ARTIFACT_CONTEXT_RENDER_HINTS)[num
596
596
  * a contract change.
597
597
  */
598
598
  type ArtifactContextRenderHint = ArtifactContextKnownRenderHint | (string & {});
599
+ /** Traversal direction of a relation selector. */
600
+ declare const ARTIFACT_CONTEXT_RELATION_DIRECTIONS: readonly ["outbound", "inbound"];
599
601
  /**
600
- * Per-relation selector controlling which outbound relations to follow
601
- * and how to render the resolved context.
602
+ * Direction in which a relation selector follows relations of the given type.
603
+ *
604
+ * - `outbound` (default) follows relations stored on the walked artifact.
605
+ * - `inbound` selects the current revisions of artifacts whose relations of
606
+ * this type point at the walked artifact's identity (kind + id).
607
+ */
608
+ type ArtifactContextRelationDirection = (typeof ARTIFACT_CONTEXT_RELATION_DIRECTIONS)[number];
609
+ /**
610
+ * Per-relation selector controlling which relations to follow and how to
611
+ * render the resolved context.
602
612
  */
603
613
  interface ArtifactContextRelationSelector {
614
+ /** Restrict to these kinds of the artifact on the far side of the relation. */
604
615
  readonly kinds?: readonly string[];
616
+ /** Render hint for the resolved entries. */
605
617
  readonly hint?: ArtifactContextRenderHint;
618
+ /** Traversal depth along this relation type (defaults to 1). */
606
619
  readonly depth?: number;
620
+ /** Selectors applied to the artifacts reached through this relation. */
607
621
  readonly nested?: ArtifactContextSelector$1;
622
+ /** Direction to follow; defaults to `outbound`. */
623
+ readonly direction?: ArtifactContextRelationDirection;
608
624
  }
609
625
  /**
610
626
  * Map from relation type to per-relation selector.
@@ -615,12 +631,37 @@ interface ArtifactContextRelationSelector {
615
631
  type ArtifactContextSelector$1 = Readonly<Record<string, ArtifactContextRelationSelector>>;
616
632
  /** Runtime schema for render hint strings. Accepts any non-empty string. */
617
633
  declare const ArtifactContextRenderHintSchema: z.ZodString;
634
+ /** Runtime schema for relation traversal directions. */
635
+ declare const ArtifactContextRelationDirectionSchema: z.ZodEnum<{
636
+ outbound: "outbound";
637
+ inbound: "inbound";
638
+ }>;
618
639
  /** Runtime schema for per-relation selectors. */
619
640
  declare const ArtifactContextRelationSelectorSchema: z.ZodType<ArtifactContextRelationSelector, ArtifactContextRelationSelector>;
620
641
  /** Runtime schema for selector maps keyed by relation type. */
621
642
  declare const ArtifactContextSelectorSchema: z.ZodType<ArtifactContextSelector$1, ArtifactContextSelector$1>;
622
643
  //#endregion
623
644
  //#region core/contracts/src/artifact/context-resolution.d.ts
645
+ interface ArtifactRevisionKeyFields {
646
+ /** Artifact kind discriminator. */
647
+ kind: string;
648
+ /** Stable artifact identity. */
649
+ id: string;
650
+ /** Artifact revision identity. */
651
+ revision: string;
652
+ }
653
+ /**
654
+ * Creates a collision-safe key identifying one artifact revision.
655
+ *
656
+ * The key is the JSON encoding of the `[kind, id, revision]` tuple, so field
657
+ * values containing separator characters cannot collide. Use it wherever
658
+ * artifact refs must be matched against revision payloads (for example the
659
+ * `resolved` pool of a {@link ResolvedArtifactContextWire}) so producers and
660
+ * readers of the context wire format agree on revision identity.
661
+ * @param ref - Artifact reference or revision fields to identify; only `kind`, `id`, and `revision` are read.
662
+ * @returns Stable key for the artifact revision identity.
663
+ */
664
+ declare function artifactRevisionKey(ref: ArtifactRevisionKeyFields): string;
624
665
  /**
625
666
  * Reasons why a relation target was not resolved during context resolution.
626
667
  *
@@ -638,8 +679,11 @@ type ArtifactContextUnresolvedReason = z.infer<typeof ArtifactContextUnresolvedR
638
679
  /**
639
680
  * A single entry in the normalized artifact context wire format.
640
681
  *
641
- * Each entry records one outbound relation from a source artifact to a
642
- * target, along with resolution status and the render hint used.
682
+ * Each entry records one traversal edge from the walked artifact
683
+ * (`sourceRef`) to a `target`, along with resolution status and the render
684
+ * hint used. For the default outbound direction the edge is the stored
685
+ * relation itself. For an inbound edge the stored relation lives on the
686
+ * target and points back at `sourceRef`'s identity; `direction` marks this.
643
687
  */
644
688
  declare const ArtifactContextRefEntrySchema: z.ZodObject<{
645
689
  target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -675,6 +719,10 @@ declare const ArtifactContextRefEntrySchema: z.ZodObject<{
675
719
  }, z.core.$strict>;
676
720
  relationType: z.ZodString;
677
721
  sourceLocalId: z.ZodOptional<z.ZodString>;
722
+ direction: z.ZodOptional<z.ZodEnum<{
723
+ outbound: "outbound";
724
+ inbound: "inbound";
725
+ }>>;
678
726
  hint: z.ZodString;
679
727
  status: z.ZodEnum<{
680
728
  resolved: "resolved";
@@ -738,6 +786,10 @@ declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
738
786
  }, z.core.$strict>;
739
787
  relationType: z.ZodString;
740
788
  sourceLocalId: z.ZodOptional<z.ZodString>;
789
+ direction: z.ZodOptional<z.ZodEnum<{
790
+ outbound: "outbound";
791
+ inbound: "inbound";
792
+ }>>;
741
793
  hint: z.ZodString;
742
794
  status: z.ZodEnum<{
743
795
  resolved: "resolved";
@@ -925,7 +977,7 @@ interface ResolvedArtifactContextNodeBase {
925
977
  readonly artifact: ArtifactRevision$1;
926
978
  /** Render hint applied to this node. */
927
979
  readonly hint: ArtifactContextRenderHint;
928
- /** Child nodes from this artifact's outbound relations. */
980
+ /** Child nodes reached through this artifact's selected relations. */
929
981
  readonly children: readonly ArtifactContextNode[];
930
982
  }
931
983
  /** The resolved root node; it has no parent relation. */
@@ -934,8 +986,14 @@ type ArtifactContextRootNode = ResolvedArtifactContextNodeBase;
934
986
  interface ResolvedArtifactContextNode extends ResolvedArtifactContextNodeBase {
935
987
  /** Relation type that led to this node from its parent. */
936
988
  readonly relation: string;
937
- /** Optional local identifier of the parent part that owns this relation. */
989
+ /** Optional local identifier of the part that owns the stored relation. */
938
990
  readonly sourceLocalId?: string;
991
+ /**
992
+ * Direction of the stored relation relative to the parent; absent means outbound.
993
+ * Producers omit the field for outbound edges; readers must treat an absent
994
+ * value and `'outbound'` alike.
995
+ */
996
+ readonly direction?: ArtifactContextRelationDirection;
939
997
  }
940
998
  /** An unresolved node representing a relation that could not be followed. */
941
999
  interface UnresolvedArtifactContextNode {
@@ -944,8 +1002,14 @@ interface UnresolvedArtifactContextNode {
944
1002
  readonly target: ArtifactRelationTarget;
945
1003
  /** Relation type that led to this node from its parent. */
946
1004
  readonly relation: string;
947
- /** Optional local identifier of the parent part that owns this relation. */
1005
+ /** Optional local identifier of the part that owns the stored relation. */
948
1006
  readonly sourceLocalId?: string;
1007
+ /**
1008
+ * Direction of the stored relation relative to the parent; absent means outbound.
1009
+ * Producers omit the field for outbound edges; readers must treat an absent
1010
+ * value and `'outbound'` alike.
1011
+ */
1012
+ readonly direction?: ArtifactContextRelationDirection;
949
1013
  /** Render hint applied to this node. */
950
1014
  readonly hint: ArtifactContextRenderHint;
951
1015
  /** Reason the target was not resolved. */
@@ -1205,6 +1269,7 @@ declare const ArtifactSchemas$1: {
1205
1269
  request: z.ZodObject<{
1206
1270
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1207
1271
  kind: z.ZodString;
1272
+ createdAt: z.ZodOptional<z.ZodNumber>;
1208
1273
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1209
1274
  source: z.ZodObject<{
1210
1275
  kind: z.ZodLiteral<"git-file">;
@@ -1252,7 +1317,6 @@ declare const ArtifactSchemas$1: {
1252
1317
  }, z.core.$strict>]>;
1253
1318
  excerpt: z.ZodOptional<z.ZodString>;
1254
1319
  }, z.core.$strict>]>>>;
1255
- createdAt: z.ZodOptional<z.ZodNumber>;
1256
1320
  schemaVersion: z.ZodNumber;
1257
1321
  scope: z.ZodObject<{
1258
1322
  level: z.ZodString;
@@ -1501,6 +1565,7 @@ declare const ArtifactSchemas$1: {
1501
1565
  revision: z.ZodObject<{
1502
1566
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1503
1567
  kind: z.ZodString;
1568
+ createdAt: z.ZodOptional<z.ZodNumber>;
1504
1569
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1505
1570
  source: z.ZodObject<{
1506
1571
  kind: z.ZodLiteral<"git-file">;
@@ -1548,7 +1613,6 @@ declare const ArtifactSchemas$1: {
1548
1613
  }, z.core.$strict>]>;
1549
1614
  excerpt: z.ZodOptional<z.ZodString>;
1550
1615
  }, z.core.$strict>]>>>;
1551
- createdAt: z.ZodOptional<z.ZodNumber>;
1552
1616
  schemaVersion: z.ZodNumber;
1553
1617
  scope: z.ZodObject<{
1554
1618
  level: z.ZodString;
@@ -2779,6 +2843,10 @@ declare const ArtifactSchemas$1: {
2779
2843
  }, z.core.$strict>;
2780
2844
  relationType: z.ZodString;
2781
2845
  sourceLocalId: z.ZodOptional<z.ZodString>;
2846
+ direction: z.ZodOptional<z.ZodEnum<{
2847
+ outbound: "outbound";
2848
+ inbound: "inbound";
2849
+ }>>;
2782
2850
  hint: z.ZodString;
2783
2851
  status: z.ZodEnum<{
2784
2852
  resolved: "resolved";
@@ -3993,6 +4061,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3993
4061
  request: z.ZodObject<{
3994
4062
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
3995
4063
  kind: z.ZodString;
4064
+ createdAt: z.ZodOptional<z.ZodNumber>;
3996
4065
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3997
4066
  source: z.ZodObject<{
3998
4067
  kind: z.ZodLiteral<"git-file">;
@@ -4040,7 +4109,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4040
4109
  }, z.core.$strict>]>;
4041
4110
  excerpt: z.ZodOptional<z.ZodString>;
4042
4111
  }, z.core.$strict>]>>>;
4043
- createdAt: z.ZodOptional<z.ZodNumber>;
4044
4112
  schemaVersion: z.ZodNumber;
4045
4113
  scope: z.ZodObject<{
4046
4114
  level: z.ZodString;
@@ -4289,6 +4357,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4289
4357
  revision: z.ZodObject<{
4290
4358
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4291
4359
  kind: z.ZodString;
4360
+ createdAt: z.ZodOptional<z.ZodNumber>;
4292
4361
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4293
4362
  source: z.ZodObject<{
4294
4363
  kind: z.ZodLiteral<"git-file">;
@@ -4336,7 +4405,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4336
4405
  }, z.core.$strict>]>;
4337
4406
  excerpt: z.ZodOptional<z.ZodString>;
4338
4407
  }, z.core.$strict>]>>>;
4339
- createdAt: z.ZodOptional<z.ZodNumber>;
4340
4408
  schemaVersion: z.ZodNumber;
4341
4409
  scope: z.ZodObject<{
4342
4410
  level: z.ZodString;
@@ -5567,6 +5635,10 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
5567
5635
  }, z.core.$strict>;
5568
5636
  relationType: z.ZodString;
5569
5637
  sourceLocalId: z.ZodOptional<z.ZodString>;
5638
+ direction: z.ZodOptional<z.ZodEnum<{
5639
+ outbound: "outbound";
5640
+ inbound: "inbound";
5641
+ }>>;
5570
5642
  hint: z.ZodString;
5571
5643
  status: z.ZodEnum<{
5572
5644
  resolved: "resolved";
@@ -6803,6 +6875,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
6803
6875
  request: z.ZodObject<{
6804
6876
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
6805
6877
  kind: z.ZodString;
6878
+ createdAt: z.ZodOptional<z.ZodNumber>;
6806
6879
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
6807
6880
  source: z.ZodObject<{
6808
6881
  kind: z.ZodLiteral<"git-file">;
@@ -6850,7 +6923,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
6850
6923
  }, z.core.$strict>]>;
6851
6924
  excerpt: z.ZodOptional<z.ZodString>;
6852
6925
  }, z.core.$strict>]>>>;
6853
- createdAt: z.ZodOptional<z.ZodNumber>;
6854
6926
  schemaVersion: z.ZodNumber;
6855
6927
  scope: z.ZodObject<{
6856
6928
  level: z.ZodString;
@@ -7099,6 +7171,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7099
7171
  revision: z.ZodObject<{
7100
7172
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
7101
7173
  kind: z.ZodString;
7174
+ createdAt: z.ZodOptional<z.ZodNumber>;
7102
7175
  evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
7103
7176
  source: z.ZodObject<{
7104
7177
  kind: z.ZodLiteral<"git-file">;
@@ -7146,7 +7219,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7146
7219
  }, z.core.$strict>]>;
7147
7220
  excerpt: z.ZodOptional<z.ZodString>;
7148
7221
  }, z.core.$strict>]>>>;
7149
- createdAt: z.ZodOptional<z.ZodNumber>;
7150
7222
  schemaVersion: z.ZodNumber;
7151
7223
  scope: z.ZodObject<{
7152
7224
  level: z.ZodString;
@@ -8377,6 +8449,10 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
8377
8449
  }, z.core.$strict>;
8378
8450
  relationType: z.ZodString;
8379
8451
  sourceLocalId: z.ZodOptional<z.ZodString>;
8452
+ direction: z.ZodOptional<z.ZodEnum<{
8453
+ outbound: "outbound";
8454
+ inbound: "inbound";
8455
+ }>>;
8380
8456
  hint: z.ZodString;
8381
8457
  status: z.ZodEnum<{
8382
8458
  resolved: "resolved";
@@ -12009,4 +12085,4 @@ declare function buildUniquenessKeys(rules: readonly ArtifactUniquenessRule[], r
12009
12085
  */
12010
12086
  declare function describeUniquenessKey(key: UniquenessKey): string;
12011
12087
  //#endregion
12012
- export { ArtifactLifecycleTransitionedEntry as $, ArtifactContextSelector$1 as $n, isArtifactDataPathDeclared as $t, ArtifactLifecycleSchemas as A, ArtifactSubjects$1 as An, EvidenceResolveResponseSchema as Ar, ArtifactPatchSegment as At, ArtifactLifecycleIdentitySchema as B, UnresolvedArtifactContextNode as Bn, ARTIFACT_RESOLVE_PART_ERROR_CODES as Bt, ArtifactLifecycleGetResponseSchema as C, ArtifactResolveRequest as Cn, defineArtifactLifecycleHooks as Cr, ArtifactPatchOperator as Ct, ArtifactLifecycleHistoryResponseSchema as D, ArtifactRevisedPayload as Dn, EvidenceResolveRequest as Dr, ArtifactPatchRequestSchema as Dt, ArtifactLifecycleHistoryResponse as E, ArtifactReviseResponse as En, extractEvidenceOccurrences as Er, ArtifactPatchRequest as Et, ArtifactLifecycleCurrent as F, hydrateArtifactContextTree as Fn, artifactPatchFilterName as Ft, ArtifactLifecycleSituation as G, ResolvedArtifactContextWire$1 as Gn, ArtifactResolvePartErrorSchema as Gt, ArtifactLifecycleInitializedEntrySchema as H, ArtifactContextRefEntrySchema as Hn, ArtifactRelationSourceIssue as Ht, ArtifactLifecycleCurrentSchema as I, ArtifactContextNode as In, artifactPatchInstructions as It, ArtifactLifecycleSnapshotSchema as J, ArtifactContextKnownRenderHint as Jn, resolveArtifactPart as Jt, ArtifactLifecycleSituationSchema as K, ResolvedArtifactContextWireSchema as Kn, checkArtifactPartIds as Kt, ArtifactLifecycleError as L, ArtifactContextRootNode as Ln, artifactPatchPathFilterNames as Lt, ArtifactLifecycleTransitionResponseSchema as M, ArtifactResolvePartRequestSchema as Mn, EVIDENCE_VALUE_TYPE as Mr, ArtifactPatchSuccessSchema as Mt, toArtifactLifecycleFailure as N, ArtifactResolvePartResponse as Nn, EvidenceValue$1 as Nr, ArtifactPatchTarget as Nt, ArtifactLifecycleRejectedPayload as O, ArtifactSchemas$1 as On, EvidenceResolveRequestSchema as Or, ArtifactPatchResponse as Ot, ARTIFACT_LIFECYCLE_REJECTED_CODE as P, ArtifactResolvePartResponseSchema as Pn, EvidenceValueSchema$1 as Pr, ArtifactPatchTargetSchema as Pt, ArtifactLifecycleTransitionIntentSchema as Q, ArtifactContextRenderHintSchema as Qn, inspectArtifactDataLocation as Qt, ArtifactLifecycleHistoryEntry as R, ArtifactContextTree as Rn, artifactPatchSegment as Rt, ArtifactLifecycleGetResponse as S, ArtifactResolveContextResponse as Sn, BeforeArtifactHookRegistration as Sr, ArtifactPatchOperationResultSchema as St, ArtifactLifecycleHistoryRequestSchema as T, ArtifactReviseRequest as Tn, EvidenceOccurrenceExtractionOptions as Tr, ArtifactPatchPersistedSchema as Tt, ArtifactLifecycleRejection as U, ArtifactContextUnresolvedReason as Un, ArtifactResolvePartError as Ut, ArtifactLifecycleInitializedEntry as V, ArtifactContextRefEntry as Vn, ArtifactPartResolution as Vt, ArtifactLifecycleRejectionSchema as W, ArtifactContextUnresolvedReasonSchema as Wn, ArtifactResolvePartErrorCode as Wt, ArtifactLifecycleTransitionCommandSchema as X, ArtifactContextRelationSelectorSchema as Xn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Xt, ArtifactLifecycleTransitionCommand as Y, ArtifactContextRelationSelector as Yn, validateArtifactPartAreas as Yt, ArtifactLifecycleTransitionIntent as Z, ArtifactContextRenderHint as Zn, ArtifactSchemaFragment as Zt, ArtifactLifecycleCommittedPayloadSchema as _, ArtifactRelationTypeListRequest as _n, ArtifactLifecycleHookDefinition as _r, ArtifactPatchIssue as _t, UniquenessKeyPart as a, ArtifactEvidenceResolveResponse$1 as an, compileArtifactDataChecker as ar, ARTIFACT_PATCH_ERROR_CODES as at, ArtifactLifecycleGetRequest as b, ArtifactRelationTypeRegisterResponse as bn, ArtifactLifecycleSemanticEvent as br, ArtifactPatchMigrationSchema as bt, assessUniquenessSupport as c, ArtifactKindListResponse as cn, ArtifactDataOf as cr, ArtifactPatchArrayFilterSchema as ct, ArtifactRelationTargetIdentity as d, ArtifactNamespace as dn, defineArtifactKind as dr, ArtifactPatchDryRunSchema as dt, readArtifactTitle as en, ArtifactContextSelectorSchema as er, ArtifactLifecycleTransitionedEntrySchema as et, ArtifactRelationTargetIdentitySchema as f, ArtifactObservationAddedPayload as fn, AfterArtifactHookContext as fr, ArtifactPatchError as ft, ArtifactLifecycleCommittedPayload as g, ArtifactRelationAddedPayload as gn, ArtifactHookFilter as gr, ArtifactPatchInstruction as gt, serializeArtifactRelationTargetIdentity as h, ArtifactQueryResponse as hn, ArtifactDraftPatch as hr, ArtifactPatchFailureSchema as ht, UniquenessKeyIssueReason as i, ArtifactEvidenceResolveRequest as in, ArtifactDataValidator as ir, isArtifactLifecycleTransitionAllowed as it, ArtifactLifecycleTransitionResponse as j, ArtifactResolvePartRequest as jn, ARTIFACT_VALUE_TYPE_KEYWORD as jr, ArtifactPatchSuccess as jt, ArtifactLifecycleRejectedPayloadSchema as k, ArtifactStatusChangedPayload as kn, EvidenceResolveResponse as kr, ArtifactPatchResponseSchema as kt, buildUniquenessKeys as l, ArtifactKindRegisterRequest as ln, ArtifactKindDefinition as lr, ArtifactPatchDocument as lt, describeArtifactRelationTargetIdentity as m, ArtifactPatchSubjectResponse as mn, ArtifactDraft as mr, ArtifactPatchErrorSchema as mt, UniquenessKey as n, ArtifactCreateResponse as nn, ArtifactDataChecker as nr, advanceArtifactLifecycle as nt, UniquenessSelectorCapability as o, ArtifactKindChangedPayload as on, compileArtifactDataSchema as or, ARTIFACT_PATCH_OPERATORS as ot, artifactRelationTargetIdentity as p, ArtifactPatchSubjectRequest as pn, AfterArtifactHookRegistration as pr, ArtifactPatchErrorCode as pt, ArtifactLifecycleSnapshot as q, ARTIFACT_CONTEXT_RENDER_HINTS as qn, checkArtifactRelationSourceParts as qt, UniquenessKeyIssue as r, ArtifactCreatedPayload as rn, ArtifactDataIssue as rr, initialArtifactLifecycle as rt, UniquenessSupportIssue as s, ArtifactKindListRequest as sn, AnyArtifactKindDefinition as sr, ArtifactPatchArrayFilter as st, BuildUniquenessKeysResult as t, ArtifactCreateRequest as tn, ArtifactDataCheck as tr, ArtifactLifecycleVersionSchema as tt, describeUniquenessKey as u, ArtifactKindRegisterResponse as un, ArtifactOf as ur, ArtifactPatchDocumentSchema as ut, ArtifactLifecycleFailure as v, ArtifactRelationTypeListResponse as vn, ArtifactLifecycleHookEvent as vr, ArtifactPatchIssueSchema as vt, ArtifactLifecycleHistoryRequest as w, ArtifactResolveResponse as wn, EvidenceOccurrence as wr, ArtifactPatchPathSchema as wt, ArtifactLifecycleGetRequestSchema as x, ArtifactResolveContextRequest as xn, BeforeArtifactHookContext as xr, ArtifactPatchOperationResult as xt, ArtifactLifecycleFailureSchema as y, ArtifactRelationTypeRegisterRequest as yn, ArtifactLifecycleHookRegistration$1 as yr, ArtifactPatchMigration as yt, ArtifactLifecycleHistoryEntrySchema as z, ResolvedArtifactContextNode as zn, artifactPatchSegments as zt };
12088
+ export { ArtifactLifecycleTransitionedEntry as $, ArtifactContextRelationSelector as $n, isArtifactDataPathDeclared as $t, ArtifactLifecycleSchemas as A, ArtifactSubjects$1 as An, extractEvidenceOccurrences as Ar, ArtifactPatchSegment as At, ArtifactLifecycleIdentitySchema as B, UnresolvedArtifactContextNode as Bn, ARTIFACT_RESOLVE_PART_ERROR_CODES as Bt, ArtifactLifecycleGetResponseSchema as C, ArtifactResolveRequest as Cn, ArtifactLifecycleHookRegistration$1 as Cr, ArtifactPatchOperator as Ct, ArtifactLifecycleHistoryResponseSchema as D, ArtifactRevisedPayload as Dn, defineArtifactLifecycleHooks as Dr, ArtifactPatchRequestSchema as Dt, ArtifactLifecycleHistoryResponse as E, ArtifactReviseResponse as En, BeforeArtifactHookRegistration as Er, ArtifactPatchRequest as Et, ArtifactLifecycleCurrent as F, hydrateArtifactContextTree as Fn, ARTIFACT_VALUE_TYPE_KEYWORD as Fr, artifactPatchFilterName as Ft, ArtifactLifecycleSituation as G, ResolvedArtifactContextWire$1 as Gn, ArtifactResolvePartErrorSchema as Gt, ArtifactLifecycleInitializedEntrySchema as H, ArtifactContextRefEntrySchema as Hn, ArtifactRelationSourceIssue as Ht, ArtifactLifecycleCurrentSchema as I, ArtifactContextNode as In, EVIDENCE_VALUE_TYPE as Ir, artifactPatchInstructions as It, ArtifactLifecycleSnapshotSchema as J, ARTIFACT_CONTEXT_RELATION_DIRECTIONS as Jn, resolveArtifactPart as Jt, ArtifactLifecycleSituationSchema as K, ResolvedArtifactContextWireSchema as Kn, checkArtifactPartIds as Kt, ArtifactLifecycleError as L, ArtifactContextRootNode as Ln, EvidenceValue$1 as Lr, artifactPatchPathFilterNames as Lt, ArtifactLifecycleTransitionResponseSchema as M, ArtifactResolvePartRequestSchema as Mn, EvidenceResolveRequestSchema as Mr, ArtifactPatchSuccessSchema as Mt, toArtifactLifecycleFailure as N, ArtifactResolvePartResponse as Nn, EvidenceResolveResponse as Nr, ArtifactPatchTarget as Nt, ArtifactLifecycleRejectedPayload as O, ArtifactSchemas$1 as On, EvidenceOccurrence as Or, ArtifactPatchResponse as Ot, ARTIFACT_LIFECYCLE_REJECTED_CODE as P, ArtifactResolvePartResponseSchema as Pn, EvidenceResolveResponseSchema as Pr, ArtifactPatchTargetSchema as Pt, ArtifactLifecycleTransitionIntentSchema as Q, ArtifactContextRelationDirectionSchema as Qn, inspectArtifactDataLocation as Qt, ArtifactLifecycleHistoryEntry as R, ArtifactContextTree as Rn, EvidenceValueSchema$1 as Rr, artifactPatchSegment as Rt, ArtifactLifecycleGetResponse as S, ArtifactResolveContextResponse as Sn, ArtifactLifecycleHookEvent as Sr, ArtifactPatchOperationResultSchema as St, ArtifactLifecycleHistoryRequestSchema as T, ArtifactReviseRequest as Tn, BeforeArtifactHookContext as Tr, ArtifactPatchPersistedSchema as Tt, ArtifactLifecycleRejection as U, ArtifactContextUnresolvedReason as Un, ArtifactResolvePartError as Ut, ArtifactLifecycleInitializedEntry as V, ArtifactContextRefEntry as Vn, ArtifactPartResolution as Vt, ArtifactLifecycleRejectionSchema as W, ArtifactContextUnresolvedReasonSchema as Wn, ArtifactResolvePartErrorCode as Wt, ArtifactLifecycleTransitionCommandSchema as X, ArtifactContextKnownRenderHint as Xn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Xt, ArtifactLifecycleTransitionCommand as Y, ARTIFACT_CONTEXT_RENDER_HINTS as Yn, validateArtifactPartAreas as Yt, ArtifactLifecycleTransitionIntent as Z, ArtifactContextRelationDirection as Zn, ArtifactSchemaFragment as Zt, ArtifactLifecycleCommittedPayloadSchema as _, ArtifactRelationTypeListRequest as _n, AfterArtifactHookRegistration as _r, ArtifactPatchIssue as _t, UniquenessKeyPart as a, ArtifactEvidenceResolveResponse$1 as an, ArtifactDataCheck as ar, ARTIFACT_PATCH_ERROR_CODES as at, ArtifactLifecycleGetRequest as b, ArtifactRelationTypeRegisterResponse as bn, ArtifactHookFilter as br, ArtifactPatchMigrationSchema as bt, assessUniquenessSupport as c, ArtifactKindListResponse as cn, ArtifactDataValidator as cr, ArtifactPatchArrayFilterSchema as ct, ArtifactRelationTargetIdentity as d, ArtifactNamespace as dn, AnyArtifactKindDefinition as dr, ArtifactPatchDryRunSchema as dt, readArtifactTitle as en, ArtifactContextRelationSelectorSchema as er, ArtifactLifecycleTransitionedEntrySchema as et, ArtifactRelationTargetIdentitySchema as f, ArtifactObservationAddedPayload as fn, ArtifactDataOf as fr, ArtifactPatchError as ft, ArtifactLifecycleCommittedPayload as g, ArtifactRelationAddedPayload as gn, AfterArtifactHookContext as gr, ArtifactPatchInstruction as gt, serializeArtifactRelationTargetIdentity as h, ArtifactQueryResponse as hn, defineArtifactKind as hr, ArtifactPatchFailureSchema as ht, UniquenessKeyIssueReason as i, ArtifactEvidenceResolveRequest as in, ArtifactContextSelectorSchema as ir, isArtifactLifecycleTransitionAllowed as it, ArtifactLifecycleTransitionResponse as j, ArtifactResolvePartRequest as jn, EvidenceResolveRequest as jr, ArtifactPatchSuccess as jt, ArtifactLifecycleRejectedPayloadSchema as k, ArtifactStatusChangedPayload as kn, EvidenceOccurrenceExtractionOptions as kr, ArtifactPatchResponseSchema as kt, buildUniquenessKeys as l, ArtifactKindRegisterRequest as ln, compileArtifactDataChecker as lr, ArtifactPatchDocument as lt, describeArtifactRelationTargetIdentity as m, ArtifactPatchSubjectResponse as mn, ArtifactOf as mr, ArtifactPatchErrorSchema as mt, UniquenessKey as n, ArtifactCreateResponse as nn, ArtifactContextRenderHintSchema as nr, advanceArtifactLifecycle as nt, UniquenessSelectorCapability as o, ArtifactKindChangedPayload as on, ArtifactDataChecker as or, ARTIFACT_PATCH_OPERATORS as ot, artifactRelationTargetIdentity as p, ArtifactPatchSubjectRequest as pn, ArtifactKindDefinition as pr, ArtifactPatchErrorCode as pt, ArtifactLifecycleSnapshot as q, artifactRevisionKey as qn, checkArtifactRelationSourceParts as qt, UniquenessKeyIssue as r, ArtifactCreatedPayload as rn, ArtifactContextSelector$1 as rr, initialArtifactLifecycle as rt, UniquenessSupportIssue as s, ArtifactKindListRequest as sn, ArtifactDataIssue as sr, ArtifactPatchArrayFilter as st, BuildUniquenessKeysResult as t, ArtifactCreateRequest as tn, ArtifactContextRenderHint as tr, ArtifactLifecycleVersionSchema as tt, describeUniquenessKey as u, ArtifactKindRegisterResponse as un, compileArtifactDataSchema as ur, ArtifactPatchDocumentSchema as ut, ArtifactLifecycleFailure as v, ArtifactRelationTypeListResponse as vn, ArtifactDraft as vr, ArtifactPatchIssueSchema as vt, ArtifactLifecycleHistoryRequest as w, ArtifactResolveResponse as wn, ArtifactLifecycleSemanticEvent as wr, ArtifactPatchPathSchema as wt, ArtifactLifecycleGetRequestSchema as x, ArtifactResolveContextRequest as xn, ArtifactLifecycleHookDefinition as xr, ArtifactPatchOperationResult as xt, ArtifactLifecycleFailureSchema as y, ArtifactRelationTypeRegisterRequest as yn, ArtifactDraftPatch as yr, ArtifactPatchMigration as yt, ArtifactLifecycleHistoryEntrySchema as z, ResolvedArtifactContextNode as zn, artifactPatchSegments as zt };
@@ -1,4 +1,4 @@
1
- import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-DTpwvvY9.mjs";
1
+ import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-BP_P1izV.mjs";
2
2
  import { o as Message$1 } from "./index-DDCixELI.mjs";
3
3
  import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-DV3IipmH.mjs";
4
4
  import * as _$zod from "zod";
@@ -3155,8 +3155,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3155
3155
  type: _$zod.ZodLiteral<"locality.degraded">;
3156
3156
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3157
3157
  intent: _$zod.ZodEnum<{
3158
- fork: "fork";
3159
3158
  resume: "resume";
3159
+ fork: "fork";
3160
3160
  }>;
3161
3161
  verdictKind: _$zod.ZodLiteral<"degrade">;
3162
3162
  reason: _$zod.ZodEnum<{
@@ -3181,8 +3181,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3181
3181
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3182
3182
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3183
3183
  intent: _$zod.ZodEnum<{
3184
- fork: "fork";
3185
3184
  resume: "resume";
3185
+ fork: "fork";
3186
3186
  }>;
3187
3187
  verdictKind: _$zod.ZodLiteral<"foreign">;
3188
3188
  foreignMachineId: _$zod.ZodString;
@@ -3828,8 +3828,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3828
3828
  type: _$zod.ZodLiteral<"locality.degraded">;
3829
3829
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3830
3830
  intent: _$zod.ZodEnum<{
3831
- fork: "fork";
3832
3831
  resume: "resume";
3832
+ fork: "fork";
3833
3833
  }>;
3834
3834
  verdictKind: _$zod.ZodLiteral<"degrade">;
3835
3835
  reason: _$zod.ZodEnum<{
@@ -3854,8 +3854,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3854
3854
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3855
3855
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3856
3856
  intent: _$zod.ZodEnum<{
3857
- fork: "fork";
3858
3857
  resume: "resume";
3858
+ fork: "fork";
3859
3859
  }>;
3860
3860
  verdictKind: _$zod.ZodLiteral<"foreign">;
3861
3861
  foreignMachineId: _$zod.ZodString;
@@ -3958,8 +3958,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3958
3958
  timestamp: _$zod.ZodNumber;
3959
3959
  }, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3960
3960
  intent: _$zod.ZodEnum<{
3961
- fork: "fork";
3962
3961
  resume: "resume";
3962
+ fork: "fork";
3963
3963
  }>;
3964
3964
  verdictKind: _$zod.ZodLiteral<"degrade">;
3965
3965
  reason: _$zod.ZodEnum<{
@@ -3984,8 +3984,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
3984
3984
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3985
3985
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3986
3986
  intent: _$zod.ZodEnum<{
3987
- fork: "fork";
3988
3987
  resume: "resume";
3988
+ fork: "fork";
3989
3989
  }>;
3990
3990
  verdictKind: _$zod.ZodLiteral<"foreign">;
3991
3991
  foreignMachineId: _$zod.ZodString;
@@ -4003,8 +4003,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4003
4003
  maxTokens: _$zod.ZodNumber;
4004
4004
  percentage: _$zod.ZodNumber;
4005
4005
  level: _$zod.ZodEnum<{
4006
- warn: "warn";
4007
4006
  ok: "ok";
4007
+ warn: "warn";
4008
4008
  critical: "critical";
4009
4009
  }>;
4010
4010
  lastUpdatedAt: _$zod.ZodNumber;
@@ -4344,8 +4344,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4344
4344
  type: _$zod.ZodLiteral<"locality.degraded">;
4345
4345
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4346
4346
  intent: _$zod.ZodEnum<{
4347
- fork: "fork";
4348
4347
  resume: "resume";
4348
+ fork: "fork";
4349
4349
  }>;
4350
4350
  verdictKind: _$zod.ZodLiteral<"degrade">;
4351
4351
  reason: _$zod.ZodEnum<{
@@ -4370,8 +4370,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
4370
4370
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
4371
4371
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4372
4372
  intent: _$zod.ZodEnum<{
4373
- fork: "fork";
4374
4373
  resume: "resume";
4374
+ fork: "fork";
4375
4375
  }>;
4376
4376
  verdictKind: _$zod.ZodLiteral<"foreign">;
4377
4377
  foreignMachineId: _$zod.ZodString;
@@ -8272,8 +8272,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8272
8272
  type: _$zod.ZodLiteral<"locality.degraded">;
8273
8273
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
8274
8274
  intent: _$zod.ZodEnum<{
8275
- fork: "fork";
8276
8275
  resume: "resume";
8276
+ fork: "fork";
8277
8277
  }>;
8278
8278
  verdictKind: _$zod.ZodLiteral<"degrade">;
8279
8279
  reason: _$zod.ZodEnum<{
@@ -8298,8 +8298,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8298
8298
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
8299
8299
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
8300
8300
  intent: _$zod.ZodEnum<{
8301
- fork: "fork";
8302
8301
  resume: "resume";
8302
+ fork: "fork";
8303
8303
  }>;
8304
8304
  verdictKind: _$zod.ZodLiteral<"foreign">;
8305
8305
  foreignMachineId: _$zod.ZodString;
@@ -8945,8 +8945,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8945
8945
  type: _$zod.ZodLiteral<"locality.degraded">;
8946
8946
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
8947
8947
  intent: _$zod.ZodEnum<{
8948
- fork: "fork";
8949
8948
  resume: "resume";
8949
+ fork: "fork";
8950
8950
  }>;
8951
8951
  verdictKind: _$zod.ZodLiteral<"degrade">;
8952
8952
  reason: _$zod.ZodEnum<{
@@ -8971,8 +8971,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
8971
8971
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
8972
8972
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
8973
8973
  intent: _$zod.ZodEnum<{
8974
- fork: "fork";
8975
8974
  resume: "resume";
8975
+ fork: "fork";
8976
8976
  }>;
8977
8977
  verdictKind: _$zod.ZodLiteral<"foreign">;
8978
8978
  foreignMachineId: _$zod.ZodString;
@@ -9075,8 +9075,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9075
9075
  timestamp: _$zod.ZodNumber;
9076
9076
  }, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
9077
9077
  intent: _$zod.ZodEnum<{
9078
- fork: "fork";
9079
9078
  resume: "resume";
9079
+ fork: "fork";
9080
9080
  }>;
9081
9081
  verdictKind: _$zod.ZodLiteral<"degrade">;
9082
9082
  reason: _$zod.ZodEnum<{
@@ -9101,8 +9101,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9101
9101
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
9102
9102
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
9103
9103
  intent: _$zod.ZodEnum<{
9104
- fork: "fork";
9105
9104
  resume: "resume";
9105
+ fork: "fork";
9106
9106
  }>;
9107
9107
  verdictKind: _$zod.ZodLiteral<"foreign">;
9108
9108
  foreignMachineId: _$zod.ZodString;
@@ -9120,8 +9120,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9120
9120
  maxTokens: _$zod.ZodNumber;
9121
9121
  percentage: _$zod.ZodNumber;
9122
9122
  level: _$zod.ZodEnum<{
9123
- warn: "warn";
9124
9123
  ok: "ok";
9124
+ warn: "warn";
9125
9125
  critical: "critical";
9126
9126
  }>;
9127
9127
  lastUpdatedAt: _$zod.ZodNumber;
@@ -9461,8 +9461,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9461
9461
  type: _$zod.ZodLiteral<"locality.degraded">;
9462
9462
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
9463
9463
  intent: _$zod.ZodEnum<{
9464
- fork: "fork";
9465
9464
  resume: "resume";
9465
+ fork: "fork";
9466
9466
  }>;
9467
9467
  verdictKind: _$zod.ZodLiteral<"degrade">;
9468
9468
  reason: _$zod.ZodEnum<{
@@ -9487,8 +9487,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
9487
9487
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
9488
9488
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
9489
9489
  intent: _$zod.ZodEnum<{
9490
- fork: "fork";
9491
9490
  resume: "resume";
9491
+ fork: "fork";
9492
9492
  }>;
9493
9493
  verdictKind: _$zod.ZodLiteral<"foreign">;
9494
9494
  foreignMachineId: _$zod.ZodString;
@@ -11067,8 +11067,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
11067
11067
  isError: z.ZodOptional<z.ZodBoolean>;
11068
11068
  }, z.core.$strip>], "type">>;
11069
11069
  agentId: z.ZodOptional<z.ZodString>;
11070
- turnId: z.ZodNullable<z.ZodString>;
11071
11070
  adapterSessionId: z.ZodOptional<z.ZodString>;
11071
+ turnId: z.ZodNullable<z.ZodString>;
11072
11072
  timestamp: z.ZodNumber;
11073
11073
  contentText: z.ZodString;
11074
11074
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -11915,8 +11915,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
11915
11915
  isError: z.ZodOptional<z.ZodBoolean>;
11916
11916
  }, z.core.$strip>], "type">>;
11917
11917
  agentId: z.ZodOptional<z.ZodString>;
11918
- turnId: z.ZodNullable<z.ZodString>;
11919
11918
  adapterSessionId: z.ZodOptional<z.ZodString>;
11919
+ turnId: z.ZodNullable<z.ZodString>;
11920
11920
  timestamp: z.ZodNumber;
11921
11921
  contentText: z.ZodString;
11922
11922
  adapterMessageId: z.ZodOptional<z.ZodString>;
@@ -13059,8 +13059,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13059
13059
  type: z.ZodLiteral<"locality.degraded">;
13060
13060
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
13061
13061
  intent: z.ZodEnum<{
13062
- fork: "fork";
13063
13062
  resume: "resume";
13063
+ fork: "fork";
13064
13064
  }>;
13065
13065
  verdictKind: z.ZodLiteral<"degrade">;
13066
13066
  reason: z.ZodEnum<{
@@ -13085,8 +13085,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13085
13085
  turnId: z.ZodOptional<z.ZodString>;
13086
13086
  }, z.core.$strip>, z.ZodObject<{
13087
13087
  intent: z.ZodEnum<{
13088
- fork: "fork";
13089
13088
  resume: "resume";
13089
+ fork: "fork";
13090
13090
  }>;
13091
13091
  verdictKind: z.ZodLiteral<"foreign">;
13092
13092
  foreignMachineId: z.ZodString;
@@ -13447,8 +13447,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13447
13447
  type: z.ZodLiteral<"locality.degraded">;
13448
13448
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
13449
13449
  intent: z.ZodEnum<{
13450
- fork: "fork";
13451
13450
  resume: "resume";
13451
+ fork: "fork";
13452
13452
  }>;
13453
13453
  verdictKind: z.ZodLiteral<"degrade">;
13454
13454
  reason: z.ZodEnum<{
@@ -13473,8 +13473,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13473
13473
  turnId: z.ZodOptional<z.ZodString>;
13474
13474
  }, z.core.$strip>, z.ZodObject<{
13475
13475
  intent: z.ZodEnum<{
13476
- fork: "fork";
13477
13476
  resume: "resume";
13477
+ fork: "fork";
13478
13478
  }>;
13479
13479
  verdictKind: z.ZodLiteral<"foreign">;
13480
13480
  foreignMachineId: z.ZodString;
@@ -13825,8 +13825,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13825
13825
  type: z.ZodLiteral<"locality.degraded">;
13826
13826
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
13827
13827
  intent: z.ZodEnum<{
13828
- fork: "fork";
13829
13828
  resume: "resume";
13829
+ fork: "fork";
13830
13830
  }>;
13831
13831
  verdictKind: z.ZodLiteral<"degrade">;
13832
13832
  reason: z.ZodEnum<{
@@ -13851,8 +13851,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
13851
13851
  turnId: z.ZodOptional<z.ZodString>;
13852
13852
  }, z.core.$strip>, z.ZodObject<{
13853
13853
  intent: z.ZodEnum<{
13854
- fork: "fork";
13855
13854
  resume: "resume";
13855
+ fork: "fork";
13856
13856
  }>;
13857
13857
  verdictKind: z.ZodLiteral<"foreign">;
13858
13858
  foreignMachineId: z.ZodString;
@@ -14217,8 +14217,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
14217
14217
  type: z.ZodLiteral<"locality.degraded">;
14218
14218
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
14219
14219
  intent: z.ZodEnum<{
14220
- fork: "fork";
14221
14220
  resume: "resume";
14221
+ fork: "fork";
14222
14222
  }>;
14223
14223
  verdictKind: z.ZodLiteral<"degrade">;
14224
14224
  reason: z.ZodEnum<{
@@ -14243,8 +14243,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
14243
14243
  turnId: z.ZodOptional<z.ZodString>;
14244
14244
  }, z.core.$strip>, z.ZodObject<{
14245
14245
  intent: z.ZodEnum<{
14246
- fork: "fork";
14247
14246
  resume: "resume";
14247
+ fork: "fork";
14248
14248
  }>;
14249
14249
  verdictKind: z.ZodLiteral<"foreign">;
14250
14250
  foreignMachineId: z.ZodString;
@@ -14596,8 +14596,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
14596
14596
  type: z.ZodLiteral<"locality.degraded">;
14597
14597
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
14598
14598
  intent: z.ZodEnum<{
14599
- fork: "fork";
14600
14599
  resume: "resume";
14600
+ fork: "fork";
14601
14601
  }>;
14602
14602
  verdictKind: z.ZodLiteral<"degrade">;
14603
14603
  reason: z.ZodEnum<{
@@ -14622,8 +14622,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
14622
14622
  turnId: z.ZodOptional<z.ZodString>;
14623
14623
  }, z.core.$strip>, z.ZodObject<{
14624
14624
  intent: z.ZodEnum<{
14625
- fork: "fork";
14626
14625
  resume: "resume";
14626
+ fork: "fork";
14627
14627
  }>;
14628
14628
  verdictKind: z.ZodLiteral<"foreign">;
14629
14629
  foreignMachineId: z.ZodString;
@@ -14984,8 +14984,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
14984
14984
  type: z.ZodLiteral<"locality.degraded">;
14985
14985
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
14986
14986
  intent: z.ZodEnum<{
14987
- fork: "fork";
14988
14987
  resume: "resume";
14988
+ fork: "fork";
14989
14989
  }>;
14990
14990
  verdictKind: z.ZodLiteral<"degrade">;
14991
14991
  reason: z.ZodEnum<{
@@ -15010,8 +15010,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
15010
15010
  turnId: z.ZodOptional<z.ZodString>;
15011
15011
  }, z.core.$strip>, z.ZodObject<{
15012
15012
  intent: z.ZodEnum<{
15013
- fork: "fork";
15014
15013
  resume: "resume";
15014
+ fork: "fork";
15015
15015
  }>;
15016
15016
  verdictKind: z.ZodLiteral<"foreign">;
15017
15017
  foreignMachineId: z.ZodString;
@@ -15362,8 +15362,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
15362
15362
  type: z.ZodLiteral<"locality.degraded">;
15363
15363
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
15364
15364
  intent: z.ZodEnum<{
15365
- fork: "fork";
15366
15365
  resume: "resume";
15366
+ fork: "fork";
15367
15367
  }>;
15368
15368
  verdictKind: z.ZodLiteral<"degrade">;
15369
15369
  reason: z.ZodEnum<{
@@ -15388,8 +15388,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
15388
15388
  turnId: z.ZodOptional<z.ZodString>;
15389
15389
  }, z.core.$strip>, z.ZodObject<{
15390
15390
  intent: z.ZodEnum<{
15391
- fork: "fork";
15392
15391
  resume: "resume";
15392
+ fork: "fork";
15393
15393
  }>;
15394
15394
  verdictKind: z.ZodLiteral<"foreign">;
15395
15395
  foreignMachineId: z.ZodString;
@@ -15754,8 +15754,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
15754
15754
  type: z.ZodLiteral<"locality.degraded">;
15755
15755
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
15756
15756
  intent: z.ZodEnum<{
15757
- fork: "fork";
15758
15757
  resume: "resume";
15758
+ fork: "fork";
15759
15759
  }>;
15760
15760
  verdictKind: z.ZodLiteral<"degrade">;
15761
15761
  reason: z.ZodEnum<{
@@ -15780,8 +15780,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
15780
15780
  turnId: z.ZodOptional<z.ZodString>;
15781
15781
  }, z.core.$strip>, z.ZodObject<{
15782
15782
  intent: z.ZodEnum<{
15783
- fork: "fork";
15784
15783
  resume: "resume";
15784
+ fork: "fork";
15785
15785
  }>;
15786
15786
  verdictKind: z.ZodLiteral<"foreign">;
15787
15787
  foreignMachineId: z.ZodString;