@makaio/framework 1.0.0-dev-1782135086866 → 1.0.0-dev-1782480236258

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 (95) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-D5TUafYg.mjs → account-identity-C7Kx_ieU.mjs} +1 -1
  3. package/dist/{adapter-Deu9viD2.mjs → adapter-DaQqmKOJ.mjs} +1 -1
  4. package/dist/adapter-subsystem/index.mjs +1 -1
  5. package/dist/artifact-CGjnoyCC.mjs +1 -0
  6. package/dist/bus/index.mjs +1 -1
  7. package/dist/{canonical-model-BM5WAnQW.mjs → canonical-model-DV-Z8gsb.mjs} +1 -1
  8. package/dist/{client-BO-0jTSV.mjs → client-BcfR-LJC.mjs} +1 -1
  9. package/dist/{compression-CXEHx0rS.mjs → compression-C5JAWdgZ.mjs} +1 -1
  10. package/dist/contracts/adapter/index.d.mts +2 -2
  11. package/dist/contracts/adapter/index.mjs +1 -1
  12. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  13. package/dist/contracts/artifact/index.d.mts +2 -2
  14. package/dist/contracts/artifact/index.mjs +1 -1
  15. package/dist/contracts/canonical-model/index.mjs +1 -1
  16. package/dist/contracts/client/index.d.mts +1 -1
  17. package/dist/contracts/client/index.mjs +1 -1
  18. package/dist/contracts/config/index.mjs +1 -1
  19. package/dist/contracts/extension/index.d.mts +2 -2
  20. package/dist/contracts/extension/index.mjs +1 -1
  21. package/dist/contracts/harness/index.d.mts +1 -1
  22. package/dist/contracts/index.d.mts +38 -38
  23. package/dist/contracts/index.mjs +1 -1
  24. package/dist/contracts/materialization/index.d.mts +1 -1
  25. package/dist/contracts/materialization/index.mjs +1 -1
  26. package/dist/contracts/provider/index.mjs +1 -1
  27. package/dist/contracts/session/index.d.mts +2 -2
  28. package/dist/contracts/session/index.mjs +1 -1
  29. package/dist/contracts/shared/index.mjs +1 -1
  30. package/dist/contracts/workflow/index.d.mts +2 -2
  31. package/dist/contracts/workflow/index.mjs +1 -1
  32. package/dist/{definition-BJ_975aA.mjs → definition-C-GVz7uw.mjs} +1 -1
  33. package/dist/{extension-CfL70C5n.mjs → extension-BS_4BOeO.mjs} +1 -1
  34. package/dist/{extension-DZqYHmhK.mjs → extension-CJClssfp.mjs} +1 -1
  35. package/dist/{index-CcAggMuC.d.mts → index-0WhPbKnH.d.mts} +792 -16
  36. package/dist/{index-2fK9iSHI.d.mts → index-B1XsbrAr.d.mts} +3 -3
  37. package/dist/{index-BvjLe_w9.d.mts → index-B5w-0Gg9.d.mts} +12 -12
  38. package/dist/{index-CUSOL0X_.d.mts → index-BKZhnb2B.d.mts} +3 -3
  39. package/dist/{index-D2WJ0Zpt.d.mts → index-BhOLtp0B.d.mts} +21 -21
  40. package/dist/{index-bRLjj6L4.d.mts → index-C6SLILCZ.d.mts} +99 -99
  41. package/dist/{index-5v0jVUGD.d.mts → index-Clqt7Nm3.d.mts} +2 -2
  42. package/dist/{index-pUYIAV_M.d.mts → index-Cvjnj7Zh.d.mts} +6 -6
  43. package/dist/{index-BAQ6QBcU.d.mts → index-Cyi7y_aG.d.mts} +4 -4
  44. package/dist/{index-DvLCzle5.d.mts → index-D4gn93gL.d.mts} +16 -16
  45. package/dist/{index-BvFjmhZj.d.mts → index-D8ScOpus.d.mts} +19 -19
  46. package/dist/{index-DIKiA3Sr.d.mts → index-DsLpP5ek.d.mts} +9 -9
  47. package/dist/{index-CqCe7Phc.d.mts → index-mU2lnU7O.d.mts} +6 -6
  48. package/dist/kernel/extension/index.d.mts +1 -1
  49. package/dist/kernel/extension/index.mjs +1 -1
  50. package/dist/kernel/index.d.mts +2 -2
  51. package/dist/kernel/index.mjs +1 -1
  52. package/dist/kernel/observability/index.d.mts +1 -1
  53. package/dist/{materialization-DBXjSiBn.mjs → materialization-CUYxZCfk.mjs} +1 -1
  54. package/dist/{namespace-Bv8B89uB.d.mts → namespace-BeMGmLrp.d.mts} +9 -9
  55. package/dist/{namespace-BMglTf9p.d.mts → namespace-Bmi5bjm4.d.mts} +42 -42
  56. package/dist/{namespace-B95uYmZB.d.mts → namespace-CGxFYDlK.d.mts} +6 -6
  57. package/dist/package.json +1 -1
  58. package/dist/{provider-context-DjSUpHSM.mjs → provider-context-CqMgPOWF.mjs} +1 -1
  59. package/dist/runtime-node/index.mjs +1 -1
  60. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  61. package/dist/{schema-GFRQiPk0.d.mts → schema-Bf_ZNjif.d.mts} +2 -2
  62. package/dist/{schemas-TQPiRl642.d.mts → schemas-C6TVJ80V2.d.mts} +2 -2
  63. package/dist/{schemas-CE1gbhxu.mjs → schemas-CuG17U3L.mjs} +1 -1
  64. package/dist/{schemas-bfhY9W6A.mjs → schemas-uID59wR8.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/context-rules/index.d.mts +3 -3
  68. package/dist/services/execution-target/index.d.mts +1 -1
  69. package/dist/services/filesystem/namespace.d.mts +6 -6
  70. package/dist/services/filesystem/schemas.d.mts +3 -3
  71. package/dist/services/git/namespace.d.mts +2 -2
  72. package/dist/services/git/schemas.d.mts +1 -1
  73. package/dist/services/harness/index.d.mts +3 -3
  74. package/dist/services/index.d.mts +62 -19
  75. package/dist/services/index.mjs +1 -1
  76. package/dist/services/session/index.d.mts +4 -4
  77. package/dist/services/session/session-events/namespace.d.mts +1 -1
  78. package/dist/services/session/storage/namespace.d.mts +1 -1
  79. package/dist/services/session/storage/schema.d.mts +1 -1
  80. package/dist/services/settings/namespace.d.mts +5 -5
  81. package/dist/services/subagent-template/index.d.mts +1 -1
  82. package/dist/services/subagent-template/schemas.d.mts +1 -1
  83. package/dist/{session-CpVSzgkZ.mjs → session-DH-ja8Ka.mjs} +1 -1
  84. package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-5-wRBzuC.d.mts} +1 -1
  85. package/dist/{shared-DpOEfD8F.mjs → shared-BVW-3Dhy.mjs} +1 -1
  86. package/dist/{transition-Cufc_u3_.d.mts → transition-CBjccCMw.d.mts} +1 -1
  87. package/dist/{types-CNIsRx86.d.mts → types-8rhArs_K.d.mts} +36 -36
  88. package/dist/{workflow-BCKOJ4UC.mjs → workflow-BqH6ar-D.mjs} +1 -1
  89. package/dist/workflow-engine/index.d.mts +23 -23
  90. package/dist/workflow-worker-dH70EbjE.mjs +1 -0
  91. package/package.json +2 -2
  92. package/dist/artifact-B3npq1cy.mjs +0 -1
  93. package/dist/workflow-worker-BIpYi6o7.mjs +0 -1
  94. /package/dist/{json-value-CmhSGMLv.mjs → json-value-DmU8ibo_.mjs} +0 -0
  95. /package/dist/{schemas-CR1Rripy.mjs → schemas-DlrQ0227.mjs} +0 -0
@@ -462,9 +462,9 @@ declare const ArtifactKindRegistrationSchema: z.ZodObject<{
462
462
  lifecycle: z.ZodOptional<z.ZodObject<{
463
463
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
464
464
  active: "active";
465
+ archived: "archived";
465
466
  fading: "fading";
466
467
  retired: "retired";
467
- archived: "archived";
468
468
  }>>;
469
469
  decayPolicy: z.ZodOptional<z.ZodString>;
470
470
  }, z.core.$strip>>;
