@loopstack/core 0.0.4 → 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.
Files changed (149) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/config/core.yaml +1 -0
  3. package/dist/config-provider.service.js.map +1 -1
  4. package/dist/modules/common/services/context.service.d.ts +2 -2
  5. package/dist/modules/common/services/context.service.js +7 -7
  6. package/dist/modules/common/services/context.service.js.map +1 -1
  7. package/dist/modules/common/services/document-helper.service.d.ts +10 -0
  8. package/dist/modules/common/services/expression-evaluator.service.js.map +1 -1
  9. package/dist/modules/common/services/schema-validator.service.d.ts +2 -0
  10. package/dist/modules/common/services/schema-validator.service.js +14 -11
  11. package/dist/modules/common/services/schema-validator.service.js.map +1 -1
  12. package/dist/modules/common/services/value-parser.service.d.ts +2 -6
  13. package/dist/modules/common/services/value-parser.service.js +0 -3
  14. package/dist/modules/common/services/value-parser.service.js.map +1 -1
  15. package/dist/modules/configuration/configuration.module.js +2 -3
  16. package/dist/modules/configuration/configuration.module.js.map +1 -1
  17. package/dist/modules/configuration/services/config-provider.registry.js.map +1 -1
  18. package/dist/modules/configuration/services/configuration.service.d.ts +5 -7
  19. package/dist/modules/configuration/services/configuration.service.js +53 -46
  20. package/dist/modules/configuration/services/configuration.service.js.map +1 -1
  21. package/dist/modules/configuration/services/dynamic-schema-generator.service.d.ts +8 -8
  22. package/dist/modules/configuration/services/dynamic-schema-generator.service.js +21 -22
  23. package/dist/modules/configuration/services/dynamic-schema-generator.service.js.map +1 -1
  24. package/dist/modules/configuration/services/index.d.ts +1 -2
  25. package/dist/modules/configuration/services/index.js +1 -2
  26. package/dist/modules/configuration/services/index.js.map +1 -1
  27. package/dist/modules/configuration/services/service-registry.service.d.ts +20 -0
  28. package/dist/modules/configuration/services/{adapter-registry.service.js → service-registry.service.js} +31 -16
  29. package/dist/modules/configuration/services/service-registry.service.js.map +1 -0
  30. package/dist/modules/persistence/__tests__/database-entities-utils.d.ts +2 -2
  31. package/dist/modules/persistence/__tests__/database-entities-utils.js +5 -5
  32. package/dist/modules/persistence/__tests__/database-entities-utils.js.map +1 -1
  33. package/dist/modules/persistence/persistence.module.js +3 -3
  34. package/dist/modules/persistence/persistence.module.js.map +1 -1
  35. package/dist/modules/persistence/services/document.service.d.ts +3 -3
  36. package/dist/modules/persistence/services/document.service.js +6 -6
  37. package/dist/modules/persistence/services/document.service.js.map +1 -1
  38. package/dist/modules/persistence/services/index.d.ts +1 -1
  39. package/dist/modules/persistence/services/index.js +1 -1
  40. package/dist/modules/persistence/services/index.js.map +1 -1
  41. package/dist/modules/persistence/services/namespace.service.d.ts +2 -2
  42. package/dist/modules/persistence/services/namespace.service.js +9 -9
  43. package/dist/modules/persistence/services/namespace.service.js.map +1 -1
  44. package/dist/modules/persistence/services/pipeline.service.d.ts +8 -0
  45. package/dist/modules/persistence/services/{project.service.js → pipeline.service.js} +13 -13
  46. package/dist/modules/persistence/services/pipeline.service.js.map +1 -0
  47. package/dist/modules/persistence/subscriber/workflow.subscriber.js +2 -2
  48. package/dist/modules/persistence/subscriber/workflow.subscriber.js.map +1 -1
  49. package/dist/modules/workflow-processor/services/index.d.ts +2 -1
  50. package/dist/modules/workflow-processor/services/index.js +2 -1
  51. package/dist/modules/workflow-processor/services/index.js.map +1 -1
  52. package/dist/modules/workflow-processor/services/namespace-processor.service.js +1 -1
  53. package/dist/modules/workflow-processor/services/namespace-processor.service.js.map +1 -1
  54. package/dist/modules/workflow-processor/services/pipeline-processor.service.d.ts +15 -0
  55. package/dist/modules/workflow-processor/services/{project-processor.service.js → pipeline-processor.service.js} +24 -24
  56. package/dist/modules/workflow-processor/services/pipeline-processor.service.js.map +1 -0
  57. package/dist/modules/workflow-processor/services/state-machine-config.service.d.ts +7 -7
  58. package/dist/modules/workflow-processor/services/state-machine-config.service.js +0 -4
  59. package/dist/modules/workflow-processor/services/state-machine-config.service.js.map +1 -1
  60. package/dist/modules/workflow-processor/services/state-machine-processor.service.d.ts +4 -3
  61. package/dist/modules/workflow-processor/services/state-machine-processor.service.js +40 -62
  62. package/dist/modules/workflow-processor/services/state-machine-processor.service.js.map +1 -1
  63. package/dist/modules/workflow-processor/services/template-expression-evaluator.service.d.ts +9 -0
  64. package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js +50 -0
  65. package/dist/modules/workflow-processor/services/template-expression-evaluator.service.js.map +1 -0
  66. package/dist/modules/workflow-processor/services/tool-execution.service.d.ts +18 -11
  67. package/dist/modules/workflow-processor/services/tool-execution.service.js +49 -35
  68. package/dist/modules/workflow-processor/services/tool-execution.service.js.map +1 -1
  69. package/dist/modules/workflow-processor/services/tool-schema-validator.service.d.ts +2 -2
  70. package/dist/modules/workflow-processor/services/tool-schema-validator.service.js +3 -3
  71. package/dist/modules/workflow-processor/services/tool-schema-validator.service.js.map +1 -1
  72. package/dist/modules/workflow-processor/services/workflow-processor.service.d.ts +5 -2
  73. package/dist/modules/workflow-processor/services/workflow-processor.service.js +33 -5
  74. package/dist/modules/workflow-processor/services/workflow-processor.service.js.map +1 -1
  75. package/dist/modules/workflow-processor/tool-services/add-namespace.service.d.ts +20 -0
  76. package/dist/modules/workflow-processor/{tools → tool-services}/add-namespace.service.js +16 -11
  77. package/dist/modules/workflow-processor/tool-services/add-namespace.service.js.map +1 -0
  78. package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.d.ts +33 -0
  79. package/dist/modules/workflow-processor/{tools → tool-services}/batch-create-documents.service.js +37 -36
  80. package/dist/modules/workflow-processor/tool-services/batch-create-documents.service.js.map +1 -0
  81. package/dist/modules/workflow-processor/tool-services/create-document.service.d.ts +209 -0
  82. package/dist/modules/workflow-processor/{tools → tool-services}/create-document.service.js +35 -37
  83. package/dist/modules/workflow-processor/tool-services/create-document.service.js.map +1 -0
  84. package/dist/modules/workflow-processor/{tools → tool-services}/index.d.ts +2 -2
  85. package/dist/modules/workflow-processor/{tools → tool-services}/index.js +2 -2
  86. package/dist/modules/workflow-processor/tool-services/index.js.map +1 -0
  87. package/dist/modules/workflow-processor/tool-services/load-document.service.d.ts +68 -0
  88. package/dist/modules/workflow-processor/{tools → tool-services}/load-document.service.js +17 -13
  89. package/dist/modules/workflow-processor/tool-services/load-document.service.js.map +1 -0
  90. package/dist/modules/workflow-processor/tool-services/mock.service.d.ts +17 -0
  91. package/dist/modules/workflow-processor/{tools/debug.service.js → tool-services/mock.service.js} +29 -18
  92. package/dist/modules/workflow-processor/tool-services/mock.service.js.map +1 -0
  93. package/dist/modules/workflow-processor/tool-services/set-context.service.d.ts +18 -0
  94. package/dist/modules/workflow-processor/{tools → tool-services}/set-context.service.js +20 -13
  95. package/dist/modules/workflow-processor/tool-services/set-context.service.js.map +1 -0
  96. package/dist/modules/workflow-processor/tool-services/set-target-place.service.d.ts +14 -0
  97. package/dist/modules/workflow-processor/tool-services/set-target-place.service.js +48 -0
  98. package/dist/modules/workflow-processor/tool-services/set-target-place.service.js.map +1 -0
  99. package/dist/modules/workflow-processor/tool-services/transition-selector.service.d.ts +29 -0
  100. package/dist/modules/workflow-processor/{tools → tool-services}/transition-selector.service.js +22 -15
  101. package/dist/modules/workflow-processor/tool-services/transition-selector.service.js.map +1 -0
  102. package/dist/modules/workflow-processor/tool-services/update-document.service.d.ts +110 -0
  103. package/dist/modules/workflow-processor/{tools → tool-services}/update-document.service.js +22 -15
  104. package/dist/modules/workflow-processor/tool-services/update-document.service.js.map +1 -0
  105. package/dist/modules/workflow-processor/workflow-processor.module.js +13 -12
  106. package/dist/modules/workflow-processor/workflow-processor.module.js.map +1 -1
  107. package/dist/utils/load-configuration.js +1 -1
  108. package/package.json +5 -2
  109. package/dist/config/documents/assistant-message.yaml +0 -13
  110. package/dist/config/documents/info-message.yaml +0 -9
  111. package/dist/config/documents/internal-message.yaml +0 -14
  112. package/dist/config/documents/loading-message.yaml +0 -10
  113. package/dist/config/documents/user-message.yaml +0 -13
  114. package/dist/config/templates/user-input-template.yaml +0 -29
  115. package/dist/config/tools/creat-error-message.yaml +0 -9
  116. package/dist/config/tools/create-assistant-message.yaml +0 -9
  117. package/dist/config/tools/create-chat-message.tool.yaml +0 -7
  118. package/dist/config/tools/create-template-document-user-update.yaml +0 -7
  119. package/dist/config/tools/create-template-document.yaml +0 -5
  120. package/dist/config/tools/create-user-message.tool.yaml +0 -9
  121. package/dist/modules/configuration/services/adapter-registry.service.d.ts +0 -12
  122. package/dist/modules/configuration/services/adapter-registry.service.js.map +0 -1
  123. package/dist/modules/configuration/services/tool.registry.d.ts +0 -13
  124. package/dist/modules/configuration/services/tool.registry.js +0 -59
  125. package/dist/modules/configuration/services/tool.registry.js.map +0 -1
  126. package/dist/modules/persistence/services/project.service.d.ts +0 -8
  127. package/dist/modules/persistence/services/project.service.js.map +0 -1
  128. package/dist/modules/workflow-processor/services/project-processor.service.d.ts +0 -15
  129. package/dist/modules/workflow-processor/services/project-processor.service.js.map +0 -1
  130. package/dist/modules/workflow-processor/tools/add-namespace.service.d.ts +0 -29
  131. package/dist/modules/workflow-processor/tools/add-namespace.service.js.map +0 -1
  132. package/dist/modules/workflow-processor/tools/batch-create-documents.service.d.ts +0 -42
  133. package/dist/modules/workflow-processor/tools/batch-create-documents.service.js.map +0 -1
  134. package/dist/modules/workflow-processor/tools/create-document.service.d.ts +0 -378
  135. package/dist/modules/workflow-processor/tools/create-document.service.js.map +0 -1
  136. package/dist/modules/workflow-processor/tools/debug.service.d.ts +0 -20
  137. package/dist/modules/workflow-processor/tools/debug.service.js.map +0 -1
  138. package/dist/modules/workflow-processor/tools/index.js.map +0 -1
  139. package/dist/modules/workflow-processor/tools/load-document.service.d.ts +0 -167
  140. package/dist/modules/workflow-processor/tools/load-document.service.js.map +0 -1
  141. package/dist/modules/workflow-processor/tools/set-context.service.d.ts +0 -27
  142. package/dist/modules/workflow-processor/tools/set-context.service.js.map +0 -1
  143. package/dist/modules/workflow-processor/tools/tool-call.service.d.ts +0 -29
  144. package/dist/modules/workflow-processor/tools/tool-call.service.js +0 -51
  145. package/dist/modules/workflow-processor/tools/tool-call.service.js.map +0 -1
  146. package/dist/modules/workflow-processor/tools/transition-selector.service.d.ts +0 -50
  147. package/dist/modules/workflow-processor/tools/transition-selector.service.js.map +0 -1
  148. package/dist/modules/workflow-processor/tools/update-document.service.d.ts +0 -198
  149. 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,mDAAsE;AACtE,6EAAwE;AACxE,yCAA8C;AAQvC,IAAM,uBAAuB,+BAA7B,MAAM,uBAAuB;IAGxB;IACA;IACA;IACA;IACA;IANO,MAAM,GAAG,IAAI,eAAM,CAAC,yBAAuB,CAAC,IAAI,CAAC,CAAC;IACnE,YACU,iBAAuC,EACvC,cAA8B,EAC9B,wBAAkD,EAClD,iBAAoC,EACpC,cAA8B;QAJ9B,sBAAiB,GAAjB,iBAAiB,CAAsB;QACvC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,mBAAc,GAAd,cAAc,CAAgB;IACrC,CAAC;IAEJ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olInterface, 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;IAUV;IATH,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAE/D,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;QACtB,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,CAAC,MAAM,EAAE,CAAC;IAEZ,MAAM,GAAG,6BAAoB,CAAC,MAAM,EAAE,CAAC;IAEvC,YAAoB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAE5D,KAAK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ack/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,2B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xC,CACF,CAAC;QACJ,CAAC;QAED,OAAO;YACL,QAAQ;YACR,YAAY,EAAE,IAAI;YAClB,IAAI,EAAE,SAAS;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AApFY,kEAA2B;sCAA3B,2BAA2B;IAFvC,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;qCAgB0B,+BAAsB;QACxB,oCAAoB;QACtB,6BAAe;QACT,8BAAqB;QACxB,2BAAkB;GAnBrC,2BAA2B,CAoFvC"}
