@makaio/framework 1.0.0-dev-1789056039016 → 1.0.0-dev-1789118938035

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 (96) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-CNdiLYaM.mjs → account-identity-BdGGjBuZ.mjs} +1 -1
  3. package/dist/{adapter-BdMny6vw.mjs → adapter-BLivHuUi.mjs} +1 -1
  4. package/dist/artifact-B9wVswQv.mjs +1 -0
  5. package/dist/bus/index.mjs +4 -4
  6. package/dist/{canonical-model-BMnzRhG_.mjs → canonical-model-yXnm9QTn.mjs} +1 -1
  7. package/dist/{client-C0HcPzvw.mjs → client-BsY0rMlE.mjs} +1 -1
  8. package/dist/{compression-DvPXSBWS.mjs → compression-odwEUBWb.mjs} +1 -1
  9. package/dist/contracts/adapter/index.d.mts +1 -1
  10. package/dist/contracts/adapter/index.mjs +1 -1
  11. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  12. package/dist/contracts/artifact/index.d.mts +3 -3
  13. package/dist/contracts/artifact/index.mjs +1 -1
  14. package/dist/contracts/auth/index.d.mts +2 -2
  15. package/dist/contracts/automation-trigger/index.d.mts +2 -2
  16. package/dist/contracts/canonical-model/index.mjs +1 -1
  17. package/dist/contracts/capabilities/index.d.mts +1 -1
  18. package/dist/contracts/client/index.d.mts +1 -1
  19. package/dist/contracts/client/index.mjs +1 -1
  20. package/dist/contracts/code-execution/index.d.mts +1 -1
  21. package/dist/contracts/config/index.mjs +1 -1
  22. package/dist/contracts/extension/index.d.mts +3 -3
  23. package/dist/contracts/extension/index.mjs +1 -1
  24. package/dist/contracts/harness/index.d.mts +1 -1
  25. package/dist/contracts/index.d.mts +25 -25
  26. package/dist/contracts/index.mjs +1 -1
  27. package/dist/contracts/materialization/index.d.mts +1 -1
  28. package/dist/contracts/materialization/index.mjs +1 -1
  29. package/dist/contracts/session/index.d.mts +2 -2
  30. package/dist/contracts/session/index.mjs +1 -1
  31. package/dist/contracts/shared/index.d.mts +3 -3
  32. package/dist/contracts/shared/index.mjs +1 -1
  33. package/dist/contracts/variant/index.d.mts +1 -1
  34. package/dist/contracts/worker/index.d.mts +1 -1
  35. package/dist/contracts/worker/index.mjs +1 -1
  36. package/dist/contracts/workflow/index.d.mts +2 -2
  37. package/dist/contracts/workflow/index.mjs +1 -1
  38. package/dist/{contribution-BWanQHUz.d.mts → contribution-Cdz5WTYk.d.mts} +1 -1
  39. package/dist/{definition-DSOXLpQj.d.mts → definition-DQNFO-Qz.d.mts} +1 -1
  40. package/dist/{extension-GQEL-NCV.mjs → extension-DYBu49NH.mjs} +1 -1
  41. package/dist/{index-CVP9K9-a2.d.mts → index-B7VWSBm72.d.mts} +4 -4
  42. package/dist/{index-CO6ADD43.d.mts → index-BFnIC2b0.d.mts} +49 -49
  43. package/dist/{index-CAURP-Tl2.d.mts → index-BUoIGZmF2.d.mts} +2 -2
  44. package/dist/{index-CgYGg-Ne2.d.mts → index-BZrlHkpM2.d.mts} +41 -2
  45. package/dist/{index-CKvliyuY.d.mts → index-C7XS5mvZ.d.mts} +842 -8
  46. package/dist/{index-CLmjrH8K.d.mts → index-D6_5slJp.d.mts} +1 -1
  47. package/dist/{index-Dp3UZQv_.d.mts → index-DS1mI9GP.d.mts} +1 -1
  48. package/dist/{index-H2NL2OwF2.d.mts → index-D__FyAg62.d.mts} +7 -7
  49. package/dist/{index-B4KCyY6J.d.mts → index-Den1hqEo.d.mts} +7 -7
  50. package/dist/{index-CU9xmTkP.d.mts → index-OLGGmjgd.d.mts} +1 -1
  51. package/dist/{index-C0jn5nKJ.d.mts → index-WhgPewY4.d.mts} +11 -11
  52. package/dist/{index-Dtc5UYJG.d.mts → index-l_yo-7aV.d.mts} +48 -48
  53. package/dist/kind-registration-CyMf-vey.mjs +1 -0
  54. package/dist/{materialization--bg6ZwQd.mjs → materialization-DRr6CSXV.mjs} +1 -1
  55. package/dist/{namespace-DyWNxLt1.d.mts → namespace-BHkEHrUG.d.mts} +6 -6
  56. package/dist/package.json +1 -1
  57. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  58. package/dist/schemas-BhkprYU1.mjs +1 -0
  59. package/dist/{schemas-BGcAiQE0.d.mts → schemas-COQUToGQ.d.mts} +4 -4
  60. package/dist/{schemas-_NrySTmN.d.mts → schemas-CXCdmM5K.d.mts} +13 -1
  61. package/dist/{schemas-pHboaOxJ.mjs → schemas-D9_OPuLB.mjs} +1 -1
  62. package/dist/{schemas-Fn-eeay32.d.mts → schemas-DNvDh0eE2.d.mts} +7 -7
  63. package/dist/{schemas-FkLOBJgq.d.mts → schemas-DYtUc2WA.d.mts} +4 -4
  64. package/dist/{schemas-QEr2LI43.mjs → schemas-pBrUJEN6.mjs} +1 -1
  65. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  66. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  67. package/dist/services/git/namespace.d.mts +2 -2
  68. package/dist/services/git/schemas.d.mts +1 -1
  69. package/dist/services/index.d.mts +13 -13
  70. package/dist/services/preferences/index.d.mts +2 -2
  71. package/dist/services/preferences/schemas.d.mts +1 -1
  72. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  73. package/dist/services/provider-context/index.d.mts +1 -1
  74. package/dist/services/session/index.d.mts +1 -1
  75. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  76. package/dist/{session-CODDwsGa.mjs → session-BsQst2fC.mjs} +1 -1
  77. package/dist/{session-lineage-CoNs4WZy.d.mts → session-lineage-DQLXk5jZ.d.mts} +1 -1
  78. package/dist/shared-m6jgT2a3.mjs +1 -0
  79. package/dist/{storage-namespace-BUSNKZLw.d.mts → storage-namespace-DITavhRL.d.mts} +10 -10
  80. package/dist/{transition-D2VKNtv6.d.mts → transition-B8XDvfD7.d.mts} +2 -2
  81. package/dist/{types-DyXXIK4c.d.mts → types-HFQQoeAz.d.mts} +2 -2
  82. package/dist/ui-kernel/index.d.mts +4 -4
  83. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  84. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  85. package/dist/{view-builder-BFEvUe6n.d.mts → view-builder--qgYM35J.d.mts} +1 -1
  86. package/dist/{worker-L8vWpbYa.mjs → worker-nbwkoIfH.mjs} +1 -1
  87. package/dist/{workflow-DNks09Ip.mjs → workflow-Ba8qlWwV.mjs} +1 -1
  88. package/dist/workflow-engine/index.d.mts +39 -39
  89. package/package.json +1 -1
  90. package/dist/artifact--nbPrvm5.mjs +0 -1
  91. package/dist/kind-registration-BanX_UAF.mjs +0 -1
  92. package/dist/schemas-NKlV5jqJ.mjs +0 -1
  93. package/dist/shared-CkCrHz66.mjs +0 -1
  94. /package/dist/{adapter-binding-CTssGlH_.d.mts → adapter-binding-CZTWlcp9.d.mts} +0 -0
  95. /package/dist/{index-CrvTRZqh.d.mts → index-BNgNBDuW2.d.mts} +0 -0
  96. /package/dist/{json-value-Bjl8jzom.d.mts → json-value-DyMQrwGz.d.mts} +0 -0