@@ -495,6 +495,7 @@ declare const ArtifactKindRegistrationSchema: z.ZodObject<{
495
495
  }>>;
496
496
  }, z.core.$strip>>>;
497
497
  }, z.core.$strip>>;
498
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
498
499
  }, z.core.$strip>;
499
500
  /**
500
501
  * Registration record for a named relation type.
@@ -782,7 +783,7 @@ type ArtifactScope = z.infer<typeof ArtifactScopeSchema>;
782
783
  /** Scope descriptor for artifact query filters. */
783
784
  type ArtifactQueryScope = z.infer<typeof ArtifactQueryScopeSchema>;
784
785
  /** Immutable pointer to a specific artifact revision. */
785
- type ArtifactRef = z.infer<typeof ArtifactRefSchema>;
786
+ type ArtifactRef$1 = z.infer<typeof ArtifactRefSchema>;
786
787
  /** Pointer to a named sub-element within a specific artifact revision. */
787
788
  type LocalRef = z.infer<typeof LocalRefSchema>;
788
789
  /** Pointer to external evidence outside the artifact store. */
@@ -827,6 +828,43 @@ type ArtifactCompareRequest = z.infer<typeof ArtifactCompareRequestSchema>;
827
828
  /** Result of comparing two artifact revisions. */
828
829
  type ArtifactCompareResponse = z.infer<typeof ArtifactCompareResponseSchema>;
829
830
  //#endregion
831
+ //#region core/contracts/src/artifact/context-selectors.d.ts
832
+ /** Known render hints for artifact context resolution. */
833
+ declare const ARTIFACT_CONTEXT_RENDER_HINTS: readonly ["inline", "summary", "link", "omit"];
834
+ /** A known render hint from the initial vocabulary. */
835
+ type ArtifactContextKnownRenderHint = (typeof ARTIFACT_CONTEXT_RENDER_HINTS)[number];
836
+ /**
837
+ * Render hint for artifact context entries.
838
+ *
839
+ * Starts with a closed initial vocabulary but the runtime schema accepts
840
+ * any non-empty string so product code can extend the vocabulary without
841
+ * a contract change.
842
+ */
843
+ type ArtifactContextRenderHint = ArtifactContextKnownRenderHint | (string & {});
844
+ /**
845
+ * Per-relation selector controlling which outbound relations to follow
846
+ * and how to render the resolved context.
847
+ */
848
+ interface ArtifactContextRelationSelector {
849
+ readonly kinds?: readonly string[];
850
+ readonly hint?: ArtifactContextRenderHint;
851
+ readonly depth?: number;
852
+ readonly nested?: ArtifactContextSelector$1;
853
+ }
854
+ /**
855
+ * Map from relation type to per-relation selector.
856
+ *
857
+ * Only relation types present in the map are followed during resolution.
858
+ * Missing relation types fall through to kind defaults when available.
859
+ */
860
+ type ArtifactContextSelector$1 = Readonly<Record<string, ArtifactContextRelationSelector>>;
861
+ /** Runtime schema for render hint strings. Accepts any non-empty string. */
862
+ declare const ArtifactContextRenderHintSchema: z.ZodString;
863
+ /** Runtime schema for per-relation selectors. */
864
+ declare const ArtifactContextRelationSelectorSchema: z.ZodType<ArtifactContextRelationSelector, ArtifactContextRelationSelector>;
865
+ /** Runtime schema for selector maps keyed by relation type. */
866
+ declare const ArtifactContextSelectorSchema: z.ZodType<ArtifactContextSelector$1, ArtifactContextSelector$1>;
867
+ //#endregion
830
868
  //#region core/contracts/src/artifact/lifecycle-hooks.d.ts
831
869
  /**
832
870
  * Semantic lifecycle event names used to describe what happened to an artifact
@@ -951,7 +989,7 @@ interface ArtifactReactionHookContext<TBus extends MakaioBusLike = MakaioBusLike
951
989
  /** The persisted artifact revision that was just written. */
952
990
  readonly artifact: ArtifactRevision$1;
953
991
  /** Reference to the previous revision, if this is a revise or status-change. */
954
- readonly previous?: ArtifactRef;
992
+ readonly previous?: ArtifactRef$1;
955
993
  /** The observation that was just appended, present only for `afterObservationAdded`. */
956
994
  readonly observation?: ArtifactObservation$1;
957
995
  /** Kind registration metadata, if the kind has been registered. */
@@ -1162,6 +1200,8 @@ interface ArtifactKindDefinition<TData extends Record<string, unknown>, TScope e
1162
1200
  * defaults.
1163
1201
  */
1164
1202
  readonly projection?: ArtifactProjectionPolicy$1;
1203
+ /** Optional default context selectors for artifact context resolution. */
1204
+ readonly defaultContext?: ArtifactContextSelector$1;
1165
1205
  /**
1166
1206
  * Optional live-only lifecycle hooks owned by this kind definition.
1167
1207
  *
@@ -1268,6 +1308,8 @@ interface DefineArtifactKindOptions<TData extends Record<string, unknown>, TScop
1268
1308
  * external providers.
1269
1309
  */
1270
1310
  readonly projection?: ArtifactProjectionPolicy$1;
1311
+ /** Optional default context selectors for artifact context resolution. */
1312
+ readonly defaultContext?: ArtifactContextSelector$1;
1271
1313
  /**
1272
1314
  * Optional live-only lifecycle hooks. Not included in `toRegistration()`.
1273
1315
  *
@@ -1304,6 +1346,276 @@ interface DefineArtifactKindOptions<TData extends Record<string, unknown>, TScop
1304
1346
  */
1305
1347
  declare function defineArtifactKind<TData extends Record<string, unknown>, TScope extends ArtifactScope = ArtifactScope>(options: DefineArtifactKindOptions<TData, TScope>): ArtifactKindDefinition<TData, TScope>;
1306
1348
  //#endregion
