@makaio/framework 1.0.0-dev-1790589224264 → 1.0.0-dev-1790599449321
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.mjs +1 -1
- package/dist/artifact-XE82Q2bH.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/bus--m38BS3i.mjs +9 -0
- 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 +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +33 -33
- 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/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-CeZwB88e.mjs → extension-DeTvdQIB.mjs} +1 -1
- package/dist/{index-6UlianLY2.d.mts → index-9O8N514B2.d.mts} +4 -4
- package/dist/{index-CUZUtXEu.d.mts → index-BSYu8AXG.d.mts} +307 -248
- package/dist/{index-BZipIIQy.d.mts → index-BstMoG8p.d.mts} +1 -1
- package/dist/{index-BYMgvz_a2.d.mts → index-CPOJqxrf2.d.mts} +3 -3
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-M3Iec3eE.d.mts → index-CcTlPuIg.d.mts} +41 -41
- package/dist/{index-Bc71KrgF.d.mts → index-CpaWzUE5.d.mts} +1 -1
- package/dist/{index-CV0vG3bg.d.mts → index-CtwkMknv.d.mts} +6 -6
- package/dist/{index-CIO_96nw2.d.mts → index-DHTLIeW62.d.mts} +5 -5
- package/dist/{index-BGkVbgfn.d.mts → index-DrfwkH1x.d.mts} +8 -8
- package/dist/{index-BZ-N1rRo.d.mts → index-GlDcAkrf.d.mts} +4 -4
- package/dist/{index-vkVZKcUh.d.mts → index-UbOsrzp6.d.mts} +24 -24
- package/dist/{index-BNmm-M0P.d.mts → index-_CsKmUOy.d.mts} +15 -10
- package/dist/{index-gXC1ACAT.d.mts → index-uusIGFLo.d.mts} +4 -4
- package/dist/{index-n-eY7pCU.d.mts → index-wQB90bP1.d.mts} +4 -4
- 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-CdjmVxY_.mjs +1 -0
- package/dist/{materialization-6Whrkf5D.mjs → materialization-BzSgnv2R.mjs} +1 -1
- package/dist/{namespace-C5tKjqgb.d.mts → namespace-B9iQN3FQ.d.mts} +4 -4
- package/dist/{namespace-D6W4Erwp.d.mts → namespace-DAzOxaux.d.mts} +2 -2
- package/dist/package.json +1 -1
- package/dist/{schemas-Cpr1Z-U8.d.mts → schemas-BNQtL3Ln.d.mts} +23 -3
- package/dist/{schemas-D6ZdMKo3.mjs → schemas-BvDsO8Is.mjs} +1 -1
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-CYjPZwlQ.d.mts → schemas-DnyXA-9o.d.mts} +2 -2
- 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/context-rules/index.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 +14 -14
- package/dist/services/session/index.d.mts +2 -2
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-rAXkw6VL.d.mts → transition-DK43U3QJ.d.mts} +1 -1
- package/dist/{types-Dsfqmc2x.d.mts → types-jmH0Yad4.d.mts} +3 -3
- package/dist/{view-builder-K641GC8j.d.mts → view-builder-Nffvg8MI.d.mts} +1 -1
- package/dist/{worker-CIhuGZx1.mjs → worker-toBnRJ0A.mjs} +1 -1
- package/dist/{workflow-Co4YAyPP.mjs → workflow-BDDB6EJi.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +32 -32
- package/package.json +1 -1
- package/dist/artifact-z-GlRNax.mjs +0 -1
- package/dist/bus-_RyFr-xv.mjs +0 -9
- package/dist/kind-registration-XiS6z3mC.mjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as JsonObjectContractSchema } from "./json-value--pv1-OHx.mjs";
|
|
2
2
|
import { o as ICapabilityProvider } from "./index-DDnY7JhE.mjs";
|
|
3
|
-
import { Qt as WorkerContributionManifest, fn as WorkflowWorkerConfig, un as WorkflowWorkerBusAuth } from "./index-
|
|
3
|
+
import { Qt as WorkerContributionManifest, fn as WorkflowWorkerConfig, un as WorkflowWorkerBusAuth } from "./index-CcTlPuIg.mjs";
|
|
4
4
|
import { t as WorkerRuntimeInputs } from "./runtime-inputs-B7nWstrY.mjs";
|
|
5
5
|
import * as _$zod from "zod";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -6143,9 +6143,9 @@ declare const ALLOCATION_STATES: readonly ["unknown", "provisioning", "ready", "
|
|
|
6143
6143
|
*/
|
|
6144
6144
|
declare const AllocationStateSchema: z.ZodEnum<{
|
|
6145
6145
|
unknown: "unknown";
|
|
6146
|
+
running: "running";
|
|
6146
6147
|
provisioning: "provisioning";
|
|
6147
6148
|
ready: "ready";
|
|
6148
|
-
running: "running";
|
|
6149
6149
|
suspended: "suspended";
|
|
6150
6150
|
terminal: "terminal";
|
|
6151
6151
|
absent: "absent";
|
|
@@ -6170,9 +6170,9 @@ type AllocationState = z.infer<typeof AllocationStateSchema>;
|
|
|
6170
6170
|
declare const AllocationInspectionSchema: z.ZodObject<{
|
|
6171
6171
|
state: z.ZodEnum<{
|
|
6172
6172
|
unknown: "unknown";
|
|
6173
|
+
running: "running";
|
|
6173
6174
|
provisioning: "provisioning";
|
|
6174
6175
|
ready: "ready";
|
|
6175
|
-
running: "running";
|
|
6176
6176
|
suspended: "suspended";
|
|
6177
6177
|
terminal: "terminal";
|
|
6178
6178
|
absent: "absent";
|
|
@@ -6797,8 +6797,8 @@ type OutcomeAckDecision = 'accepted' | 'duplicate' | 'conflict' | 'fenced';
|
|
|
6797
6797
|
* Zod schema for outcome ACK decisions.
|
|
6798
6798
|
*/
|
|
6799
6799
|
declare const OutcomeAckDecisionSchema: z.ZodEnum<{
|
|
6800
|
-
fenced: "fenced";
|
|
6801
6800
|
accepted: "accepted";
|
|
6801
|
+
fenced: "fenced";
|
|
6802
6802
|
duplicate: "duplicate";
|
|
6803
6803
|
conflict: "conflict";
|
|
6804
6804
|
}>;
|
|
@@ -18,11 +18,11 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
|
|
|
18
18
|
* detail, not an externally observable state.
|
|
19
19
|
*/
|
|
20
20
|
declare const ComponentStateSchema: z.ZodEnum<{
|
|
21
|
-
failed: "failed";
|
|
22
21
|
discovered: "discovered";
|
|
22
|
+
failed: "failed";
|
|
23
23
|
skipped: "skipped";
|
|
24
|
-
stopped: "stopped";
|
|
25
24
|
active: "active";
|
|
25
|
+
stopped: "stopped";
|
|
26
26
|
initializing: "initializing";
|
|
27
27
|
}>;
|
|
28
28
|
/** Inferred union of all valid component lifecycle states. */
|
|
@@ -47,11 +47,11 @@ declare const ComponentInfoSchema: z.ZodObject<{
|
|
|
47
47
|
name: z.ZodString;
|
|
48
48
|
displayName: z.ZodString;
|
|
49
49
|
state: z.ZodEnum<{
|
|
50
|
-
failed: "failed";
|
|
51
50
|
discovered: "discovered";
|
|
51
|
+
failed: "failed";
|
|
52
52
|
skipped: "skipped";
|
|
53
|
-
stopped: "stopped";
|
|
54
53
|
active: "active";
|
|
54
|
+
stopped: "stopped";
|
|
55
55
|
initializing: "initializing";
|
|
56
56
|
}>;
|
|
57
57
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -68,11 +68,11 @@ declare const ServiceInfoSchema: z.ZodObject<{
|
|
|
68
68
|
name: z.ZodString;
|
|
69
69
|
displayName: z.ZodString;
|
|
70
70
|
state: z.ZodEnum<{
|
|
71
|
-
failed: "failed";
|
|
72
71
|
discovered: "discovered";
|
|
72
|
+
failed: "failed";
|
|
73
73
|
skipped: "skipped";
|
|
74
|
-
stopped: "stopped";
|
|
75
74
|
active: "active";
|
|
75
|
+
stopped: "stopped";
|
|
76
76
|
initializing: "initializing";
|
|
77
77
|
}>;
|
|
78
78
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -90,11 +90,11 @@ declare const ExtensionInfoSchema: z.ZodObject<{
|
|
|
90
90
|
name: z.ZodString;
|
|
91
91
|
displayName: z.ZodString;
|
|
92
92
|
state: z.ZodEnum<{
|
|
93
|
-
failed: "failed";
|
|
94
93
|
discovered: "discovered";
|
|
94
|
+
failed: "failed";
|
|
95
95
|
skipped: "skipped";
|
|
96
|
-
stopped: "stopped";
|
|
97
96
|
active: "active";
|
|
97
|
+
stopped: "stopped";
|
|
98
98
|
initializing: "initializing";
|
|
99
99
|
}>;
|
|
100
100
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -227,19 +227,19 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
227
227
|
name: z.ZodString;
|
|
228
228
|
displayName: z.ZodString;
|
|
229
229
|
from: z.ZodEnum<{
|
|
230
|
-
failed: "failed";
|
|
231
230
|
discovered: "discovered";
|
|
231
|
+
failed: "failed";
|
|
232
232
|
skipped: "skipped";
|
|
233
|
-
stopped: "stopped";
|
|
234
233
|
active: "active";
|
|
234
|
+
stopped: "stopped";
|
|
235
235
|
initializing: "initializing";
|
|
236
236
|
}>;
|
|
237
237
|
to: z.ZodEnum<{
|
|
238
|
-
failed: "failed";
|
|
239
238
|
discovered: "discovered";
|
|
239
|
+
failed: "failed";
|
|
240
240
|
skipped: "skipped";
|
|
241
|
-
stopped: "stopped";
|
|
242
241
|
active: "active";
|
|
242
|
+
stopped: "stopped";
|
|
243
243
|
initializing: "initializing";
|
|
244
244
|
}>;
|
|
245
245
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -270,11 +270,11 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
270
270
|
name: z.ZodString;
|
|
271
271
|
displayName: z.ZodString;
|
|
272
272
|
state: z.ZodEnum<{
|
|
273
|
-
failed: "failed";
|
|
274
273
|
discovered: "discovered";
|
|
274
|
+
failed: "failed";
|
|
275
275
|
skipped: "skipped";
|
|
276
|
-
stopped: "stopped";
|
|
277
276
|
active: "active";
|
|
277
|
+
stopped: "stopped";
|
|
278
278
|
initializing: "initializing";
|
|
279
279
|
}>;
|
|
280
280
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -311,11 +311,11 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
311
311
|
name: z.ZodString;
|
|
312
312
|
displayName: z.ZodString;
|
|
313
313
|
state: z.ZodEnum<{
|
|
314
|
-
failed: "failed";
|
|
315
314
|
discovered: "discovered";
|
|
315
|
+
failed: "failed";
|
|
316
316
|
skipped: "skipped";
|
|
317
|
-
stopped: "stopped";
|
|
318
317
|
active: "active";
|
|
318
|
+
stopped: "stopped";
|
|
319
319
|
initializing: "initializing";
|
|
320
320
|
}>;
|
|
321
321
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -838,19 +838,19 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
838
838
|
name: z.ZodString;
|
|
839
839
|
displayName: z.ZodString;
|
|
840
840
|
from: z.ZodEnum<{
|
|
841
|
-
failed: "failed";
|
|
842
841
|
discovered: "discovered";
|
|
842
|
+
failed: "failed";
|
|
843
843
|
skipped: "skipped";
|
|
844
|
-
stopped: "stopped";
|
|
845
844
|
active: "active";
|
|
845
|
+
stopped: "stopped";
|
|
846
846
|
initializing: "initializing";
|
|
847
847
|
}>;
|
|
848
848
|
to: z.ZodEnum<{
|
|
849
|
-
failed: "failed";
|
|
850
849
|
discovered: "discovered";
|
|
850
|
+
failed: "failed";
|
|
851
851
|
skipped: "skipped";
|
|
852
|
-
stopped: "stopped";
|
|
853
852
|
active: "active";
|
|
853
|
+
stopped: "stopped";
|
|
854
854
|
initializing: "initializing";
|
|
855
855
|
}>;
|
|
856
856
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -881,11 +881,11 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
881
881
|
name: z.ZodString;
|
|
882
882
|
displayName: z.ZodString;
|
|
883
883
|
state: z.ZodEnum<{
|
|
884
|
-
failed: "failed";
|
|
885
884
|
discovered: "discovered";
|
|
885
|
+
failed: "failed";
|
|
886
886
|
skipped: "skipped";
|
|
887
|
-
stopped: "stopped";
|
|
888
887
|
active: "active";
|
|
888
|
+
stopped: "stopped";
|
|
889
889
|
initializing: "initializing";
|
|
890
890
|
}>;
|
|
891
891
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -922,11 +922,11 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
922
922
|
name: z.ZodString;
|
|
923
923
|
displayName: z.ZodString;
|
|
924
924
|
state: z.ZodEnum<{
|
|
925
|
-
failed: "failed";
|
|
926
925
|
discovered: "discovered";
|
|
926
|
+
failed: "failed";
|
|
927
927
|
skipped: "skipped";
|
|
928
|
-
stopped: "stopped";
|
|
929
928
|
active: "active";
|
|
929
|
+
stopped: "stopped";
|
|
930
930
|
initializing: "initializing";
|
|
931
931
|
}>;
|
|
932
932
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -551,8 +551,8 @@ declare const ClientSchemas: {
|
|
|
551
551
|
machineId: z.ZodOptional<z.ZodString>;
|
|
552
552
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
553
553
|
fork: "fork";
|
|
554
|
-
fresh: "fresh";
|
|
555
554
|
resume: "resume";
|
|
555
|
+
fresh: "fresh";
|
|
556
556
|
clear: "clear";
|
|
557
557
|
compact: "compact";
|
|
558
558
|
}>>;
|
|
@@ -738,8 +738,8 @@ declare const ClientSchemas: {
|
|
|
738
738
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
739
739
|
}>;
|
|
740
740
|
stage: z.ZodEnum<{
|
|
741
|
-
resolving: "resolving";
|
|
742
741
|
downloading: "downloading";
|
|
742
|
+
resolving: "resolving";
|
|
743
743
|
verifying: "verifying";
|
|
744
744
|
extracting: "extracting";
|
|
745
745
|
installing: "installing";
|
|
@@ -1249,8 +1249,8 @@ type ClientSetActiveResponse = z.infer<typeof ClientSetActiveSchema.response>;
|
|
|
1249
1249
|
* - `'activating'` — marking the installed version as active.
|
|
1250
1250
|
*/
|
|
1251
1251
|
declare const InstallStageSchema: z.ZodEnum<{
|
|
1252
|
-
resolving: "resolving";
|
|
1253
1252
|
downloading: "downloading";
|
|
1253
|
+
resolving: "resolving";
|
|
1254
1254
|
verifying: "verifying";
|
|
1255
1255
|
extracting: "extracting";
|
|
1256
1256
|
installing: "installing";
|
|
@@ -1273,8 +1273,8 @@ declare const ClientInstallProgressSchema: z.ZodObject<{
|
|
|
1273
1273
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
1274
1274
|
}>;
|
|
1275
1275
|
stage: z.ZodEnum<{
|
|
1276
|
-
resolving: "resolving";
|
|
1277
1276
|
downloading: "downloading";
|
|
1277
|
+
resolving: "resolving";
|
|
1278
1278
|
verifying: "verifying";
|
|
1279
1279
|
extracting: "extracting";
|
|
1280
1280
|
installing: "installing";
|
|
@@ -1636,13 +1636,18 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
|
|
|
1636
1636
|
* Maps 1:1 to the Claude Code SDK `SessionStartHookInput.source` union:
|
|
1637
1637
|
* `'startup'` → `'fresh'`, `'resume'` → `'resume'` or `'fork'` (after
|
|
1638
1638
|
* transcript sniff), `'clear'` → `'clear'`, `'compact'` → `'compact'`.
|
|
1639
|
+
*
|
|
1640
|
+
* Codex CLI `0.158.0` `SessionStart.source`: `'startup'` → `'fresh'`,
|
|
1641
|
+
* `'resume'` → `'resume'`, `'clear'` → `'clear'`, `'compact'` → `'compact'`,
|
|
1642
|
+
* `'fork'` → `'fork'` with the parent recovered from the rollout file, or
|
|
1643
|
+
* `'fresh'` when the parent cannot be recovered.
|
|
1639
1644
|
*/
|
|
1640
1645
|
declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
|
|
1641
1646
|
/** Zod schema for the client-reported session start mode. */
|
|
1642
1647
|
declare const ClientSessionStartModeSchema: z.ZodEnum<{
|
|
1643
1648
|
fork: "fork";
|
|
1644
|
-
fresh: "fresh";
|
|
1645
1649
|
resume: "resume";
|
|
1650
|
+
fresh: "fresh";
|
|
1646
1651
|
clear: "clear";
|
|
1647
1652
|
compact: "compact";
|
|
1648
1653
|
}>;
|
|
@@ -1660,8 +1665,8 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
|
|
|
1660
1665
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1661
1666
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
1662
1667
|
fork: "fork";
|
|
1663
|
-
fresh: "fresh";
|
|
1664
1668
|
resume: "resume";
|
|
1669
|
+
fresh: "fresh";
|
|
1665
1670
|
clear: "clear";
|
|
1666
1671
|
compact: "compact";
|
|
1667
1672
|
}>>;
|
|
@@ -2445,8 +2450,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2445
2450
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2446
2451
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2447
2452
|
fork: "fork";
|
|
2448
|
-
fresh: "fresh";
|
|
2449
2453
|
resume: "resume";
|
|
2454
|
+
fresh: "fresh";
|
|
2450
2455
|
clear: "clear";
|
|
2451
2456
|
compact: "compact";
|
|
2452
2457
|
}>>;
|
|
@@ -2632,8 +2637,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2632
2637
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
2633
2638
|
}>;
|
|
2634
2639
|
stage: _$zod.ZodEnum<{
|
|
2635
|
-
resolving: "resolving";
|
|
2636
2640
|
downloading: "downloading";
|
|
2641
|
+
resolving: "resolving";
|
|
2637
2642
|
verifying: "verifying";
|
|
2638
2643
|
extracting: "extracting";
|
|
2639
2644
|
installing: "installing";
|
|
@@ -3175,8 +3180,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3175
3180
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3176
3181
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3177
3182
|
fork: "fork";
|
|
3178
|
-
fresh: "fresh";
|
|
3179
3183
|
resume: "resume";
|
|
3184
|
+
fresh: "fresh";
|
|
3180
3185
|
clear: "clear";
|
|
3181
3186
|
compact: "compact";
|
|
3182
3187
|
}>>;
|
|
@@ -3362,8 +3367,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3362
3367
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
3363
3368
|
}>;
|
|
3364
3369
|
stage: _$zod.ZodEnum<{
|
|
3365
|
-
resolving: "resolving";
|
|
3366
3370
|
downloading: "downloading";
|
|
3371
|
+
resolving: "resolving";
|
|
3367
3372
|
verifying: "verifying";
|
|
3368
3373
|
extracting: "extracting";
|
|
3369
3374
|
installing: "installing";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as ArtifactLifecycleHookEvent, Or as ArtifactLifecycleHookRegistration$1, gr as AnyArtifactKindDefinition } from "./index-BSYu8AXG.mjs";
|
|
2
2
|
import { l as JsonValue$1 } from "./json-value--pv1-OHx.mjs";
|
|
3
3
|
import { s as AdapterProviderAuth$1 } from "./adapter-binding-DF-j-XHg.mjs";
|
|
4
4
|
import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-DH84KOm9.mjs";
|
|
5
5
|
import { t as ExtensionAutomationTriggersContribution } from "./contribution-DTb65rRN.mjs";
|
|
6
|
-
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-
|
|
6
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-DK43U3QJ.mjs";
|
|
7
7
|
import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-OETFKaAL.mjs";
|
|
8
8
|
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-Cx175qXh.mjs";
|
|
9
9
|
import { t as RequiredTimeoutConfig } from "./index-DOui-7u2.mjs";
|
|
10
|
-
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-
|
|
10
|
+
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-jmH0Yad4.mjs";
|
|
11
11
|
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-DDCixELI.mjs";
|
|
12
12
|
import { l as FacetNamespaceDefinition } from "./index-Bmb7jPIe2.mjs";
|
|
13
13
|
import { t as ExtensionReactionsContribution } from "./index-BRXETFym.mjs";
|
|
14
|
-
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-
|
|
14
|
+
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-Nffvg8MI.mjs";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
17
17
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -146,7 +146,6 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
|
|
|
146
146
|
enabled: z.ZodArray<z.ZodString>;
|
|
147
147
|
disabled: z.ZodArray<z.ZodString>;
|
|
148
148
|
}, z.core.$strip>;
|
|
149
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
149
|
registryTools: z.ZodObject<{
|
|
151
150
|
enabled: z.ZodArray<z.ZodString>;
|
|
152
151
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -176,6 +175,7 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
|
|
|
176
175
|
"always-ask": "always-ask";
|
|
177
176
|
"full-access": "full-access";
|
|
178
177
|
}>>>;
|
|
178
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
179
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
180
180
|
reject: "reject";
|
|
181
181
|
"always-ask": "always-ask";
|
|
@@ -322,7 +322,6 @@ declare const HarnessSchemas: {
|
|
|
322
322
|
enabled: z.ZodArray<z.ZodString>;
|
|
323
323
|
disabled: z.ZodArray<z.ZodString>;
|
|
324
324
|
}, z.core.$strip>;
|
|
325
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
326
325
|
registryTools: z.ZodObject<{
|
|
327
326
|
enabled: z.ZodArray<z.ZodString>;
|
|
328
327
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -352,6 +351,7 @@ declare const HarnessSchemas: {
|
|
|
352
351
|
"always-ask": "always-ask";
|
|
353
352
|
"full-access": "full-access";
|
|
354
353
|
}>>>;
|
|
354
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
355
355
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
356
356
|
reject: "reject";
|
|
357
357
|
"always-ask": "always-ask";
|
|
@@ -765,7 +765,6 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
|
|
|
765
765
|
enabled: z.ZodArray<z.ZodString>;
|
|
766
766
|
disabled: z.ZodArray<z.ZodString>;
|
|
767
767
|
}, z.core.$strip>;
|
|
768
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
769
768
|
registryTools: z.ZodObject<{
|
|
770
769
|
enabled: z.ZodArray<z.ZodString>;
|
|
771
770
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -795,6 +794,7 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
|
|
|
795
794
|
"always-ask": "always-ask";
|
|
796
795
|
"full-access": "full-access";
|
|
797
796
|
}>>>;
|
|
797
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
798
798
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
799
799
|
reject: "reject";
|
|
800
800
|
"always-ask": "always-ask";
|
|
@@ -1208,7 +1208,6 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
|
|
|
1208
1208
|
enabled: z.ZodArray<z.ZodString>;
|
|
1209
1209
|
disabled: z.ZodArray<z.ZodString>;
|
|
1210
1210
|
}, z.core.$strip>;
|
|
1211
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1212
1211
|
registryTools: z.ZodObject<{
|
|
1213
1212
|
enabled: z.ZodArray<z.ZodString>;
|
|
1214
1213
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -1238,6 +1237,7 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
|
|
|
1238
1237
|
"always-ask": "always-ask";
|
|
1239
1238
|
"full-access": "full-access";
|
|
1240
1239
|
}>>>;
|
|
1240
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
1241
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1242
1242
|
reject: "reject";
|
|
1243
1243
|
"always-ask": "always-ask";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as TransitionOutcome } from "../../index-
|
|
2
|
-
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-
|
|
1
|
+
import { d as TransitionOutcome } from "../../index-UbOsrzp6.mjs";
|
|
2
|
+
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-BstMoG8p.mjs";
|
|
3
3
|
export { ContributionProcessor, ExtensionConfigResolution, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionOperatorConfigError, ExtensionRuntimeSurface, InstalledExtensionCatalogSource, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, SetEnabledResult, TransitionOutcome, coalesceExtensionOverrides, filterEligibleExtensions, resolveInstalledExtensionRecord };
|
package/dist/kernel/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-
|
|
2
|
-
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-
|
|
1
|
+
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-UbOsrzp6.mjs";
|
|
2
|
+
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-BstMoG8p.mjs";
|
|
3
3
|
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-1jI3f9ir.mjs";
|
|
4
4
|
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-62OoZLGr.mjs";
|
|
5
5
|
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-_OD_Nz3m.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-
|
|
1
|
+
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-UbOsrzp6.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, InstalledExtensionCatalogEntry, InstalledExtensionCatalogEntrySchema, InstalledExtensionOrigin, InstalledExtensionOriginSchema, InstalledExtensionRecord, InstalledExtensionRecordSchema, ServiceInfo, ServiceInfoSchema, SetEnabledReason, SetEnabledReasonSchema, TransitionOutcome, TransitionOutcomeSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./json-value-DM-EjTC1.mjs";import{a as t,n}from"./json-tree-Cmb_BzHr.mjs";import{z as r}from"zod";function i(e){return a(e)?e:void 0}function a(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function o(e,t){if(!a(e))return!1;let n=e.type;return n===t?!0:Array.isArray(n)&&n.length===1&&n[0]===t}const s=`[]`;function c(e,t){return Object.keys(t).length===0?e:e?t:!1}function l(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let n=e;for(let e of t.slice(2).split(`/`)){let t=i(n),r=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,r))return;n=t[r]}return n}function u(e,t){let n=t.$ref;if(typeof n!=`string`)return;let r=l(e,n);if(typeof r==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return r;let{$ref:n,...i}=t;return c(r,i)}let a=i(r);if(!a||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return a;let{$ref:o,...s}=t;return Object.keys(s).length===0?a:{...a,allOf:[s,...Array.isArray(a.allOf)?a.allOf:[]]}}function d(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function f(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function ee(e,t){let n=i(e.properties);if(!n||!Object.hasOwn(n,t))return;let r=n[t];return typeof r==`boolean`?r:i(r)}function p(e,t,n){if(typeof t.$ref==`string`){if(n.has(t.$ref))return;let r=u(e,t);return a(r)?p(e,r,new Set([...n,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:r,...o}=t,s={},c={},l=new Set;for(let t of[o,...r]){let r=i(t),a=r?p(e,r,n):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(s.type!==void 0&&s.type!==a.type)return;s.type=a.type}for(let e of[`items`,`prefixItems`])if(a[e]!==void 0){if(s[e]!==void 0)return;s[e]=a[e]}d(c,i(a.properties)??{});for(let e of f(a))l.add(e)}return{...s,properties:c,required:[...l]}}function te(e,t,n,r,i,a,o,s){if(a.has(n))return;let c=u(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?m(e,c,r,i,new Set([...a,n]),o,s):void 0}function ne(e,t,n,r){if(!o(t,`array`))return;let a=t.items;if(typeof a==`boolean`)return n.length===0?[a]:void 0;let s=i(a);return s?m(e,s,n,r):void 0}function re(e,t,n){if(typeof n.$ref!=`string`)return{node:{...n,allOf:[t,...Array.isArray(n.allOf)?n.allOf:[]]}};let r=u(e,n);return a(r)?{node:{...r,allOf:[t,...Array.isArray(r.allOf)?r.allOf:[]]},ref:n.$ref}:{node:{allOf:[t,n]}}}function m(e,t,n,r,a=new Set,s=!1,c=!1){if(typeof t.$ref==`string`){let i=t.$ref;return te(e,t,i,n,r,a,s,c)}let l=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,u=t[l];if(Array.isArray(u)){let{[l]:o,...d}=t,f=u.map(t=>{let o=i(t);if(!o)return;let{node:l,ref:u}=re(e,d,o);return m(e,l,n,r,u===void 0?a:new Set([...a,u]),s,c)});return f.every(e=>e!==void 0)?f.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let i=p(e,t,a);return i?m(e,i,n,r,a,s,c):void 0}if(n.length===0)return[t];let[d,...h]=n;if(d===`[]`)return ne(e,t,h,r||c);if(!(!o(t,`object`)&&!(t.type===void 0&&s))&&!(!d||r&&!f(t).includes(d)))return ie(e,ee(t,d),h,r,c)}function ie(e,t,n,r,i){return typeof t==`boolean`?n.length===0?[t]:void 0:t?m(e,t,n,r,new Set,!1,i):void 0}function h(e,t,n){return m(e,e,[...t],n?.required??!1,new Set,!0,n?.requiredAfterElement??!1)}function g(e,t){return h(e,t.split(`.`))!==void 0}function _(e){let t=[],n=(e,n)=>{let r=i(e);r&&t.push({node:r,path:n})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[r,a]of Object.entries(i(e[t])??{}))n(a,[t,r]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let r=e[t];Array.isArray(r)&&r.forEach((e,r)=>n(e,[t,r]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])n(e[t],[t]);return t}function v(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of _(e))v(n.node,[...t,...n.path])}function y(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let r=u(e,t);if(r===void 0||a(r)&&y(e,r,new Set([...n,t.$ref])))return!0}return _(t).some(t=>y(e,t.node,n))}function ae(e,t,n,r){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&n.addIssue({code:`custom`,path:[...r,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let a=l(e,t.$ref);!i(a)&&typeof a!=`boolean`&&n.addIssue({code:`custom`,path:[...r,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function b(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),ae(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(y(e,t)||!p(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of _(t))b(e,i.node,n,[...r,...i.path])}function oe(e,t){b(e.dataSchema,e.dataSchema,t);let n=m(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>!o(e,`string`)))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let r=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[])),...Object.entries(e.views??{}).flatMap(([e,t])=>t.fields.map((t,n)=>({path:t,location:[`views`,e,`fields`,n]})))];for(let{path:n,location:i}of r)g(e.dataSchema,n)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function x(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const S=[`$dynamicRef`,`$dynamicAnchor`,`$recursiveRef`,`$recursiveAnchor`];function C(e,t,n=[`dataSchema`]){for(let r of S)Object.hasOwn(e,r)&&t.addIssue({code:`custom`,path:[...n,r],message:`Unsupported dynamic reference: use a plain local $ref`});for(let r of _(e))C(r.node,t,[...n,...r.path])}function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function se(e,t){if(typeof t!=`string`)return;let n=l(e,t);return w(n)?n:void 0}function T(e,t){return w(e)?Object.values(e).some(e=>Array.isArray(e)&&e.includes(t)):!1}function E(e,t){let n=e.properties;if(w(n)&&Object.hasOwn(n,t)||Array.isArray(e.required)&&e.required.includes(t)||T(e.dependentRequired,t)||T(e.dependencies,t))return!0;let r=e.patternProperties;return w(r)?Object.keys(r).some(e=>{try{return new RegExp(e,`u`).test(t)}catch{return!1}}):!1}function D(e){let t=[];for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(Array.isArray(r))for(let e of r)w(e)&&t.push(e)}for(let n of[`if`,`then`,`else`]){let r=e[n];w(r)&&t.push(r)}for(let n of[`dependentSchemas`,`dependencies`]){let r=e[n];if(w(r))for(let e of Object.values(r))w(e)&&t.push(e)}return t}function O(e,t){let n=new Set,r=i=>{if(n.has(i))return!1;if(n.add(i),E(i,t))return!0;let a=se(e,i.$ref);return a&&r(a)?!0:D(i).some(r)};return r(e)}const k=/^[a-z0-9]+(--?[a-z0-9]+)*$/,ce=r.string().regex(k,`Slug must be lowercase alphanumeric segments joined by hyphens.`),A=`slug`,le=`Data field slug is reserved: the artifact envelope owns the slug`,ue=[[/ä/g,`ae`],[/ö/g,`oe`],[/ü/g,`ue`],[/ß/g,`ss`],[/æ/g,`ae`],[/ø/g,`oe`]];function j(e){let t=ue.reduce((e,[t,n])=>e.replace(t,n),e.toLowerCase()).normalize(`NFKD`).replace(/\p{M}/gu,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t.length>0?t:null}const de=80;function M(e){if(e.length<=80)return e;let t=e.lastIndexOf(`-`,80);return(t>0?e.slice(0,t):e.slice(0,80)).replace(/-+$/,``)}function N(e,t,n){let r=j(x(e,t));if(r!==null)return M(r);let i=j(n);if(i!==null)return M(i);throw Error(`Artifact ${n} yields no slug from its title or identity`)}function P(e,t){let n=e.addressableParts;if(!n||n.length===0)return;let r=new Set;for(let[i,a]of n.entries())r.has(a.path)&&t.addIssue({code:`custom`,path:[`addressableParts`,i,`path`],message:`addressableParts[${i}].path duplicates an earlier area; each declared area must have a distinct path`}),r.add(a.path),F(e.dataSchema,a,i,t)}function F(e,t,n,r){let i=h(e,t.path.split(`.`));if(!i||i.length===0){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select a declared location in every data schema variant`});return}if(i.some(e=>!o(e,`array`))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select an array schema in every data schema variant`});return}if(i.some(e=>typeof e==`object`&&(Array.isArray(e.prefixItems)||Array.isArray(e.items)))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path selects a tuple schema; tuples are outside the addressable-parts profile (homogeneous arrays only)`});return}I(e,t,n,r)}function I(e,t,n,r){let i=()=>{r.addIssue({code:`custom`,path:[`addressableParts`,n,`idPath`],message:`addressableParts[${n}].idPath must select a required string in every element variant`})},a=t.idPath.split(`.`),s=h(e,[...t.path.split(`.`),`[]`,...a],{requiredAfterElement:!0});if(!s||s.length===0){i();return}s.some(e=>!o(e,`string`))&&i()}function L(e,r){let i=[],a=new Map;for(let o of e){let e=t(r,o.path.split(`.`));if(e===void 0)continue;if(!Array.isArray(e)){i.push({path:o.path,reason:`declared part area must be an array; found ${typeof e}`});continue}let s=o.idPath.split(`.`);for(let[r,c]of e.entries()){let e=`${o.path}.${r}.${o.idPath}`;if(!n(c)){i.push({path:e,reason:`part element is not an object; local identifier cannot be read`});continue}let l=t(c,s);if(typeof l!=`string`){i.push({path:e,reason:l===void 0?`local identifier is missing`:`local identifier must be a string; found ${typeof l}`});continue}if(/^\s*$/.test(l)){i.push({path:e,reason:`local identifier must be a non-empty, non-whitespace-only string`});continue}let u=a.get(l);u===void 0?a.set(l,e):i.push({path:e,reason:`duplicate local identifier "${l}"; also found at ${u}`})}}return i}function R(e,t,n){let r=[],i=V(e,t);for(let[t,a]of n.entries()){if(a.sourceLocalId===void 0)continue;let n=i?.get(a.sourceLocalId)??(e.length===0?{ok:!1,reason:`NO_PARTS_DECLARED`}:{ok:!1,reason:`PART_NOT_FOUND`});n.ok||r.push({relationIndex:t,reason:n.reason})}return r}const z=[`ARTIFACT_NOT_FOUND`,`KIND_NOT_REGISTERED`,`NO_PARTS_DECLARED`,`PART_NOT_FOUND`,`DUPLICATE_LOCAL_ID`],B=r.strictObject({code:r.enum(z),message:r.string().min(1),repair:r.string().min(1)});function V(e,r){if(e.length===0)return;let i=new Map;for(let a of e){let e=t(r,a.path.split(`.`));if(!Array.isArray(e))continue;let o=a.idPath.split(`.`);for(let r of e){if(!n(r))continue;let e=t(r,o);typeof e==`string`&&(i.has(e)?i.set(e,{ok:!1,reason:`DUPLICATE_LOCAL_ID`}):i.set(e,{ok:!0,areaPath:a.path,part:r}))}}return i}function fe(e,t,n){let r=V(e,t);return r===void 0?{ok:!1,reason:`NO_PARTS_DECLARED`}:r.get(n)??{ok:!1,reason:`PART_NOT_FOUND`}}const H=r.number().int().positive(),U=r.enum([`knowledge`,`commitment`,`interaction`,`record`]),W=r.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),G=r.strictObject({fields:r.array(W).min(1)}),pe=new Set([`full`]),K={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},q=r.enum([...K.knowledge,...K.commitment,...K.interaction]),J=r.strictObject({path:W,equals:r.union([r.string(),r.number(),r.boolean()])}),Y=r.strictObject({relationType:r.string().trim().min(1),targetKinds:r.array(r.string().trim().min(1)).min(1).optional(),minItems:r.number().int().nonnegative(),maxItems:r.number().int().nonnegative().optional(),when:J.optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),X=r.discriminatedUnion(`kind`,[r.strictObject({kind:r.literal(`data`),path:W}),r.strictObject({kind:r.literal(`relation-target`),relationType:r.string().trim().min(1)})]),Z=r.strictObject({path:W,idPath:W}),Q=r.strictObject({by:r.array(X).min(1),lifecycleStates:r.array(q).min(1).optional()}),$=r.strictObject({minItems:r.number().int().nonnegative()}),me=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),he=r.strictObject({kind:r.string().trim().min(1),description:r.string().trim().min(1),schemaVersion:H,category:U,dataSchema:e,titlePath:W,relations:r.array(Y).optional(),uniqueness:r.array(Q).optional(),evidenceRequirements:$.optional(),indexedFields:r.array(W).optional(),searchableFields:r.array(W).optional(),addressableParts:r.array(Z).min(1).optional(),views:r.record(r.string().trim().min(1),G).optional()}).superRefine((e,t)=>{me.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=K[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),e.relations?.forEach((n,r)=>{n.when&&!g(e.dataSchema,n.when.path)&&t.addIssue({code:`custom`,path:[`relations`,r,`when`,`path`],message:`Data path ${n.when.path} must select a declared field`})}),Object.keys(e.views??{}).forEach(e=>{pe.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),O(e.dataSchema,`slug`)&&t.addIssue({code:`custom`,path:[`dataSchema`,`properties`,A],message:`Data field ${A} is reserved: the artifact envelope owns the slug`}),C(e.dataSchema,t),oe(e,t),P(e,t)});export{h as A,le as C,O as D,j as E,x as M,s as O,k as S,N as T,R as _,he as a,de as b,Z as c,H as d,Q as f,L as g,B as h,$ as i,g as j,v as k,J as l,z as m,U as n,G as o,X as p,W as r,q as s,K as t,Y as u,fe as v,ce as w,A as x,P as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-BvDsO8Is.mjs";import{z as i}from"zod";import{createBusNamespace as a}from"@makaio/framework/core";const o=i.enum([`link`,`summary`,`full`]),s=i.object({artifactId:i.string().min(1).optional(),url:i.string().min(1).optional(),label:i.string().min(1),sourceLocalId:n.shape.sourceLocalId}),c=i.object({id:i.string().min(1),kind:i.string().min(1),revision:i.string().min(1),status:i.string().min(1).optional()}),l=i.object({breadcrumbs:i.array(s),related:i.array(s)}),u=i.object({dashboard:i.string().min(1).optional(),materialized:i.string().min(1).optional()}),d=i.object({type:i.literal(`summary`),title:i.string().min(1),text:i.string().min(1)}),f=i.object({type:i.literal(`properties`),title:i.string().min(1),rows:i.array(i.object({label:i.string().min(1),value:i.string()}))}),p=i.object({type:i.literal(`table`),title:i.string().min(1),columns:i.array(i.string().min(1)),rows:i.array(i.object({cells:i.array(i.string()),link:s.optional()}))}),m=i.object({type:i.literal(`relations`),title:i.string().min(1),groups:i.array(i.object({type:i.string().min(1),items:i.array(s)}))}),h=i.object({type:i.literal(`evidence`),title:i.string().min(1),items:i.array(i.object({kind:i.string().min(1),id:i.string().min(1),locator:i.string().min(1).optional()}))}),g=i.object({type:i.literal(`raw`),title:i.string().min(1),json:t}),_=i.object({type:i.literal(`code`),title:i.string().min(1),language:i.string().min(1),content:i.string()}),v=i.object({type:i.literal(`diagram`),title:i.string().min(1),notation:i.literal(`mermaid`),source:i.string().min(1)}),y=i.discriminatedUnion(`type`,[d,f,p,m,h,g,_,v]),b=i.object({title:i.string().min(1),artifact:c,navigation:l,sections:i.array(y),links:u}),x=e,S=i.object({level:o,params:x.optional()}),C=i.object({kind:i.literal(`entry`),via:i.string().min(1).optional(),collection:i.string().min(1).optional()});function w(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:i.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const T=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1),as:o.optional()}),C.extend({title:i.string().min(1).optional(),hostRelation:i.string().min(1).optional()}).superRefine(w(`affordance`))]),E=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1)}),C.superRefine(w(`request`))]);function D(e){return e}const O=i.enum([`title`,`summary`]),k=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`label`),prefix:i.string().min(1).optional()}),i.object({kind:i.literal(`field`),name:i.string().min(1),fieldId:i.string().min(1).optional()}),i.object({kind:i.literal(`issue-type`),name:i.string().min(1),typeId:i.string().min(1).optional()}),i.object({kind:i.literal(`body-fragment`),slot:i.string().min(1)}),i.object({kind:i.literal(`comment`),template:i.string().min(1)})]),A=i.object({id:i.string().min(1),provider:i.string().min(1),namespace:i.string().min(1),target:k,appliesTo:i.array(i.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:i.record(i.string(),i.string()).optional(),description:i.string().min(1).optional(),params:e.optional()}),j=i.enum([`status`,`workflow`,`priority`]),M=i.object({path:i.string().min(1),semantic:j.optional(),fromLevel:o.optional(),viewRole:O.optional()}),N=i.object({mode:i.enum([`none`,`surface`,`comment`]),defaultRole:i.enum([`workpiece`,`artifact`]).optional(),semanticEvents:i.array(i.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:i.array(M).optional(),affordances:i.array(T).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,r=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&r++;n>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),r>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),P=i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),externalUrl:i.string().optional(),surfaceRole:i.enum([`workpiece`,`artifact`]),lastSyncedRevision:i.string().optional(),metadata:i.record(i.string(),i.unknown()).optional()}),F=S.extend({ref:r,affordance:E}),I=i.discriminatedUnion(`status`,[i.object({status:i.literal(`ok`),view:b,builderVersion:i.number().int().positive(),sourceRevision:i.string().min(1)}),i.object({status:i.literal(`artifact-not-found`),view:i.null()}),i.object({status:i.literal(`not-rendered`),view:i.null()})]),L={"surfaceBinding.register":{request:A,response:i.object({registered:i.boolean()})},"surfaceBinding.list":{request:i.object({id:i.string().min(1).optional(),provider:i.string().min(1).optional(),namespace:i.string().min(1).optional()}),response:i.object({bindings:i.array(A)})},"surfaceBinding.changed":i.object({id:i.string().min(1),provider:i.string().min(1)}),"ref.changed":i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),operation:i.enum([`upserted`,`deleted`]),origin:i.enum([`factory`,`external`]).optional()}),"capability.resolved":i.object({provider:i.string().min(1),surface:i.string().min(1),capabilities:i.record(i.string().min(1),i.boolean()),degraded:i.boolean()}),"artifact.view.resolve":{request:F,response:I}},R=a(`materialization`,L),ee=R.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}const B=8;function V(e){let t=0,n=0;for(let r=0;r<e.length;r++)e[r]==="`"?(n++,n>t&&(t=n)):n=0;let r=Math.max(3,t+1);return"`".repeat(r)}function H(e){return e.replace(/`/g,``)}function U(e){return e.replace(/\]/g,`\\]`)}function W(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n),i=e[n];t+=r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||i===`-`?i:`%${r.toString(16).toUpperCase().padStart(4,`0`)}`}return t}function G(e){return e.replace(/\(/g,`%28`).replace(/\)/g,`%29`)}function K(e){let t=e.sourceLocalId?W(e.sourceLocalId):void 0,n=t?`${e.label} (from part: ${t})`:e.label;return e.url?`[${U(n)}](${G(e.url)})`:t?`${e.label} (from part: ${U(t)})`:n}function q(e){let t=[];if(e.breadcrumbs.length>0&&t.push(`**Breadcrumbs:** ${e.breadcrumbs.map(K).join(` › `)}`),e.related.length>0){t.length>0&&t.push(``),t.push(`**Related:**`);for(let n of e.related)t.push(`- ${K(n)}`)}return t}function J(e){return e.replace(/\|/g,`\\|`).replace(/[\r\n]+/g,` `)}function Y(e){return[`### ${e.title}`,``,e.text]}function X(e){let t=[`### ${e.title}`,``];for(let n of e.rows)n.value.length>0?t.push(`**${n.label}:** ${n.value}`):t.push(`**${n.label}:**`);return t}function Z(e){let t=[`### ${e.title}`,``],n=e.rows.some(e=>e.link!==void 0),r=e.columns.map(J);n&&r.push(``);let i=r.length;t.push(`| ${r.join(` | `)} |`),t.push(`| ${r.map(()=>`---`).join(` | `)} |`);for(let r of e.rows){let e=r.cells.map(J);for(n&&e.push(r.link?J(K(r.link)):``);e.length<i;)e.push(``);t.push(`| ${e.join(` | `)} |`)}return t}function Q(e){let t=[`### ${e.title}`,``];for(let n of e.groups){t.push(`**${n.type}**`,``);for(let e of n.items)t.push(`- ${K(e)}`);t.push(``)}return t}function te(e){let t=[`### ${e.title}`,``];for(let n of e.items){let e=n.locator?` (${n.locator})`:``;t.push(`- **${n.kind}:** ${n.id}${e}`)}return t}function $(e,t,n){let r=V(t);return[`### ${e}`,``,`${r}${H(n)}`,t,r]}function ne(e){return $(e.title,JSON.stringify(e.json,null,2),`json`)}function re(e){return $(e.title,e.content,e.language)}function ie(e){return $(e.title,e.source,e.notation)}function ae(e){switch(e.type){case`summary`:return Y(e);case`properties`:return X(e);case`table`:return Z(e);case`relations`:return Q(e);case`evidence`:return te(e);case`raw`:return ne(e);case`code`:return re(e);case`diagram`:return ie(e)}}function oe(e,t={}){let n=[];t.includeTitle!==!1&&n.push([`## ${e.title}`]);let r=q(e.navigation);r.length>0&&n.push(r);for(let t of e.sections)n.push(ae(t));return n.map(e=>e.join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
|
|
4
4
|
`)}export{g as A,h as C,b as D,s as E,p as F,y as M,d as N,l as O,u as P,v as S,o as T,E as _,I as a,D as b,ee as c,M as d,j as f,T as g,k as h,F as i,m as j,f as k,P as l,A as m,oe as n,R as o,O as p,z as r,L as s,B as t,N as u,x as v,c as w,_ as x,S as y};
|
|
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
335
335
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
336
336
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
337
337
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
338
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
339
338
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
339
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
340
|
timestamp: _$zod.ZodNumber;
|
|
341
341
|
contentText: _$zod.ZodString;
|
|
342
342
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
1120
1120
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1121
1121
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
1122
1122
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1123
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1124
1123
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1124
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1125
1125
|
timestamp: _$zod.ZodNumber;
|
|
1126
1126
|
contentText: _$zod.ZodString;
|
|
1127
1127
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2030,10 +2030,10 @@ declare const MessageStorageNamespace$1: {
|
|
|
2030
2030
|
})[];
|
|
2031
2031
|
messageId: string;
|
|
2032
2032
|
agentId: never;
|
|
2033
|
-
adapterSessionId: never;
|
|
2034
2033
|
turnId: string | null;
|
|
2035
|
-
|
|
2034
|
+
adapterSessionId: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
|
|
|
47
47
|
teardownCompleted: _$zod.ZodObject<{
|
|
48
48
|
evidence: _$zod.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
-
closed: "closed";
|
|
51
50
|
exited: "exited";
|
|
51
|
+
closed: "closed";
|
|
52
52
|
released: "released";
|
|
53
53
|
detached: "detached";
|
|
54
54
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
100
100
|
teardownCompleted: _$zod.ZodObject<{
|
|
101
101
|
evidence: _$zod.ZodEnum<{
|
|
102
102
|
unknown: "unknown";
|
|
103
|
-
closed: "closed";
|
|
104
103
|
exited: "exited";
|
|
104
|
+
closed: "closed";
|
|
105
105
|
released: "released";
|
|
106
106
|
detached: "detached";
|
|
107
107
|
}>;
|
package/dist/package.json
CHANGED
|
@@ -54,12 +54,26 @@ declare const ArtifactLifecycleStateSchema: z.ZodEnum<{
|
|
|
54
54
|
revoked: "revoked";
|
|
55
55
|
"closed-without-resolution": "closed-without-resolution";
|
|
56
56
|
}>;
|
|
57
|
-
/**
|
|
57
|
+
/** Applies the requirement only when the artifact data holds `equals` at `path`. */
|
|
58
|
+
declare const ArtifactRelationRequirementConditionSchema: z.ZodObject<{
|
|
59
|
+
path: z.ZodString;
|
|
60
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
/**
|
|
63
|
+
* Additional relation requirement; undeclared relation types remain permitted.
|
|
64
|
+
* Without `when` the requirement always applies. With `when` it applies only when
|
|
65
|
+
* the value at `when.path` equals `when.equals`; it is skipped when that value is
|
|
66
|
+
* missing, non-scalar, or not equal.
|
|
67
|
+
*/
|
|
58
68
|
declare const ArtifactRelationRequirementSchema: z.ZodObject<{
|
|
59
69
|
relationType: z.ZodString;
|
|
60
70
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
71
|
minItems: z.ZodNumber;
|
|
62
72
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
63
77
|
}, z.core.$strict>;
|
|
64
78
|
/** One contribution to an explicit uniqueness key. Relation targets exclude revision pins. */
|
|
65
79
|
declare const ArtifactUniquenessSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -117,6 +131,10 @@ declare const ArtifactKindRegistrationSchema$1: z.ZodObject<{
|
|
|
117
131
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
132
|
minItems: z.ZodNumber;
|
|
119
133
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
path: z.ZodString;
|
|
136
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
137
|
+
}, z.core.$strict>>;
|
|
120
138
|
}, z.core.$strict>>>;
|
|
121
139
|
uniqueness: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
140
|
by: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -157,6 +175,8 @@ type ArtifactCategory = z.infer<typeof ArtifactCategorySchema>;
|
|
|
157
175
|
type ArtifactLifecycleState = z.infer<typeof ArtifactLifecycleStateSchema>;
|
|
158
176
|
/** Additional relation cardinality declaration. */
|
|
159
177
|
type ArtifactRelationRequirement = z.infer<typeof ArtifactRelationRequirementSchema>;
|
|
178
|
+
/** Data condition under which a relation requirement applies. */
|
|
179
|
+
type ArtifactRelationRequirementCondition = z.infer<typeof ArtifactRelationRequirementConditionSchema>;
|
|
160
180
|
/** Explicit uniqueness declaration. */
|
|
161
181
|
type ArtifactUniquenessRule = z.infer<typeof ArtifactUniquenessRuleSchema>;
|
|
162
182
|
/** Direct evidence cardinality declaration. */
|
|
@@ -692,8 +712,8 @@ declare const RelationTypeRegistrationSchema: z.ZodObject<{
|
|
|
692
712
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
693
713
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
694
714
|
local: "local";
|
|
695
|
-
artifact: "artifact";
|
|
696
715
|
evidence: "evidence";
|
|
716
|
+
artifact: "artifact";
|
|
697
717
|
entity: "entity";
|
|
698
718
|
}>>>;
|
|
699
719
|
}, z.core.$strip>;
|
|
@@ -1122,4 +1142,4 @@ type ArtifactCompareRequest = z.infer<typeof ArtifactCompareRequestSchema>;
|
|
|
1122
1142
|
/** Result of comparing two artifact revisions. */
|
|
1123
1143
|
type ArtifactCompareResponse = z.infer<typeof ArtifactCompareResponseSchema>;
|
|
1124
1144
|
//#endregion
|
|
1125
|
-
export { ArtifactPartAreaSchema as $, ConfidenceMetadata as A, ARTIFACT_CATEGORY_LIFECYCLE_STATES as B, ArtifactScope as C, ConfidenceBasisSchema as D, ConfidenceBasis as E, EvidenceRefSchema as F, ArtifactEvidenceRequirementsSchema as G, ArtifactCategorySchema as H, LocalRef as I, ArtifactKindView as J, ArtifactKindRegistration$1 as K, LocalRefSchema as L, EntityRef as M, EntityRefSchema as N, ConfidenceLevel as O, EvidenceRef as P, ArtifactPartArea as Q, RelationTypeRegistration$1 as R, ArtifactRevisionSchema as S, ArtifactStatusPathSchema as T, ArtifactDataPathSchema as U, ArtifactCategory as V, ArtifactEvidenceRequirements as W, ArtifactLifecycleState as X, ArtifactKindViewSchema as Y, ArtifactLifecycleStateSchema as Z, ArtifactRelationTarget as _, ArtifactCompareResponse as a,
|
|
1145
|
+
export { ArtifactPartAreaSchema as $, ConfidenceMetadata as A, ARTIFACT_CATEGORY_LIFECYCLE_STATES as B, ArtifactScope as C, ConfidenceBasisSchema as D, ConfidenceBasis as E, EvidenceRefSchema as F, ArtifactEvidenceRequirementsSchema as G, ArtifactCategorySchema as H, LocalRef as I, ArtifactKindView as J, ArtifactKindRegistration$1 as K, LocalRefSchema as L, EntityRef as M, EntityRefSchema as N, ConfidenceLevel as O, EvidenceRef as P, ArtifactPartArea as Q, RelationTypeRegistration$1 as R, ArtifactRevisionSchema as S, ArtifactStatusPathSchema as T, ArtifactDataPathSchema as U, ArtifactCategory as V, ArtifactEvidenceRequirements as W, ArtifactLifecycleState as X, ArtifactKindViewSchema as Y, ArtifactLifecycleStateSchema as Z, ArtifactRelationTarget as _, ArtifactCompareResponse as a, ArtifactUniquenessRule as at, ArtifactRepresentationsSchema as b, ArtifactObservationSchema as c, ArtifactRef$1 as ct, ArtifactQueryScope as d, ArtifactRelationRequirement as et, ArtifactQueryScopeSchema as f, ArtifactRelationSchema as g, ArtifactRelationQueryTargetSchema as h, ArtifactCompareRequestSchema as i, ArtifactSchemaVersionSchema as it, ConfidenceMetadataSchema as j, ConfidenceLevelSchema as k, ArtifactQueryRequest as l, ArtifactRefSchema as lt, ArtifactRelationQueryTarget as m, ArtifactActorSchema as n, ArtifactRelationRequirementConditionSchema as nt, ArtifactCompareResponseSchema as o, ArtifactUniquenessRuleSchema as ot, ArtifactRelation as p, ArtifactKindRegistrationSchema$1 as q, ArtifactCompareRequest as r, ArtifactRelationRequirementSchema as rt, ArtifactObservation$1 as s, ArtifactUniquenessSelectorSchema as st, ArtifactActor as t, ArtifactRelationRequirementCondition as tt, ArtifactQueryRequestSchema as u, ArtifactRelationTargetSchema as v, ArtifactScopeSchema as w, ArtifactRevision$1 as x, ArtifactRepresentations as y, RelationTypeRegistrationSchema as z };
|