@@ -1,4 +1,5 @@
1
- import { B as ArtifactCategory, C as ArtifactScope, G as ArtifactKindRegistration$1, Y as ArtifactLifecycleState, _ as ArtifactRelationTarget, p as ArtifactRelation, rt as ArtifactRef$1, s as ArtifactObservation$1, t as ArtifactActor, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-_NrySTmN.mjs";
1
+ import { C as ArtifactScope, K as ArtifactKindRegistration$1, V as ArtifactCategory, X as ArtifactLifecycleState, _ as ArtifactRelationTarget, it as ArtifactRef$1, p as ArtifactRelation, s as ArtifactObservation$1, t as ArtifactActor, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-CXCdmM5K.mjs";
2
+ import { l as JsonValue$1 } from "./json-value-DyMQrwGz.mjs";
2
3
  import { z } from "zod";
3
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
4
5
  import { MakaioBusLike } from "@makaio/framework/core";
@@ -536,16 +537,51 @@ declare function defineArtifactKind<TData extends Record<string, unknown>, const
536
537
  //#region core/contracts/src/artifact/data-schema-validator.d.ts
537
538
  /** Validates one artifact payload against its registered JSON Schema. */
538
539
  type ArtifactDataValidator = (data: unknown) => boolean;
540
+ /** One rejected location within an artifact payload, with what the schema expected there. */
541
+ interface ArtifactDataIssue {
542
+ /** Dot-separated data-relative path of the rejected value; empty for the payload root. */
543
+ readonly path: string;
544
+ /** What the schema expected at that path. */
545
+ readonly reason: string;
546
+ /** Declared type at that path, when the rejection names one. */
547
+ readonly expectedType?: string;
548
+ /** Declared value set at that path, when the rejection names one. */
549
+ readonly allowedValues?: readonly JsonValue$1[];
550
+ }
551
+ /** Complete outcome of checking one artifact payload. */
552
+ type ArtifactDataCheck = {
553
+ readonly valid: true;
554
+ } | {
555
+ readonly valid: false;
556
+ readonly issues: readonly ArtifactDataIssue[];
557
+ };
558
+ /** Checks one artifact payload and reports every rejected location. */
559
+ type ArtifactDataChecker = (data: unknown) => ArtifactDataCheck;
539
560
  /**
540
- * Compile the JSON Schema declared by one artifact kind.
561
+ * Compile a predicate for complete artifact payload validation.
541
562
  *
542
- * Each invocation creates an isolated compiler so local schema identifiers
543
- * cannot satisfy references belonging to another kind.
563
+ * The predicate hides the compiled function's mutable `errors`, so a caller
564
+ * cannot read error state left behind by an unrelated call. Use
565
+ * {@link compileArtifactDataChecker} when the rejections themselves are needed.
544
566
  * @param registration - Structurally validated artifact kind registration.
545
567
  * @returns A predicate for complete artifact payload validation.
546
568
  * @throws When the declared data schema cannot be compiled by its supported dialect.
547
569
  */
548
570
  declare function compileArtifactDataSchema(registration: ArtifactKindRegistration$1): ArtifactDataValidator;
571
+ /**
572
+ * Compile a checker that reports why an artifact payload was rejected.
573
+ *
574
+ * Use this where the caller has to repair the payload rather than merely learn
575
+ * that it is invalid: each issue names a path and, where the schema declares
576
+ * one, the expected type or the allowed values.
577
+ *
578
+ * The returned checker owns its compiled function and reads that function's
579
+ * errors before returning, so concurrent callers each need their own checker.
580
+ * @param registration - Structurally validated artifact kind registration.
581
+ * @returns A checker producing one issue per rejected location.
582
+ * @throws When the declared data schema cannot be compiled by its supported dialect.
583
+ */
584
+ declare function compileArtifactDataChecker(registration: ArtifactKindRegistration$1): ArtifactDataChecker;
549
585
  //#endregion
550
586
  //#region core/contracts/src/artifact/context-selectors.d.ts
551
587
  /** Known render hints for artifact context resolution. */
@@ -926,7 +962,7 @@ declare function hydrateArtifactContextTree(wire: ResolvedArtifactContextWire$1)
926
962
  *
927
963
  * - Shared lifecycle get / history / transition RPCs and committed / rejected events
928
964
  * - Kind and relation-type registration RPCs
929
- * - Revision create / revise / resolve / query / compare RPCs
965
+ * - Revision create / revise / patch / resolve / query / compare RPCs
930
966
  * - `created`, `revised`, `relation.added`, `observation.added`,
931
967
  * `status.changed`, and `kind.changed` revision and registry events
932
968
  *
@@ -1664,6 +1700,111 @@ declare const ArtifactSchemas$1: {
1664
1700
  createdAt: z.ZodOptional<z.ZodNumber>;
1665
1701
  }, z.core.$strip>;
1666
1702
  }, z.core.$strip>;
1703
+ };
1704
+ /**
1705
+ * Revise an existing artifact by patching the revision named by `baseRevision` (RPC).
1706
+ *
1707
+ * The request carries the change rather than the payload, so its cost follows
1708
+ * the size of the change. Rejections are returned in band with the failing
1709
+ * path and a repair hint; a stale `baseRevision` reports the current revision
1710
+ * along with the repair the caller must follow — only an append at a fixed
1711
+ * path can be resent without re-reading the payload.
1712
+ */
1713
+ patch: {
1714
+ request: z.ZodObject<{
1715
+ ref: z.ZodObject<{
1716
+ kind: z.ZodString;
1717
+ id: z.ZodString;
1718
+ }, z.core.$strict>;
1719
+ baseRevision: z.ZodString;
1720
+ patch: z.ZodObject<{
1721
+ $set: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
1722
+ $unset: z.ZodOptional<z.ZodType<Record<string, true>, Record<string, true>, z.core.$ZodTypeInternals<Record<string, true>, Record<string, true>>>>;
1723
+ $push: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
1724
+ $pull: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
1725
+ arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
1726
+ }, z.core.$strict>;
1727
+ dryRun: z.ZodOptional<z.ZodBoolean>;
1728
+ statusPath: z.ZodOptional<z.ZodString>;
1729
+ }, z.core.$strict>;
1730
+ response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1731
+ ok: z.ZodLiteral<true>;
1732
+ base: z.ZodObject<{
1733
+ refClass: z.ZodLiteral<"artifact">;
1734
+ kind: z.ZodString;
1735
+ id: z.ZodString;
1736
+ revision: z.ZodString;
1737
+ }, z.core.$strict>;
1738
+ operations: z.ZodArray<z.ZodObject<{
1739
+ operator: z.ZodEnum<{
1740
+ $set: "$set";
1741
+ $unset: "$unset";
1742
+ $push: "$push";
1743
+ $pull: "$pull";
1744
+ }>;
1745
+ path: z.ZodString;
1746
+ matched: z.ZodNumber;
1747
+ }, z.core.$strict>>;
1748
+ dryRun: z.ZodLiteral<true>;
1749
+ }, z.core.$strict>, z.ZodObject<{
1750
+ ok: z.ZodLiteral<true>;
1751
+ base: z.ZodObject<{
1752
+ refClass: z.ZodLiteral<"artifact">;
1753
+ kind: z.ZodString;
1754
+ id: z.ZodString;
1755
+ revision: z.ZodString;
1756
+ }, z.core.$strict>;
1757
+ operations: z.ZodArray<z.ZodObject<{
1758
+ operator: z.ZodEnum<{
1759
+ $set: "$set";
1760
+ $unset: "$unset";
1761
+ $push: "$push";
1762
+ $pull: "$pull";
1763
+ }>;
1764
+ path: z.ZodString;
1765
+ matched: z.ZodNumber;
1766
+ }, z.core.$strict>>;
1767
+ dryRun: z.ZodLiteral<false>;
1768
+ artifact: z.ZodObject<{
1769
+ refClass: z.ZodLiteral<"artifact">;
1770
+ kind: z.ZodString;
1771
+ id: z.ZodString;
1772
+ revision: z.ZodString;
1773
+ }, z.core.$strict>;
1774
+ }, z.core.$strict>], "dryRun">, z.ZodObject<{
1775
+ ok: z.ZodLiteral<false>;
1776
+ error: z.ZodObject<{
1777
+ code: z.ZodEnum<{
1778
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
1779
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
1780
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
1781
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
1782
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
1783
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
1784
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
1785
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
1786
+ NO_MATCH: "NO_MATCH";
1787
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
1788
+ HOST_FAILED: "HOST_FAILED";
1789
+ }>;
1790
+ message: z.ZodString;
1791
+ operator: z.ZodOptional<z.ZodEnum<{
1792
+ $set: "$set";
1793
+ $unset: "$unset";
1794
+ $push: "$push";
1795
+ $pull: "$pull";
1796
+ }>>;
1797
+ path: z.ZodOptional<z.ZodString>;
1798
+ currentRevision: z.ZodOptional<z.ZodString>;
1799
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1800
+ path: z.ZodString;
1801
+ reason: z.ZodString;
1802
+ expectedType: z.ZodOptional<z.ZodString>;
1803
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
1804
+ }, z.core.$strict>>>;
1805
+ repair: z.ZodString;
1806
+ }, z.core.$strict>;
1807
+ }, z.core.$strict>]>;
1667
1808
  }; /** Resolve a specific artifact revision by reference (RPC). */
