@makaio/framework 1.0.0-dev-1790248497521 → 1.0.0-dev-1790535947927
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapters/claude/index.d.mts +24 -24
- package/dist/artifact-C4J_FDq8.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/bus-DzEgIHGt.mjs +9 -0
- package/dist/clients/index.d.mts +5 -5
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +46 -46
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{extension-C6ANjR33.mjs → extension-BOMfXdko.mjs} +1 -1
- package/dist/{index-D5Lw1UsO.d.mts → index-B1iXL1pW.d.mts} +8 -8
- package/dist/{index-DDCixELI.d.mts → index-BUxs65tf.d.mts} +1 -1
- package/dist/{index-rkN_9bde.d.mts → index-BVN64wQx.d.mts} +24 -24
- package/dist/{index-Bon00c4i.d.mts → index-Bc4u4rD8.d.mts} +5 -5
- package/dist/{index-CEX9qfLa.d.mts → index-Bgz81LHZ.d.mts} +1 -1
- package/dist/{index-BrMihjbI.d.mts → index-CEy4pCZ0.d.mts} +76 -76
- package/dist/{index-DJLRXASA.d.mts → index-CMsQnCAu.d.mts} +38 -38
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-Dcwee5Cl.d.mts → index-CWry0rks.d.mts} +195 -89
- package/dist/{index-6UlianLY2.d.mts → index-CnQw9he92.d.mts} +8 -8
- package/dist/{index-CydQ1dLS2.d.mts → index-DIOmmpkx2.d.mts} +6 -3
- package/dist/{index-C4VB63lu.d.mts → index-DPc-Lstu.d.mts} +95 -77
- package/dist/{index-D5BLD2Pw.d.mts → index-DqN1u0Y2.d.mts} +6 -6
- package/dist/{index-LCumcYK12.d.mts → index-DzOTNzZv2.d.mts} +38 -38
- package/dist/{index-wGlFWRXg.d.mts → index-aAo9ugCm.d.mts} +4 -4
- package/dist/{index-QgSmUedN.d.mts → index-lSpH5lvV.d.mts} +5 -5
- package/dist/{index-BZQ3OviE.d.mts → index-oE2q0pTG.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +2 -2
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kind-registration-DdbhhvaT.mjs +1 -0
- package/dist/{materialization-CIrHHspa.mjs → materialization-CxV6fpuB.mjs} +1 -1
- package/dist/{namespace-C5tKjqgb.d.mts → namespace-B9iQN3FQ.d.mts} +4 -4
- package/dist/{namespace-BEi98VfQ.d.mts → namespace-Bz0ZDWhE.d.mts} +18 -18
- package/dist/{namespace-D8oTiLLo.d.mts → namespace-C1-ZAKEG.d.mts} +6 -6
- package/dist/{namespace-D6W4Erwp.d.mts → namespace-DAzOxaux.d.mts} +2 -2
- package/dist/{package-BswWlFSn.d.mts → package-DT1Jaweg.d.mts} +2 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CU2NE5Lg.d.mts → schemas-B-2yBaGk.d.mts} +11 -7
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-CrOeGZHg.d.mts → schemas-Dec5VtBU.d.mts} +10 -10
- package/dist/{schemas-__oTCzF6.d.mts → schemas-Dyp3rHZ7.d.mts} +4 -4
- package/dist/schemas-W3nT06vH.mjs +1 -0
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +25 -25
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-CSN6QoMp.d.mts → transition-DH313MFE.d.mts} +1 -1
- package/dist/{types-BP_P1izV.d.mts → types-qna5Bcs8.d.mts} +16 -16
- package/dist/{view-builder-2cR7vI7R.d.mts → view-builder-D6W7fBUv.d.mts} +8 -8
- package/dist/{worker-YKEWHrx5.mjs → worker-zHq43Iyk.mjs} +1 -1
- package/dist/{workflow-01evBylF.mjs → workflow-BFAraH3Y.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +18 -18
- package/dist/workflow-engine/package.d.mts +1 -1
- package/package.json +1 -1
- package/dist/artifact-DF2UJsjP.mjs +0 -1
- package/dist/bus-DgpPEPoM.mjs +0 -9
- package/dist/kind-registration-Dzfo6kyb.mjs +0 -1
- package/dist/schemas-CHM0wMq4.mjs +0 -1
|
@@ -6656,8 +6656,8 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
6656
6656
|
agentId: z.ZodString;
|
|
6657
6657
|
status: z.ZodEnum<{
|
|
6658
6658
|
completed: "completed";
|
|
6659
|
-
sent: "sent";
|
|
6660
6659
|
acknowledged: "acknowledged";
|
|
6660
|
+
sent: "sent";
|
|
6661
6661
|
}>;
|
|
6662
6662
|
timestamp: z.ZodNumber;
|
|
6663
6663
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -6682,8 +6682,8 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
6682
6682
|
agentId: z.ZodString;
|
|
6683
6683
|
status: z.ZodEnum<{
|
|
6684
6684
|
completed: "completed";
|
|
6685
|
-
sent: "sent";
|
|
6686
6685
|
acknowledged: "acknowledged";
|
|
6686
|
+
sent: "sent";
|
|
6687
6687
|
}>;
|
|
6688
6688
|
timestamp: z.ZodNumber;
|
|
6689
6689
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -6770,7 +6770,7 @@ declare const MessageRoutingNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
6770
6770
|
tableName: "message_routing";
|
|
6771
6771
|
dataType: "string";
|
|
6772
6772
|
columnType: "SQLiteText";
|
|
6773
|
-
data: "completed" | "
|
|
6773
|
+
data: "completed" | "acknowledged" | "sent";
|
|
6774
6774
|
driverParam: string;
|
|
6775
6775
|
notNull: true;
|
|
6776
6776
|
hasDefault: false;
|
|
@@ -6841,8 +6841,8 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
6841
6841
|
agentId: z.ZodString;
|
|
6842
6842
|
status: z.ZodEnum<{
|
|
6843
6843
|
completed: "completed";
|
|
6844
|
-
sent: "sent";
|
|
6845
6844
|
acknowledged: "acknowledged";
|
|
6845
|
+
sent: "sent";
|
|
6846
6846
|
}>;
|
|
6847
6847
|
timestamp: z.ZodNumber;
|
|
6848
6848
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -6867,8 +6867,8 @@ declare const MessageRoutingSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
6867
6867
|
agentId: z.ZodString;
|
|
6868
6868
|
status: z.ZodEnum<{
|
|
6869
6869
|
completed: "completed";
|
|
6870
|
-
sent: "sent";
|
|
6871
6870
|
acknowledged: "acknowledged";
|
|
6871
|
+
sent: "sent";
|
|
6872
6872
|
}>;
|
|
6873
6873
|
timestamp: z.ZodNumber;
|
|
6874
6874
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -7012,7 +7012,7 @@ declare const messageRouting: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<
|
|
|
7012
7012
|
tableName: "message_routing";
|
|
7013
7013
|
dataType: "string";
|
|
7014
7014
|
columnType: "SQLiteText";
|
|
7015
|
-
data: "completed" | "
|
|
7015
|
+
data: "completed" | "acknowledged" | "sent";
|
|
7016
7016
|
driverParam: string;
|
|
7017
7017
|
notNull: true;
|
|
7018
7018
|
hasDefault: false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-
|
|
2
|
-
import { o as Message$1 } from "./index-
|
|
1
|
+
import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-qna5Bcs8.mjs";
|
|
2
|
+
import { o as Message$1 } from "./index-BUxs65tf.mjs";
|
|
3
3
|
import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-DV3IipmH.mjs";
|
|
4
4
|
import * as _$zod from "zod";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -3155,8 +3155,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3155
3155
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
3156
3156
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3157
3157
|
intent: _$zod.ZodEnum<{
|
|
3158
|
-
resume: "resume";
|
|
3159
3158
|
fork: "fork";
|
|
3159
|
+
resume: "resume";
|
|
3160
3160
|
}>;
|
|
3161
3161
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
3162
3162
|
reason: _$zod.ZodEnum<{
|
|
@@ -3181,8 +3181,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3181
3181
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3182
3182
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3183
3183
|
intent: _$zod.ZodEnum<{
|
|
3184
|
-
resume: "resume";
|
|
3185
3184
|
fork: "fork";
|
|
3185
|
+
resume: "resume";
|
|
3186
3186
|
}>;
|
|
3187
3187
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
3188
3188
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3828,8 +3828,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3828
3828
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
3829
3829
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3830
3830
|
intent: _$zod.ZodEnum<{
|
|
3831
|
-
resume: "resume";
|
|
3832
3831
|
fork: "fork";
|
|
3832
|
+
resume: "resume";
|
|
3833
3833
|
}>;
|
|
3834
3834
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
3835
3835
|
reason: _$zod.ZodEnum<{
|
|
@@ -3854,8 +3854,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3854
3854
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3855
3855
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3856
3856
|
intent: _$zod.ZodEnum<{
|
|
3857
|
-
resume: "resume";
|
|
3858
3857
|
fork: "fork";
|
|
3858
|
+
resume: "resume";
|
|
3859
3859
|
}>;
|
|
3860
3860
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
3861
3861
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3958,8 +3958,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3958
3958
|
timestamp: _$zod.ZodNumber;
|
|
3959
3959
|
}, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3960
3960
|
intent: _$zod.ZodEnum<{
|
|
3961
|
-
resume: "resume";
|
|
3962
3961
|
fork: "fork";
|
|
3962
|
+
resume: "resume";
|
|
3963
3963
|
}>;
|
|
3964
3964
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
3965
3965
|
reason: _$zod.ZodEnum<{
|
|
@@ -3984,8 +3984,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
3984
3984
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3985
3985
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3986
3986
|
intent: _$zod.ZodEnum<{
|
|
3987
|
-
resume: "resume";
|
|
3988
3987
|
fork: "fork";
|
|
3988
|
+
resume: "resume";
|
|
3989
3989
|
}>;
|
|
3990
3990
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
3991
3991
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -4003,8 +4003,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
4003
4003
|
maxTokens: _$zod.ZodNumber;
|
|
4004
4004
|
percentage: _$zod.ZodNumber;
|
|
4005
4005
|
level: _$zod.ZodEnum<{
|
|
4006
|
-
ok: "ok";
|
|
4007
4006
|
warn: "warn";
|
|
4007
|
+
ok: "ok";
|
|
4008
4008
|
critical: "critical";
|
|
4009
4009
|
}>;
|
|
4010
4010
|
lastUpdatedAt: _$zod.ZodNumber;
|
|
@@ -4344,8 +4344,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
4344
4344
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
4345
4345
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
4346
4346
|
intent: _$zod.ZodEnum<{
|
|
4347
|
-
resume: "resume";
|
|
4348
4347
|
fork: "fork";
|
|
4348
|
+
resume: "resume";
|
|
4349
4349
|
}>;
|
|
4350
4350
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
4351
4351
|
reason: _$zod.ZodEnum<{
|
|
@@ -4370,8 +4370,8 @@ declare const SessionNamespace: _$_makaio_core0.BusNamespaceDefinition<"session"
|
|
|
4370
4370
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4371
4371
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
4372
4372
|
intent: _$zod.ZodEnum<{
|
|
4373
|
-
resume: "resume";
|
|
4374
4373
|
fork: "fork";
|
|
4374
|
+
resume: "resume";
|
|
4375
4375
|
}>;
|
|
4376
4376
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
4377
4377
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -8272,8 +8272,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
8272
8272
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
8273
8273
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
8274
8274
|
intent: _$zod.ZodEnum<{
|
|
8275
|
-
resume: "resume";
|
|
8276
8275
|
fork: "fork";
|
|
8276
|
+
resume: "resume";
|
|
8277
8277
|
}>;
|
|
8278
8278
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
8279
8279
|
reason: _$zod.ZodEnum<{
|
|
@@ -8298,8 +8298,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
8298
8298
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
8299
8299
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
8300
8300
|
intent: _$zod.ZodEnum<{
|
|
8301
|
-
resume: "resume";
|
|
8302
8301
|
fork: "fork";
|
|
8302
|
+
resume: "resume";
|
|
8303
8303
|
}>;
|
|
8304
8304
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
8305
8305
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -8945,8 +8945,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
8945
8945
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
8946
8946
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
8947
8947
|
intent: _$zod.ZodEnum<{
|
|
8948
|
-
resume: "resume";
|
|
8949
8948
|
fork: "fork";
|
|
8949
|
+
resume: "resume";
|
|
8950
8950
|
}>;
|
|
8951
8951
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
8952
8952
|
reason: _$zod.ZodEnum<{
|
|
@@ -8971,8 +8971,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
8971
8971
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
8972
8972
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
8973
8973
|
intent: _$zod.ZodEnum<{
|
|
8974
|
-
resume: "resume";
|
|
8975
8974
|
fork: "fork";
|
|
8975
|
+
resume: "resume";
|
|
8976
8976
|
}>;
|
|
8977
8977
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
8978
8978
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -9075,8 +9075,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
9075
9075
|
timestamp: _$zod.ZodNumber;
|
|
9076
9076
|
}, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
9077
9077
|
intent: _$zod.ZodEnum<{
|
|
9078
|
-
resume: "resume";
|
|
9079
9078
|
fork: "fork";
|
|
9079
|
+
resume: "resume";
|
|
9080
9080
|
}>;
|
|
9081
9081
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
9082
9082
|
reason: _$zod.ZodEnum<{
|
|
@@ -9101,8 +9101,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
9101
9101
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
9102
9102
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
9103
9103
|
intent: _$zod.ZodEnum<{
|
|
9104
|
-
resume: "resume";
|
|
9105
9104
|
fork: "fork";
|
|
9105
|
+
resume: "resume";
|
|
9106
9106
|
}>;
|
|
9107
9107
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
9108
9108
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -9120,8 +9120,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
9120
9120
|
maxTokens: _$zod.ZodNumber;
|
|
9121
9121
|
percentage: _$zod.ZodNumber;
|
|
9122
9122
|
level: _$zod.ZodEnum<{
|
|
9123
|
-
ok: "ok";
|
|
9124
9123
|
warn: "warn";
|
|
9124
|
+
ok: "ok";
|
|
9125
9125
|
critical: "critical";
|
|
9126
9126
|
}>;
|
|
9127
9127
|
lastUpdatedAt: _$zod.ZodNumber;
|
|
@@ -9461,8 +9461,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
9461
9461
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
9462
9462
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
9463
9463
|
intent: _$zod.ZodEnum<{
|
|
9464
|
-
resume: "resume";
|
|
9465
9464
|
fork: "fork";
|
|
9465
|
+
resume: "resume";
|
|
9466
9466
|
}>;
|
|
9467
9467
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
9468
9468
|
reason: _$zod.ZodEnum<{
|
|
@@ -9487,8 +9487,8 @@ declare const SessionSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
9487
9487
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
9488
9488
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
9489
9489
|
intent: _$zod.ZodEnum<{
|
|
9490
|
-
resume: "resume";
|
|
9491
9490
|
fork: "fork";
|
|
9491
|
+
resume: "resume";
|
|
9492
9492
|
}>;
|
|
9493
9493
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
9494
9494
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -11067,8 +11067,8 @@ declare const MessageStorageNamespace$1: ContractStorageNamespaceDefinition<"mes
|
|
|
11067
11067
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
11068
11068
|
}, z.core.$strip>], "type">>;
|
|
11069
11069
|
agentId: z.ZodOptional<z.ZodString>;
|
|
11070
|
-
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
11071
11070
|
turnId: z.ZodNullable<z.ZodString>;
|
|
11071
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
11072
11072
|
timestamp: z.ZodNumber;
|
|
11073
11073
|
contentText: z.ZodString;
|
|
11074
11074
|
adapterMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -11915,8 +11915,8 @@ declare const MessageStorageSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
11915
11915
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
11916
11916
|
}, z.core.$strip>], "type">>;
|
|
11917
11917
|
agentId: z.ZodOptional<z.ZodString>;
|
|
11918
|
-
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
11919
11918
|
turnId: z.ZodNullable<z.ZodString>;
|
|
11919
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
11920
11920
|
timestamp: z.ZodNumber;
|
|
11921
11921
|
contentText: z.ZodString;
|
|
11922
11922
|
adapterMessageId: z.ZodOptional<z.ZodString>;
|
|
@@ -13059,8 +13059,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13059
13059
|
type: z.ZodLiteral<"locality.degraded">;
|
|
13060
13060
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13061
13061
|
intent: z.ZodEnum<{
|
|
13062
|
-
resume: "resume";
|
|
13063
13062
|
fork: "fork";
|
|
13063
|
+
resume: "resume";
|
|
13064
13064
|
}>;
|
|
13065
13065
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
13066
13066
|
reason: z.ZodEnum<{
|
|
@@ -13085,8 +13085,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13085
13085
|
turnId: z.ZodOptional<z.ZodString>;
|
|
13086
13086
|
}, z.core.$strip>, z.ZodObject<{
|
|
13087
13087
|
intent: z.ZodEnum<{
|
|
13088
|
-
resume: "resume";
|
|
13089
13088
|
fork: "fork";
|
|
13089
|
+
resume: "resume";
|
|
13090
13090
|
}>;
|
|
13091
13091
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
13092
13092
|
foreignMachineId: z.ZodString;
|
|
@@ -13447,8 +13447,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13447
13447
|
type: z.ZodLiteral<"locality.degraded">;
|
|
13448
13448
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13449
13449
|
intent: z.ZodEnum<{
|
|
13450
|
-
resume: "resume";
|
|
13451
13450
|
fork: "fork";
|
|
13451
|
+
resume: "resume";
|
|
13452
13452
|
}>;
|
|
13453
13453
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
13454
13454
|
reason: z.ZodEnum<{
|
|
@@ -13473,8 +13473,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13473
13473
|
turnId: z.ZodOptional<z.ZodString>;
|
|
13474
13474
|
}, z.core.$strip>, z.ZodObject<{
|
|
13475
13475
|
intent: z.ZodEnum<{
|
|
13476
|
-
resume: "resume";
|
|
13477
13476
|
fork: "fork";
|
|
13477
|
+
resume: "resume";
|
|
13478
13478
|
}>;
|
|
13479
13479
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
13480
13480
|
foreignMachineId: z.ZodString;
|
|
@@ -13825,8 +13825,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13825
13825
|
type: z.ZodLiteral<"locality.degraded">;
|
|
13826
13826
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13827
13827
|
intent: z.ZodEnum<{
|
|
13828
|
-
resume: "resume";
|
|
13829
13828
|
fork: "fork";
|
|
13829
|
+
resume: "resume";
|
|
13830
13830
|
}>;
|
|
13831
13831
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
13832
13832
|
reason: z.ZodEnum<{
|
|
@@ -13851,8 +13851,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
13851
13851
|
turnId: z.ZodOptional<z.ZodString>;
|
|
13852
13852
|
}, z.core.$strip>, z.ZodObject<{
|
|
13853
13853
|
intent: z.ZodEnum<{
|
|
13854
|
-
resume: "resume";
|
|
13855
13854
|
fork: "fork";
|
|
13855
|
+
resume: "resume";
|
|
13856
13856
|
}>;
|
|
13857
13857
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
13858
13858
|
foreignMachineId: z.ZodString;
|
|
@@ -14217,8 +14217,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
14217
14217
|
type: z.ZodLiteral<"locality.degraded">;
|
|
14218
14218
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14219
14219
|
intent: z.ZodEnum<{
|
|
14220
|
-
resume: "resume";
|
|
14221
14220
|
fork: "fork";
|
|
14221
|
+
resume: "resume";
|
|
14222
14222
|
}>;
|
|
14223
14223
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
14224
14224
|
reason: z.ZodEnum<{
|
|
@@ -14243,8 +14243,8 @@ declare const SessionEventStorageNamespace$1: ContractStorageNamespaceDefinition
|
|
|
14243
14243
|
turnId: z.ZodOptional<z.ZodString>;
|
|
14244
14244
|
}, z.core.$strip>, z.ZodObject<{
|
|
14245
14245
|
intent: z.ZodEnum<{
|
|
14246
|
-
resume: "resume";
|
|
14247
14246
|
fork: "fork";
|
|
14247
|
+
resume: "resume";
|
|
14248
14248
|
}>;
|
|
14249
14249
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
14250
14250
|
foreignMachineId: z.ZodString;
|
|
@@ -14596,8 +14596,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
14596
14596
|
type: z.ZodLiteral<"locality.degraded">;
|
|
14597
14597
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14598
14598
|
intent: z.ZodEnum<{
|
|
14599
|
-
resume: "resume";
|
|
14600
14599
|
fork: "fork";
|
|
14600
|
+
resume: "resume";
|
|
14601
14601
|
}>;
|
|
14602
14602
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
14603
14603
|
reason: z.ZodEnum<{
|
|
@@ -14622,8 +14622,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
14622
14622
|
turnId: z.ZodOptional<z.ZodString>;
|
|
14623
14623
|
}, z.core.$strip>, z.ZodObject<{
|
|
14624
14624
|
intent: z.ZodEnum<{
|
|
14625
|
-
resume: "resume";
|
|
14626
14625
|
fork: "fork";
|
|
14626
|
+
resume: "resume";
|
|
14627
14627
|
}>;
|
|
14628
14628
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
14629
14629
|
foreignMachineId: z.ZodString;
|
|
@@ -14984,8 +14984,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
14984
14984
|
type: z.ZodLiteral<"locality.degraded">;
|
|
14985
14985
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14986
14986
|
intent: z.ZodEnum<{
|
|
14987
|
-
resume: "resume";
|
|
14988
14987
|
fork: "fork";
|
|
14988
|
+
resume: "resume";
|
|
14989
14989
|
}>;
|
|
14990
14990
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
14991
14991
|
reason: z.ZodEnum<{
|
|
@@ -15010,8 +15010,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
15010
15010
|
turnId: z.ZodOptional<z.ZodString>;
|
|
15011
15011
|
}, z.core.$strip>, z.ZodObject<{
|
|
15012
15012
|
intent: z.ZodEnum<{
|
|
15013
|
-
resume: "resume";
|
|
15014
15013
|
fork: "fork";
|
|
15014
|
+
resume: "resume";
|
|
15015
15015
|
}>;
|
|
15016
15016
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
15017
15017
|
foreignMachineId: z.ZodString;
|
|
@@ -15362,8 +15362,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
15362
15362
|
type: z.ZodLiteral<"locality.degraded">;
|
|
15363
15363
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15364
15364
|
intent: z.ZodEnum<{
|
|
15365
|
-
resume: "resume";
|
|
15366
15365
|
fork: "fork";
|
|
15366
|
+
resume: "resume";
|
|
15367
15367
|
}>;
|
|
15368
15368
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
15369
15369
|
reason: z.ZodEnum<{
|
|
@@ -15388,8 +15388,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
15388
15388
|
turnId: z.ZodOptional<z.ZodString>;
|
|
15389
15389
|
}, z.core.$strip>, z.ZodObject<{
|
|
15390
15390
|
intent: z.ZodEnum<{
|
|
15391
|
-
resume: "resume";
|
|
15392
15391
|
fork: "fork";
|
|
15392
|
+
resume: "resume";
|
|
15393
15393
|
}>;
|
|
15394
15394
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
15395
15395
|
foreignMachineId: z.ZodString;
|
|
@@ -15754,8 +15754,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
15754
15754
|
type: z.ZodLiteral<"locality.degraded">;
|
|
15755
15755
|
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15756
15756
|
intent: z.ZodEnum<{
|
|
15757
|
-
resume: "resume";
|
|
15758
15757
|
fork: "fork";
|
|
15758
|
+
resume: "resume";
|
|
15759
15759
|
}>;
|
|
15760
15760
|
verdictKind: z.ZodLiteral<"degrade">;
|
|
15761
15761
|
reason: z.ZodEnum<{
|
|
@@ -15780,8 +15780,8 @@ declare const SessionEventStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
15780
15780
|
turnId: z.ZodOptional<z.ZodString>;
|
|
15781
15781
|
}, z.core.$strip>, z.ZodObject<{
|
|
15782
15782
|
intent: z.ZodEnum<{
|
|
15783
|
-
resume: "resume";
|
|
15784
15783
|
fork: "fork";
|
|
15784
|
+
resume: "resume";
|
|
15785
15785
|
}>;
|
|
15786
15786
|
verdictKind: z.ZodLiteral<"foreign">;
|
|
15787
15787
|
foreignMachineId: z.ZodString;
|
|
@@ -146,6 +146,7 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
|
|
|
146
146
|
enabled: z.ZodArray<z.ZodString>;
|
|
147
147
|
disabled: z.ZodArray<z.ZodString>;
|
|
148
148
|
}, z.core.$strip>;
|
|
149
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
149
150
|
registryTools: z.ZodObject<{
|
|
150
151
|
enabled: z.ZodArray<z.ZodString>;
|
|
151
152
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -175,7 +176,6 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
|
|
|
175
176
|
"always-ask": "always-ask";
|
|
176
177
|
"full-access": "full-access";
|
|
177
178
|
}>>>;
|
|
178
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
179
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
180
180
|
reject: "reject";
|
|
181
181
|
"always-ask": "always-ask";
|
|
@@ -322,6 +322,7 @@ declare const HarnessSchemas: {
|
|
|
322
322
|
enabled: z.ZodArray<z.ZodString>;
|
|
323
323
|
disabled: z.ZodArray<z.ZodString>;
|
|
324
324
|
}, z.core.$strip>;
|
|
325
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
325
326
|
registryTools: z.ZodObject<{
|
|
326
327
|
enabled: z.ZodArray<z.ZodString>;
|
|
327
328
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -351,7 +352,6 @@ declare const HarnessSchemas: {
|
|
|
351
352
|
"always-ask": "always-ask";
|
|
352
353
|
"full-access": "full-access";
|
|
353
354
|
}>>>;
|
|
354
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
355
355
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
356
356
|
reject: "reject";
|
|
357
357
|
"always-ask": "always-ask";
|
|
@@ -765,6 +765,7 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
|
|
|
765
765
|
enabled: z.ZodArray<z.ZodString>;
|
|
766
766
|
disabled: z.ZodArray<z.ZodString>;
|
|
767
767
|
}, z.core.$strip>;
|
|
768
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
768
769
|
registryTools: z.ZodObject<{
|
|
769
770
|
enabled: z.ZodArray<z.ZodString>;
|
|
770
771
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -794,7 +795,6 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
|
|
|
794
795
|
"always-ask": "always-ask";
|
|
795
796
|
"full-access": "full-access";
|
|
796
797
|
}>>>;
|
|
797
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
798
798
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
799
799
|
reject: "reject";
|
|
800
800
|
"always-ask": "always-ask";
|
|
@@ -1208,6 +1208,7 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
|
|
|
1208
1208
|
enabled: z.ZodArray<z.ZodString>;
|
|
1209
1209
|
disabled: z.ZodArray<z.ZodString>;
|
|
1210
1210
|
}, z.core.$strip>;
|
|
1211
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1211
1212
|
registryTools: z.ZodObject<{
|
|
1212
1213
|
enabled: z.ZodArray<z.ZodString>;
|
|
1213
1214
|
disabled: z.ZodArray<z.ZodString>;
|
|
@@ -1237,7 +1238,6 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
|
|
|
1237
1238
|
"always-ask": "always-ask";
|
|
1238
1239
|
"full-access": "full-access";
|
|
1239
1240
|
}>>>;
|
|
1240
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
1241
|
approvalPolicy: z.ZodOptional<z.ZodEnum<{
|
|
1242
1242
|
reject: "reject";
|
|
1243
1243
|
"always-ask": "always-ask";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tr as ArtifactLifecycleHookRegistration$1, pr as AnyArtifactKindDefinition, wr as ArtifactLifecycleHookEvent } from "./index-CWry0rks.mjs";
|
|
2
2
|
import { l as JsonValue$1 } from "./json-value--pv1-OHx.mjs";
|
|
3
3
|
import { s as AdapterProviderAuth$1 } from "./adapter-binding-DF-j-XHg.mjs";
|
|
4
4
|
import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-DH84KOm9.mjs";
|
|
5
5
|
import { t as ExtensionAutomationTriggersContribution } from "./contribution-DTb65rRN.mjs";
|
|
6
|
-
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-
|
|
6
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-DH313MFE.mjs";
|
|
7
7
|
import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-OETFKaAL.mjs";
|
|
8
8
|
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-D2SO1tX-.mjs";
|
|
9
9
|
import { t as RequiredTimeoutConfig } from "./index-DOui-7u2.mjs";
|
|
10
|
-
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-
|
|
11
|
-
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-
|
|
10
|
+
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-qna5Bcs8.mjs";
|
|
11
|
+
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-BUxs65tf.mjs";
|
|
12
12
|
import { l as FacetNamespaceDefinition } from "./index-Bmb7jPIe2.mjs";
|
|
13
13
|
import { t as ExtensionReactionsContribution } from "./index-BRXETFym.mjs";
|
|
14
|
-
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-
|
|
14
|
+
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-D6W7fBUv.mjs";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
17
17
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-
|
|
1
|
+
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-Dyp3rHZ7.mjs";
|
|
2
2
|
import { ProviderContext, ResolvedProviderContext } from "@makaio/framework/contracts";
|
|
3
3
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
4
4
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as TransitionOutcome } from "../../index-
|
|
2
|
-
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-
|
|
1
|
+
import { d as TransitionOutcome } from "../../index-BVN64wQx.mjs";
|
|
2
|
+
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, l as ExtensionCoordinatorOptions, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../../index-Bgz81LHZ.mjs";
|
|
3
3
|
export { ContributionProcessor, ExtensionConfigResolution, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionOperatorConfigError, ExtensionRuntimeSurface, InstalledExtensionCatalogSource, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, SetEnabledResult, TransitionOutcome, coalesceExtensionOverrides, filterEligibleExtensions, resolveInstalledExtensionRecord };
|
package/dist/kernel/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-
|
|
2
|
-
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-
|
|
1
|
+
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, c as ExtensionSubjects, d as TransitionOutcome, g as ComponentState, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, v as ExtensionInfo, y as ExtensionInfoSchema } from "../index-BVN64wQx.mjs";
|
|
2
|
+
import { a as SetEnabledResult, c as ContributionProcessor, d as InstalledExtensionCatalogSource, f as KernelExtensionContext, h as RuntimeEnvironment, i as ExtensionCoordinator, m as RuntimeCapability, n as coalesceExtensionOverrides, o as ExtensionConfigResolution, p as KernelMakaioExtension, r as filterEligibleExtensions, s as ExtensionOperatorConfigError, t as resolveInstalledExtensionRecord, u as ExtensionRuntimeSurface } from "../index-Bgz81LHZ.mjs";
|
|
3
3
|
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-1jI3f9ir.mjs";
|
|
4
4
|
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-62OoZLGr.mjs";
|
|
5
5
|
import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-_OD_Nz3m.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-
|
|
1
|
+
import { C as ServiceInfoSchema, S as ServiceInfo, _ as ComponentStateSchema, a as InstalledExtensionRecord, b as ExtensionWarningEntry, c as ExtensionSubjects, d as TransitionOutcome, f as TransitionOutcomeSchema, g as ComponentState, h as ComponentInfoSchema, i as InstalledExtensionOriginSchema, l as SetEnabledReason, m as ComponentInfo, n as InstalledExtensionCatalogEntrySchema, o as InstalledExtensionRecordSchema, p as ComponentIdentitySchema, r as InstalledExtensionOrigin, s as ExtensionNamespace, t as InstalledExtensionCatalogEntry, u as SetEnabledReasonSchema, v as ExtensionInfo, x as ExtensionWarningEntrySchema, y as ExtensionInfoSchema } from "../../index-BVN64wQx.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, InstalledExtensionCatalogEntry, InstalledExtensionCatalogEntrySchema, InstalledExtensionOrigin, InstalledExtensionOriginSchema, InstalledExtensionRecord, InstalledExtensionRecordSchema, ServiceInfo, ServiceInfoSchema, SetEnabledReason, SetEnabledReasonSchema, TransitionOutcome, TransitionOutcomeSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./json-value-DM-EjTC1.mjs";import{a as t,n}from"./json-tree-Cmb_BzHr.mjs";import{z as r}from"zod";function i(e){return a(e)?e:void 0}function a(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function o(e,t){if(!a(e))return!1;let n=e.type;return n===t?!0:Array.isArray(n)&&n.length===1&&n[0]===t}const s=`[]`;function c(e,t){return Object.keys(t).length===0?e:e?t:!1}function l(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let n=e;for(let e of t.slice(2).split(`/`)){let t=i(n),r=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,r))return;n=t[r]}return n}function u(e,t){let n=t.$ref;if(typeof n!=`string`)return;let r=l(e,n);if(typeof r==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return r;let{$ref:n,...i}=t;return c(r,i)}let a=i(r);if(!a||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return a;let{$ref:o,...s}=t;return Object.keys(s).length===0?a:{...a,allOf:[s,...Array.isArray(a.allOf)?a.allOf:[]]}}function d(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function f(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function ee(e,t){let n=i(e.properties);if(!n||!Object.hasOwn(n,t))return;let r=n[t];return typeof r==`boolean`?r:i(r)}function p(e,t,n){if(typeof t.$ref==`string`){if(n.has(t.$ref))return;let r=u(e,t);return a(r)?p(e,r,new Set([...n,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:r,...o}=t,s={},c={},l=new Set;for(let t of[o,...r]){let r=i(t),a=r?p(e,r,n):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(s.type!==void 0&&s.type!==a.type)return;s.type=a.type}for(let e of[`items`,`prefixItems`])if(a[e]!==void 0){if(s[e]!==void 0)return;s[e]=a[e]}d(c,i(a.properties)??{});for(let e of f(a))l.add(e)}return{...s,properties:c,required:[...l]}}function te(e,t,n,r,i,a,o,s){if(a.has(n))return;let c=u(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?h(e,c,r,i,new Set([...a,n]),o,s):void 0}function ne(e,t,n,r){if(!o(t,`array`))return;let a=t.items;if(typeof a==`boolean`)return n.length===0?[a]:void 0;let s=i(a);return s?h(e,s,n,r):void 0}function m(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 h(e,t,n,r,a=new Set,s=!1,c=!1){if(typeof t.$ref==`string`){let i=t.$ref;return te(e,t,i,n,r,a,s,c)}let l=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,u=t[l];if(Array.isArray(u)){let{[l]:o,...d}=t,f=u.map(t=>{let o=i(t);if(!o)return;let{node:l,ref:u}=m(e,d,o);return h(e,l,n,r,u===void 0?a:new Set([...a,u]),s,c)});return f.every(e=>e!==void 0)?f.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let i=p(e,t,a);return i?h(e,i,n,r,a,s,c):void 0}if(n.length===0)return[t];let[d,...g]=n;if(d===`[]`)return ne(e,t,g,r||c);if(!(!o(t,`object`)&&!(t.type===void 0&&s))&&!(!d||r&&!f(t).includes(d)))return re(e,ee(t,d),g,r,c)}function re(e,t,n,r,i){return typeof t==`boolean`?n.length===0?[t]:void 0:t?h(e,t,n,r,new Set,!1,i):void 0}function g(e,t,n){return h(e,e,[...t],n?.required??!1,new Set,!0,n?.requiredAfterElement??!1)}function _(e,t){return g(e,t.split(`.`))!==void 0}function v(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 y(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 v(e))y(n.node,[...t,...n.path])}function b(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)&&b(e,r,new Set([...n,t.$ref])))return!0}return v(t).some(t=>b(e,t.node,n))}function x(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 S(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`}),x(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)&&(b(e,t)||!p(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of v(t))S(e,i.node,n,[...r,...i.path])}function ie(e,t){S(e.dataSchema,e.dataSchema,t);let n=h(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)_(e.dataSchema,n)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function C(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const w=[`$dynamicRef`,`$dynamicAnchor`,`$recursiveRef`,`$recursiveAnchor`];function T(e,t,n=[`dataSchema`]){for(let r of w)Object.hasOwn(e,r)&&t.addIssue({code:`custom`,path:[...n,r],message:`Unsupported dynamic reference: use a plain local $ref`});for(let r of v(e))T(r.node,t,[...n,...r.path])}function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e,t){if(typeof t!=`string`)return;let n=l(e,t);return E(n)?n:void 0}function O(e,t){return E(e)?Object.values(e).some(e=>Array.isArray(e)&&e.includes(t)):!1}function k(e,t){let n=e.properties;if(E(n)&&Object.hasOwn(n,t)||Array.isArray(e.required)&&e.required.includes(t)||O(e.dependentRequired,t)||O(e.dependencies,t))return!0;let r=e.patternProperties;return E(r)?Object.keys(r).some(e=>{try{return new RegExp(e,`u`).test(t)}catch{return!1}}):!1}function ae(e){let t=[];for(let n of[`allOf`,`anyOf`,`oneOf`]){let r=e[n];if(Array.isArray(r))for(let e of r)E(e)&&t.push(e)}for(let n of[`if`,`then`,`else`]){let r=e[n];E(r)&&t.push(r)}for(let n of[`dependentSchemas`,`dependencies`]){let r=e[n];if(E(r))for(let e of Object.values(r))E(e)&&t.push(e)}return t}function A(e,t){let n=new Set,r=i=>{if(n.has(i))return!1;if(n.add(i),k(i,t))return!0;let a=D(e,i.$ref);return a&&r(a)?!0:ae(i).some(r)};return r(e)}const j=/^[a-z0-9]+(--?[a-z0-9]+)*$/,oe=r.string().regex(j,`Slug must be lowercase alphanumeric segments joined by hyphens.`),M=`slug`,se=`Data field slug is reserved: the artifact envelope owns the slug`,ce=[[/ä/g,`ae`],[/ö/g,`oe`],[/ü/g,`ue`],[/ß/g,`ss`],[/æ/g,`ae`],[/ø/g,`oe`]];function N(e){let t=ce.reduce((e,[t,n])=>e.replace(t,n),e.toLowerCase()).normalize(`NFKD`).replace(/\p{M}/gu,``).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t.length>0?t:null}function le(e,t,n){let r=N(C(e,t));if(r!==null)return r;let i=N(n);if(i!==null)return i;throw Error(`Artifact ${n} yields no slug from its title or identity`)}function P(e,t){let n=e.addressableParts;if(!n||n.length===0)return;let r=new Set;for(let[i,a]of n.entries())r.has(a.path)&&t.addIssue({code:`custom`,path:[`addressableParts`,i,`path`],message:`addressableParts[${i}].path duplicates an earlier area; each declared area must have a distinct path`}),r.add(a.path),F(e.dataSchema,a,i,t)}function F(e,t,n,r){let i=g(e,t.path.split(`.`));if(!i||i.length===0){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select a declared location in every data schema variant`});return}if(i.some(e=>!o(e,`array`))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path must select an array schema in every data schema variant`});return}if(i.some(e=>typeof e==`object`&&(Array.isArray(e.prefixItems)||Array.isArray(e.items)))){r.addIssue({code:`custom`,path:[`addressableParts`,n,`path`],message:`addressableParts[${n}].path selects a tuple schema; tuples are outside the addressable-parts profile (homogeneous arrays only)`});return}I(e,t,n,r)}function I(e,t,n,r){let i=()=>{r.addIssue({code:`custom`,path:[`addressableParts`,n,`idPath`],message:`addressableParts[${n}].idPath must select a required string in every element variant`})},a=t.idPath.split(`.`),s=g(e,[...t.path.split(`.`),`[]`,...a],{requiredAfterElement:!0});if(!s||s.length===0){i();return}s.some(e=>!o(e,`string`))&&i()}function L(e,r){let i=[],a=new Map;for(let o of e){let e=t(r,o.path.split(`.`));if(e===void 0)continue;if(!Array.isArray(e)){i.push({path:o.path,reason:`declared part area must be an array; found ${typeof e}`});continue}let s=o.idPath.split(`.`);for(let[r,c]of e.entries()){let e=`${o.path}.${r}.${o.idPath}`;if(!n(c)){i.push({path:e,reason:`part element is not an object; local identifier cannot be read`});continue}let l=t(c,s);if(typeof l!=`string`){i.push({path:e,reason:l===void 0?`local identifier is missing`:`local identifier must be a string; found ${typeof l}`});continue}if(/^\s*$/.test(l)){i.push({path:e,reason:`local identifier must be a non-empty, non-whitespace-only string`});continue}let u=a.get(l);u===void 0?a.set(l,e):i.push({path:e,reason:`duplicate local identifier "${l}"; also found at ${u}`})}}return i}function R(e,t,n){let r=[],i=V(e,t);for(let[t,a]of n.entries()){if(a.sourceLocalId===void 0)continue;let n=i?.get(a.sourceLocalId)??(e.length===0?{ok:!1,reason:`NO_PARTS_DECLARED`}:{ok:!1,reason:`PART_NOT_FOUND`});n.ok||r.push({relationIndex:t,reason:n.reason})}return r}const z=[`ARTIFACT_NOT_FOUND`,`KIND_NOT_REGISTERED`,`NO_PARTS_DECLARED`,`PART_NOT_FOUND`,`DUPLICATE_LOCAL_ID`],B=r.strictObject({code:r.enum(z),message:r.string().min(1),repair:r.string().min(1)});function V(e,r){if(e.length===0)return;let i=new Map;for(let a of e){let e=t(r,a.path.split(`.`));if(!Array.isArray(e))continue;let o=a.idPath.split(`.`);for(let r of e){if(!n(r))continue;let e=t(r,o);typeof e==`string`&&(i.has(e)?i.set(e,{ok:!1,reason:`DUPLICATE_LOCAL_ID`}):i.set(e,{ok:!0,areaPath:a.path,part:r}))}}return i}function H(e,t,n){let r=V(e,t);return r===void 0?{ok:!1,reason:`NO_PARTS_DECLARED`}:r.get(n)??{ok:!1,reason:`PART_NOT_FOUND`}}const U=r.number().int().positive(),W=r.enum([`knowledge`,`commitment`,`interaction`,`record`]),G=r.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),K=r.strictObject({fields:r.array(G).min(1)}),ue=new Set([`full`]),q={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},J=r.enum([...q.knowledge,...q.commitment,...q.interaction]),Y=r.strictObject({relationType:r.string().trim().min(1),targetKinds:r.array(r.string().trim().min(1)).min(1).optional(),minItems:r.number().int().nonnegative(),maxItems:r.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),X=r.discriminatedUnion(`kind`,[r.strictObject({kind:r.literal(`data`),path:G}),r.strictObject({kind:r.literal(`relation-target`),relationType:r.string().trim().min(1)})]),Z=r.strictObject({path:G,idPath:G}),Q=r.strictObject({by:r.array(X).min(1),lifecycleStates:r.array(J).min(1).optional()}),$=r.strictObject({minItems:r.number().int().nonnegative()}),de=r.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),fe=r.strictObject({kind:r.string().trim().min(1),description:r.string().trim().min(1),schemaVersion:U,category:W,dataSchema:e,titlePath:G,relations:r.array(Y).optional(),uniqueness:r.array(Q).optional(),evidenceRequirements:$.optional(),indexedFields:r.array(G).optional(),searchableFields:r.array(G).optional(),addressableParts:r.array(Z).min(1).optional(),views:r.record(r.string().trim().min(1),K).optional()}).superRefine((e,t)=>{de.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=q[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=>{ue.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),A(e.dataSchema,`slug`)&&t.addIssue({code:`custom`,path:[`dataSchema`,`properties`,M],message:`Data field ${M} is reserved: the artifact envelope owns the slug`}),T(e.dataSchema,t),ie(e,t),P(e,t)});export{C as A,le as C,y as D,s as E,g as O,oe as S,A as T,H as _,fe as a,j as b,Z as c,Q as d,X as f,R as g,L as h,$ as i,_ as k,Y as l,B as m,W as n,K as o,z as p,G as r,J as s,q as t,U as u,P as v,N as w,se as x,M as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{c as n,w as r}from"./schemas-W3nT06vH.mjs";import{z as i}from"zod";import{createBusNamespace as a}from"@makaio/framework/core";const o=i.enum([`link`,`summary`,`full`]),s=i.object({artifactId:i.string().min(1).optional(),url:i.string().min(1).optional(),label:i.string().min(1),sourceLocalId:n.shape.sourceLocalId}),c=i.object({id:i.string().min(1),kind:i.string().min(1),revision:i.string().min(1),status:i.string().min(1).optional()}),l=i.object({breadcrumbs:i.array(s),related:i.array(s)}),u=i.object({dashboard:i.string().min(1).optional(),materialized:i.string().min(1).optional()}),d=i.object({type:i.literal(`summary`),title:i.string().min(1),text:i.string().min(1)}),f=i.object({type:i.literal(`properties`),title:i.string().min(1),rows:i.array(i.object({label:i.string().min(1),value:i.string()}))}),p=i.object({type:i.literal(`table`),title:i.string().min(1),columns:i.array(i.string().min(1)),rows:i.array(i.object({cells:i.array(i.string()),link:s.optional()}))}),m=i.object({type:i.literal(`relations`),title:i.string().min(1),groups:i.array(i.object({type:i.string().min(1),items:i.array(s)}))}),h=i.object({type:i.literal(`evidence`),title:i.string().min(1),items:i.array(i.object({kind:i.string().min(1),id:i.string().min(1),locator:i.string().min(1).optional()}))}),g=i.object({type:i.literal(`raw`),title:i.string().min(1),json:t}),_=i.object({type:i.literal(`code`),title:i.string().min(1),language:i.string().min(1),content:i.string()}),v=i.object({type:i.literal(`diagram`),title:i.string().min(1),notation:i.literal(`mermaid`),source:i.string().min(1)}),y=i.discriminatedUnion(`type`,[d,f,p,m,h,g,_,v]),b=i.object({title:i.string().min(1),artifact:c,navigation:l,sections:i.array(y),links:u}),x=e,S=i.object({level:o,params:x.optional()}),C=i.object({kind:i.literal(`entry`),via:i.string().min(1).optional(),collection:i.string().min(1).optional()});function w(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:i.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const T=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1),as:o.optional()}),C.extend({title:i.string().min(1).optional(),hostRelation:i.string().min(1).optional()}).superRefine(w(`affordance`))]),E=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`own-view`)}),i.object({kind:i.literal(`inline`),hostRelation:i.string().min(1)}),C.superRefine(w(`request`))]);function D(e){return e}const O=i.enum([`title`,`summary`]),k=i.discriminatedUnion(`kind`,[i.object({kind:i.literal(`label`),prefix:i.string().min(1).optional()}),i.object({kind:i.literal(`field`),name:i.string().min(1),fieldId:i.string().min(1).optional()}),i.object({kind:i.literal(`issue-type`),name:i.string().min(1),typeId:i.string().min(1).optional()}),i.object({kind:i.literal(`body-fragment`),slot:i.string().min(1)}),i.object({kind:i.literal(`comment`),template:i.string().min(1)})]),A=i.object({id:i.string().min(1),provider:i.string().min(1),namespace:i.string().min(1),target:k,appliesTo:i.array(i.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:i.record(i.string(),i.string()).optional(),description:i.string().min(1).optional(),params:e.optional()}),j=i.enum([`status`,`workflow`,`priority`]),M=i.object({path:i.string().min(1),semantic:j.optional(),fromLevel:o.optional(),viewRole:O.optional()}),N=i.object({mode:i.enum([`none`,`surface`,`comment`]),defaultRole:i.enum([`workpiece`,`artifact`]).optional(),semanticEvents:i.array(i.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:i.array(M).optional(),affordances:i.array(T).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,r=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&r++;n>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),r>1&&t.addIssue({code:i.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),P=i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),externalUrl:i.string().optional(),surfaceRole:i.enum([`workpiece`,`artifact`]),lastSyncedRevision:i.string().optional(),metadata:i.record(i.string(),i.unknown()).optional()}),F=S.extend({ref:r,affordance:E}),I=i.discriminatedUnion(`status`,[i.object({status:i.literal(`ok`),view:b,builderVersion:i.number().int().positive(),sourceRevision:i.string().min(1)}),i.object({status:i.literal(`artifact-not-found`),view:i.null()}),i.object({status:i.literal(`not-rendered`),view:i.null()})]),L={"surfaceBinding.register":{request:A,response:i.object({registered:i.boolean()})},"surfaceBinding.list":{request:i.object({id:i.string().min(1).optional(),provider:i.string().min(1).optional(),namespace:i.string().min(1).optional()}),response:i.object({bindings:i.array(A)})},"surfaceBinding.changed":i.object({id:i.string().min(1),provider:i.string().min(1)}),"ref.changed":i.object({artifactId:i.string().min(1),provider:i.string().min(1),externalId:i.string().min(1),operation:i.enum([`upserted`,`deleted`]),origin:i.enum([`factory`,`external`]).optional()}),"capability.resolved":i.object({provider:i.string().min(1),surface:i.string().min(1),capabilities:i.record(i.string().min(1),i.boolean()),degraded:i.boolean()}),"artifact.view.resolve":{request:F,response:I}},R=a(`materialization`,L),ee=R.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}const B=8;function V(e){let t=0,n=0;for(let r=0;r<e.length;r++)e[r]==="`"?(n++,n>t&&(t=n)):n=0;let r=Math.max(3,t+1);return"`".repeat(r)}function H(e){return e.replace(/`/g,``)}function U(e){return e.replace(/\]/g,`\\]`)}function W(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n),i=e[n];t+=r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||i===`-`?i:`%${r.toString(16).toUpperCase().padStart(4,`0`)}`}return t}function G(e){return e.replace(/\(/g,`%28`).replace(/\)/g,`%29`)}function K(e){let t=e.sourceLocalId?W(e.sourceLocalId):void 0,n=t?`${e.label} (from part: ${t})`:e.label;return e.url?`[${U(n)}](${G(e.url)})`:t?`${e.label} (from part: ${U(t)})`:n}function q(e){let t=[];if(e.breadcrumbs.length>0&&t.push(`**Breadcrumbs:** ${e.breadcrumbs.map(K).join(` › `)}`),e.related.length>0){t.length>0&&t.push(``),t.push(`**Related:**`);for(let n of e.related)t.push(`- ${K(n)}`)}return t}function J(e){return e.replace(/\|/g,`\\|`).replace(/[\r\n]+/g,` `)}function Y(e){return[`### ${e.title}`,``,e.text]}function X(e){let t=[`### ${e.title}`,``];for(let n of e.rows)n.value.length>0?t.push(`**${n.label}:** ${n.value}`):t.push(`**${n.label}:**`);return t}function Z(e){let t=[`### ${e.title}`,``],n=e.rows.some(e=>e.link!==void 0),r=e.columns.map(J);n&&r.push(``);let i=r.length;t.push(`| ${r.join(` | `)} |`),t.push(`| ${r.map(()=>`---`).join(` | `)} |`);for(let r of e.rows){let e=r.cells.map(J);for(n&&e.push(r.link?J(K(r.link)):``);e.length<i;)e.push(``);t.push(`| ${e.join(` | `)} |`)}return t}function Q(e){let t=[`### ${e.title}`,``];for(let n of e.groups){t.push(`**${n.type}**`,``);for(let e of n.items)t.push(`- ${K(e)}`);t.push(``)}return t}function te(e){let t=[`### ${e.title}`,``];for(let n of e.items){let e=n.locator?` (${n.locator})`:``;t.push(`- **${n.kind}:** ${n.id}${e}`)}return t}function $(e,t,n){let r=V(t);return[`### ${e}`,``,`${r}${H(n)}`,t,r]}function ne(e){return $(e.title,JSON.stringify(e.json,null,2),`json`)}function re(e){return $(e.title,e.content,e.language)}function ie(e){return $(e.title,e.source,e.notation)}function ae(e){switch(e.type){case`summary`:return Y(e);case`properties`:return X(e);case`table`:return Z(e);case`relations`:return Q(e);case`evidence`:return te(e);case`raw`:return ne(e);case`code`:return re(e);case`diagram`:return ie(e)}}function oe(e,t={}){let n=[];t.includeTitle!==!1&&n.push([`## ${e.title}`]);let r=q(e.navigation);r.length>0&&n.push(r);for(let t of e.sections)n.push(ae(t));return n.map(e=>e.join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
|
|
4
4
|
`)}export{g as A,h as C,b as D,s as E,p as F,y as M,d as N,l as O,u as P,v as S,o as T,E as _,I as a,D as b,ee as c,M as d,j as f,T as g,k as h,F as i,m as j,f as k,P as l,A as m,oe as n,R as o,O as p,z as r,L as s,B as t,N as u,x as v,c as w,_ as x,S as y};
|