@loopstack/core 0.4.0 → 0.4.2
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 +16 -0
- package/dist/config/core/documents/error.yaml +15 -0
- package/dist/config/core/documents/markdown.yaml +18 -0
- package/dist/config/core/documents/message.yaml +21 -0
- package/dist/config/core/documents/object.yaml +18 -0
- package/dist/config/core/documents/plain.yaml +18 -0
- package/dist/config/core/tools/batch-create-messages.yaml +43 -0
- package/dist/config/core/tools/create-chat-message.yaml +58 -0
- package/dist/config/core/tools/create-document.yaml +18 -0
- package/dist/config/core/tools/create-error-message.yaml +21 -0
- package/dist/config/core/tools/create-markdown-message.yaml +24 -0
- package/dist/config/core/tools/create-mock.yaml +19 -0
- package/dist/config/core/tools/create-plain-message.yaml +24 -0
- package/dist/config/core/tools/create-response.yaml +16 -0
- package/dist/config/core/tools/debug.yaml +12 -0
- package/dist/config/core/tools/delegate-tool-calls.yaml +14 -0
- package/dist/config/core/tools/load-document.yaml +36 -0
- package/dist/config/core/tools/switch-target.yaml +15 -0
- package/dist/config/core/tools/update-document.yaml +19 -0
- package/dist/modules/scheduler/handler/create-task-schedule.handler.d.ts +8 -8
- package/dist/modules/workflow-processor/handlers/create-document.handler.d.ts +13 -13
- package/dist/modules/workflow-processor/handlers/load-document.handler.d.ts +7 -42
- package/dist/modules/workflow-processor/handlers/update-document.handler.d.ts +13 -13
- package/dist/modules/workflow-processor/services/state-machine-processor.service.d.ts +1 -5
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js +5 -17
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-processor.service.d.ts +7 -3
- package/dist/modules/workflow-processor/services/workflow-processor.service.js +16 -6
- package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @loopstack/core
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix bug were extended workspace config would not be mearged for UI config
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @loopstack/shared@0.4.2
|
|
10
|
+
|
|
11
|
+
## 0.4.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Bugfixes
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @loopstack/shared@0.4.1
|
|
18
|
+
|
|
3
19
|
## 0.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
documents:
|
|
2
|
+
- name: markdown_message
|
|
3
|
+
ui:
|
|
4
|
+
widget: markdown-message
|
|
5
|
+
schema:
|
|
6
|
+
type: object
|
|
7
|
+
properties:
|
|
8
|
+
title:
|
|
9
|
+
type: string
|
|
10
|
+
markdown:
|
|
11
|
+
type: string
|
|
12
|
+
additionalProperties: false
|
|
13
|
+
meta:
|
|
14
|
+
level: info
|
|
15
|
+
invalidate: false
|
|
16
|
+
content:
|
|
17
|
+
title: "Markdown"
|
|
18
|
+
markdown: ""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
documents:
|
|
2
|
+
- name: message
|
|
3
|
+
tags:
|
|
4
|
+
- message
|
|
5
|
+
ui:
|
|
6
|
+
widget: chat-message
|
|
7
|
+
schema:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
role:
|
|
11
|
+
type: string
|
|
12
|
+
content:
|
|
13
|
+
type: [ "string", "null" ]
|
|
14
|
+
tool_calls:
|
|
15
|
+
type: array
|
|
16
|
+
tool_call_id:
|
|
17
|
+
type: [ "string", "null" ]
|
|
18
|
+
additionalProperties: false
|
|
19
|
+
meta:
|
|
20
|
+
invalidate: false
|
|
21
|
+
level: info
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
documents:
|
|
2
|
+
- name: core_objectMessage
|
|
3
|
+
ui:
|
|
4
|
+
widget: object-message
|
|
5
|
+
schema:
|
|
6
|
+
type: object
|
|
7
|
+
properties:
|
|
8
|
+
title:
|
|
9
|
+
type: string
|
|
10
|
+
content:
|
|
11
|
+
type: object
|
|
12
|
+
additionalProperties: false
|
|
13
|
+
meta:
|
|
14
|
+
level: info
|
|
15
|
+
invalidate: true
|
|
16
|
+
content:
|
|
17
|
+
title: "Object"
|
|
18
|
+
content: {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
documents:
|
|
2
|
+
- name: plain_message
|
|
3
|
+
ui:
|
|
4
|
+
widget: plain-message
|
|
5
|
+
schema:
|
|
6
|
+
type: object
|
|
7
|
+
properties:
|
|
8
|
+
title:
|
|
9
|
+
type: string
|
|
10
|
+
content:
|
|
11
|
+
type: string
|
|
12
|
+
additionalProperties: false
|
|
13
|
+
meta:
|
|
14
|
+
level: info
|
|
15
|
+
invalidate: false
|
|
16
|
+
content:
|
|
17
|
+
title: "Text"
|
|
18
|
+
content: ""
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# File Includes
|
|
2
|
+
include:
|
|
3
|
+
- core/documents/message.yaml
|
|
4
|
+
|
|
5
|
+
tools:
|
|
6
|
+
- name: batch_create_messages
|
|
7
|
+
parameters:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
items:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
content:
|
|
16
|
+
type: object
|
|
17
|
+
properties:
|
|
18
|
+
content:
|
|
19
|
+
type: string
|
|
20
|
+
role:
|
|
21
|
+
type: string
|
|
22
|
+
tool_call_id:
|
|
23
|
+
type: string
|
|
24
|
+
meta:
|
|
25
|
+
type: object
|
|
26
|
+
properties:
|
|
27
|
+
level:
|
|
28
|
+
type: string
|
|
29
|
+
invalidate:
|
|
30
|
+
type: boolean
|
|
31
|
+
additionalProperties: false
|
|
32
|
+
additionalProperties: false
|
|
33
|
+
required:
|
|
34
|
+
- content
|
|
35
|
+
additionalProperties: false
|
|
36
|
+
required:
|
|
37
|
+
- items
|
|
38
|
+
additionalProperties: false
|
|
39
|
+
execute:
|
|
40
|
+
- handler: BatchCreateDocumentsHandler
|
|
41
|
+
arguments:
|
|
42
|
+
document: message
|
|
43
|
+
items: ${ arguments.items }
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# File Includes
|
|
2
|
+
include:
|
|
3
|
+
- core/documents/message.yaml
|
|
4
|
+
|
|
5
|
+
# Tool Definitions
|
|
6
|
+
tools:
|
|
7
|
+
|
|
8
|
+
# Create Message Tool
|
|
9
|
+
- name: create_chat_message
|
|
10
|
+
|
|
11
|
+
# Input Arguments Validation JSON Schema
|
|
12
|
+
parameters:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
content:
|
|
16
|
+
type: [ "string", "null" ]
|
|
17
|
+
role:
|
|
18
|
+
type: string
|
|
19
|
+
tool_calls:
|
|
20
|
+
type: array
|
|
21
|
+
tool_call_id:
|
|
22
|
+
type: string
|
|
23
|
+
annotations:
|
|
24
|
+
type: any
|
|
25
|
+
refusal:
|
|
26
|
+
type: any
|
|
27
|
+
meta:
|
|
28
|
+
type: object
|
|
29
|
+
properties:
|
|
30
|
+
level:
|
|
31
|
+
type: string
|
|
32
|
+
invalidate:
|
|
33
|
+
type: boolean
|
|
34
|
+
additionalProperties: false
|
|
35
|
+
additionalProperties: false
|
|
36
|
+
|
|
37
|
+
# Service Execution
|
|
38
|
+
execute:
|
|
39
|
+
|
|
40
|
+
# Service Name
|
|
41
|
+
- handler: CreateDocumentHandler
|
|
42
|
+
|
|
43
|
+
# Service Call Arguments
|
|
44
|
+
arguments:
|
|
45
|
+
|
|
46
|
+
# Document Template
|
|
47
|
+
document: message
|
|
48
|
+
|
|
49
|
+
# Update Properties
|
|
50
|
+
update:
|
|
51
|
+
content:
|
|
52
|
+
role: ${ arguments.role }
|
|
53
|
+
content: ${ arguments.content }
|
|
54
|
+
tool_calls: ${ arguments.tool_calls }
|
|
55
|
+
tool_call_id: ${ arguments.tool_call_id }
|
|
56
|
+
meta:
|
|
57
|
+
level: ${ arguments.meta.level }
|
|
58
|
+
invalidate: ${ arguments.meta.invalidate }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: create_document
|
|
3
|
+
parameters:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
document:
|
|
7
|
+
type: string
|
|
8
|
+
content:
|
|
9
|
+
type: any
|
|
10
|
+
required:
|
|
11
|
+
- document
|
|
12
|
+
additionalProperties: false
|
|
13
|
+
execute:
|
|
14
|
+
- handler: CreateDocumentHandler
|
|
15
|
+
arguments:
|
|
16
|
+
document: ${ arguments.document }
|
|
17
|
+
update:
|
|
18
|
+
content: ${ arguments.content }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File Includes
|
|
2
|
+
include:
|
|
3
|
+
- core/documents/error.yaml
|
|
4
|
+
|
|
5
|
+
tools:
|
|
6
|
+
- name: create_error_message
|
|
7
|
+
parameters:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
message:
|
|
11
|
+
type: string
|
|
12
|
+
required:
|
|
13
|
+
- message
|
|
14
|
+
additionalProperties: false
|
|
15
|
+
execute:
|
|
16
|
+
- handler: CreateDocumentHandler
|
|
17
|
+
arguments:
|
|
18
|
+
document: error_message
|
|
19
|
+
update:
|
|
20
|
+
content:
|
|
21
|
+
message: ${ arguments.message }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File Includes
|
|
2
|
+
include:
|
|
3
|
+
- core/documents/markdown.yaml
|
|
4
|
+
|
|
5
|
+
tools:
|
|
6
|
+
- name: create_markdown_message
|
|
7
|
+
parameters:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
markdown:
|
|
11
|
+
type: string
|
|
12
|
+
title:
|
|
13
|
+
type: string
|
|
14
|
+
required:
|
|
15
|
+
- markdown
|
|
16
|
+
additionalProperties: false
|
|
17
|
+
execute:
|
|
18
|
+
- handler: CreateDocumentHandler
|
|
19
|
+
arguments:
|
|
20
|
+
document: markdown_message
|
|
21
|
+
update:
|
|
22
|
+
content:
|
|
23
|
+
title: ${ arguments.title }
|
|
24
|
+
markdown: ${ arguments.markdown }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: create_mock
|
|
3
|
+
description: "Create a mock response for debugging and testing."
|
|
4
|
+
parameters:
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
input:
|
|
8
|
+
type: 'any'
|
|
9
|
+
output:
|
|
10
|
+
type: 'any'
|
|
11
|
+
error:
|
|
12
|
+
type: 'string'
|
|
13
|
+
additionalProperties: false
|
|
14
|
+
execute:
|
|
15
|
+
- handler: MockHandler
|
|
16
|
+
arguments:
|
|
17
|
+
input: ${ arguments.input }
|
|
18
|
+
output: ${ arguments.output }
|
|
19
|
+
error: ${ arguments.error }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File Includes
|
|
2
|
+
include:
|
|
3
|
+
- core/documents/plain.yaml
|
|
4
|
+
|
|
5
|
+
tools:
|
|
6
|
+
- name: create_plain_message
|
|
7
|
+
parameters:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
content:
|
|
11
|
+
type: string
|
|
12
|
+
title:
|
|
13
|
+
type: string
|
|
14
|
+
required:
|
|
15
|
+
- content
|
|
16
|
+
additionalProperties: false
|
|
17
|
+
execute:
|
|
18
|
+
- handler: CreateDocumentHandler
|
|
19
|
+
arguments:
|
|
20
|
+
document: plain_message
|
|
21
|
+
update:
|
|
22
|
+
content:
|
|
23
|
+
title: ${ arguments.title }
|
|
24
|
+
content: ${ arguments.content }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: create_response
|
|
3
|
+
parameters:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
document:
|
|
7
|
+
type: string
|
|
8
|
+
required:
|
|
9
|
+
- document
|
|
10
|
+
additionalProperties: false
|
|
11
|
+
execute:
|
|
12
|
+
- handler: CreateDocumentHandler
|
|
13
|
+
arguments:
|
|
14
|
+
document: ${ arguments.document }
|
|
15
|
+
update:
|
|
16
|
+
content: ${ transition.payload }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: delegate_tool_calls
|
|
3
|
+
parameters:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
toolCalls:
|
|
7
|
+
type: array
|
|
8
|
+
required:
|
|
9
|
+
- toolCalls
|
|
10
|
+
additionalProperties: false
|
|
11
|
+
execute:
|
|
12
|
+
- handler: DelegateToolCallsHandler
|
|
13
|
+
arguments:
|
|
14
|
+
toolCalls: ${ arguments.toolCalls }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: load_document
|
|
3
|
+
parameters:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
where:
|
|
7
|
+
type: object
|
|
8
|
+
# todo
|
|
9
|
+
orderBy:
|
|
10
|
+
type: object
|
|
11
|
+
# todo
|
|
12
|
+
getMany:
|
|
13
|
+
type: boolean
|
|
14
|
+
take:
|
|
15
|
+
type: number
|
|
16
|
+
skip:
|
|
17
|
+
type: number
|
|
18
|
+
isDependency:
|
|
19
|
+
type: boolean
|
|
20
|
+
global:
|
|
21
|
+
type: boolean
|
|
22
|
+
strictMode:
|
|
23
|
+
type: boolean
|
|
24
|
+
required:
|
|
25
|
+
- where
|
|
26
|
+
additionalProperties: false
|
|
27
|
+
execute:
|
|
28
|
+
- handler: LoadDocumentHandler
|
|
29
|
+
arguments:
|
|
30
|
+
where: ${ arguments.where }
|
|
31
|
+
orderBy: ${ arguments.orderBy }
|
|
32
|
+
getMany: ${ arguments.getMany }
|
|
33
|
+
take: ${ arguments.take }
|
|
34
|
+
isDependency: ${ arguments.isDependency }
|
|
35
|
+
isGlobal: ${ arguments.isGlobal }
|
|
36
|
+
strictMode: ${ arguments.strictMode }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: switch_target
|
|
3
|
+
description: "Sets the target place for a transition to a defined value."
|
|
4
|
+
parameters:
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
target:
|
|
8
|
+
type: string
|
|
9
|
+
required:
|
|
10
|
+
- target
|
|
11
|
+
additionalProperties: false
|
|
12
|
+
execute:
|
|
13
|
+
- handler: SetTargetPlaceHandler
|
|
14
|
+
arguments:
|
|
15
|
+
target: ${ arguments.target }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
tools:
|
|
2
|
+
- name: update_document
|
|
3
|
+
parameters:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
id:
|
|
7
|
+
type: string
|
|
8
|
+
content:
|
|
9
|
+
type: any
|
|
10
|
+
required:
|
|
11
|
+
- id
|
|
12
|
+
- content
|
|
13
|
+
additionalProperties: false
|
|
14
|
+
execute:
|
|
15
|
+
- handler: UpdateDocumentHandler
|
|
16
|
+
arguments:
|
|
17
|
+
id: ${ arguments.id }
|
|
18
|
+
update:
|
|
19
|
+
content: ${ arguments.content }
|
|
@@ -12,17 +12,17 @@ export declare const config: z.ZodObject<{
|
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
name: string;
|
|
14
14
|
type: string;
|
|
15
|
-
cronExpression?: string | undefined;
|
|
16
|
-
payload?: string | Record<string, any> | undefined;
|
|
17
15
|
executeAt?: string | undefined;
|
|
18
16
|
waitFor?: string | undefined;
|
|
17
|
+
cronExpression?: string | undefined;
|
|
18
|
+
payload?: string | Record<string, any> | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
name: string;
|
|
21
21
|
type: string;
|
|
22
|
-
cronExpression?: string | undefined;
|
|
23
|
-
payload?: string | Record<string, any> | undefined;
|
|
24
22
|
executeAt?: string | undefined;
|
|
25
23
|
waitFor?: string | undefined;
|
|
24
|
+
cronExpression?: string | undefined;
|
|
25
|
+
payload?: string | Record<string, any> | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
declare const schema: z.ZodObject<{
|
|
28
28
|
name: z.ZodString;
|
|
@@ -34,17 +34,17 @@ declare const schema: z.ZodObject<{
|
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
name: string;
|
|
36
36
|
type: TaskType;
|
|
37
|
-
cronExpression?: string | undefined;
|
|
38
|
-
payload?: Record<string, any> | undefined;
|
|
39
37
|
executeAt?: string | undefined;
|
|
40
38
|
waitFor?: string | undefined;
|
|
39
|
+
cronExpression?: string | undefined;
|
|
40
|
+
payload?: Record<string, any> | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
name: string;
|
|
43
43
|
type: TaskType;
|
|
44
|
-
cronExpression?: string | undefined;
|
|
45
|
-
payload?: Record<string, any> | undefined;
|
|
46
44
|
executeAt?: string | undefined;
|
|
47
45
|
waitFor?: string | undefined;
|
|
46
|
+
cronExpression?: string | undefined;
|
|
47
|
+
payload?: Record<string, any> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
export declare class CreateTaskScheduleHandler implements HandlerInterface {
|
|
50
50
|
private taskSchedulerService;
|
|
@@ -16,64 +16,64 @@ declare const schema: z.ZodObject<{
|
|
|
16
16
|
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
17
|
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
20
19
|
invalidate?: boolean | undefined;
|
|
20
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
21
21
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
22
22
|
enableAtPlaces?: string[] | undefined;
|
|
23
23
|
hideAtPlaces?: string[] | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
26
25
|
invalidate?: boolean | undefined;
|
|
26
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
27
27
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
28
28
|
enableAtPlaces?: string[] | undefined;
|
|
29
29
|
hideAtPlaces?: string[] | undefined;
|
|
30
30
|
}>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
content?: any;
|
|
33
|
+
tags?: string[] | undefined;
|
|
32
34
|
meta?: {
|
|
33
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
34
35
|
invalidate?: boolean | undefined;
|
|
36
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
35
37
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
36
38
|
enableAtPlaces?: string[] | undefined;
|
|
37
39
|
hideAtPlaces?: string[] | undefined;
|
|
38
40
|
} | undefined;
|
|
41
|
+
}, {
|
|
39
42
|
content?: any;
|
|
40
43
|
tags?: string[] | undefined;
|
|
41
|
-
}, {
|
|
42
44
|
meta?: {
|
|
43
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
44
45
|
invalidate?: boolean | undefined;
|
|
46
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
45
47
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
46
48
|
enableAtPlaces?: string[] | undefined;
|
|
47
49
|
hideAtPlaces?: string[] | undefined;
|
|
48
50
|
} | undefined;
|
|
49
|
-
content?: any;
|
|
50
|
-
tags?: string[] | undefined;
|
|
51
51
|
}>>;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
53
|
document: string;
|
|
54
54
|
update?: {
|
|
55
|
+
content?: any;
|
|
56
|
+
tags?: string[] | undefined;
|
|
55
57
|
meta?: {
|
|
56
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
57
58
|
invalidate?: boolean | undefined;
|
|
59
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
58
60
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
59
61
|
enableAtPlaces?: string[] | undefined;
|
|
60
62
|
hideAtPlaces?: string[] | undefined;
|
|
61
63
|
} | undefined;
|
|
62
|
-
content?: any;
|
|
63
|
-
tags?: string[] | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
document: string;
|
|
67
67
|
update?: {
|
|
68
|
+
content?: any;
|
|
69
|
+
tags?: string[] | undefined;
|
|
68
70
|
meta?: {
|
|
69
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
70
71
|
invalidate?: boolean | undefined;
|
|
72
|
+
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
71
73
|
level?: "error" | "debug" | "info" | "warning" | undefined;
|
|
72
74
|
enableAtPlaces?: string[] | undefined;
|
|
73
75
|
hideAtPlaces?: string[] | undefined;
|
|
74
76
|
} | undefined;
|
|
75
|
-
content?: any;
|
|
76
|
-
tags?: string[] | undefined;
|
|
77
77
|
} | undefined;
|
|
78
78
|
}>;
|
|
79
79
|
export declare class CreateDocumentHandler implements HandlerInterface {
|
|
@@ -3,28 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { DocumentEntity, WorkflowEntity } from '@loopstack/shared';
|
|
4
4
|
import { DocumentService, WorkflowService } from '../../persistence';
|
|
5
5
|
declare const schema: z.ZodObject<{
|
|
6
|
-
where:
|
|
7
|
-
name: any;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
name?: any;
|
|
10
|
-
}, {
|
|
11
|
-
name?: any;
|
|
12
|
-
}>, z.ZodObject<{
|
|
13
|
-
and: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
14
|
-
or: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
and?: any[] | undefined;
|
|
17
|
-
or?: any[] | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
and?: any[] | undefined;
|
|
20
|
-
or?: any[] | undefined;
|
|
21
|
-
}>, z.ZodObject<{
|
|
22
|
-
brackets: any;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
brackets?: any;
|
|
25
|
-
}, {
|
|
26
|
-
brackets?: any;
|
|
27
|
-
}>]>;
|
|
6
|
+
where: any;
|
|
28
7
|
orderBy: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>>>;
|
|
29
8
|
getMany: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
9
|
take: z.ZodDefault<z.ZodNumber>;
|
|
@@ -33,36 +12,22 @@ declare const schema: z.ZodObject<{
|
|
|
33
12
|
isGlobal: z.ZodDefault<z.ZodBoolean>;
|
|
34
13
|
strictMode: z.ZodDefault<z.ZodBoolean>;
|
|
35
14
|
}, "strict", z.ZodTypeAny, {
|
|
36
|
-
|
|
37
|
-
brackets?: any;
|
|
38
|
-
} | {
|
|
39
|
-
name?: any;
|
|
40
|
-
} | {
|
|
41
|
-
and?: any[] | undefined;
|
|
42
|
-
or?: any[] | undefined;
|
|
43
|
-
};
|
|
15
|
+
isGlobal: boolean;
|
|
44
16
|
orderBy: Record<string, "ASC" | "DESC">;
|
|
45
|
-
getMany: boolean;
|
|
46
17
|
take: number;
|
|
47
18
|
skip: number;
|
|
19
|
+
getMany: boolean;
|
|
48
20
|
isDependency: boolean;
|
|
49
|
-
isGlobal: boolean;
|
|
50
21
|
strictMode: boolean;
|
|
22
|
+
where?: any;
|
|
51
23
|
}, {
|
|
52
|
-
|
|
53
|
-
brackets?: any;
|
|
54
|
-
} | {
|
|
55
|
-
name?: any;
|
|
56
|
-
} | {
|
|
57
|
-
and?: any[] | undefined;
|
|
58
|
-
or?: any[] | undefined;
|
|
59
|
-
};
|
|
24
|
+
isGlobal?: boolean | undefined;
|
|
60
25
|
orderBy?: Record<string, "ASC" | "DESC"> | undefined;
|
|
61
|
-
getMany?: boolean | undefined;
|
|
62
26
|
take?: number | undefined;
|
|
63
27
|
skip?: number | undefined;
|
|
28
|
+
where?: any;
|
|
29
|
+
getMany?: boolean | undefined;
|
|
64
30
|
isDependency?: boolean | undefined;
|
|
65
|
-
isGlobal?: boolean | undefined;
|
|
66
31
|
strictMode?: boolean | undefined;
|
|
67
32
|
}>;
|
|
68
33
|
export declare class LoadDocumentHandler implements HandlerInterface {
|
|
@@ -16,64 +16,64 @@ declare const schema: z.ZodObject<{
|
|
|
16
16
|
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
17
|
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
mimeType?: string | undefined;
|
|
20
19
|
invalidate?: string | boolean | undefined;
|
|
20
|
+
mimeType?: string | undefined;
|
|
21
21
|
level?: string | undefined;
|
|
22
22
|
enableAtPlaces?: string[] | undefined;
|
|
23
23
|
hideAtPlaces?: string[] | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
mimeType?: string | undefined;
|
|
26
25
|
invalidate?: string | boolean | undefined;
|
|
26
|
+
mimeType?: string | undefined;
|
|
27
27
|
level?: string | undefined;
|
|
28
28
|
enableAtPlaces?: string[] | undefined;
|
|
29
29
|
hideAtPlaces?: string[] | undefined;
|
|
30
30
|
}>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
content?: any;
|
|
33
|
+
tags?: string[] | undefined;
|
|
32
34
|
meta?: {
|
|
33
|
-
mimeType?: string | undefined;
|
|
34
35
|
invalidate?: string | boolean | undefined;
|
|
36
|
+
mimeType?: string | undefined;
|
|
35
37
|
level?: string | undefined;
|
|
36
38
|
enableAtPlaces?: string[] | undefined;
|
|
37
39
|
hideAtPlaces?: string[] | undefined;
|
|
38
40
|
} | undefined;
|
|
41
|
+
}, {
|
|
39
42
|
content?: any;
|
|
40
43
|
tags?: string[] | undefined;
|
|
41
|
-
}, {
|
|
42
44
|
meta?: {
|
|
43
|
-
mimeType?: string | undefined;
|
|
44
45
|
invalidate?: string | boolean | undefined;
|
|
46
|
+
mimeType?: string | undefined;
|
|
45
47
|
level?: string | undefined;
|
|
46
48
|
enableAtPlaces?: string[] | undefined;
|
|
47
49
|
hideAtPlaces?: string[] | undefined;
|
|
48
50
|
} | undefined;
|
|
49
|
-
content?: any;
|
|
50
|
-
tags?: string[] | undefined;
|
|
51
51
|
}>>;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
53
|
id: string;
|
|
54
54
|
update?: {
|
|
55
|
+
content?: any;
|
|
56
|
+
tags?: string[] | undefined;
|
|
55
57
|
meta?: {
|
|
56
|
-
mimeType?: string | undefined;
|
|
57
58
|
invalidate?: string | boolean | undefined;
|
|
59
|
+
mimeType?: string | undefined;
|
|
58
60
|
level?: string | undefined;
|
|
59
61
|
enableAtPlaces?: string[] | undefined;
|
|
60
62
|
hideAtPlaces?: string[] | undefined;
|
|
61
63
|
} | undefined;
|
|
62
|
-
content?: any;
|
|
63
|
-
tags?: string[] | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
id: string;
|
|
67
67
|
update?: {
|
|
68
|
+
content?: any;
|
|
69
|
+
tags?: string[] | undefined;
|
|
68
70
|
meta?: {
|
|
69
|
-
mimeType?: string | undefined;
|
|
70
71
|
invalidate?: string | boolean | undefined;
|
|
72
|
+
mimeType?: string | undefined;
|
|
71
73
|
level?: string | undefined;
|
|
72
74
|
enableAtPlaces?: string[] | undefined;
|
|
73
75
|
hideAtPlaces?: string[] | undefined;
|
|
74
76
|
} | undefined;
|
|
75
|
-
content?: any;
|
|
76
|
-
tags?: string[] | undefined;
|
|
77
77
|
} | undefined;
|
|
78
78
|
}>;
|
|
79
79
|
export declare class UpdateDocumentHandler implements HandlerInterface {
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { StateMachineConfigService } from './state-machine-config.service';
|
|
2
1
|
import { ConfigElement, ContextInterface, HistoryTransition, HandlerCallResult, ToolCallType, TransitionInfoInterface, TransitionPayloadInterface, WorkflowEntity, WorkflowTransitionType, WorkflowType } from '@loopstack/shared';
|
|
3
2
|
import { ToolExecutionService } from './tool-execution.service';
|
|
4
3
|
import { WorkflowService } from '../../persistence';
|
|
5
4
|
import { StateMachineValidatorRegistry } from './state-machine-validator.registry';
|
|
6
|
-
import { ContextService } from '../../common';
|
|
7
5
|
import { StateMachineValidatorResultInterface } from '@loopstack/shared/dist/interfaces/state-machine-validator-result.interface';
|
|
8
6
|
import { StateMachineInfoDto } from '@loopstack/shared/dist/dto/state-machine-info.dto';
|
|
9
7
|
import { TemplateExpressionEvaluatorService } from './template-expression-evaluator.service';
|
|
10
8
|
import { WorkflowContextService } from './workflow-context.service';
|
|
11
9
|
export declare class StateMachineProcessorService {
|
|
12
|
-
private readonly workflowConfigService;
|
|
13
10
|
private readonly workflowService;
|
|
14
11
|
private readonly toolExecutionService;
|
|
15
12
|
private readonly stateMachineValidatorRegistry;
|
|
16
|
-
private readonly contextService;
|
|
17
13
|
private readonly templateExpressionEvaluatorService;
|
|
18
14
|
private readonly workflowContextService;
|
|
19
15
|
private readonly logger;
|
|
20
|
-
constructor(
|
|
16
|
+
constructor(workflowService: WorkflowService, toolExecutionService: ToolExecutionService, stateMachineValidatorRegistry: StateMachineValidatorRegistry, templateExpressionEvaluatorService: TemplateExpressionEvaluatorService, workflowContextService: WorkflowContextService);
|
|
21
17
|
canSkipRun(workflow: WorkflowEntity, args: Record<string, any> | undefined): StateMachineValidatorResultInterface;
|
|
22
18
|
processStateMachine(context: ContextInterface, workflow: WorkflowEntity, configElement: ConfigElement<WorkflowType>): Promise<WorkflowEntity>;
|
|
23
19
|
updateWorkflowState(workflow: WorkflowEntity, historyItem: HistoryTransition): void;
|
|
@@ -12,12 +12,10 @@ var StateMachineProcessorService_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.StateMachineProcessorService = void 0;
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
|
-
const state_machine_config_service_1 = require("./state-machine-config.service");
|
|
16
15
|
const shared_1 = require("@loopstack/shared");
|
|
17
16
|
const tool_execution_service_1 = require("./tool-execution.service");
|
|
18
17
|
const persistence_1 = require("../../persistence");
|
|
19
18
|
const state_machine_validator_registry_1 = require("./state-machine-validator.registry");
|
|
20
|
-
const common_2 = require("../../common");
|
|
21
19
|
const state_machine_info_dto_1 = require("@loopstack/shared/dist/dto/state-machine-info.dto");
|
|
22
20
|
const template_expression_evaluator_service_1 = require("./template-expression-evaluator.service");
|
|
23
21
|
const lodash_1 = require("lodash");
|
|
@@ -33,20 +31,16 @@ const TransitionValidationsSchema = zod_1.z.array(zod_1.z
|
|
|
33
31
|
})
|
|
34
32
|
.strict());
|
|
35
33
|
let StateMachineProcessorService = StateMachineProcessorService_1 = class StateMachineProcessorService {
|
|
36
|
-
workflowConfigService;
|
|
37
34
|
workflowService;
|
|
38
35
|
toolExecutionService;
|
|
39
36
|
stateMachineValidatorRegistry;
|
|
40
|
-
contextService;
|
|
41
37
|
templateExpressionEvaluatorService;
|
|
42
38
|
workflowContextService;
|
|
43
39
|
logger = new common_1.Logger(StateMachineProcessorService_1.name);
|
|
44
|
-
constructor(
|
|
45
|
-
this.workflowConfigService = workflowConfigService;
|
|
40
|
+
constructor(workflowService, toolExecutionService, stateMachineValidatorRegistry, templateExpressionEvaluatorService, workflowContextService) {
|
|
46
41
|
this.workflowService = workflowService;
|
|
47
42
|
this.toolExecutionService = toolExecutionService;
|
|
48
43
|
this.stateMachineValidatorRegistry = stateMachineValidatorRegistry;
|
|
49
|
-
this.contextService = contextService;
|
|
50
44
|
this.templateExpressionEvaluatorService = templateExpressionEvaluatorService;
|
|
51
45
|
this.workflowContextService = workflowContextService;
|
|
52
46
|
}
|
|
@@ -68,14 +62,12 @@ let StateMachineProcessorService = StateMachineProcessorService_1 = class StateM
|
|
|
68
62
|
};
|
|
69
63
|
}
|
|
70
64
|
async processStateMachine(context, workflow, configElement) {
|
|
71
|
-
console.log(configElement.config.arguments);
|
|
72
65
|
const args = this.templateExpressionEvaluatorService.parse(configElement.config.arguments, { context }, {
|
|
73
66
|
schema: undefined,
|
|
74
67
|
omitAliasVariables: true,
|
|
75
68
|
omitUseTemplates: true,
|
|
76
69
|
omitWorkflowData: true,
|
|
77
70
|
});
|
|
78
|
-
console.log(args);
|
|
79
71
|
if (!workflow) {
|
|
80
72
|
throw new Error(`No workflow entry.`);
|
|
81
73
|
}
|
|
@@ -188,11 +180,9 @@ let StateMachineProcessorService = StateMachineProcessorService_1 = class StateM
|
|
|
188
180
|
async loopStateMachine(beforeContext, workflow, configElement, stateMachineInfo) {
|
|
189
181
|
let context = beforeContext;
|
|
190
182
|
workflow = await this.initStateMachine(workflow, stateMachineInfo);
|
|
191
|
-
|
|
192
|
-
if (!mergedConfigElement.config.transitions) {
|
|
183
|
+
if (!configElement.config.transitions) {
|
|
193
184
|
throw new Error(`Workflow ${workflow.name} does not have any transitions.`);
|
|
194
185
|
}
|
|
195
|
-
this.contextService.addIncludes(context, mergedConfigElement.importMap);
|
|
196
186
|
try {
|
|
197
187
|
const pendingTransition = [stateMachineInfo.pendingTransition];
|
|
198
188
|
while (true) {
|
|
@@ -201,7 +191,7 @@ let StateMachineProcessorService = StateMachineProcessorService_1 = class StateM
|
|
|
201
191
|
history: workflow.history?.history.map((item) => item.transition) ?? [],
|
|
202
192
|
payload: nextPending?.payload ?? null,
|
|
203
193
|
};
|
|
204
|
-
const transitionsWithoutCallProperty =
|
|
194
|
+
const transitionsWithoutCallProperty = configElement.config.transitions.map((transition) => (0, lodash_1.omit)(transition, ['call']));
|
|
205
195
|
const evaluatedTransitions = this.templateExpressionEvaluatorService.parse(transitionsWithoutCallProperty, {
|
|
206
196
|
arguments: stateMachineInfo.options,
|
|
207
197
|
context,
|
|
@@ -221,7 +211,7 @@ let StateMachineProcessorService = StateMachineProcessorService_1 = class StateM
|
|
|
221
211
|
transitionData.transition = nextTransition.transition;
|
|
222
212
|
transitionData.from = nextTransition.from;
|
|
223
213
|
transitionData.to = nextTransition.to;
|
|
224
|
-
const toolCalls =
|
|
214
|
+
const toolCalls = configElement.config.transitions.find((transition) => transition.name === transitionData.transition)?.call;
|
|
225
215
|
let nextPlace = undefined;
|
|
226
216
|
try {
|
|
227
217
|
if (toolCalls) {
|
|
@@ -275,11 +265,9 @@ let StateMachineProcessorService = StateMachineProcessorService_1 = class StateM
|
|
|
275
265
|
exports.StateMachineProcessorService = StateMachineProcessorService;
|
|
276
266
|
exports.StateMachineProcessorService = StateMachineProcessorService = StateMachineProcessorService_1 = __decorate([
|
|
277
267
|
(0, common_1.Injectable)(),
|
|
278
|
-
__metadata("design:paramtypes", [
|
|
279
|
-
persistence_1.WorkflowService,
|
|
268
|
+
__metadata("design:paramtypes", [persistence_1.WorkflowService,
|
|
280
269
|
tool_execution_service_1.ToolExecutionService,
|
|
281
270
|
state_machine_validator_registry_1.StateMachineValidatorRegistry,
|
|
282
|
-
common_2.ContextService,
|
|
283
271
|
template_expression_evaluator_service_1.TemplateExpressionEvaluatorService,
|
|
284
272
|
workflow_context_service_1.WorkflowContextService])
|
|
285
273
|
], StateMachineProcessorService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-machine-processor.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/services/state-machine-processor.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,iFAA2E;AAC3E,8CAe2B;AAC3B,qEAAgE;AAChE,mDAAoD;AACpD,yFAAmF;AACnF,yCAA8C;AAE9C,8FAAwF;AACxF,mGAA6F;AAC7F,mCAA8B;AAC9B,yEAAoE;AACpE,6BAAwB;AAExB,MAAM,2BAA2B,GAAG,OAAC,CAAC,KAAK,CACzC,OAAC;KACE,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAA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AE1C,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAjaY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,mBAAU,GAAE;qCAKyB,6BAAe;QACV,6CAAoB;QACX,gEAA6B;QACxB,0EAAkC;QAC9C,iDAAsB;GARtD,4BAA4B,CAiaxC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { StateMachineProcessorService } from './state-machine-processor.service';
|
|
2
2
|
import { ContextInterface, ConfigElement, WorkflowType } from '@loopstack/shared';
|
|
3
3
|
import { WorkflowStateService } from './workflow-state.service';
|
|
4
|
+
import { StateMachineConfigService } from './state-machine-config.service';
|
|
5
|
+
import { ContextService } from '../../common';
|
|
4
6
|
export declare class WorkflowProcessorService {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
+
private readonly stateMachineConfigService;
|
|
8
|
+
private readonly contextService;
|
|
9
|
+
private readonly workflowStateService;
|
|
10
|
+
private readonly stateMachineProcessorService;
|
|
7
11
|
private readonly logger;
|
|
8
|
-
constructor(
|
|
12
|
+
constructor(stateMachineConfigService: StateMachineConfigService, contextService: ContextService, workflowStateService: WorkflowStateService, stateMachineProcessorService: StateMachineProcessorService);
|
|
9
13
|
runStateMachineType(configElement: ConfigElement<WorkflowType>, context: ContextInterface): Promise<ContextInterface>;
|
|
10
14
|
}
|
|
@@ -15,17 +15,25 @@ const common_1 = require("@nestjs/common");
|
|
|
15
15
|
const state_machine_processor_service_1 = require("./state-machine-processor.service");
|
|
16
16
|
const shared_1 = require("@loopstack/shared");
|
|
17
17
|
const workflow_state_service_1 = require("./workflow-state.service");
|
|
18
|
+
const state_machine_config_service_1 = require("./state-machine-config.service");
|
|
19
|
+
const common_2 = require("../../common");
|
|
18
20
|
let WorkflowProcessorService = WorkflowProcessorService_1 = class WorkflowProcessorService {
|
|
19
|
-
|
|
21
|
+
stateMachineConfigService;
|
|
22
|
+
contextService;
|
|
23
|
+
workflowStateService;
|
|
20
24
|
stateMachineProcessorService;
|
|
21
25
|
logger = new common_1.Logger(WorkflowProcessorService_1.name);
|
|
22
|
-
constructor(
|
|
23
|
-
this.
|
|
26
|
+
constructor(stateMachineConfigService, contextService, workflowStateService, stateMachineProcessorService) {
|
|
27
|
+
this.stateMachineConfigService = stateMachineConfigService;
|
|
28
|
+
this.contextService = contextService;
|
|
29
|
+
this.workflowStateService = workflowStateService;
|
|
24
30
|
this.stateMachineProcessorService = stateMachineProcessorService;
|
|
25
31
|
}
|
|
26
32
|
async runStateMachineType(configElement, context) {
|
|
27
|
-
const
|
|
28
|
-
|
|
33
|
+
const mergedConfigElement = this.stateMachineConfigService.getConfig(configElement);
|
|
34
|
+
this.contextService.addIncludes(context, mergedConfigElement.importMap);
|
|
35
|
+
const currentWorkflow = await this.workflowStateService.getWorkflowState(mergedConfigElement, context);
|
|
36
|
+
const workflow = await this.stateMachineProcessorService.processStateMachine(context, currentWorkflow, mergedConfigElement);
|
|
29
37
|
if (workflow.status === shared_1.WorkflowState.Failed) {
|
|
30
38
|
context.error = true;
|
|
31
39
|
}
|
|
@@ -46,7 +54,9 @@ let WorkflowProcessorService = WorkflowProcessorService_1 = class WorkflowProces
|
|
|
46
54
|
exports.WorkflowProcessorService = WorkflowProcessorService;
|
|
47
55
|
exports.WorkflowProcessorService = WorkflowProcessorService = WorkflowProcessorService_1 = __decorate([
|
|
48
56
|
(0, common_1.Injectable)(),
|
|
49
|
-
__metadata("design:paramtypes", [
|
|
57
|
+
__metadata("design:paramtypes", [state_machine_config_service_1.StateMachineConfigService,
|
|
58
|
+
common_2.ContextService,
|
|
59
|
+
workflow_state_service_1.WorkflowStateService,
|
|
50
60
|
state_machine_processor_service_1.StateMachineProcessorService])
|
|
51
61
|
], WorkflowProcessorService);
|
|
52
62
|
//# sourceMappingURL=workflow-processor.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-processor.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/services/workflow-processor.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uFAAiF;AACjF,8CAK2B;AAC3B,qEAAgE;
|
|
1
|
+
{"version":3,"file":"workflow-processor.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/services/workflow-processor.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uFAAiF;AACjF,8CAK2B;AAC3B,qEAAgE;AAChE,iFAA2E;AAC3E,yCAA8C;AAGvC,IAAM,wBAAwB,gCAA9B,MAAM,wBAAwB;IAIhB;IACA;IACA;IACA;IANF,MAAM,GAAG,IAAI,eAAM,CAAC,0BAAwB,CAAC,IAAI,CAAC,CAAC;IAEpE,YACmB,yBAAoD,EACpD,cAA8B,EAC9B,oBAA0C,EAC1C,4BAA0D;QAH1D,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,iCAA4B,GAA5B,4BAA4B,CAA8B;IAC1E,CAAC;IAEJ,KAAK,CAAC,mBAAmB,CACvB,aAA0C,EAC1C,OAAyB;QAGzB,MAAM,mBAAmB,GACvB,IAAI,CAAC,yBAAyB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAE1D,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;QAGxE,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CACtE,mBAAmB,EACnB,OAAO,CACR,CAAC;QAEF,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,4BAA4B,CAAC,mBAAmB,CACzD,OAAO,EACP,eAAe,EACf,mBAAmB,CACpB,CAAC;QAEJ,IAAI,QAAQ,CAAC,MAAM,KAAK,sBAAa,CAAC,MAAM,EAAE,CAAC;YAC7C,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;QACvB,CAAC;QAED,IAAI,OAAO,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;YAC9C,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QACtB,CAAC;aAAM,CAAC;YAEN,IAAI,QAAQ,CAAC,gBAAgB,EAAE,CAAC;gBAC9B,OAAO,CAAC,SAAS,GAAG;oBAClB,GAAG,OAAO,CAAC,SAAS;oBACpB,GAAG,QAAQ,CAAC,gBAAgB;iBAC7B,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AAnDY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAKmC,wDAAyB;QACpC,uBAAc;QACR,6CAAoB;QACZ,8DAA4B;GAPlE,wBAAwB,CAmDpC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@loopstack/core",
|
|
3
3
|
"displayName": "Loopstack Core Module",
|
|
4
4
|
"description": "The core module of the loopstack automation framework",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.2",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jakob Klippel",
|
|
8
8
|
"url": "https://www.linkedin.com/in/jakob-klippel//"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"typeorm": "^0.3.20"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@loopstack/shared": "^0.4.
|
|
23
|
+
"@loopstack/shared": "^0.4.2",
|
|
24
24
|
"@nestjs/config": "^4.0.0",
|
|
25
25
|
"@nestjs/event-emitter": "^3.0.1",
|
|
26
26
|
"@nestjs/schedule": "^6.0.0",
|