@loopstack/contracts 0.19.0 → 0.20.1
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/schemas/main.schema.d.ts +1 -1
- package/dist/schemas/template-expression.schema.d.ts.map +1 -1
- package/dist/schemas/template-expression.schema.js +1 -1
- package/dist/schemas/template-expression.schema.js.map +1 -1
- package/dist/schemas/workflow-transition.schema.d.ts +2 -2
- package/dist/schemas/workflow-transition.schema.js +2 -2
- package/dist/schemas/workflow-transition.schema.js.map +1 -1
- package/dist/schemas/workflow.schema.d.ts +1 -1
- package/dist/types/interfaces/history-transition.interface.d.ts +3 -1
- package/dist/types/interfaces/history-transition.interface.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -106,7 +106,7 @@ export declare const BlockConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
106
106
|
id: z.ZodString;
|
|
107
107
|
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
108
108
|
to: z.ZodString;
|
|
109
|
-
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.
|
|
109
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
110
110
|
trigger: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
111
111
|
manual: "manual";
|
|
112
112
|
onEntry: "onEntry";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-expression.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/template-expression.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"template-expression.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/template-expression.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,aAEkF,CAAC"}
|
|
@@ -4,5 +4,5 @@ exports.TemplateExpression = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.TemplateExpression = zod_1.z
|
|
6
6
|
.string()
|
|
7
|
-
.regex(/^(?:\||>)?(?:[-+])?\s*\$\{([\s\S]*?)\}\s*$/, "Must be an expression in format '${ expression }'");
|
|
7
|
+
.regex(/^(?:\||>)?(?:[-+])?\s*\$\{\{([\s\S]*?)\}\}\s*$/, "Must be an expression in format '${{ expression }}'");
|
|
8
8
|
//# sourceMappingURL=template-expression.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-expression.schema.js","sourceRoot":"","sources":["../../src/schemas/template-expression.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"template-expression.schema.js","sourceRoot":"","sources":["../../src/schemas/template-expression.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,gDAAgD,EAAE,qDAAqD,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const WorkflowTransitionConfigSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
5
5
|
to: z.ZodString;
|
|
6
|
-
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.
|
|
6
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
7
7
|
trigger: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
8
8
|
manual: "manual";
|
|
9
9
|
onEntry: "onEntry";
|
|
@@ -20,7 +20,7 @@ export declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
22
22
|
to: z.ZodString;
|
|
23
|
-
if: z.ZodOptional<z.
|
|
23
|
+
if: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
trigger: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
manual: "manual";
|
|
26
26
|
onEntry: "onEntry";
|
|
@@ -9,7 +9,7 @@ exports.WorkflowTransitionConfigSchema = zod_1.z
|
|
|
9
9
|
id: zod_1.z.string(),
|
|
10
10
|
from: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
|
|
11
11
|
to: zod_1.z.string(),
|
|
12
|
-
if: zod_1.z.union([template_expression_schema_1.TemplateExpression, zod_1.z.
|
|
12
|
+
if: zod_1.z.union([template_expression_schema_1.TemplateExpression, zod_1.z.boolean()]).optional(),
|
|
13
13
|
trigger: zod_1.z.union([zod_1.z.enum(['manual', 'onEntry']), template_expression_schema_1.TemplateExpression]).optional(),
|
|
14
14
|
call: zod_1.z.array(tool_call_schema_1.ToolCallConfigSchema).optional(),
|
|
15
15
|
onError: zod_1.z.string().optional(),
|
|
@@ -20,7 +20,7 @@ exports.WorkflowTransitionSchema = zod_1.z
|
|
|
20
20
|
id: zod_1.z.string(),
|
|
21
21
|
from: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
|
|
22
22
|
to: zod_1.z.string(),
|
|
23
|
-
if: zod_1.z.
|
|
23
|
+
if: zod_1.z.boolean().optional(),
|
|
24
24
|
trigger: zod_1.z.enum(['manual', 'onEntry']).optional(),
|
|
25
25
|
call: zod_1.z.array(tool_call_schema_1.ToolCallSchema).optional(),
|
|
26
26
|
onError: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-transition.schema.js","sourceRoot":"","sources":["../../src/schemas/workflow-transition.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB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AAM,EAAE,CAAC;AAEC,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,CAAC;IACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,iCAAc,CAAC,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -60,7 +60,7 @@ export declare const WorkflowSchema: z.ZodObject<{
|
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
62
62
|
to: z.ZodString;
|
|
63
|
-
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.
|
|
63
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
64
64
|
trigger: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
65
65
|
manual: "manual";
|
|
66
66
|
onEntry: "onEntry";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-transition.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/history-transition.interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"history-transition.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/history-transition.interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;CACd"}
|
package/package.json
CHANGED