@makaio/framework 1.0.0-dev-1790248497521 → 1.0.0-dev-1790535947927
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.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.d.mts +24 -24
- package/dist/artifact-C4J_FDq8.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-DzEgIHGt.mjs +9 -0
- package/dist/clients/index.d.mts +5 -5
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +46 -46
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{extension-C6ANjR33.mjs → extension-BOMfXdko.mjs} +1 -1
- package/dist/{index-D5Lw1UsO.d.mts → index-B1iXL1pW.d.mts} +8 -8
- package/dist/{index-DDCixELI.d.mts → index-BUxs65tf.d.mts} +1 -1
- package/dist/{index-rkN_9bde.d.mts → index-BVN64wQx.d.mts} +24 -24
- package/dist/{index-Bon00c4i.d.mts → index-Bc4u4rD8.d.mts} +5 -5
- package/dist/{index-CEX9qfLa.d.mts → index-Bgz81LHZ.d.mts} +1 -1
- package/dist/{index-BrMihjbI.d.mts → index-CEy4pCZ0.d.mts} +76 -76
- package/dist/{index-DJLRXASA.d.mts → index-CMsQnCAu.d.mts} +38 -38
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-Dcwee5Cl.d.mts → index-CWry0rks.d.mts} +195 -89
- package/dist/{index-6UlianLY2.d.mts → index-CnQw9he92.d.mts} +8 -8
- package/dist/{index-CydQ1dLS2.d.mts → index-DIOmmpkx2.d.mts} +6 -3
- package/dist/{index-C4VB63lu.d.mts → index-DPc-Lstu.d.mts} +95 -77
- package/dist/{index-D5BLD2Pw.d.mts → index-DqN1u0Y2.d.mts} +6 -6
- package/dist/{index-LCumcYK12.d.mts → index-DzOTNzZv2.d.mts} +38 -38
- package/dist/{index-wGlFWRXg.d.mts → index-aAo9ugCm.d.mts} +4 -4
- package/dist/{index-QgSmUedN.d.mts → index-lSpH5lvV.d.mts} +5 -5
- package/dist/{index-BZQ3OviE.d.mts → index-oE2q0pTG.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +2 -2
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kind-registration-DdbhhvaT.mjs +1 -0
- package/dist/{materialization-CIrHHspa.mjs → materialization-CxV6fpuB.mjs} +1 -1
- package/dist/{namespace-C5tKjqgb.d.mts → namespace-B9iQN3FQ.d.mts} +4 -4
- package/dist/{namespace-BEi98VfQ.d.mts → namespace-Bz0ZDWhE.d.mts} +18 -18
- package/dist/{namespace-D8oTiLLo.d.mts → namespace-C1-ZAKEG.d.mts} +6 -6
- package/dist/{namespace-D6W4Erwp.d.mts → namespace-DAzOxaux.d.mts} +2 -2
- package/dist/{package-BswWlFSn.d.mts → package-DT1Jaweg.d.mts} +2 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CU2NE5Lg.d.mts → schemas-B-2yBaGk.d.mts} +11 -7
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-CrOeGZHg.d.mts → schemas-Dec5VtBU.d.mts} +10 -10
- package/dist/{schemas-__oTCzF6.d.mts → schemas-Dyp3rHZ7.d.mts} +4 -4
- package/dist/schemas-W3nT06vH.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +25 -25
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-CSN6QoMp.d.mts → transition-DH313MFE.d.mts} +1 -1
- package/dist/{types-BP_P1izV.d.mts → types-qna5Bcs8.d.mts} +16 -16
- package/dist/{view-builder-2cR7vI7R.d.mts → view-builder-D6W7fBUv.d.mts} +8 -8
- package/dist/{worker-YKEWHrx5.mjs → worker-zHq43Iyk.mjs} +1 -1
- package/dist/{workflow-01evBylF.mjs → workflow-BFAraH3Y.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +18 -18
- package/dist/workflow-engine/package.d.mts +1 -1
- package/package.json +1 -1
- package/dist/artifact-DF2UJsjP.mjs +0 -1
- package/dist/bus-DgpPEPoM.mjs +0 -9
- package/dist/kind-registration-Dzfo6kyb.mjs +0 -1
- package/dist/schemas-CHM0wMq4.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ArtifactScope, K as ArtifactKindRegistration$1, V as ArtifactCategory, X as ArtifactLifecycleState, _ as ArtifactRelationTarget, ot as ArtifactRef$1, p as ArtifactRelation, rt as ArtifactUniquenessRule, s as ArtifactObservation$1, t as ArtifactActor, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-
|
|
1
|
+
import { C as ArtifactScope, K as ArtifactKindRegistration$1, V as ArtifactCategory, X as ArtifactLifecycleState, _ as ArtifactRelationTarget, ot as ArtifactRef$1, p as ArtifactRelation, rt as ArtifactUniquenessRule, s as ArtifactObservation$1, t as ArtifactActor, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-B-2yBaGk.mjs";
|
|
2
2
|
import { l as JsonValue$1 } from "./json-value--pv1-OHx.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -67,6 +67,72 @@ declare const EvidenceValueSchema$1: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
67
67
|
/** Direct, immutable evidence pointer attached to an artifact revision. */
|
|
68
68
|
type EvidenceValue$1 = z.infer<typeof EvidenceValueSchema$1>;
|
|
69
69
|
//#endregion
|
|
70
|
+
//#region core/contracts/src/artifact/slug.d.ts
|
|
71
|
+
/**
|
|
72
|
+
* Lowercase alphanumeric segments joined by single or double hyphens
|
|
73
|
+
* (`my-slug`, `my--slug`); no leading or trailing hyphen, no uppercase, no
|
|
74
|
+
* other characters. Comparison is exact — the store never normalizes a slug.
|
|
75
|
+
*
|
|
76
|
+
* Public on purpose: a consumer store validates backfilled slugs and builds
|
|
77
|
+
* its column check against this pattern, and {@link ARTIFACT_SLUG_FIELD} names
|
|
78
|
+
* the legacy `data.slug` key a migration strips. Both are contract, not
|
|
79
|
+
* implementation detail.
|
|
80
|
+
*/
|
|
81
|
+
declare const ARTIFACT_SLUG_PATTERN: RegExp;
|
|
82
|
+
/**
|
|
83
|
+
* Human-readable envelope address of an artifact, unique per kind and scope.
|
|
84
|
+
*
|
|
85
|
+
* The slug is part of the envelope next to `kind` and `id`: every artifact has
|
|
86
|
+
* one, it is assigned at creation, and it never changes across revisions. A
|
|
87
|
+
* kind must not declare a data field named `slug` — the envelope owns it.
|
|
88
|
+
*
|
|
89
|
+
* Uniqueness per kind and scope is a store invariant, not a declared
|
|
90
|
+
* `ArtifactUniquenessRuleSchema` rule: rules select data paths and
|
|
91
|
+
* relation targets, and a kind cannot opt out of the envelope address. The
|
|
92
|
+
* store enforces it structurally (a unique index over kind, scope, and slug)
|
|
93
|
+
* and reports a collision as a conflict.
|
|
94
|
+
*/
|
|
95
|
+
declare const ArtifactSlugSchema: z.ZodString;
|
|
96
|
+
/** Envelope address of an artifact, unique per kind and scope. */
|
|
97
|
+
type ArtifactSlug = z.infer<typeof ArtifactSlugSchema>;
|
|
98
|
+
/** Name of the reserved envelope field that kinds may not declare in `data`. */
|
|
99
|
+
declare const ARTIFACT_SLUG_FIELD = "slug";
|
|
100
|
+
/**
|
|
101
|
+
* Derive a slug from free text, typically the artifact title.
|
|
102
|
+
*
|
|
103
|
+
* German umlauts and ß are transliterated (`ä` → `ae`, `ß` → `ss`), other
|
|
104
|
+
* diacritics are stripped, everything outside `[a-z0-9]` becomes a hyphen, and
|
|
105
|
+
* runs of hyphens collapse to one. The result satisfies
|
|
106
|
+
* {@link ARTIFACT_SLUG_PATTERN}; `null` means the text carries no usable
|
|
107
|
+
* characters and the caller must choose another source.
|
|
108
|
+
* @param text - Free text such as an artifact title.
|
|
109
|
+
* @returns A valid slug, or `null` when nothing remains after normalization.
|
|
110
|
+
*/
|
|
111
|
+
declare function slugify(text: string): string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Derive the envelope slug a store assigns when a create request carries none.
|
|
114
|
+
*
|
|
115
|
+
* The title selected by the kind's `titlePath` is the source. When the title
|
|
116
|
+
* yields no usable characters the artifact identity is the fallback, so a
|
|
117
|
+
* derived slug always exists. Stores disambiguate a derived slug that collides
|
|
118
|
+
* within its kind and scope with a numeric suffix (`-2`, `-3`, …); only a
|
|
119
|
+
* caller-supplied slug rejects on collision.
|
|
120
|
+
* @param data - Validated artifact data.
|
|
121
|
+
* @param titlePath - Data-relative title path declared by the kind.
|
|
122
|
+
* @param id - Artifact identity used when the title yields no slug.
|
|
123
|
+
* @returns A slug satisfying {@link ARTIFACT_SLUG_PATTERN}.
|
|
124
|
+
*/
|
|
125
|
+
declare function deriveArtifactSlug(data: Record<string, unknown>, titlePath: string, id: string): string;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region core/contracts/src/artifact/kind-reserved-fields.d.ts
|
|
128
|
+
/**
|
|
129
|
+
* Whether any top-level schema variant of `dataSchema` may carry `name`.
|
|
130
|
+
* @param dataSchema - Serialized artifact data schema.
|
|
131
|
+
* @param name - Top-level property name to look for.
|
|
132
|
+
* @returns `true` when at least one reachable variant declares or pattern-matches the name.
|
|
133
|
+
*/
|
|
134
|
+
declare function mayArtifactDataCarryProperty(dataSchema: Record<string, unknown>, name: string): boolean;
|
|
135
|
+
//#endregion
|
|
70
136
|
//#region core/contracts/src/artifact/evidence-resolution.d.ts
|
|
71
137
|
/** Request to resolve one immutable evidence pointer. */
|
|
72
138
|
declare const EvidenceResolveRequestSchema: z.ZodObject<{
|
|
@@ -526,7 +592,7 @@ type DefineArtifactKindOptions<TData extends Record<string, unknown>, TKind exte
|
|
|
526
592
|
* Raw input first passes the serialized canonical payload schema, preventing live
|
|
527
593
|
* object schemas from silently stripping undeclared fields. The original input
|
|
528
594
|
* then passes through the live Zod schema so dynamic defaults and refinements
|
|
529
|
-
* retain their authoring semantics, followed by title
|
|
595
|
+
* retain their authoring semantics, followed by the reserved-slug and title checks. Serialized registrations
|
|
530
596
|
* retain titlePath so hosts can enforce the same invariant via readArtifactTitle.
|
|
531
597
|
* Hooks remain live-only; each registration call returns an independent snapshot.
|
|
532
598
|
* @param options - Current kind contract, live schema and optional lifecycle hooks.
|
|
@@ -806,6 +872,7 @@ declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
|
|
|
806
872
|
resolved: z.ZodArray<z.ZodObject<{
|
|
807
873
|
kind: z.ZodString;
|
|
808
874
|
id: z.ZodString;
|
|
875
|
+
slug: z.ZodString;
|
|
809
876
|
revision: z.ZodString;
|
|
810
877
|
scope: z.ZodObject<{
|
|
811
878
|
level: z.ZodString;
|
|
@@ -892,9 +959,9 @@ declare const ResolvedArtifactContextWireSchema: z.ZodObject<{
|
|
|
892
959
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
893
960
|
level: z.ZodEnum<{
|
|
894
961
|
inferred: "inferred";
|
|
895
|
-
confirmed: "confirmed";
|
|
896
962
|
assumed: "assumed";
|
|
897
963
|
stated: "stated";
|
|
964
|
+
confirmed: "confirmed";
|
|
898
965
|
verified: "verified";
|
|
899
966
|
}>;
|
|
900
967
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1090,22 +1157,6 @@ declare const ArtifactResolvePartResponseSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1090
1157
|
type ArtifactResolvePartResponse = z.infer<typeof ArtifactResolvePartResponseSchema>;
|
|
1091
1158
|
//#endregion
|
|
1092
1159
|
//#region core/contracts/src/artifact/namespace.d.ts
|
|
1093
|
-
/**
|
|
1094
|
-
* Framework-level artifact bus schemas.
|
|
1095
|
-
*
|
|
1096
|
-
* Defines the full set of revision events, business-lifecycle subjects and core
|
|
1097
|
-
* RPCs for hosts that opt into the framework artifact contract. The schema set covers:
|
|
1098
|
-
*
|
|
1099
|
-
* - Shared lifecycle get / history / transition RPCs and committed / rejected events
|
|
1100
|
-
* - Kind and relation-type registration RPCs
|
|
1101
|
-
* - Revision create / revise / patch / resolve / query / compare RPCs
|
|
1102
|
-
* - `created`, `revised`, `relation.added`, `observation.added`,
|
|
1103
|
-
* `status.changed`, and `kind.changed` revision and registry events
|
|
1104
|
-
*
|
|
1105
|
-
* Product hosts that extend the framework artifact namespace should
|
|
1106
|
-
* register a product-owned namespace instead of merging additional
|
|
1107
|
-
* subjects into this one.
|
|
1108
|
-
*/
|
|
1109
1160
|
declare const ArtifactSchemas$1: {
|
|
1110
1161
|
/** Register a new artifact kind with the artifact service (RPC). */'kind.register': {
|
|
1111
1162
|
request: z.ZodObject<{
|
|
@@ -1269,7 +1320,6 @@ declare const ArtifactSchemas$1: {
|
|
|
1269
1320
|
request: z.ZodObject<{
|
|
1270
1321
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1271
1322
|
kind: z.ZodString;
|
|
1272
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1273
1323
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1274
1324
|
source: z.ZodObject<{
|
|
1275
1325
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -1317,6 +1367,7 @@ declare const ArtifactSchemas$1: {
|
|
|
1317
1367
|
}, z.core.$strict>]>;
|
|
1318
1368
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
1319
1369
|
}, z.core.$strict>]>>>;
|
|
1370
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1320
1371
|
schemaVersion: z.ZodNumber;
|
|
1321
1372
|
scope: z.ZodObject<{
|
|
1322
1373
|
level: z.ZodString;
|
|
@@ -1359,9 +1410,9 @@ declare const ArtifactSchemas$1: {
|
|
|
1359
1410
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1360
1411
|
level: z.ZodEnum<{
|
|
1361
1412
|
inferred: "inferred";
|
|
1362
|
-
confirmed: "confirmed";
|
|
1363
1413
|
assumed: "assumed";
|
|
1364
1414
|
stated: "stated";
|
|
1415
|
+
confirmed: "confirmed";
|
|
1365
1416
|
verified: "verified";
|
|
1366
1417
|
}>;
|
|
1367
1418
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1406,11 +1457,13 @@ declare const ArtifactSchemas$1: {
|
|
|
1406
1457
|
plaintext: z.ZodOptional<z.ZodString>;
|
|
1407
1458
|
}, z.core.$strip>>;
|
|
1408
1459
|
id: z.ZodOptional<z.ZodString>;
|
|
1460
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1409
1461
|
}, z.core.$strip>;
|
|
1410
1462
|
response: z.ZodObject<{
|
|
1411
1463
|
artifact: z.ZodObject<{
|
|
1412
1464
|
kind: z.ZodString;
|
|
1413
1465
|
id: z.ZodString;
|
|
1466
|
+
slug: z.ZodString;
|
|
1414
1467
|
revision: z.ZodString;
|
|
1415
1468
|
scope: z.ZodObject<{
|
|
1416
1469
|
level: z.ZodString;
|
|
@@ -1497,9 +1550,9 @@ declare const ArtifactSchemas$1: {
|
|
|
1497
1550
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1498
1551
|
level: z.ZodEnum<{
|
|
1499
1552
|
inferred: "inferred";
|
|
1500
|
-
confirmed: "confirmed";
|
|
1501
1553
|
assumed: "assumed";
|
|
1502
1554
|
stated: "stated";
|
|
1555
|
+
confirmed: "confirmed";
|
|
1503
1556
|
verified: "verified";
|
|
1504
1557
|
}>;
|
|
1505
1558
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1565,7 +1618,6 @@ declare const ArtifactSchemas$1: {
|
|
|
1565
1618
|
revision: z.ZodObject<{
|
|
1566
1619
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1567
1620
|
kind: z.ZodString;
|
|
1568
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1569
1621
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1570
1622
|
source: z.ZodObject<{
|
|
1571
1623
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -1613,6 +1665,7 @@ declare const ArtifactSchemas$1: {
|
|
|
1613
1665
|
}, z.core.$strict>]>;
|
|
1614
1666
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
1615
1667
|
}, z.core.$strict>]>>>;
|
|
1668
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1616
1669
|
schemaVersion: z.ZodNumber;
|
|
1617
1670
|
scope: z.ZodObject<{
|
|
1618
1671
|
level: z.ZodString;
|
|
@@ -1655,9 +1708,9 @@ declare const ArtifactSchemas$1: {
|
|
|
1655
1708
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1656
1709
|
level: z.ZodEnum<{
|
|
1657
1710
|
inferred: "inferred";
|
|
1658
|
-
confirmed: "confirmed";
|
|
1659
1711
|
assumed: "assumed";
|
|
1660
1712
|
stated: "stated";
|
|
1713
|
+
confirmed: "confirmed";
|
|
1661
1714
|
verified: "verified";
|
|
1662
1715
|
}>;
|
|
1663
1716
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1707,6 +1760,7 @@ declare const ArtifactSchemas$1: {
|
|
|
1707
1760
|
artifact: z.ZodObject<{
|
|
1708
1761
|
kind: z.ZodString;
|
|
1709
1762
|
id: z.ZodString;
|
|
1763
|
+
slug: z.ZodString;
|
|
1710
1764
|
revision: z.ZodString;
|
|
1711
1765
|
scope: z.ZodObject<{
|
|
1712
1766
|
level: z.ZodString;
|
|
@@ -1793,9 +1847,9 @@ declare const ArtifactSchemas$1: {
|
|
|
1793
1847
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1794
1848
|
level: z.ZodEnum<{
|
|
1795
1849
|
inferred: "inferred";
|
|
1796
|
-
confirmed: "confirmed";
|
|
1797
1850
|
assumed: "assumed";
|
|
1798
1851
|
stated: "stated";
|
|
1852
|
+
confirmed: "confirmed";
|
|
1799
1853
|
verified: "verified";
|
|
1800
1854
|
}>;
|
|
1801
1855
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1984,6 +2038,7 @@ declare const ArtifactSchemas$1: {
|
|
|
1984
2038
|
artifact: z.ZodNullable<z.ZodObject<{
|
|
1985
2039
|
kind: z.ZodString;
|
|
1986
2040
|
id: z.ZodString;
|
|
2041
|
+
slug: z.ZodString;
|
|
1987
2042
|
revision: z.ZodString;
|
|
1988
2043
|
scope: z.ZodObject<{
|
|
1989
2044
|
level: z.ZodString;
|
|
@@ -2070,9 +2125,9 @@ declare const ArtifactSchemas$1: {
|
|
|
2070
2125
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2071
2126
|
level: z.ZodEnum<{
|
|
2072
2127
|
inferred: "inferred";
|
|
2073
|
-
confirmed: "confirmed";
|
|
2074
2128
|
assumed: "assumed";
|
|
2075
2129
|
stated: "stated";
|
|
2130
|
+
confirmed: "confirmed";
|
|
2076
2131
|
verified: "verified";
|
|
2077
2132
|
}>;
|
|
2078
2133
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -2183,6 +2238,7 @@ declare const ArtifactSchemas$1: {
|
|
|
2183
2238
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2184
2239
|
}, z.core.$strip>>;
|
|
2185
2240
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2241
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2186
2242
|
currentOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2187
2243
|
search: z.ZodOptional<z.ZodString>;
|
|
2188
2244
|
relation: z.ZodOptional<z.ZodObject<{
|
|
@@ -2216,16 +2272,16 @@ declare const ArtifactSchemas$1: {
|
|
|
2216
2272
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2217
2273
|
maxLevel: z.ZodOptional<z.ZodEnum<{
|
|
2218
2274
|
inferred: "inferred";
|
|
2219
|
-
confirmed: "confirmed";
|
|
2220
2275
|
assumed: "assumed";
|
|
2221
2276
|
stated: "stated";
|
|
2277
|
+
confirmed: "confirmed";
|
|
2222
2278
|
verified: "verified";
|
|
2223
2279
|
}>>;
|
|
2224
2280
|
minLevel: z.ZodOptional<z.ZodEnum<{
|
|
2225
2281
|
inferred: "inferred";
|
|
2226
|
-
confirmed: "confirmed";
|
|
2227
2282
|
assumed: "assumed";
|
|
2228
2283
|
stated: "stated";
|
|
2284
|
+
confirmed: "confirmed";
|
|
2229
2285
|
verified: "verified";
|
|
2230
2286
|
}>>;
|
|
2231
2287
|
}, z.core.$strip>>;
|
|
@@ -2236,6 +2292,7 @@ declare const ArtifactSchemas$1: {
|
|
|
2236
2292
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
2237
2293
|
kind: z.ZodString;
|
|
2238
2294
|
id: z.ZodString;
|
|
2295
|
+
slug: z.ZodString;
|
|
2239
2296
|
revision: z.ZodString;
|
|
2240
2297
|
scope: z.ZodObject<{
|
|
2241
2298
|
level: z.ZodString;
|
|
@@ -2322,9 +2379,9 @@ declare const ArtifactSchemas$1: {
|
|
|
2322
2379
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2323
2380
|
level: z.ZodEnum<{
|
|
2324
2381
|
inferred: "inferred";
|
|
2325
|
-
confirmed: "confirmed";
|
|
2326
2382
|
assumed: "assumed";
|
|
2327
2383
|
stated: "stated";
|
|
2384
|
+
confirmed: "confirmed";
|
|
2328
2385
|
verified: "verified";
|
|
2329
2386
|
}>;
|
|
2330
2387
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -2397,6 +2454,7 @@ declare const ArtifactSchemas$1: {
|
|
|
2397
2454
|
base: z.ZodObject<{
|
|
2398
2455
|
kind: z.ZodString;
|
|
2399
2456
|
id: z.ZodString;
|
|
2457
|
+
slug: z.ZodString;
|
|
2400
2458
|
revision: z.ZodString;
|
|
2401
2459
|
scope: z.ZodObject<{
|
|
2402
2460
|
level: z.ZodString;
|
|
@@ -2483,9 +2541,9 @@ declare const ArtifactSchemas$1: {
|
|
|
2483
2541
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2484
2542
|
level: z.ZodEnum<{
|
|
2485
2543
|
inferred: "inferred";
|
|
2486
|
-
confirmed: "confirmed";
|
|
2487
2544
|
assumed: "assumed";
|
|
2488
2545
|
stated: "stated";
|
|
2546
|
+
confirmed: "confirmed";
|
|
2489
2547
|
verified: "verified";
|
|
2490
2548
|
}>;
|
|
2491
2549
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -2540,6 +2598,7 @@ declare const ArtifactSchemas$1: {
|
|
|
2540
2598
|
target: z.ZodObject<{
|
|
2541
2599
|
kind: z.ZodString;
|
|
2542
2600
|
id: z.ZodString;
|
|
2601
|
+
slug: z.ZodString;
|
|
2543
2602
|
revision: z.ZodString;
|
|
2544
2603
|
scope: z.ZodObject<{
|
|
2545
2604
|
level: z.ZodString;
|
|
@@ -2626,9 +2685,9 @@ declare const ArtifactSchemas$1: {
|
|
|
2626
2685
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2627
2686
|
level: z.ZodEnum<{
|
|
2628
2687
|
inferred: "inferred";
|
|
2629
|
-
confirmed: "confirmed";
|
|
2630
2688
|
assumed: "assumed";
|
|
2631
2689
|
stated: "stated";
|
|
2690
|
+
confirmed: "confirmed";
|
|
2632
2691
|
verified: "verified";
|
|
2633
2692
|
}>;
|
|
2634
2693
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -2863,6 +2922,7 @@ declare const ArtifactSchemas$1: {
|
|
|
2863
2922
|
resolved: z.ZodArray<z.ZodObject<{
|
|
2864
2923
|
kind: z.ZodString;
|
|
2865
2924
|
id: z.ZodString;
|
|
2925
|
+
slug: z.ZodString;
|
|
2866
2926
|
revision: z.ZodString;
|
|
2867
2927
|
scope: z.ZodObject<{
|
|
2868
2928
|
level: z.ZodString;
|
|
@@ -2949,9 +3009,9 @@ declare const ArtifactSchemas$1: {
|
|
|
2949
3009
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2950
3010
|
level: z.ZodEnum<{
|
|
2951
3011
|
inferred: "inferred";
|
|
2952
|
-
confirmed: "confirmed";
|
|
2953
3012
|
assumed: "assumed";
|
|
2954
3013
|
stated: "stated";
|
|
3014
|
+
confirmed: "confirmed";
|
|
2955
3015
|
verified: "verified";
|
|
2956
3016
|
}>;
|
|
2957
3017
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -3010,6 +3070,7 @@ declare const ArtifactSchemas$1: {
|
|
|
3010
3070
|
artifact: z.ZodObject<{
|
|
3011
3071
|
kind: z.ZodString;
|
|
3012
3072
|
id: z.ZodString;
|
|
3073
|
+
slug: z.ZodString;
|
|
3013
3074
|
revision: z.ZodString;
|
|
3014
3075
|
scope: z.ZodObject<{
|
|
3015
3076
|
level: z.ZodString;
|
|
@@ -3096,9 +3157,9 @@ declare const ArtifactSchemas$1: {
|
|
|
3096
3157
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
3097
3158
|
level: z.ZodEnum<{
|
|
3098
3159
|
inferred: "inferred";
|
|
3099
|
-
confirmed: "confirmed";
|
|
3100
3160
|
assumed: "assumed";
|
|
3101
3161
|
stated: "stated";
|
|
3162
|
+
confirmed: "confirmed";
|
|
3102
3163
|
verified: "verified";
|
|
3103
3164
|
}>;
|
|
3104
3165
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -3161,6 +3222,7 @@ declare const ArtifactSchemas$1: {
|
|
|
3161
3222
|
artifact: z.ZodObject<{
|
|
3162
3223
|
kind: z.ZodString;
|
|
3163
3224
|
id: z.ZodString;
|
|
3225
|
+
slug: z.ZodString;
|
|
3164
3226
|
revision: z.ZodString;
|
|
3165
3227
|
scope: z.ZodObject<{
|
|
3166
3228
|
level: z.ZodString;
|
|
@@ -3247,9 +3309,9 @@ declare const ArtifactSchemas$1: {
|
|
|
3247
3309
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
3248
3310
|
level: z.ZodEnum<{
|
|
3249
3311
|
inferred: "inferred";
|
|
3250
|
-
confirmed: "confirmed";
|
|
3251
3312
|
assumed: "assumed";
|
|
3252
3313
|
stated: "stated";
|
|
3314
|
+
confirmed: "confirmed";
|
|
3253
3315
|
verified: "verified";
|
|
3254
3316
|
}>;
|
|
3255
3317
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4061,7 +4123,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4061
4123
|
request: z.ZodObject<{
|
|
4062
4124
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
4063
4125
|
kind: z.ZodString;
|
|
4064
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
4065
4126
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4066
4127
|
source: z.ZodObject<{
|
|
4067
4128
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -4109,6 +4170,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4109
4170
|
}, z.core.$strict>]>;
|
|
4110
4171
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
4111
4172
|
}, z.core.$strict>]>>>;
|
|
4173
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
4112
4174
|
schemaVersion: z.ZodNumber;
|
|
4113
4175
|
scope: z.ZodObject<{
|
|
4114
4176
|
level: z.ZodString;
|
|
@@ -4151,9 +4213,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4151
4213
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
4152
4214
|
level: z.ZodEnum<{
|
|
4153
4215
|
inferred: "inferred";
|
|
4154
|
-
confirmed: "confirmed";
|
|
4155
4216
|
assumed: "assumed";
|
|
4156
4217
|
stated: "stated";
|
|
4218
|
+
confirmed: "confirmed";
|
|
4157
4219
|
verified: "verified";
|
|
4158
4220
|
}>;
|
|
4159
4221
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4198,11 +4260,13 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4198
4260
|
plaintext: z.ZodOptional<z.ZodString>;
|
|
4199
4261
|
}, z.core.$strip>>;
|
|
4200
4262
|
id: z.ZodOptional<z.ZodString>;
|
|
4263
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
4201
4264
|
}, z.core.$strip>;
|
|
4202
4265
|
response: z.ZodObject<{
|
|
4203
4266
|
artifact: z.ZodObject<{
|
|
4204
4267
|
kind: z.ZodString;
|
|
4205
4268
|
id: z.ZodString;
|
|
4269
|
+
slug: z.ZodString;
|
|
4206
4270
|
revision: z.ZodString;
|
|
4207
4271
|
scope: z.ZodObject<{
|
|
4208
4272
|
level: z.ZodString;
|
|
@@ -4289,9 +4353,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4289
4353
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
4290
4354
|
level: z.ZodEnum<{
|
|
4291
4355
|
inferred: "inferred";
|
|
4292
|
-
confirmed: "confirmed";
|
|
4293
4356
|
assumed: "assumed";
|
|
4294
4357
|
stated: "stated";
|
|
4358
|
+
confirmed: "confirmed";
|
|
4295
4359
|
verified: "verified";
|
|
4296
4360
|
}>;
|
|
4297
4361
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4357,7 +4421,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4357
4421
|
revision: z.ZodObject<{
|
|
4358
4422
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
4359
4423
|
kind: z.ZodString;
|
|
4360
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
4361
4424
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4362
4425
|
source: z.ZodObject<{
|
|
4363
4426
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -4405,6 +4468,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4405
4468
|
}, z.core.$strict>]>;
|
|
4406
4469
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
4407
4470
|
}, z.core.$strict>]>>>;
|
|
4471
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
4408
4472
|
schemaVersion: z.ZodNumber;
|
|
4409
4473
|
scope: z.ZodObject<{
|
|
4410
4474
|
level: z.ZodString;
|
|
@@ -4447,9 +4511,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4447
4511
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
4448
4512
|
level: z.ZodEnum<{
|
|
4449
4513
|
inferred: "inferred";
|
|
4450
|
-
confirmed: "confirmed";
|
|
4451
4514
|
assumed: "assumed";
|
|
4452
4515
|
stated: "stated";
|
|
4516
|
+
confirmed: "confirmed";
|
|
4453
4517
|
verified: "verified";
|
|
4454
4518
|
}>;
|
|
4455
4519
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4499,6 +4563,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4499
4563
|
artifact: z.ZodObject<{
|
|
4500
4564
|
kind: z.ZodString;
|
|
4501
4565
|
id: z.ZodString;
|
|
4566
|
+
slug: z.ZodString;
|
|
4502
4567
|
revision: z.ZodString;
|
|
4503
4568
|
scope: z.ZodObject<{
|
|
4504
4569
|
level: z.ZodString;
|
|
@@ -4585,9 +4650,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4585
4650
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
4586
4651
|
level: z.ZodEnum<{
|
|
4587
4652
|
inferred: "inferred";
|
|
4588
|
-
confirmed: "confirmed";
|
|
4589
4653
|
assumed: "assumed";
|
|
4590
4654
|
stated: "stated";
|
|
4655
|
+
confirmed: "confirmed";
|
|
4591
4656
|
verified: "verified";
|
|
4592
4657
|
}>;
|
|
4593
4658
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4776,6 +4841,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4776
4841
|
artifact: z.ZodNullable<z.ZodObject<{
|
|
4777
4842
|
kind: z.ZodString;
|
|
4778
4843
|
id: z.ZodString;
|
|
4844
|
+
slug: z.ZodString;
|
|
4779
4845
|
revision: z.ZodString;
|
|
4780
4846
|
scope: z.ZodObject<{
|
|
4781
4847
|
level: z.ZodString;
|
|
@@ -4862,9 +4928,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4862
4928
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
4863
4929
|
level: z.ZodEnum<{
|
|
4864
4930
|
inferred: "inferred";
|
|
4865
|
-
confirmed: "confirmed";
|
|
4866
4931
|
assumed: "assumed";
|
|
4867
4932
|
stated: "stated";
|
|
4933
|
+
confirmed: "confirmed";
|
|
4868
4934
|
verified: "verified";
|
|
4869
4935
|
}>;
|
|
4870
4936
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -4975,6 +5041,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
4975
5041
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4976
5042
|
}, z.core.$strip>>;
|
|
4977
5043
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5044
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
4978
5045
|
currentOnly: z.ZodOptional<z.ZodBoolean>;
|
|
4979
5046
|
search: z.ZodOptional<z.ZodString>;
|
|
4980
5047
|
relation: z.ZodOptional<z.ZodObject<{
|
|
@@ -5008,16 +5075,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5008
5075
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5009
5076
|
maxLevel: z.ZodOptional<z.ZodEnum<{
|
|
5010
5077
|
inferred: "inferred";
|
|
5011
|
-
confirmed: "confirmed";
|
|
5012
5078
|
assumed: "assumed";
|
|
5013
5079
|
stated: "stated";
|
|
5080
|
+
confirmed: "confirmed";
|
|
5014
5081
|
verified: "verified";
|
|
5015
5082
|
}>>;
|
|
5016
5083
|
minLevel: z.ZodOptional<z.ZodEnum<{
|
|
5017
5084
|
inferred: "inferred";
|
|
5018
|
-
confirmed: "confirmed";
|
|
5019
5085
|
assumed: "assumed";
|
|
5020
5086
|
stated: "stated";
|
|
5087
|
+
confirmed: "confirmed";
|
|
5021
5088
|
verified: "verified";
|
|
5022
5089
|
}>>;
|
|
5023
5090
|
}, z.core.$strip>>;
|
|
@@ -5028,6 +5095,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5028
5095
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
5029
5096
|
kind: z.ZodString;
|
|
5030
5097
|
id: z.ZodString;
|
|
5098
|
+
slug: z.ZodString;
|
|
5031
5099
|
revision: z.ZodString;
|
|
5032
5100
|
scope: z.ZodObject<{
|
|
5033
5101
|
level: z.ZodString;
|
|
@@ -5114,9 +5182,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5114
5182
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5115
5183
|
level: z.ZodEnum<{
|
|
5116
5184
|
inferred: "inferred";
|
|
5117
|
-
confirmed: "confirmed";
|
|
5118
5185
|
assumed: "assumed";
|
|
5119
5186
|
stated: "stated";
|
|
5187
|
+
confirmed: "confirmed";
|
|
5120
5188
|
verified: "verified";
|
|
5121
5189
|
}>;
|
|
5122
5190
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -5189,6 +5257,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5189
5257
|
base: z.ZodObject<{
|
|
5190
5258
|
kind: z.ZodString;
|
|
5191
5259
|
id: z.ZodString;
|
|
5260
|
+
slug: z.ZodString;
|
|
5192
5261
|
revision: z.ZodString;
|
|
5193
5262
|
scope: z.ZodObject<{
|
|
5194
5263
|
level: z.ZodString;
|
|
@@ -5275,9 +5344,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5275
5344
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5276
5345
|
level: z.ZodEnum<{
|
|
5277
5346
|
inferred: "inferred";
|
|
5278
|
-
confirmed: "confirmed";
|
|
5279
5347
|
assumed: "assumed";
|
|
5280
5348
|
stated: "stated";
|
|
5349
|
+
confirmed: "confirmed";
|
|
5281
5350
|
verified: "verified";
|
|
5282
5351
|
}>;
|
|
5283
5352
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -5332,6 +5401,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5332
5401
|
target: z.ZodObject<{
|
|
5333
5402
|
kind: z.ZodString;
|
|
5334
5403
|
id: z.ZodString;
|
|
5404
|
+
slug: z.ZodString;
|
|
5335
5405
|
revision: z.ZodString;
|
|
5336
5406
|
scope: z.ZodObject<{
|
|
5337
5407
|
level: z.ZodString;
|
|
@@ -5418,9 +5488,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5418
5488
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5419
5489
|
level: z.ZodEnum<{
|
|
5420
5490
|
inferred: "inferred";
|
|
5421
|
-
confirmed: "confirmed";
|
|
5422
5491
|
assumed: "assumed";
|
|
5423
5492
|
stated: "stated";
|
|
5493
|
+
confirmed: "confirmed";
|
|
5424
5494
|
verified: "verified";
|
|
5425
5495
|
}>;
|
|
5426
5496
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -5655,6 +5725,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5655
5725
|
resolved: z.ZodArray<z.ZodObject<{
|
|
5656
5726
|
kind: z.ZodString;
|
|
5657
5727
|
id: z.ZodString;
|
|
5728
|
+
slug: z.ZodString;
|
|
5658
5729
|
revision: z.ZodString;
|
|
5659
5730
|
scope: z.ZodObject<{
|
|
5660
5731
|
level: z.ZodString;
|
|
@@ -5741,9 +5812,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5741
5812
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5742
5813
|
level: z.ZodEnum<{
|
|
5743
5814
|
inferred: "inferred";
|
|
5744
|
-
confirmed: "confirmed";
|
|
5745
5815
|
assumed: "assumed";
|
|
5746
5816
|
stated: "stated";
|
|
5817
|
+
confirmed: "confirmed";
|
|
5747
5818
|
verified: "verified";
|
|
5748
5819
|
}>;
|
|
5749
5820
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -5802,6 +5873,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5802
5873
|
artifact: z.ZodObject<{
|
|
5803
5874
|
kind: z.ZodString;
|
|
5804
5875
|
id: z.ZodString;
|
|
5876
|
+
slug: z.ZodString;
|
|
5805
5877
|
revision: z.ZodString;
|
|
5806
5878
|
scope: z.ZodObject<{
|
|
5807
5879
|
level: z.ZodString;
|
|
@@ -5888,9 +5960,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5888
5960
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
5889
5961
|
level: z.ZodEnum<{
|
|
5890
5962
|
inferred: "inferred";
|
|
5891
|
-
confirmed: "confirmed";
|
|
5892
5963
|
assumed: "assumed";
|
|
5893
5964
|
stated: "stated";
|
|
5965
|
+
confirmed: "confirmed";
|
|
5894
5966
|
verified: "verified";
|
|
5895
5967
|
}>;
|
|
5896
5968
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -5953,6 +6025,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
5953
6025
|
artifact: z.ZodObject<{
|
|
5954
6026
|
kind: z.ZodString;
|
|
5955
6027
|
id: z.ZodString;
|
|
6028
|
+
slug: z.ZodString;
|
|
5956
6029
|
revision: z.ZodString;
|
|
5957
6030
|
scope: z.ZodObject<{
|
|
5958
6031
|
level: z.ZodString;
|
|
@@ -6039,9 +6112,9 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
6039
6112
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
6040
6113
|
level: z.ZodEnum<{
|
|
6041
6114
|
inferred: "inferred";
|
|
6042
|
-
confirmed: "confirmed";
|
|
6043
6115
|
assumed: "assumed";
|
|
6044
6116
|
stated: "stated";
|
|
6117
|
+
confirmed: "confirmed";
|
|
6045
6118
|
verified: "verified";
|
|
6046
6119
|
}>;
|
|
6047
6120
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -6875,7 +6948,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6875
6948
|
request: z.ZodObject<{
|
|
6876
6949
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
6877
6950
|
kind: z.ZodString;
|
|
6878
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
6879
6951
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6880
6952
|
source: z.ZodObject<{
|
|
6881
6953
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -6923,6 +6995,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6923
6995
|
}, z.core.$strict>]>;
|
|
6924
6996
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
6925
6997
|
}, z.core.$strict>]>>>;
|
|
6998
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
6926
6999
|
schemaVersion: z.ZodNumber;
|
|
6927
7000
|
scope: z.ZodObject<{
|
|
6928
7001
|
level: z.ZodString;
|
|
@@ -6965,9 +7038,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6965
7038
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
6966
7039
|
level: z.ZodEnum<{
|
|
6967
7040
|
inferred: "inferred";
|
|
6968
|
-
confirmed: "confirmed";
|
|
6969
7041
|
assumed: "assumed";
|
|
6970
7042
|
stated: "stated";
|
|
7043
|
+
confirmed: "confirmed";
|
|
6971
7044
|
verified: "verified";
|
|
6972
7045
|
}>;
|
|
6973
7046
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -7012,11 +7085,13 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7012
7085
|
plaintext: z.ZodOptional<z.ZodString>;
|
|
7013
7086
|
}, z.core.$strip>>;
|
|
7014
7087
|
id: z.ZodOptional<z.ZodString>;
|
|
7088
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
7015
7089
|
}, z.core.$strip>;
|
|
7016
7090
|
response: z.ZodObject<{
|
|
7017
7091
|
artifact: z.ZodObject<{
|
|
7018
7092
|
kind: z.ZodString;
|
|
7019
7093
|
id: z.ZodString;
|
|
7094
|
+
slug: z.ZodString;
|
|
7020
7095
|
revision: z.ZodString;
|
|
7021
7096
|
scope: z.ZodObject<{
|
|
7022
7097
|
level: z.ZodString;
|
|
@@ -7103,9 +7178,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7103
7178
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7104
7179
|
level: z.ZodEnum<{
|
|
7105
7180
|
inferred: "inferred";
|
|
7106
|
-
confirmed: "confirmed";
|
|
7107
7181
|
assumed: "assumed";
|
|
7108
7182
|
stated: "stated";
|
|
7183
|
+
confirmed: "confirmed";
|
|
7109
7184
|
verified: "verified";
|
|
7110
7185
|
}>;
|
|
7111
7186
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -7171,7 +7246,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7171
7246
|
revision: z.ZodObject<{
|
|
7172
7247
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
7173
7248
|
kind: z.ZodString;
|
|
7174
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
7175
7249
|
evidence: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
7176
7250
|
source: z.ZodObject<{
|
|
7177
7251
|
kind: z.ZodLiteral<"git-file">;
|
|
@@ -7219,6 +7293,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7219
7293
|
}, z.core.$strict>]>;
|
|
7220
7294
|
excerpt: z.ZodOptional<z.ZodString>;
|
|
7221
7295
|
}, z.core.$strict>]>>>;
|
|
7296
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
7222
7297
|
schemaVersion: z.ZodNumber;
|
|
7223
7298
|
scope: z.ZodObject<{
|
|
7224
7299
|
level: z.ZodString;
|
|
@@ -7261,9 +7336,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7261
7336
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7262
7337
|
level: z.ZodEnum<{
|
|
7263
7338
|
inferred: "inferred";
|
|
7264
|
-
confirmed: "confirmed";
|
|
7265
7339
|
assumed: "assumed";
|
|
7266
7340
|
stated: "stated";
|
|
7341
|
+
confirmed: "confirmed";
|
|
7267
7342
|
verified: "verified";
|
|
7268
7343
|
}>;
|
|
7269
7344
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -7313,6 +7388,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7313
7388
|
artifact: z.ZodObject<{
|
|
7314
7389
|
kind: z.ZodString;
|
|
7315
7390
|
id: z.ZodString;
|
|
7391
|
+
slug: z.ZodString;
|
|
7316
7392
|
revision: z.ZodString;
|
|
7317
7393
|
scope: z.ZodObject<{
|
|
7318
7394
|
level: z.ZodString;
|
|
@@ -7399,9 +7475,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7399
7475
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7400
7476
|
level: z.ZodEnum<{
|
|
7401
7477
|
inferred: "inferred";
|
|
7402
|
-
confirmed: "confirmed";
|
|
7403
7478
|
assumed: "assumed";
|
|
7404
7479
|
stated: "stated";
|
|
7480
|
+
confirmed: "confirmed";
|
|
7405
7481
|
verified: "verified";
|
|
7406
7482
|
}>;
|
|
7407
7483
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -7590,6 +7666,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7590
7666
|
artifact: z.ZodNullable<z.ZodObject<{
|
|
7591
7667
|
kind: z.ZodString;
|
|
7592
7668
|
id: z.ZodString;
|
|
7669
|
+
slug: z.ZodString;
|
|
7593
7670
|
revision: z.ZodString;
|
|
7594
7671
|
scope: z.ZodObject<{
|
|
7595
7672
|
level: z.ZodString;
|
|
@@ -7676,9 +7753,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7676
7753
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7677
7754
|
level: z.ZodEnum<{
|
|
7678
7755
|
inferred: "inferred";
|
|
7679
|
-
confirmed: "confirmed";
|
|
7680
7756
|
assumed: "assumed";
|
|
7681
7757
|
stated: "stated";
|
|
7758
|
+
confirmed: "confirmed";
|
|
7682
7759
|
verified: "verified";
|
|
7683
7760
|
}>;
|
|
7684
7761
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -7789,6 +7866,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7789
7866
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7790
7867
|
}, z.core.$strip>>;
|
|
7791
7868
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7869
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
7792
7870
|
currentOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7793
7871
|
search: z.ZodOptional<z.ZodString>;
|
|
7794
7872
|
relation: z.ZodOptional<z.ZodObject<{
|
|
@@ -7822,16 +7900,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7822
7900
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7823
7901
|
maxLevel: z.ZodOptional<z.ZodEnum<{
|
|
7824
7902
|
inferred: "inferred";
|
|
7825
|
-
confirmed: "confirmed";
|
|
7826
7903
|
assumed: "assumed";
|
|
7827
7904
|
stated: "stated";
|
|
7905
|
+
confirmed: "confirmed";
|
|
7828
7906
|
verified: "verified";
|
|
7829
7907
|
}>>;
|
|
7830
7908
|
minLevel: z.ZodOptional<z.ZodEnum<{
|
|
7831
7909
|
inferred: "inferred";
|
|
7832
|
-
confirmed: "confirmed";
|
|
7833
7910
|
assumed: "assumed";
|
|
7834
7911
|
stated: "stated";
|
|
7912
|
+
confirmed: "confirmed";
|
|
7835
7913
|
verified: "verified";
|
|
7836
7914
|
}>>;
|
|
7837
7915
|
}, z.core.$strip>>;
|
|
@@ -7842,6 +7920,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7842
7920
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
7843
7921
|
kind: z.ZodString;
|
|
7844
7922
|
id: z.ZodString;
|
|
7923
|
+
slug: z.ZodString;
|
|
7845
7924
|
revision: z.ZodString;
|
|
7846
7925
|
scope: z.ZodObject<{
|
|
7847
7926
|
level: z.ZodString;
|
|
@@ -7928,9 +8007,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7928
8007
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
7929
8008
|
level: z.ZodEnum<{
|
|
7930
8009
|
inferred: "inferred";
|
|
7931
|
-
confirmed: "confirmed";
|
|
7932
8010
|
assumed: "assumed";
|
|
7933
8011
|
stated: "stated";
|
|
8012
|
+
confirmed: "confirmed";
|
|
7934
8013
|
verified: "verified";
|
|
7935
8014
|
}>;
|
|
7936
8015
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -8003,6 +8082,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8003
8082
|
base: z.ZodObject<{
|
|
8004
8083
|
kind: z.ZodString;
|
|
8005
8084
|
id: z.ZodString;
|
|
8085
|
+
slug: z.ZodString;
|
|
8006
8086
|
revision: z.ZodString;
|
|
8007
8087
|
scope: z.ZodObject<{
|
|
8008
8088
|
level: z.ZodString;
|
|
@@ -8089,9 +8169,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8089
8169
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
8090
8170
|
level: z.ZodEnum<{
|
|
8091
8171
|
inferred: "inferred";
|
|
8092
|
-
confirmed: "confirmed";
|
|
8093
8172
|
assumed: "assumed";
|
|
8094
8173
|
stated: "stated";
|
|
8174
|
+
confirmed: "confirmed";
|
|
8095
8175
|
verified: "verified";
|
|
8096
8176
|
}>;
|
|
8097
8177
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -8146,6 +8226,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8146
8226
|
target: z.ZodObject<{
|
|
8147
8227
|
kind: z.ZodString;
|
|
8148
8228
|
id: z.ZodString;
|
|
8229
|
+
slug: z.ZodString;
|
|
8149
8230
|
revision: z.ZodString;
|
|
8150
8231
|
scope: z.ZodObject<{
|
|
8151
8232
|
level: z.ZodString;
|
|
@@ -8232,9 +8313,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8232
8313
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
8233
8314
|
level: z.ZodEnum<{
|
|
8234
8315
|
inferred: "inferred";
|
|
8235
|
-
confirmed: "confirmed";
|
|
8236
8316
|
assumed: "assumed";
|
|
8237
8317
|
stated: "stated";
|
|
8318
|
+
confirmed: "confirmed";
|
|
8238
8319
|
verified: "verified";
|
|
8239
8320
|
}>;
|
|
8240
8321
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -8469,6 +8550,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8469
8550
|
resolved: z.ZodArray<z.ZodObject<{
|
|
8470
8551
|
kind: z.ZodString;
|
|
8471
8552
|
id: z.ZodString;
|
|
8553
|
+
slug: z.ZodString;
|
|
8472
8554
|
revision: z.ZodString;
|
|
8473
8555
|
scope: z.ZodObject<{
|
|
8474
8556
|
level: z.ZodString;
|
|
@@ -8555,9 +8637,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8555
8637
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
8556
8638
|
level: z.ZodEnum<{
|
|
8557
8639
|
inferred: "inferred";
|
|
8558
|
-
confirmed: "confirmed";
|
|
8559
8640
|
assumed: "assumed";
|
|
8560
8641
|
stated: "stated";
|
|
8642
|
+
confirmed: "confirmed";
|
|
8561
8643
|
verified: "verified";
|
|
8562
8644
|
}>;
|
|
8563
8645
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -8616,6 +8698,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8616
8698
|
artifact: z.ZodObject<{
|
|
8617
8699
|
kind: z.ZodString;
|
|
8618
8700
|
id: z.ZodString;
|
|
8701
|
+
slug: z.ZodString;
|
|
8619
8702
|
revision: z.ZodString;
|
|
8620
8703
|
scope: z.ZodObject<{
|
|
8621
8704
|
level: z.ZodString;
|
|
@@ -8702,9 +8785,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8702
8785
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
8703
8786
|
level: z.ZodEnum<{
|
|
8704
8787
|
inferred: "inferred";
|
|
8705
|
-
confirmed: "confirmed";
|
|
8706
8788
|
assumed: "assumed";
|
|
8707
8789
|
stated: "stated";
|
|
8790
|
+
confirmed: "confirmed";
|
|
8708
8791
|
verified: "verified";
|
|
8709
8792
|
}>;
|
|
8710
8793
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -8767,6 +8850,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8767
8850
|
artifact: z.ZodObject<{
|
|
8768
8851
|
kind: z.ZodString;
|
|
8769
8852
|
id: z.ZodString;
|
|
8853
|
+
slug: z.ZodString;
|
|
8770
8854
|
revision: z.ZodString;
|
|
8771
8855
|
scope: z.ZodObject<{
|
|
8772
8856
|
level: z.ZodString;
|
|
@@ -8853,9 +8937,9 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
8853
8937
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
8854
8938
|
level: z.ZodEnum<{
|
|
8855
8939
|
inferred: "inferred";
|
|
8856
|
-
confirmed: "confirmed";
|
|
8857
8940
|
assumed: "assumed";
|
|
8858
8941
|
stated: "stated";
|
|
8942
|
+
confirmed: "confirmed";
|
|
8859
8943
|
verified: "verified";
|
|
8860
8944
|
}>;
|
|
8861
8945
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -11979,7 +12063,7 @@ declare function describeArtifactRelationTargetIdentity(identity: ArtifactRelati
|
|
|
11979
12063
|
* What a store can derive and enforce; declared rules outside this set are
|
|
11980
12064
|
* reported as issues rather than silently dropped.
|
|
11981
12065
|
*/
|
|
11982
|
-
type UniquenessSelectorCapability = 'relation-target' | 'lifecycle-states';
|
|
12066
|
+
type UniquenessSelectorCapability = 'relation-target' | 'data' | 'lifecycle-states';
|
|
11983
12067
|
/** Per-rule or per-selector issue surfaced when a capability is missing. */
|
|
11984
12068
|
interface UniquenessSupportIssue {
|
|
11985
12069
|
/** Zero-based index of the rule in the declared uniqueness array. */
|
|
@@ -11989,12 +12073,7 @@ interface UniquenessSupportIssue {
|
|
|
11989
12073
|
* Absent when the issue concerns `lifecycleStates` rather than a selector.
|
|
11990
12074
|
*/
|
|
11991
12075
|
selectorIndex?: number;
|
|
11992
|
-
/**
|
|
11993
|
-
* The missing capability.
|
|
11994
|
-
* May be `'data'` even though it is not in {@link UniquenessSelectorCapability},
|
|
11995
|
-
* because a data-path selector is always undeivable regardless of what the
|
|
11996
|
-
* store declares.
|
|
11997
|
-
*/
|
|
12076
|
+
/** The missing capability. */
|
|
11998
12077
|
capability: ArtifactUniquenessRule['by'][number]['kind'] | 'lifecycle-states';
|
|
11999
12078
|
/** Human-readable explanation. */
|
|
12000
12079
|
message: string;
|
|
@@ -12018,33 +12097,56 @@ declare function assessUniquenessSupport(rules: readonly ArtifactUniquenessRule[
|
|
|
12018
12097
|
issues: UniquenessSupportIssue[];
|
|
12019
12098
|
};
|
|
12020
12099
|
/**
|
|
12021
|
-
*
|
|
12022
|
-
*
|
|
12023
|
-
*
|
|
12024
|
-
* `relations_json @> '[{"type":"...","target":{...}}]'::jsonb`.
|
|
12100
|
+
* A `relation-target` selector's contribution to a uniqueness key.
|
|
12101
|
+
* Structurally a `Partial<ArtifactRelation>` and can be used directly as a
|
|
12102
|
+
* jsonb containment probe against the `relations_json` column:
|
|
12103
|
+
* `relations_json @> '[{"type":"...","target":{...}}]'::jsonb`. Carries no
|
|
12104
|
+
* discriminant field so this probe shape stays stable.
|
|
12025
12105
|
*/
|
|
12026
|
-
interface
|
|
12106
|
+
interface UniquenessRelationTargetKeyPart {
|
|
12027
12107
|
/** Relation type matching the selector's `relationType`. */
|
|
12028
12108
|
type: string;
|
|
12029
12109
|
/** Pin-less comparable identity of the resolved target. */
|
|
12030
12110
|
target: ArtifactRelationTargetIdentity;
|
|
12031
12111
|
}
|
|
12032
|
-
/**
|
|
12112
|
+
/**
|
|
12113
|
+
* A `data` selector's contribution to a uniqueness key (FACT-141): the exact
|
|
12114
|
+
* scalar value read from the artifact data at the selector's declared path.
|
|
12115
|
+
* No normalization or case folding is applied; comparison is exact equality.
|
|
12116
|
+
*/
|
|
12117
|
+
interface UniquenessDataKeyPart {
|
|
12118
|
+
/** Data-relative object-property path matching the selector's `path`. */
|
|
12119
|
+
path: string;
|
|
12120
|
+
/** Exact scalar value read at `path`. */
|
|
12121
|
+
value: string | number | boolean;
|
|
12122
|
+
}
|
|
12123
|
+
/**
|
|
12124
|
+
* One selector's contribution to a uniqueness key, discriminated by shape:
|
|
12125
|
+
* a `target` property marks a {@link UniquenessRelationTargetKeyPart}, a
|
|
12126
|
+
* `value` property marks a {@link UniquenessDataKeyPart}.
|
|
12127
|
+
*/
|
|
12128
|
+
type UniquenessKeyPart = UniquenessRelationTargetKeyPart | UniquenessDataKeyPart;
|
|
12129
|
+
/** A fully resolved uniqueness key derived from an artifact's relations and data. */
|
|
12033
12130
|
interface UniquenessKey {
|
|
12034
12131
|
/** The rule this key was derived from, in its original declared form. */
|
|
12035
12132
|
rule: ArtifactUniquenessRule;
|
|
12036
12133
|
/** Zero-based index of the rule in the declared uniqueness array. */
|
|
12037
12134
|
ruleIndex: number;
|
|
12038
12135
|
/**
|
|
12039
|
-
* One part per selector, in declaration order
|
|
12040
|
-
*
|
|
12136
|
+
* One part per selector, in declaration order. Parts are heterogeneous by
|
|
12137
|
+
* selector kind: a {@link UniquenessRelationTargetKeyPart} is the
|
|
12138
|
+
* containment probe a store runs against a stored relations array, a
|
|
12139
|
+
* {@link UniquenessDataKeyPart} is the exact value to compare against a
|
|
12140
|
+
* stored data field. A store enforcing a mixed rule (FACT-141) runs both
|
|
12141
|
+
* kinds of comparison per part and combines them — there is no single
|
|
12142
|
+
* probe shape that covers all parts.
|
|
12041
12143
|
*/
|
|
12042
12144
|
parts: UniquenessKeyPart[];
|
|
12043
12145
|
/** Injective string form for equality and logging (stable key order). */
|
|
12044
12146
|
serialized: string;
|
|
12045
12147
|
}
|
|
12046
12148
|
/** Reason a key could not be derived for a selector. */
|
|
12047
|
-
type UniquenessKeyIssueReason = 'missing-target' | 'ambiguous-target' | 'unsupported-target' | 'unsupported-selector';
|
|
12149
|
+
type UniquenessKeyIssueReason = 'missing-target' | 'ambiguous-target' | 'unsupported-target' | 'unsupported-selector' | 'missing-value' | 'unsupported-value-type';
|
|
12048
12150
|
/** Diagnostic for a single selector within a rule that blocked key derivation. */
|
|
12049
12151
|
interface UniquenessKeyIssue {
|
|
12050
12152
|
/** Zero-based index of the rule in the declared uniqueness array. */
|
|
@@ -12053,11 +12155,10 @@ interface UniquenessKeyIssue {
|
|
|
12053
12155
|
selectorIndex: number;
|
|
12054
12156
|
/** Why derivation failed. */
|
|
12055
12157
|
reason: UniquenessKeyIssueReason;
|
|
12056
|
-
/**
|
|
12057
|
-
* Relation type string for `relation-target` selectors.
|
|
12058
|
-
* Absent for `unsupported-selector` issues on `data` selectors.
|
|
12059
|
-
*/
|
|
12158
|
+
/** Relation type string for `relation-target` selectors; absent otherwise. */
|
|
12060
12159
|
relationType?: string;
|
|
12160
|
+
/** Data-relative object-property path for `data` selectors; absent otherwise. */
|
|
12161
|
+
dataPath?: string;
|
|
12061
12162
|
/** Human-readable explanation. */
|
|
12062
12163
|
message: string;
|
|
12063
12164
|
}
|
|
@@ -12069,20 +12170,25 @@ interface BuildUniquenessKeysResult {
|
|
|
12069
12170
|
issues: UniquenessKeyIssue[];
|
|
12070
12171
|
}
|
|
12071
12172
|
/**
|
|
12072
|
-
* Derive one key per rule from an artifact's relations
|
|
12073
|
-
* Rules with any issue produce no key; keys and issues
|
|
12173
|
+
* Derive one key per rule from an artifact's relations and, for `data`
|
|
12174
|
+
* selectors, its data. Rules with any issue produce no key; keys and issues
|
|
12175
|
+
* are returned together.
|
|
12074
12176
|
* @param rules - Declared uniqueness rules to derive keys for.
|
|
12075
12177
|
* @param relations - Full relation list of the artifact being written.
|
|
12178
|
+
* @param data - Data of the artifact being written; only needed when a rule
|
|
12179
|
+
* declares a `data` selector (FACT-141). Omitting it while such a selector
|
|
12180
|
+
* is present surfaces a `missing-value` issue rather than throwing.
|
|
12076
12181
|
* @returns Combined set of derived keys and selector-level issues.
|
|
12077
12182
|
*/
|
|
12078
|
-
declare function buildUniquenessKeys(rules: readonly ArtifactUniquenessRule[], relations: readonly ArtifactRelation[]): BuildUniquenessKeysResult;
|
|
12183
|
+
declare function buildUniquenessKeys(rules: readonly ArtifactUniquenessRule[], relations: readonly ArtifactRelation[], data?: Record<string, unknown>): BuildUniquenessKeysResult;
|
|
12079
12184
|
/**
|
|
12080
12185
|
* Human-readable one-liner for a key.
|
|
12081
12186
|
* @example `about → artifact:concept/abc`
|
|
12082
12187
|
* @example `owned-by → entity:workpiece/W-1; about → artifact:concept/abc`
|
|
12188
|
+
* @example `key → "my-key"`
|
|
12083
12189
|
* @param key - A fully resolved uniqueness key.
|
|
12084
|
-
* @returns A string describing each part in `
|
|
12190
|
+
* @returns A string describing each part in `selector → value` form, joined by `'; '`.
|
|
12085
12191
|
*/
|
|
12086
12192
|
declare function describeUniquenessKey(key: UniquenessKey): string;
|
|
12087
12193
|
//#endregion
|
|
12088
|
-
export {
|
|
12194
|
+
export { ArtifactLifecycleTransitionIntent as $, ArtifactContextRelationDirection as $n, ArtifactSchemaFragment as $t, ArtifactLifecycleRejectedPayload as A, ArtifactSchemas$1 as An, EvidenceOccurrence as Ar, ArtifactPatchResponse as At, ArtifactLifecycleHistoryEntry as B, ArtifactContextTree as Bn, ArtifactSlug as Br, artifactPatchSegment as Bt, ArtifactLifecycleGetRequestSchema as C, ArtifactResolveContextRequest as Cn, ArtifactLifecycleHookDefinition as Cr, ArtifactPatchOperationResult as Ct, ArtifactLifecycleHistoryRequestSchema as D, ArtifactReviseRequest as Dn, BeforeArtifactHookContext as Dr, ArtifactPatchPersistedSchema as Dt, ArtifactLifecycleHistoryRequest as E, ArtifactResolveResponse as En, ArtifactLifecycleSemanticEvent as Er, ArtifactPatchPathSchema as Et, toArtifactLifecycleFailure as F, ArtifactResolvePartResponse as Fn, EvidenceResolveResponse as Fr, ArtifactPatchTarget as Ft, ArtifactLifecycleRejection as G, ArtifactContextUnresolvedReason as Gn, EVIDENCE_VALUE_TYPE as Gr, ArtifactResolvePartError as Gt, ArtifactLifecycleIdentitySchema as H, UnresolvedArtifactContextNode as Hn, deriveArtifactSlug as Hr, ARTIFACT_RESOLVE_PART_ERROR_CODES as Ht, ARTIFACT_LIFECYCLE_REJECTED_CODE as I, ArtifactResolvePartResponseSchema as In, EvidenceResolveResponseSchema as Ir, ArtifactPatchTargetSchema as It, ArtifactLifecycleSituationSchema as J, ResolvedArtifactContextWireSchema as Jn, checkArtifactPartIds as Jt, ArtifactLifecycleRejectionSchema as K, ArtifactContextUnresolvedReasonSchema as Kn, EvidenceValue$1 as Kr, ArtifactResolvePartErrorCode as Kt, ArtifactLifecycleCurrent as L, hydrateArtifactContextTree as Ln, mayArtifactDataCarryProperty as Lr, artifactPatchFilterName as Lt, ArtifactLifecycleSchemas as M, ArtifactSubjects$1 as Mn, extractEvidenceOccurrences as Mr, ArtifactPatchSegment as Mt, ArtifactLifecycleTransitionResponse as N, ArtifactResolvePartRequest as Nn, EvidenceResolveRequest as Nr, ArtifactPatchSuccess as Nt, ArtifactLifecycleHistoryResponse as O, ArtifactReviseResponse as On, BeforeArtifactHookRegistration as Or, ArtifactPatchRequest as Ot, ArtifactLifecycleTransitionResponseSchema as P, ArtifactResolvePartRequestSchema as Pn, EvidenceResolveRequestSchema as Pr, ArtifactPatchSuccessSchema as Pt, ArtifactLifecycleTransitionCommandSchema as Q, ArtifactContextKnownRenderHint as Qn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Qt, ArtifactLifecycleCurrentSchema as R, ArtifactContextNode as Rn, ARTIFACT_SLUG_FIELD as Rr, artifactPatchInstructions as Rt, ArtifactLifecycleGetRequest as S, ArtifactRelationTypeRegisterResponse as Sn, ArtifactHookFilter as Sr, ArtifactPatchMigrationSchema as St, ArtifactLifecycleGetResponseSchema as T, ArtifactResolveRequest as Tn, ArtifactLifecycleHookRegistration$1 as Tr, ArtifactPatchOperator as Tt, ArtifactLifecycleInitializedEntry as U, ArtifactContextRefEntry as Un, slugify as Ur, ArtifactPartResolution as Ut, ArtifactLifecycleHistoryEntrySchema as V, ResolvedArtifactContextNode as Vn, ArtifactSlugSchema as Vr, artifactPatchSegments as Vt, ArtifactLifecycleInitializedEntrySchema as W, ArtifactContextRefEntrySchema as Wn, ARTIFACT_VALUE_TYPE_KEYWORD as Wr, ArtifactRelationSourceIssue as Wt, ArtifactLifecycleSnapshotSchema as X, ARTIFACT_CONTEXT_RELATION_DIRECTIONS as Xn, resolveArtifactPart as Xt, ArtifactLifecycleSnapshot as Y, artifactRevisionKey as Yn, checkArtifactRelationSourceParts as Yt, ArtifactLifecycleTransitionCommand as Z, ARTIFACT_CONTEXT_RENDER_HINTS as Zn, validateArtifactPartAreas as Zt, serializeArtifactRelationTargetIdentity as _, ArtifactQueryResponse as _n, defineArtifactKind as _r, ArtifactPatchFailureSchema as _t, UniquenessKeyIssueReason as a, ArtifactCreatedPayload as an, ArtifactContextSelector$1 as ar, initialArtifactLifecycle as at, ArtifactLifecycleFailure as b, ArtifactRelationTypeListResponse as bn, ArtifactDraft as br, ArtifactPatchIssueSchema as bt, UniquenessSelectorCapability as c, ArtifactKindChangedPayload as cn, ArtifactDataChecker as cr, ARTIFACT_PATCH_OPERATORS as ct, buildUniquenessKeys as d, ArtifactKindRegisterRequest as dn, compileArtifactDataChecker as dr, ArtifactPatchDocument as dt, inspectArtifactDataLocation as en, ArtifactContextRelationDirectionSchema as er, ArtifactLifecycleTransitionIntentSchema as et, describeUniquenessKey as f, ArtifactKindRegisterResponse as fn, compileArtifactDataSchema as fr, ArtifactPatchDocumentSchema as ft, describeArtifactRelationTargetIdentity as g, ArtifactPatchSubjectResponse as gn, ArtifactOf as gr, ArtifactPatchErrorSchema as gt, artifactRelationTargetIdentity as h, ArtifactPatchSubjectRequest as hn, ArtifactKindDefinition as hr, ArtifactPatchErrorCode as ht, UniquenessKeyIssue as i, ArtifactCreateResponse as in, ArtifactContextRenderHintSchema as ir, advanceArtifactLifecycle as it, ArtifactLifecycleRejectedPayloadSchema as j, ArtifactStatusChangedPayload as jn, EvidenceOccurrenceExtractionOptions as jr, ArtifactPatchResponseSchema as jt, ArtifactLifecycleHistoryResponseSchema as k, ArtifactRevisedPayload as kn, defineArtifactLifecycleHooks as kr, ArtifactPatchRequestSchema as kt, UniquenessSupportIssue as l, ArtifactKindListRequest as ln, ArtifactDataIssue as lr, ArtifactPatchArrayFilter as lt, ArtifactRelationTargetIdentitySchema as m, ArtifactObservationAddedPayload as mn, ArtifactDataOf as mr, ArtifactPatchError as mt, UniquenessDataKeyPart as n, readArtifactTitle as nn, ArtifactContextRelationSelectorSchema as nr, ArtifactLifecycleTransitionedEntrySchema as nt, UniquenessKeyPart as o, ArtifactEvidenceResolveRequest as on, ArtifactContextSelectorSchema as or, isArtifactLifecycleTransitionAllowed as ot, ArtifactRelationTargetIdentity as p, ArtifactNamespace as pn, AnyArtifactKindDefinition as pr, ArtifactPatchDryRunSchema as pt, ArtifactLifecycleSituation as q, ResolvedArtifactContextWire$1 as qn, EvidenceValueSchema$1 as qr, ArtifactResolvePartErrorSchema as qt, UniquenessKey as r, ArtifactCreateRequest as rn, ArtifactContextRenderHint as rr, ArtifactLifecycleVersionSchema as rt, UniquenessRelationTargetKeyPart as s, ArtifactEvidenceResolveResponse$1 as sn, ArtifactDataCheck as sr, ARTIFACT_PATCH_ERROR_CODES as st, BuildUniquenessKeysResult as t, isArtifactDataPathDeclared as tn, ArtifactContextRelationSelector as tr, ArtifactLifecycleTransitionedEntry as tt, assessUniquenessSupport as u, ArtifactKindListResponse as un, ArtifactDataValidator as ur, ArtifactPatchArrayFilterSchema as ut, ArtifactLifecycleCommittedPayload as v, ArtifactRelationAddedPayload as vn, AfterArtifactHookContext as vr, ArtifactPatchInstruction as vt, ArtifactLifecycleGetResponse as w, ArtifactResolveContextResponse as wn, ArtifactLifecycleHookEvent as wr, ArtifactPatchOperationResultSchema as wt, ArtifactLifecycleFailureSchema as x, ArtifactRelationTypeRegisterRequest as xn, ArtifactDraftPatch as xr, ArtifactPatchMigration as xt, ArtifactLifecycleCommittedPayloadSchema as y, ArtifactRelationTypeListRequest as yn, AfterArtifactHookRegistration as yr, ArtifactPatchIssue as yt, ArtifactLifecycleError as z, ArtifactContextRootNode as zn, ARTIFACT_SLUG_PATTERN as zr, artifactPatchPathFilterNames as zt };
|