1668
1809
  resolve: {
1669
1810
  request: z.ZodObject<{
@@ -4260,6 +4401,111 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4260
4401
  createdAt: z.ZodOptional<z.ZodNumber>;
4261
4402
  }, z.core.$strip>;
4262
4403
  }, z.core.$strip>;
4404
+ };
4405
+ /**
4406
+ * Revise an existing artifact by patching the revision named by `baseRevision` (RPC).
4407
+ *
4408
+ * The request carries the change rather than the payload, so its cost follows
4409
+ * the size of the change. Rejections are returned in band with the failing
4410
+ * path and a repair hint; a stale `baseRevision` reports the current revision
4411
+ * along with the repair the caller must follow — only an append at a fixed
4412
+ * path can be resent without re-reading the payload.
4413
+ */
4414
+ patch: {
4415
+ request: z.ZodObject<{
4416
+ ref: z.ZodObject<{
4417
+ kind: z.ZodString;
4418
+ id: z.ZodString;
4419
+ }, z.core.$strict>;
4420
+ baseRevision: z.ZodString;
4421
+ patch: z.ZodObject<{
4422
+ $set: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
4423
+ $unset: z.ZodOptional<z.ZodType<Record<string, true>, Record<string, true>, z.core.$ZodTypeInternals<Record<string, true>, Record<string, true>>>>;
4424
+ $push: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
4425
+ $pull: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
4426
+ arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
4427
+ }, z.core.$strict>;
4428
+ dryRun: z.ZodOptional<z.ZodBoolean>;
4429
+ statusPath: z.ZodOptional<z.ZodString>;
4430
+ }, z.core.$strict>;
4431
+ response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4432
+ ok: z.ZodLiteral<true>;
4433
+ base: z.ZodObject<{
4434
+ refClass: z.ZodLiteral<"artifact">;
4435
+ kind: z.ZodString;
4436
+ id: z.ZodString;
4437
+ revision: z.ZodString;
4438
+ }, z.core.$strict>;
4439
+ operations: z.ZodArray<z.ZodObject<{
4440
+ operator: z.ZodEnum<{
4441
+ $set: "$set";
4442
+ $unset: "$unset";
4443
+ $push: "$push";
4444
+ $pull: "$pull";
4445
+ }>;
4446
+ path: z.ZodString;
4447
+ matched: z.ZodNumber;
4448
+ }, z.core.$strict>>;
4449
+ dryRun: z.ZodLiteral<true>;
4450
+ }, z.core.$strict>, z.ZodObject<{
4451
+ ok: z.ZodLiteral<true>;
4452
+ base: z.ZodObject<{
4453
+ refClass: z.ZodLiteral<"artifact">;
4454
+ kind: z.ZodString;
4455
+ id: z.ZodString;
4456
+ revision: z.ZodString;
4457
+ }, z.core.$strict>;
4458
+ operations: z.ZodArray<z.ZodObject<{
4459
+ operator: z.ZodEnum<{
4460
+ $set: "$set";
4461
+ $unset: "$unset";
4462
+ $push: "$push";
4463
+ $pull: "$pull";
4464
+ }>;
4465
+ path: z.ZodString;
4466
+ matched: z.ZodNumber;
4467
+ }, z.core.$strict>>;
4468
+ dryRun: z.ZodLiteral<false>;
4469
+ artifact: z.ZodObject<{
4470
+ refClass: z.ZodLiteral<"artifact">;
4471
+ kind: z.ZodString;
4472
+ id: z.ZodString;
4473
+ revision: z.ZodString;
4474
+ }, z.core.$strict>;
4475
+ }, z.core.$strict>], "dryRun">, z.ZodObject<{
4476
+ ok: z.ZodLiteral<false>;
4477
+ error: z.ZodObject<{
4478
+ code: z.ZodEnum<{
4479
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
4480
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
4481
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
4482
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
4483
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
4484
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
4485
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
4486
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
4487
+ NO_MATCH: "NO_MATCH";
4488
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
4489
+ HOST_FAILED: "HOST_FAILED";
4490
+ }>;
4491
+ message: z.ZodString;
4492
+ operator: z.ZodOptional<z.ZodEnum<{
4493
+ $set: "$set";
4494
+ $unset: "$unset";
4495
+ $push: "$push";
4496
+ $pull: "$pull";
4497
+ }>>;
4498
+ path: z.ZodOptional<z.ZodString>;
4499
+ currentRevision: z.ZodOptional<z.ZodString>;
4500
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
4501
+ path: z.ZodString;
4502
+ reason: z.ZodString;
4503
+ expectedType: z.ZodOptional<z.ZodString>;
4504
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
4505
+ }, z.core.$strict>>>;
4506
+ repair: z.ZodString;
4507
+ }, z.core.$strict>;
4508
+ }, z.core.$strict>]>;
4263
4509
  }; /** Resolve a specific artifact revision by reference (RPC). */
4264
4510
  resolve: {
4265
4511
  request: z.ZodObject<{
@@ -6134,6 +6380,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
6134
6380
  * - `ArtifactSubjects.lifecycle.rejected` — supplemental rejected transition event
6135
6381
  * - `ArtifactSubjects.create` — create artifact (RPC)
6136
6382
  * - `ArtifactSubjects.revise` — revise artifact (RPC)
6383
+ * - `ArtifactSubjects.patch` — revise artifact by patch (RPC)
6137
6384
  * - `ArtifactSubjects.resolve` — resolve artifact by ref (RPC)
6138
6385
  * - `ArtifactSubjects.query` — query artifacts (RPC)
6139
6386
  * - `ArtifactSubjects.compare` — compare two revisions (RPC)
@@ -6876,6 +7123,111 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
6876
7123
  createdAt: z.ZodOptional<z.ZodNumber>;
6877
7124
  }, z.core.$strip>;
6878
7125
  }, z.core.$strip>;
