@loopstack/common 0.23.0 → 0.25.0
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/base/base-tool.d.ts +10 -0
- package/dist/base/base-tool.d.ts.map +1 -0
- package/dist/base/base-tool.js +39 -0
- package/dist/base/base-tool.js.map +1 -0
- package/dist/base/base-workflow.d.ts +27 -0
- package/dist/base/base-workflow.d.ts.map +1 -0
- package/dist/base/base-workflow.js +53 -0
- package/dist/base/base-workflow.js.map +1 -0
- package/dist/base/index.d.ts +4 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +20 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/workflow-templates.d.ts +2 -0
- package/dist/base/workflow-templates.d.ts.map +1 -0
- package/dist/{interfaces/state-machine-validator.interface.js → base/workflow-templates.js} +1 -1
- package/dist/base/workflow-templates.js.map +1 -0
- package/dist/decorators/block.decorator.d.ts +52 -48
- package/dist/decorators/block.decorator.d.ts.map +1 -1
- package/dist/decorators/block.decorator.js +66 -86
- package/dist/decorators/block.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +0 -1
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +0 -1
- package/dist/decorators/index.js.map +1 -1
- package/dist/dtos/run-context.d.ts +4 -5
- package/dist/dtos/run-context.d.ts.map +1 -1
- package/dist/dtos/run-context.js +3 -4
- package/dist/dtos/run-context.js.map +1 -1
- package/dist/entities/document.entity.d.ts +2 -3
- package/dist/entities/document.entity.d.ts.map +1 -1
- package/dist/entities/document.entity.js +8 -14
- package/dist/entities/document.entity.js.map +1 -1
- package/dist/entities/index.d.ts +2 -3
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +2 -3
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/secret.entity.d.ts +11 -0
- package/dist/entities/secret.entity.d.ts.map +1 -0
- package/dist/entities/secret.entity.js +58 -0
- package/dist/entities/secret.entity.js.map +1 -0
- package/dist/entities/workflow-checkpoint.entity.d.ts +16 -0
- package/dist/entities/workflow-checkpoint.entity.d.ts.map +1 -0
- package/dist/entities/workflow-checkpoint.entity.js +83 -0
- package/dist/entities/workflow-checkpoint.entity.js.map +1 -0
- package/dist/entities/workflow.entity.d.ts +14 -16
- package/dist/entities/workflow.entity.d.ts.map +1 -1
- package/dist/entities/workflow.entity.js +65 -79
- package/dist/entities/workflow.entity.js.map +1 -1
- package/dist/entities/workspace.entity.d.ts +3 -3
- package/dist/entities/workspace.entity.d.ts.map +1 -1
- package/dist/entities/workspace.entity.js +7 -7
- package/dist/entities/workspace.entity.js.map +1 -1
- package/dist/enums/index.d.ts +0 -1
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +0 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/workflow-state.enum.d.ts +1 -0
- package/dist/enums/workflow-state.enum.d.ts.map +1 -1
- package/dist/enums/workflow-state.enum.js +1 -0
- package/dist/enums/workflow-state.enum.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/block.interface.d.ts +4 -9
- package/dist/interfaces/block.interface.d.ts.map +1 -1
- package/dist/interfaces/document-repository.interface.d.ts +18 -0
- package/dist/interfaces/document-repository.interface.d.ts.map +1 -0
- package/dist/interfaces/{state-machine-validator-result.interface.js → document-repository.interface.js} +1 -1
- package/dist/interfaces/document-repository.interface.js.map +1 -0
- package/dist/interfaces/execution-context.interface.d.ts +10 -0
- package/dist/interfaces/execution-context.interface.d.ts.map +1 -0
- package/dist/interfaces/execution-context.interface.js +3 -0
- package/dist/interfaces/execution-context.interface.js.map +1 -0
- package/dist/interfaces/handler.interface.d.ts +16 -5
- package/dist/interfaces/handler.interface.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +3 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +3 -2
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts +10 -10
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts.map +1 -1
- package/dist/interfaces/tool-execution-interceptor.interface.js +12 -2
- package/dist/interfaces/tool-execution-interceptor.interface.js.map +1 -1
- package/dist/interfaces/workflow-metadata.interface.d.ts +0 -1
- package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -1
- package/dist/interfaces/workflow-orchestrator.interface.d.ts +11 -0
- package/dist/interfaces/workflow-orchestrator.interface.d.ts.map +1 -0
- package/dist/interfaces/workflow-orchestrator.interface.js +3 -0
- package/dist/interfaces/workflow-orchestrator.interface.js.map +1 -0
- package/dist/interfaces/workflow-state.interface.d.ts +1 -4
- package/dist/interfaces/workflow-state.interface.d.ts.map +1 -1
- package/dist/tokens.d.ts +5 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +8 -0
- package/dist/tokens.js.map +1 -0
- package/dist/utils/block-config.builder.d.ts.map +1 -1
- package/dist/utils/block-config.builder.js +7 -6
- package/dist/utils/block-config.builder.js.map +1 -1
- package/dist/utils/block-metadata.utils.d.ts +7 -16
- package/dist/utils/block-metadata.utils.d.ts.map +1 -1
- package/dist/utils/block-metadata.utils.js +33 -63
- package/dist/utils/block-metadata.utils.js.map +1 -1
- package/dist/utils/index.d.ts +1 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/workflow-transitions.builder.d.ts +3 -0
- package/dist/utils/workflow-transitions.builder.d.ts.map +1 -0
- package/dist/utils/workflow-transitions.builder.js +22 -0
- package/dist/utils/workflow-transitions.builder.js.map +1 -0
- package/package.json +2 -3
- package/dist/decorators/state-machine-validator.decorator.d.ts +0 -5
- package/dist/decorators/state-machine-validator.decorator.d.ts.map +0 -1
- package/dist/decorators/state-machine-validator.decorator.js +0 -11
- package/dist/decorators/state-machine-validator.decorator.js.map +0 -1
- package/dist/entities/event-subscriber.entity.d.ts +0 -20
- package/dist/entities/event-subscriber.entity.d.ts.map +0 -1
- package/dist/entities/event-subscriber.entity.js +0 -102
- package/dist/entities/event-subscriber.entity.js.map +0 -1
- package/dist/entities/namespace.entity.d.ts +0 -20
- package/dist/entities/namespace.entity.d.ts.map +0 -1
- package/dist/entities/namespace.entity.js +0 -107
- package/dist/entities/namespace.entity.js.map +0 -1
- package/dist/entities/pipeline.entity.d.ts +0 -32
- package/dist/entities/pipeline.entity.d.ts.map +0 -1
- package/dist/entities/pipeline.entity.js +0 -164
- package/dist/entities/pipeline.entity.js.map +0 -1
- package/dist/enums/pipeline-state.d.ts +0 -9
- package/dist/enums/pipeline-state.d.ts.map +0 -1
- package/dist/enums/pipeline-state.js +0 -13
- package/dist/enums/pipeline-state.js.map +0 -1
- package/dist/interfaces/state-machine-validator-result.interface.d.ts +0 -5
- package/dist/interfaces/state-machine-validator-result.interface.d.ts.map +0 -1
- package/dist/interfaces/state-machine-validator-result.interface.js.map +0 -1
- package/dist/interfaces/state-machine-validator.interface.d.ts +0 -9
- package/dist/interfaces/state-machine-validator.interface.d.ts.map +0 -1
- package/dist/interfaces/state-machine-validator.interface.js.map +0 -1
- package/dist/utils/create-hash.util.d.ts +0 -2
- package/dist/utils/create-hash.util.d.ts.map +0 -1
- package/dist/utils/create-hash.util.js +0 -13
- package/dist/utils/create-hash.util.js.map +0 -1
- package/dist/utils/normalize-deep-serialize.util.d.ts +0 -2
- package/dist/utils/normalize-deep-serialize.util.d.ts.map +0 -1
- package/dist/utils/normalize-deep-serialize.util.js +0 -19
- package/dist/utils/normalize-deep-serialize.util.js.map +0 -1
- package/dist/utils/object-fingerprint.util.d.ts +0 -2
- package/dist/utils/object-fingerprint.util.d.ts.map +0 -1
- package/dist/utils/object-fingerprint.util.js +0 -10
- package/dist/utils/object-fingerprint.util.js.map +0 -1
|
@@ -12,39 +12,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WorkflowEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const enums_1 = require("../enums");
|
|
15
|
-
const utils_1 = require("../utils");
|
|
16
15
|
const document_entity_1 = require("./document.entity");
|
|
17
|
-
const namespace_entity_1 = require("./namespace.entity");
|
|
18
16
|
const user_entity_1 = require("./user.entity");
|
|
17
|
+
const workspace_entity_1 = require("./workspace.entity");
|
|
19
18
|
let WorkflowEntity = class WorkflowEntity {
|
|
20
19
|
id;
|
|
21
|
-
|
|
20
|
+
alias;
|
|
21
|
+
className;
|
|
22
22
|
title;
|
|
23
|
-
|
|
24
|
-
progress;
|
|
23
|
+
run;
|
|
25
24
|
status;
|
|
26
25
|
hasError;
|
|
27
26
|
errorMessage;
|
|
27
|
+
callbackTransition;
|
|
28
|
+
callbackMetadata;
|
|
29
|
+
args;
|
|
30
|
+
context;
|
|
28
31
|
createdAt;
|
|
29
32
|
updatedAt;
|
|
30
33
|
place;
|
|
31
|
-
transitionResults;
|
|
32
|
-
inputData;
|
|
33
34
|
result;
|
|
34
35
|
availableTransitions;
|
|
35
|
-
history;
|
|
36
|
-
schema;
|
|
37
|
-
error;
|
|
38
|
-
ui;
|
|
39
|
-
namespace;
|
|
40
|
-
namespaceId;
|
|
41
|
-
pipelineId;
|
|
42
36
|
labels;
|
|
43
37
|
dependencies;
|
|
44
38
|
hashRecord;
|
|
45
39
|
documents;
|
|
40
|
+
workspace;
|
|
41
|
+
workspaceId;
|
|
46
42
|
creator;
|
|
47
43
|
createdBy;
|
|
44
|
+
parent;
|
|
45
|
+
parentId;
|
|
46
|
+
children;
|
|
48
47
|
};
|
|
49
48
|
exports.WorkflowEntity = WorkflowEntity;
|
|
50
49
|
__decorate([
|
|
@@ -52,22 +51,22 @@ __decorate([
|
|
|
52
51
|
__metadata("design:type", String)
|
|
53
52
|
], WorkflowEntity.prototype, "id", void 0);
|
|
54
53
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'varchar', name: '
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'alias' }),
|
|
56
55
|
(0, typeorm_1.Index)(),
|
|
57
56
|
__metadata("design:type", String)
|
|
58
|
-
], WorkflowEntity.prototype, "
|
|
57
|
+
], WorkflowEntity.prototype, "alias", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'class_name', nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], WorkflowEntity.prototype, "className", void 0);
|
|
59
62
|
__decorate([
|
|
60
63
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
61
64
|
__metadata("design:type", String)
|
|
62
65
|
], WorkflowEntity.prototype, "title", void 0);
|
|
63
66
|
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)(
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], WorkflowEntity.prototype, "index", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ default: 0 }),
|
|
67
|
+
(0, typeorm_1.Column)({ default: 1 }),
|
|
69
68
|
__metadata("design:type", Number)
|
|
70
|
-
], WorkflowEntity.prototype, "
|
|
69
|
+
], WorkflowEntity.prototype, "run", void 0);
|
|
71
70
|
__decorate([
|
|
72
71
|
(0, typeorm_1.Column)({
|
|
73
72
|
type: 'enum',
|
|
@@ -84,6 +83,22 @@ __decorate([
|
|
|
84
83
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
85
84
|
__metadata("design:type", Object)
|
|
86
85
|
], WorkflowEntity.prototype, "errorMessage", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'callback_transition', nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], WorkflowEntity.prototype, "callbackTransition", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)('jsonb', { name: 'callback_metadata', nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], WorkflowEntity.prototype, "callbackMetadata", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)('jsonb', { default: {} }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], WorkflowEntity.prototype, "args", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)('jsonb', { default: {} }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], WorkflowEntity.prototype, "context", void 0);
|
|
87
102
|
__decorate([
|
|
88
103
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
89
104
|
__metadata("design:type", Date)
|
|
@@ -93,23 +108,9 @@ __decorate([
|
|
|
93
108
|
__metadata("design:type", Date)
|
|
94
109
|
], WorkflowEntity.prototype, "updatedAt", void 0);
|
|
95
110
|
__decorate([
|
|
96
|
-
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: 'start' }),
|
|
97
112
|
__metadata("design:type", String)
|
|
98
113
|
], WorkflowEntity.prototype, "place", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, typeorm_1.Column)('jsonb', {
|
|
101
|
-
name: 'transition_results',
|
|
102
|
-
nullable: true,
|
|
103
|
-
}),
|
|
104
|
-
__metadata("design:type", Object)
|
|
105
|
-
], WorkflowEntity.prototype, "transitionResults", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, typeorm_1.Column)('jsonb', {
|
|
108
|
-
name: 'input_data',
|
|
109
|
-
default: {},
|
|
110
|
-
}),
|
|
111
|
-
__metadata("design:type", Object)
|
|
112
|
-
], WorkflowEntity.prototype, "inputData", void 0);
|
|
113
114
|
__decorate([
|
|
114
115
|
(0, typeorm_1.Column)({
|
|
115
116
|
type: 'jsonb',
|
|
@@ -125,47 +126,6 @@ __decorate([
|
|
|
125
126
|
}),
|
|
126
127
|
__metadata("design:type", Object)
|
|
127
128
|
], WorkflowEntity.prototype, "availableTransitions", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)('jsonb', { name: 'history', nullable: true }),
|
|
130
|
-
__metadata("design:type", Object)
|
|
131
|
-
], WorkflowEntity.prototype, "history", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, typeorm_1.Column)({
|
|
134
|
-
type: 'jsonb',
|
|
135
|
-
transformer: new utils_1.StableJsonTransformer(),
|
|
136
|
-
name: 'schema',
|
|
137
|
-
nullable: true,
|
|
138
|
-
}),
|
|
139
|
-
__metadata("design:type", Object)
|
|
140
|
-
], WorkflowEntity.prototype, "schema", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)('jsonb', { nullable: true, name: 'error' }),
|
|
143
|
-
__metadata("design:type", Object)
|
|
144
|
-
], WorkflowEntity.prototype, "error", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, typeorm_1.Column)({
|
|
147
|
-
type: 'jsonb',
|
|
148
|
-
transformer: new utils_1.StableJsonTransformer(),
|
|
149
|
-
name: 'ui',
|
|
150
|
-
nullable: true,
|
|
151
|
-
}),
|
|
152
|
-
__metadata("design:type", Object)
|
|
153
|
-
], WorkflowEntity.prototype, "ui", void 0);
|
|
154
|
-
__decorate([
|
|
155
|
-
(0, typeorm_1.ManyToOne)(() => namespace_entity_1.NamespaceEntity, (namespace) => namespace.workflows, {
|
|
156
|
-
onDelete: 'CASCADE',
|
|
157
|
-
}),
|
|
158
|
-
(0, typeorm_1.JoinColumn)({ name: 'namespace_id' }),
|
|
159
|
-
__metadata("design:type", namespace_entity_1.NamespaceEntity)
|
|
160
|
-
], WorkflowEntity.prototype, "namespace", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
(0, typeorm_1.Column)({ name: 'namespace_id' }),
|
|
163
|
-
__metadata("design:type", String)
|
|
164
|
-
], WorkflowEntity.prototype, "namespaceId", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, typeorm_1.Column)({ name: 'pipeline_id' }),
|
|
167
|
-
__metadata("design:type", String)
|
|
168
|
-
], WorkflowEntity.prototype, "pipelineId", void 0);
|
|
169
129
|
__decorate([
|
|
170
130
|
(0, typeorm_1.Column)('varchar', { name: 'labels', array: true, default: [] }),
|
|
171
131
|
__metadata("design:type", Array)
|
|
@@ -193,11 +153,21 @@ __decorate([
|
|
|
193
153
|
], WorkflowEntity.prototype, "hashRecord", void 0);
|
|
194
154
|
__decorate([
|
|
195
155
|
(0, typeorm_1.OneToMany)(() => document_entity_1.DocumentEntity, (document) => document.workflow, {
|
|
196
|
-
cascade: true,
|
|
197
156
|
onDelete: 'CASCADE',
|
|
198
157
|
}),
|
|
199
158
|
__metadata("design:type", Array)
|
|
200
159
|
], WorkflowEntity.prototype, "documents", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.ManyToOne)(() => workspace_entity_1.WorkspaceEntity, (workspace) => workspace.workflows, {
|
|
162
|
+
onDelete: 'CASCADE',
|
|
163
|
+
}),
|
|
164
|
+
(0, typeorm_1.JoinColumn)({ name: 'workspace_id' }),
|
|
165
|
+
__metadata("design:type", workspace_entity_1.WorkspaceEntity)
|
|
166
|
+
], WorkflowEntity.prototype, "workspace", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ name: 'workspace_id' }),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], WorkflowEntity.prototype, "workspaceId", void 0);
|
|
201
171
|
__decorate([
|
|
202
172
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'RESTRICT' }),
|
|
203
173
|
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
@@ -208,6 +178,22 @@ __decorate([
|
|
|
208
178
|
(0, typeorm_1.Index)(),
|
|
209
179
|
__metadata("design:type", String)
|
|
210
180
|
], WorkflowEntity.prototype, "createdBy", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.ManyToOne)(() => WorkflowEntity, (workflow) => workflow.children, {
|
|
183
|
+
onDelete: 'CASCADE',
|
|
184
|
+
nullable: true,
|
|
185
|
+
}),
|
|
186
|
+
(0, typeorm_1.JoinColumn)({ name: 'parent_id' }),
|
|
187
|
+
__metadata("design:type", Object)
|
|
188
|
+
], WorkflowEntity.prototype, "parent", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ name: 'parent_id', type: 'uuid', nullable: true }),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], WorkflowEntity.prototype, "parentId", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.OneToMany)(() => WorkflowEntity, (workflow) => workflow.parent),
|
|
195
|
+
__metadata("design:type", Array)
|
|
196
|
+
], WorkflowEntity.prototype, "children", void 0);
|
|
211
197
|
exports.WorkflowEntity = WorkflowEntity = __decorate([
|
|
212
198
|
(0, typeorm_1.Entity)({ name: 'core_workflow' })
|
|
213
199
|
], WorkflowEntity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.entity.js","sourceRoot":"","sources":["../../src/entities/workflow.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAYiB;
|
|
1
|
+
{"version":3,"file":"workflow.entity.js","sourceRoot":"","sources":["../../src/entities/workflow.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAYiB;AAEjB,oCAAyC;AACzC,uDAAmD;AACnD,+CAAqC;AACrC,yDAAqD;AAG9C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAIZ,KAAK,CAAU;IAGf,SAAS,CAAiB;IAG1B,KAAK,CAAU;IAGf,GAAG,CAAU;IAOb,MAAM,CAAiB;IAGvB,QAAQ,CAAW;IAGnB,YAAY,CAAiB;IAG7B,kBAAkB,CAAiB;IAGnC,gBAAgB,CAAkC;IAGlD,IAAI,CAAO;IAGX,OAAO,CAAuB;IAG9B,SAAS,CAAQ;IAGj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C;;8CACH;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACnC;AAGzB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;gDACnC;yBAvHjB,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,cAAc,CAwH1B"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PipelineEntity } from './pipeline.entity';
|
|
2
1
|
import { User } from './user.entity';
|
|
2
|
+
import { WorkflowEntity } from './workflow.entity';
|
|
3
3
|
import { WorkspaceEnvironmentEntity } from './workspace-environment.entity';
|
|
4
4
|
export declare class WorkspaceEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
className: string;
|
|
8
8
|
isFavourite: boolean;
|
|
9
9
|
createdAt: Date;
|
|
10
10
|
updatedAt: Date;
|
|
11
|
-
|
|
11
|
+
workflows: WorkflowEntity[];
|
|
12
12
|
environments: WorkspaceEnvironmentEntity[];
|
|
13
13
|
creator: User;
|
|
14
14
|
createdBy: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"workspace.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,qBACa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,EAAG,MAAM,CAAC;IAIf,SAAS,EAAG,MAAM,CAAC;IAGnB,WAAW,EAAG,OAAO,CAAC;IAGtB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAMjB,SAAS,EAAG,cAAc,EAAE,CAAC;IAM7B,YAAY,EAAG,0BAA0B,EAAE,CAAC;IAI5C,OAAO,EAAG,IAAI,CAAC;IAIf,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -11,17 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WorkspaceEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const pipeline_entity_1 = require("./pipeline.entity");
|
|
15
14
|
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const workflow_entity_1 = require("./workflow.entity");
|
|
16
16
|
const workspace_environment_entity_1 = require("./workspace-environment.entity");
|
|
17
17
|
let WorkspaceEntity = class WorkspaceEntity {
|
|
18
18
|
id;
|
|
19
19
|
title;
|
|
20
|
-
|
|
20
|
+
className;
|
|
21
21
|
isFavourite;
|
|
22
22
|
createdAt;
|
|
23
23
|
updatedAt;
|
|
24
|
-
|
|
24
|
+
workflows;
|
|
25
25
|
environments;
|
|
26
26
|
creator;
|
|
27
27
|
createdBy;
|
|
@@ -36,10 +36,10 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], WorkspaceEntity.prototype, "title", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'varchar', name: '
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'class_name' }),
|
|
40
40
|
(0, typeorm_1.Index)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
], WorkspaceEntity.prototype, "
|
|
42
|
+
], WorkspaceEntity.prototype, "className", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({ name: 'is_favourite', default: false }),
|
|
45
45
|
__metadata("design:type", Boolean)
|
|
@@ -53,12 +53,12 @@ __decorate([
|
|
|
53
53
|
__metadata("design:type", Date)
|
|
54
54
|
], WorkspaceEntity.prototype, "updatedAt", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
56
|
+
(0, typeorm_1.OneToMany)(() => workflow_entity_1.WorkflowEntity, (workflow) => workflow.workspace, {
|
|
57
57
|
cascade: true,
|
|
58
58
|
onDelete: 'CASCADE',
|
|
59
59
|
}),
|
|
60
60
|
__metadata("design:type", Array)
|
|
61
|
-
], WorkspaceEntity.prototype, "
|
|
61
|
+
], WorkspaceEntity.prototype, "workflows", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.OneToMany)(() => workspace_environment_entity_1.WorkspaceEnvironmentEntity, (env) => env.workspace, {
|
|
64
64
|
cascade: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.entity.js","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB
|
|
1
|
+
{"version":3,"file":"workspace.entity.js","sourceRoot":"","sources":["../../src/entities/workspace.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,+CAAqC;AACrC,uDAAmD;AACnD,iFAA4E;AAGrE,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,EAAE,CAAU;IAGZ,KAAK,CAAU;IAIf,SAAS,CAAU;IAGnB,WAAW,CAAW;IAGtB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAMjB,SAAS,CAAoB;IAM7B,YAAY,CAAgC;IAI5C,OAAO,CAAQ;IAIf,SAAS,CAAU;CACpB,CAAA;AAvCY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACn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,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,eAAe,CAuC3B"}
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
package/dist/enums/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./pipeline-state.js"), exports);
|
|
18
17
|
__exportStar(require("./role-name.enum.js"), exports);
|
|
19
18
|
__exportStar(require("./workflow-state.enum.js"), exports);
|
|
20
19
|
__exportStar(require("./user-type.enum.js"), exports);
|
package/dist/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,2DAAyC;AACzC,sDAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-state.enum.d.ts","sourceRoot":"","sources":["../../src/enums/workflow-state.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
1
|
+
{"version":3,"file":"workflow-state.enum.d.ts","sourceRoot":"","sources":["../../src/enums/workflow-state.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
|
|
@@ -5,6 +5,7 @@ var WorkflowState;
|
|
|
5
5
|
(function (WorkflowState) {
|
|
6
6
|
WorkflowState["Pending"] = "pending";
|
|
7
7
|
WorkflowState["Running"] = "running";
|
|
8
|
+
WorkflowState["Paused"] = "paused";
|
|
8
9
|
WorkflowState["Waiting"] = "waiting";
|
|
9
10
|
WorkflowState["Completed"] = "completed";
|
|
10
11
|
WorkflowState["Failed"] = "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-state.enum.js","sourceRoot":"","sources":["../../src/enums/workflow-state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"workflow-state.enum.js","sourceRoot":"","sources":["../../src/enums/workflow-state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;AACvB,CAAC,EARW,aAAa,6BAAb,aAAa,QAQxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
+
export * from './base/index.js';
|
|
2
3
|
export * from './decorators/index.js';
|
|
3
4
|
export * from './entities/index.js';
|
|
4
5
|
export * from './enums/index.js';
|
|
@@ -6,5 +7,6 @@ export * from './interfaces/index.js';
|
|
|
6
7
|
export * from './utils/index.js';
|
|
7
8
|
export * from './constants/index.js';
|
|
8
9
|
export * from './dtos/index.js';
|
|
10
|
+
export * from './tokens.js';
|
|
9
11
|
export * from './schema/index.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
require("reflect-metadata");
|
|
18
|
+
__exportStar(require("./base/index.js"), exports);
|
|
18
19
|
__exportStar(require("./decorators/index.js"), exports);
|
|
19
20
|
__exportStar(require("./entities/index.js"), exports);
|
|
20
21
|
__exportStar(require("./enums/index.js"), exports);
|
|
@@ -22,5 +23,6 @@ __exportStar(require("./interfaces/index.js"), exports);
|
|
|
22
23
|
__exportStar(require("./utils/index.js"), exports);
|
|
23
24
|
__exportStar(require("./constants/index.js"), exports);
|
|
24
25
|
__exportStar(require("./dtos/index.js"), exports);
|
|
26
|
+
__exportStar(require("./tokens.js"), exports);
|
|
25
27
|
__exportStar(require("./schema/index.js"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,kDAAgC;AAChC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,8CAA4B;AAC5B,oDAAkC"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentRepository } from './document-repository.interface';
|
|
2
2
|
import { ToolResult } from './handler.interface';
|
|
3
|
-
|
|
4
|
-
export interface BlockInterface extends Object {
|
|
5
|
-
validate?<TArgs>(args: unknown): TArgs;
|
|
3
|
+
export interface BlockInterface {
|
|
6
4
|
}
|
|
7
5
|
export interface ToolInterface<TArgs extends object = any> extends BlockInterface {
|
|
8
|
-
|
|
6
|
+
call(args: TArgs): Promise<ToolResult>;
|
|
9
7
|
}
|
|
10
8
|
export interface WorkflowInterface extends BlockInterface {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export interface DocumentInterface extends BlockInterface {
|
|
14
|
-
content: any;
|
|
9
|
+
readonly repository?: DocumentRepository;
|
|
15
10
|
}
|
|
16
11
|
export type WorkspaceInterface = BlockInterface;
|
|
17
12
|
//# sourceMappingURL=block.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,aAAa,CAAC,KAAK,SAAS,MAAM,GAAG,GAAG,CAAE,SAAQ,cAAc;IAC/E,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,QAAQ,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAC1C;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DocumentEntity } from '../entities/document.entity';
|
|
2
|
+
export type DocumentClass<T = any> = Function & {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
prototype: T;
|
|
5
|
+
};
|
|
6
|
+
export interface DocumentSaveOptions {
|
|
7
|
+
id?: string;
|
|
8
|
+
meta?: Record<string, unknown>;
|
|
9
|
+
validate?: 'strict' | 'safe' | 'skip';
|
|
10
|
+
}
|
|
11
|
+
export interface DocumentRepository {
|
|
12
|
+
create<T extends object>(documentClass: DocumentClass<T>, data: T): T;
|
|
13
|
+
save<T extends object>(documentClass: DocumentClass<T>, data: T, options?: DocumentSaveOptions): Promise<DocumentEntity>;
|
|
14
|
+
save<T extends object>(instance: T, options?: DocumentSaveOptions): Promise<DocumentEntity>;
|
|
15
|
+
findAll<T extends object>(documentClass: DocumentClass<T>): T[];
|
|
16
|
+
findByTag(tag: string): DocumentEntity[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=document-repository.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-repository.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/document-repository.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,GAAG,IAAI,QAAQ,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAAC,SAAS,EAAE,CAAC,CAAA;CAAE,CAAC;AAE1F,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IAKjC,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IAKtE,IAAI,CAAC,CAAC,SAAS,MAAM,EACnB,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,EAC/B,IAAI,EAAE,CAAC,EACP,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,cAAc,CAAC,CAAC;IAK3B,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAK5F,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAKhE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-repository.interface.js","sourceRoot":"","sources":["../../src/interfaces/document-repository.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RunContext } from '../dtos';
|
|
2
|
+
import { WorkflowInterface } from './block.interface';
|
|
3
|
+
import { WorkflowMetadataInterface } from './workflow-metadata.interface';
|
|
4
|
+
export interface FrameworkContext {
|
|
5
|
+
readonly context: RunContext;
|
|
6
|
+
readonly runtime: WorkflowMetadataInterface;
|
|
7
|
+
readonly args: Readonly<Record<string, unknown> | undefined>;
|
|
8
|
+
readonly parent: WorkflowInterface;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=execution-context.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-context.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/execution-context.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAS1E,MAAM,WAAW,gBAAgB;IAE/B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAG7B,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAG5C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;IAG7D,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-context.interface.js","sourceRoot":"","sources":["../../src/interfaces/execution-context.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import { DocumentEntity } from '../entities';
|
|
2
|
-
export interface ToolSideEffects {
|
|
3
|
-
addWorkflowDocuments?: DocumentEntity[];
|
|
4
|
-
}
|
|
5
1
|
export type ToolResult<TData = any> = {
|
|
6
2
|
type?: 'text' | 'image' | 'file';
|
|
7
3
|
data?: TData;
|
|
8
4
|
error?: string;
|
|
9
|
-
effects?: ToolSideEffects;
|
|
10
5
|
metadata?: Record<string, unknown>;
|
|
6
|
+
pending?: {
|
|
7
|
+
workflowId: string;
|
|
8
|
+
};
|
|
11
9
|
};
|
|
10
|
+
export interface ToolCallOptions {
|
|
11
|
+
callback?: {
|
|
12
|
+
transition: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface ToolCallEntry {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
input: unknown;
|
|
20
|
+
output?: unknown;
|
|
21
|
+
}
|
|
22
|
+
export type ToolCallsMap = Record<string, ToolCallEntry>;
|
|
12
23
|
//# sourceMappingURL=handler.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/handler.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"handler.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/handler.interface.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,KAAK,GAAG,GAAG,IAAI;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,CAAC,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAGF,MAAM,WAAW,eAAe;IAE9B,QAAQ,CAAC,EAAE;QACT,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './state-machine-validator.interface.js';
|
|
2
1
|
export * from './handler.interface.js';
|
|
3
2
|
export * from './role.interface.js';
|
|
4
3
|
export * from './tool-execution-interceptor.interface.js';
|
|
@@ -7,7 +6,6 @@ export * from './ai-provider.interface.js';
|
|
|
7
6
|
export * from './block.interface.js';
|
|
8
7
|
export * from './transition-results.types.js';
|
|
9
8
|
export * from './sso-response.interface.js';
|
|
10
|
-
export * from './state-machine-validator-result.interface.js';
|
|
11
9
|
export * from './jwt-payload.interface.js';
|
|
12
10
|
export * from './current-user.interface.js';
|
|
13
11
|
export * from './persistence-state.interface.js';
|
|
@@ -15,4 +13,7 @@ export * from './workflow-execution.interface.js';
|
|
|
15
13
|
export * from './workflow-memento-data.interfate.js';
|
|
16
14
|
export * from './workflow-metadata.interface.js';
|
|
17
15
|
export * from './workflow-state.interface.js';
|
|
16
|
+
export * from './document-repository.interface.js';
|
|
17
|
+
export * from './execution-context.interface.js';
|
|
18
|
+
export * from './workflow-orchestrator.interface.js';
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC"}
|
package/dist/interfaces/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./state-machine-validator.interface.js"), exports);
|
|
18
17
|
__exportStar(require("./handler.interface.js"), exports);
|
|
19
18
|
__exportStar(require("./role.interface.js"), exports);
|
|
20
19
|
__exportStar(require("./tool-execution-interceptor.interface.js"), exports);
|
|
@@ -23,7 +22,6 @@ __exportStar(require("./ai-provider.interface.js"), exports);
|
|
|
23
22
|
__exportStar(require("./block.interface.js"), exports);
|
|
24
23
|
__exportStar(require("./transition-results.types.js"), exports);
|
|
25
24
|
__exportStar(require("./sso-response.interface.js"), exports);
|
|
26
|
-
__exportStar(require("./state-machine-validator-result.interface.js"), exports);
|
|
27
25
|
__exportStar(require("./jwt-payload.interface.js"), exports);
|
|
28
26
|
__exportStar(require("./current-user.interface.js"), exports);
|
|
29
27
|
__exportStar(require("./persistence-state.interface.js"), exports);
|
|
@@ -31,4 +29,7 @@ __exportStar(require("./workflow-execution.interface.js"), exports);
|
|
|
31
29
|
__exportStar(require("./workflow-memento-data.interfate.js"), exports);
|
|
32
30
|
__exportStar(require("./workflow-metadata.interface.js"), exports);
|
|
33
31
|
__exportStar(require("./workflow-state.interface.js"), exports);
|
|
32
|
+
__exportStar(require("./document-repository.interface.js"), exports);
|
|
33
|
+
__exportStar(require("./execution-context.interface.js"), exports);
|
|
34
|
+
__exportStar(require("./workflow-orchestrator.interface.js"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAEvC,sDAAoC;AACpC,4EAA0D;AAC1D,sDAAoC;AACpC,6DAA2C;AAC3C,uDAAqC;AACrC,gEAA8C;AAC9C,8DAA4C;AAC5C,6DAA2C;AAC3C,8DAA4C;AAC5C,mEAAiD;AACjD,oEAAkD;AAClD,uEAAqD;AACrD,mEAAiD;AACjD,gEAA8C;AAC9C,qEAAmD;AACnD,mEAAiD;AACjD,uEAAqD"}
|