@makaio/framework 1.0.0-dev-1790348008233 → 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 +2 -2
- 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.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/extension/index.d.mts +5 -5
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +39 -39
- 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/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/reaction/index.d.mts +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/{contribution-kpR61mnG.d.mts → contribution-DTb65rRN.d.mts} +1 -1
- package/dist/{extension-C6ANjR33.mjs → extension-BOMfXdko.mjs} +1 -1
- package/dist/{extension-context-CmhBCbbq.d.mts → extension-context-DH84KOm9.d.mts} +3 -3
- package/dist/{hook-responses-C3nUIm-6.d.mts → hook-responses-OETFKaAL.d.mts} +1 -1
- package/dist/{index-C9Dz8UoK2.d.mts → index-2YW8DTb62.d.mts} +6 -6
- package/dist/{index-D5Lw1UsO.d.mts → index-B1iXL1pW.d.mts} +8 -8
- package/dist/{index-BMGkU3IM.d.mts → index-BRXETFym.d.mts} +1 -1
- package/dist/{index-DDCixELI.d.mts → index-BUxs65tf.d.mts} +1 -1
- package/dist/{index-HN4m0hiI.d.mts → index-BVN64wQx.d.mts} +28 -28
- package/dist/{index-D5ihXDAA.d.mts → index-Bc4u4rD8.d.mts} +5 -5
- package/dist/{index-Cuz4nfUz.d.mts → index-Bgz81LHZ.d.mts} +1 -1
- package/dist/{index-DifOjlJ5.d.mts → index-CEy4pCZ0.d.mts} +45 -45
- package/dist/{index-DMBxHEQ_.d.mts → index-CMsQnCAu.d.mts} +44 -44
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-wiATEDG_.d.mts → index-CWry0rks.d.mts} +394 -310
- 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-DYnahvOm.d.mts → index-DPc-Lstu.d.mts} +96 -78
- package/dist/{index-D5BLD2Pw.d.mts → index-DqN1u0Y2.d.mts} +6 -6
- package/dist/{index-CCTrhWEB2.d.mts → index-DzOTNzZv2.d.mts} +6 -6
- package/dist/{index-wGlFWRXg.d.mts → index-aAo9ugCm.d.mts} +4 -4
- package/dist/{index-CRk46fit.d.mts → index-lSpH5lvV.d.mts} +9 -9
- 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-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-rliUGyrt.d.mts → schemas-B-2yBaGk.d.mts} +12 -8
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-CYjPZwlQ.d.mts → schemas-Dec5VtBU.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/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +12 -12
- package/dist/services/filesystem/schemas.d.mts +6 -6
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +19 -19
- package/dist/services/session/index.d.mts +2 -2
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +4 -4
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{session-lineage-CmP7L5g2.d.mts → session-lineage-BQ9NWlt6.d.mts} +1 -1
- package/dist/{transition-B0qsutdE.d.mts → transition-DH313MFE.d.mts} +1 -1
- package/dist/{types-DfbdwLQ6.d.mts → types-qna5Bcs8.d.mts} +4 -4
- package/dist/{view-builder-Zw-TCgSp.d.mts → view-builder-D6W7fBUv.d.mts} +7 -7
- package/dist/{worker-DyyO9DCO.mjs → worker-zHq43Iyk.mjs} +1 -1
- package/dist/{workflow-B0ZGun4r.mjs → workflow-BFAraH3Y.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +33 -33
- package/dist/workflow-engine/package.d.mts +1 -1
- package/package.json +1 -1
- package/dist/artifact-eleyznpA.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";
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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 { Tr as ArtifactLifecycleHookRegistration$1, pr as AnyArtifactKindDefinition, wr as ArtifactLifecycleHookEvent } from "./index-
|
|
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
|
-
import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-
|
|
5
|
-
import { t as ExtensionAutomationTriggersContribution } from "./contribution-
|
|
6
|
-
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-
|
|
7
|
-
import { k as ClientDefinition$1, m as ExtensionClientHookResponsesContribution, rt as VersionRange, tt as VersionLiteral$1 } from "./hook-responses-
|
|
4
|
+
import { a as ExtensionService$1, n as ExtensionContext$1, r as NodeExtensionContext$1 } from "./extension-context-DH84KOm9.mjs";
|
|
5
|
+
import { t as ExtensionAutomationTriggersContribution } from "./contribution-DTb65rRN.mjs";
|
|
6
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-DH313MFE.mjs";
|
|
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
|
-
import { t as ExtensionReactionsContribution } from "./index-
|
|
14
|
-
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-
|
|
13
|
+
import { t as ExtensionReactionsContribution } from "./index-BRXETFym.mjs";
|
|
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,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};
|
|
@@ -335,8 +335,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
335
335
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
336
336
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
337
337
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
338
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
339
338
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
339
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
340
340
|
timestamp: _$zod.ZodNumber;
|
|
341
341
|
contentText: _$zod.ZodString;
|
|
342
342
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1120,8 +1120,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
1120
1120
|
isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1121
1121
|
}, _$zod_v4_core0.$strip>], "type">>;
|
|
1122
1122
|
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1123
|
-
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1124
1123
|
turnId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
1124
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1125
1125
|
timestamp: _$zod.ZodNumber;
|
|
1126
1126
|
contentText: _$zod.ZodString;
|
|
1127
1127
|
adapterMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -2030,10 +2030,10 @@ declare const MessageStorageNamespace$1: {
|
|
|
2030
2030
|
})[];
|
|
2031
2031
|
messageId: string;
|
|
2032
2032
|
agentId: never;
|
|
2033
|
-
adapterSessionId: never;
|
|
2034
2033
|
turnId: string | null;
|
|
2035
|
-
|
|
2034
|
+
adapterSessionId: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
@@ -47,8 +47,8 @@ declare const AdapterRuntimeNamespace: _$_makaio_core0.BusNamespaceDefinition<"a
|
|
|
47
47
|
teardownCompleted: _$zod.ZodObject<{
|
|
48
48
|
evidence: _$zod.ZodEnum<{
|
|
49
49
|
unknown: "unknown";
|
|
50
|
-
closed: "closed";
|
|
51
50
|
exited: "exited";
|
|
51
|
+
closed: "closed";
|
|
52
52
|
released: "released";
|
|
53
53
|
detached: "detached";
|
|
54
54
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const AdapterRuntimeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
100
100
|
teardownCompleted: _$zod.ZodObject<{
|
|
101
101
|
evidence: _$zod.ZodEnum<{
|
|
102
102
|
unknown: "unknown";
|
|
103
|
-
closed: "closed";
|
|
104
103
|
exited: "exited";
|
|
104
|
+
closed: "closed";
|
|
105
105
|
released: "released";
|
|
106
106
|
detached: "detached";
|
|
107
107
|
}>;
|
|
@@ -779,6 +779,7 @@ declare const WorkflowAttemptOutcomeSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
779
779
|
artifact: z.ZodOptional<z.ZodObject<{
|
|
780
780
|
kind: z.ZodString;
|
|
781
781
|
id: z.ZodString;
|
|
782
|
+
slug: z.ZodString;
|
|
782
783
|
revision: z.ZodString;
|
|
783
784
|
scope: z.ZodObject<{
|
|
784
785
|
level: z.ZodString;
|
|
@@ -865,9 +866,9 @@ declare const WorkflowAttemptOutcomeSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
865
866
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
866
867
|
level: z.ZodEnum<{
|
|
867
868
|
inferred: "inferred";
|
|
868
|
-
confirmed: "confirmed";
|
|
869
869
|
assumed: "assumed";
|
|
870
870
|
stated: "stated";
|
|
871
|
+
confirmed: "confirmed";
|
|
871
872
|
verified: "verified";
|
|
872
873
|
}>;
|
|
873
874
|
basis: z.ZodArray<z.ZodObject<{
|
package/dist/package.json
CHANGED
|
@@ -366,9 +366,9 @@ declare const ArtifactRelationSchema: z.ZodObject<{
|
|
|
366
366
|
*/
|
|
367
367
|
declare const ConfidenceLevelSchema: z.ZodEnum<{
|
|
368
368
|
inferred: "inferred";
|
|
369
|
-
confirmed: "confirmed";
|
|
370
369
|
assumed: "assumed";
|
|
371
370
|
stated: "stated";
|
|
371
|
+
confirmed: "confirmed";
|
|
372
372
|
verified: "verified";
|
|
373
373
|
}>;
|
|
374
374
|
/**
|
|
@@ -421,9 +421,9 @@ declare const ConfidenceBasisSchema: z.ZodObject<{
|
|
|
421
421
|
declare const ConfidenceMetadataSchema: z.ZodObject<{
|
|
422
422
|
level: z.ZodEnum<{
|
|
423
423
|
inferred: "inferred";
|
|
424
|
-
confirmed: "confirmed";
|
|
425
424
|
assumed: "assumed";
|
|
426
425
|
stated: "stated";
|
|
426
|
+
confirmed: "confirmed";
|
|
427
427
|
verified: "verified";
|
|
428
428
|
}>;
|
|
429
429
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -534,6 +534,7 @@ declare const ArtifactRepresentationsSchema: z.ZodObject<{
|
|
|
534
534
|
declare const ArtifactRevisionSchema: z.ZodObject<{
|
|
535
535
|
kind: z.ZodString;
|
|
536
536
|
id: z.ZodString;
|
|
537
|
+
slug: z.ZodString;
|
|
537
538
|
revision: z.ZodString;
|
|
538
539
|
scope: z.ZodObject<{
|
|
539
540
|
level: z.ZodString;
|
|
@@ -620,9 +621,9 @@ declare const ArtifactRevisionSchema: z.ZodObject<{
|
|
|
620
621
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
621
622
|
level: z.ZodEnum<{
|
|
622
623
|
inferred: "inferred";
|
|
623
|
-
confirmed: "confirmed";
|
|
624
624
|
assumed: "assumed";
|
|
625
625
|
stated: "stated";
|
|
626
|
+
confirmed: "confirmed";
|
|
626
627
|
verified: "verified";
|
|
627
628
|
}>;
|
|
628
629
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -691,8 +692,8 @@ declare const RelationTypeRegistrationSchema: z.ZodObject<{
|
|
|
691
692
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
692
693
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
693
694
|
local: "local";
|
|
694
|
-
artifact: "artifact";
|
|
695
695
|
evidence: "evidence";
|
|
696
|
+
artifact: "artifact";
|
|
696
697
|
entity: "entity";
|
|
697
698
|
}>>>;
|
|
698
699
|
}, z.core.$strip>;
|
|
@@ -709,6 +710,7 @@ declare const ArtifactQueryRequestSchema: z.ZodObject<{
|
|
|
709
710
|
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
710
711
|
}, z.core.$strip>>;
|
|
711
712
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
713
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
712
714
|
currentOnly: z.ZodOptional<z.ZodBoolean>;
|
|
713
715
|
search: z.ZodOptional<z.ZodString>;
|
|
714
716
|
relation: z.ZodOptional<z.ZodObject<{
|
|
@@ -742,16 +744,16 @@ declare const ArtifactQueryRequestSchema: z.ZodObject<{
|
|
|
742
744
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
743
745
|
maxLevel: z.ZodOptional<z.ZodEnum<{
|
|
744
746
|
inferred: "inferred";
|
|
745
|
-
confirmed: "confirmed";
|
|
746
747
|
assumed: "assumed";
|
|
747
748
|
stated: "stated";
|
|
749
|
+
confirmed: "confirmed";
|
|
748
750
|
verified: "verified";
|
|
749
751
|
}>>;
|
|
750
752
|
minLevel: z.ZodOptional<z.ZodEnum<{
|
|
751
753
|
inferred: "inferred";
|
|
752
|
-
confirmed: "confirmed";
|
|
753
754
|
assumed: "assumed";
|
|
754
755
|
stated: "stated";
|
|
756
|
+
confirmed: "confirmed";
|
|
755
757
|
verified: "verified";
|
|
756
758
|
}>>;
|
|
757
759
|
}, z.core.$strip>>;
|
|
@@ -785,6 +787,7 @@ declare const ArtifactCompareResponseSchema: z.ZodObject<{
|
|
|
785
787
|
base: z.ZodObject<{
|
|
786
788
|
kind: z.ZodString;
|
|
787
789
|
id: z.ZodString;
|
|
790
|
+
slug: z.ZodString;
|
|
788
791
|
revision: z.ZodString;
|
|
789
792
|
scope: z.ZodObject<{
|
|
790
793
|
level: z.ZodString;
|
|
@@ -871,9 +874,9 @@ declare const ArtifactCompareResponseSchema: z.ZodObject<{
|
|
|
871
874
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
872
875
|
level: z.ZodEnum<{
|
|
873
876
|
inferred: "inferred";
|
|
874
|
-
confirmed: "confirmed";
|
|
875
877
|
assumed: "assumed";
|
|
876
878
|
stated: "stated";
|
|
879
|
+
confirmed: "confirmed";
|
|
877
880
|
verified: "verified";
|
|
878
881
|
}>;
|
|
879
882
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -928,6 +931,7 @@ declare const ArtifactCompareResponseSchema: z.ZodObject<{
|
|
|
928
931
|
target: z.ZodObject<{
|
|
929
932
|
kind: z.ZodString;
|
|
930
933
|
id: z.ZodString;
|
|
934
|
+
slug: z.ZodString;
|
|
931
935
|
revision: z.ZodString;
|
|
932
936
|
scope: z.ZodObject<{
|
|
933
937
|
level: z.ZodString;
|
|
@@ -1014,9 +1018,9 @@ declare const ArtifactCompareResponseSchema: z.ZodObject<{
|
|
|
1014
1018
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1015
1019
|
level: z.ZodEnum<{
|
|
1016
1020
|
inferred: "inferred";
|
|
1017
|
-
confirmed: "confirmed";
|
|
1018
1021
|
assumed: "assumed";
|
|
1019
1022
|
stated: "stated";
|
|
1023
|
+
confirmed: "confirmed";
|
|
1020
1024
|
verified: "verified";
|
|
1021
1025
|
}>;
|
|
1022
1026
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -143,8 +143,8 @@ declare const AdapterRuntimeSchemas: {
|
|
|
143
143
|
teardownCompleted: z.ZodObject<{
|
|
144
144
|
evidence: z.ZodEnum<{
|
|
145
145
|
unknown: "unknown";
|
|
146
|
-
closed: "closed";
|
|
147
146
|
exited: "exited";
|
|
147
|
+
closed: "closed";
|
|
148
148
|
released: "released";
|
|
149
149
|
detached: "detached";
|
|
150
150
|
}>;
|
|
@@ -45,9 +45,10 @@ 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
|
-
|
|
48
|
+
adapterName: z.ZodString;
|
|
49
49
|
model: z.ZodOptional<z.ZodString>;
|
|
50
50
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
51
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>>;
|
|
@@ -55,7 +56,6 @@ declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
|
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,9 +130,10 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
-
|
|
133
|
+
adapterName: z.ZodString;
|
|
134
134
|
model: z.ZodOptional<z.ZodString>;
|
|
135
135
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
136
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
136
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>>;
|
|
@@ -140,7 +141,6 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{S as n,r,u as i}from"./kind-registration-DdbhhvaT.mjs";import{t as a}from"./repo-context-cO-TLEGN.mjs";import{z as o}from"zod";const s=o.string().min(1).regex(/\S/),c=o.strictObject({refClass:o.literal(`artifact`),kind:s,id:s,revision:s}),l=`x-makaio-value-type`,u=`evidence/v1`,d=o.string().min(1).regex(/\S/),f=o.strictObject({kind:o.literal(`whole-source`)}),p=o.strictObject({kind:o.literal(`lines`),startLine:o.number().int().positive(),lineCount:o.number().int().positive()}),m=o.strictObject({kind:o.literal(`data-path`),path:r}),h=o.strictObject({kind:o.literal(`git-file`),repository:a.strict(),path:d,commit:o.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),g=o.strictObject({kind:o.literal(`confluence-page`),site:d,pageId:d,version:o.number().int().positive()}),_=o.strictObject({kind:o.literal(`artifact`),reference:c}),v=o.union([o.strictObject({source:h,location:o.union([f,p]),excerpt:o.string().optional()}),o.strictObject({source:g,location:f,excerpt:o.string().optional()}),o.strictObject({source:_,location:o.union([f,m]),excerpt:o.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[l]:u}),y=o.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`),b=o.object({kind:o.string().min(1),id:o.string().min(1),displayName:o.string().optional()}),x=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:o.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),S=o.object({level:o.string().min(1),ids:o.record(o.string().min(1),o.string().min(1)).optional()}),C=o.object({refClass:o.literal(`local`).default(`local`),artifact:c,localId:o.string().min(1)}),w=o.object({refClass:o.literal(`evidence`).default(`evidence`),kind:o.string().min(1),id:o.string().min(1),revision:o.string().min(1).optional(),locator:o.string().min(1).optional()}),T=o.strictObject({refClass:o.literal(`entity`),entityType:o.string().min(1),id:o.string().min(1)}),E=o.discriminatedUnion(`refClass`,[c,C,w,T]);function D(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const O=o.preprocess(D,E),k=o.discriminatedUnion(`refClass`,[c.extend({revision:c.shape.revision.optional()}),C,w,T]);function A(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const j=o.preprocess(A,k),M=o.object({type:o.string().min(1),sourceLocalId:o.string().min(1).regex(/\S/).optional(),target:O}),N=o.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),P=o.object({kind:o.string().min(1),actor:b,timestamp:o.number().int().nonnegative(),detail:o.string().optional(),evidenceRef:O.optional()}),F=o.object({level:N,basis:o.array(P)}),I=o.object({id:o.string().min(1),kind:o.string().min(1),summary:o.string().min(1),detail:o.string().optional(),severity:o.enum([`info`,`warning`,`blocker`]).optional(),tags:o.array(o.string().min(1)).optional(),regarding:o.union([c,C]).optional(),evidence:o.union([c,w]).optional(),actor:b,timestamp:o.number().int().nonnegative()}),L=o.object({markdown:o.string().optional(),summary:o.string().optional(),plaintext:o.string().optional()}),R=o.object({kind:c.shape.kind,id:c.shape.id,slug:n,revision:c.shape.revision,scope:x,schemaVersion:i,data:e,relations:o.array(M),evidence:o.array(v).optional(),confidence:F.optional(),representations:L.optional(),actor:b,timestamp:o.number().int().nonnegative(),createdAt:o.number().int().nonnegative().optional()}),z=o.object({type:o.string().min(1),symmetry:o.enum([`asymmetric`,`symmetric`]),implication:o.string().min(1).optional(),sourceKinds:o.array(o.string().min(1)).optional(),targetKinds:o.array(o.string().min(1)).optional(),targetRefClasses:o.array(o.enum([`artifact`,`local`,`evidence`,`entity`])).optional()}),B=o.object({kind:o.string().min(1).optional(),scope:S.optional(),ids:o.array(o.string().min(1)).optional(),slug:n.optional(),currentOnly:o.boolean().optional(),search:o.string().optional(),relation:o.object({type:o.string().min(1).optional(),target:j.optional()}).optional(),confidence:o.object({maxLevel:N.optional(),minLevel:N.optional()}).optional(),indexed:o.record(o.string(),t).optional(),limit:o.number().int().min(1).optional()}),V=o.object({base:c,target:c}),H=o.object({base:R,target:R,changedPaths:o.array(o.string())});export{v as C,u as S,T as _,B as a,z as b,M as c,R as d,x as f,F as g,N as h,I as i,O as l,P as m,V as n,S as o,y as p,H as r,j as s,b as t,L as u,w as v,c as w,l as x,C as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-
|
|
2
|
-
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-
|
|
3
|
-
import { a as ResolveLiveAdapterIdentity, c as resolveDeterministicAdapterId, i as ResolveLiveAdapterId, n as AdapterRuntimeIdentityHandlerOptions, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../../index-
|
|
1
|
+
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-CBDNnyz4.mjs";
|
|
2
|
+
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-DAzOxaux.mjs";
|
|
3
|
+
import { a as ResolveLiveAdapterIdentity, c as resolveDeterministicAdapterId, i as ResolveLiveAdapterId, n as AdapterRuntimeIdentityHandlerOptions, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../../index-CVRQS5jk.mjs";
|
|
4
4
|
export { AdapterIdentityRegistry, AdapterRuntimeIdentityHandlerOptions, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, GetMachineIdRequest, GetMachineIdRequestSchema, GetMachineIdResponse, GetMachineIdResponseSchema, RegisteredAdapterRuntimeIdentityHandlers, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveLiveAdapterId, ResolveLiveAdapterIdentity, ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema, buildDeterministicAdapterId, registerAdapterRuntimeIdentityHandlers, resolveDeterministicAdapterId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-
|
|
1
|
+
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../../namespace-DAzOxaux.mjs";
|
|
2
2
|
export { AdapterRuntimeNamespace, AdapterRuntimeSubjects };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-
|
|
1
|
+
import { _ as ResolveNameResponseSchema, a as GetMachineIdResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, i as GetMachineIdResponse, l as ResolveIdResponseSchema, m as ResolveNameRequest, n as GetMachineIdRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, r as GetMachineIdRequestSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../../schemas-CBDNnyz4.mjs";
|
|
2
2
|
export { AdapterRuntimeSchemas, GetMachineIdRequest, GetMachineIdRequestSchema, GetMachineIdResponse, GetMachineIdResponseSchema, ResolveIdRequest, ResolveIdRequestSchema, ResolveIdResponse, ResolveIdResponseSchema, ResolveLiveIdentityRequest, ResolveLiveIdentityRequestSchema, ResolveLiveIdentityResponse, ResolveLiveIdentityResponseSchema, ResolveNameRequest, ResolveNameRequestSchema, ResolveNameResponse, ResolveNameResponseSchema };
|
|
@@ -160,9 +160,9 @@ declare const ResolvedContextRulesSchema: z.ZodObject<{
|
|
|
160
160
|
declare const ContextRuleChangedEventSchema: z.ZodObject<{
|
|
161
161
|
ruleId: z.ZodString;
|
|
162
162
|
changeType: z.ZodEnum<{
|
|
163
|
-
updated: "updated";
|
|
164
163
|
created: "created";
|
|
165
164
|
deleted: "deleted";
|
|
165
|
+
updated: "updated";
|
|
166
166
|
}>;
|
|
167
167
|
previous: z.ZodNullable<z.ZodObject<{
|
|
168
168
|
scope: z.ZodEnum<{
|
|
@@ -313,9 +313,9 @@ declare const ContextRulesServiceNamespace: _$_makaio_core0.BusNamespaceDefiniti
|
|
|
313
313
|
changed: _$zod.ZodObject<{
|
|
314
314
|
ruleId: _$zod.ZodString;
|
|
315
315
|
changeType: _$zod.ZodEnum<{
|
|
316
|
-
updated: "updated";
|
|
317
316
|
created: "created";
|
|
318
317
|
deleted: "deleted";
|
|
318
|
+
updated: "updated";
|
|
319
319
|
}>;
|
|
320
320
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
321
321
|
scope: _$zod.ZodEnum<{
|
|
@@ -383,9 +383,9 @@ declare const ContextRulesServiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
383
383
|
changed: _$zod.ZodObject<{
|
|
384
384
|
ruleId: _$zod.ZodString;
|
|
385
385
|
changeType: _$zod.ZodEnum<{
|
|
386
|
-
updated: "updated";
|
|
387
386
|
created: "created";
|
|
388
387
|
deleted: "deleted";
|
|
388
|
+
updated: "updated";
|
|
389
389
|
}>;
|
|
390
390
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
391
391
|
scope: _$zod.ZodEnum<{
|