7126
+ };
7127
+ /**
7128
+ * Revise an existing artifact by patching the revision named by `baseRevision` (RPC).
7129
+ *
7130
+ * The request carries the change rather than the payload, so its cost follows
7131
+ * the size of the change. Rejections are returned in band with the failing
7132
+ * path and a repair hint; a stale `baseRevision` reports the current revision
7133
+ * along with the repair the caller must follow — only an append at a fixed
7134
+ * path can be resent without re-reading the payload.
7135
+ */
7136
+ patch: {
7137
+ request: z.ZodObject<{
7138
+ ref: z.ZodObject<{
7139
+ kind: z.ZodString;
7140
+ id: z.ZodString;
7141
+ }, z.core.$strict>;
7142
+ baseRevision: z.ZodString;
7143
+ patch: z.ZodObject<{
7144
+ $set: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
7145
+ $unset: z.ZodOptional<z.ZodType<Record<string, true>, Record<string, true>, z.core.$ZodTypeInternals<Record<string, true>, Record<string, true>>>>;
7146
+ $push: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
7147
+ $pull: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
7148
+ arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
7149
+ }, z.core.$strict>;
7150
+ dryRun: z.ZodOptional<z.ZodBoolean>;
7151
+ statusPath: z.ZodOptional<z.ZodString>;
7152
+ }, z.core.$strict>;
7153
+ response: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
7154
+ ok: z.ZodLiteral<true>;
7155
+ base: z.ZodObject<{
7156
+ refClass: z.ZodLiteral<"artifact">;
7157
+ kind: z.ZodString;
7158
+ id: z.ZodString;
7159
+ revision: z.ZodString;
7160
+ }, z.core.$strict>;
7161
+ operations: z.ZodArray<z.ZodObject<{
7162
+ operator: z.ZodEnum<{
7163
+ $set: "$set";
7164
+ $unset: "$unset";
7165
+ $push: "$push";
7166
+ $pull: "$pull";
7167
+ }>;
7168
+ path: z.ZodString;
7169
+ matched: z.ZodNumber;
7170
+ }, z.core.$strict>>;
7171
+ dryRun: z.ZodLiteral<true>;
7172
+ }, z.core.$strict>, z.ZodObject<{
7173
+ ok: z.ZodLiteral<true>;
7174
+ base: z.ZodObject<{
7175
+ refClass: z.ZodLiteral<"artifact">;
7176
+ kind: z.ZodString;
7177
+ id: z.ZodString;
7178
+ revision: z.ZodString;
7179
+ }, z.core.$strict>;
7180
+ operations: z.ZodArray<z.ZodObject<{
7181
+ operator: z.ZodEnum<{
7182
+ $set: "$set";
7183
+ $unset: "$unset";
7184
+ $push: "$push";
7185
+ $pull: "$pull";
7186
+ }>;
7187
+ path: z.ZodString;
7188
+ matched: z.ZodNumber;
7189
+ }, z.core.$strict>>;
7190
+ dryRun: z.ZodLiteral<false>;
7191
+ artifact: z.ZodObject<{
7192
+ refClass: z.ZodLiteral<"artifact">;
7193
+ kind: z.ZodString;
7194
+ id: z.ZodString;
7195
+ revision: z.ZodString;
7196
+ }, z.core.$strict>;
7197
+ }, z.core.$strict>], "dryRun">, z.ZodObject<{
7198
+ ok: z.ZodLiteral<false>;
7199
+ error: z.ZodObject<{
7200
+ code: z.ZodEnum<{
7201
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
7202
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
7203
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
7204
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
7205
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
7206
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
7207
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
7208
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
7209
+ NO_MATCH: "NO_MATCH";
7210
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
7211
+ HOST_FAILED: "HOST_FAILED";
7212
+ }>;
7213
+ message: z.ZodString;
7214
+ operator: z.ZodOptional<z.ZodEnum<{
7215
+ $set: "$set";
7216
+ $unset: "$unset";
7217
+ $push: "$push";
7218
+ $pull: "$pull";
7219
+ }>>;
7220
+ path: z.ZodOptional<z.ZodString>;
7221
+ currentRevision: z.ZodOptional<z.ZodString>;
7222
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
7223
+ path: z.ZodString;
7224
+ reason: z.ZodString;
7225
+ expectedType: z.ZodOptional<z.ZodString>;
7226
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
7227
+ }, z.core.$strict>>>;
7228
+ repair: z.ZodString;
7229
+ }, z.core.$strict>;
7230
+ }, z.core.$strict>]>;
6879
7231
  }; /** Resolve a specific artifact revision by reference (RPC). */