@@ -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
- data?: any;
31
- invalidate?: string | boolean | undefined;
32
- mimeType?: string | undefined;
33
- enableTransitions?: string[] | undefined;
34
- enableAtPlaces?: string[] | undefined;
35
- hideAtPlaces?: string[] | undefined;
36
- }, {
37
- data?: any;
38
- invalidate?: string | boolean | undefined;
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
- content?: any;
47
- schema?: any;
48
- ui?: any;
49
- tags?: string | string[] | undefined;
50
- meta?: {
51
- data?: any;
52
- invalidate?: string | boolean | undefined;
53
- mimeType?: string | undefined;
54
- enableTransitions?: string[] | undefined;
55
- enableAtPlaces?: string[] | undefined;
56
- hideAtPlaces?: string[] | undefined;
57
- } | undefined;
58
- }, {
59
- name?: string | undefined;
60
- content?: any;
61
- schema?: any;
62
- ui?: any;
63
- tags?: string | string[] | undefined;
64
- meta?: {
65
- data?: any;
66
- invalidate?: string | boolean | undefined;
67
- mimeType?: string | undefined;
68
- enableTransitions?: string[] | undefined;
69
- enableAtPlaces?: string[] | undefined;
70
- hideAtPlaces?: string[] | undefined;
71
- } | 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
- data?: any;
88
- invalidate?: string | boolean | undefined;
89
- mimeType?: string | undefined;
90
- enableTransitions?: string[] | undefined;
91
- enableAtPlaces?: string[] | undefined;
92
- hideAtPlaces?: string[] | undefined;
93
- }, {
94
- data?: any;
95
- invalidate?: string | boolean | undefined;
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
- content?: any;
104
- meta?: {
105
- data?: any;
106
- invalidate?: string | boolean | undefined;
107
- mimeType?: string | undefined;
108
- enableTransitions?: string[] | undefined;
109
- enableAtPlaces?: string[] | undefined;
110
- hideAtPlaces?: string[] | undefined;
111
- } | undefined;
112
- schema?: any;
113
- ui?: any;
114
- tags?: string | string[] | undefined;
115
- }, {
116
- name: string;
117
- content?: any;
118
- meta?: {
119
- data?: any;
120
- invalidate?: string | boolean | undefined;
121
- mimeType?: string | undefined;
122
- enableTransitions?: string[] | undefined;
123
- enableAtPlaces?: string[] | undefined;
124
- hideAtPlaces?: string[] | undefined;
125
- } | undefined;
126
- schema?: any;
127
- ui?: any;
128
- tags?: string | string[] | undefined;
129
- }>>;
130
- }, "strict", z.ZodTypeAny, {
131
- create?: {
132
- name: string;
133
- content?: any;
134
- meta?: {
135
- data?: any;
136
- invalidate?: string | boolean | undefined;
137
- mimeType?: string | undefined;
138
- enableTransitions?: string[] | undefined;
139
- enableAtPlaces?: string[] | undefined;
140
- hideAtPlaces?: string[] | undefined;
141
- } | undefined;
142
- schema?: any;
143
- ui?: any;
144
- tags?: string | string[] | undefined;
145
- } | undefined;
146
- update?: {
147
- name?: string | undefined;
148
- content?: any;
149
- schema?: any;
150
- ui?: any;
151
- tags?: string | string[] | undefined;
152
- meta?: {
153
- data?: any;
154
- invalidate?: string | boolean | undefined;
155
- mimeType?: string | undefined;
156
- enableTransitions?: string[] | undefined;
157
- enableAtPlaces?: string[] | undefined;
158
- hideAtPlaces?: string[] | undefined;
159
- } | undefined;
160
- } | undefined;
161
- document?: string | undefined;
162
- }, {
163
- create?: {
164
- name: string;
165
- content?: any;
166
- meta?: {
167
- data?: any;
168
- invalidate?: string | boolean | undefined;
169
- mimeType?: string | undefined;
170
- enableTransitions?: string[] | undefined;
171
- enableAtPlaces?: string[] | undefined;
172
- hideAtPlaces?: string[] | undefined;
173
- } | undefined;
174
- schema?: any;
175
- ui?: any;
176
- tags?: string | string[] | undefined;
177
- } | undefined;
178
- update?: {
179
- name?: string | undefined;
180
- content?: any;
181
- schema?: any;
182
- ui?: any;
183
- tags?: string | string[] | undefined;
184
- meta?: {
185
- data?: any;
186
- invalidate?: string | boolean | undefined;
187
- mimeType?: string | undefined;
188
- enableTransitions?: string[] | undefined;
189
- enableAtPlaces?: string[] | undefined;
190
- hideAtPlaces?: string[] | undefined;
191
- } | 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
- data?: any;
212
- invalidate?: boolean | undefined;
213
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
214
- enableTransitions?: string[] | undefined;
215
- enableAtPlaces?: string[] | undefined;
216
- hideAtPlaces?: string[] | undefined;
217
- }, {
218
- data?: any;
219
- invalidate?: boolean | undefined;
220
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
221
- enableTransitions?: string[] | undefined;
222
- enableAtPlaces?: string[] | undefined;
223
- hideAtPlaces?: string[] | undefined;
224
- }>>>;
225
- }, "strip", z.ZodTypeAny, {
226
- name?: string | undefined;
227
- content?: any;
228
- meta?: {
229
- data?: any;
230
- invalidate?: boolean | undefined;
231
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
232
- enableTransitions?: string[] | undefined;
233
- enableAtPlaces?: string[] | undefined;
234
- hideAtPlaces?: string[] | undefined;
235
- } | undefined;
236
- schema?: any;
237
- ui?: any;
238
- tags?: string[] | undefined;
239
- }, {
240
- name?: string | undefined;
241
- content?: any;
242
- meta?: {
243
- data?: any;
244
- invalidate?: boolean | undefined;
245
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
246
- enableTransitions?: string[] | undefined;
247
- enableAtPlaces?: string[] | undefined;
248
- hideAtPlaces?: string[] | undefined;
249
- } | undefined;
250
- schema?: any;
251
- ui?: any;
252
- tags?: string[] | 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
- data?: any;
269
- invalidate?: boolean | undefined;
270
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
271
- enableTransitions?: string[] | undefined;
272
- enableAtPlaces?: string[] | undefined;
273
- hideAtPlaces?: string[] | undefined;
274
- }, {
275
- data?: any;
276
- invalidate?: boolean | undefined;
277
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
278
- enableTransitions?: string[] | undefined;
279
- enableAtPlaces?: string[] | undefined;
280
- hideAtPlaces?: string[] | undefined;
281
- }>>;
282
- }, "strip", z.ZodTypeAny, {
283
- name: string;
284
- content?: any;
285
- meta?: {
286
- data?: any;
287
- invalidate?: boolean | undefined;
288
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
289
- enableTransitions?: string[] | undefined;
290
- enableAtPlaces?: string[] | undefined;
291
- hideAtPlaces?: string[] | undefined;
292
- } | undefined;
293
- schema?: any;
294
- ui?: any;
295
- tags?: string[] | undefined;
296
- }, {
297
- name: string;
298
- content?: any;
299
- meta?: {
300
- data?: any;
301
- invalidate?: boolean | undefined;
302
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
303
- enableTransitions?: string[] | undefined;
304
- enableAtPlaces?: string[] | undefined;
305
- hideAtPlaces?: string[] | undefined;
306
- } | undefined;
307
- schema?: any;
308
- ui?: any;
309
- tags?: string[] | undefined;
310
- }>>;
311
- }, "strict", z.ZodTypeAny, {
312
- create?: {
313
- name: string;
314
- content?: any;
315
- meta?: {
316
- data?: any;
317
- invalidate?: boolean | undefined;
318
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
319
- enableTransitions?: string[] | undefined;
320
- enableAtPlaces?: string[] | undefined;
321
- hideAtPlaces?: string[] | undefined;
322
- } | undefined;
323
- schema?: any;
324
- ui?: any;
325
- tags?: string[] | undefined;
326
- } | undefined;
327
- update?: {
328
- name?: string | undefined;
329
- content?: any;
330
- meta?: {
331
- data?: any;
332
- invalidate?: boolean | undefined;
333
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
334
- enableTransitions?: string[] | undefined;
335
- enableAtPlaces?: string[] | undefined;
336
- hideAtPlaces?: string[] | undefined;
337
- } | undefined;
338
- schema?: any;
339
- ui?: any;
340
- tags?: string[] | undefined;
341
- } | undefined;
342
- document?: string | undefined;
343
- }, {
344
- create?: {
345
- name: string;
346
- content?: any;
347
- meta?: {
348
- data?: any;
349
- invalidate?: boolean | undefined;
350
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
351
- enableTransitions?: string[] | undefined;
352
- enableAtPlaces?: string[] | undefined;
353
- hideAtPlaces?: string[] | undefined;
354
- } | undefined;
355
- schema?: any;
356
- ui?: any;
357
- tags?: string[] | undefined;
358
- } | undefined;
359
- update?: {
360
- name?: string | undefined;
361
- content?: any;
362
- meta?: {
363
- data?: any;
364
- invalidate?: boolean | undefined;
365
- mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
366
- enableTransitions?: string[] | undefined;
367
- enableAtPlaces?: string[] | undefined;
368
- hideAtPlaces?: string[] | undefined;
369
- } | undefined;
370
- schema?: any;
371
- ui?: any;
372
- tags?: string[] | 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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AAE;qCAgB0B,+BAAsB;QACxB,oCAAoB;QACtB,6BAAe;QACT,8BAAqB;QACxB,2BAAkB;GAnBrC,qBAAqB,CAsFjC"}
@@ -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,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;IAEzB,MAAM,GAAG,OAAC;SACP,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;IAEzB,KAAK,CAAC,KAAK,CAAC,KAAkC;QAC5C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,IAAI,YAAY,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AAhBY,oCAAY;uBAAZ,YAAY;IAFxB,IAAA,mBAAU,GAAE;IACZ,IAAA,aAAI,GAAE;GACM,YAAY,CAgBxB"}
@@ -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"}