@loopstack/core 0.0.5 → 0.1.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/CHANGELOG.md +11 -0
- package/dist/config/core.yaml +1 -0
- package/dist/modules/common/services/context.service.d.ts +2 -2
- package/dist/modules/common/services/context.service.js +7 -7
- package/dist/modules/common/services/context.service.js.map +1 -1
- package/dist/modules/common/services/document-helper.service.d.ts +58 -48
- package/dist/modules/common/services/schema-validator.service.d.ts +2 -0
- package/dist/modules/common/services/schema-validator.service.js +14 -11
- package/dist/modules/common/services/schema-validator.service.js.map +1 -1
- package/dist/modules/common/services/value-parser.service.d.ts +2 -6
- package/dist/modules/common/services/value-parser.service.js +0 -3
- package/dist/modules/common/services/value-parser.service.js.map +1 -1
- package/dist/modules/configuration/configuration.module.js +2 -3
- package/dist/modules/configuration/configuration.module.js.map +1 -1
- package/dist/modules/configuration/services/configuration.service.d.ts +5 -7
- package/dist/modules/configuration/services/configuration.service.js +38 -44
- package/dist/modules/configuration/services/configuration.service.js.map +1 -1
- package/dist/modules/configuration/services/dynamic-schema-generator.service.d.ts +8 -8
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js +15 -18
- package/dist/modules/configuration/services/dynamic-schema-generator.service.js.map +1 -1
- package/dist/modules/configuration/services/index.d.ts +1 -2
- package/dist/modules/configuration/services/index.js +1 -2
- package/dist/modules/configuration/services/index.js.map +1 -1
- package/dist/modules/configuration/services/service-registry.service.d.ts +20 -0
- package/dist/modules/configuration/services/{adapter-registry.service.js → service-registry.service.js} +31 -16
- package/dist/modules/configuration/services/service-registry.service.js.map +1 -0
- package/dist/modules/persistence/__tests__/database-entities-utils.d.ts +2 -2
- package/dist/modules/persistence/__tests__/database-entities-utils.js +5 -5
- package/dist/modules/persistence/__tests__/database-entities-utils.js.map +1 -1
- package/dist/modules/persistence/persistence.module.js +3 -3
- package/dist/modules/persistence/persistence.module.js.map +1 -1
- package/dist/modules/persistence/services/document.service.d.ts +3 -3
- package/dist/modules/persistence/services/document.service.js +6 -6
- package/dist/modules/persistence/services/document.service.js.map +1 -1
- package/dist/modules/persistence/services/index.d.ts +1 -1
- package/dist/modules/persistence/services/index.js +1 -1
- package/dist/modules/persistence/services/index.js.map +1 -1
- package/dist/modules/persistence/services/namespace.service.d.ts +2 -2
- package/dist/modules/persistence/services/namespace.service.js +9 -9
- package/dist/modules/persistence/services/namespace.service.js.map +1 -1
- package/dist/modules/persistence/services/pipeline.service.d.ts +8 -0
- package/dist/modules/persistence/services/{project.service.js → pipeline.service.js} +13 -13
- package/dist/modules/persistence/services/pipeline.service.js.map +1 -0
- package/dist/modules/persistence/subscriber/workflow.subscriber.js +2 -2
- package/dist/modules/persistence/subscriber/workflow.subscriber.js.map +1 -1
- package/dist/modules/workflow-processor/services/index.d.ts +2 -1
- package/dist/modules/workflow-processor/services/index.js +2 -1
- package/dist/modules/workflow-processor/services/index.js.map +1 -1
- package/dist/modules/workflow-processor/services/namespace-processor.service.js +1 -1
- package/dist/modules/workflow-processor/services/namespace-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/pipeline-processor.service.d.ts +15 -0
- package/dist/modules/workflow-processor/services/{project-processor.service.js → pipeline-processor.service.js} +24 -24
- package/dist/modules/workflow-processor/services/pipeline-processor.service.js.map +1 -0
- package/dist/modules/workflow-processor/services/state-machine-config.service.d.ts +7 -7
- package/dist/modules/workflow-processor/services/state-machine-config.service.js +0 -4
- 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 +3 -1
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js +40 -40
- package/dist/modules/workflow-processor/services/state-machine-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.d.ts +9 -0
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js +50 -0
- package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js.map +1 -0
- package/dist/modules/workflow-processor/services/tool-execution.service.d.ts +18 -12
- package/dist/modules/workflow-processor/services/tool-execution.service.js +29 -37
- package/dist/modules/workflow-processor/services/tool-execution.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.d.ts +2 -2
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.js +3 -3
- package/dist/modules/workflow-processor/services/tool-schema-validator.service.js.map +1 -1
- package/dist/modules/workflow-processor/services/workflow-processor.service.js +9 -4
- package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
- package/dist/modules/workflow-processor/tool-services/add-namespace.service.d.ts +20 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/add-namespace.service.js +16 -13
- package/dist/modules/workflow-processor/tool-services/add-namespace.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.d.ts +33 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/batch-create-documents.service.js +37 -40
- package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/create-document.service.d.ts +209 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/create-document.service.js +35 -41
- package/dist/modules/workflow-processor/tool-services/create-document.service.js.map +1 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/index.d.ts +2 -2
- package/dist/modules/workflow-processor/{tools → tool-services}/index.js +2 -2
- package/dist/modules/workflow-processor/tool-services/index.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/load-document.service.d.ts +68 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/load-document.service.js +14 -12
- package/dist/modules/workflow-processor/tool-services/load-document.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/mock.service.d.ts +17 -0
- package/dist/modules/workflow-processor/{tools/debug.service.js → tool-services/mock.service.js} +29 -22
- package/dist/modules/workflow-processor/tool-services/mock.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/set-context.service.d.ts +18 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/set-context.service.js +20 -17
- package/dist/modules/workflow-processor/tool-services/set-context.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.d.ts +14 -0
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.js +48 -0
- package/dist/modules/workflow-processor/tool-services/set-target-place.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/transition-selector.service.d.ts +29 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/transition-selector.service.js +22 -19
- package/dist/modules/workflow-processor/tool-services/transition-selector.service.js.map +1 -0
- package/dist/modules/workflow-processor/tool-services/update-document.service.d.ts +110 -0
- package/dist/modules/workflow-processor/{tools → tool-services}/update-document.service.js +22 -19
- package/dist/modules/workflow-processor/tool-services/update-document.service.js.map +1 -0
- package/dist/modules/workflow-processor/workflow-processor.module.js +13 -12
- package/dist/modules/workflow-processor/workflow-processor.module.js.map +1 -1
- package/package.json +5 -2
- package/dist/config/documents/assistant-message.yaml +0 -13
- package/dist/config/documents/info-message.yaml +0 -9
- package/dist/config/documents/internal-message.yaml +0 -14
- package/dist/config/documents/loading-message.yaml +0 -10
- package/dist/config/documents/user-message.yaml +0 -13
- package/dist/config/templates/user-input-template.yaml +0 -29
- package/dist/config/tools/creat-error-message.yaml +0 -9
- package/dist/config/tools/create-assistant-message.yaml +0 -9
- package/dist/config/tools/create-chat-message.tool.yaml +0 -7
- package/dist/config/tools/create-template-document-user-update.yaml +0 -7
- package/dist/config/tools/create-template-document.yaml +0 -5
- package/dist/config/tools/create-user-message.tool.yaml +0 -9
- package/dist/modules/configuration/services/adapter-registry.service.d.ts +0 -12
- package/dist/modules/configuration/services/adapter-registry.service.js.map +0 -1
- package/dist/modules/configuration/services/tool.registry.d.ts +0 -13
- package/dist/modules/configuration/services/tool.registry.js +0 -59
- package/dist/modules/configuration/services/tool.registry.js.map +0 -1
- package/dist/modules/persistence/services/project.service.d.ts +0 -8
- package/dist/modules/persistence/services/project.service.js.map +0 -1
- package/dist/modules/workflow-processor/services/project-processor.service.d.ts +0 -15
- package/dist/modules/workflow-processor/services/project-processor.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/add-namespace.service.d.ts +0 -29
- package/dist/modules/workflow-processor/tools/add-namespace.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/batch-create-documents.service.d.ts +0 -42
- package/dist/modules/workflow-processor/tools/batch-create-documents.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/create-document.service.d.ts +0 -378
- package/dist/modules/workflow-processor/tools/create-document.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/debug.service.d.ts +0 -20
- package/dist/modules/workflow-processor/tools/debug.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/index.js.map +0 -1
- package/dist/modules/workflow-processor/tools/load-document.service.d.ts +0 -242
- package/dist/modules/workflow-processor/tools/load-document.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/set-context.service.d.ts +0 -27
- package/dist/modules/workflow-processor/tools/set-context.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/tool-call.service.d.ts +0 -29
- package/dist/modules/workflow-processor/tools/tool-call.service.js +0 -55
- package/dist/modules/workflow-processor/tools/tool-call.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/transition-selector.service.d.ts +0 -50
- package/dist/modules/workflow-processor/tools/transition-selector.service.js.map +0 -1
- package/dist/modules/workflow-processor/tools/update-document.service.d.ts +0 -198
- package/dist/modules/workflow-processor/tools/update-document.service.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DiscoveryService, Reflector } from '@nestjs/core';
|
|
2
|
-
import { AdapterInterface, ServiceWithSchemaInterface } from '@loopstack/shared';
|
|
3
|
-
export declare class AdapterRegistry {
|
|
4
|
-
private readonly discoveryService;
|
|
5
|
-
private readonly reflector;
|
|
6
|
-
private adapters;
|
|
7
|
-
constructor(discoveryService: DiscoveryService, reflector: Reflector);
|
|
8
|
-
initialize(): void;
|
|
9
|
-
getAdapterByName(name: string): AdapterInterface | undefined;
|
|
10
|
-
private registerAdapter;
|
|
11
|
-
getEntries(): Array<[string, ServiceWithSchemaInterface]>;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-registry.service.js","sourceRoot":"","sources":["../../../../src/modules/configuration/services/adapter-registry.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uCAA2D;AAC3D,8CAI2B;AAGpB,IAAM,eAAe,GAArB,MAAM,eAAe;IAIP;IACA;IAJX,QAAQ,GAAkC,IAAI,GAAG,EAAE,CAAC;IAE5D,YACmB,gBAAkC,EAClC,SAAoB;QADpB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAEJ,UAAU;QACR,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;QAEvD,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YACjC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;YACnC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAAE,SAAS;YAEjD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAChC,+BAAsB,EACtB,QAAQ,CAAC,WAAW,CACrB,CAAC;YAEF,IAAI,OAAO,EAAE,CAAC;gBACZ,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;IACH,CAAC;IAED,gBAAgB,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAEO,eAAe,CAAC,QAA0B;QAChD,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC;QAEvC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,GAAG,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,UAAU;QACR,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IAC7C,CAAC;CACF,CAAA;AA3CY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAK0B,uBAAgB;QACvB,gBAAS;GAL5B,eAAe,CA2C3B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DiscoveryService, Reflector } from '@nestjs/core';
|
|
2
|
-
import { ToolInterface, ServiceWithSchemaInterface } from '@loopstack/shared';
|
|
3
|
-
export declare class ToolRegistry {
|
|
4
|
-
private readonly discoveryService;
|
|
5
|
-
private readonly reflector;
|
|
6
|
-
private readonly logger;
|
|
7
|
-
private tools;
|
|
8
|
-
constructor(discoveryService: DiscoveryService, reflector: Reflector);
|
|
9
|
-
initialize(): void;
|
|
10
|
-
getToolByName(name: string): ToolInterface | undefined;
|
|
11
|
-
private registerTool;
|
|
12
|
-
getEntries(): Array<[string, ServiceWithSchemaInterface]>;
|
|
13
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var ToolRegistry_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ToolRegistry = void 0;
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const core_1 = require("@nestjs/core");
|
|
16
|
-
const shared_1 = require("@loopstack/shared");
|
|
17
|
-
let ToolRegistry = ToolRegistry_1 = class ToolRegistry {
|
|
18
|
-
discoveryService;
|
|
19
|
-
reflector;
|
|
20
|
-
logger = new common_1.Logger(ToolRegistry_1.name);
|
|
21
|
-
tools = new Map();
|
|
22
|
-
constructor(discoveryService, reflector) {
|
|
23
|
-
this.discoveryService = discoveryService;
|
|
24
|
-
this.reflector = reflector;
|
|
25
|
-
}
|
|
26
|
-
initialize() {
|
|
27
|
-
const providers = this.discoveryService.getProviders();
|
|
28
|
-
for (const provider of providers) {
|
|
29
|
-
const instance = provider.instance;
|
|
30
|
-
if (!instance || !instance.constructor)
|
|
31
|
-
continue;
|
|
32
|
-
const options = this.reflector.get(shared_1.LOOP_TOOL_DECORATOR, instance.constructor);
|
|
33
|
-
if (options) {
|
|
34
|
-
this.logger.debug(`Register ${instance.constructor.name}`);
|
|
35
|
-
this.registerTool(instance);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
getToolByName(name) {
|
|
40
|
-
return this.tools.get(name);
|
|
41
|
-
}
|
|
42
|
-
registerTool(instance) {
|
|
43
|
-
const name = instance.constructor.name;
|
|
44
|
-
if (this.tools.has(name)) {
|
|
45
|
-
throw new Error(`Duplicate tool registration: "${name}"`);
|
|
46
|
-
}
|
|
47
|
-
this.tools.set(name, instance);
|
|
48
|
-
}
|
|
49
|
-
getEntries() {
|
|
50
|
-
return Array.from(this.tools.entries());
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
exports.ToolRegistry = ToolRegistry;
|
|
54
|
-
exports.ToolRegistry = ToolRegistry = ToolRegistry_1 = __decorate([
|
|
55
|
-
(0, common_1.Injectable)(),
|
|
56
|
-
__metadata("design:paramtypes", [core_1.DiscoveryService,
|
|
57
|
-
core_1.Reflector])
|
|
58
|
-
], ToolRegistry);
|
|
59
|
-
//# sourceMappingURL=tool.registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool.registry.js","sourceRoot":"","sources":["../../../../src/modules/configuration/services/tool.registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uCAA2D;AAC3D,8CAI2B;AAGpB,IAAM,YAAY,oBAAlB,MAAM,YAAY;IAKJ;IACA;IALF,MAAM,GAAG,IAAI,eAAM,CAAC,cAAY,CAAC,IAAI,CAAC,CAAC;IAChD,KAAK,GAA+B,IAAI,GAAG,EAAE,CAAC;IAEtD,YACmB,gBAAkC,EAClC,SAAoB;QADpB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAEJ,UAAU;QACR,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;QAEvD,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YACjC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;YACnC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAAE,SAAS;YAEjD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAChC,4BAAmB,EACnB,QAAQ,CAAC,WAAW,CACrB,CAAC;YAEF,IAAI,OAAO,EAAE,CAAC;gBACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC3D,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;IAED,aAAa,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAEO,YAAY,CAAC,QAAuB;QAC1C,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC;QAEvC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,GAAG,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;IAED,UAAU;QACR,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF,CAAA;AA7CY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAM0B,uBAAgB;QACvB,gBAAS;GAN5B,YAAY,CA6CxB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Repository } from 'typeorm';
|
|
2
|
-
import { ProjectEntity } from '@loopstack/shared';
|
|
3
|
-
export declare class ProjectService {
|
|
4
|
-
private projectRepository;
|
|
5
|
-
constructor(projectRepository: Repository<ProjectEntity>);
|
|
6
|
-
getProject(id: string, userId: string | null, relations?: string[]): Promise<ProjectEntity | null>;
|
|
7
|
-
getRepository(): Repository<ProjectEntity>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.service.js","sourceRoot":"","sources":["../../../../src/modules/persistence/services/project.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,qCAA6C;AAC7C,8CAAkD;AAElD,IAAa,cAAc,GAA3B,MAAa,cAAc;IAGf;IAFV,YAEU,iBAA4C;QAA5C,sBAAiB,GAAjB,iBAAiB,CAA2B;IACnD,CAAC;IAEJ,UAAU,CACR,EAAU,EACV,MAAqB,EACrB,YAAsB,CAAC,WAAW,EAAE,YAAY,CAAC;QAEjD,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;YACpC,KAAK,EAAE;gBACL,EAAE;gBACF,SAAS,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC,CAAC,MAAM;aAC/C;YACD,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;CACF,CAAA;AAvBY,wCAAc;yBAAd,cAAc;IAEtB,WAAA,IAAA,0BAAgB,EAAC,sBAAa,CAAC,CAAA;qCACL,oBAAU;GAH5B,cAAc,CAuB1B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ConfigurationService } from '../../configuration';
|
|
2
|
-
import { NamespacesService, ProjectService } from '../../persistence';
|
|
3
|
-
import { WorkflowProcessorService } from './workflow-processor.service';
|
|
4
|
-
import { ContextService } from '../../common';
|
|
5
|
-
import { ContextInterface, ProcessRunInterface } from '@loopstack/shared';
|
|
6
|
-
export declare class ProjectProcessorService {
|
|
7
|
-
private loopConfigService;
|
|
8
|
-
private projectService;
|
|
9
|
-
private workflowProcessorService;
|
|
10
|
-
private namespacesService;
|
|
11
|
-
private contextService;
|
|
12
|
-
private readonly logger;
|
|
13
|
-
constructor(loopConfigService: ConfigurationService, projectService: ProjectService, workflowProcessorService: WorkflowProcessorService, namespacesService: NamespacesService, contextService: ContextService);
|
|
14
|
-
processProject(payload: ProcessRunInterface): Promise<ContextInterface>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-processor.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/services/project-processor.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uDAA2D;AAC3D,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O,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC;YAC3C,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CACxC,aAAa,CAAC,UAAU,EACxB,OAAO,CACR,CAAC;IACJ,CAAC;CACF,CAAA;AA3CY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAIkB,oCAAoB;QACvB,4BAAc;QACJ,qDAAwB;QAC/B,+BAAiB;QACpB,uBAAc;GAP7B,uBAAuB,CA2CnC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ContextInterface, ToolInterface, ToolResult, WorkflowEntity } from '@loopstack/shared';
|
|
3
|
-
import { NamespacesService } from '../../persistence';
|
|
4
|
-
export declare class AddNamespaceService implements ToolInterface {
|
|
5
|
-
private namespacesService;
|
|
6
|
-
private readonly logger;
|
|
7
|
-
configSchema: z.ZodObject<{
|
|
8
|
-
label: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
9
|
-
meta: z.ZodOptional<z.ZodAny>;
|
|
10
|
-
}, "strict", z.ZodTypeAny, {
|
|
11
|
-
label: string;
|
|
12
|
-
meta?: any;
|
|
13
|
-
}, {
|
|
14
|
-
label: string;
|
|
15
|
-
meta?: any;
|
|
16
|
-
}>;
|
|
17
|
-
schema: z.ZodObject<{
|
|
18
|
-
label: z.ZodString;
|
|
19
|
-
meta: z.ZodOptional<z.ZodAny>;
|
|
20
|
-
}, "strict", z.ZodTypeAny, {
|
|
21
|
-
label: string;
|
|
22
|
-
meta?: any;
|
|
23
|
-
}, {
|
|
24
|
-
label: string;
|
|
25
|
-
meta?: any;
|
|
26
|
-
}>;
|
|
27
|
-
constructor(namespacesService: NamespacesService);
|
|
28
|
-
apply(props: z.infer<typeof this.schema>, workflow: WorkflowEntity | undefined, context: ContextInterface): Promise<ToolResult>;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-namespace.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/add-namespace.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6BAAwB;AACxB,8CAQ2B;AAC3B,mDAAsD;AAI/C,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAYV;IAXH,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAE/D,YAAY,GAAG,OAAC;SACb,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,yBAAgB,CAAC,CAAC;QAC9C,IAAI,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KACzB,CAAC;SACD,MAAM,EAAE,CAAC;IAEZ,MAAM,GAAG,6BAAoB,CAAC,MAAM,EAAE,CAAC;IAEvC,YAAoB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAE5D,KAAK,CAAC,KAAK,CACT,KAAkC,EAClC,QAAoC,EACpC,OAAyB;QAEzB,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;YACpD,IAAI,EAAE,YAAY,CAAC,KAAK;YACxB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,QAAQ,EAAE,YAAY,CAAC,IAAI;YAC3B,SAAS,EAAE,OAAO,CAAC,MAAM;YACzB,MAAM,EAAE,OAAO,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;YAC5B,QAAQ,CAAC,aAAa,GAAG,EAAE,CAAC;QAC9B,CAAC;QAED,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;QACrC,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC;QAE3D,QAAQ,CAAC,aAAa,CAAC,MAAM,GAAG;YAC9B,GAAG,aAAa;YAChB,GAAG,cAAc;YACjB,SAAS,CAAC,IAAI;SACf,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wBAAwB,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC;QAE9D,OAAO;YACL,QAAQ;SACT,CAAC;IACJ,CAAC;CACF,CAAA;AArDY,kDAAmB;8BAAnB,mBAAmB;IAF/B,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;qCAakC,+BAAiB;GAZ7C,mBAAmB,CAqD/B"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ContextInterface, WorkflowRunContext, ToolInterface, ToolResult } from '@loopstack/shared';
|
|
2
|
-
import { SchemaValidatorService, DocumentHelperService, ValueParserService } from '../../common';
|
|
3
|
-
import { ConfigurationService } from '../../configuration';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { WorkflowEntity } from '@loopstack/shared';
|
|
6
|
-
import { DocumentService } from '../../persistence';
|
|
7
|
-
export declare class BatchCreateDocumentsService implements ToolInterface {
|
|
8
|
-
private actionHelperService;
|
|
9
|
-
private loopConfigService;
|
|
10
|
-
private documentService;
|
|
11
|
-
private documentHelperService;
|
|
12
|
-
private valueParserService;
|
|
13
|
-
private readonly logger;
|
|
14
|
-
configSchema: z.ZodObject<{
|
|
15
|
-
document: z.ZodString;
|
|
16
|
-
namePrefix: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
17
|
-
items: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
18
|
-
}, "strict", z.ZodTypeAny, {
|
|
19
|
-
document: string;
|
|
20
|
-
items: string | any[];
|
|
21
|
-
namePrefix?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
document: string;
|
|
24
|
-
items: string | any[];
|
|
25
|
-
namePrefix?: string | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
schema: z.ZodObject<{
|
|
28
|
-
document: z.ZodString;
|
|
29
|
-
namePrefix: z.ZodOptional<z.ZodString>;
|
|
30
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
31
|
-
}, "strict", z.ZodTypeAny, {
|
|
32
|
-
document: string;
|
|
33
|
-
items: any[];
|
|
34
|
-
namePrefix?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
document: string;
|
|
37
|
-
items: any[];
|
|
38
|
-
namePrefix?: string | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
constructor(actionHelperService: SchemaValidatorService, loopConfigService: ConfigurationService, documentService: DocumentService, documentHelperService: DocumentHelperService, valueParserService: ValueParserService);
|
|
41
|
-
apply(props: z.infer<typeof this.schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, workflowContext: WorkflowRunContext): Promise<ToolResult>;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batch-create-documents.service.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/batch-create-documents.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,8CAS2B;AAC3B,yCAIsB;AACtB,uDAA2D;AAE3D,6BAAwB;AAExB,mDAAoD;AACpD,mCAA+B;AAIxB,IAAM,2BAA2B,mCAAjC,MAAM,2BAA2B;IAmB5B;IACA;IACA;IACA;IACA;IAtBO,MAAM,GAAG,IAAI,eAAM,CAAC,6BAA2B,CAAC,IAAI,CAAC,CAAC;IACvE,YAAY,GAAG,OAAC;SACb,MAAM,CAA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CAA3B,2BAA2B;IAFvC,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;qCAoB0B,+BAAsB;QACxB,oCAAoB;QACtB,6BAAe;QACT,8BAAqB;QACxB,2BAAkB;GAvBrC,2BAA2B,CAwFvC"}
|
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
import { ContextInterface, WorkflowRunContext, ToolInterface, ToolResult } from '@loopstack/shared';
|
|
2
|
-
import { SchemaValidatorService, DocumentHelperService, ValueParserService } from '../../common';
|
|
3
|
-
import { ConfigurationService } from '../../configuration';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { WorkflowEntity } from '@loopstack/shared';
|
|
6
|
-
import { DocumentService } from '../../persistence';
|
|
7
|
-
export declare class CreateDocumentService implements ToolInterface {
|
|
8
|
-
private actionHelperService;
|
|
9
|
-
private loopConfigService;
|
|
10
|
-
private documentService;
|
|
11
|
-
private documentHelperService;
|
|
12
|
-
private valueParserService;
|
|
13
|
-
private readonly logger;
|
|
14
|
-
configSchema: z.ZodObject<{
|
|
15
|
-
document: z.ZodOptional<z.ZodString>;
|
|
16
|
-
update: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
18
|
-
content: z.ZodOptional<z.ZodAny>;
|
|
19
|
-
schema: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
20
|
-
ui: z.ZodOptional<z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
21
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>>;
|
|
22
|
-
meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
23
|
-
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>, z.ZodString]>>;
|
|
24
|
-
invalidate: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
25
|
-
enableTransitions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
-
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
-
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
invalidate?: string | boolean | undefined;
|
|
31
|
-
data?: any;
|
|
32
|
-
mimeType?: string | undefined;
|
|
33
|
-
enableTransitions?: string[] | undefined;
|
|
34
|
-
enableAtPlaces?: string[] | undefined;
|
|
35
|
-
hideAtPlaces?: string[] | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
invalidate?: string | boolean | undefined;
|
|
38
|
-
data?: any;
|
|
39
|
-
mimeType?: string | undefined;
|
|
40
|
-
enableTransitions?: string[] | undefined;
|
|
41
|
-
enableAtPlaces?: string[] | undefined;
|
|
42
|
-
hideAtPlaces?: string[] | undefined;
|
|
43
|
-
}>>>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
name?: string | undefined;
|
|
46
|
-
meta?: {
|
|
47
|
-
invalidate?: string | boolean | undefined;
|
|
48
|
-
data?: any;
|
|
49
|
-
mimeType?: string | undefined;
|
|
50
|
-
enableTransitions?: string[] | undefined;
|
|
51
|
-
enableAtPlaces?: string[] | undefined;
|
|
52
|
-
hideAtPlaces?: string[] | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
content?: any;
|
|
55
|
-
schema?: any;
|
|
56
|
-
ui?: any;
|
|
57
|
-
tags?: string | string[] | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
name?: string | undefined;
|
|
60
|
-
meta?: {
|
|
61
|
-
invalidate?: string | boolean | undefined;
|
|
62
|
-
data?: any;
|
|
63
|
-
mimeType?: string | undefined;
|
|
64
|
-
enableTransitions?: string[] | undefined;
|
|
65
|
-
enableAtPlaces?: string[] | undefined;
|
|
66
|
-
hideAtPlaces?: string[] | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
content?: any;
|
|
69
|
-
schema?: any;
|
|
70
|
-
ui?: any;
|
|
71
|
-
tags?: string | string[] | undefined;
|
|
72
|
-
}>>;
|
|
73
|
-
create: z.ZodOptional<z.ZodObject<{
|
|
74
|
-
name: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
75
|
-
content: z.ZodAny;
|
|
76
|
-
schema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
77
|
-
ui: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
78
|
-
tags: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
79
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>, z.ZodString]>>;
|
|
81
|
-
invalidate: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
82
|
-
enableTransitions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
-
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
-
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
invalidate?: string | boolean | undefined;
|
|
88
|
-
data?: any;
|
|
89
|
-
mimeType?: string | undefined;
|
|
90
|
-
enableTransitions?: string[] | undefined;
|
|
91
|
-
enableAtPlaces?: string[] | undefined;
|
|
92
|
-
hideAtPlaces?: string[] | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
invalidate?: string | boolean | undefined;
|
|
95
|
-
data?: any;
|
|
96
|
-
mimeType?: string | undefined;
|
|
97
|
-
enableTransitions?: string[] | undefined;
|
|
98
|
-
enableAtPlaces?: string[] | undefined;
|
|
99
|
-
hideAtPlaces?: string[] | undefined;
|
|
100
|
-
}>>;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
name: string;
|
|
103
|
-
schema?: any;
|
|
104
|
-
content?: any;
|
|
105
|
-
ui?: any;
|
|
106
|
-
tags?: string | string[] | undefined;
|
|
107
|
-
meta?: {
|
|
108
|
-
invalidate?: string | boolean | undefined;
|
|
109
|
-
data?: any;
|
|
110
|
-
mimeType?: string | undefined;
|
|
111
|
-
enableTransitions?: string[] | undefined;
|
|
112
|
-
enableAtPlaces?: string[] | undefined;
|
|
113
|
-
hideAtPlaces?: string[] | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
}, {
|
|
116
|
-
name: string;
|
|
117
|
-
schema?: any;
|
|
118
|
-
content?: any;
|
|
119
|
-
ui?: any;
|
|
120
|
-
tags?: string | string[] | undefined;
|
|
121
|
-
meta?: {
|
|
122
|
-
invalidate?: string | boolean | undefined;
|
|
123
|
-
data?: any;
|
|
124
|
-
mimeType?: string | undefined;
|
|
125
|
-
enableTransitions?: string[] | undefined;
|
|
126
|
-
enableAtPlaces?: string[] | undefined;
|
|
127
|
-
hideAtPlaces?: string[] | undefined;
|
|
128
|
-
} | undefined;
|
|
129
|
-
}>>;
|
|
130
|
-
}, "strict", z.ZodTypeAny, {
|
|
131
|
-
create?: {
|
|
132
|
-
name: string;
|
|
133
|
-
schema?: any;
|
|
134
|
-
content?: any;
|
|
135
|
-
ui?: any;
|
|
136
|
-
tags?: string | string[] | undefined;
|
|
137
|
-
meta?: {
|
|
138
|
-
invalidate?: string | boolean | undefined;
|
|
139
|
-
data?: any;
|
|
140
|
-
mimeType?: string | undefined;
|
|
141
|
-
enableTransitions?: string[] | undefined;
|
|
142
|
-
enableAtPlaces?: string[] | undefined;
|
|
143
|
-
hideAtPlaces?: string[] | undefined;
|
|
144
|
-
} | undefined;
|
|
145
|
-
} | undefined;
|
|
146
|
-
update?: {
|
|
147
|
-
name?: string | undefined;
|
|
148
|
-
meta?: {
|
|
149
|
-
invalidate?: string | boolean | undefined;
|
|
150
|
-
data?: any;
|
|
151
|
-
mimeType?: string | undefined;
|
|
152
|
-
enableTransitions?: string[] | undefined;
|
|
153
|
-
enableAtPlaces?: string[] | undefined;
|
|
154
|
-
hideAtPlaces?: string[] | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
content?: any;
|
|
157
|
-
schema?: any;
|
|
158
|
-
ui?: any;
|
|
159
|
-
tags?: string | string[] | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
document?: string | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
create?: {
|
|
164
|
-
name: string;
|
|
165
|
-
schema?: any;
|
|
166
|
-
content?: any;
|
|
167
|
-
ui?: any;
|
|
168
|
-
tags?: string | string[] | undefined;
|
|
169
|
-
meta?: {
|
|
170
|
-
invalidate?: string | boolean | undefined;
|
|
171
|
-
data?: any;
|
|
172
|
-
mimeType?: string | undefined;
|
|
173
|
-
enableTransitions?: string[] | undefined;
|
|
174
|
-
enableAtPlaces?: string[] | undefined;
|
|
175
|
-
hideAtPlaces?: string[] | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
update?: {
|
|
179
|
-
name?: string | undefined;
|
|
180
|
-
meta?: {
|
|
181
|
-
invalidate?: string | boolean | undefined;
|
|
182
|
-
data?: any;
|
|
183
|
-
mimeType?: string | undefined;
|
|
184
|
-
enableTransitions?: string[] | undefined;
|
|
185
|
-
enableAtPlaces?: string[] | undefined;
|
|
186
|
-
hideAtPlaces?: string[] | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
content?: any;
|
|
189
|
-
schema?: any;
|
|
190
|
-
ui?: any;
|
|
191
|
-
tags?: string | string[] | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
document?: string | undefined;
|
|
194
|
-
}>;
|
|
195
|
-
schema: z.ZodObject<{
|
|
196
|
-
document: z.ZodOptional<z.ZodString>;
|
|
197
|
-
update: z.ZodOptional<z.ZodObject<{
|
|
198
|
-
name: z.ZodOptional<z.ZodString>;
|
|
199
|
-
content: z.ZodOptional<z.ZodAny>;
|
|
200
|
-
schema: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
201
|
-
ui: z.ZodOptional<z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
202
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
203
|
-
meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
204
|
-
mimeType: z.ZodOptional<z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>>;
|
|
205
|
-
invalidate: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
-
enableTransitions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
207
|
-
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
-
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
209
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
210
|
-
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
invalidate?: boolean | undefined;
|
|
212
|
-
data?: any;
|
|
213
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
214
|
-
enableTransitions?: string[] | undefined;
|
|
215
|
-
enableAtPlaces?: string[] | undefined;
|
|
216
|
-
hideAtPlaces?: string[] | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
invalidate?: boolean | undefined;
|
|
219
|
-
data?: any;
|
|
220
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
221
|
-
enableTransitions?: string[] | undefined;
|
|
222
|
-
enableAtPlaces?: string[] | undefined;
|
|
223
|
-
hideAtPlaces?: string[] | undefined;
|
|
224
|
-
}>>>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
schema?: any;
|
|
227
|
-
name?: string | undefined;
|
|
228
|
-
content?: any;
|
|
229
|
-
ui?: any;
|
|
230
|
-
tags?: string[] | undefined;
|
|
231
|
-
meta?: {
|
|
232
|
-
invalidate?: boolean | undefined;
|
|
233
|
-
data?: any;
|
|
234
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
235
|
-
enableTransitions?: string[] | undefined;
|
|
236
|
-
enableAtPlaces?: string[] | undefined;
|
|
237
|
-
hideAtPlaces?: string[] | undefined;
|
|
238
|
-
} | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
schema?: any;
|
|
241
|
-
name?: string | undefined;
|
|
242
|
-
content?: any;
|
|
243
|
-
ui?: any;
|
|
244
|
-
tags?: string[] | undefined;
|
|
245
|
-
meta?: {
|
|
246
|
-
invalidate?: boolean | undefined;
|
|
247
|
-
data?: any;
|
|
248
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
249
|
-
enableTransitions?: string[] | undefined;
|
|
250
|
-
enableAtPlaces?: string[] | undefined;
|
|
251
|
-
hideAtPlaces?: string[] | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
}>>;
|
|
254
|
-
create: z.ZodOptional<z.ZodObject<{
|
|
255
|
-
name: z.ZodString;
|
|
256
|
-
content: z.ZodAny;
|
|
257
|
-
schema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
258
|
-
ui: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
259
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
260
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
mimeType: z.ZodOptional<z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>>;
|
|
262
|
-
invalidate: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
-
enableTransitions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
264
|
-
enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
265
|
-
hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
invalidate?: boolean | undefined;
|
|
269
|
-
data?: any;
|
|
270
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
271
|
-
enableTransitions?: string[] | undefined;
|
|
272
|
-
enableAtPlaces?: string[] | undefined;
|
|
273
|
-
hideAtPlaces?: string[] | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
invalidate?: boolean | undefined;
|
|
276
|
-
data?: any;
|
|
277
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
278
|
-
enableTransitions?: string[] | undefined;
|
|
279
|
-
enableAtPlaces?: string[] | undefined;
|
|
280
|
-
hideAtPlaces?: string[] | undefined;
|
|
281
|
-
}>>;
|
|
282
|
-
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
name: string;
|
|
284
|
-
schema?: any;
|
|
285
|
-
content?: any;
|
|
286
|
-
ui?: any;
|
|
287
|
-
tags?: string[] | undefined;
|
|
288
|
-
meta?: {
|
|
289
|
-
invalidate?: boolean | undefined;
|
|
290
|
-
data?: any;
|
|
291
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
292
|
-
enableTransitions?: string[] | undefined;
|
|
293
|
-
enableAtPlaces?: string[] | undefined;
|
|
294
|
-
hideAtPlaces?: string[] | undefined;
|
|
295
|
-
} | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
name: string;
|
|
298
|
-
schema?: any;
|
|
299
|
-
content?: any;
|
|
300
|
-
ui?: any;
|
|
301
|
-
tags?: string[] | undefined;
|
|
302
|
-
meta?: {
|
|
303
|
-
invalidate?: boolean | undefined;
|
|
304
|
-
data?: any;
|
|
305
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
306
|
-
enableTransitions?: string[] | undefined;
|
|
307
|
-
enableAtPlaces?: string[] | undefined;
|
|
308
|
-
hideAtPlaces?: string[] | undefined;
|
|
309
|
-
} | undefined;
|
|
310
|
-
}>>;
|
|
311
|
-
}, "strict", z.ZodTypeAny, {
|
|
312
|
-
create?: {
|
|
313
|
-
name: string;
|
|
314
|
-
schema?: any;
|
|
315
|
-
content?: any;
|
|
316
|
-
ui?: any;
|
|
317
|
-
tags?: string[] | undefined;
|
|
318
|
-
meta?: {
|
|
319
|
-
invalidate?: boolean | undefined;
|
|
320
|
-
data?: any;
|
|
321
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
322
|
-
enableTransitions?: string[] | undefined;
|
|
323
|
-
enableAtPlaces?: string[] | undefined;
|
|
324
|
-
hideAtPlaces?: string[] | undefined;
|
|
325
|
-
} | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
update?: {
|
|
328
|
-
schema?: any;
|
|
329
|
-
name?: string | undefined;
|
|
330
|
-
content?: any;
|
|
331
|
-
ui?: any;
|
|
332
|
-
tags?: string[] | undefined;
|
|
333
|
-
meta?: {
|
|
334
|
-
invalidate?: boolean | undefined;
|
|
335
|
-
data?: any;
|
|
336
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
337
|
-
enableTransitions?: string[] | undefined;
|
|
338
|
-
enableAtPlaces?: string[] | undefined;
|
|
339
|
-
hideAtPlaces?: string[] | undefined;
|
|
340
|
-
} | undefined;
|
|
341
|
-
} | undefined;
|
|
342
|
-
document?: string | undefined;
|
|
343
|
-
}, {
|
|
344
|
-
create?: {
|
|
345
|
-
name: string;
|
|
346
|
-
schema?: any;
|
|
347
|
-
content?: any;
|
|
348
|
-
ui?: any;
|
|
349
|
-
tags?: string[] | undefined;
|
|
350
|
-
meta?: {
|
|
351
|
-
invalidate?: boolean | undefined;
|
|
352
|
-
data?: any;
|
|
353
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
354
|
-
enableTransitions?: string[] | undefined;
|
|
355
|
-
enableAtPlaces?: string[] | undefined;
|
|
356
|
-
hideAtPlaces?: string[] | undefined;
|
|
357
|
-
} | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
update?: {
|
|
360
|
-
schema?: any;
|
|
361
|
-
name?: string | undefined;
|
|
362
|
-
content?: any;
|
|
363
|
-
ui?: any;
|
|
364
|
-
tags?: string[] | undefined;
|
|
365
|
-
meta?: {
|
|
366
|
-
invalidate?: boolean | undefined;
|
|
367
|
-
data?: any;
|
|
368
|
-
mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
|
|
369
|
-
enableTransitions?: string[] | undefined;
|
|
370
|
-
enableAtPlaces?: string[] | undefined;
|
|
371
|
-
hideAtPlaces?: string[] | undefined;
|
|
372
|
-
} | undefined;
|
|
373
|
-
} | undefined;
|
|
374
|
-
document?: string | undefined;
|
|
375
|
-
}>;
|
|
376
|
-
constructor(actionHelperService: SchemaValidatorService, loopConfigService: ConfigurationService, documentService: DocumentService, documentHelperService: DocumentHelperService, valueParserService: ValueParserService);
|
|
377
|
-
apply(props: z.infer<typeof this.schema>, workflow: WorkflowEntity | undefined, context: ContextInterface, workflowContext: WorkflowRunContext): Promise<ToolResult>;
|
|
378
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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,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AU,EAAE,MAAM,IAAI,EAAE,CAC/C,CAAC;QAEF,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QAED,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"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ToolInterface, ToolResult } from '@loopstack/shared';
|
|
3
|
-
export declare class DebugService implements ToolInterface {
|
|
4
|
-
private readonly logger;
|
|
5
|
-
configSchema: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
message: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strict", z.ZodTypeAny, {
|
|
8
|
-
message?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
message?: string | undefined;
|
|
11
|
-
}>>;
|
|
12
|
-
schema: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
message: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
message?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
message?: string | undefined;
|
|
18
|
-
}>>;
|
|
19
|
-
apply(props: z.infer<typeof this.schema>): Promise<ToolResult>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/workflow-processor/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,0DAAwC;AACxC,4DAA0C;AAC1C,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,gEAA8C;AAC9C,4DAA0C;AAC1C,mEAAiD"}
|