1349
+ //#region core/contracts/src/artifact/context-resolution.d.ts
1350
+ /**
1351
+ * Reasons why a relation target was not resolved during context resolution.
1352
+ *
1353
+ * v1 omits `scope-denied` -- no scope policy seam exists yet.
1354
+ */
1355
+ declare const ArtifactContextUnresolvedReasonSchema: z.ZodEnum<{
1356
+ "not-selected": "not-selected";
1357
+ "not-found": "not-found";
1358
+ "depth-exceeded": "depth-exceeded";
1359
+ "unsupported-ref-class": "unsupported-ref-class";
1360
+ "cycle-detected": "cycle-detected";
1361
+ }>;
1362
+ /** An unresolved reason for a context ref entry. */
1363
+ type ArtifactContextUnresolvedReason = z.infer<typeof ArtifactContextUnresolvedReasonSchema>;
1364
+ /**
1365
+ * A single entry in the normalized artifact context wire format.
1366
+ *
1367
+ * Each entry records one outbound relation from a source artifact to a
1368
+ * target, along with resolution status and the render hint used.
1369
+ */
1370
+ declare const ArtifactContextRefEntrySchema: z.ZodObject<{
1371
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1372
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1373
+ kind: z.ZodString;
1374
+ id: z.ZodString;
1375
+ revision: z.ZodString;
1376
+ }, z.core.$strip>, z.ZodObject<{
1377
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1378
+ artifact: z.ZodObject<{
1379
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1380
+ kind: z.ZodString;
1381
+ id: z.ZodString;
1382
+ revision: z.ZodString;
1383
+ }, z.core.$strip>;
1384
+ localId: z.ZodString;
1385
+ }, z.core.$strip>, z.ZodObject<{
1386
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1387
+ kind: z.ZodString;
1388
+ id: z.ZodString;
1389
+ revision: z.ZodOptional<z.ZodString>;
1390
+ locator: z.ZodOptional<z.ZodString>;
1391
+ }, z.core.$strip>], "refClass">>;
1392
+ sourceRef: z.ZodObject<{
1393
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1394
+ kind: z.ZodString;
1395
+ id: z.ZodString;
1396
+ revision: z.ZodString;
1397
+ }, z.core.$strip>;
1398
+ relationType: z.ZodString;
1399
+ hint: z.ZodString;
1400
+ status: z.ZodEnum<{
1401
+ resolved: "resolved";
1402
+ unresolved: "unresolved";
1403
+ }>;
1404
+ reason: z.ZodOptional<z.ZodEnum<{
1405
+ "not-selected": "not-selected";
1406
+ "not-found": "not-found";
1407
+ "depth-exceeded": "depth-exceeded";
1408
+ "unsupported-ref-class": "unsupported-ref-class";
1409
+ "cycle-detected": "cycle-detected";
1410
+ }>>;
1411
+ }, z.core.$strip>;
1412
+ /** A single resolved or unresolved context ref entry. */
1413
+ type ArtifactContextRefEntry = z.infer<typeof ArtifactContextRefEntrySchema>;
1414
+ /**
1415
+ * Normalized wire format for a resolved artifact context graph.
1416
+ *
1417
+ * Contains the root artifact reference, all encountered relation entries
1418
+ * (both resolved and unresolved), and the pool of resolved artifact
1419
+ * revisions referenced by the entries.
1420
+ */
1421
+ declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
1422
+ rootRef: z.ZodObject<{
1423
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1424
+ kind: z.ZodString;
1425
+ id: z.ZodString;
1426
+ revision: z.ZodString;
1427
+ }, z.core.$strip>;
1428
+ refs: z.ZodArray<z.ZodObject<{
1429
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1430
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1431
+ kind: z.ZodString;
1432
+ id: z.ZodString;
1433
+ revision: z.ZodString;
1434
+ }, z.core.$strip>, z.ZodObject<{
1435
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1436
+ artifact: z.ZodObject<{
1437
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1438
+ kind: z.ZodString;
1439
+ id: z.ZodString;
1440
+ revision: z.ZodString;
1441
+ }, z.core.$strip>;
1442
+ localId: z.ZodString;
1443
+ }, z.core.$strip>, z.ZodObject<{
1444
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1445
+ kind: z.ZodString;
1446
+ id: z.ZodString;
1447
+ revision: z.ZodOptional<z.ZodString>;
1448
+ locator: z.ZodOptional<z.ZodString>;
1449
+ }, z.core.$strip>], "refClass">>;
1450
+ sourceRef: z.ZodObject<{
1451
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1452
+ kind: z.ZodString;
1453
+ id: z.ZodString;
1454
+ revision: z.ZodString;
1455
+ }, z.core.$strip>;
1456
+ relationType: z.ZodString;
1457
+ hint: z.ZodString;
1458
+ status: z.ZodEnum<{
1459
+ resolved: "resolved";
1460
+ unresolved: "unresolved";
1461
+ }>;
1462
+ reason: z.ZodOptional<z.ZodEnum<{
1463
+ "not-selected": "not-selected";
1464
+ "not-found": "not-found";
1465
+ "depth-exceeded": "depth-exceeded";
1466
+ "unsupported-ref-class": "unsupported-ref-class";
1467
+ "cycle-detected": "cycle-detected";
1468
+ }>>;
1469
+ }, z.core.$strip>>;
1470
+ resolved: z.ZodArray<z.ZodObject<{
1471
+ kind: z.ZodString;
1472
+ id: z.ZodString;
1473
+ revision: z.ZodString;
1474
+ scope: z.ZodObject<{
1475
+ level: z.ZodString;
1476
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1477
+ }, z.core.$strip>;
1478
+ schemaVersion: z.ZodString;
1479
+ data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1480
+ relations: z.ZodArray<z.ZodObject<{
1481
+ type: z.ZodString;
1482
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1484
+ kind: z.ZodString;
1485
+ id: z.ZodString;
1486
+ revision: z.ZodString;
1487
+ }, z.core.$strip>, z.ZodObject<{
1488
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1489
+ artifact: z.ZodObject<{
1490
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1491
+ kind: z.ZodString;
1492
+ id: z.ZodString;
1493
+ revision: z.ZodString;
1494
+ }, z.core.$strip>;
1495
+ localId: z.ZodString;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1498
+ kind: z.ZodString;
1499
+ id: z.ZodString;
1500
+ revision: z.ZodOptional<z.ZodString>;
1501
+ locator: z.ZodOptional<z.ZodString>;
1502
+ }, z.core.$strip>], "refClass">>;
1503
+ }, z.core.$strip>>;
1504
+ confidence: z.ZodOptional<z.ZodObject<{
1505
+ level: z.ZodEnum<{
1506
+ assumed: "assumed";
1507
+ inferred: "inferred";
1508
+ stated: "stated";
1509
+ confirmed: "confirmed";
1510
+ verified: "verified";
1511
+ }>;
1512
+ basis: z.ZodArray<z.ZodObject<{
1513
+ kind: z.ZodString;
1514
+ actor: z.ZodObject<{
1515
+ kind: z.ZodString;
1516
+ id: z.ZodString;
1517
+ displayName: z.ZodOptional<z.ZodString>;
1518
+ }, z.core.$strip>;
1519
+ timestamp: z.ZodNumber;
1520
+ detail: z.ZodOptional<z.ZodString>;
1521
+ evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
1522
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1523
+ kind: z.ZodString;
1524
+ id: z.ZodString;
1525
+ revision: z.ZodString;
1526
+ }, z.core.$strip>, z.ZodObject<{
1527
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
1528
+ artifact: z.ZodObject<{
1529
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
1530
+ kind: z.ZodString;
1531
+ id: z.ZodString;
1532
+ revision: z.ZodString;
1533
+ }, z.core.$strip>;
1534
+ localId: z.ZodString;
1535
+ }, z.core.$strip>, z.ZodObject<{
1536
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
1537
+ kind: z.ZodString;
1538
+ id: z.ZodString;
1539
+ revision: z.ZodOptional<z.ZodString>;
1540
+ locator: z.ZodOptional<z.ZodString>;
1541
+ }, z.core.$strip>], "refClass">>>;
1542
+ }, z.core.$strip>>;
1543
+ }, z.core.$strip>>;
1544
+ representations: z.ZodOptional<z.ZodObject<{
1545
+ markdown: z.ZodOptional<z.ZodString>;
1546
+ summary: z.ZodOptional<z.ZodString>;
1547
+ plaintext: z.ZodOptional<z.ZodString>;
1548
+ }, z.core.$strip>>;
1549
+ actor: z.ZodObject<{
1550
+ kind: z.ZodString;
1551
+ id: z.ZodString;
1552
+ displayName: z.ZodOptional<z.ZodString>;
1553
+ }, z.core.$strip>;
1554
+ timestamp: z.ZodNumber;
1555
+ createdAt: z.ZodOptional<z.ZodNumber>;
1556
+ }, z.core.$strip>>;
1557
+ }, z.core.$strip>;
1558
+ /** Normalized wire format for a resolved artifact context graph. */
1559
+ type ResolvedArtifactContextWire$1 = z.infer<typeof ResolvedArtifactContextWireSchema>;
1560
+ //#endregion
1561
+ //#region core/contracts/src/artifact/context-tree.d.ts
1562
+ /**
1563
+ * Hydrated tree representation of a resolved artifact context graph.
1564
+ *
1565
+ * The root is always a resolved node. Children may be resolved or
1566
+ * unresolved depending on resolution status.
1567
+ */
1568
+ interface ArtifactContextTree {
1569
+ /** The root artifact node — always resolved. */
1570
+ readonly root: ArtifactContextRootNode;
1571
+ /**
1572
+ * Collect all resolved artifact revisions in depth-first order.
1573
+ * @returns Ordered list of resolved artifact revisions.
1574
+ */
1575
+ flatten(): readonly ArtifactRevision$1[];
1576
+ }
1577
+ /** A node in the hydrated artifact context tree. */
1578
+ type ArtifactContextNode = ResolvedArtifactContextNode | UnresolvedArtifactContextNode;
1579
+ /** Shared resolved node fields for root and relation children. */
1580
+ interface ResolvedArtifactContextNodeBase {
1581
+ readonly status: 'resolved';
1582
+ /** Artifact reference for this node. */
1583
+ readonly ref: ArtifactRef$1;
1584
+ /** Full artifact revision data. */
1585
+ readonly artifact: ArtifactRevision$1;
1586
+ /** Render hint applied to this node. */
1587
+ readonly hint: ArtifactContextRenderHint;
1588
+ /** Child nodes from this artifact's outbound relations. */
1589
+ readonly children: readonly ArtifactContextNode[];
1590
+ }
1591
+ /** The resolved root node; it has no parent relation. */
1592
+ type ArtifactContextRootNode = ResolvedArtifactContextNodeBase;
1593
+ /** A resolved child node with artifact data and relation metadata. */
1594
+ interface ResolvedArtifactContextNode extends ResolvedArtifactContextNodeBase {
1595
+ /** Relation type that led to this node from its parent. */
1596
+ readonly relation: string;
1597
+ }
1598
+ /** An unresolved node representing a relation that could not be followed. */
1599
+ interface UnresolvedArtifactContextNode {
1600
+ readonly status: 'unresolved';
1601
+ /** The relation target that was not resolved. */
1602
+ readonly target: ArtifactRelationTarget;
1603
+ /** Relation type that led to this node from its parent. */
1604
+ readonly relation: string;
1605
+ /** Render hint applied to this node. */
1606
+ readonly hint: ArtifactContextRenderHint;
1607
+ /** Reason the target was not resolved. */
1608
+ readonly reason: ArtifactContextUnresolvedReason;
1609
+ }
1610
+ //#endregion
1611
+ //#region core/contracts/src/artifact/hydrate-context.d.ts
1612
+ /**
1613
+ * Hydrate a normalized artifact context wire payload into a tree.
1614
+ * @param wire - Normalized resolved artifact context payload.
1615
+ * @returns Tree view with a convenience flatten method.
1616
+ */
1617
+ declare function hydrateArtifactContextTree(wire: ResolvedArtifactContextWire$1): ArtifactContextTree;
1618
+ //#endregion
1307
1619
  //#region core/contracts/src/artifact/namespace.d.ts
