@makaio/framework 1.0.0-dev-1788936831433 → 1.0.0-dev-1788955549564
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/{account-identity-DCBpVurJ.mjs → account-identity-B0NsOILM.mjs} +1 -1
- package/dist/{adapter-D6IpEDIo.mjs → adapter-DYE_oWjj.mjs} +1 -1
- package/dist/artifact-nArLAotB.mjs +1 -0
- package/dist/{automation-trigger-D_xKqEoV.mjs → automation-trigger-CZfH94Fr.mjs} +1 -1
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-DwuFQ02A.mjs → canonical-model-oFNty7hj.mjs} +1 -1
- package/dist/{client-CTqzLpVx.mjs → client-DJMzCHRm.mjs} +1 -1
- package/dist/{compression-3DauETKU.mjs → compression-nZhMDRTA.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/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/client/index.mjs +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/index.d.mts +28 -28
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.mjs +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/{framework-packages-B3SQPHD7.mjs → framework-packages-25GUGzJ-.mjs} +1 -1
- package/dist/{index-CqSdF7rK.d.mts → index-99Gz8ezO.d.mts} +7 -7
- package/dist/{index-DlOp5nH0.d.mts → index-BAL1FiaJ.d.mts} +6 -6
- package/dist/{index-ZGtyv_3n2.d.mts → index-Bak5iKWv2.d.mts} +4 -4
- package/dist/{index-BQoiFDct.d.mts → index-C9J8wBLV.d.mts} +104 -68
- package/dist/{index-C83rKcaK2.d.mts → index-CVx7li6B2.d.mts} +24 -24
- package/dist/{index-CzSoEyWu.d.mts → index-ConotXyG.d.mts} +14 -14
- package/dist/{index-DDUi5U4Q.d.mts → index-CwJaE0fT.d.mts} +24 -24
- package/dist/{index-BwktKRHX.d.mts → index-CyB6POkH.d.mts} +1 -1
- package/dist/{index-DWU3yzQ-.d.mts → index-D2sbGoGS.d.mts} +1 -1
- package/dist/{index-BV1Btpfc.d.mts → index-DfJNJYPV.d.mts} +1 -1
- package/dist/{index-J7xYeLwB.d.mts → index-DzeUtJtE.d.mts} +8 -8
- package/dist/{index-B6Lsx8QD2.d.mts → index-OUtnmQ8t2.d.mts} +3 -3
- package/dist/{index-glwUNat3.d.mts → index-OXuby-ee.d.mts} +4 -4
- package/dist/{index-BypDPKtQ.d.mts → index-VbqrC9qf.d.mts} +34 -34
- 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/{materialization-CDemi12q.mjs → materialization-BQuh_gaE.mjs} +1 -1
- package/dist/{namespace-BXkDQ9nn.d.mts → namespace-Cb0XKb4v.d.mts} +2 -2
- package/dist/{namespace-DCmkW_25.d.mts → namespace-DiTFR4Zt.d.mts} +2 -2
- package/dist/{namespace-Cjh_Ogen.d.mts → namespace-c5XPzbf3.d.mts} +3 -3
- package/dist/package.json +1 -1
- package/dist/packages-Dhgmy_LJ.mjs +1 -0
- package/dist/{reaction-OQibmmDW.mjs → reaction-6e4v007b.mjs} +1 -1
- package/dist/{schemas-DfSirQM5.d.mts → schemas-BFwNBMIj.d.mts} +6 -6
- package/dist/{schemas-CSDiTBsU.mjs → schemas-BIU9Org_.mjs} +1 -1
- package/dist/{schemas-eA76OYo2.d.mts → schemas-BZabEyEV.d.mts} +1 -1
- package/dist/{schemas-B4gxLiTq.d.mts → schemas-Di_kpQ0C.d.mts} +2 -1
- package/dist/schemas-FiFC_DI6.mjs +1 -0
- package/dist/{schemas-Bg2fBMPN.d.mts → schemas-I9dZtAkj.d.mts} +2 -2
- package/dist/{schemas-BUK9I-Oz.mjs → schemas-abY5VbS4.mjs} +1 -1
- 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/execution-target/index.d.mts +3 -3
- 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/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- 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/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +3 -3
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +6 -6
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{session-CQAuApxe.mjs → session-A-h_Dwcs.mjs} +1 -1
- package/dist/{session-lineage-Bwb98OUz.d.mts → session-lineage-BzlpfLgC.d.mts} +1 -1
- package/dist/{shared-BYP7z9xy.mjs → shared-BZf2zoxL.mjs} +1 -1
- package/dist/{tools-2INrWlnS.mjs → tools-oQPsY7v2.mjs} +1 -1
- package/dist/{transition-DXfTmVSx.d.mts → transition-BeWq5nKg.d.mts} +1 -1
- package/dist/{types-B4u8kNdt.d.mts → types-CIEJ91wm.d.mts} +3 -3
- package/dist/{view-builder-DU_WTiuk.d.mts → view-builder-BwGugMWz.d.mts} +1 -1
- package/dist/{worker-Bn0x5MSH.mjs → worker-Csadr_du.mjs} +1 -1
- package/dist/{workflow-B6C3Pf66.mjs → workflow-Cb2Pj1h3.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +40 -40
- package/dist/{workflow-transitions-BbhM_zPm.mjs → workflow-transitions-BI7PbrXv.mjs} +1 -1
- package/package.json +1 -1
- package/dist/artifact-DtmJR46g.mjs +0 -1
- package/dist/packages-7CsXP86g.mjs +0 -1
- package/dist/schemas-BahXrOYa.mjs +0 -1
- package/dist/{index-CBnCXp1R2.d.mts → index-Dmwnhnio2.d.mts} +6 -6
- /package/dist/{zod-json-schema-B9TYYq3e.mjs → zod-json-schema-B1mZz7S4.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as JsonObjectContractSchema } from "./json-value-DyMQrwGz.mjs";
|
|
2
2
|
import { o as ICapabilityProvider } from "./index-D3_QOfke.mjs";
|
|
3
|
-
import { Qt as WorkerContributionManifest, ln as WorkflowWorkerConfig, sn as WorkflowWorkerBusAuth } from "./index-
|
|
3
|
+
import { Qt as WorkerContributionManifest, ln as WorkflowWorkerConfig, sn as WorkflowWorkerBusAuth } from "./index-CwJaE0fT.mjs";
|
|
4
4
|
import { t as WorkerRuntimeInputs } from "./runtime-inputs-CMjGjK7W.mjs";
|
|
5
5
|
import * as _$zod from "zod";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -313,8 +313,8 @@ declare const VCSCheckRunSchema: z.ZodObject<{
|
|
|
313
313
|
cancelled: "cancelled";
|
|
314
314
|
failure: "failure";
|
|
315
315
|
timed_out: "timed_out";
|
|
316
|
-
skipped: "skipped";
|
|
317
316
|
neutral: "neutral";
|
|
317
|
+
skipped: "skipped";
|
|
318
318
|
action_required: "action_required";
|
|
319
319
|
}>>;
|
|
320
320
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -569,8 +569,8 @@ declare const VCSSchemas: {
|
|
|
569
569
|
cancelled: "cancelled";
|
|
570
570
|
failure: "failure";
|
|
571
571
|
timed_out: "timed_out";
|
|
572
|
-
skipped: "skipped";
|
|
573
572
|
neutral: "neutral";
|
|
573
|
+
skipped: "skipped";
|
|
574
574
|
action_required: "action_required";
|
|
575
575
|
}>>;
|
|
576
576
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1131,8 +1131,8 @@ declare const VCSNamespace: _$_makaio_core0.BusNamespaceDefinition<"vcs", {
|
|
|
1131
1131
|
cancelled: "cancelled";
|
|
1132
1132
|
failure: "failure";
|
|
1133
1133
|
timed_out: "timed_out";
|
|
1134
|
-
skipped: "skipped";
|
|
1135
1134
|
neutral: "neutral";
|
|
1135
|
+
skipped: "skipped";
|
|
1136
1136
|
action_required: "action_required";
|
|
1137
1137
|
}>>;
|
|
1138
1138
|
startedAt: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -1424,8 +1424,8 @@ declare const VCSSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
|
|
|
1424
1424
|
cancelled: "cancelled";
|
|
1425
1425
|
failure: "failure";
|
|
1426
1426
|
timed_out: "timed_out";
|
|
1427
|
-
skipped: "skipped";
|
|
1428
1427
|
neutral: "neutral";
|
|
1428
|
+
skipped: "skipped";
|
|
1429
1429
|
action_required: "action_required";
|
|
1430
1430
|
}>>;
|
|
1431
1431
|
startedAt: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -1648,8 +1648,8 @@ declare function unregisterVCSProvider(bus: MakaioBusLike, providerId: string):
|
|
|
1648
1648
|
* Lifecycle states for a review finding.
|
|
1649
1649
|
*/
|
|
1650
1650
|
declare const FindingStatusSchema: z.ZodEnum<{
|
|
1651
|
-
open: "open";
|
|
1652
1651
|
verified: "verified";
|
|
1652
|
+
open: "open";
|
|
1653
1653
|
addressed: "addressed";
|
|
1654
1654
|
dismissed: "dismissed";
|
|
1655
1655
|
deferred: "deferred";
|
|
@@ -1733,8 +1733,8 @@ declare const ReviewFindingSchema: z.ZodObject<{
|
|
|
1733
1733
|
newCode: z.ZodString;
|
|
1734
1734
|
}, z.core.$strip>>;
|
|
1735
1735
|
status: z.ZodEnum<{
|
|
1736
|
-
open: "open";
|
|
1737
1736
|
verified: "verified";
|
|
1737
|
+
open: "open";
|
|
1738
1738
|
addressed: "addressed";
|
|
1739
1739
|
dismissed: "dismissed";
|
|
1740
1740
|
deferred: "deferred";
|
|
@@ -1911,8 +1911,8 @@ declare const ReviewSchemas: {
|
|
|
1911
1911
|
newCode: z.ZodString;
|
|
1912
1912
|
}, z.core.$strip>>;
|
|
1913
1913
|
status: z.ZodEnum<{
|
|
1914
|
-
open: "open";
|
|
1915
1914
|
verified: "verified";
|
|
1915
|
+
open: "open";
|
|
1916
1916
|
addressed: "addressed";
|
|
1917
1917
|
dismissed: "dismissed";
|
|
1918
1918
|
deferred: "deferred";
|
|
@@ -1943,8 +1943,8 @@ declare const ReviewSchemas: {
|
|
|
1943
1943
|
headSha: z.ZodOptional<z.ZodString>;
|
|
1944
1944
|
}, z.core.$strip>;
|
|
1945
1945
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1946
|
-
open: "open";
|
|
1947
1946
|
verified: "verified";
|
|
1947
|
+
open: "open";
|
|
1948
1948
|
addressed: "addressed";
|
|
1949
1949
|
dismissed: "dismissed";
|
|
1950
1950
|
deferred: "deferred";
|
|
@@ -1986,8 +1986,8 @@ declare const ReviewSchemas: {
|
|
|
1986
1986
|
newCode: z.ZodString;
|
|
1987
1987
|
}, z.core.$strip>>;
|
|
1988
1988
|
status: z.ZodEnum<{
|
|
1989
|
-
open: "open";
|
|
1990
1989
|
verified: "verified";
|
|
1990
|
+
open: "open";
|
|
1991
1991
|
addressed: "addressed";
|
|
1992
1992
|
dismissed: "dismissed";
|
|
1993
1993
|
deferred: "deferred";
|
|
@@ -2048,8 +2048,8 @@ declare const ReviewSchemas: {
|
|
|
2048
2048
|
}>;
|
|
2049
2049
|
id: z.ZodString;
|
|
2050
2050
|
status: z.ZodEnum<{
|
|
2051
|
-
open: "open";
|
|
2052
2051
|
verified: "verified";
|
|
2052
|
+
open: "open";
|
|
2053
2053
|
addressed: "addressed";
|
|
2054
2054
|
dismissed: "dismissed";
|
|
2055
2055
|
deferred: "deferred";
|
|
@@ -2113,8 +2113,8 @@ declare const ReviewSchemas: {
|
|
|
2113
2113
|
newCode: z.ZodString;
|
|
2114
2114
|
}, z.core.$strip>>;
|
|
2115
2115
|
status: z.ZodEnum<{
|
|
2116
|
-
open: "open";
|
|
2117
2116
|
verified: "verified";
|
|
2117
|
+
open: "open";
|
|
2118
2118
|
addressed: "addressed";
|
|
2119
2119
|
dismissed: "dismissed";
|
|
2120
2120
|
deferred: "deferred";
|
|
@@ -2144,8 +2144,8 @@ declare const ReviewSchemas: {
|
|
|
2144
2144
|
headSha: z.ZodOptional<z.ZodString>;
|
|
2145
2145
|
}, z.core.$strip>;
|
|
2146
2146
|
status: z.ZodEnum<{
|
|
2147
|
-
open: "open";
|
|
2148
2147
|
verified: "verified";
|
|
2148
|
+
open: "open";
|
|
2149
2149
|
addressed: "addressed";
|
|
2150
2150
|
dismissed: "dismissed";
|
|
2151
2151
|
deferred: "deferred";
|
|
@@ -2190,8 +2190,8 @@ declare const ReviewSchemas: {
|
|
|
2190
2190
|
newCode: z.ZodString;
|
|
2191
2191
|
}, z.core.$strip>>;
|
|
2192
2192
|
status: z.ZodEnum<{
|
|
2193
|
-
open: "open";
|
|
2194
2193
|
verified: "verified";
|
|
2194
|
+
open: "open";
|
|
2195
2195
|
addressed: "addressed";
|
|
2196
2196
|
dismissed: "dismissed";
|
|
2197
2197
|
deferred: "deferred";
|
|
@@ -2247,8 +2247,8 @@ declare const ReviewSchemas: {
|
|
|
2247
2247
|
newCode: z.ZodString;
|
|
2248
2248
|
}, z.core.$strip>>;
|
|
2249
2249
|
status: z.ZodEnum<{
|
|
2250
|
-
open: "open";
|
|
2251
2250
|
verified: "verified";
|
|
2251
|
+
open: "open";
|
|
2252
2252
|
addressed: "addressed";
|
|
2253
2253
|
dismissed: "dismissed";
|
|
2254
2254
|
deferred: "deferred";
|
|
@@ -2262,8 +2262,8 @@ declare const ReviewSchemas: {
|
|
|
2262
2262
|
rawCommentId: z.ZodNullable<z.ZodNumber>;
|
|
2263
2263
|
}, z.core.$strip>;
|
|
2264
2264
|
previousStatus: z.ZodEnum<{
|
|
2265
|
-
open: "open";
|
|
2266
2265
|
verified: "verified";
|
|
2266
|
+
open: "open";
|
|
2267
2267
|
addressed: "addressed";
|
|
2268
2268
|
dismissed: "dismissed";
|
|
2269
2269
|
deferred: "deferred";
|
|
@@ -2607,8 +2607,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2607
2607
|
newCode: _$zod.ZodString;
|
|
2608
2608
|
}, _$zod_v4_core0.$strip>>;
|
|
2609
2609
|
status: _$zod.ZodEnum<{
|
|
2610
|
-
open: "open";
|
|
2611
2610
|
verified: "verified";
|
|
2611
|
+
open: "open";
|
|
2612
2612
|
addressed: "addressed";
|
|
2613
2613
|
dismissed: "dismissed";
|
|
2614
2614
|
deferred: "deferred";
|
|
@@ -2634,8 +2634,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2634
2634
|
headSha: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2635
2635
|
}, _$zod_v4_core0.$strip>;
|
|
2636
2636
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2637
|
-
open: "open";
|
|
2638
2637
|
verified: "verified";
|
|
2638
|
+
open: "open";
|
|
2639
2639
|
addressed: "addressed";
|
|
2640
2640
|
dismissed: "dismissed";
|
|
2641
2641
|
deferred: "deferred";
|
|
@@ -2677,8 +2677,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2677
2677
|
newCode: _$zod.ZodString;
|
|
2678
2678
|
}, _$zod_v4_core0.$strip>>;
|
|
2679
2679
|
status: _$zod.ZodEnum<{
|
|
2680
|
-
open: "open";
|
|
2681
2680
|
verified: "verified";
|
|
2681
|
+
open: "open";
|
|
2682
2682
|
addressed: "addressed";
|
|
2683
2683
|
dismissed: "dismissed";
|
|
2684
2684
|
deferred: "deferred";
|
|
@@ -2725,8 +2725,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2725
2725
|
}>;
|
|
2726
2726
|
id: _$zod.ZodString;
|
|
2727
2727
|
status: _$zod.ZodEnum<{
|
|
2728
|
-
open: "open";
|
|
2729
2728
|
verified: "verified";
|
|
2729
|
+
open: "open";
|
|
2730
2730
|
addressed: "addressed";
|
|
2731
2731
|
dismissed: "dismissed";
|
|
2732
2732
|
deferred: "deferred";
|
|
@@ -2790,8 +2790,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2790
2790
|
newCode: _$zod.ZodString;
|
|
2791
2791
|
}, _$zod_v4_core0.$strip>>;
|
|
2792
2792
|
status: _$zod.ZodEnum<{
|
|
2793
|
-
open: "open";
|
|
2794
2793
|
verified: "verified";
|
|
2794
|
+
open: "open";
|
|
2795
2795
|
addressed: "addressed";
|
|
2796
2796
|
dismissed: "dismissed";
|
|
2797
2797
|
deferred: "deferred";
|
|
@@ -2816,8 +2816,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2816
2816
|
headSha: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2817
2817
|
}, _$zod_v4_core0.$strip>;
|
|
2818
2818
|
status: _$zod.ZodEnum<{
|
|
2819
|
-
open: "open";
|
|
2820
2819
|
verified: "verified";
|
|
2820
|
+
open: "open";
|
|
2821
2821
|
addressed: "addressed";
|
|
2822
2822
|
dismissed: "dismissed";
|
|
2823
2823
|
deferred: "deferred";
|
|
@@ -2862,8 +2862,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2862
2862
|
newCode: _$zod.ZodString;
|
|
2863
2863
|
}, _$zod_v4_core0.$strip>>;
|
|
2864
2864
|
status: _$zod.ZodEnum<{
|
|
2865
|
-
open: "open";
|
|
2866
2865
|
verified: "verified";
|
|
2866
|
+
open: "open";
|
|
2867
2867
|
addressed: "addressed";
|
|
2868
2868
|
dismissed: "dismissed";
|
|
2869
2869
|
deferred: "deferred";
|
|
@@ -2914,8 +2914,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2914
2914
|
newCode: _$zod.ZodString;
|
|
2915
2915
|
}, _$zod_v4_core0.$strip>>;
|
|
2916
2916
|
status: _$zod.ZodEnum<{
|
|
2917
|
-
open: "open";
|
|
2918
2917
|
verified: "verified";
|
|
2918
|
+
open: "open";
|
|
2919
2919
|
addressed: "addressed";
|
|
2920
2920
|
dismissed: "dismissed";
|
|
2921
2921
|
deferred: "deferred";
|
|
@@ -2929,8 +2929,8 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2929
2929
|
rawCommentId: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
2930
2930
|
}, _$zod_v4_core0.$strip>;
|
|
2931
2931
|
previousStatus: _$zod.ZodEnum<{
|
|
2932
|
-
open: "open";
|
|
2933
2932
|
verified: "verified";
|
|
2933
|
+
open: "open";
|
|
2934
2934
|
addressed: "addressed";
|
|
2935
2935
|
dismissed: "dismissed";
|
|
2936
2936
|
deferred: "deferred";
|
|
@@ -3059,8 +3059,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3059
3059
|
newCode: _$zod.ZodString;
|
|
3060
3060
|
}, _$zod_v4_core0.$strip>>;
|
|
3061
3061
|
status: _$zod.ZodEnum<{
|
|
3062
|
-
open: "open";
|
|
3063
3062
|
verified: "verified";
|
|
3063
|
+
open: "open";
|
|
3064
3064
|
addressed: "addressed";
|
|
3065
3065
|
dismissed: "dismissed";
|
|
3066
3066
|
deferred: "deferred";
|
|
@@ -3086,8 +3086,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3086
3086
|
headSha: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3087
3087
|
}, _$zod_v4_core0.$strip>;
|
|
3088
3088
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3089
|
-
open: "open";
|
|
3090
3089
|
verified: "verified";
|
|
3090
|
+
open: "open";
|
|
3091
3091
|
addressed: "addressed";
|
|
3092
3092
|
dismissed: "dismissed";
|
|
3093
3093
|
deferred: "deferred";
|
|
@@ -3129,8 +3129,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3129
3129
|
newCode: _$zod.ZodString;
|
|
3130
3130
|
}, _$zod_v4_core0.$strip>>;
|
|
3131
3131
|
status: _$zod.ZodEnum<{
|
|
3132
|
-
open: "open";
|
|
3133
3132
|
verified: "verified";
|
|
3133
|
+
open: "open";
|
|
3134
3134
|
addressed: "addressed";
|
|
3135
3135
|
dismissed: "dismissed";
|
|
3136
3136
|
deferred: "deferred";
|
|
@@ -3177,8 +3177,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3177
3177
|
}>;
|
|
3178
3178
|
id: _$zod.ZodString;
|
|
3179
3179
|
status: _$zod.ZodEnum<{
|
|
3180
|
-
open: "open";
|
|
3181
3180
|
verified: "verified";
|
|
3181
|
+
open: "open";
|
|
3182
3182
|
addressed: "addressed";
|
|
3183
3183
|
dismissed: "dismissed";
|
|
3184
3184
|
deferred: "deferred";
|
|
@@ -3242,8 +3242,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3242
3242
|
newCode: _$zod.ZodString;
|
|
3243
3243
|
}, _$zod_v4_core0.$strip>>;
|
|
3244
3244
|
status: _$zod.ZodEnum<{
|
|
3245
|
-
open: "open";
|
|
3246
3245
|
verified: "verified";
|
|
3246
|
+
open: "open";
|
|
3247
3247
|
addressed: "addressed";
|
|
3248
3248
|
dismissed: "dismissed";
|
|
3249
3249
|
deferred: "deferred";
|
|
@@ -3268,8 +3268,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3268
3268
|
headSha: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3269
3269
|
}, _$zod_v4_core0.$strip>;
|
|
3270
3270
|
status: _$zod.ZodEnum<{
|
|
3271
|
-
open: "open";
|
|
3272
3271
|
verified: "verified";
|
|
3272
|
+
open: "open";
|
|
3273
3273
|
addressed: "addressed";
|
|
3274
3274
|
dismissed: "dismissed";
|
|
3275
3275
|
deferred: "deferred";
|
|
@@ -3314,8 +3314,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3314
3314
|
newCode: _$zod.ZodString;
|
|
3315
3315
|
}, _$zod_v4_core0.$strip>>;
|
|
3316
3316
|
status: _$zod.ZodEnum<{
|
|
3317
|
-
open: "open";
|
|
3318
3317
|
verified: "verified";
|
|
3318
|
+
open: "open";
|
|
3319
3319
|
addressed: "addressed";
|
|
3320
3320
|
dismissed: "dismissed";
|
|
3321
3321
|
deferred: "deferred";
|
|
@@ -3366,8 +3366,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3366
3366
|
newCode: _$zod.ZodString;
|
|
3367
3367
|
}, _$zod_v4_core0.$strip>>;
|
|
3368
3368
|
status: _$zod.ZodEnum<{
|
|
3369
|
-
open: "open";
|
|
3370
3369
|
verified: "verified";
|
|
3370
|
+
open: "open";
|
|
3371
3371
|
addressed: "addressed";
|
|
3372
3372
|
dismissed: "dismissed";
|
|
3373
3373
|
deferred: "deferred";
|
|
@@ -3381,8 +3381,8 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3381
3381
|
rawCommentId: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
3382
3382
|
}, _$zod_v4_core0.$strip>;
|
|
3383
3383
|
previousStatus: _$zod.ZodEnum<{
|
|
3384
|
-
open: "open";
|
|
3385
3384
|
verified: "verified";
|
|
3385
|
+
open: "open";
|
|
3386
3386
|
addressed: "addressed";
|
|
3387
3387
|
dismissed: "dismissed";
|
|
3388
3388
|
deferred: "deferred";
|
|
@@ -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-DfJNJYPV.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-CVx7li6B2.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-DfJNJYPV.mjs";
|
|
3
3
|
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-Bvjvpwhn.mjs";
|
|
4
4
|
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-DcG3r0VL.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-DQbcfjIb2.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-CVx7li6B2.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{C as n}from"./schemas-FiFC_DI6.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=r.enum([`link`,`summary`,`full`]),o=r.object({artifactId:r.string().min(1).optional(),url:r.string().min(1).optional(),label:r.string().min(1)}),s=r.object({id:r.string().min(1),kind:r.string().min(1),revision:r.string().min(1),status:r.string().min(1).optional()}),c=r.object({breadcrumbs:r.array(o),related:r.array(o)}),l=r.object({dashboard:r.string().min(1).optional(),materialized:r.string().min(1).optional()}),u=r.object({type:r.literal(`summary`),title:r.string().min(1),text:r.string().min(1)}),d=r.object({type:r.literal(`properties`),title:r.string().min(1),rows:r.array(r.object({label:r.string().min(1),value:r.string()}))}),f=r.object({type:r.literal(`table`),title:r.string().min(1),columns:r.array(r.string().min(1)),rows:r.array(r.object({cells:r.array(r.string()),link:o.optional()}))}),p=r.object({type:r.literal(`relations`),title:r.string().min(1),groups:r.array(r.object({type:r.string().min(1),items:r.array(o)}))}),m=r.object({type:r.literal(`evidence`),title:r.string().min(1),items:r.array(r.object({kind:r.string().min(1),id:r.string().min(1),locator:r.string().min(1).optional()}))}),h=r.object({type:r.literal(`raw`),title:r.string().min(1),json:t}),g=r.object({type:r.literal(`code`),title:r.string().min(1),language:r.string().min(1),content:r.string()}),_=r.object({type:r.literal(`diagram`),title:r.string().min(1),notation:r.literal(`mermaid`),source:r.string().min(1)}),v=r.discriminatedUnion(`type`,[u,d,f,p,m,h,g,_]),y=r.object({title:r.string().min(1),artifact:s,navigation:c,sections:r.array(v),links:l}),b=e,x=r.object({level:a,params:b.optional()}),S=r.object({kind:r.literal(`entry`),via:r.string().min(1).optional(),collection:r.string().min(1).optional()});function C(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:r.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const w=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1),as:a.optional()}),S.extend({title:r.string().min(1).optional(),hostRelation:r.string().min(1).optional()}).superRefine(C(`affordance`))]),T=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1)}),S.superRefine(C(`request`))]);function E(e){return e}const D=r.enum([`title`,`summary`]),O=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`label`),prefix:r.string().min(1).optional()}),r.object({kind:r.literal(`field`),name:r.string().min(1),fieldId:r.string().min(1).optional()}),r.object({kind:r.literal(`issue-type`),name:r.string().min(1),typeId:r.string().min(1).optional()}),r.object({kind:r.literal(`body-fragment`),slot:r.string().min(1)}),r.object({kind:r.literal(`comment`),template:r.string().min(1)})]),k=r.object({id:r.string().min(1),provider:r.string().min(1),namespace:r.string().min(1),target:O,appliesTo:r.array(r.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:r.record(r.string(),r.string()).optional(),description:r.string().min(1).optional(),params:e.optional()}),A=r.enum([`status`,`workflow`,`priority`]),j=r.object({path:r.string().min(1),semantic:A.optional(),fromLevel:a.optional(),viewRole:D.optional()}),M=r.object({mode:r.enum([`none`,`surface`,`comment`]),defaultRole:r.enum([`workpiece`,`artifact`]).optional(),semanticEvents:r.array(r.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:r.array(j).optional(),affordances:r.array(w).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,i=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&i++;n>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),i>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),N=r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),externalUrl:r.string().optional(),surfaceRole:r.enum([`workpiece`,`artifact`]),lastSyncedRevision:r.string().optional(),metadata:r.record(r.string(),r.unknown()).optional()}),P=x.extend({ref:n,affordance:T}),F=r.discriminatedUnion(`status`,[r.object({status:r.literal(`ok`),view:y,builderVersion:r.number().int().positive(),sourceRevision:r.string().min(1)}),r.object({status:r.literal(`artifact-not-found`),view:r.null()}),r.object({status:r.literal(`not-rendered`),view:r.null()})]),I={"surfaceBinding.register":{request:k,response:r.object({registered:r.boolean()})},"surfaceBinding.list":{request:r.object({id:r.string().min(1).optional(),provider:r.string().min(1).optional(),namespace:r.string().min(1).optional()}),response:r.object({bindings:r.array(k)})},"surfaceBinding.changed":r.object({id:r.string().min(1),provider:r.string().min(1)}),"ref.changed":r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),operation:r.enum([`upserted`,`deleted`]),origin:r.enum([`factory`,`external`]).optional()}),"capability.resolved":r.object({provider:r.string().min(1),surface:r.string().min(1),capabilities:r.record(r.string().min(1),r.boolean()),degraded:r.boolean()}),"artifact.view.resolve":{request:P,response:F}},L=i(`materialization`,I),R=L.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)}})}}export{v as A,a as C,d as D,c as E,l as M,f as N,h as O,s as S,y as T,x as _,I as a,_ as b,M as c,D as d,k as f,b as g,T as h,L as i,u as j,p as k,j as l,w as m,P as n,R as o,O as p,F as r,N as s,z as t,A as u,E as v,o as w,m as x,g as y};
|
|
@@ -67,8 +67,8 @@ declare const ExecutionTargetNamespace: _$_makaio_core0.BusNamespaceDefinition<"
|
|
|
67
67
|
name: _$zod.ZodString;
|
|
68
68
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
69
69
|
enabled: _$zod.ZodBoolean;
|
|
70
|
-
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
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;
|
|
@@ -338,8 +338,8 @@ declare const ExecutionTargetSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
338
338
|
name: _$zod.ZodString;
|
|
339
339
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
340
|
enabled: _$zod.ZodBoolean;
|
|
341
|
-
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
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;
|
|
@@ -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
|
}>;
|
|
@@ -2032,15 +2032,15 @@ declare const MessageStorageNamespace$1: {
|
|
|
2032
2032
|
agentId: never;
|
|
2033
2033
|
adapterSessionId: never;
|
|
2034
2034
|
turnId: string | null;
|
|
2035
|
-
limit: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
2040
|
-
emitEvent: never;
|
|
2041
2040
|
after: never;
|
|
2042
|
-
includeAfter: never;
|
|
2043
2041
|
order: never;
|
|
2042
|
+
emitEvent: never;
|
|
2043
|
+
includeAfter: never;
|
|
2044
2044
|
} | undefined;
|
|
2045
2045
|
};
|
|
2046
2046
|
//#endregion
|
package/dist/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-DTipWd-i.mjs";import{t}from"./ajv-Dtk5hCZS.mjs";import{t as n}from"./2020-Bl3Yx3In.mjs";import{t as r}from"./dist-CfANkKSb.mjs";import{canonicalStringify as i}from"@makaio/framework/utils";import{ArtifactKindRegistrationSchema as a,ArtifactSubjects as o,ArtifactViewModelSchema as s,ArtifactViewResolveRequestSchema as c,MaterializationSubjects as l,dep as u,extensionToken as d}from"@makaio/framework/contracts";import{BaseService as f}from"@makaio/framework/service-base";import{ARTIFACT_VALUE_TYPE_KEYWORD as p,readArtifactTitle as m}from"@makaio/framework/contracts/artifact";import{MaterializationSubjects as h}from"@makaio/framework/contracts/materialization";var g=e(t(),1),_=e(n(),1),v=e(r(),1);function y(e){try{let t={allErrors:!0,strict:!1,strictSchema:!0},n=e.dataSchema.$schema===`https://json-schema.org/draft/2020-12/schema`?new _.default(t):new g.default(t);(0,v.default)(n),n.addKeyword({keyword:p,schemaType:`string`,valid:!0}),n.compile(e.dataSchema)}catch(t){throw Error(`Invalid data schema for artifact kind '${e.kind}' version '${e.schemaVersion}': ${t instanceof Error?t.message:String(t)}`,{cause:t})}}const b=[{type:`supersedes`,symmetry:`asymmetric`},{type:`contradicts`,symmetry:`symmetric`},{type:`derives_from`,symmetry:`asymmetric`},{type:`responds_to`,symmetry:`asymmetric`},{type:`contains`,symmetry:`asymmetric`},{type:`refines`,symmetry:`asymmetric`},{type:`scopes`,symmetry:`asymmetric`},{type:`references`,symmetry:`asymmetric`},{type:`evidenced_by`,symmetry:`asymmetric`}],x={extension:0,"factory-repo":1,"target-repo":2},S={source:`extension`,ownerKey:`extension:bus`};function C(e){return`${e.source}:${e.ownerKey}`}function w(e,t){return e.source===t.source&&e.ownerKey===t.ownerKey}function T(e){return structuredClone(e)}function E(e,t){return`${e}@${t}`}var D=class extends f{kinds=new Map;kindContributions=new Map;nextKindContributionOrder=0;relationTypes=new Map;constructor(e){super(e)}async onInit(){for(let e of b)this.relationTypes.set(e.type,e);this.registerHandler(o.kind.register,e=>{this.registerKind(e.payload),e.setResult({registered:!0})}),this.registerHandler(o.kind.list,e=>{let{kind:t}=e.payload,n=[...this.kinds.values()].filter(e=>!t||e.kind===t).map(T);e.setResult({kinds:n})}),this.registerHandler(o[`relation-type`].register,e=>{this.storeRelationType(e.payload),e.setResult({registered:!0})}),this.registerHandler(o[`relation-type`].list,e=>{let{type:t}=e.payload,n=[...this.relationTypes.values()].filter(e=>!t||e.type===t).map(T);e.setResult({relationTypes:n})})}compareKindContributions(e,t){let n=x[e.owner.source]-x[t.owner.source];return n===0?e.owner.source===`extension`?t.order-e.order:e.order-t.order:n}findSameTierRepoConflict(e,t,n){return[...e.values()].find(e=>!w(e.owner,t)&&e.owner.source===t.source&&t.source!==`extension`&&e.order<=n)}recomputeKindWinner(e){let t=this.kindContributions.get(e),n=this.kinds.get(e);if(t===void 0||t.size===0){this.kindContributions.delete(e),this.kinds.delete(e),this.emitKindChangedFromKey(e,n);return}let r;for(let e of t.values())(r===void 0||this.compareKindContributions(e,r)<0)&&(r=e);let i=r;this.kinds.set(e,T(i.registration)),JSON.stringify(n)!==JSON.stringify(i.registration)&&this.bus.emit(o.kind.changed,{kind:i.registration.kind,schemaVersion:i.registration.schemaVersion})}emitKindChangedFromKey(e,t){t!==void 0&&this.bus.emit(o.kind.changed,{kind:t.kind,schemaVersion:t.schemaVersion})}registerKind(e,t=S){e=a.parse(e),y(e);let n=E(e.kind,e.schemaVersion),r=this.kindContributions.get(n)??new Map,i=C(t),o=r.get(i),s=t.source===`extension`?this.nextKindContributionOrder:o?.order??this.nextKindContributionOrder,c=this.findSameTierRepoConflict(r,t,s);if(c!==void 0){console.warn(`[ArtifactSchemaRegistry] Artifact kind '${n}' is already registered by '${c.owner.ownerKey}' at the same priority; keeping the existing owner.`);return}r.set(i,{owner:t,registration:T(e),order:t.source===`extension`||o===void 0?this.nextKindContributionOrder++:o.order}),this.kindContributions.set(n,r),this.recomputeKindWinner(n)}deregisterKind(e,t,n=S){let r=E(e,t),i=this.kindContributions.get(r);i!==void 0&&(i.delete(C(n)),this.recomputeKindWinner(r))}replaceKindRegistrationsForOwner(e,t){let n=t.map(e=>a.parse(e));for(let e of n)y(e);let r=new Set,i=C(e),o=new Map;for(let[e,t]of this.kindContributions.entries()){let n=t.get(i);n!==void 0&&(o.set(e,n.order),t.delete(i),r.add(e))}for(let t of n){let n=E(t.kind,t.schemaVersion),a=this.kindContributions.get(n)??new Map,s=e.source===`extension`?void 0:o.get(n),c=s??this.nextKindContributionOrder,l=this.findSameTierRepoConflict(a,e,c);if(l!==void 0){console.warn(`[ArtifactSchemaRegistry] Artifact kind '${n}' is already registered by '${l.owner.ownerKey}' at the same priority; keeping the existing owner.`);continue}a.set(i,{owner:e,registration:T(t),order:s??this.nextKindContributionOrder++}),this.kindContributions.set(n,a),r.add(n)}for(let e of r)this.recomputeKindWinner(e)}storeRelationType(e){let t=this.relationTypes.get(e.type);if(t){if(t.symmetry!==e.symmetry)throw Error(`Relation type '${e.type}' is already registered with different symmetry (existing: '${t.symmetry}', new: '${e.symmetry}')`);return}this.relationTypes.set(e.type,T(e))}getKind(e,t){let n=this.kinds.get(E(e,t));return n?T(n):void 0}getRelationType(e){let t=this.relationTypes.get(e);return t?T(t):void 0}onDestroy(){this.kinds.clear(),this.kindContributions.clear(),this.relationTypes.clear(),this.nextKindContributionOrder=0}};const O=d(`artifact-schema-registry`),k={name:O.name,displayName:`Artifact Schema Registry`,version:`0.1.0`,critical:!0,create:e=>new D(e.bus)};function A(e,t){return JSON.stringify([e,t])}function j(e){return Object.freeze({kind:e.kind,schemaVersion:e.schemaVersion,version:e.version,build:e.build})}var M=class extends Error{key;incomingOwner;existingOwner;constructor(e,t,n){let r=t===n?`Duplicate builder key '${e}' within owner '${t}'`:`Builder key '${e}' from owner '${t}' collides with owner '${n}'`;super(r),this.key=e,this.incomingOwner=t,this.existingOwner=n,this.name=`ArtifactViewBuilderCollisionError`}},N=class{owners=new Map;globalIndex=new Map;getBuilder(e,t){return this.globalIndex.get(A(e,t))?.builder}replaceBuildersForOwner(e,t){for(let n of t)if(!Number.isInteger(n.version)||n.version<1)throw Error(`Builder for '${A(n.kind,n.schemaVersion)}' from owner '${e}' has non-positive version ${String(n.version)}`);let n=new Map;for(let r of t){let t=A(r.kind,r.schemaVersion);if(n.has(t))throw new M(t,e,e);n.set(t,j(r))}for(let t of n.keys()){let n=this.globalIndex.get(t);if(n&&n.owner!==e)throw new M(t,e,n.owner)}n.size===0?this.owners.delete(e):this.owners.set(e,[...n.values()]),this.rebuildGlobalIndex()}removeBuildersForOwner(e){this.owners.has(e)&&(this.owners.delete(e),this.rebuildGlobalIndex())}getBuildersForOwner(e){let t=this.owners.get(e);if(t)return[...t]}clear(){this.owners.clear(),this.globalIndex.clear()}destroy(){this.clear()}rebuildGlobalIndex(){let e=new Map;for(let[t,n]of this.owners)for(let r of n){let n=A(r.kind,r.schemaVersion);e.set(n,{owner:t,builder:r})}this.globalIndex=e}};const P=5;function F(e){if(e.target.refClass===`artifact`)return{artifactId:e.target.id,label:`[${e.target.kind}] ${e.target.id}`}}function I(e){let t=new Map;for(let n of e){let e=F(n);if(!e)continue;let r=t.get(n.type)??[];r.push(e),t.set(n.type,r)}if(t.size!==0)return{type:`relations`,title:`Relations`,groups:[...t.entries()].map(([e,t])=>({type:e,items:t}))}}function L(e){let t=[],n=new Set;for(let r of e){let e=F(r);!e||n.has(e.artifactId)||(n.add(e.artifactId),t.push(e))}return{breadcrumbs:[],related:t}}function R(e){if(!e.confidence?.basis)return;let t=[];for(let n of e.confidence.basis){let e=n.evidenceRef;e?.refClass===`evidence`&&t.push({kind:e.kind,id:e.id,...e.locator?{locator:e.locator}:{}})}if(t.length!==0)return{type:`evidence`,title:`Evidence`,items:t}}function z(e,t,n){let r=[];if(n===`full`){let t=I(e.relations);t&&r.push(t);let n=R(e);n&&r.push(n)}return{title:m(e.data,t.titlePath),artifact:{id:e.id,kind:e.kind,revision:e.revision},navigation:L(e.relations),sections:r,links:{}}}var B=class extends f{schemaRegistry;builderRegistry;constructor(e,t,n){super(e),this.schemaRegistry=t,this.builderRegistry=n}async onInit(){this.registerHandler(l.artifact.view.resolve,async e=>{let{ref:t,level:n,affordance:r,params:i}=c.parse(e.payload),a=await this.resolve(t,n,r,i);e.setResult(a)})}async resolve(e,t,n,r){let i=await this.bus.requestOptional(o.resolve,{ref:e});if(!i.handled||i.data.artifact===null)return{status:`artifact-not-found`,view:null};let a=i.data.artifact,c=this.schemaRegistry.getKind(a.kind,a.schemaVersion);if(c===void 0)return{status:`not-rendered`,view:null};let l=this.builderRegistry.getBuilder(a.kind,a.schemaVersion);if(l===void 0)return{status:`not-rendered`,view:null};let u=z(a,c,t),d=u.sections,f=u.navigation,p=l.version,m=await l.build({artifact:a,level:t,affordance:n,params:r,genericSections:u.sections,genericNavigation:u.navigation,relations:a.relations});if(m!==void 0){if(`render`in m&&m.render===!1)return{status:`not-rendered`,view:null};`sections`in m&&(d=m.sections??d),`navigation`in m&&(f=m.navigation??f)}let h={title:u.title,artifact:u.artifact,navigation:f,sections:[...d],links:u.links};return{status:`ok`,view:s.parse(h),builderVersion:p,sourceRevision:e.revision}}};function V(e){return structuredClone(e)}var H=class extends f{bindings=new Map;constructor(e){super(e)}async onInit(){this.registerHandler(h.surfaceBinding.register,e=>{this.registerBinding(e.payload),e.setResult({registered:!0})}),this.registerHandler(h.surfaceBinding.list,e=>{let{id:t,provider:n,namespace:r}=e.payload,i=[...this.bindings.values()].filter(e=>(!t||e.id===t)&&(!n||e.provider===n)&&(!r||e.namespace===r)).map(V);e.setResult({bindings:i})})}registerBinding(e){let t=this.bindings.get(e.id);if(t){if(i(t)!==i(e))throw Error(`Surface binding '${e.id}' is already registered with a different definition`);return}this.bindings.set(e.id,V(e)),this.bus.emit(h.surfaceBinding.changed,{id:e.id,provider:e.provider})}deregisterBinding(e){let t=this.bindings.get(e);t&&(this.bindings.delete(e),this.bus.emit(h.surfaceBinding.changed,{id:e,provider:t.provider}))}getBinding(e){let t=this.bindings.get(e);return t?V(t):void 0}onDestroy(){this.bindings.clear()}},U=class{queues=new Map;activeLeases=new Map;pendingAcquisitions=new Set;authorizedRequests=new Map;consumedAuthorizedRequestIds=new Set;acceptingAcquisitions=!0;destroyPromise;destroy(){return this.acceptingAcquisitions=!1,this.destroyPromise??=this.drain(),this.destroyPromise}acquire(e){if(!this.acceptingAcquisitions)return Promise.reject(Error(`Materialization operation coordinator is destroyed`));let t=this.acquireAdmitted(e);return this.pendingAcquisitions.add(t),t.then(()=>this.pendingAcquisitions.delete(t),()=>this.pendingAcquisitions.delete(t)),t}async acquireAdmitted(e){let t=W(e),n=new Set,r=[];for(let e of G(t))r.push(await this.acquireKey(e)),n.add(e);let i={id:crypto.randomUUID(),scope:t},a,o=new Promise(e=>{a=e});return this.activeLeases.set(i.id,{lease:i,heldKeys:n,releases:r,settled:o,settle:a,released:!1}),i}release(e){let t=this.requireActiveLease(e);t.released=!0,this.activeLeases.delete(e.id);for(let e of t.releases.reverse())e();t.settle()}async extend(e,t){let n=this.requireActiveLease(e),r=W(t);if(r.artifactId!==e.scope.artifactId)throw Error(`A materialization operation lease cannot be extended to another artifact`);let i=G(r).filter(e=>!n.heldKeys.has(e)),a=[...n.heldKeys].filter(e=>e.startsWith(`provider:`)).at(-1);if(a&&i.some(e=>q(e,a)<0))throw Error(`Materialization operation lease extension violates lock ordering`);for(let e of i)n.releases.push(await this.acquireKey(e)),n.heldKeys.add(e)}async runExclusive(e,t,n,r){let i=W(e);if(n){if(this.consumedAuthorizedRequestIds.has(n))throw Error(`Materialization operation authorization has already been consumed`);let e=this.authorizedRequests.get(n);if(e){this.authorizedRequests.delete(n),this.consumedAuthorizedRequestIds.add(n);let a=this.activeLeases.get(e.leaseId);if(!r?.local||!a||e.scopeKey!==J(i))throw Error(`Materialization operation authorization does not match this scope`);return t(a.lease)}}let a=await this.acquire(i);try{return await t(a)}finally{this.release(a)}}async runAuthorizedRequest(e,t,n){let r=this.requireActiveLease(e),i=W(t);if(!G(i).every(e=>r.heldKeys.has(e)))throw Error(`Materialization operation authorization requires a lease for the full scope`);let a=crypto.randomUUID();this.authorizedRequests.set(a,{leaseId:e.id,scopeKey:J(i)});try{return await n(a)}finally{this.authorizedRequests.delete(a),this.consumedAuthorizedRequestIds.delete(a)}}requireActiveLease(e){let t=this.activeLeases.get(e.id);if(!t||t.released||t.lease!==e)throw Error(`Materialization operation lease is no longer active`);return t}async acquireKey(e){let t=this.queues.get(e)??Promise.resolve(),n,r=new Promise(e=>{n=e}),i=t.then(()=>r);return this.queues.set(e,i),await t,()=>{n(),this.queues.get(e)===i&&this.queues.delete(e)}}async drain(){for(;this.pendingAcquisitions.size>0||this.activeLeases.size>0;)await Promise.allSettled([...this.pendingAcquisitions,...[...this.activeLeases.values()].map(e=>e.settled)])}};function W(e){if(!e.artifactId)throw Error(`Materialization operation scope requires an artifactId`);let t=[...new Map((e.providerObjects??[]).map(e=>[K(e),e])).values()].sort((e,t)=>q(K(e),K(t)));return t.length>0?{artifactId:e.artifactId,providerObjects:t}:{artifactId:e.artifactId}}function G(e){return[`artifact:${e.artifactId}`,...(e.providerObjects??[]).map(K)]}function K(e){if(!e.provider||!e.externalId)throw Error(`Materialization provider objects require provider and externalId`);return`provider:${JSON.stringify([e.provider,e.externalId])}`}function q(e,t){return e===t?0:e<t?-1:1}function J(e){return JSON.stringify(G(e))}const Y=d(`surface-binding-registry`),X=d(`artifact-view-builder-registry`),Z=d(`artifact-view-service`),Q=d(`materialization-operation-coordinator`),$={name:Q.name,displayName:`Materialization Operation Coordinator`,version:`0.1.0`,critical:!0,create:()=>new U},ee={name:Y.name,displayName:`Surface Binding Registry`,version:`0.1.0`,critical:!0,create:e=>new H(e.bus)},te={name:X.name,displayName:`Artifact View Builder Registry`,version:`0.1.0`,critical:!0,create:()=>new N},ne={name:Z.name,displayName:`Artifact View Service`,version:`0.1.0`,critical:!0,dependencies:[u(O.name),u(X.name)],create:e=>{let t=e.getService(O),n=e.getService(X);if(t===void 0)throw Error(`ArtifactSchemaRegistry is not available for ArtifactViewService`);if(n===void 0)throw Error(`ArtifactViewBuilderRegistry is not available for ArtifactViewService`);return new B(e.bus,t,n)}};export{k as _,te as a,ee as c,B as d,P as f,O as g,N as h,Y as i,U as l,M as m,Z as n,ne as o,z as p,Q as r,$ as s,X as t,H as u,D as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./json-value-DM-EjTC1.mjs";import{t}from"./zod-json-schema-
|
|
1
|
+
import{a as e}from"./json-value-DM-EjTC1.mjs";import{t}from"./zod-json-schema-B1mZz7S4.mjs";import{z as n}from"zod";const r=n.object({kind:n.string().min(1),description:n.string().min(1),parameterSchema:e}),i=n.discriminatedUnion(`success`,[n.object({success:n.literal(!0)}),n.object({success:n.literal(!1),error:n.object({message:n.string()})})]);function a(e){return e}function o(e){let{kind:n,description:i,parameterSchema:a,handler:o}=e,s=r.parse({kind:n,description:i,parameterSchema:t(a,`input`)});return{kind:n,description:i,parameterSchema:a,handler:o,toDescriptor:()=>structuredClone(s)}}export{i,a as n,r,o as t};
|
|
@@ -45,17 +45,17 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
|
|
|
45
45
|
declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
50
48
|
model: z.ZodOptional<z.ZodString>;
|
|
49
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
adapterName: z.ZodString;
|
|
51
51
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
52
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
53
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
54
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
55
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
55
56
|
fork: "fork";
|
|
56
57
|
fresh: "fresh";
|
|
57
58
|
}>>;
|
|
58
|
-
adapterName: z.ZodString;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
|
|
61
61
|
/**
|
|
@@ -130,17 +130,17 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
135
133
|
model: z.ZodOptional<z.ZodString>;
|
|
134
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
adapterName: z.ZodString;
|
|
136
136
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
137
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
138
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
139
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
140
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
140
141
|
fork: "fork";
|
|
141
142
|
fresh: "fresh";
|
|
142
143
|
}>>;
|
|
143
|
-
adapterName: z.ZodString;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
response: z.ZodObject<{
|
|
146
146
|
id: z.ZodString;
|