@loopstack/core 0.0.4 → 0.0.5
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/CHANGELOG.md +8 -0
- package/dist/config-provider.service.js.map +1 -1
- package/dist/modules/common/services/document-helper.service.d.ts +48 -48
- package/dist/modules/common/services/expression-evaluator.service.js.map +1 -1
- package/dist/modules/configuration/services/config-provider.registry.js.map +1 -1
- package/dist/modules/configuration/services/configuration.service.js +34 -21
- package/dist/modules/configuration/services/configuration.service.js.map +1 -1
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js +6 -4
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/state-machine-config.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/state-machine-processor.service.d.ts +1 -2
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js +1 -23
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/tool-execution.service.d.ts +1 -0
- package/dist/modules/workflow-processor/services/tool-execution.service.js +22 -0
- package/dist/modules/workflow-processor/services/tool-execution.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-processor.service.d.ts +5 -2
- package/dist/modules/workflow-processor/services/workflow-processor.service.js +27 -4
- package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/add-namespace.service.js +4 -2
- package/dist/modules/workflow-processor/tools/add-namespace.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/batch-create-documents.service.js +8 -4
- package/dist/modules/workflow-processor/tools/batch-create-documents.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/create-document.service.d.ts +86 -86
- package/dist/modules/workflow-processor/tools/create-document.service.js +8 -4
- package/dist/modules/workflow-processor/tools/create-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/debug.service.js +6 -2
- package/dist/modules/workflow-processor/tools/debug.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/load-document.service.d.ts +84 -9
- package/dist/modules/workflow-processor/tools/load-document.service.js +4 -2
- package/dist/modules/workflow-processor/tools/load-document.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/set-context.service.js +8 -4
- package/dist/modules/workflow-processor/tools/set-context.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/tool-call.service.js +8 -4
- package/dist/modules/workflow-processor/tools/tool-call.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/transition-selector.service.js +8 -4
- package/dist/modules/workflow-processor/tools/transition-selector.service.js.map +1 -1
- package/dist/modules/workflow-processor/tools/update-document.service.d.ts +44 -44
- package/dist/modules/workflow-processor/tools/update-document.service.js +8 -4
- package/dist/modules/workflow-processor/tools/update-document.service.js.map +1 -1
- package/dist/utils/load-configuration.js +1 -1
- package/package.json +2 -2
|
@@ -25,16 +25,20 @@ let CreateDocumentService = CreateDocumentService_1 = class CreateDocumentServic
|
|
|
25
25
|
documentHelperService;
|
|
26
26
|
valueParserService;
|
|
27
27
|
logger = new common_1.Logger(CreateDocumentService_1.name);
|
|
28
|
-
configSchema = zod_1.z
|
|
28
|
+
configSchema = zod_1.z
|
|
29
|
+
.object({
|
|
29
30
|
document: zod_1.z.string().optional(),
|
|
30
31
|
update: shared_1.DocumentConfigSchema.partial().optional(),
|
|
31
32
|
create: shared_1.DocumentConfigSchema.optional(),
|
|
32
|
-
})
|
|
33
|
-
|
|
33
|
+
})
|
|
34
|
+
.strict();
|
|
35
|
+
schema = zod_1.z
|
|
36
|
+
.object({
|
|
34
37
|
document: zod_1.z.string().optional(),
|
|
35
38
|
update: shared_1.PartialDocumentSchema.optional(),
|
|
36
39
|
create: shared_1.DocumentSchema.optional(),
|
|
37
|
-
})
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
38
42
|
constructor(actionHelperService, loopConfigService, documentService, documentHelperService, valueParserService) {
|
|
39
43
|
this.actionHelperService = actionHelperService;
|
|
40
44
|
this.loopConfigService = loopConfigService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/create-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAU2B;AAC3B,yCAIsB;AACtB,uDAA2D;AAE3D,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAIxB,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"file":"create-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/create-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAU2B;AAC3B,yCAIsB;AACtB,uDAA2D;AAE3D,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAIxB,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAmBtB;IACA;IACA;IACA;IACA;IAtBO,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IACjE,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,6BAAoB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACjD,MAAM,EAAE,6BAAoB,CAAC,QAAQ,EAAE;KACxC,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,MAAM,GAAG,OAAC;SACP,MAAM,CAAC;QACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,8BAAqB,CAAC,QAAQ,EAAE;QACxC,MAAM,EAAE,uBAAc,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,YACU,mBAA2C,EAC3C,iBAAuC,EACvC,eAAgC,EAChC,qBAA4C,EAC5C,kBAAsC;QAJtC,wBAAmB,GAAnB,mBAAmB,C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AED,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CACvC,YAAuC,CACxC,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC;QAE7D,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAC1C,QAAQ,EACR,OAAO,EACP,eAAe,EACf,YAAuC,CACxC,CAAC;QAEF,OAAO;YACL,QAAQ;YACR,YAAY,EAAE,IAAI;YAClB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;CACF,CAAA;AA1FY,sDAAqB;gCAArB,qBAAqB;IAFjC,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;qCAoB0B,+BAAsB;QACxB,oCAAoB;QACtB,6BAAe;QACT,8BAAqB;QACxB,2BAAkB;GAvBrC,qBAAqB,CA0FjC"}
|
|
@@ -16,11 +16,15 @@ let DebugService = DebugService_1 = class DebugService {
|
|
|
16
16
|
configSchema = zod_1.z
|
|
17
17
|
.object({
|
|
18
18
|
message: zod_1.z.string().optional(),
|
|
19
|
-
})
|
|
19
|
+
})
|
|
20
|
+
.strict()
|
|
21
|
+
.optional();
|
|
20
22
|
schema = zod_1.z
|
|
21
23
|
.object({
|
|
22
24
|
message: zod_1.z.string().optional(),
|
|
23
|
-
})
|
|
25
|
+
})
|
|
26
|
+
.strict()
|
|
27
|
+
.optional();
|
|
24
28
|
async apply(props) {
|
|
25
29
|
this.logger.log(props?.message ?? 'no message');
|
|
26
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/debug.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAAoE;AAI7D,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACN,MAAM,GAAG,IAAI,eAAM,CAAC,cAAY,CAAC,IAAI,CAAC,CAAC;IAExD,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,
|
|
1
|
+
{"version":3,"file":"debug.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/debug.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAAoE;AAI7D,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACN,MAAM,GAAG,IAAI,eAAM,CAAC,cAAY,CAAC,IAAI,CAAC,CAAC;IAExD,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,EAAE,CAAC;IAEd,MAAM,GAAG,OAAC;SACP,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,EAAE,CAAC;IAEd,KAAK,CAAC,KAAK,CAAC,KAAkC;QAC5C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,IAAI,YAAY,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AApBY,oCAAY;uBAAZ,YAAY;IAFxB,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;GACM,YAAY,CAoBxB"}
|
|
@@ -4,7 +4,22 @@ import { ExpressionEvaluatorService } from '../../common';
|
|
|
4
4
|
import { DocumentEntity, WorkflowEntity } from '@loopstack/shared';
|
|
5
5
|
import { DocumentService, WorkflowService } from '../../persistence';
|
|
6
6
|
declare const LoadDocumentArgsSchema: z.ZodObject<{
|
|
7
|
-
where: any
|
|
7
|
+
where: z.ZodUnion<[z.ZodRecord<z.ZodString, any>, z.ZodObject<{
|
|
8
|
+
and: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
or: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
and?: any[] | undefined;
|
|
12
|
+
or?: any[] | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
and?: any[] | undefined;
|
|
15
|
+
or?: any[] | undefined;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
brackets: any;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
brackets?: any;
|
|
20
|
+
}, {
|
|
21
|
+
brackets?: any;
|
|
22
|
+
}>]>;
|
|
8
23
|
map: z.ZodOptional<z.ZodString>;
|
|
9
24
|
filter: z.ZodOptional<z.ZodString>;
|
|
10
25
|
sort: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -24,12 +39,17 @@ declare const LoadDocumentArgsSchema: z.ZodObject<{
|
|
|
24
39
|
global: z.ZodOptional<z.ZodBoolean>;
|
|
25
40
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
26
41
|
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
where: Record<string, any> | {
|
|
43
|
+
brackets?: any;
|
|
44
|
+
} | {
|
|
45
|
+
and?: any[] | undefined;
|
|
46
|
+
or?: any[] | undefined;
|
|
47
|
+
};
|
|
27
48
|
sort?: boolean | undefined;
|
|
28
49
|
map?: string | undefined;
|
|
29
50
|
filter?: string | undefined;
|
|
30
51
|
flat?: boolean | undefined;
|
|
31
52
|
many?: boolean | undefined;
|
|
32
|
-
where?: any;
|
|
33
53
|
sortBy?: {
|
|
34
54
|
iteratees: string[];
|
|
35
55
|
orders: ("asc" | "desc")[];
|
|
@@ -38,12 +58,17 @@ declare const LoadDocumentArgsSchema: z.ZodObject<{
|
|
|
38
58
|
global?: boolean | undefined;
|
|
39
59
|
optional?: boolean | undefined;
|
|
40
60
|
}, {
|
|
61
|
+
where: Record<string, any> | {
|
|
62
|
+
brackets?: any;
|
|
63
|
+
} | {
|
|
64
|
+
and?: any[] | undefined;
|
|
65
|
+
or?: any[] | undefined;
|
|
66
|
+
};
|
|
41
67
|
sort?: boolean | undefined;
|
|
42
68
|
map?: string | undefined;
|
|
43
69
|
filter?: string | undefined;
|
|
44
70
|
flat?: boolean | undefined;
|
|
45
71
|
many?: boolean | undefined;
|
|
46
|
-
where?: any;
|
|
47
72
|
sortBy?: {
|
|
48
73
|
iteratees: string[];
|
|
49
74
|
orders: ("asc" | "desc")[];
|
|
@@ -59,7 +84,22 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
59
84
|
private functionCallService;
|
|
60
85
|
private readonly logger;
|
|
61
86
|
configSchema: z.ZodObject<{
|
|
62
|
-
where: any
|
|
87
|
+
where: z.ZodUnion<[z.ZodRecord<z.ZodString, any>, z.ZodObject<{
|
|
88
|
+
and: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
89
|
+
or: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
and?: any[] | undefined;
|
|
92
|
+
or?: any[] | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
and?: any[] | undefined;
|
|
95
|
+
or?: any[] | undefined;
|
|
96
|
+
}>, z.ZodObject<{
|
|
97
|
+
brackets: any;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
brackets?: any;
|
|
100
|
+
}, {
|
|
101
|
+
brackets?: any;
|
|
102
|
+
}>]>;
|
|
63
103
|
map: z.ZodOptional<z.ZodString>;
|
|
64
104
|
filter: z.ZodOptional<z.ZodString>;
|
|
65
105
|
sort: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -79,12 +119,17 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
79
119
|
global: z.ZodOptional<z.ZodBoolean>;
|
|
80
120
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
81
121
|
}, "strict", z.ZodTypeAny, {
|
|
122
|
+
where: Record<string, any> | {
|
|
123
|
+
brackets?: any;
|
|
124
|
+
} | {
|
|
125
|
+
and?: any[] | undefined;
|
|
126
|
+
or?: any[] | undefined;
|
|
127
|
+
};
|
|
82
128
|
sort?: boolean | undefined;
|
|
83
129
|
map?: string | undefined;
|
|
84
130
|
filter?: string | undefined;
|
|
85
131
|
flat?: boolean | undefined;
|
|
86
132
|
many?: boolean | undefined;
|
|
87
|
-
where?: any;
|
|
88
133
|
sortBy?: {
|
|
89
134
|
iteratees: string[];
|
|
90
135
|
orders: ("asc" | "desc")[];
|
|
@@ -93,12 +138,17 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
93
138
|
global?: boolean | undefined;
|
|
94
139
|
optional?: boolean | undefined;
|
|
95
140
|
}, {
|
|
141
|
+
where: Record<string, any> | {
|
|
142
|
+
brackets?: any;
|
|
143
|
+
} | {
|
|
144
|
+
and?: any[] | undefined;
|
|
145
|
+
or?: any[] | undefined;
|
|
146
|
+
};
|
|
96
147
|
sort?: boolean | undefined;
|
|
97
148
|
map?: string | undefined;
|
|
98
149
|
filter?: string | undefined;
|
|
99
150
|
flat?: boolean | undefined;
|
|
100
151
|
many?: boolean | undefined;
|
|
101
|
-
where?: any;
|
|
102
152
|
sortBy?: {
|
|
103
153
|
iteratees: string[];
|
|
104
154
|
orders: ("asc" | "desc")[];
|
|
@@ -108,7 +158,22 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
108
158
|
optional?: boolean | undefined;
|
|
109
159
|
}>;
|
|
110
160
|
schema: z.ZodObject<{
|
|
111
|
-
where: any
|
|
161
|
+
where: z.ZodUnion<[z.ZodRecord<z.ZodString, any>, z.ZodObject<{
|
|
162
|
+
and: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
163
|
+
or: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
and?: any[] | undefined;
|
|
166
|
+
or?: any[] | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
and?: any[] | undefined;
|
|
169
|
+
or?: any[] | undefined;
|
|
170
|
+
}>, z.ZodObject<{
|
|
171
|
+
brackets: any;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
brackets?: any;
|
|
174
|
+
}, {
|
|
175
|
+
brackets?: any;
|
|
176
|
+
}>]>;
|
|
112
177
|
map: z.ZodOptional<z.ZodString>;
|
|
113
178
|
filter: z.ZodOptional<z.ZodString>;
|
|
114
179
|
sort: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -128,12 +193,17 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
128
193
|
global: z.ZodOptional<z.ZodBoolean>;
|
|
129
194
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
130
195
|
}, "strict", z.ZodTypeAny, {
|
|
196
|
+
where: Record<string, any> | {
|
|
197
|
+
brackets?: any;
|
|
198
|
+
} | {
|
|
199
|
+
and?: any[] | undefined;
|
|
200
|
+
or?: any[] | undefined;
|
|
201
|
+
};
|
|
131
202
|
sort?: boolean | undefined;
|
|
132
203
|
map?: string | undefined;
|
|
133
204
|
filter?: string | undefined;
|
|
134
205
|
flat?: boolean | undefined;
|
|
135
206
|
many?: boolean | undefined;
|
|
136
|
-
where?: any;
|
|
137
207
|
sortBy?: {
|
|
138
208
|
iteratees: string[];
|
|
139
209
|
orders: ("asc" | "desc")[];
|
|
@@ -142,12 +212,17 @@ export declare class LoadDocumentService implements ToolInterface {
|
|
|
142
212
|
global?: boolean | undefined;
|
|
143
213
|
optional?: boolean | undefined;
|
|
144
214
|
}, {
|
|
215
|
+
where: Record<string, any> | {
|
|
216
|
+
brackets?: any;
|
|
217
|
+
} | {
|
|
218
|
+
and?: any[] | undefined;
|
|
219
|
+
or?: any[] | undefined;
|
|
220
|
+
};
|
|
145
221
|
sort?: boolean | undefined;
|
|
146
222
|
map?: string | undefined;
|
|
147
223
|
filter?: string | undefined;
|
|
148
224
|
flat?: boolean | undefined;
|
|
149
225
|
many?: boolean | undefined;
|
|
150
|
-
where?: any;
|
|
151
226
|
sortBy?: {
|
|
152
227
|
iteratees: string[];
|
|
153
228
|
orders: ("asc" | "desc")[];
|
|
@@ -20,7 +20,8 @@ const shared_1 = require("@loopstack/shared");
|
|
|
20
20
|
const zod_1 = require("zod");
|
|
21
21
|
const common_2 = require("../../common");
|
|
22
22
|
const persistence_1 = require("../../persistence");
|
|
23
|
-
const LoadDocumentArgsSchema = zod_1.z
|
|
23
|
+
const LoadDocumentArgsSchema = zod_1.z
|
|
24
|
+
.object({
|
|
24
25
|
where: persistence_1.WhereCondition,
|
|
25
26
|
map: zod_1.z.string().optional(),
|
|
26
27
|
filter: zod_1.z.string().optional(),
|
|
@@ -36,7 +37,8 @@ const LoadDocumentArgsSchema = zod_1.z.object({
|
|
|
36
37
|
ignoreChanges: zod_1.z.boolean().optional(),
|
|
37
38
|
global: zod_1.z.boolean().optional(),
|
|
38
39
|
optional: zod_1.z.boolean().optional(),
|
|
39
|
-
})
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
40
42
|
let LoadDocumentService = LoadDocumentService_1 = class LoadDocumentService {
|
|
41
43
|
documentService;
|
|
42
44
|
workflowService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/load-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,oDAAuB;AACvB,8CAO2B;AAC3B,6BAAwB;AACxB,yCAA0D;AAE1D,mDAI2B;AAE3B,MAAM,sBAAsB,GAAG,OAAC,
|
|
1
|
+
{"version":3,"file":"load-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/load-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,oDAAuB;AACvB,8CAO2B;AAC3B,6BAAwB;AACxB,yCAA0D;AAE1D,mDAI2B;AAE3B,MAAM,sBAAsB,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,KAAK,EAAE,4BAAc;IACrB,GAAG,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,CAC3C,CAAC;YACJ,CAAC;YAED,MAAM,qBAAqB,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzE,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM,CAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CACvD,CAAC;YACF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAC;YAE/C,IAAI,CAAC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACtC,KAAK,EACL,eAAe,EACf,UAAU,CACX,CAAC;QAEF,OAAO;YACL,QAAQ;YACR,IAAI,EAAE,UAAU;SACjB,CAAC;IACJ,CAAC;CACF,CAAA;AA1LY,kDAAmB;8BAAnB,mBAAmB;IAF/B,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;qCAOsB,6BAAe;QACf,6BAAe;QACX,mCAA0B;GAR9C,mBAAmB,CA0L/B"}
|
|
@@ -13,14 +13,18 @@ const zod_1 = require("zod");
|
|
|
13
13
|
const shared_1 = require("@loopstack/shared");
|
|
14
14
|
let SetContextService = SetContextService_1 = class SetContextService {
|
|
15
15
|
logger = new common_1.Logger(SetContextService_1.name);
|
|
16
|
-
configSchema = zod_1.z
|
|
16
|
+
configSchema = zod_1.z
|
|
17
|
+
.object({
|
|
17
18
|
key: zod_1.z.string(),
|
|
18
19
|
value: zod_1.z.any(),
|
|
19
|
-
})
|
|
20
|
-
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
schema = zod_1.z
|
|
23
|
+
.object({
|
|
21
24
|
key: zod_1.z.string(),
|
|
22
25
|
value: zod_1.z.any(),
|
|
23
|
-
})
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
24
28
|
async apply(props, workflow) {
|
|
25
29
|
const validOptions = this.schema.parse(props);
|
|
26
30
|
if (!workflow) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-context.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/set-context.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAAoE;AAK7D,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IACX,MAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAE7D,YAAY,GAAG,OAAC,
|
|
1
|
+
{"version":3,"file":"set-context.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/set-context.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAAoE;AAK7D,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IACX,MAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAE7D,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;KACf,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,MAAM,GAAG,OAAC;SACP,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;KACf,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,KAAK,CAAC,KAAK,CACT,KAAkC,EAClC,QAAoC;QAEpC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE9C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;YAC5B,QAAQ,CAAC,aAAa,GAAG,EAAE,CAAC;QAC9B,CAAC;QAED,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;QAE9D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC;QAEnE,OAAO;YACL,QAAQ;SACT,CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,8CAAiB;4BAAjB,iBAAiB;IAF7B,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;GACM,iBAAiB,CAuC7B"}
|
|
@@ -18,14 +18,18 @@ const index_1 = require("../index");
|
|
|
18
18
|
let ToolCallService = ToolCallService_1 = class ToolCallService {
|
|
19
19
|
toolExecutionService;
|
|
20
20
|
logger = new common_1.Logger(ToolCallService_1.name);
|
|
21
|
-
configSchema = zod_1.z
|
|
21
|
+
configSchema = zod_1.z
|
|
22
|
+
.object({
|
|
22
23
|
tool: zod_1.z.string(),
|
|
23
24
|
options: zod_1.z.any().optional(),
|
|
24
|
-
})
|
|
25
|
-
|
|
25
|
+
})
|
|
26
|
+
.strict();
|
|
27
|
+
schema = zod_1.z
|
|
28
|
+
.object({
|
|
26
29
|
tool: zod_1.z.string(),
|
|
27
30
|
options: zod_1.z.any().optional(),
|
|
28
|
-
})
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
29
33
|
constructor(toolExecutionService) {
|
|
30
34
|
this.toolExecutionService = toolExecutionService;
|
|
31
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/tool-call.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAO2B;AAC3B,oCAAgD;AAIzC,IAAM,eAAe,uBAArB,MAAM,eAAe;
|
|
1
|
+
{"version":3,"file":"tool-call.service.js","sourceRoot":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,22 @@ const zod_1 = require("zod");
|
|
|
13
13
|
const shared_1 = require("@loopstack/shared");
|
|
14
14
|
let TransitionSelectorService = TransitionSelectorService_1 = class TransitionSelectorService {
|
|
15
15
|
logger = new common_1.Logger(TransitionSelectorService_1.name);
|
|
16
|
-
configSchema = zod_1.z
|
|
16
|
+
configSchema = zod_1.z
|
|
17
|
+
.object({
|
|
17
18
|
transitions: zod_1.z.array(zod_1.z.object({
|
|
18
19
|
place: shared_1.NonExpressionString,
|
|
19
20
|
condition: shared_1.ExpressionString.optional(),
|
|
20
21
|
})),
|
|
21
|
-
})
|
|
22
|
-
|
|
22
|
+
})
|
|
23
|
+
.strict();
|
|
24
|
+
schema = zod_1.z
|
|
25
|
+
.object({
|
|
23
26
|
transitions: zod_1.z.array(zod_1.z.object({
|
|
24
27
|
place: shared_1.NonExpressionString,
|
|
25
28
|
condition: zod_1.z.union([zod_1.z.boolean(), zod_1.z.undefined()]),
|
|
26
29
|
})),
|
|
27
|
-
})
|
|
30
|
+
})
|
|
31
|
+
.strict();
|
|
28
32
|
async apply(props) {
|
|
29
33
|
const validOptions = this.schema.parse(props);
|
|
30
34
|
let place;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition-selector.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/transition-selector.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAiC;AACjC,8CAM2B;AAIpB,IAAM,yBAAyB,iCAA/B,MAAM,yBAAyB;IACnB,MAAM,GAAG,IAAI,eAAM,CAAC,2BAAyB,CAAC,IAAI,CAAC,CAAC;IAErE,YAAY,GAAG,OAAC,
|
|
1
|
+
{"version":3,"file":"transition-selector.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/transition-selector.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAiC;AACjC,8CAM2B;AAIpB,IAAM,yBAAyB,iCAA/B,MAAM,yBAAyB;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;
|
|
22
22
|
data: z.ZodOptional<z.ZodAny>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
data?: any;
|
|
25
24
|
invalidate?: string | boolean | undefined;
|
|
25
|
+
data?: any;
|
|
26
26
|
mimeType?: string | undefined;
|
|
27
27
|
enableTransitions?: string[] | undefined;
|
|
28
28
|
enableAtPlaces?: string[] | undefined;
|
|
29
29
|
hideAtPlaces?: string[] | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
data?: any;
|
|
32
31
|
invalidate?: string | boolean | undefined;
|
|
32
|
+
data?: any;
|
|
33
33
|
mimeType?: string | undefined;
|
|
34
34
|
enableTransitions?: string[] | undefined;
|
|
35
35
|
enableAtPlaces?: string[] | undefined;
|
|
@@ -37,66 +37,66 @@ export declare class UpdateDocumentService implements ToolInterface {
|
|
|
37
37
|
}>>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
name?: string | undefined;
|
|
40
|
-
content?: any;
|
|
41
|
-
schema?: any;
|
|
42
|
-
ui?: any;
|
|
43
|
-
tags?: string | string[] | undefined;
|
|
44
40
|
meta?: {
|
|
45
|
-
data?: any;
|
|
46
41
|
invalidate?: string | boolean | undefined;
|
|
42
|
+
data?: any;
|
|
47
43
|
mimeType?: string | undefined;
|
|
48
44
|
enableTransitions?: string[] | undefined;
|
|
49
45
|
enableAtPlaces?: string[] | undefined;
|
|
50
46
|
hideAtPlaces?: string[] | undefined;
|
|
51
47
|
} | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
name?: string | undefined;
|
|
54
48
|
content?: any;
|
|
55
49
|
schema?: any;
|
|
56
50
|
ui?: any;
|
|
57
51
|
tags?: string | string[] | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
name?: string | undefined;
|
|
58
54
|
meta?: {
|
|
59
|
-
data?: any;
|
|
60
55
|
invalidate?: string | boolean | undefined;
|
|
56
|
+
data?: any;
|
|
61
57
|
mimeType?: string | undefined;
|
|
62
58
|
enableTransitions?: string[] | undefined;
|
|
63
59
|
enableAtPlaces?: string[] | undefined;
|
|
64
60
|
hideAtPlaces?: string[] | undefined;
|
|
65
61
|
} | undefined;
|
|
62
|
+
content?: any;
|
|
63
|
+
schema?: any;
|
|
64
|
+
ui?: any;
|
|
65
|
+
tags?: string | string[] | undefined;
|
|
66
66
|
}>>;
|
|
67
67
|
}, "strict", z.ZodTypeAny, {
|
|
68
68
|
id: string;
|
|
69
69
|
update?: {
|
|
70
70
|
name?: string | undefined;
|
|
71
|
-
content?: any;
|
|
72
|
-
schema?: any;
|
|
73
|
-
ui?: any;
|
|
74
|
-
tags?: string | string[] | undefined;
|
|
75
71
|
meta?: {
|
|
76
|
-
data?: any;
|
|
77
72
|
invalidate?: string | boolean | undefined;
|
|
73
|
+
data?: any;
|
|
78
74
|
mimeType?: string | undefined;
|
|
79
75
|
enableTransitions?: string[] | undefined;
|
|
80
76
|
enableAtPlaces?: string[] | undefined;
|
|
81
77
|
hideAtPlaces?: string[] | undefined;
|
|
82
78
|
} | undefined;
|
|
79
|
+
content?: any;
|
|
80
|
+
schema?: any;
|
|
81
|
+
ui?: any;
|
|
82
|
+
tags?: string | string[] | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
id: string;
|
|
86
86
|
update?: {
|
|
87
87
|
name?: string | undefined;
|
|
88
|
-
content?: any;
|
|
89
|
-
schema?: any;
|
|
90
|
-
ui?: any;
|
|
91
|
-
tags?: string | string[] | undefined;
|
|
92
88
|
meta?: {
|
|
93
|
-
data?: any;
|
|
94
89
|
invalidate?: string | boolean | undefined;
|
|
90
|
+
data?: any;
|
|
95
91
|
mimeType?: string | undefined;
|
|
96
92
|
enableTransitions?: string[] | undefined;
|
|
97
93
|
enableAtPlaces?: string[] | undefined;
|
|
98
94
|
hideAtPlaces?: string[] | undefined;
|
|
99
95
|
} | undefined;
|
|
96
|
+
content?: any;
|
|
97
|
+
schema?: any;
|
|
98
|
+
ui?: any;
|
|
99
|
+
tags?: string | string[] | undefined;
|
|
100
100
|
} | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
schema: z.ZodObject<{
|
|
@@ -115,82 +115,82 @@ export declare class UpdateDocumentService implements ToolInterface {
|
|
|
115
115
|
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
116
116
|
data: z.ZodOptional<z.ZodAny>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
data?: any;
|
|
119
118
|
invalidate?: boolean | undefined;
|
|
120
|
-
|
|
119
|
+
data?: any;
|
|
120
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
121
121
|
enableTransitions?: string[] | undefined;
|
|
122
122
|
enableAtPlaces?: string[] | undefined;
|
|
123
123
|
hideAtPlaces?: string[] | undefined;
|
|
124
124
|
}, {
|
|
125
|
-
data?: any;
|
|
126
125
|
invalidate?: boolean | undefined;
|
|
127
|
-
|
|
126
|
+
data?: any;
|
|
127
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
128
128
|
enableTransitions?: string[] | undefined;
|
|
129
129
|
enableAtPlaces?: string[] | undefined;
|
|
130
130
|
hideAtPlaces?: string[] | undefined;
|
|
131
131
|
}>>>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
schema?: any;
|
|
133
134
|
name?: string | undefined;
|
|
134
135
|
content?: any;
|
|
136
|
+
ui?: any;
|
|
137
|
+
tags?: string[] | undefined;
|
|
135
138
|
meta?: {
|
|
136
|
-
data?: any;
|
|
137
139
|
invalidate?: boolean | undefined;
|
|
138
|
-
|
|
140
|
+
data?: any;
|
|
141
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
139
142
|
enableTransitions?: string[] | undefined;
|
|
140
143
|
enableAtPlaces?: string[] | undefined;
|
|
141
144
|
hideAtPlaces?: string[] | undefined;
|
|
142
145
|
} | undefined;
|
|
143
|
-
schema?: any;
|
|
144
|
-
ui?: any;
|
|
145
|
-
tags?: string[] | undefined;
|
|
146
146
|
}, {
|
|
147
|
+
schema?: any;
|
|
147
148
|
name?: string | undefined;
|
|
148
149
|
content?: any;
|
|
150
|
+
ui?: any;
|
|
151
|
+
tags?: string[] | undefined;
|
|
149
152
|
meta?: {
|
|
150
|
-
data?: any;
|
|
151
153
|
invalidate?: boolean | undefined;
|
|
152
|
-
|
|
154
|
+
data?: any;
|
|
155
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
153
156
|
enableTransitions?: string[] | undefined;
|
|
154
157
|
enableAtPlaces?: string[] | undefined;
|
|
155
158
|
hideAtPlaces?: string[] | undefined;
|
|
156
159
|
} | undefined;
|
|
157
|
-
schema?: any;
|
|
158
|
-
ui?: any;
|
|
159
|
-
tags?: string[] | undefined;
|
|
160
160
|
}>>;
|
|
161
161
|
}, "strict", z.ZodTypeAny, {
|
|
162
162
|
id: string;
|
|
163
163
|
update?: {
|
|
164
|
+
schema?: any;
|
|
164
165
|
name?: string | undefined;
|
|
165
166
|
content?: any;
|
|
167
|
+
ui?: any;
|
|
168
|
+
tags?: string[] | undefined;
|
|
166
169
|
meta?: {
|
|
167
|
-
data?: any;
|
|
168
170
|
invalidate?: boolean | undefined;
|
|
169
|
-
|
|
171
|
+
data?: any;
|
|
172
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
170
173
|
enableTransitions?: string[] | undefined;
|
|
171
174
|
enableAtPlaces?: string[] | undefined;
|
|
172
175
|
hideAtPlaces?: string[] | undefined;
|
|
173
176
|
} | undefined;
|
|
174
|
-
schema?: any;
|
|
175
|
-
ui?: any;
|
|
176
|
-
tags?: string[] | undefined;
|
|
177
177
|
} | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
id: string;
|
|
180
180
|
update?: {
|
|
181
|
+
schema?: any;
|
|
181
182
|
name?: string | undefined;
|
|
182
183
|
content?: any;
|
|
184
|
+
ui?: any;
|
|
185
|
+
tags?: string[] | undefined;
|
|
183
186
|
meta?: {
|
|
184
|
-
data?: any;
|
|
185
187
|
invalidate?: boolean | undefined;
|
|
186
|
-
|
|
188
|
+
data?: any;
|
|
189
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
187
190
|
enableTransitions?: string[] | undefined;
|
|
188
191
|
enableAtPlaces?: string[] | undefined;
|
|
189
192
|
hideAtPlaces?: string[] | undefined;
|
|
190
193
|
} | undefined;
|
|
191
|
-
schema?: any;
|
|
192
|
-
ui?: any;
|
|
193
|
-
tags?: string[] | undefined;
|
|
194
194
|
} | undefined;
|
|
195
195
|
}>;
|
|
196
196
|
constructor(documentService: DocumentService);
|
|
@@ -20,14 +20,18 @@ const expression_type_schema_1 = require("@loopstack/shared/dist/schemas/express
|
|
|
20
20
|
let UpdateDocumentService = UpdateDocumentService_1 = class UpdateDocumentService {
|
|
21
21
|
documentService;
|
|
22
22
|
logger = new common_1.Logger(UpdateDocumentService_1.name);
|
|
23
|
-
configSchema = zod_1.z
|
|
23
|
+
configSchema = zod_1.z
|
|
24
|
+
.object({
|
|
24
25
|
id: expression_type_schema_1.ExpressionString,
|
|
25
26
|
update: shared_1.DocumentConfigSchema.partial().optional(),
|
|
26
|
-
})
|
|
27
|
-
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
schema = zod_1.z
|
|
30
|
+
.object({
|
|
28
31
|
id: shared_1.NonExpressionString,
|
|
29
32
|
update: shared_1.PartialDocumentSchema.optional(),
|
|
30
|
-
})
|
|
33
|
+
})
|
|
34
|
+
.strict();
|
|
31
35
|
constructor(documentService) {
|
|
32
36
|
this.documentService = documentService;
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/update-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAO2B;AAC3B,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAC/B,kGAAyF;AAIlF,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"file":"update-document.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/update-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAO2B;AAC3B,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAC/B,kGAAyF;AAIlF,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAiBZ;IAhBH,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IAEjE,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,EAAE,EAAE,yCAAgB;QACpB,MAAM,EAAE,6BAAoB,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,MAAM,GAAG,OAAC;SACP,MAAM,CAAC;QACN,EAAE,EAAE,4BAAmB;QACvB,MAAM,EAAE,8BAAqB,CAAC,QAAQ,EAAE;KACzC,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,YAAoB,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAExD,KAAK,CAAC,KAAK,CACT,KAAkC,EAClC,QAAoC;QAEpC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;QACZ,C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