1308
1620
  /**
1309
1621
  * Framework-level artifact bus schemas.
@@ -1342,9 +1654,9 @@ declare const ArtifactSchemas: {
1342
1654
  lifecycle: z.ZodOptional<z.ZodObject<{
1343
1655
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
1344
1656
  active: "active";
1657
+ archived: "archived";
1345
1658
  fading: "fading";
1346
1659
  retired: "retired";
1347
- archived: "archived";
1348
1660
  }>>;
1349
1661
  decayPolicy: z.ZodOptional<z.ZodString>;
1350
1662
  }, z.core.$strip>>;
@@ -1375,6 +1687,7 @@ declare const ArtifactSchemas: {
1375
1687
  }>>;
1376
1688
  }, z.core.$strip>>>;
1377
1689
  }, z.core.$strip>>;
1690
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
1378
1691
  }, z.core.$strip>;
1379
1692
  response: z.ZodObject<{
1380
1693
  registered: z.ZodBoolean;
@@ -1405,9 +1718,9 @@ declare const ArtifactSchemas: {
1405
1718
  lifecycle: z.ZodOptional<z.ZodObject<{
1406
1719
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
1407
1720
  active: "active";
1721
+ archived: "archived";
1408
1722
  fading: "fading";
1409
1723
  retired: "retired";
1410
- archived: "archived";
1411
1724
  }>>;
1412
1725
  decayPolicy: z.ZodOptional<z.ZodString>;
1413
1726
  }, z.core.$strip>>;
@@ -1438,6 +1751,7 @@ declare const ArtifactSchemas: {
1438
1751
  }>>;
1439
1752
  }, z.core.$strip>>>;
1440
1753
  }, z.core.$strip>>;
1754
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
1441
1755
  }, z.core.$strip>>;
1442
1756
  }, z.core.$strip>;
1443
1757
  }; /** Register a new relation type with the artifact service (RPC). */
@@ -1486,7 +1800,6 @@ declare const ArtifactSchemas: {
1486
1800
  create: {
1487
1801
  request: z.ZodObject<{
1488
1802
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1489
- createdAt: z.ZodOptional<z.ZodNumber>;
1490
1803
  kind: z.ZodString;
1491
1804
  scope: z.ZodObject<{
1492
1805
  level: z.ZodString;
@@ -1567,6 +1880,7 @@ declare const ArtifactSchemas: {
1567
1880
  summary: z.ZodOptional<z.ZodString>;
1568
1881
  plaintext: z.ZodOptional<z.ZodString>;
1569
1882
  }, z.core.$strip>>;
1883
+ createdAt: z.ZodOptional<z.ZodNumber>;
1570
1884
  }, z.core.$strip>;
1571
1885
  response: z.ZodObject<{
1572
1886
  artifact: z.ZodObject<{
@@ -1668,7 +1982,6 @@ declare const ArtifactSchemas: {
1668
1982
  }, z.core.$strip>;
1669
1983
  revision: z.ZodObject<{
1670
1984
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
1671
- createdAt: z.ZodOptional<z.ZodNumber>;
1672
1985
  kind: z.ZodString;
1673
1986
  scope: z.ZodObject<{
1674
1987
  level: z.ZodString;
@@ -1749,6 +2062,7 @@ declare const ArtifactSchemas: {
1749
2062
  summary: z.ZodOptional<z.ZodString>;
1750
2063
  plaintext: z.ZodOptional<z.ZodString>;
1751
2064
  }, z.core.$strip>>;
2065
+ createdAt: z.ZodOptional<z.ZodNumber>;
1752
2066
  }, z.core.$strip>;
1753
2067
  }, z.core.$strip>;
1754
2068
  response: z.ZodObject<{
@@ -2275,6 +2589,157 @@ declare const ArtifactSchemas: {
2275
2589
  }, z.core.$strip>;
2276
2590
  changedPaths: z.ZodArray<z.ZodString>;
2277
2591
  }, z.core.$strip>;
2592
+ }; /** Resolve a selector-driven outbound artifact context graph (RPC). */
2593
+ resolveContext: {
2594
+ request: z.ZodObject<{
2595
+ ref: z.ZodObject<{
2596
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2597
+ kind: z.ZodString;
2598
+ id: z.ZodString;
2599
+ revision: z.ZodString;
2600
+ }, z.core.$strip>;
2601
+ selectors: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
2602
+ maxDepth: z.ZodDefault<z.ZodNumber>;
2603
+ }, z.core.$strip>;
2604
+ response: z.ZodObject<{
2605
+ context: z.ZodObject<{
2606
+ rootRef: z.ZodObject<{
2607
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2608
+ kind: z.ZodString;
2609
+ id: z.ZodString;
2610
+ revision: z.ZodString;
2611
+ }, z.core.$strip>;
2612
+ refs: z.ZodArray<z.ZodObject<{
2613
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
2614
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2615
+ kind: z.ZodString;
2616
+ id: z.ZodString;
2617
+ revision: z.ZodString;
2618
+ }, z.core.$strip>, z.ZodObject<{
2619
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
2620
+ artifact: z.ZodObject<{
2621
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2622
+ kind: z.ZodString;
2623
+ id: z.ZodString;
2624
+ revision: z.ZodString;
2625
+ }, z.core.$strip>;
2626
+ localId: z.ZodString;
2627
+ }, z.core.$strip>, z.ZodObject<{
2628
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
2629
+ kind: z.ZodString;
2630
+ id: z.ZodString;
2631
+ revision: z.ZodOptional<z.ZodString>;
2632
+ locator: z.ZodOptional<z.ZodString>;
2633
+ }, z.core.$strip>], "refClass">>;
2634
+ sourceRef: z.ZodObject<{
2635
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2636
+ kind: z.ZodString;
2637
+ id: z.ZodString;
2638
+ revision: z.ZodString;
2639
+ }, z.core.$strip>;
2640
+ relationType: z.ZodString;
2641
+ hint: z.ZodString;
2642
+ status: z.ZodEnum<{
2643
+ resolved: "resolved";
2644
+ unresolved: "unresolved";
2645
+ }>;
2646
+ reason: z.ZodOptional<z.ZodEnum<{
2647
+ "not-selected": "not-selected";
2648
+ "not-found": "not-found";
2649
+ "depth-exceeded": "depth-exceeded";
2650
+ "unsupported-ref-class": "unsupported-ref-class";
2651
+ "cycle-detected": "cycle-detected";
2652
+ }>>;
2653
+ }, z.core.$strip>>;
2654
+ resolved: z.ZodArray<z.ZodObject<{
2655
+ kind: z.ZodString;
2656
+ id: z.ZodString;
2657
+ revision: z.ZodString;
2658
+ scope: z.ZodObject<{
2659
+ level: z.ZodString;
2660
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2661
+ }, z.core.$strip>;
2662
+ schemaVersion: z.ZodString;
2663
+ data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2664
+ relations: z.ZodArray<z.ZodObject<{
2665
+ type: z.ZodString;
2666
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
2667
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2668
+ kind: z.ZodString;
2669
+ id: z.ZodString;
2670
+ revision: z.ZodString;
2671
+ }, z.core.$strip>, z.ZodObject<{
2672
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
2673
+ artifact: z.ZodObject<{
2674
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2675
+ kind: z.ZodString;
2676
+ id: z.ZodString;
2677
+ revision: z.ZodString;
2678
+ }, z.core.$strip>;
2679
+ localId: z.ZodString;
2680
+ }, z.core.$strip>, z.ZodObject<{
2681
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
2682
+ kind: z.ZodString;
2683
+ id: z.ZodString;
2684
+ revision: z.ZodOptional<z.ZodString>;
2685
+ locator: z.ZodOptional<z.ZodString>;
2686
+ }, z.core.$strip>], "refClass">>;
2687
+ }, z.core.$strip>>;
2688
+ confidence: z.ZodOptional<z.ZodObject<{
2689
+ level: z.ZodEnum<{
2690
+ assumed: "assumed";
2691
+ inferred: "inferred";
2692
+ stated: "stated";
2693
+ confirmed: "confirmed";
2694
+ verified: "verified";
2695
+ }>;
2696
+ basis: z.ZodArray<z.ZodObject<{
2697
+ kind: z.ZodString;
2698
+ actor: z.ZodObject<{
2699
+ kind: z.ZodString;
2700
+ id: z.ZodString;
2701
+ displayName: z.ZodOptional<z.ZodString>;
2702
+ }, z.core.$strip>;
2703
+ timestamp: z.ZodNumber;
2704
+ detail: z.ZodOptional<z.ZodString>;
2705
+ evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
2706
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2707
+ kind: z.ZodString;
2708
+ id: z.ZodString;
2709
+ revision: z.ZodString;
2710
+ }, z.core.$strip>, z.ZodObject<{
2711
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
2712
+ artifact: z.ZodObject<{
2713
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
2714
+ kind: z.ZodString;
2715
+ id: z.ZodString;
2716
+ revision: z.ZodString;
2717
+ }, z.core.$strip>;
2718
+ localId: z.ZodString;
2719
+ }, z.core.$strip>, z.ZodObject<{
2720
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
2721
+ kind: z.ZodString;
2722
+ id: z.ZodString;
2723
+ revision: z.ZodOptional<z.ZodString>;
2724
+ locator: z.ZodOptional<z.ZodString>;
2725
+ }, z.core.$strip>], "refClass">>>;
2726
+ }, z.core.$strip>>;
2727
+ }, z.core.$strip>>;
2728
+ representations: z.ZodOptional<z.ZodObject<{
2729
+ markdown: z.ZodOptional<z.ZodString>;
2730
+ summary: z.ZodOptional<z.ZodString>;
2731
+ plaintext: z.ZodOptional<z.ZodString>;
2732
+ }, z.core.$strip>>;
2733
+ actor: z.ZodObject<{
2734
+ kind: z.ZodString;
2735
+ id: z.ZodString;
2736
+ displayName: z.ZodOptional<z.ZodString>;
2737
+ }, z.core.$strip>;
2738
+ timestamp: z.ZodNumber;
2739
+ createdAt: z.ZodOptional<z.ZodNumber>;
2740
+ }, z.core.$strip>>;
2741
+ }, z.core.$strip>;
2742
+ }, z.core.$strip>;
2278
2743
  }; /** Emitted when a new artifact is created. */
