@makaio/framework 1.0.0-dev-1787670071418 → 1.0.0-dev-1787949057928
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/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/index.d.mts +11 -11
- package/dist/contracts/worker-node/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +1 -1
- package/dist/{index-DI2lS7VT.d.mts → index-B9io6JAL.d.mts} +1 -1
- package/dist/{index-D-4jv_66.d.mts → index-BUwDmh1I.d.mts} +17 -17
- package/dist/{index-D_4K3Tf_.d.mts → index-CVNbBtA-.d.mts} +30 -30
- package/dist/{index-DJ2KgJDJ2.d.mts → index-DfUpqwBa2.d.mts} +4 -4
- package/dist/{index-DXtQRehh.d.mts → index-NUByQvlg.d.mts} +14 -14
- package/dist/{index-DNI6UF9h.d.mts → index-cLB38AWX.d.mts} +60 -60
- 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-Dd13TMgU.d.mts → schemas-BAv9RB9M.d.mts} +4 -4
- package/dist/{schemas-BXc9qOpl.d.mts → schemas-CF8QwRqt.d.mts} +2 -0
- package/dist/services/index.d.mts +4 -4
- 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/workflow-engine/index.d.mts +23 -23
- package/package.json +1 -1
|
@@ -817,16 +817,6 @@ 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>;
|
|
830
820
|
relations: z.ZodArray<z.ZodObject<{
|
|
831
821
|
type: z.ZodString;
|
|
832
822
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -851,6 +841,16 @@ declare const ArtifactSchemas: {
|
|
|
851
841
|
locator: z.ZodOptional<z.ZodString>;
|
|
852
842
|
}, z.core.$strip>], "refClass">>;
|
|
853
843
|
}, 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,16 +999,6 @@ 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>;
|
|
1012
1002
|
relations: z.ZodArray<z.ZodObject<{
|
|
1013
1003
|
type: z.ZodString;
|
|
1014
1004
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1033,6 +1023,16 @@ declare const ArtifactSchemas: {
|
|
|
1033
1023
|
locator: z.ZodOptional<z.ZodString>;
|
|
1034
1024
|
}, z.core.$strip>], "refClass">>;
|
|
1035
1025
|
}, 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";
|
|
@@ -2270,16 +2270,6 @@ 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>;
|
|
2283
2273
|
relations: z.ZodArray<z.ZodObject<{
|
|
2284
2274
|
type: z.ZodString;
|
|
2285
2275
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2304,6 +2294,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2304
2294
|
locator: z.ZodOptional<z.ZodString>;
|
|
2305
2295
|
}, z.core.$strip>], "refClass">>;
|
|
2306
2296
|
}, 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,16 +2452,6 @@ 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>;
|
|
2465
2455
|
relations: z.ZodArray<z.ZodObject<{
|
|
2466
2456
|
type: z.ZodString;
|
|
2467
2457
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2486,6 +2476,16 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
|
|
|
2486
2476
|
locator: z.ZodOptional<z.ZodString>;
|
|
2487
2477
|
}, z.core.$strip>], "refClass">>;
|
|
2488
2478
|
}, 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";
|
|
@@ -3737,16 +3737,6 @@ 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>;
|
|
3750
3740
|
relations: z.ZodArray<z.ZodObject<{
|
|
3751
3741
|
type: z.ZodString;
|
|
3752
3742
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3771,6 +3761,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3771
3761
|
locator: z.ZodOptional<z.ZodString>;
|
|
3772
3762
|
}, z.core.$strip>], "refClass">>;
|
|
3773
3763
|
}, 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,16 +3919,6 @@ 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>;
|
|
3932
3922
|
relations: z.ZodArray<z.ZodObject<{
|
|
3933
3923
|
type: z.ZodString;
|
|
3934
3924
|
target: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3953,6 +3943,16 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
3953
3943
|
locator: z.ZodOptional<z.ZodString>;
|
|
3954
3944
|
}, z.core.$strip>], "refClass">>;
|
|
3955
3945
|
}, 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";
|
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-CF8QwRqt.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-i-S5TW72.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};
|
|
1
|
+
import{t as e}from"../esm-i-S5TW72.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(`$containsPrefix`in t)return Array.isArray(e)&&e.some(e=>typeof e==`string`&&e.startsWith(t.$containsPrefix));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-CF8QwRqt.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({$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};
|
|
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({$containsPrefix:e.string()}).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};
|
|
@@ -45,10 +45,9 @@ 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
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
49
49
|
model: z.ZodOptional<z.ZodString>;
|
|
50
50
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
51
|
-
providerConfigId: 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>>;
|
|
@@ -56,6 +55,7 @@ declare const SubagentTemplateCreateSchema: z.ZodObject<{
|
|
|
56
55
|
fork: "fork";
|
|
57
56
|
fresh: "fresh";
|
|
58
57
|
}>>;
|
|
58
|
+
adapterName: z.ZodString;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
type SubagentTemplateCreate = z.infer<typeof SubagentTemplateCreateSchema>;
|
|
61
61
|
/**
|
|
@@ -130,10 +130,9 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
130
130
|
request: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
-
|
|
133
|
+
providerConfigId: z.ZodOptional<z.ZodString>;
|
|
134
134
|
model: z.ZodOptional<z.ZodString>;
|
|
135
135
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
136
|
-
providerConfigId: 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>>;
|
|
@@ -141,6 +140,7 @@ declare const SubagentTemplateSettingsSchemas: {
|
|
|
141
140
|
fork: "fork";
|
|
142
141
|
fresh: "fresh";
|
|
143
142
|
}>>;
|
|
143
|
+
adapterName: z.ZodString;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
response: z.ZodObject<{
|
|
146
146
|
id: z.ZodString;
|
|
@@ -35,7 +35,7 @@ import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModel
|
|
|
35
35
|
import { a as InternalPendingRequest, c as SubagentServiceToken, d as SubagentFailureFinalizationError, f as SubagentFailureFinalizationErrorCode, i as InputResolver, l as createSubagentServicePackage, n as TrackOptions, o as SpawnOptions, p as SubagentService, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as subagentServicePackage } from "../index-VzLAV0Yt.mjs";
|
|
36
36
|
import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-Pe892GgN.mjs";
|
|
37
37
|
import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-YmE8XCCL.mjs";
|
|
38
|
-
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-
|
|
38
|
+
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-BAv9RB9M.mjs";
|
|
39
39
|
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-BGRHcrmp.mjs";
|
|
40
40
|
import * as _$zod from "zod";
|
|
41
41
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -5096,8 +5096,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
5096
5096
|
id: _$zod.ZodString;
|
|
5097
5097
|
config: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
5098
5098
|
enabled: _$zod.ZodBoolean;
|
|
5099
|
-
scope: _$zod.ZodString;
|
|
5100
5099
|
extensionName: _$zod.ZodString;
|
|
5100
|
+
scope: _$zod.ZodString;
|
|
5101
5101
|
}, _$zod_v4_core0.$strip>;
|
|
5102
5102
|
}, _$zod_v4_core0.$strip>;
|
|
5103
5103
|
response: _$zod.ZodObject<{
|
|
@@ -7731,10 +7731,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
7731
7731
|
request: _$zod.ZodObject<{
|
|
7732
7732
|
name: _$zod.ZodString;
|
|
7733
7733
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
7734
|
-
|
|
7734
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7735
7735
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7736
7736
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7737
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7738
7737
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
7739
7738
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
7740
7739
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
@@ -7742,6 +7741,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
7742
7741
|
fork: "fork";
|
|
7743
7742
|
fresh: "fresh";
|
|
7744
7743
|
}>>;
|
|
7744
|
+
adapterName: _$zod.ZodString;
|
|
7745
7745
|
}, _$zod_v4_core0.$strip>;
|
|
7746
7746
|
response: _$zod.ZodObject<{
|
|
7747
7747
|
id: _$zod.ZodString;
|
|
@@ -512,10 +512,9 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
|
|
|
512
512
|
request: _$zod.ZodObject<{
|
|
513
513
|
name: _$zod.ZodString;
|
|
514
514
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
515
|
-
|
|
515
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
516
516
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
517
517
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
518
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
519
518
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
520
519
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
521
520
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
@@ -523,6 +522,7 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
|
|
|
523
522
|
fork: "fork";
|
|
524
523
|
fresh: "fresh";
|
|
525
524
|
}>>;
|
|
525
|
+
adapterName: _$zod.ZodString;
|
|
526
526
|
}, _$zod_v4_core0.$strip>;
|
|
527
527
|
response: _$zod.ZodObject<{
|
|
528
528
|
id: _$zod.ZodString;
|
|
@@ -603,10 +603,9 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
|
|
|
603
603
|
request: _$zod.ZodObject<{
|
|
604
604
|
name: _$zod.ZodString;
|
|
605
605
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
606
|
-
|
|
606
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
607
607
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
608
608
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
609
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
610
609
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
611
610
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
612
611
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
@@ -614,6 +613,7 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
|
|
|
614
613
|
fork: "fork";
|
|
615
614
|
fresh: "fresh";
|
|
616
615
|
}>>;
|
|
616
|
+
adapterName: _$zod.ZodString;
|
|
617
617
|
}, _$zod_v4_core0.$strip>;
|
|
618
618
|
response: _$zod.ZodObject<{
|
|
619
619
|
id: _$zod.ZodString;
|
|
@@ -18,8 +18,8 @@ declare const ExtensionConfigInputSchema: z.ZodObject<{
|
|
|
18
18
|
id: z.ZodString;
|
|
19
19
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
20
|
enabled: z.ZodBoolean;
|
|
21
|
-
scope: z.ZodString;
|
|
22
21
|
extensionName: z.ZodString;
|
|
22
|
+
scope: z.ZodString;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
/** Query schema for listing extension configs. */
|
|
25
25
|
declare const ExtensionConfigListQuerySchema: z.ZodObject<{
|
|
@@ -63,8 +63,8 @@ declare const ExtensionConfigStorageNamespace: _$_makaio_storage_core0.StorageNa
|
|
|
63
63
|
id: z.ZodString;
|
|
64
64
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
65
|
enabled: z.ZodBoolean;
|
|
66
|
-
scope: z.ZodString;
|
|
67
66
|
extensionName: z.ZodString;
|
|
67
|
+
scope: z.ZodString;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
70
|
response: z.ZodObject<{
|
|
@@ -131,8 +131,8 @@ declare const ExtensionConfigStorageSubjects: _$_makaio_core0.BusSubjects<_$_mak
|
|
|
131
131
|
id: z.ZodString;
|
|
132
132
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
133
|
enabled: z.ZodBoolean;
|
|
134
|
-
scope: z.ZodString;
|
|
135
134
|
extensionName: z.ZodString;
|
|
135
|
+
scope: z.ZodString;
|
|
136
136
|
}, z.core.$strip>;
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
response: z.ZodObject<{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-
|
|
1
|
+
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-BAv9RB9M.mjs";
|
|
2
2
|
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../../namespace-BGRHcrmp.mjs";
|
|
3
3
|
export { type SubagentTemplate, SubagentTemplateCompletedEventSchema, type SubagentTemplateCreate, SubagentTemplateCreateSchema, type SubagentTemplateInstance, SubagentTemplateInstanceSchema, type SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelNamespace, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, type SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSubjects, type SubagentTemplateSummary, SubagentTemplateSummarySchema, type SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-
|
|
1
|
+
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-BAv9RB9M.mjs";
|
|
2
2
|
export { SubagentTemplate, SubagentTemplateCompletedEventSchema, SubagentTemplateCreate, SubagentTemplateCreateSchema, SubagentTemplateInstance, SubagentTemplateInstanceSchema, SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSummary, SubagentTemplateSummarySchema, SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
|