@makaio/framework 1.0.0-dev-1789178780636 → 1.0.0-dev-1789234461336
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 +5 -5
- package/dist/artifact-CKz9YQPu.mjs +1 -0
- package/dist/authority-state-bootstrap-BkI-zYRx.mjs +1 -0
- package/dist/bus/index.d.mts +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-BZB7jNes.mjs +9 -0
- 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/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/index.d.mts +49 -49
- 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/skill/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/drizzle/0038_execution-attempt-repository.sql +73 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/{extension-DRwry8GA.mjs → extension-CfrTp3rC.mjs} +1 -1
- package/dist/{framework-packages-CCIReKIe.mjs → framework-packages-Bg4edkkM.mjs} +1 -1
- package/dist/{index-BDRfiSz8.d.mts → index-B4pPwpKk.d.mts} +1 -1
- package/dist/{index-DI07GxEW.d.mts → index-Bg3WVL8n.d.mts} +6 -6
- package/dist/{index-DNgrWs5j.d.mts → index-BmCm9R8_.d.mts} +21 -21
- package/dist/{index-BI8PuDkI.d.mts → index-BpQX136X.d.mts} +1 -1
- package/dist/{index-CdWxSwhQ2.d.mts → index-C6e9cwAl2.d.mts} +4 -4
- package/dist/{index-BFS-2kcS.d.mts → index-C_kOkO3E.d.mts} +16 -0
- package/dist/{index-DhunnX8V.d.mts → index-ClKwF6LE.d.mts} +83 -8
- package/dist/{index-4GaVggnR.d.mts → index-Cplq28EL.d.mts} +49 -33
- package/dist/{index-DtCVHx8-.d.mts → index-CzUUoexw.d.mts} +17 -9
- package/dist/{index-CsLb9M1M.d.mts → index-DMkzJCjS.d.mts} +1 -1
- package/dist/{index-GpfGF9AO2.d.mts → index-DXZImst_2.d.mts} +11 -8
- package/dist/{index-GPTSqhvy.d.mts → index-D_j_T3nS.d.mts} +1 -1
- package/dist/{index-KnN2OyWD2.d.mts → index-mTaFX2HH2.d.mts} +24 -24
- package/dist/{index-DVocx__-2.d.mts → index-zmDRR8gv2.d.mts} +11 -11
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{kind-registration-WrdMzWmV.mjs → kind-registration-Dzfo6kyb.mjs} +1 -1
- package/dist/materialization-iFhpbs1s.mjs +1 -0
- package/dist/{namespace-DQpBf2CK.d.mts → namespace-B5IFLQc-.d.mts} +6 -6
- package/dist/{namespace-BrqkCnyt.d.mts → namespace-BsQPRiMd.d.mts} +6 -6
- package/dist/{namespace-CjvSQYRJ.d.mts → namespace-f6Kz5cwX.d.mts} +12 -12
- package/dist/node/transports/index.d.mts +32 -11
- package/dist/node/transports/index.mjs +2 -2
- package/dist/{package-DdymauE9.d.mts → package-CDj3F-L3.d.mts} +1 -0
- package/dist/package-D2Erka-E.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/packages-vF9F4M41.mjs +1 -0
- package/dist/runtime-node/index.d.mts +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.d.mts +37 -20
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/{schemas-Dl_3zv9l.mjs → schemas-CHM0wMq4.mjs} +1 -1
- package/dist/{schemas-DlVKv9QC.d.mts → schemas-CaBRbfhU.d.mts} +6 -6
- package/dist/{schemas-uA8246K9.d.mts → schemas-CeItAAQM.d.mts} +8 -8
- package/dist/{schemas-BcynDWi-.d.mts → schemas-Cj6Gbqch.d.mts} +7 -7
- package/dist/{schemas-CKVm28Oy.d.mts → schemas-JjyFxrC0.d.mts} +4 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/execution-target/index.d.mts +2 -2
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +22 -22
- package/dist/services/index.mjs +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +3 -3
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{tools-Dj_ImUQ8.mjs → tools-C5Gy0IQG.mjs} +1 -1
- package/dist/{transition-B-YmSK-s.d.mts → transition-D-Lgbp1j.d.mts} +1 -1
- package/dist/{view-builder-BUZoNyEQ.d.mts → view-builder-CHUTXJDl.d.mts} +14 -1
- package/dist/{worker-IIubsEFG.mjs → worker-4pqm147Q.mjs} +1 -1
- package/dist/{workflow-dVr_9gaf.mjs → workflow-C5cS1mgK.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +118 -41
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-t6jn_pR_.mjs → workflow-transitions-C0sg3kar.mjs} +1 -1
- package/dist/{workflow-worker-C3ZbuhyA.mjs → workflow-worker-l-wflI6V.mjs} +2 -2
- package/package.json +1 -1
- package/dist/artifact-CH7yhgti.mjs +0 -1
- package/dist/authority-state-bootstrap-CV7HpB4v.mjs +0 -1
- package/dist/bus-CPlKKH4v.mjs +0 -9
- package/dist/materialization-C_92G2CL.mjs +0 -1
- package/dist/package-Bn4iwDm3.mjs +0 -7
- package/dist/packages-G3bMStlV.mjs +0 -1
|
@@ -20,9 +20,9 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
|
|
|
20
20
|
declare const ComponentStateSchema: z.ZodEnum<{
|
|
21
21
|
discovered: "discovered";
|
|
22
22
|
failed: "failed";
|
|
23
|
-
stopped: "stopped";
|
|
24
|
-
skipped: "skipped";
|
|
25
23
|
active: "active";
|
|
24
|
+
skipped: "skipped";
|
|
25
|
+
stopped: "stopped";
|
|
26
26
|
initializing: "initializing";
|
|
27
27
|
}>;
|
|
28
28
|
/** Inferred union of all valid component lifecycle states. */
|
|
@@ -49,9 +49,9 @@ declare const ComponentInfoSchema: z.ZodObject<{
|
|
|
49
49
|
state: z.ZodEnum<{
|
|
50
50
|
discovered: "discovered";
|
|
51
51
|
failed: "failed";
|
|
52
|
-
stopped: "stopped";
|
|
53
|
-
skipped: "skipped";
|
|
54
52
|
active: "active";
|
|
53
|
+
skipped: "skipped";
|
|
54
|
+
stopped: "stopped";
|
|
55
55
|
initializing: "initializing";
|
|
56
56
|
}>;
|
|
57
57
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -70,9 +70,9 @@ declare const ServiceInfoSchema: z.ZodObject<{
|
|
|
70
70
|
state: z.ZodEnum<{
|
|
71
71
|
discovered: "discovered";
|
|
72
72
|
failed: "failed";
|
|
73
|
-
stopped: "stopped";
|
|
74
|
-
skipped: "skipped";
|
|
75
73
|
active: "active";
|
|
74
|
+
skipped: "skipped";
|
|
75
|
+
stopped: "stopped";
|
|
76
76
|
initializing: "initializing";
|
|
77
77
|
}>;
|
|
78
78
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -92,9 +92,9 @@ declare const ExtensionInfoSchema: z.ZodObject<{
|
|
|
92
92
|
state: z.ZodEnum<{
|
|
93
93
|
discovered: "discovered";
|
|
94
94
|
failed: "failed";
|
|
95
|
-
stopped: "stopped";
|
|
96
|
-
skipped: "skipped";
|
|
97
95
|
active: "active";
|
|
96
|
+
skipped: "skipped";
|
|
97
|
+
stopped: "stopped";
|
|
98
98
|
initializing: "initializing";
|
|
99
99
|
}>;
|
|
100
100
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -140,17 +140,17 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
140
140
|
from: z.ZodEnum<{
|
|
141
141
|
discovered: "discovered";
|
|
142
142
|
failed: "failed";
|
|
143
|
-
stopped: "stopped";
|
|
144
|
-
skipped: "skipped";
|
|
145
143
|
active: "active";
|
|
144
|
+
skipped: "skipped";
|
|
145
|
+
stopped: "stopped";
|
|
146
146
|
initializing: "initializing";
|
|
147
147
|
}>;
|
|
148
148
|
to: z.ZodEnum<{
|
|
149
149
|
discovered: "discovered";
|
|
150
150
|
failed: "failed";
|
|
151
|
-
stopped: "stopped";
|
|
152
|
-
skipped: "skipped";
|
|
153
151
|
active: "active";
|
|
152
|
+
skipped: "skipped";
|
|
153
|
+
stopped: "stopped";
|
|
154
154
|
initializing: "initializing";
|
|
155
155
|
}>;
|
|
156
156
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -183,9 +183,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
183
183
|
state: z.ZodEnum<{
|
|
184
184
|
discovered: "discovered";
|
|
185
185
|
failed: "failed";
|
|
186
|
-
stopped: "stopped";
|
|
187
|
-
skipped: "skipped";
|
|
188
186
|
active: "active";
|
|
187
|
+
skipped: "skipped";
|
|
188
|
+
stopped: "stopped";
|
|
189
189
|
initializing: "initializing";
|
|
190
190
|
}>;
|
|
191
191
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -221,9 +221,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
221
221
|
state: z.ZodEnum<{
|
|
222
222
|
discovered: "discovered";
|
|
223
223
|
failed: "failed";
|
|
224
|
-
stopped: "stopped";
|
|
225
|
-
skipped: "skipped";
|
|
226
224
|
active: "active";
|
|
225
|
+
skipped: "skipped";
|
|
226
|
+
stopped: "stopped";
|
|
227
227
|
initializing: "initializing";
|
|
228
228
|
}>;
|
|
229
229
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -643,17 +643,17 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
643
643
|
from: z.ZodEnum<{
|
|
644
644
|
discovered: "discovered";
|
|
645
645
|
failed: "failed";
|
|
646
|
-
stopped: "stopped";
|
|
647
|
-
skipped: "skipped";
|
|
648
646
|
active: "active";
|
|
647
|
+
skipped: "skipped";
|
|
648
|
+
stopped: "stopped";
|
|
649
649
|
initializing: "initializing";
|
|
650
650
|
}>;
|
|
651
651
|
to: z.ZodEnum<{
|
|
652
652
|
discovered: "discovered";
|
|
653
653
|
failed: "failed";
|
|
654
|
-
stopped: "stopped";
|
|
655
|
-
skipped: "skipped";
|
|
656
654
|
active: "active";
|
|
655
|
+
skipped: "skipped";
|
|
656
|
+
stopped: "stopped";
|
|
657
657
|
initializing: "initializing";
|
|
658
658
|
}>;
|
|
659
659
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -686,9 +686,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
686
686
|
state: z.ZodEnum<{
|
|
687
687
|
discovered: "discovered";
|
|
688
688
|
failed: "failed";
|
|
689
|
-
stopped: "stopped";
|
|
690
|
-
skipped: "skipped";
|
|
691
689
|
active: "active";
|
|
690
|
+
skipped: "skipped";
|
|
691
|
+
stopped: "stopped";
|
|
692
692
|
initializing: "initializing";
|
|
693
693
|
}>;
|
|
694
694
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -724,9 +724,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
724
724
|
state: z.ZodEnum<{
|
|
725
725
|
discovered: "discovered";
|
|
726
726
|
failed: "failed";
|
|
727
|
-
stopped: "stopped";
|
|
728
|
-
skipped: "skipped";
|
|
729
727
|
active: "active";
|
|
728
|
+
skipped: "skipped";
|
|
729
|
+
stopped: "stopped";
|
|
730
730
|
initializing: "initializing";
|
|
731
731
|
}>;
|
|
732
732
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -22,8 +22,8 @@ declare const SkillNamespace: _$_makaio_core0.BusNamespaceDefinition<"skill", {
|
|
|
22
22
|
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
23
23
|
skillName: _$zod.ZodString;
|
|
24
24
|
trigger: _$zod.ZodEnum<{
|
|
25
|
-
auto: "auto";
|
|
26
25
|
user: "user";
|
|
26
|
+
auto: "auto";
|
|
27
27
|
model: "model";
|
|
28
28
|
reinjection: "reinjection";
|
|
29
29
|
}>;
|
|
@@ -83,8 +83,8 @@ declare const SkillNamespace: _$_makaio_core0.BusNamespaceDefinition<"skill", {
|
|
|
83
83
|
agentId: _$zod.ZodString;
|
|
84
84
|
skillName: _$zod.ZodString;
|
|
85
85
|
trigger: _$zod.ZodEnum<{
|
|
86
|
-
auto: "auto";
|
|
87
86
|
user: "user";
|
|
87
|
+
auto: "auto";
|
|
88
88
|
model: "model";
|
|
89
89
|
reinjection: "reinjection";
|
|
90
90
|
}>;
|
|
@@ -128,8 +128,8 @@ declare const SkillNamespace: _$_makaio_core0.BusNamespaceDefinition<"skill", {
|
|
|
128
128
|
baseDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
129
129
|
resources: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
130
130
|
trigger: _$zod.ZodEnum<{
|
|
131
|
-
auto: "auto";
|
|
132
131
|
user: "user";
|
|
132
|
+
auto: "auto";
|
|
133
133
|
model: "model";
|
|
134
134
|
reinjection: "reinjection";
|
|
135
135
|
}>;
|
|
@@ -161,8 +161,8 @@ declare const SkillSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
161
161
|
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
162
162
|
skillName: _$zod.ZodString;
|
|
163
163
|
trigger: _$zod.ZodEnum<{
|
|
164
|
-
auto: "auto";
|
|
165
164
|
user: "user";
|
|
165
|
+
auto: "auto";
|
|
166
166
|
model: "model";
|
|
167
167
|
reinjection: "reinjection";
|
|
168
168
|
}>;
|
|
@@ -222,8 +222,8 @@ declare const SkillSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
222
222
|
agentId: _$zod.ZodString;
|
|
223
223
|
skillName: _$zod.ZodString;
|
|
224
224
|
trigger: _$zod.ZodEnum<{
|
|
225
|
-
auto: "auto";
|
|
226
225
|
user: "user";
|
|
226
|
+
auto: "auto";
|
|
227
227
|
model: "model";
|
|
228
228
|
reinjection: "reinjection";
|
|
229
229
|
}>;
|
|
@@ -267,8 +267,8 @@ declare const SkillSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
267
267
|
baseDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
268
268
|
resources: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
269
269
|
trigger: _$zod.ZodEnum<{
|
|
270
|
-
auto: "auto";
|
|
271
270
|
user: "user";
|
|
271
|
+
auto: "auto";
|
|
272
272
|
model: "model";
|
|
273
273
|
reinjection: "reinjection";
|
|
274
274
|
}>;
|
|
@@ -303,8 +303,8 @@ declare const SkillActivationModeSchema: z.ZodEnum<{
|
|
|
303
303
|
}>;
|
|
304
304
|
/** Trigger that activated or reinjected a skill. */
|
|
305
305
|
declare const SkillActivationTriggerSchema: z.ZodEnum<{
|
|
306
|
-
auto: "auto";
|
|
307
306
|
user: "user";
|
|
307
|
+
auto: "auto";
|
|
308
308
|
model: "model";
|
|
309
309
|
reinjection: "reinjection";
|
|
310
310
|
}>;
|
|
@@ -443,8 +443,8 @@ declare const ActiveSkillStateSchema: z.ZodObject<{
|
|
|
443
443
|
baseDir: z.ZodOptional<z.ZodString>;
|
|
444
444
|
resources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
445
445
|
trigger: z.ZodEnum<{
|
|
446
|
-
auto: "auto";
|
|
447
446
|
user: "user";
|
|
447
|
+
auto: "auto";
|
|
448
448
|
model: "model";
|
|
449
449
|
reinjection: "reinjection";
|
|
450
450
|
}>;
|
|
@@ -511,8 +511,8 @@ declare const SkillSchemas: {
|
|
|
511
511
|
adapterId: z.ZodOptional<z.ZodString>;
|
|
512
512
|
skillName: z.ZodString;
|
|
513
513
|
trigger: z.ZodEnum<{
|
|
514
|
-
auto: "auto";
|
|
515
514
|
user: "user";
|
|
515
|
+
auto: "auto";
|
|
516
516
|
model: "model";
|
|
517
517
|
reinjection: "reinjection";
|
|
518
518
|
}>;
|
|
@@ -572,8 +572,8 @@ declare const SkillSchemas: {
|
|
|
572
572
|
agentId: z.ZodString;
|
|
573
573
|
skillName: z.ZodString;
|
|
574
574
|
trigger: z.ZodEnum<{
|
|
575
|
-
auto: "auto";
|
|
576
575
|
user: "user";
|
|
576
|
+
auto: "auto";
|
|
577
577
|
model: "model";
|
|
578
578
|
reinjection: "reinjection";
|
|
579
579
|
}>;
|
|
@@ -617,8 +617,8 @@ declare const SkillSchemas: {
|
|
|
617
617
|
baseDir: z.ZodOptional<z.ZodString>;
|
|
618
618
|
resources: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
619
619
|
trigger: z.ZodEnum<{
|
|
620
|
-
auto: "auto";
|
|
621
620
|
user: "user";
|
|
621
|
+
auto: "auto";
|
|
622
622
|
model: "model";
|
|
623
623
|
reinjection: "reinjection";
|
|
624
624
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-
|
|
1
|
+
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-D_j_T3nS.mjs";
|
|
2
2
|
export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
|
package/dist/kernel/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-
|
|
2
|
-
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-
|
|
1
|
+
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-mTaFX2HH2.mjs";
|
|
2
|
+
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-D_j_T3nS.mjs";
|
|
3
3
|
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-DeG37kt8.mjs";
|
|
4
4
|
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-BCU5oByg.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-CVRT01082.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-
|
|
1
|
+
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-mTaFX2HH2.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
|
|
@@ -1 +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 p(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 m(e,t,n){if(typeof t.$ref==`string`){if(n.has(t.$ref))return;let r=u(e,t);return a(r)?m(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?m(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 h(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?v(e,c,r,i,new Set([...a,n]),o,s):void 0}function g(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?v(e,s,n,r):void 0}function _(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 v(e,t,n,r,a=new Set,s=!1,c=!1){if(typeof t.$ref==`string`){let i=t.$ref;return h(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}=_(e,d,o);return v(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=m(e,t,a);return i?v(e,i,n,r,a,s,c):void 0}if(n.length===0)return[t];let[d,...b]=n;if(d===`[]`)return g(e,t,b,r||c);if(!(!o(t,`object`)&&!(t.type===void 0&&s))&&!(!d||r&&!f(t).includes(d)))return y(e,p(t,d),b,r,c)}function y(e,t,n,r,i){return typeof t==`boolean`?n.length===0?[t]:void 0:t?v(e,t,n,r,new Set,!1,i):void 0}function b(e,t,n){return v(e,e,[...t],n?.required??!1,new Set,!0,n?.requiredAfterElement??!1)}function x(e,t){return b(e,t.split(`.`))!==void 0}function S(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 C(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 S(e))C(n.node,[...t,...n.path])}function w(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)&&w(e,r,new Set([...n,t.$ref])))return!0}return S(t).some(t=>w(e,t.node,n))}function T(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 E(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`}),T(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)&&(w(e,t)||!m(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 S(t))E(e,i.node,n,[...r,...i.path])}function D(e,t){E(e.dataSchema,e.dataSchema,t);let n=v(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)x(e.dataSchema,n)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function O(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}function k(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),A(e.dataSchema,a,i,t)}function A(e,t,n,r){let i=b(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}j(e,t,n,r)}function j(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=b(e,[...t.path.split(`.`),`[]`,...a],{requiredAfterElement:!0});if(!s||s.length===0){i();return}s.some(e=>!o(e,`string`))&&i()}function M(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}const N=[`ARTIFACT_NOT_FOUND`,`KIND_NOT_REGISTERED`,`NO_PARTS_DECLARED`,`PART_NOT_FOUND`,`DUPLICATE_LOCAL_ID`],P=r.strictObject({code:r.enum(N),message:r.string().min(1),repair:r.string().min(1)});function F(e,r,i){if(e.length===0)return{ok:!1,reason:`NO_PARTS_DECLARED`};let a;for(let o of e){let e=t(r,o.path.split(`.`));if(!Array.isArray(e))continue;let s=o.idPath.split(`.`);for(let r of e)if(n(r)&&t(r,s)===i){if(a!==void 0)return{ok:!1,reason:`DUPLICATE_LOCAL_ID`};a={areaPath:o.path,part:r}}}return a===void 0?{ok:!1,reason:`PART_NOT_FOUND`}:{ok:!0,areaPath:a.areaPath,part:a.part}}const I=r.number().int().positive(),L=r.enum([`knowledge`,`commitment`,`interaction`,`record`]),R=r.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),z=r.strictObject({fields:r.array(R).min(1)}),B=new Set([`full`]),V={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},H=r.enum([...V.knowledge,...V.commitment,...V.interaction]),U=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()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),W=r.discriminatedUnion(`kind`,[r.strictObject({kind:r.literal(`data`),path:R}),r.strictObject({kind:r.literal(`relation-target`),relationType:r.string().trim().min(1)})]),G=r.strictObject({path:R,idPath:R}),K=r.strictObject({by:r.array(W).min(1),lifecycleStates:r.array(H).min(1).optional()}),q=r.strictObject({minItems:r.number().int().nonnegative()}),J=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),Y=r.strictObject({kind:r.string().trim().min(1),description:r.string().trim().min(1),schemaVersion:I,category:L,dataSchema:e,titlePath:R,relations:r.array(U).optional(),uniqueness:r.array(K).optional(),evidenceRequirements:q.optional(),indexedFields:r.array(R).optional(),searchableFields:r.array(R).optional(),addressableParts:r.array(G).min(1).optional(),views:r.record(r.string().trim().min(1),z).optional()}).superRefine((e,t)=>{J.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=V[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}`})}),Object.keys(e.views??{}).forEach(e=>{B.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),D(e,t),k(e,t)});export{O as S,k as _,Y as a,b,G as c,K as d,W as f,F as g,M as h,q as i,U as l,P as m,L as n,z as o,N as p,R as r,H as s,V as t,I as u,s as v,x,C as y};
|
|
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 p(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 m(e,t,n){if(typeof t.$ref==`string`){if(n.has(t.$ref))return;let r=u(e,t);return a(r)?m(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?m(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 h(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?v(e,c,r,i,new Set([...a,n]),o,s):void 0}function g(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?v(e,s,n,r):void 0}function _(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 v(e,t,n,r,a=new Set,s=!1,c=!1){if(typeof t.$ref==`string`){let i=t.$ref;return h(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}=_(e,d,o);return v(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=m(e,t,a);return i?v(e,i,n,r,a,s,c):void 0}if(n.length===0)return[t];let[d,...b]=n;if(d===`[]`)return g(e,t,b,r||c);if(!(!o(t,`object`)&&!(t.type===void 0&&s))&&!(!d||r&&!f(t).includes(d)))return y(e,p(t,d),b,r,c)}function y(e,t,n,r,i){return typeof t==`boolean`?n.length===0?[t]:void 0:t?v(e,t,n,r,new Set,!1,i):void 0}function b(e,t,n){return v(e,e,[...t],n?.required??!1,new Set,!0,n?.requiredAfterElement??!1)}function x(e,t){return b(e,t.split(`.`))!==void 0}function S(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 C(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 S(e))C(n.node,[...t,...n.path])}function w(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)&&w(e,r,new Set([...n,t.$ref])))return!0}return S(t).some(t=>w(e,t.node,n))}function T(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 E(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`}),T(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)&&(w(e,t)||!m(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 S(t))E(e,i.node,n,[...r,...i.path])}function D(e,t){E(e.dataSchema,e.dataSchema,t);let n=v(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)x(e.dataSchema,n)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function O(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}function k(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),A(e.dataSchema,a,i,t)}function A(e,t,n,r){let i=b(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}j(e,t,n,r)}function j(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=b(e,[...t.path.split(`.`),`[]`,...a],{requiredAfterElement:!0});if(!s||s.length===0){i();return}s.some(e=>!o(e,`string`))&&i()}function M(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 N(e,t,n){let r=[],i=I(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 P=[`ARTIFACT_NOT_FOUND`,`KIND_NOT_REGISTERED`,`NO_PARTS_DECLARED`,`PART_NOT_FOUND`,`DUPLICATE_LOCAL_ID`],F=r.strictObject({code:r.enum(P),message:r.string().min(1),repair:r.string().min(1)});function I(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 L(e,t,n){let r=I(e,t);return r===void 0?{ok:!1,reason:`NO_PARTS_DECLARED`}:r.get(n)??{ok:!1,reason:`PART_NOT_FOUND`}}const R=r.number().int().positive(),z=r.enum([`knowledge`,`commitment`,`interaction`,`record`]),B=r.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),V=r.strictObject({fields:r.array(B).min(1)}),H=new Set([`full`]),U={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},W=r.enum([...U.knowledge,...U.commitment,...U.interaction]),G=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()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),K=r.discriminatedUnion(`kind`,[r.strictObject({kind:r.literal(`data`),path:B}),r.strictObject({kind:r.literal(`relation-target`),relationType:r.string().trim().min(1)})]),q=r.strictObject({path:B,idPath:B}),J=r.strictObject({by:r.array(K).min(1),lifecycleStates:r.array(W).min(1).optional()}),Y=r.strictObject({minItems:r.number().int().nonnegative()}),X=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),Z=r.strictObject({kind:r.string().trim().min(1),description:r.string().trim().min(1),schemaVersion:R,category:z,dataSchema:e,titlePath:B,relations:r.array(G).optional(),uniqueness:r.array(J).optional(),evidenceRequirements:Y.optional(),indexedFields:r.array(B).optional(),searchableFields:r.array(B).optional(),addressableParts:r.array(q).min(1).optional(),views:r.record(r.string().trim().min(1),V).optional()}).superRefine((e,t)=>{X.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=U[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}`})}),Object.keys(e.views??{}).forEach(e=>{H.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),D(e,t),k(e,t)});export{O as C,x as S,L as _,Z as a,C as b,q as c,J as d,K as f,N as g,M as h,Y as i,G as l,F as m,z as n,V as o,P as p,B as r,W as s,U as t,R as u,k as v,b as x,s as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-CHM0wMq4.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),z=R.subjects;function B(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)}})}}export{y as A,o as C,f as D,l as E,u as M,p as N,g as O,c as S,b as T,S as _,L as a,v as b,N as c,O as d,A as f,x as g,E as h,R as i,d as j,m as k,M as l,T as m,F as n,z as o,k as p,I as r,P as s,B as t,j as u,D as v,s as w,h as x,_ as y};
|
|
@@ -13,8 +13,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
13
13
|
label: _$zod.ZodString;
|
|
14
14
|
section: _$zod.ZodEnum<{
|
|
15
15
|
tools: "tools";
|
|
16
|
-
utilities: "utilities";
|
|
17
16
|
views: "views";
|
|
17
|
+
utilities: "utilities";
|
|
18
18
|
}>;
|
|
19
19
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
20
20
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -48,8 +48,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
48
48
|
}, _$zod_v4_core0.$strip>>;
|
|
49
49
|
section: _$zod.ZodEnum<{
|
|
50
50
|
tools: "tools";
|
|
51
|
-
utilities: "utilities";
|
|
52
51
|
views: "views";
|
|
52
|
+
utilities: "utilities";
|
|
53
53
|
}>;
|
|
54
54
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
55
55
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -83,8 +83,8 @@ declare const TrayMenuNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:tr
|
|
|
83
83
|
label: _$zod.ZodString;
|
|
84
84
|
section: _$zod.ZodEnum<{
|
|
85
85
|
tools: "tools";
|
|
86
|
-
utilities: "utilities";
|
|
87
86
|
views: "views";
|
|
87
|
+
utilities: "utilities";
|
|
88
88
|
}>;
|
|
89
89
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
90
90
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -104,8 +104,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
104
104
|
label: _$zod.ZodString;
|
|
105
105
|
section: _$zod.ZodEnum<{
|
|
106
106
|
tools: "tools";
|
|
107
|
-
utilities: "utilities";
|
|
108
107
|
views: "views";
|
|
108
|
+
utilities: "utilities";
|
|
109
109
|
}>;
|
|
110
110
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
111
111
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -139,8 +139,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
139
139
|
}, _$zod_v4_core0.$strip>>;
|
|
140
140
|
section: _$zod.ZodEnum<{
|
|
141
141
|
tools: "tools";
|
|
142
|
-
utilities: "utilities";
|
|
143
142
|
views: "views";
|
|
143
|
+
utilities: "utilities";
|
|
144
144
|
}>;
|
|
145
145
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
146
146
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -174,8 +174,8 @@ declare const TrayMenuSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
174
174
|
label: _$zod.ZodString;
|
|
175
175
|
section: _$zod.ZodEnum<{
|
|
176
176
|
tools: "tools";
|
|
177
|
-
utilities: "utilities";
|
|
178
177
|
views: "views";
|
|
178
|
+
utilities: "utilities";
|
|
179
179
|
}>;
|
|
180
180
|
priority: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
181
181
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
@@ -65,18 +65,18 @@ declare const ExecutionTargetNamespace: _$_makaio_core0.BusNamespaceDefinition<"
|
|
|
65
65
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
66
66
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
67
67
|
name: _$zod.ZodString;
|
|
68
|
-
enabled: _$zod.ZodBoolean;
|
|
69
68
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
70
|
-
|
|
69
|
+
enabled: _$zod.ZodBoolean;
|
|
71
70
|
scope: _$zod.ZodString;
|
|
71
|
+
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
72
72
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
73
73
|
type: _$zod.ZodLiteral<"container-isolated">;
|
|
74
74
|
id: _$zod.ZodString;
|
|
75
75
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
76
76
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
77
77
|
name: _$zod.ZodString;
|
|
78
|
-
enabled: _$zod.ZodBoolean;
|
|
79
78
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
79
|
+
enabled: _$zod.ZodBoolean;
|
|
80
80
|
scope: _$zod.ZodString;
|
|
81
81
|
gitCredentialMode: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
82
82
|
token: "token";
|
|
@@ -336,18 +336,18 @@ declare const ExecutionTargetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
336
336
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
337
337
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
338
338
|
name: _$zod.ZodString;
|
|
339
|
-
enabled: _$zod.ZodBoolean;
|
|
340
339
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
341
|
-
|
|
340
|
+
enabled: _$zod.ZodBoolean;
|
|
342
341
|
scope: _$zod.ZodString;
|
|
342
|
+
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
343
343
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
344
344
|
type: _$zod.ZodLiteral<"container-isolated">;
|
|
345
345
|
id: _$zod.ZodString;
|
|
346
346
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
347
347
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
348
348
|
name: _$zod.ZodString;
|
|
349
|
-
enabled: _$zod.ZodBoolean;
|
|
350
349
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
350
|
+
enabled: _$zod.ZodBoolean;
|
|
351
351
|
scope: _$zod.ZodString;
|
|
352
352
|
gitCredentialMode: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
353
353
|
token: "token";
|
|
@@ -14,9 +14,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
14
14
|
response: _$zod.ZodObject<{
|
|
15
15
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
16
16
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
17
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
18
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
17
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
18
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20
20
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
21
21
|
label: _$zod.ZodString;
|
|
22
22
|
url: _$zod.ZodString;
|
|
@@ -39,9 +39,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
39
39
|
response: _$zod.ZodObject<{
|
|
40
40
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
41
41
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
42
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
43
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
42
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
43
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
45
45
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
46
46
|
label: _$zod.ZodString;
|
|
47
47
|
url: _$zod.ZodString;
|
|
@@ -1650,9 +1650,9 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
1650
1650
|
response: _$zod.ZodObject<{
|
|
1651
1651
|
config: _$zod.ZodObject<{
|
|
1652
1652
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1653
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1654
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
1653
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1654
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1656
1656
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1657
1657
|
label: _$zod.ZodString;
|
|
1658
1658
|
url: _$zod.ZodString;
|
|
@@ -1875,9 +1875,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1875
1875
|
response: _$zod.ZodObject<{
|
|
1876
1876
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
1877
1877
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1878
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1879
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
1878
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1879
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1881
1881
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1882
1882
|
label: _$zod.ZodString;
|
|
1883
1883
|
url: _$zod.ZodString;
|
|
@@ -1900,9 +1900,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1900
1900
|
response: _$zod.ZodObject<{
|
|
1901
1901
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
1902
1902
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1903
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1904
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
1903
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1904
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1906
1906
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1907
1907
|
label: _$zod.ZodString;
|
|
1908
1908
|
url: _$zod.ZodString;
|
|
@@ -3511,9 +3511,9 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
3511
3511
|
response: _$zod.ZodObject<{
|
|
3512
3512
|
config: _$zod.ZodObject<{
|
|
3513
3513
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3514
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3515
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
3514
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3515
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3517
3517
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
3518
3518
|
label: _$zod.ZodString;
|
|
3519
3519
|
url: _$zod.ZodString;
|
|
@@ -358,15 +358,27 @@ interface HmacIdentitySecretRegistrationOptions {
|
|
|
358
358
|
*/
|
|
359
359
|
readonly claims?: Readonly<Record<string, unknown>>;
|
|
360
360
|
/**
|
|
361
|
-
* Optional
|
|
361
|
+
* Optional subjects this identity may use for requests and events.
|
|
362
362
|
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
|
|
363
|
+
* If either directional subject option is provided, an omitted direction is
|
|
364
|
+
* denied by default. Identities without both fields are unrestricted.
|
|
365
|
+
*/
|
|
366
|
+
readonly allowedMessageSubjects?: readonly string[];
|
|
367
|
+
/**
|
|
368
|
+
* Optional subjects this identity may advertise as subscriptions.
|
|
369
|
+
*
|
|
370
|
+
* If either directional subject option is provided, an omitted direction is
|
|
371
|
+
* denied by default. Identities without both fields are unrestricted.
|
|
372
|
+
*/
|
|
373
|
+
readonly allowedSubscriptionSubjects?: readonly string[];
|
|
374
|
+
/**
|
|
375
|
+
* Trusted payload filters imposed on every matching outbound delivery.
|
|
366
376
|
*
|
|
367
|
-
*
|
|
377
|
+
* Keys must be exact full subjects, never wildcard patterns. These filters
|
|
378
|
+
* are live server metadata, never cached in peer subscription state. Both
|
|
379
|
+
* the current policy and any peer-advertised filter must match.
|
|
368
380
|
*/
|
|
369
|
-
readonly
|
|
381
|
+
readonly requiredSubscriptionFilters?: Readonly<Record<string, PayloadFilter>>;
|
|
370
382
|
}
|
|
371
383
|
/**
|
|
372
384
|
* Register an HMAC secret for a transport identity.
|
|
@@ -434,14 +446,23 @@ declare function resolveHmacIdentitySecret(identityId: string): string | null;
|
|
|
434
446
|
*/
|
|
435
447
|
declare function resolveHmacIdentityPeer(identityId: string): TransportPeerContext | null;
|
|
436
448
|
/**
|
|
437
|
-
* Resolve the subject restriction set for an identity claim.
|
|
449
|
+
* Resolve the message subject restriction set for an identity claim.
|
|
438
450
|
*
|
|
439
|
-
* Returns the allowed subjects set when the identity has a subject
|
|
451
|
+
* Returns the allowed message subjects set when the identity has a subject
|
|
440
452
|
* restriction, or `null` when the identity is unrestricted or unknown.
|
|
441
453
|
* @param identityId - Claimed transport identity.
|
|
442
|
-
* @returns Allowed subjects set, or null when unrestricted/unknown.
|
|
454
|
+
* @returns Allowed message subjects set, or null when unrestricted/unknown.
|
|
455
|
+
*/
|
|
456
|
+
declare function resolveHmacIdentityAllowedMessageSubjects(identityId: string): ReadonlySet<string> | null;
|
|
457
|
+
/**
|
|
458
|
+
* Resolve the subscription subject restriction set for an identity claim.
|
|
459
|
+
*
|
|
460
|
+
* Returns the allowed subscription subjects set when the identity has a
|
|
461
|
+
* subject restriction, or `null` when the identity is unrestricted or unknown.
|
|
462
|
+
* @param identityId - Claimed transport identity.
|
|
463
|
+
* @returns Allowed subscription subjects set, or null when unrestricted/unknown.
|
|
443
464
|
*/
|
|
444
|
-
declare function
|
|
465
|
+
declare function resolveHmacIdentityAllowedSubscriptionSubjects(identityId: string): ReadonlySet<string> | null;
|
|
445
466
|
/**
|
|
446
467
|
* Add exact subjects to an existing restricted HMAC identity without rotating
|
|
447
468
|
* its secret or replacing its peer metadata.
|
|
@@ -2132,4 +2153,4 @@ declare module '@makaio/framework/bus' {
|
|
|
2132
2153
|
}
|
|
2133
2154
|
}
|
|
2134
2155
|
//#endregion
|
|
2135
|
-
export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret,
|
|
2156
|
+
export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityAllowedMessageSubjects, resolveHmacIdentityAllowedSubscriptionSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };
|