2279
2744
  created: z.ZodObject<{
2280
2745
  artifact: z.ZodObject<{
@@ -2590,9 +3055,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2590
3055
  lifecycle: z.ZodOptional<z.ZodObject<{
2591
3056
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
2592
3057
  active: "active";
3058
+ archived: "archived";
2593
3059
  fading: "fading";
2594
3060
  retired: "retired";
2595
- archived: "archived";
2596
3061
  }>>;
2597
3062
  decayPolicy: z.ZodOptional<z.ZodString>;
2598
3063
  }, z.core.$strip>>;
@@ -2623,6 +3088,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2623
3088
  }>>;
2624
3089
  }, z.core.$strip>>>;
2625
3090
  }, z.core.$strip>>;
3091
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
2626
3092
  }, z.core.$strip>;
2627
3093
  response: z.ZodObject<{
2628
3094
  registered: z.ZodBoolean;
@@ -2653,9 +3119,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2653
3119
  lifecycle: z.ZodOptional<z.ZodObject<{
2654
3120
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
2655
3121
  active: "active";
3122
+ archived: "archived";
2656
3123
  fading: "fading";
2657
3124
  retired: "retired";
2658
- archived: "archived";
2659
3125
  }>>;
2660
3126
  decayPolicy: z.ZodOptional<z.ZodString>;
2661
3127
  }, z.core.$strip>>;
@@ -2686,6 +3152,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2686
3152
  }>>;
2687
3153
  }, z.core.$strip>>>;
2688
3154
  }, z.core.$strip>>;
3155
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
2689
3156
  }, z.core.$strip>>;
2690
3157
  }, z.core.$strip>;
2691
3158
  }; /** Register a new relation type with the artifact service (RPC). */
@@ -2734,7 +3201,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2734
3201
  create: {
2735
3202
  request: z.ZodObject<{
2736
3203
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2737
- createdAt: z.ZodOptional<z.ZodNumber>;
2738
3204
  kind: z.ZodString;
2739
3205
  scope: z.ZodObject<{
2740
3206
  level: z.ZodString;
@@ -2815,6 +3281,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2815
3281
  summary: z.ZodOptional<z.ZodString>;
2816
3282
  plaintext: z.ZodOptional<z.ZodString>;
2817
3283
  }, z.core.$strip>>;
3284
+ createdAt: z.ZodOptional<z.ZodNumber>;
2818
3285
  }, z.core.$strip>;
2819
3286
  response: z.ZodObject<{
2820
3287
  artifact: z.ZodObject<{
@@ -2916,7 +3383,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2916
3383
  }, z.core.$strip>;
2917
3384
  revision: z.ZodObject<{
2918
3385
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
2919
- createdAt: z.ZodOptional<z.ZodNumber>;
2920
3386
  kind: z.ZodString;
2921
3387
  scope: z.ZodObject<{
2922
3388
  level: z.ZodString;
@@ -2997,6 +3463,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
2997
3463
  summary: z.ZodOptional<z.ZodString>;
2998
3464
  plaintext: z.ZodOptional<z.ZodString>;
2999
3465
  }, z.core.$strip>>;
3466
+ createdAt: z.ZodOptional<z.ZodNumber>;
3000
3467
  }, z.core.$strip>;
3001
3468
  }, z.core.$strip>;
3002
3469
  response: z.ZodObject<{
@@ -3523,6 +3990,157 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3523
3990
  }, z.core.$strip>;
3524
3991
  changedPaths: z.ZodArray<z.ZodString>;
3525
3992
  }, z.core.$strip>;