6880
7232
  resolve: {
6881
7233
  request: z.ZodObject<{
@@ -8759,6 +9111,10 @@ type ArtifactCreateResponse = z.infer<(typeof ArtifactSchemas$1)['create']['resp
8759
9111
  type ArtifactReviseRequest = z.infer<(typeof ArtifactSchemas$1)['revise']['request']>;
8760
9112
  /** Response payload for creating a new artifact revision. */
8761
9113
  type ArtifactReviseResponse = z.infer<(typeof ArtifactSchemas$1)['revise']['response']>;
9114
+ /** Request payload for revising an artifact by patch. */
9115
+ type ArtifactPatchSubjectRequest = z.infer<(typeof ArtifactSchemas$1)['patch']['request']>;
9116
+ /** Response payload for revising an artifact by patch. */
9117
+ type ArtifactPatchSubjectResponse = z.infer<(typeof ArtifactSchemas$1)['patch']['response']>;
8762
9118
  /** Request payload for resolving an artifact by reference. */
8763
9119
  type ArtifactResolveRequest = z.infer<(typeof ArtifactSchemas$1)['resolve']['request']>;
8764
9120
  /** Response payload for resolving an artifact by reference. */
@@ -8787,12 +9143,39 @@ type ArtifactStatusChangedPayload = z.infer<(typeof ArtifactSchemas$1)['status.c
8787
9143
  type ArtifactKindChangedPayload = z.infer<(typeof ArtifactSchemas$1)['kind.changed']>;
8788
9144
  //#endregion
8789
9145
  //#region core/contracts/src/artifact/kind-paths.d.ts
9146
+ /** One schema declaration reachable at an inspected location. */
9147
+ type ArtifactSchemaFragment = boolean | Record<string, unknown>;
9148
+ /**
9149
+ * Location segment selecting one element of a declared array.
9150
+ *
9151
+ * Named-property paths cannot express it, so callers that address list entries
9152
+ * — a write addressing one collection entry, for instance — substitute this
9153
+ * token for the concrete position or match that selects the element. Schema
9154
+ * inspection is identical for either, because both resolve to the array's
9155
+ * declared item schema.
9156
+ *
9157
+ * The brackets are what make the token unambiguous: {@link ArtifactDataPathSchema}
9158
+ * admits no bracket in a property name, so no real property can be mistaken for
9159
+ * an element selector when a dotted path is split into segments.
9160
+ */
9161
+ declare const ARTIFACT_COLLECTION_ELEMENT_SEGMENT = "[]";
9162
+ /**
9163
+ * Inspect the serialized schema fragments selected by one data-relative location.
9164
+ *
9165
+ * Segments name object properties, or select one element of a declared array
9166
+ * through {@link ARTIFACT_COLLECTION_ELEMENT_SEGMENT}. Multiple fragments
9167
+ * represent the location's coverage across all schema variants.
9168
+ * @param dataSchema - Serialized artifact data schema.
9169
+ * @param segments - Data-relative location segments.
9170
+ * @returns Covered schema fragments, or undefined when the location is not declared in every variant.
9171
+ */
9172
+ declare function inspectArtifactDataLocation(dataSchema: Record<string, unknown>, segments: readonly string[]): readonly ArtifactSchemaFragment[] | undefined;
8790
9173
  /**
8791
9174
  * Determine whether a data-relative path is declared in every schema variant.
8792
9175
  *
8793
9176
  * Paths traverse named object properties only. A terminal array is valid and
8794
- * represents the complete original array; selecting its elements is outside
8795
- * this contract.
9177
+ * represents the complete original array; selecting its elements uses
9178
+ * {@link inspectArtifactDataLocation} with {@link ARTIFACT_COLLECTION_ELEMENT_SEGMENT}.
8796
9179
  * @param dataSchema - Serialized artifact data schema.
8797
9180
  * @param path - Data-relative object-property path.
8798
9181
  * @returns Whether the path is declared in every schema variant.
@@ -8806,6 +9189,457 @@ declare function isArtifactDataPathDeclared(dataSchema: Record<string, unknown>,
8806
9189
  */
8807
9190
  declare function readArtifactTitle(data: Record<string, unknown>, titlePath: string): string;
8808
9191
  //#endregion
9192
+ //#region core/contracts/src/artifact/patch.d.ts
9193
+ /**
9194
+ * Update operators this contract declares.
9195
+ *
9196
+ * The set is a deliberately narrow subset of Mongo update semantics. It is
9197
+ * closed: an operator outside this list is rejected by the request schema
9198
+ * rather than ignored, so a caller never believes an unsupported instruction
9199
+ * was carried out.
9200
+ */
9201
+ declare const ARTIFACT_PATCH_OPERATORS: readonly ["$set", "$unset", "$push", "$pull"];
9202
+ /** One declared update operator. */
9203
+ type ArtifactPatchOperator = (typeof ARTIFACT_PATCH_OPERATORS)[number];
9204
+ /**
9205
+ * A dot-separated location inside artifact `data`.
9206
+ *
9207
+ * The first segment is always an object property of `data`. Later segments are
9208
+ * an object property, a canonical array position (`tasks.3.title`), or an array
9209
+ * filter placeholder (`tasks.$[entry].title`) bound by `arrayFilters`. Filter
9210
+ * addressing is what keeps a write independent of the list order a caller read
9211
+ * earlier, so a concurrent insertion does not silently move the target.
9212
+ */
9213
+ declare const ArtifactPatchPathSchema: z.ZodString;
9214
+ /** What one segment of a patch path addresses. */
9215
+ type ArtifactPatchSegment = {
9216
+ readonly kind: 'property';
9217
+ readonly name: string;
9218
+ } | {
9219
+ readonly kind: 'index';
9220
+ readonly index: number;
9221
+ } | {
9222
+ readonly kind: 'filter';
9223
+ readonly placeholder: string;
9224
+ };
9225
+ /**
9226
+ * Classify one segment of a patch path.
9227
+ *
9228
+ * The grammar lives here alongside the pattern that admits it, so a caller
9229
+ * walking a path can never disagree with the schema that accepted it.
9230
+ * @param segment - One segment of a path already accepted by {@link ArtifactPatchPathSchema}.
9231
+ * @returns What the segment addresses.
9232
+ */
9233
+ declare function artifactPatchSegment(segment: string): ArtifactPatchSegment;
9234
+ /**
9235
+ * Split a patch path into its classified segments.
9236
+ * @param path - Path already accepted by {@link ArtifactPatchPathSchema}.
9237
+ * @returns One classified segment per path element, in order.
9238
+ */
9239
+ declare function artifactPatchSegments(path: string): ArtifactPatchSegment[];
9240
+ /**
9241
+ * List the array filter placeholders a patch path refers to.
9242
+ * @param path - Path already accepted by {@link ArtifactPatchPathSchema}.
9243
+ * @returns Placeholder names in order of appearance, with duplicates retained.
9244
+ */
9245
+ declare function artifactPatchPathFilterNames(path: string): string[];
9246
+ /**
9247
+ * One `arrayFilters` entry, restricted to equality on the matched element.
9248
+ *
9249
+ * Every key starts with the placeholder name this entry binds. The bare name
9250
+ * compares the whole element; `name.field.path` compares one property of it.
9251
+ * Comparison operators are outside the declared subset.
9252
+ */
9253
+ declare const ArtifactPatchArrayFilterSchema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
9254
+ /**
9255
+ * Read the placeholder name an array filter binds.
9256
+ * @param filter - One array filter entry.
9257
+ * @returns The single bound placeholder name, or undefined when the entry binds none or several.
9258
+ */
9259
+ declare function artifactPatchFilterName(filter: Record<string, unknown>): string | undefined;
9260
+ /** One instruction of a patch document: an operator, where it applies, and its operand. */
9261
+ interface ArtifactPatchInstruction {
9262
+ /** Operator to apply. */
9263
+ readonly operator: ArtifactPatchOperator;
9264
+ /** Path the operator applies to. */
9265
+ readonly path: string;
9266
+ /** Value or condition the caller wrote for this path. */
9267
+ readonly value: unknown;
9268
+ }
9269
+ /**
9270
+ * List every instruction of a patch document in application order.
9271
+ *
9272
+ * Operators run in the order {@link ARTIFACT_PATCH_OPERATORS} declares and,
9273
+ * within one operator, in the order the caller wrote its paths, so the same
9274
+ * document always produces the same result.
9275
+ *
9276
+ * The parameter is spelled structurally rather than as the document type,
9277
+ * because the document's own schema calls this while refining itself.
9278
+ * @param patch - Structurally valid patch operations.
9279
+ * @returns Operator, path and operand for each declared instruction.
9280
+ */
9281
+ declare function artifactPatchInstructions(patch: Readonly<Partial<Record<ArtifactPatchOperator, Readonly<Record<string, unknown>>>>>): ArtifactPatchInstruction[];
9282
+ /**
9283
+ * A complete patch document.
9284
+ *
9285
+ * Cross-field rules — at least one instruction, and placeholders matching their
9286
+ * filters exactly — are refinements. A JSON Schema rendering of this subject
9287
+ * therefore describes the operator set and the path grammar but not those
9288
+ * rules, exactly as for the other refined artifact contracts; the server
9289
+ * rejects a document that only the refinements catch.
9290
+ */
9291
+ declare const ArtifactPatchDocumentSchema: z.ZodObject<{
9292
+ $set: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9293
+ $unset: z.ZodOptional<z.ZodType<Record<string, true>, Record<string, true>, z.core.$ZodTypeInternals<Record<string, true>, Record<string, true>>>>;
9294
+ $push: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9295
+ $pull: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9296
+ arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
9297
+ }, z.core.$strict>;
9298
+ /** Identity of the artifact being revised; the revision travels as `baseRevision`. */
9299
+ declare const ArtifactPatchTargetSchema: z.ZodObject<{
9300
+ kind: z.ZodString;
9301
+ id: z.ZodString;
9302
+ }, z.core.$strict>;
9303
+ /**
9304
+ * Request one patch-based artifact revision.
9305
+ *
9306
+ * `baseRevision` is mandatory: the write applies to that exact revision or is
9307
+ * rejected, so a caller never overwrites a concurrent revision it never saw.
9308
+ * `statusPath` is the same caller-owned observation metadata a full `revise`
9309
+ * carries, so patching an artifact does not silently lose the status change a
9310
+ * host would otherwise emit.
9311
+ */
9312
+ declare const ArtifactPatchRequestSchema: z.ZodObject<{
9313
+ ref: z.ZodObject<{
9314
+ kind: z.ZodString;
9315
+ id: z.ZodString;
9316
+ }, z.core.$strict>;
9317
+ baseRevision: z.ZodString;
9318
+ patch: z.ZodObject<{
9319
+ $set: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9320
+ $unset: z.ZodOptional<z.ZodType<Record<string, true>, Record<string, true>, z.core.$ZodTypeInternals<Record<string, true>, Record<string, true>>>>;
9321
+ $push: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9322
+ $pull: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
9323
+ arrayFilters: z.ZodOptional<z.ZodArray<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>>;
9324
+ }, z.core.$strict>;
9325
+ dryRun: z.ZodOptional<z.ZodBoolean>;
9326
+ statusPath: z.ZodOptional<z.ZodString>;
9327
+ }, z.core.$strict>;
9328
+ /** Stable failure classifications for a patch request. */
9329
+ declare const ARTIFACT_PATCH_ERROR_CODES: readonly ["ARTIFACT_NOT_FOUND", "BASE_REVISION_CONFLICT", "KIND_NOT_REGISTERED", "SCHEMA_VERSION_MISMATCH", "PATH_NOT_DECLARED", "PATH_NOT_RESOLVABLE", "TARGET_NOT_A_COLLECTION", "UNSUPPORTED_TARGET", "NO_MATCH", "SCHEMA_VALIDATION_FAILED", "HOST_FAILED"];
9330
+ /** One reason the patched result was rejected, addressed within `data`. */
9331
+ declare const ArtifactPatchIssueSchema: z.ZodObject<{
9332
+ path: z.ZodString;
9333
+ reason: z.ZodString;
9334
+ expectedType: z.ZodOptional<z.ZodString>;
9335
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
9336
+ }, z.core.$strict>;
9337
+ /**
9338
+ * A rejected patch request.
9339
+ *
9340
+ * Every rejection names the failing location and carries a repair hint, so a
9341
+ * caller learns the next step from the rejection itself. The hint is what
9342
+ * distinguishes a correctable request from an outcome that is unknown, so it is
9343
+ * required rather than optional.
9344
+ *
9345
+ * A `BASE_REVISION_CONFLICT` additionally names the revision the artifact
9346
+ * carries: recovery from a conflict is rebasing onto that revision, so a
9347
+ * conflict without it would be unactionable. The schema enforces the pairing
9348
+ * rather than trusting each producer to remember it.
9349
+ */
9350
+ declare const ArtifactPatchErrorSchema: z.ZodObject<{
9351
+ code: z.ZodEnum<{
9352
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
9353
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
9354
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
9355
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
9356
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
9357
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
9358
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
9359
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9360
+ NO_MATCH: "NO_MATCH";
9361
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9362
+ HOST_FAILED: "HOST_FAILED";
9363
+ }>;
9364
+ message: z.ZodString;
9365
+ operator: z.ZodOptional<z.ZodEnum<{
9366
+ $set: "$set";
9367
+ $unset: "$unset";
9368
+ $push: "$push";
9369
+ $pull: "$pull";
9370
+ }>>;
9371
+ path: z.ZodOptional<z.ZodString>;
9372
+ currentRevision: z.ZodOptional<z.ZodString>;
9373
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
9374
+ path: z.ZodString;
9375
+ reason: z.ZodString;
9376
+ expectedType: z.ZodOptional<z.ZodString>;
9377
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
9378
+ }, z.core.$strict>>>;
9379
+ repair: z.ZodString;
9380
+ }, z.core.$strict>;
9381
+ /** What one applied instruction did. */
9382
+ declare const ArtifactPatchOperationResultSchema: z.ZodObject<{
9383
+ operator: z.ZodEnum<{
9384
+ $set: "$set";
9385
+ $unset: "$unset";
9386
+ $push: "$push";
9387
+ $pull: "$pull";
9388
+ }>;
9389
+ path: z.ZodString;
9390
+ matched: z.ZodNumber;
9391
+ }, z.core.$strict>;
9392
+ /** A patch that was applied, validated and discarded without producing history. */
9393
+ declare const ArtifactPatchDryRunSchema: z.ZodObject<{
9394
+ ok: z.ZodLiteral<true>;
9395
+ base: z.ZodObject<{
9396
+ refClass: z.ZodLiteral<"artifact">;
9397
+ kind: z.ZodString;
9398
+ id: z.ZodString;
9399
+ revision: z.ZodString;
9400
+ }, z.core.$strict>;
9401
+ operations: z.ZodArray<z.ZodObject<{
9402
+ operator: z.ZodEnum<{
9403
+ $set: "$set";
9404
+ $unset: "$unset";
9405
+ $push: "$push";
9406
+ $pull: "$pull";
9407
+ }>;
9408
+ path: z.ZodString;
9409
+ matched: z.ZodNumber;
9410
+ }, z.core.$strict>>;
9411
+ dryRun: z.ZodLiteral<true>;
9412
+ }, z.core.$strict>;
9413
+ /** A patch that was applied, validated and persisted as a new revision. */
9414
+ declare const ArtifactPatchPersistedSchema: z.ZodObject<{
9415
+ ok: z.ZodLiteral<true>;
9416
+ base: z.ZodObject<{
9417
+ refClass: z.ZodLiteral<"artifact">;
9418
+ kind: z.ZodString;
9419
+ id: z.ZodString;
9420
+ revision: z.ZodString;
9421
+ }, z.core.$strict>;
9422
+ operations: z.ZodArray<z.ZodObject<{
9423
+ operator: z.ZodEnum<{
9424
+ $set: "$set";
9425
+ $unset: "$unset";
9426
+ $push: "$push";
9427
+ $pull: "$pull";
9428
+ }>;
9429
+ path: z.ZodString;
9430
+ matched: z.ZodNumber;
9431
+ }, z.core.$strict>>;
9432
+ dryRun: z.ZodLiteral<false>;
9433
+ artifact: z.ZodObject<{
9434
+ refClass: z.ZodLiteral<"artifact">;
9435
+ kind: z.ZodString;
9436
+ id: z.ZodString;
9437
+ revision: z.ZodString;
9438
+ }, z.core.$strict>;
9439
+ }, z.core.$strict>;
9440
+ /**
9441
+ * An applied patch.
9442
+ *
9443
+ * The two variants keep `dryRun` and the new reference in step: a persisted
9444
+ * result always names its revision, and a dry run can never appear to have
9445
+ * produced one.
9446
+ */
9447
+ declare const ArtifactPatchSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9448
+ ok: z.ZodLiteral<true>;
9449
+ base: z.ZodObject<{
9450
+ refClass: z.ZodLiteral<"artifact">;
9451
+ kind: z.ZodString;
9452
+ id: z.ZodString;
9453
+ revision: z.ZodString;
9454
+ }, z.core.$strict>;
9455
+ operations: z.ZodArray<z.ZodObject<{
9456
+ operator: z.ZodEnum<{
9457
+ $set: "$set";
9458
+ $unset: "$unset";
9459
+ $push: "$push";
9460
+ $pull: "$pull";
9461
+ }>;
9462
+ path: z.ZodString;
9463
+ matched: z.ZodNumber;
9464
+ }, z.core.$strict>>;
9465
+ dryRun: z.ZodLiteral<true>;
9466
+ }, z.core.$strict>, z.ZodObject<{
9467
+ ok: z.ZodLiteral<true>;
9468
+ base: z.ZodObject<{
9469
+ refClass: z.ZodLiteral<"artifact">;
9470
+ kind: z.ZodString;
9471
+ id: z.ZodString;
9472
+ revision: z.ZodString;
9473
+ }, z.core.$strict>;
9474
+ operations: z.ZodArray<z.ZodObject<{
9475
+ operator: z.ZodEnum<{
9476
+ $set: "$set";
9477
+ $unset: "$unset";
9478
+ $push: "$push";
9479
+ $pull: "$pull";
9480
+ }>;
9481
+ path: z.ZodString;
9482
+ matched: z.ZodNumber;
9483
+ }, z.core.$strict>>;
9484
+ dryRun: z.ZodLiteral<false>;
9485
+ artifact: z.ZodObject<{
9486
+ refClass: z.ZodLiteral<"artifact">;
9487
+ kind: z.ZodString;
9488
+ id: z.ZodString;
9489
+ revision: z.ZodString;
9490
+ }, z.core.$strict>;
9491
+ }, z.core.$strict>], "dryRun">;
9492
+ /**
9493
+ * A rejected patch.
9494
+ *
9495
+ * A rejection by the engine — an undeclared path, an unmatched filter, a result
9496
+ * the kind schema refuses — and a `BASE_REVISION_CONFLICT`, whether the stale
9497
+ * base revision was caught before the write or the store refused it, all
9498
+ * guarantee that nothing was persisted. `HOST_FAILED` does not: a host that
9499
+ * failed while persisting may have committed the write before the failure
9500
+ * surfaced, so the outcome is unknown and the caller must re-read before
9501
+ * retrying. The error's `repair` says which case this is.
9502
+ */
9503
+ declare const ArtifactPatchFailureSchema: z.ZodObject<{
9504
+ ok: z.ZodLiteral<false>;
9505
+ error: z.ZodObject<{
9506
+ code: z.ZodEnum<{
9507
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
9508
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
9509
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
9510
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
9511
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
9512
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
9513
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
9514
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9515
+ NO_MATCH: "NO_MATCH";
9516
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9517
+ HOST_FAILED: "HOST_FAILED";
9518
+ }>;
9519
+ message: z.ZodString;
9520
+ operator: z.ZodOptional<z.ZodEnum<{
9521
+ $set: "$set";
9522
+ $unset: "$unset";
9523
+ $push: "$push";
9524
+ $pull: "$pull";
9525
+ }>>;
9526
+ path: z.ZodOptional<z.ZodString>;
9527
+ currentRevision: z.ZodOptional<z.ZodString>;
9528
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
9529
+ path: z.ZodString;
9530
+ reason: z.ZodString;
9531
+ expectedType: z.ZodOptional<z.ZodString>;
9532
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
9533
+ }, z.core.$strict>>>;
9534
+ repair: z.ZodString;
9535
+ }, z.core.$strict>;
9536
+ }, z.core.$strict>;
9537
+ /**
9538
+ * Outcome of a patch request.
9539
+ *
9540
+ * Rejections are in-band results rather than transport errors: they are the
9541
+ * expected way an agent learns which path to correct, and they must survive the
9542
+ * MCP facade unchanged.
9543
+ */
9544
+ declare const ArtifactPatchResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
9545
+ ok: z.ZodLiteral<true>;
9546
+ base: z.ZodObject<{
9547
+ refClass: z.ZodLiteral<"artifact">;
9548
+ kind: z.ZodString;
9549
+ id: z.ZodString;
9550
+ revision: z.ZodString;
9551
+ }, z.core.$strict>;
9552
+ operations: z.ZodArray<z.ZodObject<{
9553
+ operator: z.ZodEnum<{
9554
+ $set: "$set";
9555
+ $unset: "$unset";
9556
+ $push: "$push";
9557
+ $pull: "$pull";
9558
+ }>;
9559
+ path: z.ZodString;
9560
+ matched: z.ZodNumber;
9561
+ }, z.core.$strict>>;
9562
+ dryRun: z.ZodLiteral<true>;
9563
+ }, z.core.$strict>, z.ZodObject<{
9564
+ ok: z.ZodLiteral<true>;
9565
+ base: z.ZodObject<{
9566
+ refClass: z.ZodLiteral<"artifact">;
9567
+ kind: z.ZodString;
9568
+ id: z.ZodString;
9569
+ revision: z.ZodString;
9570
+ }, z.core.$strict>;
9571
+ operations: z.ZodArray<z.ZodObject<{
9572
+ operator: z.ZodEnum<{
9573
+ $set: "$set";
9574
+ $unset: "$unset";
9575
+ $push: "$push";
9576
+ $pull: "$pull";
9577
+ }>;
9578
+ path: z.ZodString;
9579
+ matched: z.ZodNumber;
9580
+ }, z.core.$strict>>;
9581
+ dryRun: z.ZodLiteral<false>;
9582
+ artifact: z.ZodObject<{
9583
+ refClass: z.ZodLiteral<"artifact">;
9584
+ kind: z.ZodString;
9585
+ id: z.ZodString;
9586
+ revision: z.ZodString;
9587
+ }, z.core.$strict>;
9588
+ }, z.core.$strict>], "dryRun">, z.ZodObject<{
9589
+ ok: z.ZodLiteral<false>;
9590
+ error: z.ZodObject<{
9591
+ code: z.ZodEnum<{
9592
+ ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
9593
+ BASE_REVISION_CONFLICT: "BASE_REVISION_CONFLICT";
9594
+ KIND_NOT_REGISTERED: "KIND_NOT_REGISTERED";
9595
+ SCHEMA_VERSION_MISMATCH: "SCHEMA_VERSION_MISMATCH";
9596
+ PATH_NOT_DECLARED: "PATH_NOT_DECLARED";
9597
+ PATH_NOT_RESOLVABLE: "PATH_NOT_RESOLVABLE";
9598
+ TARGET_NOT_A_COLLECTION: "TARGET_NOT_A_COLLECTION";
9599
+ UNSUPPORTED_TARGET: "UNSUPPORTED_TARGET";
9600
+ NO_MATCH: "NO_MATCH";
9601
+ SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9602
+ HOST_FAILED: "HOST_FAILED";
9603
+ }>;
9604
+ message: z.ZodString;
9605
+ operator: z.ZodOptional<z.ZodEnum<{
9606
+ $set: "$set";
9607
+ $unset: "$unset";
9608
+ $push: "$push";
9609
+ $pull: "$pull";
9610
+ }>>;
9611
+ path: z.ZodOptional<z.ZodString>;
9612
+ currentRevision: z.ZodOptional<z.ZodString>;
9613
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
9614
+ path: z.ZodString;
9615
+ reason: z.ZodString;
9616
+ expectedType: z.ZodOptional<z.ZodString>;
9617
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>>>;
9618
+ }, z.core.$strict>>>;
9619
+ repair: z.ZodString;
9620
+ }, z.core.$strict>;
9621
+ }, z.core.$strict>]>;
9622
+ /** One array filter entry restricted to equality matching. */
9623
+ type ArtifactPatchArrayFilter = z.infer<typeof ArtifactPatchArrayFilterSchema>;
9624
+ /** A complete patch document. */
9625
+ type ArtifactPatchDocument = z.infer<typeof ArtifactPatchDocumentSchema>;
9626
+ /** Artifact identity addressed by a patch request. */
9627
+ type ArtifactPatchTarget = z.infer<typeof ArtifactPatchTargetSchema>;
9628
+ /** Request payload for one patch-based artifact revision. */
9629
+ type ArtifactPatchRequest = z.infer<typeof ArtifactPatchRequestSchema>;
9630
+ /** Stable failure classification for a patch request. */
9631
+ type ArtifactPatchErrorCode = (typeof ARTIFACT_PATCH_ERROR_CODES)[number];
9632
+ /** One schema rejection of a patched result. */
9633
+ type ArtifactPatchIssue = z.infer<typeof ArtifactPatchIssueSchema>;
9634
+ /** A rejected patch request. */
9635
+ type ArtifactPatchError = z.infer<typeof ArtifactPatchErrorSchema>;
9636
+ /** What one applied instruction did. */
9637
+ type ArtifactPatchOperationResult = z.infer<typeof ArtifactPatchOperationResultSchema>;
9638
+ /** An applied patch outcome. */
9639
+ type ArtifactPatchSuccess = z.infer<typeof ArtifactPatchSuccessSchema>;
9640
+ /** Outcome of a patch request. */
9641
+ type ArtifactPatchResponse = z.infer<typeof ArtifactPatchResponseSchema>;
9642
+ //#endregion
8809
9643
  //#region core/contracts/src/artifact/lifecycle.d.ts
