@makaio/framework 1.0.0-dev-1786014320559 → 1.0.0-dev-1787670559522
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/{context-resolution-CW0ya4QO.d.mts → context-resolution-ya9TXKg-.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 +2 -2
- 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 +4 -4
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +44 -44
- package/dist/contracts/materialization/index.d.mts +3 -3
- 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/worker-node/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/{contribution-BH-wKsWI.d.mts → contribution-BB5bjx3f.d.mts} +1 -1
- package/dist/{extension-context-CqfddWXs.d.mts → extension-context-DzB7ydM3.d.mts} +3 -3
- package/dist/{hook-responses-CQZIv3L3.d.mts → hook-responses-uCXAICTU.d.mts} +1 -1
- package/dist/{index-B6GOuxVy2.d.mts → index--atUpi5l2.d.mts} +16 -16
- package/dist/{index-CwDiyJkJ.d.mts → index-1UcQWrZy.d.mts} +35 -35
- package/dist/{index-B4xdTT3c.d.mts → index-B0xJgTi-.d.mts} +6 -6
- package/dist/{index-DcYAAJ0V.d.mts → index-BMVZs6pm.d.mts} +1 -1
- package/dist/{index-BiAYXjgM.d.mts → index-Bl7KWFod.d.mts} +26 -26
- package/dist/{index-B5op6AsV.d.mts → index-BtdK8HeH.d.mts} +78 -78
- package/dist/{index-ByZi9bml.d.mts → index-C-JzEkqs.d.mts} +40 -40
- package/dist/{index-Dch_AxUg.d.mts → index-CER64zYO.d.mts} +9 -9
- package/dist/{index-3eUIRy7T.d.mts → index-CM75k-Ff.d.mts} +8 -8
- package/dist/{index-BFhJe-Sb.d.mts → index-CfiCJPP6.d.mts} +1 -1
- package/dist/{index-CB4aIUoF.d.mts → index-OADt3xlS.d.mts} +16 -16
- package/dist/{index-DcqSUsX6.d.mts → index-cPqSpWQC.d.mts} +4 -4
- package/dist/{index-CDusRXio.d.mts → index-e4Txan9i.d.mts} +73 -73
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{namespace-CAy4P5mW.d.mts → namespace-BgEiY7r1.d.mts} +1 -1
- package/dist/{namespace-Rge9mMI-.d.mts → namespace-CrDlawqu.d.mts} +18 -18
- package/dist/package.json +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/rules/schemas.d.mts +1 -1
- package/dist/rules/schemas.mjs +1 -1
- package/dist/{schemas-C-Bm6Oac.d.mts → schemas-B3bfVYcL.d.mts} +2 -0
- package/dist/{schemas-9qeeHGBf.d.mts → schemas-DvMbcABQ.d.mts} +10 -10
- 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/index.d.mts +13 -13
- package/dist/services/session/index.d.mts +2 -2
- 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/{session-lineage-B_PVa1XN.d.mts → session-lineage-D5E142LU.d.mts} +1 -1
- package/dist/{transition-BF1nevaC.d.mts → transition-C_Ka6b0-.d.mts} +1 -1
- package/dist/{types-CijlWGwb.d.mts → types-CwvN4uN2.d.mts} +15 -15
- package/dist/{view-builder-Bc9dx6jF.d.mts → view-builder-KYsPqV-5.d.mts} +1 -1
- package/dist/workflow-engine/index.d.mts +31 -31
- package/package.json +1 -1
- package/dist/{index-BRzHs7Bx.d.mts → index-Bqm0ahTQ.d.mts} +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ArtifactRepresentations, L as ArtifactRef$1, U as ArtifactRelationTarget, Y as ArtifactScope, a as ResolvedArtifactContextWire$1, j as ArtifactObservation$1, k as ArtifactKindRegistration$1, l as ArtifactProjectionPolicy$1, q as ArtifactRevision$1, r as ArtifactContextUnresolvedReason, x as ArtifactActor, z as ArtifactRelation } from "./context-resolution-
|
|
1
|
+
import { G as ArtifactRepresentations, L as ArtifactRef$1, U as ArtifactRelationTarget, Y as ArtifactScope, a as ResolvedArtifactContextWire$1, j as ArtifactObservation$1, k as ArtifactKindRegistration$1, l as ArtifactProjectionPolicy$1, q as ArtifactRevision$1, r as ArtifactContextUnresolvedReason, x as ArtifactActor, z as ArtifactRelation } from "./context-resolution-ya9TXKg-.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
4
4
|
import { MakaioBusLike } from "@makaio/framework/core";
|
|
@@ -632,8 +632,8 @@ declare const ArtifactSchemas: {
|
|
|
632
632
|
comment: "comment";
|
|
633
633
|
}>;
|
|
634
634
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
635
|
-
workpiece: "workpiece";
|
|
636
635
|
artifact: "artifact";
|
|
636
|
+
workpiece: "workpiece";
|
|
637
637
|
}>>;
|
|
638
638
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
639
639
|
created: "created";
|
|
@@ -722,8 +722,8 @@ declare const ArtifactSchemas: {
|
|
|
722
722
|
comment: "comment";
|
|
723
723
|
}>;
|
|
724
724
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
725
|
-
workpiece: "workpiece";
|
|
726
725
|
artifact: "artifact";
|
|
726
|
+
workpiece: "workpiece";
|
|
727
727
|
}>>;
|
|
728
728
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
729
729
|
created: "created";
|
|
@@ -782,8 +782,8 @@ declare const ArtifactSchemas: {
|
|
|
782
782
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
783
783
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
784
784
|
local: "local";
|
|
785
|
-
artifact: "artifact";
|
|
786
785
|
evidence: "evidence";
|
|
786
|
+
artifact: "artifact";
|
|
787
787
|
}>>>;
|
|
788
788
|
}, z.core.$strip>;
|
|
789
789
|
response: z.ZodObject<{
|
|
@@ -806,8 +806,8 @@ declare const ArtifactSchemas: {
|
|
|
806
806
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
807
807
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
808
808
|
local: "local";
|
|
809
|
-
artifact: "artifact";
|
|
810
809
|
evidence: "evidence";
|
|
810
|
+
artifact: "artifact";
|
|
811
811
|
}>>>;
|
|
812
812
|
}, z.core.$strip>>;
|
|
813
813
|
}, z.core.$strip>;
|
|
@@ -817,6 +817,16 @@ declare const ArtifactSchemas: {
|
|
|
817
817
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
818
818
|
kind: z.ZodString;
|
|
819
819
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
820
|
+
scope: z.ZodObject<{
|
|
821
|
+
level: z.ZodString;
|
|
822
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
schemaVersion: z.ZodString;
|
|
825
|
+
actor: z.ZodObject<{
|
|
826
|
+
kind: z.ZodString;
|
|
827
|
+
id: z.ZodString;
|
|
828
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
829
|
+
}, z.core.$strip>;
|
|
820
830
|
relations: z.ZodArray<z.ZodObject<{
|
|
821
831
|
type: z.ZodString;
|
|
822
832
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -841,16 +851,6 @@ declare const ArtifactSchemas: {
|
|
|
841
851
|
locator: z.ZodOptional<z.ZodString>;
|
|
842
852
|
}, z.core.$strip>], "refClass">>;
|
|
843
853
|
}, z.core.$strip>>;
|
|
844
|
-
scope: z.ZodObject<{
|
|
845
|
-
level: z.ZodString;
|
|
846
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
847
|
-
}, z.core.$strip>;
|
|
848
|
-
schemaVersion: z.ZodString;
|
|
849
|
-
actor: z.ZodObject<{
|
|
850
|
-
kind: z.ZodString;
|
|
851
|
-
id: z.ZodString;
|
|
852
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
853
|
-
}, z.core.$strip>;
|
|
854
854
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
855
855
|
level: z.ZodEnum<{
|
|
856
856
|
inferred: "inferred";
|
|
@@ -999,6 +999,16 @@ declare const ArtifactSchemas: {
|
|
|
999
999
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1000
1000
|
kind: z.ZodString;
|
|
1001
1001
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
scope: z.ZodObject<{
|
|
1003
|
+
level: z.ZodString;
|
|
1004
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1005
|
+
}, z.core.$strip>;
|
|
1006
|
+
schemaVersion: z.ZodString;
|
|
1007
|
+
actor: z.ZodObject<{
|
|
1008
|
+
kind: z.ZodString;
|
|
1009
|
+
id: z.ZodString;
|
|
1010
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
}, z.core.$strip>;
|
|
1002
1012
|
relations: z.ZodArray<z.ZodObject<{
|
|
1003
1013
|
type: z.ZodString;
|
|
1004
1014
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1023,16 +1033,6 @@ declare const ArtifactSchemas: {
|
|
|
1023
1033
|
locator: z.ZodOptional<z.ZodString>;
|
|
1024
1034
|
}, z.core.$strip>], "refClass">>;
|
|
1025
1035
|
}, z.core.$strip>>;
|
|
1026
|
-
scope: z.ZodObject<{
|
|
1027
|
-
level: z.ZodString;
|
|
1028
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1029
|
-
}, z.core.$strip>;
|
|
1030
|
-
schemaVersion: z.ZodString;
|
|
1031
|
-
actor: z.ZodObject<{
|
|
1032
|
-
kind: z.ZodString;
|
|
1033
|
-
id: z.ZodString;
|
|
1034
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
1035
|
-
}, z.core.$strip>;
|
|
1036
1036
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
1037
1037
|
level: z.ZodEnum<{
|
|
1038
1038
|
inferred: "inferred";
|
|
@@ -2085,8 +2085,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2085
2085
|
comment: "comment";
|
|
2086
2086
|
}>;
|
|
2087
2087
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
2088
|
-
workpiece: "workpiece";
|
|
2089
2088
|
artifact: "artifact";
|
|
2089
|
+
workpiece: "workpiece";
|
|
2090
2090
|
}>>;
|
|
2091
2091
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2092
2092
|
created: "created";
|
|
@@ -2175,8 +2175,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2175
2175
|
comment: "comment";
|
|
2176
2176
|
}>;
|
|
2177
2177
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
2178
|
-
workpiece: "workpiece";
|
|
2179
2178
|
artifact: "artifact";
|
|
2179
|
+
workpiece: "workpiece";
|
|
2180
2180
|
}>>;
|
|
2181
2181
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2182
2182
|
created: "created";
|
|
@@ -2235,8 +2235,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2235
2235
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2236
2236
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2237
2237
|
local: "local";
|
|
2238
|
-
artifact: "artifact";
|
|
2239
2238
|
evidence: "evidence";
|
|
2239
|
+
artifact: "artifact";
|
|
2240
2240
|
}>>>;
|
|
2241
2241
|
}, z.core.$strip>;
|
|
2242
2242
|
response: z.ZodObject<{
|
|
@@ -2259,8 +2259,8 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2259
2259
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2260
2260
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2261
2261
|
local: "local";
|
|
2262
|
-
artifact: "artifact";
|
|
2263
2262
|
evidence: "evidence";
|
|
2263
|
+
artifact: "artifact";
|
|
2264
2264
|
}>>>;
|
|
2265
2265
|
}, z.core.$strip>>;
|
|
2266
2266
|
}, z.core.$strip>;
|
|
@@ -2270,6 +2270,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2270
2270
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2271
2271
|
kind: z.ZodString;
|
|
2272
2272
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
2273
|
+
scope: z.ZodObject<{
|
|
2274
|
+
level: z.ZodString;
|
|
2275
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2276
|
+
}, z.core.$strip>;
|
|
2277
|
+
schemaVersion: z.ZodString;
|
|
2278
|
+
actor: z.ZodObject<{
|
|
2279
|
+
kind: z.ZodString;
|
|
2280
|
+
id: z.ZodString;
|
|
2281
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
}, z.core.$strip>;
|
|
2273
2283
|
relations: z.ZodArray<z.ZodObject<{
|
|
2274
2284
|
type: z.ZodString;
|
|
2275
2285
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2294,16 +2304,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2294
2304
|
locator: z.ZodOptional<z.ZodString>;
|
|
2295
2305
|
}, z.core.$strip>], "refClass">>;
|
|
2296
2306
|
}, z.core.$strip>>;
|
|
2297
|
-
scope: z.ZodObject<{
|
|
2298
|
-
level: z.ZodString;
|
|
2299
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2300
|
-
}, z.core.$strip>;
|
|
2301
|
-
schemaVersion: z.ZodString;
|
|
2302
|
-
actor: z.ZodObject<{
|
|
2303
|
-
kind: z.ZodString;
|
|
2304
|
-
id: z.ZodString;
|
|
2305
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
2306
|
-
}, z.core.$strip>;
|
|
2307
2307
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2308
2308
|
level: z.ZodEnum<{
|
|
2309
2309
|
inferred: "inferred";
|
|
@@ -2452,6 +2452,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2452
2452
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2453
2453
|
kind: z.ZodString;
|
|
2454
2454
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
2455
|
+
scope: z.ZodObject<{
|
|
2456
|
+
level: z.ZodString;
|
|
2457
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2458
|
+
}, z.core.$strip>;
|
|
2459
|
+
schemaVersion: z.ZodString;
|
|
2460
|
+
actor: z.ZodObject<{
|
|
2461
|
+
kind: z.ZodString;
|
|
2462
|
+
id: z.ZodString;
|
|
2463
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2464
|
+
}, z.core.$strip>;
|
|
2455
2465
|
relations: z.ZodArray<z.ZodObject<{
|
|
2456
2466
|
type: z.ZodString;
|
|
2457
2467
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2476,16 +2486,6 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2476
2486
|
locator: z.ZodOptional<z.ZodString>;
|
|
2477
2487
|
}, z.core.$strip>], "refClass">>;
|
|
2478
2488
|
}, z.core.$strip>>;
|
|
2479
|
-
scope: z.ZodObject<{
|
|
2480
|
-
level: z.ZodString;
|
|
2481
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2482
|
-
}, z.core.$strip>;
|
|
2483
|
-
schemaVersion: z.ZodString;
|
|
2484
|
-
actor: z.ZodObject<{
|
|
2485
|
-
kind: z.ZodString;
|
|
2486
|
-
id: z.ZodString;
|
|
2487
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
2488
|
-
}, z.core.$strip>;
|
|
2489
2489
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
2490
2490
|
level: z.ZodEnum<{
|
|
2491
2491
|
inferred: "inferred";
|
|
@@ -3552,8 +3552,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3552
3552
|
comment: "comment";
|
|
3553
3553
|
}>;
|
|
3554
3554
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
3555
|
-
workpiece: "workpiece";
|
|
3556
3555
|
artifact: "artifact";
|
|
3556
|
+
workpiece: "workpiece";
|
|
3557
3557
|
}>>;
|
|
3558
3558
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3559
3559
|
created: "created";
|
|
@@ -3642,8 +3642,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3642
3642
|
comment: "comment";
|
|
3643
3643
|
}>;
|
|
3644
3644
|
defaultRole: z.ZodOptional<z.ZodEnum<{
|
|
3645
|
-
workpiece: "workpiece";
|
|
3646
3645
|
artifact: "artifact";
|
|
3646
|
+
workpiece: "workpiece";
|
|
3647
3647
|
}>>;
|
|
3648
3648
|
semanticEvents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3649
3649
|
created: "created";
|
|
@@ -3702,8 +3702,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3702
3702
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3703
3703
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3704
3704
|
local: "local";
|
|
3705
|
-
artifact: "artifact";
|
|
3706
3705
|
evidence: "evidence";
|
|
3706
|
+
artifact: "artifact";
|
|
3707
3707
|
}>>>;
|
|
3708
3708
|
}, z.core.$strip>;
|
|
3709
3709
|
response: z.ZodObject<{
|
|
@@ -3726,8 +3726,8 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3726
3726
|
targetKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3727
3727
|
targetRefClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3728
3728
|
local: "local";
|
|
3729
|
-
artifact: "artifact";
|
|
3730
3729
|
evidence: "evidence";
|
|
3730
|
+
artifact: "artifact";
|
|
3731
3731
|
}>>>;
|
|
3732
3732
|
}, z.core.$strip>>;
|
|
3733
3733
|
}, z.core.$strip>;
|
|
@@ -3737,6 +3737,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3737
3737
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3738
3738
|
kind: z.ZodString;
|
|
3739
3739
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
3740
|
+
scope: z.ZodObject<{
|
|
3741
|
+
level: z.ZodString;
|
|
3742
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3743
|
+
}, z.core.$strip>;
|
|
3744
|
+
schemaVersion: z.ZodString;
|
|
3745
|
+
actor: z.ZodObject<{
|
|
3746
|
+
kind: z.ZodString;
|
|
3747
|
+
id: z.ZodString;
|
|
3748
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
3749
|
+
}, z.core.$strip>;
|
|
3740
3750
|
relations: z.ZodArray<z.ZodObject<{
|
|
3741
3751
|
type: z.ZodString;
|
|
3742
3752
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3761,16 +3771,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3761
3771
|
locator: z.ZodOptional<z.ZodString>;
|
|
3762
3772
|
}, z.core.$strip>], "refClass">>;
|
|
3763
3773
|
}, z.core.$strip>>;
|
|
3764
|
-
scope: z.ZodObject<{
|
|
3765
|
-
level: z.ZodString;
|
|
3766
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3767
|
-
}, z.core.$strip>;
|
|
3768
|
-
schemaVersion: z.ZodString;
|
|
3769
|
-
actor: z.ZodObject<{
|
|
3770
|
-
kind: z.ZodString;
|
|
3771
|
-
id: z.ZodString;
|
|
3772
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
3773
|
-
}, z.core.$strip>;
|
|
3774
3774
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
3775
3775
|
level: z.ZodEnum<{
|
|
3776
3776
|
inferred: "inferred";
|
|
@@ -3919,6 +3919,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3919
3919
|
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3920
3920
|
kind: z.ZodString;
|
|
3921
3921
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
3922
|
+
scope: z.ZodObject<{
|
|
3923
|
+
level: z.ZodString;
|
|
3924
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3925
|
+
}, z.core.$strip>;
|
|
3926
|
+
schemaVersion: z.ZodString;
|
|
3927
|
+
actor: z.ZodObject<{
|
|
3928
|
+
kind: z.ZodString;
|
|
3929
|
+
id: z.ZodString;
|
|
3930
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
3931
|
+
}, z.core.$strip>;
|
|
3922
3932
|
relations: z.ZodArray<z.ZodObject<{
|
|
3923
3933
|
type: z.ZodString;
|
|
3924
3934
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3943,16 +3953,6 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3943
3953
|
locator: z.ZodOptional<z.ZodString>;
|
|
3944
3954
|
}, z.core.$strip>], "refClass">>;
|
|
3945
3955
|
}, z.core.$strip>>;
|
|
3946
|
-
scope: z.ZodObject<{
|
|
3947
|
-
level: z.ZodString;
|
|
3948
|
-
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3949
|
-
}, z.core.$strip>;
|
|
3950
|
-
schemaVersion: z.ZodString;
|
|
3951
|
-
actor: z.ZodObject<{
|
|
3952
|
-
kind: z.ZodString;
|
|
3953
|
-
id: z.ZodString;
|
|
3954
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
3955
|
-
}, z.core.$strip>;
|
|
3956
3956
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
3957
3957
|
level: z.ZodEnum<{
|
|
3958
3958
|
inferred: "inferred";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-
|
|
1
|
+
import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-BMVZs6pm.mjs";
|
|
2
2
|
export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
|
package/dist/kernel/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index
|
|
2
|
-
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-
|
|
1
|
+
import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index--atUpi5l2.mjs";
|
|
2
|
+
import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-BMVZs6pm.mjs";
|
|
3
3
|
import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-BLtVx3Iw.mjs";
|
|
4
4
|
import { n as KernelSubjects, r as KernelSchemas, t as KernelNamespace } from "../index-DwLRZscE.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-BeENojSx2.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index
|
|
1
|
+
import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index--atUpi5l2.mjs";
|
|
2
2
|
export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
|
|
@@ -2032,8 +2032,8 @@ declare const MessageStorageNamespace$1: {
|
|
|
2032
2032
|
agentId: never;
|
|
2033
2033
|
adapterSessionId: never;
|
|
2034
2034
|
turnId: string | null;
|
|
2035
|
-
limit: never;
|
|
2036
2035
|
timestamp: number;
|
|
2036
|
+
limit: never;
|
|
2037
2037
|
query: string;
|
|
2038
2038
|
contentText: string;
|
|
2039
2039
|
adapterMessageId: string;
|
|
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
585
585
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
586
586
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
587
587
|
intent: _$zod.ZodEnum<{
|
|
588
|
-
resume: "resume";
|
|
589
588
|
fork: "fork";
|
|
589
|
+
resume: "resume";
|
|
590
590
|
}>;
|
|
591
591
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
592
592
|
reason: _$zod.ZodEnum<{
|
|
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
611
611
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
612
612
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
613
613
|
intent: _$zod.ZodEnum<{
|
|
614
|
-
resume: "resume";
|
|
615
614
|
fork: "fork";
|
|
615
|
+
resume: "resume";
|
|
616
616
|
}>;
|
|
617
617
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
618
618
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
967
967
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
968
968
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
969
969
|
intent: _$zod.ZodEnum<{
|
|
970
|
-
resume: "resume";
|
|
971
970
|
fork: "fork";
|
|
971
|
+
resume: "resume";
|
|
972
972
|
}>;
|
|
973
973
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
974
974
|
reason: _$zod.ZodEnum<{
|
|
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
993
993
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
994
994
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
995
995
|
intent: _$zod.ZodEnum<{
|
|
996
|
-
resume: "resume";
|
|
997
996
|
fork: "fork";
|
|
997
|
+
resume: "resume";
|
|
998
998
|
}>;
|
|
999
999
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1000
1000
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1339
1339
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
1340
1340
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1341
1341
|
intent: _$zod.ZodEnum<{
|
|
1342
|
-
resume: "resume";
|
|
1343
1342
|
fork: "fork";
|
|
1343
|
+
resume: "resume";
|
|
1344
1344
|
}>;
|
|
1345
1345
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
1346
1346
|
reason: _$zod.ZodEnum<{
|
|
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1365
1365
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1366
1366
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
1367
1367
|
intent: _$zod.ZodEnum<{
|
|
1368
|
-
resume: "resume";
|
|
1369
1368
|
fork: "fork";
|
|
1369
|
+
resume: "resume";
|
|
1370
1370
|
}>;
|
|
1371
1371
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1372
1372
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1719
1719
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
1720
1720
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
1721
1721
|
intent: _$zod.ZodEnum<{
|
|
1722
|
-
resume: "resume";
|
|
1723
1722
|
fork: "fork";
|
|
1723
|
+
resume: "resume";
|
|
1724
1724
|
}>;
|
|
1725
1725
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
1726
1726
|
reason: _$zod.ZodEnum<{
|
|
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
1745
1745
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1746
1746
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
1747
1747
|
intent: _$zod.ZodEnum<{
|
|
1748
|
-
resume: "resume";
|
|
1749
1748
|
fork: "fork";
|
|
1749
|
+
resume: "resume";
|
|
1750
1750
|
}>;
|
|
1751
1751
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
1752
1752
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2087
2087
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2088
2088
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2089
2089
|
intent: _$zod.ZodEnum<{
|
|
2090
|
-
resume: "resume";
|
|
2091
2090
|
fork: "fork";
|
|
2091
|
+
resume: "resume";
|
|
2092
2092
|
}>;
|
|
2093
2093
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2094
2094
|
reason: _$zod.ZodEnum<{
|
|
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2113
2113
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2114
2114
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2115
2115
|
intent: _$zod.ZodEnum<{
|
|
2116
|
-
resume: "resume";
|
|
2117
2116
|
fork: "fork";
|
|
2117
|
+
resume: "resume";
|
|
2118
2118
|
}>;
|
|
2119
2119
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2120
2120
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2469
2469
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2470
2470
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2471
2471
|
intent: _$zod.ZodEnum<{
|
|
2472
|
-
resume: "resume";
|
|
2473
2472
|
fork: "fork";
|
|
2473
|
+
resume: "resume";
|
|
2474
2474
|
}>;
|
|
2475
2475
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2476
2476
|
reason: _$zod.ZodEnum<{
|
|
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2495
2495
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2496
2496
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2497
2497
|
intent: _$zod.ZodEnum<{
|
|
2498
|
-
resume: "resume";
|
|
2499
2498
|
fork: "fork";
|
|
2499
|
+
resume: "resume";
|
|
2500
2500
|
}>;
|
|
2501
2501
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2502
2502
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2841
2841
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
2842
2842
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
2843
2843
|
intent: _$zod.ZodEnum<{
|
|
2844
|
-
resume: "resume";
|
|
2845
2844
|
fork: "fork";
|
|
2845
|
+
resume: "resume";
|
|
2846
2846
|
}>;
|
|
2847
2847
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
2848
2848
|
reason: _$zod.ZodEnum<{
|
|
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
2867
2867
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2868
2868
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
2869
2869
|
intent: _$zod.ZodEnum<{
|
|
2870
|
-
resume: "resume";
|
|
2871
2870
|
fork: "fork";
|
|
2871
|
+
resume: "resume";
|
|
2872
2872
|
}>;
|
|
2873
2873
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
2874
2874
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3221
3221
|
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
3222
3222
|
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
3223
3223
|
intent: _$zod.ZodEnum<{
|
|
3224
|
-
resume: "resume";
|
|
3225
3224
|
fork: "fork";
|
|
3225
|
+
resume: "resume";
|
|
3226
3226
|
}>;
|
|
3227
3227
|
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
3228
3228
|
reason: _$zod.ZodEnum<{
|
|
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3247
3247
|
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3248
3248
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
3249
3249
|
intent: _$zod.ZodEnum<{
|
|
3250
|
-
resume: "resume";
|
|
3251
3250
|
fork: "fork";
|
|
3251
|
+
resume: "resume";
|
|
3252
3252
|
}>;
|
|
3253
3253
|
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
3254
3254
|
foreignMachineId: _$zod.ZodString;
|
|
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
|
|
|
3537
3537
|
timestamp: number;
|
|
3538
3538
|
type: "locality.degraded";
|
|
3539
3539
|
payload: {
|
|
3540
|
-
intent: "
|
|
3540
|
+
intent: "fork" | "resume";
|
|
3541
3541
|
verdictKind: "degrade";
|
|
3542
3542
|
reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
|
|
3543
3543
|
agentId?: string | undefined;
|
|
3544
3544
|
adapterId?: string | undefined;
|
|
3545
3545
|
turnId?: string | undefined;
|
|
3546
3546
|
} | {
|
|
3547
|
-
intent: "
|
|
3547
|
+
intent: "fork" | "resume";
|
|
3548
3548
|
verdictKind: "foreign";
|
|
3549
3549
|
foreignMachineId: string;
|
|
3550
3550
|
agentId?: string | undefined;
|
package/dist/package.json
CHANGED
package/dist/rules/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as RuleSetOptions, S as Rule, _ as JsonObjectShape, a as JsonObjectSchema, b as NotCondition, c as RuleSetOptionsSchema, d as CompoundCondition, f as Condition, g as JsonObject, h as FieldOperator, i as FieldOperatorSchema, l as ScalarValueSchema, m as FieldCondition, n as ExpressionConditionSchema, o as JsonValueSchema, p as ExpressionCondition, r as FieldConditionSchema, s as RuleSchema, t as ConditionSchema, u as AndCondition, v as JsonPrimitive, w as ScalarValue, x as OrCondition, y as JsonValue } from "../schemas-
|
|
1
|
+
import { C as RuleSetOptions, S as Rule, _ as JsonObjectShape, a as JsonObjectSchema, b as NotCondition, c as RuleSetOptionsSchema, d as CompoundCondition, f as Condition, g as JsonObject, h as FieldOperator, i as FieldOperatorSchema, l as ScalarValueSchema, m as FieldCondition, n as ExpressionConditionSchema, o as JsonValueSchema, p as ExpressionCondition, r as FieldConditionSchema, s as RuleSchema, t as ConditionSchema, u as AndCondition, v as JsonPrimitive, w as ScalarValue, x as OrCondition, y as JsonValue } from "../schemas-B3bfVYcL.mjs";
|
|
2
2
|
|
|
3
3
|
//#region packages/rules/src/evaluator.d.ts
|
|
4
4
|
/**
|
package/dist/rules/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../esm-CBFWM8u_.mjs";import{ConditionSchema as t,ExpressionConditionSchema as n,FieldConditionSchema as r,FieldOperatorSchema as i,JsonObjectSchema as a,JsonValueSchema as o,RuleSchema as s,RuleSetOptionsSchema as c,ScalarValueSchema as l}from"./schemas.mjs";import{compile as u}from"@makaio/framework/expression";const d=new Map,f=new Map;function p(e,t){if(`$and`in e){for(let n of e.$and)if(!p(n,t))return!1;return!0}if(`$or`in e){for(let n of e.$or)if(p(n,t))return!0;return!1}return`$not`in e?!p(e.$not,t):`$expr`in e?!!_(e.$expr).evalSync(t):h(g(t,e.field),e.operator)}function m(e,t,n={}){let{includeDisabled:r=!1}=n,i=[];for(let n of e)!r&&!n.enabled||p(n.condition,t)&&i.push(n);return i}function h(e,t){if(typeof t!=`object`||!t)return e===t;if(`$eq`in t)return e===t.$eq;if(`$ne`in t)return e!==t.$ne;if(`$in`in t)return t.$in.includes(e);if(`$nin`in t)return!t.$nin.includes(e);if(`$exists`in t){let n=e!==void 0;return t.$exists?n:!n}return`$startsWith`in t?typeof e==`string`&&e.startsWith(t.$startsWith):`$endsWith`in t?typeof e==`string`&&e.endsWith(t.$endsWith):`$glob`in t?typeof e==`string`&&v(t.$glob).match(e):!1}function g(e,t){if(e==null)return;let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function _(e){return y(d,e,()=>u(e))}function v(t){return y(f,t,()=>new e(t))}function y(e,t,n){let r=e.get(t);if(r!==void 0)return e.delete(t),e.set(t,r),r;let i=n();if(e.set(t,i),e.size>256){let t=e.keys().next().value;t!==void 0&&e.delete(t)}return i}export{t as ConditionSchema,n as ExpressionConditionSchema,r as FieldConditionSchema,i as FieldOperatorSchema,a as JsonObjectSchema,o as JsonValueSchema,s as RuleSchema,c as RuleSetOptionsSchema,l as ScalarValueSchema,p as evaluate,m as evaluateRules};
|
|
1
|
+
import{t as e}from"../esm-CBFWM8u_.mjs";import{ConditionSchema as t,ExpressionConditionSchema as n,FieldConditionSchema as r,FieldOperatorSchema as i,JsonObjectSchema as a,JsonValueSchema as o,RuleSchema as s,RuleSetOptionsSchema as c,ScalarValueSchema as l}from"./schemas.mjs";import{compile as u}from"@makaio/framework/expression";const d=new Map,f=new Map;function p(e,t){if(`$and`in e){for(let n of e.$and)if(!p(n,t))return!1;return!0}if(`$or`in e){for(let n of e.$or)if(p(n,t))return!0;return!1}return`$not`in e?!p(e.$not,t):`$expr`in e?!!_(e.$expr).evalSync(t):h(g(t,e.field),e.operator)}function m(e,t,n={}){let{includeDisabled:r=!1}=n,i=[];for(let n of e)!r&&!n.enabled||p(n.condition,t)&&i.push(n);return i}function h(e,t){if(typeof t!=`object`||!t)return e===t;if(`$eq`in t)return e===t.$eq;if(`$ne`in t)return e!==t.$ne;if(`$in`in t)return t.$in.includes(e);if(`$nin`in t)return!t.$nin.includes(e);if(`$contains`in t)return Array.isArray(e)&&e.includes(t.$contains);if(`$exists`in t){let n=e!==void 0;return t.$exists?n:!n}return`$startsWith`in t?typeof e==`string`&&e.startsWith(t.$startsWith):`$endsWith`in t?typeof e==`string`&&e.endsWith(t.$endsWith):`$glob`in t?typeof e==`string`&&v(t.$glob).match(e):!1}function g(e,t){if(e==null)return;let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function _(e){return y(d,e,()=>u(e))}function v(t){return y(f,t,()=>new e(t))}function y(e,t,n){let r=e.get(t);if(r!==void 0)return e.delete(t),e.set(t,r),r;let i=n();if(e.set(t,i),e.size>256){let t=e.keys().next().value;t!==void 0&&e.delete(t)}return i}export{t as ConditionSchema,n as ExpressionConditionSchema,r as FieldConditionSchema,i as FieldOperatorSchema,a as JsonObjectSchema,o as JsonValueSchema,s as RuleSchema,c as RuleSetOptionsSchema,l as ScalarValueSchema,p as evaluate,m as evaluateRules};
|
package/dist/rules/schemas.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as JsonObjectSchema, c as RuleSetOptionsSchema, i as FieldOperatorSchema, l as ScalarValueSchema, n as ExpressionConditionSchema, o as JsonValueSchema, r as FieldConditionSchema, s as RuleSchema, t as ConditionSchema } from "../schemas-
|
|
1
|
+
import { a as JsonObjectSchema, c as RuleSetOptionsSchema, i as FieldOperatorSchema, l as ScalarValueSchema, n as ExpressionConditionSchema, o as JsonValueSchema, r as FieldConditionSchema, s as RuleSchema, t as ConditionSchema } from "../schemas-B3bfVYcL.mjs";
|
|
2
2
|
export { ConditionSchema, ExpressionConditionSchema, FieldConditionSchema, FieldOperatorSchema, JsonObjectSchema, JsonValueSchema, RuleSchema, RuleSetOptionsSchema, ScalarValueSchema };
|
package/dist/rules/schemas.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as e}from"zod";const t=e.number().finite(),n=e.union([e.string(),t,e.boolean(),e.null()]),r=e.lazy(()=>e.union([e.string(),t,e.boolean(),e.null(),e.array(r),e.record(e.string(),r)])),i=e.record(e.string(),r),a=e.union([n,e.object({$eq:n}).strict(),e.object({$ne:n}).strict(),e.object({$in:e.array(n)}).strict(),e.object({$nin:e.array(n)}).strict(),e.object({$exists:e.boolean()}).strict(),e.object({$startsWith:e.string()}).strict(),e.object({$endsWith:e.string()}).strict(),e.object({$glob:e.string()}).strict()]),o=e.object({field:e.string().min(1),operator:a}).strict(),s=e.object({$expr:e.string().min(1)}).strict(),c=e.lazy(()=>e.union([o,e.object({$and:e.array(c).min(1)}).strict(),e.object({$or:e.array(c).min(1)}).strict(),e.object({$not:c}).strict(),s])),l=e.object({includeDisabled:e.boolean().optional()}).strict();function u(n){return e.object({id:e.string().min(1),name:e.string().min(1),description:e.string().optional(),condition:c,action:n,priority:t,enabled:e.boolean(),metadata:i.optional()}).strict()}export{c as ConditionSchema,s as ExpressionConditionSchema,o as FieldConditionSchema,a as FieldOperatorSchema,i as JsonObjectSchema,r as JsonValueSchema,u as RuleSchema,l as RuleSetOptionsSchema,n as ScalarValueSchema};
|
|
1
|
+
import{z as e}from"zod";const t=e.number().finite(),n=e.union([e.string(),t,e.boolean(),e.null()]),r=e.lazy(()=>e.union([e.string(),t,e.boolean(),e.null(),e.array(r),e.record(e.string(),r)])),i=e.record(e.string(),r),a=e.union([n,e.object({$eq:n}).strict(),e.object({$ne:n}).strict(),e.object({$in:e.array(n)}).strict(),e.object({$nin:e.array(n)}).strict(),e.object({$contains:n}).strict(),e.object({$exists:e.boolean()}).strict(),e.object({$startsWith:e.string()}).strict(),e.object({$endsWith:e.string()}).strict(),e.object({$glob:e.string()}).strict()]),o=e.object({field:e.string().min(1),operator:a}).strict(),s=e.object({$expr:e.string().min(1)}).strict(),c=e.lazy(()=>e.union([o,e.object({$and:e.array(c).min(1)}).strict(),e.object({$or:e.array(c).min(1)}).strict(),e.object({$not:c}).strict(),s])),l=e.object({includeDisabled:e.boolean().optional()}).strict();function u(n){return e.object({id:e.string().min(1),name:e.string().min(1),description:e.string().optional(),condition:c,action:n,priority:t,enabled:e.boolean(),metadata:i.optional()}).strict()}export{c as ConditionSchema,s as ExpressionConditionSchema,o as FieldConditionSchema,a as FieldOperatorSchema,i as JsonObjectSchema,r as JsonValueSchema,u as RuleSchema,l as RuleSetOptionsSchema,n as ScalarValueSchema};
|
|
@@ -15,8 +15,8 @@ declare const SubagentTemplateSchema: z.ZodObject<{
|
|
|
15
15
|
model: z.ZodOptional<z.ZodString>;
|
|
16
16
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
17
17
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
fresh: "fresh";
|
|
19
18
|
fork: "fork";
|
|
19
|
+
fresh: "fresh";
|
|
20
20
|
}>>;
|
|
21
21
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
22
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -45,16 +45,16 @@ 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
|
-
adapterName: z.ZodString;
|
|
49
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
50
48
|
model: z.ZodOptional<z.ZodString>;
|
|
49
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
51
50
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
52
51
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
52
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
53
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
adapterName: z.ZodString;
|
|
55
55
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
fresh: "fresh";
|
|
57
56
|
fork: "fork";
|
|
57
|
+
fresh: "fresh";
|
|
58
58
|
}>>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
|
|
@@ -69,8 +69,8 @@ declare const SubagentTemplateUpdateSchema: z.ZodObject<{
|
|
|
69
69
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
70
70
|
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
71
71
|
contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
72
|
-
fresh: "fresh";
|
|
73
72
|
fork: "fork";
|
|
73
|
+
fresh: "fresh";
|
|
74
74
|
}>>>;
|
|
75
75
|
allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
76
76
|
disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -114,8 +114,8 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
114
114
|
model: z.ZodOptional<z.ZodString>;
|
|
115
115
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
116
116
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
117
|
-
fresh: "fresh";
|
|
118
117
|
fork: "fork";
|
|
118
|
+
fresh: "fresh";
|
|
119
119
|
}>>;
|
|
120
120
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
121
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -130,16 +130,16 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
-
adapterName: z.ZodString;
|
|
134
|
-
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
135
133
|
model: z.ZodOptional<z.ZodString>;
|
|
134
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
136
135
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
137
136
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
137
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
138
|
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
+
adapterName: z.ZodString;
|
|
140
140
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
141
|
-
fresh: "fresh";
|
|
142
141
|
fork: "fork";
|
|
142
|
+
fresh: "fresh";
|
|
143
143
|
}>>;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
response: z.ZodObject<{
|
|
@@ -155,8 +155,8 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
155
155
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
156
156
|
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
157
157
|
contextMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
158
|
-
fresh: "fresh";
|
|
159
158
|
fork: "fork";
|
|
159
|
+
fresh: "fresh";
|
|
160
160
|
}>>>;
|
|
161
161
|
allowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
162
162
|
disallowedTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|