3993
+ }; /** Resolve a selector-driven outbound artifact context graph (RPC). */
3994
+ resolveContext: {
3995
+ request: z.ZodObject<{
3996
+ ref: z.ZodObject<{
3997
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
3998
+ kind: z.ZodString;
3999
+ id: z.ZodString;
4000
+ revision: z.ZodString;
4001
+ }, z.core.$strip>;
4002
+ selectors: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
4003
+ maxDepth: z.ZodDefault<z.ZodNumber>;
4004
+ }, z.core.$strip>;
4005
+ response: z.ZodObject<{
4006
+ context: z.ZodObject<{
4007
+ rootRef: z.ZodObject<{
4008
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4009
+ kind: z.ZodString;
4010
+ id: z.ZodString;
4011
+ revision: z.ZodString;
4012
+ }, z.core.$strip>;
4013
+ refs: z.ZodArray<z.ZodObject<{
4014
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4015
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4016
+ kind: z.ZodString;
4017
+ id: z.ZodString;
4018
+ revision: z.ZodString;
4019
+ }, z.core.$strip>, z.ZodObject<{
4020
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
4021
+ artifact: z.ZodObject<{
4022
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4023
+ kind: z.ZodString;
4024
+ id: z.ZodString;
4025
+ revision: z.ZodString;
4026
+ }, z.core.$strip>;
4027
+ localId: z.ZodString;
4028
+ }, z.core.$strip>, z.ZodObject<{
4029
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
4030
+ kind: z.ZodString;
4031
+ id: z.ZodString;
4032
+ revision: z.ZodOptional<z.ZodString>;
4033
+ locator: z.ZodOptional<z.ZodString>;
4034
+ }, z.core.$strip>], "refClass">>;
4035
+ sourceRef: z.ZodObject<{
4036
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4037
+ kind: z.ZodString;
4038
+ id: z.ZodString;
4039
+ revision: z.ZodString;
4040
+ }, z.core.$strip>;
4041
+ relationType: z.ZodString;
4042
+ hint: z.ZodString;
4043
+ status: z.ZodEnum<{
4044
+ resolved: "resolved";
4045
+ unresolved: "unresolved";
4046
+ }>;
4047
+ reason: z.ZodOptional<z.ZodEnum<{
4048
+ "not-selected": "not-selected";
4049
+ "not-found": "not-found";
4050
+ "depth-exceeded": "depth-exceeded";
4051
+ "unsupported-ref-class": "unsupported-ref-class";
4052
+ "cycle-detected": "cycle-detected";
4053
+ }>>;
4054
+ }, z.core.$strip>>;
4055
+ resolved: z.ZodArray<z.ZodObject<{
4056
+ kind: z.ZodString;
4057
+ id: z.ZodString;
4058
+ revision: z.ZodString;
4059
+ scope: z.ZodObject<{
4060
+ level: z.ZodString;
4061
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4062
+ }, z.core.$strip>;
4063
+ schemaVersion: z.ZodString;
4064
+ data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4065
+ relations: z.ZodArray<z.ZodObject<{
4066
+ type: z.ZodString;
4067
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4068
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4069
+ kind: z.ZodString;
4070
+ id: z.ZodString;
4071
+ revision: z.ZodString;
4072
+ }, z.core.$strip>, z.ZodObject<{
4073
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
4074
+ artifact: z.ZodObject<{
4075
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4076
+ kind: z.ZodString;
4077
+ id: z.ZodString;
4078
+ revision: z.ZodString;
4079
+ }, z.core.$strip>;
4080
+ localId: z.ZodString;
4081
+ }, z.core.$strip>, z.ZodObject<{
4082
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
4083
+ kind: z.ZodString;
4084
+ id: z.ZodString;
4085
+ revision: z.ZodOptional<z.ZodString>;
4086
+ locator: z.ZodOptional<z.ZodString>;
4087
+ }, z.core.$strip>], "refClass">>;
4088
+ }, z.core.$strip>>;
4089
+ confidence: z.ZodOptional<z.ZodObject<{
4090
+ level: z.ZodEnum<{
4091
+ assumed: "assumed";
4092
+ inferred: "inferred";
4093
+ stated: "stated";
4094
+ confirmed: "confirmed";
4095
+ verified: "verified";
4096
+ }>;
4097
+ basis: z.ZodArray<z.ZodObject<{
4098
+ kind: z.ZodString;
4099
+ actor: z.ZodObject<{
4100
+ kind: z.ZodString;
4101
+ id: z.ZodString;
4102
+ displayName: z.ZodOptional<z.ZodString>;
4103
+ }, z.core.$strip>;
4104
+ timestamp: z.ZodNumber;
4105
+ detail: z.ZodOptional<z.ZodString>;
4106
+ evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
4107
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4108
+ kind: z.ZodString;
4109
+ id: z.ZodString;
4110
+ revision: z.ZodString;
4111
+ }, z.core.$strip>, z.ZodObject<{
4112
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
4113
+ artifact: z.ZodObject<{
4114
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
4115
+ kind: z.ZodString;
4116
+ id: z.ZodString;
4117
+ revision: z.ZodString;
4118
+ }, z.core.$strip>;
4119
+ localId: z.ZodString;
4120
+ }, z.core.$strip>, z.ZodObject<{
4121
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
4122
+ kind: z.ZodString;
4123
+ id: z.ZodString;
4124
+ revision: z.ZodOptional<z.ZodString>;
4125
+ locator: z.ZodOptional<z.ZodString>;
4126
+ }, z.core.$strip>], "refClass">>>;
4127
+ }, z.core.$strip>>;
4128
+ }, z.core.$strip>>;
4129
+ representations: z.ZodOptional<z.ZodObject<{
4130
+ markdown: z.ZodOptional<z.ZodString>;
4131
+ summary: z.ZodOptional<z.ZodString>;
4132
+ plaintext: z.ZodOptional<z.ZodString>;
4133
+ }, z.core.$strip>>;
4134
+ actor: z.ZodObject<{
4135
+ kind: z.ZodString;
4136
+ id: z.ZodString;
4137
+ displayName: z.ZodOptional<z.ZodString>;
4138
+ }, z.core.$strip>;
4139
+ timestamp: z.ZodNumber;
4140
+ createdAt: z.ZodOptional<z.ZodNumber>;
4141
+ }, z.core.$strip>>;
4142
+ }, z.core.$strip>;
4143
+ }, z.core.$strip>;
3526
4144
  }; /** Emitted when a new artifact is created. */
3527
4145
  created: z.ZodObject<{
3528
4146
  artifact: z.ZodObject<{
@@ -3822,6 +4440,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
3822
4440
  * - `ArtifactSubjects.resolve` — resolve artifact by ref (RPC)
3823
4441
  * - `ArtifactSubjects.query` — query artifacts (RPC)
3824
4442
  * - `ArtifactSubjects.compare` — compare two revisions (RPC)
4443
+ * - `ArtifactSubjects.resolveContext` — resolve artifact context graph (RPC)
3825
4444
  * - `ArtifactSubjects.created` — artifact created event
3826
4445
  * - `ArtifactSubjects.revised` — artifact revised event
3827
4446
  * - `ArtifactSubjects['relation.added']` — relation added event
@@ -3851,9 +4470,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3851
4470
  lifecycle: z.ZodOptional<z.ZodObject<{
3852
4471
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
3853
4472
  active: "active";
4473
+ archived: "archived";
3854
4474
  fading: "fading";
3855
4475
  retired: "retired";
3856
- archived: "archived";
3857
4476
  }>>;
3858
4477
  decayPolicy: z.ZodOptional<z.ZodString>;
3859
4478
  }, z.core.$strip>>;
@@ -3884,6 +4503,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3884
4503
  }>>;
3885
4504
  }, z.core.$strip>>>;
3886
4505
  }, z.core.$strip>>;
4506
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
3887
4507
  }, z.core.$strip>;
3888
4508
  response: z.ZodObject<{
3889
4509
  registered: z.ZodBoolean;
@@ -3914,9 +4534,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3914
4534
  lifecycle: z.ZodOptional<z.ZodObject<{
3915
4535
  defaultRelevance: z.ZodOptional<z.ZodEnum<{
3916
4536
  active: "active";
4537
+ archived: "archived";
3917
4538
  fading: "fading";
3918
4539
  retired: "retired";
3919
- archived: "archived";
3920
4540
  }>>;
3921
4541
  decayPolicy: z.ZodOptional<z.ZodString>;
3922
4542
  }, z.core.$strip>>;
@@ -3947,6 +4567,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3947
4567
  }>>;
3948
4568
  }, z.core.$strip>>>;
3949
4569
  }, z.core.$strip>>;
4570
+ defaultContext: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
3950
4571
  }, z.core.$strip>>;
3951
4572
  }, z.core.$strip>;
3952
4573
  }; /** Register a new relation type with the artifact service (RPC). */