8810
9644
  /**
8811
9645
  * An artifact identity independent of its immutable content revisions. The `refClass`
@@ -10468,4 +11302,4 @@ type ArtifactLifecycleFailure = z.infer<typeof ArtifactLifecycleFailureSchema>;
10468
11302
  /** Supplemental reaction input following a rejected valid transition request. */
10469
11303
  type ArtifactLifecycleRejectedPayload = z.infer<typeof ArtifactLifecycleRejectedPayloadSchema>;
10470
11304
  //#endregion
10471
- export { ArtifactKindListResponse as $, ArtifactLifecycleHookEvent as $t, ArtifactLifecycleSituation as A, ResolvedArtifactContextWire$1 as At, ArtifactLifecycleVersionSchema as B, ArtifactDataValidator as Bt, ArtifactLifecycleHistoryEntry as C, ArtifactContextTree as Ct, ArtifactLifecycleInitializedEntrySchema as D, ArtifactContextRefEntrySchema as Dt, ArtifactLifecycleInitializedEntry as E, ArtifactContextRefEntry as Et, ArtifactLifecycleTransitionCommandSchema as F, ArtifactContextRelationSelectorSchema as Ft, readArtifactTitle as G, ArtifactOf as Gt, initialArtifactLifecycle as H, AnyArtifactKindDefinition as Ht, ArtifactLifecycleTransitionIntent as I, ArtifactContextRenderHint as It, ArtifactCreatedPayload as J, AfterArtifactHookRegistration as Jt, ArtifactCreateRequest as K, defineArtifactKind as Kt, ArtifactLifecycleTransitionIntentSchema as L, ArtifactContextRenderHintSchema as Lt, ArtifactLifecycleSnapshot as M, ARTIFACT_CONTEXT_RENDER_HINTS as Mt, ArtifactLifecycleSnapshotSchema as N, ArtifactContextKnownRenderHint as Nt, ArtifactLifecycleRejection as O, ArtifactContextUnresolvedReason as Ot, ArtifactLifecycleTransitionCommand as P, ArtifactContextRelationSelector as Pt, ArtifactKindListRequest as Q, ArtifactLifecycleHookDefinition as Qt, ArtifactLifecycleTransitionedEntry as R, ArtifactContextSelector$1 as Rt, ArtifactLifecycleError as S, ArtifactContextRootNode as St, ArtifactLifecycleIdentitySchema as T, UnresolvedArtifactContextNode as Tt, isArtifactLifecycleTransitionAllowed as U, ArtifactDataOf as Ut, advanceArtifactLifecycle as V, compileArtifactDataSchema as Vt, isArtifactDataPathDeclared as W, ArtifactKindDefinition as Wt, ArtifactEvidenceResolveResponse$1 as X, ArtifactDraftPatch as Xt, ArtifactEvidenceResolveRequest as Y, ArtifactDraft as Yt, ArtifactKindChangedPayload as Z, ArtifactHookFilter as Zt, ArtifactLifecycleTransitionResponseSchema as _, ArtifactSchemas$1 as _t, ArtifactLifecycleGetRequest as a, EvidenceOccurrence as an, ArtifactRelationAddedPayload as at, ArtifactLifecycleCurrent as b, hydrateArtifactContextTree as bt, ArtifactLifecycleGetResponseSchema as c, EvidenceResolveRequest as cn, ArtifactRelationTypeRegisterRequest as ct, ArtifactLifecycleHistoryResponse as d, EvidenceResolveResponseSchema as dn, ArtifactResolveContextResponse as dt, ArtifactLifecycleHookRegistration$1 as en, ArtifactKindRegisterRequest as et, ArtifactLifecycleHistoryResponseSchema as f, ARTIFACT_VALUE_TYPE_KEYWORD as fn, ArtifactResolveRequest as ft, ArtifactLifecycleTransitionResponse as g, ArtifactRevisedPayload as gt, ArtifactLifecycleSchemas as h, EvidenceValueSchema$1 as hn, ArtifactReviseResponse as ht, ArtifactLifecycleFailureSchema as i, defineArtifactLifecycleHooks as in, ArtifactQueryResponse as it, ArtifactLifecycleSituationSchema as j, ResolvedArtifactContextWireSchema as jt, ArtifactLifecycleRejectionSchema as k, ArtifactContextUnresolvedReasonSchema as kt, ArtifactLifecycleHistoryRequest as l, EvidenceResolveRequestSchema as ln, ArtifactRelationTypeRegisterResponse as lt, ArtifactLifecycleRejectedPayloadSchema as m, EvidenceValue$1 as mn, ArtifactReviseRequest as mt, ArtifactLifecycleCommittedPayloadSchema as n, BeforeArtifactHookContext as nn, ArtifactNamespace as nt, ArtifactLifecycleGetRequestSchema as o, EvidenceOccurrenceExtractionOptions as on, ArtifactRelationTypeListRequest as ot, ArtifactLifecycleRejectedPayload as p, EVIDENCE_VALUE_TYPE as pn, ArtifactResolveResponse as pt, ArtifactCreateResponse as q, AfterArtifactHookContext as qt, ArtifactLifecycleFailure as r, BeforeArtifactHookRegistration as rn, ArtifactObservationAddedPayload as rt, ArtifactLifecycleGetResponse as s, extractEvidenceOccurrences as sn, ArtifactRelationTypeListResponse as st, ArtifactLifecycleCommittedPayload as t, ArtifactLifecycleSemanticEvent as tn, ArtifactKindRegisterResponse as tt, ArtifactLifecycleHistoryRequestSchema as u, EvidenceResolveResponse as un, ArtifactResolveContextRequest as ut, toArtifactLifecycleFailure as v, ArtifactStatusChangedPayload as vt, ArtifactLifecycleHistoryEntrySchema as w, ResolvedArtifactContextNode as wt, ArtifactLifecycleCurrentSchema as x, ArtifactContextNode as xt, ARTIFACT_LIFECYCLE_REJECTED_CODE as y, ArtifactSubjects$1 as yt, ArtifactLifecycleTransitionedEntrySchema as z, ArtifactContextSelectorSchema as zt };
11305
+ export { ArtifactPatchErrorSchema as $, EvidenceResolveResponseSchema as $n, ArtifactReviseResponse as $t, ArtifactLifecycleSituation as A, AnyArtifactKindDefinition as An, ArtifactCreatedPayload as At, ArtifactLifecycleVersionSchema as B, ArtifactLifecycleHookDefinition as Bn, ArtifactPatchSubjectRequest as Bt, ArtifactLifecycleHistoryEntry as C, ArtifactContextSelectorSchema as Cn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Ct, ArtifactLifecycleInitializedEntrySchema as D, ArtifactDataValidator as Dn, readArtifactTitle as Dt, ArtifactLifecycleInitializedEntry as E, ArtifactDataIssue as En, isArtifactDataPathDeclared as Et, ArtifactLifecycleTransitionCommandSchema as F, AfterArtifactHookContext as Fn, ArtifactKindListResponse as Ft, ARTIFACT_PATCH_OPERATORS as G, BeforeArtifactHookRegistration as Gn, ArtifactRelationTypeListResponse as Gt, initialArtifactLifecycle as H, ArtifactLifecycleHookRegistration$1 as Hn, ArtifactQueryResponse as Ht, ArtifactLifecycleTransitionIntent as I, AfterArtifactHookRegistration as In, ArtifactKindRegisterRequest as It, ArtifactPatchDocument as J, EvidenceOccurrenceExtractionOptions as Jn, ArtifactResolveContextRequest as Jt, ArtifactPatchArrayFilter as K, defineArtifactLifecycleHooks as Kn, ArtifactRelationTypeRegisterRequest as Kt, ArtifactLifecycleTransitionIntentSchema as L, ArtifactDraft as Ln, ArtifactKindRegisterResponse as Lt, ArtifactLifecycleSnapshot as M, ArtifactKindDefinition as Mn, ArtifactEvidenceResolveResponse$1 as Mt, ArtifactLifecycleSnapshotSchema as N, ArtifactOf as Nn, ArtifactKindChangedPayload as Nt, ArtifactLifecycleRejection as O, compileArtifactDataChecker as On, ArtifactCreateRequest as Ot, ArtifactLifecycleTransitionCommand as P, defineArtifactKind as Pn, ArtifactKindListRequest as Pt, ArtifactPatchErrorCode as Q, EvidenceResolveResponse as Qn, ArtifactReviseRequest as Qt, ArtifactLifecycleTransitionedEntry as R, ArtifactDraftPatch as Rn, ArtifactNamespace as Rt, ArtifactLifecycleError as S, ArtifactContextSelector$1 as Sn, artifactPatchSegments as St, ArtifactLifecycleIdentitySchema as T, ArtifactDataChecker as Tn, inspectArtifactDataLocation as Tt, isArtifactLifecycleTransitionAllowed as U, ArtifactLifecycleSemanticEvent as Un, ArtifactRelationAddedPayload as Ut, advanceArtifactLifecycle as V, ArtifactLifecycleHookEvent as Vn, ArtifactPatchSubjectResponse as Vt, ARTIFACT_PATCH_ERROR_CODES as W, BeforeArtifactHookContext as Wn, ArtifactRelationTypeListRequest as Wt, ArtifactPatchDryRunSchema as X, EvidenceResolveRequest as Xn, ArtifactResolveRequest as Xt, ArtifactPatchDocumentSchema as Y, extractEvidenceOccurrences as Yn, ArtifactResolveContextResponse as Yt, ArtifactPatchError as Z, EvidenceResolveRequestSchema as Zn, ArtifactResolveResponse as Zt, ArtifactLifecycleTransitionResponseSchema as _, ArtifactContextKnownRenderHint as _n, ArtifactPatchTargetSchema as _t, ArtifactLifecycleGetRequest as a, ArtifactContextNode as an, ArtifactPatchOperationResultSchema as at, ArtifactLifecycleCurrent as b, ArtifactContextRenderHint as bn, artifactPatchPathFilterNames as bt, ArtifactLifecycleGetResponseSchema as c, ResolvedArtifactContextNode as cn, ArtifactPatchPersistedSchema as ct, ArtifactLifecycleHistoryResponse as d, ArtifactContextRefEntrySchema as dn, ArtifactPatchResponse as dt, ArtifactRevisedPayload as en, ARTIFACT_VALUE_TYPE_KEYWORD as er, ArtifactPatchFailureSchema as et, ArtifactLifecycleHistoryResponseSchema as f, ArtifactContextUnresolvedReason as fn, ArtifactPatchResponseSchema as ft, ArtifactLifecycleTransitionResponse as g, ARTIFACT_CONTEXT_RENDER_HINTS as gn, ArtifactPatchTarget as gt, ArtifactLifecycleSchemas as h, ResolvedArtifactContextWireSchema as hn, ArtifactPatchSuccessSchema as ht, ArtifactLifecycleFailureSchema as i, hydrateArtifactContextTree as in, ArtifactPatchOperationResult as it, ArtifactLifecycleSituationSchema as j, ArtifactDataOf as jn, ArtifactEvidenceResolveRequest as jt, ArtifactLifecycleRejectionSchema as k, compileArtifactDataSchema as kn, ArtifactCreateResponse as kt, ArtifactLifecycleHistoryRequest as l, UnresolvedArtifactContextNode as ln, ArtifactPatchRequest as lt, ArtifactLifecycleRejectedPayloadSchema as m, ResolvedArtifactContextWire$1 as mn, ArtifactPatchSuccess as mt, ArtifactLifecycleCommittedPayloadSchema as n, ArtifactStatusChangedPayload as nn, EvidenceValue$1 as nr, ArtifactPatchIssue as nt, ArtifactLifecycleGetRequestSchema as o, ArtifactContextRootNode as on, ArtifactPatchOperator as ot, ArtifactLifecycleRejectedPayload as p, ArtifactContextUnresolvedReasonSchema as pn, ArtifactPatchSegment as pt, ArtifactPatchArrayFilterSchema as q, EvidenceOccurrence as qn, ArtifactRelationTypeRegisterResponse as qt, ArtifactLifecycleFailure as r, ArtifactSubjects$1 as rn, EvidenceValueSchema$1 as rr, ArtifactPatchIssueSchema as rt, ArtifactLifecycleGetResponse as s, ArtifactContextTree as sn, ArtifactPatchPathSchema as st, ArtifactLifecycleCommittedPayload as t, ArtifactSchemas$1 as tn, EVIDENCE_VALUE_TYPE as tr, ArtifactPatchInstruction as tt, ArtifactLifecycleHistoryRequestSchema as u, ArtifactContextRefEntry as un, ArtifactPatchRequestSchema as ut, toArtifactLifecycleFailure as v, ArtifactContextRelationSelector as vn, artifactPatchFilterName as vt, ArtifactLifecycleHistoryEntrySchema as w, ArtifactDataCheck as wn, ArtifactSchemaFragment as wt, ArtifactLifecycleCurrentSchema as x, ArtifactContextRenderHintSchema as xn, artifactPatchSegment as xt, ARTIFACT_LIFECYCLE_REJECTED_CODE as y, ArtifactContextRelationSelectorSchema as yn, artifactPatchInstructions as yt, ArtifactLifecycleTransitionedEntrySchema as z, ArtifactHookFilter as zn, ArtifactObservationAddedPayload as zt };