@@ -3995,7 +4616,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
3995
4616
  create: {
3996
4617
  request: z.ZodObject<{
3997
4618
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
3998
- createdAt: z.ZodOptional<z.ZodNumber>;
3999
4619
  kind: z.ZodString;
4000
4620
  scope: z.ZodObject<{
4001
4621
  level: z.ZodString;
@@ -4076,6 +4696,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4076
4696
  summary: z.ZodOptional<z.ZodString>;
4077
4697
  plaintext: z.ZodOptional<z.ZodString>;
4078
4698
  }, z.core.$strip>>;
4699
+ createdAt: z.ZodOptional<z.ZodNumber>;
4079
4700
  }, z.core.$strip>;
4080
4701
  response: z.ZodObject<{
4081
4702
  artifact: z.ZodObject<{
@@ -4177,7 +4798,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4177
4798
  }, z.core.$strip>;
4178
4799
  revision: z.ZodObject<{
4179
4800
  data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
4180
- createdAt: z.ZodOptional<z.ZodNumber>;
4181
4801
  kind: z.ZodString;
4182
4802
  scope: z.ZodObject<{
4183
4803
  level: z.ZodString;
@@ -4258,6 +4878,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4258
4878
  summary: z.ZodOptional<z.ZodString>;
4259
4879
  plaintext: z.ZodOptional<z.ZodString>;
4260
4880
  }, z.core.$strip>>;
4881
+ createdAt: z.ZodOptional<z.ZodNumber>;
4261
4882
  }, z.core.$strip>;
4262
4883
  }, z.core.$strip>;
4263
4884
  response: z.ZodObject<{
@@ -4784,6 +5405,157 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
4784
5405
  }, z.core.$strip>;
4785
5406
  changedPaths: z.ZodArray<z.ZodString>;
4786
5407
  }, z.core.$strip>;
5408
+ }; /** Resolve a selector-driven outbound artifact context graph (RPC). */
5409
+ resolveContext: {
5410
+ request: z.ZodObject<{
5411
+ ref: z.ZodObject<{
5412
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5413
+ kind: z.ZodString;
5414
+ id: z.ZodString;
5415
+ revision: z.ZodString;
5416
+ }, z.core.$strip>;
5417
+ selectors: z.ZodOptional<z.ZodType<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, z.core.$ZodTypeInternals<Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>, Readonly<Record<string, _$_makaio_contracts0.ArtifactContextRelationSelector>>>>>;
5418
+ maxDepth: z.ZodDefault<z.ZodNumber>;
5419
+ }, z.core.$strip>;
5420
+ response: z.ZodObject<{
5421
+ context: z.ZodObject<{
5422
+ rootRef: z.ZodObject<{
5423
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5424
+ kind: z.ZodString;
5425
+ id: z.ZodString;
5426
+ revision: z.ZodString;
5427
+ }, z.core.$strip>;
5428
+ refs: z.ZodArray<z.ZodObject<{
5429
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
5430
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5431
+ kind: z.ZodString;
5432
+ id: z.ZodString;
5433
+ revision: z.ZodString;
5434
+ }, z.core.$strip>, z.ZodObject<{
5435
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
5436
+ artifact: z.ZodObject<{
5437
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5438
+ kind: z.ZodString;
5439
+ id: z.ZodString;
5440
+ revision: z.ZodString;
5441
+ }, z.core.$strip>;
5442
+ localId: z.ZodString;
5443
+ }, z.core.$strip>, z.ZodObject<{
5444
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
5445
+ kind: z.ZodString;
5446
+ id: z.ZodString;
5447
+ revision: z.ZodOptional<z.ZodString>;
5448
+ locator: z.ZodOptional<z.ZodString>;
5449
+ }, z.core.$strip>], "refClass">>;
5450
+ sourceRef: z.ZodObject<{
5451
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5452
+ kind: z.ZodString;
5453
+ id: z.ZodString;
5454
+ revision: z.ZodString;
5455
+ }, z.core.$strip>;
5456
+ relationType: z.ZodString;
5457
+ hint: z.ZodString;
5458
+ status: z.ZodEnum<{
5459
+ resolved: "resolved";
5460
+ unresolved: "unresolved";
5461
+ }>;
5462
+ reason: z.ZodOptional<z.ZodEnum<{
5463
+ "not-selected": "not-selected";
5464
+ "not-found": "not-found";
5465
+ "depth-exceeded": "depth-exceeded";
5466
+ "unsupported-ref-class": "unsupported-ref-class";
5467
+ "cycle-detected": "cycle-detected";
5468
+ }>>;
5469
+ }, z.core.$strip>>;
5470
+ resolved: z.ZodArray<z.ZodObject<{
5471
+ kind: z.ZodString;
5472
+ id: z.ZodString;
5473
+ revision: z.ZodString;
5474
+ scope: z.ZodObject<{
5475
+ level: z.ZodString;
5476
+ ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5477
+ }, z.core.$strip>;
5478
+ schemaVersion: z.ZodString;
5479
+ data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
5480
+ relations: z.ZodArray<z.ZodObject<{
5481
+ type: z.ZodString;
5482
+ target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
5483
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5484
+ kind: z.ZodString;
5485
+ id: z.ZodString;
5486
+ revision: z.ZodString;
5487
+ }, z.core.$strip>, z.ZodObject<{
5488
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
5489
+ artifact: z.ZodObject<{
5490
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5491
+ kind: z.ZodString;
5492
+ id: z.ZodString;
5493
+ revision: z.ZodString;
5494
+ }, z.core.$strip>;
5495
+ localId: z.ZodString;
5496
+ }, z.core.$strip>, z.ZodObject<{
5497
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
5498
+ kind: z.ZodString;
5499
+ id: z.ZodString;
5500
+ revision: z.ZodOptional<z.ZodString>;
5501
+ locator: z.ZodOptional<z.ZodString>;
5502
+ }, z.core.$strip>], "refClass">>;
5503
+ }, z.core.$strip>>;
5504
+ confidence: z.ZodOptional<z.ZodObject<{
5505
+ level: z.ZodEnum<{
5506
+ assumed: "assumed";
5507
+ inferred: "inferred";
5508
+ stated: "stated";
5509
+ confirmed: "confirmed";
5510
+ verified: "verified";
5511
+ }>;
5512
+ basis: z.ZodArray<z.ZodObject<{
5513
+ kind: z.ZodString;
5514
+ actor: z.ZodObject<{
5515
+ kind: z.ZodString;
5516
+ id: z.ZodString;
5517
+ displayName: z.ZodOptional<z.ZodString>;
5518
+ }, z.core.$strip>;
5519
+ timestamp: z.ZodNumber;
5520
+ detail: z.ZodOptional<z.ZodString>;
5521
+ evidenceRef: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
5522
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5523
+ kind: z.ZodString;
5524
+ id: z.ZodString;
5525
+ revision: z.ZodString;
5526
+ }, z.core.$strip>, z.ZodObject<{
5527
+ refClass: z.ZodDefault<z.ZodLiteral<"local">>;
5528
+ artifact: z.ZodObject<{
5529
+ refClass: z.ZodDefault<z.ZodLiteral<"artifact">>;
5530
+ kind: z.ZodString;
5531
+ id: z.ZodString;
5532
+ revision: z.ZodString;
5533
+ }, z.core.$strip>;
5534
+ localId: z.ZodString;
5535
+ }, z.core.$strip>, z.ZodObject<{
5536
+ refClass: z.ZodDefault<z.ZodLiteral<"evidence">>;
5537
+ kind: z.ZodString;
5538
+ id: z.ZodString;
5539
+ revision: z.ZodOptional<z.ZodString>;
5540
+ locator: z.ZodOptional<z.ZodString>;
5541
+ }, z.core.$strip>], "refClass">>>;
5542
+ }, z.core.$strip>>;
5543
+ }, z.core.$strip>>;
5544
+ representations: z.ZodOptional<z.ZodObject<{
5545
+ markdown: z.ZodOptional<z.ZodString>;
5546
+ summary: z.ZodOptional<z.ZodString>;
5547
+ plaintext: z.ZodOptional<z.ZodString>;
5548
+ }, z.core.$strip>>;
5549
+ actor: z.ZodObject<{
5550
+ kind: z.ZodString;
5551
+ id: z.ZodString;
5552
+ displayName: z.ZodOptional<z.ZodString>;
5553
+ }, z.core.$strip>;
5554
+ timestamp: z.ZodNumber;
5555
+ createdAt: z.ZodOptional<z.ZodNumber>;
5556
+ }, z.core.$strip>>;
5557
+ }, z.core.$strip>;
5558
+ }, z.core.$strip>;
4787
5559
  }; /** Emitted when a new artifact is created. */
4788
5560
  created: z.ZodObject<{
4789
5561
  artifact: z.ZodObject<{
@@ -5100,6 +5872,10 @@ type ArtifactResolveRequest = z.infer<(typeof ArtifactSchemas)['resolve']['reque
5100
5872
  type ArtifactResolveResponse = z.infer<(typeof ArtifactSchemas)['resolve']['response']>;
5101
5873
  /** Response payload for querying artifacts. */
5102
5874
  type ArtifactQueryResponse = z.infer<(typeof ArtifactSchemas)['query']['response']>;
5875
+ /** Request payload for resolving artifact context. */
5876
+ type ArtifactResolveContextRequest = z.infer<(typeof ArtifactSchemas)['resolveContext']['request']>;
5877
+ /** Response payload for resolving artifact context. */
5878
+ type ArtifactResolveContextResponse = z.infer<(typeof ArtifactSchemas)['resolveContext']['response']>;
5103
5879
  /** Payload for the artifact created event. */
5104
5880
  type ArtifactCreatedPayload = z.infer<(typeof ArtifactSchemas)['created']>;
5105
5881
  /** Payload for the artifact revised event. */
@@ -5113,4 +5889,4 @@ type ArtifactStatusChangedPayload = z.infer<(typeof ArtifactSchemas)['status.cha
5113
5889
  /** Payload for the kind registration changed event. */
5114
5890
  type ArtifactKindChangedPayload = z.infer<(typeof ArtifactSchemas)['kind.changed']>;
5115
5891
  //#endregion
5116
- export { ArtifactObservationSchema as $, ArtifactDraft as A, BeforeArtifactHookRegistration as B, ArtifactStatusChangedPayload as C, ConfidenceMetadataSchema as Ct, ArtifactKindDefinition as D, LocalRefSchema as Dt, ArtifactDataOf as E, LocalRef as Et, ArtifactLifecycleHookRegistration$1 as F, ArtifactCompareRequestSchema as G, ArtifactActor as H, ArtifactLifecycleSemanticEvent as I, ArtifactConflictPolicy as J, ArtifactCompareResponse as K, ArtifactReactionHookContext as L, ArtifactHookFilter as M, ArtifactLifecycleHookDefinition as N, ArtifactOf as O, RelationTypeRegistration$1 as Ot, ArtifactLifecycleHookEvent as P, ArtifactObservation$1 as Q, ArtifactReactionHookRegistration as R, ArtifactSchemas as S, ConfidenceMetadata as St, AnyArtifactKindDefinition as T, EvidenceRefSchema as Tt, ArtifactActorSchema as U, defineArtifactLifecycleHooks as V, ArtifactCompareRequest as W, ArtifactKindRegistration$1 as X, ArtifactConflictPolicySchema as Y, ArtifactKindRegistrationSchema as Z, ArtifactResolveRequest as _, ArtifactScopeSchema as _t, ArtifactKindListRequest as a, ArtifactRefSchema as at, ArtifactReviseResponse as b, ConfidenceLevel as bt, ArtifactKindRegisterResponse as c, ArtifactRelationQueryTargetSchema as ct, ArtifactQueryResponse as d, ArtifactRelationTargetSchema as dt, ArtifactQueryRequest as et, ArtifactRelationAddedPayload as f, ArtifactRepresentations as ft, ArtifactRelationTypeRegisterResponse as g, ArtifactScope as gt, ArtifactRelationTypeRegisterRequest as h, ArtifactRevisionSchema as ht, ArtifactKindChangedPayload as i, ArtifactRef as it, ArtifactDraftPatch as j, defineArtifactKind as k, RelationTypeRegistrationSchema as kt, ArtifactNamespace as l, ArtifactRelationSchema as lt, ArtifactRelationTypeListResponse as m, ArtifactRevision$1 as mt, ArtifactCreateResponse as n, ArtifactQueryScope as nt, ArtifactKindListResponse as o, ArtifactRelation as ot, ArtifactRelationTypeListRequest as p, ArtifactRepresentationsSchema as pt, ArtifactCompareResponseSchema as q, ArtifactCreatedPayload as r, ArtifactQueryScopeSchema as rt, ArtifactKindRegisterRequest as s, ArtifactRelationQueryTarget as st, ArtifactCreateRequest as t, ArtifactQueryRequestSchema as tt, ArtifactObservationAddedPayload as u, ArtifactRelationTarget as ut, ArtifactResolveResponse as v, ConfidenceBasis as vt, ArtifactSubjects$1 as w, EvidenceRef as wt, ArtifactRevisedPayload as x, ConfidenceLevelSchema as xt, ArtifactReviseRequest as y, ConfidenceBasisSchema as yt, BeforeArtifactHookContext as z };
5892
+ export { BeforeArtifactHookContext as $, ArtifactContextTree as A, ArtifactRelationQueryTargetSchema as At, ArtifactDataOf as B, ConfidenceBasis as Bt, ArtifactRevisedPayload as C, ArtifactQueryRequestSchema as Ct, hydrateArtifactContextTree as D, ArtifactRefSchema as Dt, ArtifactSubjects$1 as E, ArtifactRef$1 as Et, ArtifactContextUnresolvedReason as F, ArtifactRepresentationsSchema as Ft, ArtifactDraftPatch as G, ConfidenceMetadataSchema as Gt, ArtifactOf as H, ConfidenceLevel as Ht, ArtifactContextUnresolvedReasonSchema as I, ArtifactRevision$1 as It, ArtifactLifecycleHookEvent as J, LocalRef as Jt, ArtifactHookFilter as K, EvidenceRef as Kt, ResolvedArtifactContextWire$1 as L, ArtifactRevisionSchema as Lt, UnresolvedArtifactContextNode as M, ArtifactRelationTarget as Mt, ArtifactContextRefEntry as N, ArtifactRelationTargetSchema as Nt, ArtifactContextNode as O, ArtifactRelation as Ot, ArtifactContextRefEntrySchema as P, ArtifactRepresentations as Pt, ArtifactReactionHookRegistration as Q, ResolvedArtifactContextWireSchema as R, ArtifactScope as Rt, ArtifactReviseResponse as S, ArtifactQueryRequest as St, ArtifactStatusChangedPayload as T, ArtifactQueryScopeSchema as Tt, defineArtifactKind as U, ConfidenceLevelSchema as Ut, ArtifactKindDefinition as V, ConfidenceBasisSchema as Vt, ArtifactDraft as W, ConfidenceMetadata as Wt, ArtifactLifecycleSemanticEvent as X, RelationTypeRegistration$1 as Xt, ArtifactLifecycleHookRegistration$1 as Y, LocalRefSchema as Yt, ArtifactReactionHookContext as Z, RelationTypeRegistrationSchema as Zt, ArtifactResolveContextRequest as _, ArtifactConflictPolicySchema as _t, ArtifactKindListRequest as a, ArtifactContextRelationSelectorSchema as at, ArtifactResolveResponse as b, ArtifactObservation$1 as bt, ArtifactKindRegisterResponse as c, ArtifactContextSelector$1 as ct, ArtifactQueryResponse as d, ArtifactActorSchema as dt, BeforeArtifactHookRegistration as et, ArtifactRelationAddedPayload as f, ArtifactCompareRequest as ft, ArtifactRelationTypeRegisterResponse as g, ArtifactConflictPolicy as gt, ArtifactRelationTypeRegisterRequest as h, ArtifactCompareResponseSchema as ht, ArtifactKindChangedPayload as i, ArtifactContextRelationSelector as it, ResolvedArtifactContextNode as j, ArtifactRelationSchema as jt, ArtifactContextRootNode as k, ArtifactRelationQueryTarget as kt, ArtifactNamespace as l, ArtifactContextSelectorSchema as lt, ArtifactRelationTypeListResponse as m, ArtifactCompareResponse as mt, ArtifactCreateResponse as n, ARTIFACT_CONTEXT_RENDER_HINTS as nt, ArtifactKindListResponse as o, ArtifactContextRenderHint as ot, ArtifactRelationTypeListRequest as p, ArtifactCompareRequestSchema as pt, ArtifactLifecycleHookDefinition as q, EvidenceRefSchema as qt, ArtifactCreatedPayload as r, ArtifactContextKnownRenderHint as rt, ArtifactKindRegisterRequest as s, ArtifactContextRenderHintSchema as st, ArtifactCreateRequest as t, defineArtifactLifecycleHooks as tt, ArtifactObservationAddedPayload as u, ArtifactActor as ut, ArtifactResolveContextResponse as v, ArtifactKindRegistration$1 as vt, ArtifactSchemas as w, ArtifactQueryScope as wt, ArtifactReviseRequest as x, ArtifactObservationSchema as xt, ArtifactResolveRequest as y, ArtifactKindRegistrationSchema as yt, AnyArtifactKindDefinition as z, ArtifactScopeSchema as zt };