@loopstack/core 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/documents/error-document.d.ts +10 -0
- package/dist/documents/error-document.d.ts.map +1 -0
- package/dist/documents/error-document.js +39 -0
- package/dist/documents/error-document.js.map +1 -0
- package/dist/documents/error-document.yaml +5 -0
- package/dist/documents/index.d.ts +7 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +23 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/link-document.d.ts +16 -0
- package/dist/documents/link-document.d.ts.map +1 -0
- package/dist/documents/link-document.js +45 -0
- package/dist/documents/link-document.js.map +1 -0
- package/dist/documents/link-document.yaml +3 -0
- package/dist/documents/markdown-document.d.ts +10 -0
- package/dist/documents/markdown-document.d.ts.map +1 -0
- package/dist/documents/markdown-document.js +39 -0
- package/dist/documents/markdown-document.js.map +1 -0
- package/dist/documents/markdown-document.yaml +3 -0
- package/dist/documents/message-document.d.ts +11 -0
- package/dist/documents/message-document.d.ts.map +1 -0
- package/dist/documents/message-document.js +40 -0
- package/dist/documents/message-document.js.map +1 -0
- package/dist/documents/message-document.yaml +5 -0
- package/dist/documents/plain-document.d.ts +10 -0
- package/dist/documents/plain-document.d.ts.map +1 -0
- package/dist/documents/plain-document.js +39 -0
- package/dist/documents/plain-document.js.map +1 -0
- package/dist/documents/plain-document.yaml +3 -0
- package/dist/documents/secret-request-document.d.ts +13 -0
- package/dist/documents/secret-request-document.d.ts.map +1 -0
- package/dist/documents/secret-request-document.js +40 -0
- package/dist/documents/secret-request-document.js.map +1 -0
- package/dist/documents/secret-request-document.yaml +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/loop-core.module.d.ts.map +1 -1
- package/dist/loop-core.module.js +33 -2
- package/dist/loop-core.module.js.map +1 -1
- package/dist/persistence/persistence.module.d.ts.map +1 -1
- package/dist/persistence/persistence.module.js +3 -0
- package/dist/persistence/persistence.module.js.map +1 -1
- package/dist/persistence/services/document.service.d.ts.map +1 -1
- package/dist/persistence/services/document.service.js +2 -1
- package/dist/persistence/services/document.service.js.map +1 -1
- package/dist/persistence/services/event-subscriber.service.d.ts +1 -1
- package/dist/persistence/services/event-subscriber.service.d.ts.map +1 -1
- package/dist/persistence/services/event-subscriber.service.js +2 -1
- package/dist/persistence/services/event-subscriber.service.js.map +1 -1
- package/dist/persistence/services/index.d.ts +1 -0
- package/dist/persistence/services/index.d.ts.map +1 -1
- package/dist/persistence/services/index.js +1 -0
- package/dist/persistence/services/index.js.map +1 -1
- package/dist/persistence/services/secret.service.d.ts +20 -0
- package/dist/persistence/services/secret.service.d.ts.map +1 -0
- package/dist/persistence/services/secret.service.js +76 -0
- package/dist/persistence/services/secret.service.js.map +1 -0
- package/dist/scheduler/services/event-processor.service.d.ts.map +1 -1
- package/dist/scheduler/services/event-processor.service.js +4 -1
- package/dist/scheduler/services/event-processor.service.js.map +1 -1
- package/dist/scheduler/services/task-processor/run-pipeline-task-processor.service.d.ts.map +1 -1
- package/dist/scheduler/services/task-processor/run-pipeline-task-processor.service.js +6 -1
- package/dist/scheduler/services/task-processor/run-pipeline-task-processor.service.js.map +1 -1
- package/dist/tools/create-document.tool.d.ts +73 -0
- package/dist/tools/create-document.tool.d.ts.map +1 -0
- package/dist/tools/create-document.tool.js +151 -0
- package/dist/tools/create-document.tool.js.map +1 -0
- package/dist/tools/get-secret-keys.tool.d.ts +6 -0
- package/dist/tools/get-secret-keys.tool.d.ts.map +1 -0
- package/dist/tools/get-secret-keys.tool.js +40 -0
- package/dist/tools/get-secret-keys.tool.js.map +1 -0
- package/dist/tools/index.d.ts +6 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/request-secrets-task.tool.d.ts +19 -0
- package/dist/tools/request-secrets-task.tool.d.ts.map +1 -0
- package/dist/tools/request-secrets-task.tool.js +110 -0
- package/dist/tools/request-secrets-task.tool.js.map +1 -0
- package/dist/tools/request-secrets.tool.d.ts +14 -0
- package/dist/tools/request-secrets.tool.d.ts.map +1 -0
- package/dist/tools/request-secrets.tool.js +45 -0
- package/dist/tools/request-secrets.tool.js.map +1 -0
- package/dist/tools/secrets-request.workflow.d.ts +19 -0
- package/dist/tools/secrets-request.workflow.d.ts.map +1 -0
- package/dist/tools/secrets-request.workflow.js +70 -0
- package/dist/tools/secrets-request.workflow.js.map +1 -0
- package/dist/tools/secrets-request.workflow.yaml +22 -0
- package/dist/tools/{execute-workflow-async.tool.d.ts → task.tool.d.ts} +9 -11
- package/dist/tools/task.tool.d.ts.map +1 -0
- package/dist/tools/{execute-workflow-async.tool.js → task.tool.js} +42 -37
- package/dist/tools/task.tool.js.map +1 -0
- package/dist/workflow-processor/index.d.ts +1 -0
- package/dist/workflow-processor/index.d.ts.map +1 -1
- package/dist/workflow-processor/index.js +1 -0
- package/dist/workflow-processor/index.js.map +1 -1
- package/dist/workflow-processor/services/create-pipeline.service.d.ts +4 -3
- package/dist/workflow-processor/services/create-pipeline.service.d.ts.map +1 -1
- package/dist/workflow-processor/services/create-pipeline.service.js +24 -11
- package/dist/workflow-processor/services/create-pipeline.service.js.map +1 -1
- package/dist/workflow-processor/services/root-processor.service.d.ts +2 -0
- package/dist/workflow-processor/services/root-processor.service.d.ts.map +1 -1
- package/dist/workflow-processor/services/root-processor.service.js +25 -6
- package/dist/workflow-processor/services/root-processor.service.js.map +1 -1
- package/dist/workflow-processor/services/state-machine-tool-call-processor.service.d.ts +8 -4
- package/dist/workflow-processor/services/state-machine-tool-call-processor.service.d.ts.map +1 -1
- package/dist/workflow-processor/services/state-machine-tool-call-processor.service.js +79 -44
- package/dist/workflow-processor/services/state-machine-tool-call-processor.service.js.map +1 -1
- package/dist/workflow-processor/services/workflow-state.service.d.ts.map +1 -1
- package/dist/workflow-processor/services/workflow-state.service.js +1 -0
- package/dist/workflow-processor/services/workflow-state.service.js.map +1 -1
- package/dist/workflow-processor/utils/index.d.ts +4 -0
- package/dist/workflow-processor/utils/index.d.ts.map +1 -0
- package/dist/workflow-processor/utils/index.js +20 -0
- package/dist/workflow-processor/utils/index.js.map +1 -0
- package/dist/workflow-processor/workflow-processor.module.d.ts.map +1 -1
- package/dist/workflow-processor/workflow-processor.module.js +1 -0
- package/dist/workflow-processor/workflow-processor.module.js.map +1 -1
- package/package.json +2 -2
- package/dist/tools/execute-workflow-async.tool.d.ts.map +0 -1
- package/dist/tools/execute-workflow-async.tool.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const ErrorDocumentSchema: z.ZodObject<{
|
|
4
|
+
error: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare class ErrorDocument implements DocumentInterface {
|
|
7
|
+
content: z.infer<typeof ErrorDocumentSchema>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=error-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-document.d.ts","sourceRoot":"","sources":["../../src/documents/error-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,mBAAmB;;kBAId,CAAC;AAEZ,qBAOa,aAAc,YAAW,iBAAiB;IAIrD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC9C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ErrorDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const ErrorDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
error: zod_1.z.string(),
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
20
|
+
let ErrorDocument = class ErrorDocument {
|
|
21
|
+
content;
|
|
22
|
+
};
|
|
23
|
+
exports.ErrorDocument = ErrorDocument;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, common_1.Input)({
|
|
26
|
+
schema: ErrorDocumentSchema,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], ErrorDocument.prototype, "content", void 0);
|
|
30
|
+
exports.ErrorDocument = ErrorDocument = __decorate([
|
|
31
|
+
(0, common_1.Document)({
|
|
32
|
+
config: {
|
|
33
|
+
type: 'document',
|
|
34
|
+
description: 'Error Document.',
|
|
35
|
+
},
|
|
36
|
+
configFile: __dirname + '/error-document.yaml',
|
|
37
|
+
})
|
|
38
|
+
], ErrorDocument);
|
|
39
|
+
//# sourceMappingURL=error-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-document.js","sourceRoot":"","sources":["../../src/documents/error-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,mBAAmB,GAAG,OAAC;KAC1B,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACD,MAAM,EAAE,CAAC;AASL,IAAM,aAAa,GAAnB,MAAM,aAAa;IAIxB,OAAO,CAAsC;CAC9C,CAAA;AALY,sCAAa;AAIxB;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,mBAAmB;KAC5B,CAAC;;8CAC2C;wBAJlC,aAAa;IAPzB,IAAA,iBAAQ,EAAC;QACR,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iBAAiB;SAC/B;QACD,UAAU,EAAE,SAAS,GAAG,sBAAsB;KAC/C,CAAC;GACW,aAAa,CAKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/documents/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./error-document"), exports);
|
|
18
|
+
__exportStar(require("./link-document"), exports);
|
|
19
|
+
__exportStar(require("./markdown-document"), exports);
|
|
20
|
+
__exportStar(require("./message-document"), exports);
|
|
21
|
+
__exportStar(require("./plain-document"), exports);
|
|
22
|
+
__exportStar(require("./secret-request-document"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,4DAA0C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const LinkDocumentSchema: z.ZodObject<{
|
|
4
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
8
|
+
href: z.ZodOptional<z.ZodString>;
|
|
9
|
+
embed: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
expanded: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export declare class LinkDocument implements DocumentInterface {
|
|
13
|
+
content: z.infer<typeof LinkDocumentSchema>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=link-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-document.d.ts","sourceRoot":"","sources":["../../src/documents/link-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,kBAAkB;;;;;;;;kBAUb,CAAC;AAEZ,qBAOa,YAAa,YAAW,iBAAiB;IAIpD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LinkDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const LinkDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
icon: zod_1.z.string().optional(),
|
|
18
|
+
type: zod_1.z.string().optional(),
|
|
19
|
+
label: zod_1.z.string().optional(),
|
|
20
|
+
caption: zod_1.z.string().optional(),
|
|
21
|
+
href: zod_1.z.string().optional(),
|
|
22
|
+
embed: zod_1.z.boolean().optional(),
|
|
23
|
+
expanded: zod_1.z.boolean().optional(),
|
|
24
|
+
})
|
|
25
|
+
.strict();
|
|
26
|
+
let LinkDocument = class LinkDocument {
|
|
27
|
+
content;
|
|
28
|
+
};
|
|
29
|
+
exports.LinkDocument = LinkDocument;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Input)({
|
|
32
|
+
schema: LinkDocumentSchema,
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], LinkDocument.prototype, "content", void 0);
|
|
36
|
+
exports.LinkDocument = LinkDocument = __decorate([
|
|
37
|
+
(0, common_1.Document)({
|
|
38
|
+
config: {
|
|
39
|
+
type: 'document',
|
|
40
|
+
description: 'Link Document.',
|
|
41
|
+
},
|
|
42
|
+
configFile: __dirname + '/link-document.yaml',
|
|
43
|
+
})
|
|
44
|
+
], LinkDocument);
|
|
45
|
+
//# sourceMappingURL=link-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-document.js","sourceRoot":"","sources":["../../src/documents/link-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,kBAAkB,GAAG,OAAC;KACzB,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,EAAE,CAAC;AASL,IAAM,YAAY,GAAlB,MAAM,YAAY;IAIvB,OAAO,CAAqC;CAC7C,CAAA;AALY,oCAAY;AAIvB;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,kBAAkB;KAC3B,CAAC;;6CAC0C;uBAJjC,YAAY;IAPxB,IAAA,iBAAQ,EAAC;QACR,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;SAC9B;QACD,UAAU,EAAE,SAAS,GAAG,qBAAqB;KAC9C,CAAC;GACW,YAAY,CAKxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const MarkdownDocumentSchema: z.ZodObject<{
|
|
4
|
+
markdown: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare class MarkdownDocument implements DocumentInterface {
|
|
7
|
+
content: z.infer<typeof MarkdownDocumentSchema>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=markdown-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.d.ts","sourceRoot":"","sources":["../../src/documents/markdown-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,sBAAsB;;kBAIjB,CAAC;AAEZ,qBAOa,gBAAiB,YAAW,iBAAiB;IAIxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MarkdownDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const MarkdownDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
markdown: zod_1.z.string(),
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
20
|
+
let MarkdownDocument = class MarkdownDocument {
|
|
21
|
+
content;
|
|
22
|
+
};
|
|
23
|
+
exports.MarkdownDocument = MarkdownDocument;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, common_1.Input)({
|
|
26
|
+
schema: MarkdownDocumentSchema,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], MarkdownDocument.prototype, "content", void 0);
|
|
30
|
+
exports.MarkdownDocument = MarkdownDocument = __decorate([
|
|
31
|
+
(0, common_1.Document)({
|
|
32
|
+
config: {
|
|
33
|
+
type: 'document',
|
|
34
|
+
description: 'Markdown Document.',
|
|
35
|
+
},
|
|
36
|
+
configFile: __dirname + '/markdown-document.yaml',
|
|
37
|
+
})
|
|
38
|
+
], MarkdownDocument);
|
|
39
|
+
//# sourceMappingURL=markdown-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.js","sourceRoot":"","sources":["../../src/documents/markdown-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,sBAAsB,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AASL,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAI3B,OAAO,CAAyC;CACjD,CAAA;AALY,4CAAgB;AAI3B;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,sBAAsB;KAC/B,CAAC;;iDAC8C;2BAJrC,gBAAgB;IAP5B,IAAA,iBAAQ,EAAC;QACR,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,oBAAoB;SAClC;QACD,UAAU,EAAE,SAAS,GAAG,yBAAyB;KAClD,CAAC;GACW,gBAAgB,CAK5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const MessageDocumentSchema: z.ZodObject<{
|
|
4
|
+
role: z.ZodString;
|
|
5
|
+
content: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare class MessageDocument implements DocumentInterface {
|
|
8
|
+
content: z.infer<typeof MessageDocumentSchema>;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=message-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-document.d.ts","sourceRoot":"","sources":["../../src/documents/message-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,qBAAqB;;;kBAKhB,CAAC;AAEZ,qBAOa,eAAgB,YAAW,iBAAiB;IAIvD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MessageDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const MessageDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
role: zod_1.z.string(),
|
|
18
|
+
content: zod_1.z.string(),
|
|
19
|
+
})
|
|
20
|
+
.strict();
|
|
21
|
+
let MessageDocument = class MessageDocument {
|
|
22
|
+
content;
|
|
23
|
+
};
|
|
24
|
+
exports.MessageDocument = MessageDocument;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, common_1.Input)({
|
|
27
|
+
schema: MessageDocumentSchema,
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], MessageDocument.prototype, "content", void 0);
|
|
31
|
+
exports.MessageDocument = MessageDocument = __decorate([
|
|
32
|
+
(0, common_1.Document)({
|
|
33
|
+
config: {
|
|
34
|
+
type: 'document',
|
|
35
|
+
description: 'Message Document.',
|
|
36
|
+
},
|
|
37
|
+
configFile: __dirname + '/message-document.yaml',
|
|
38
|
+
})
|
|
39
|
+
], MessageDocument);
|
|
40
|
+
//# sourceMappingURL=message-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-document.js","sourceRoot":"","sources":["../../src/documents/message-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,qBAAqB,GAAG,OAAC;KAC5B,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC;KACD,MAAM,EAAE,CAAC;AASL,IAAM,eAAe,GAArB,MAAM,eAAe;IAI1B,OAAO,CAAwC;CAChD,CAAA;AALY,0CAAe;AAI1B;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,qBAAqB;KAC9B,CAAC;;gDAC6C;0BAJpC,eAAe;IAP3B,IAAA,iBAAQ,EAAC;QACR,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mBAAmB;SACjC;QACD,UAAU,EAAE,SAAS,GAAG,wBAAwB;KACjD,CAAC;GACW,eAAe,CAK3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const PlainDocumentSchema: z.ZodObject<{
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare class PlainDocument implements DocumentInterface {
|
|
7
|
+
content: z.infer<typeof PlainDocumentSchema>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=plain-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plain-document.d.ts","sourceRoot":"","sources":["../../src/documents/plain-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,mBAAmB;;kBAId,CAAC;AAEZ,qBAOa,aAAc,YAAW,iBAAiB;IAIrD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC9C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlainDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const PlainDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
text: zod_1.z.string(),
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
20
|
+
let PlainDocument = class PlainDocument {
|
|
21
|
+
content;
|
|
22
|
+
};
|
|
23
|
+
exports.PlainDocument = PlainDocument;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, common_1.Input)({
|
|
26
|
+
schema: PlainDocumentSchema,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], PlainDocument.prototype, "content", void 0);
|
|
30
|
+
exports.PlainDocument = PlainDocument = __decorate([
|
|
31
|
+
(0, common_1.Document)({
|
|
32
|
+
config: {
|
|
33
|
+
type: 'document',
|
|
34
|
+
description: 'Plain Document.',
|
|
35
|
+
},
|
|
36
|
+
configFile: __dirname + '/plain-document.yaml',
|
|
37
|
+
})
|
|
38
|
+
], PlainDocument);
|
|
39
|
+
//# sourceMappingURL=plain-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plain-document.js","sourceRoot":"","sources":["../../src/documents/plain-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,mBAAmB,GAAG,OAAC;KAC1B,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC;KACD,MAAM,EAAE,CAAC;AASL,IAAM,aAAa,GAAnB,MAAM,aAAa;IAIxB,OAAO,CAAsC;CAC9C,CAAA;AALY,sCAAa;AAIxB;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,mBAAmB;KAC5B,CAAC;;8CAC2C;wBAJlC,aAAa;IAPzB,IAAA,iBAAQ,EAAC;QACR,MAAM,EAAE;YACN,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,iBAAiB;SAC/B;QACD,UAAU,EAAE,SAAS,GAAG,sBAAsB;KAC/C,CAAC;GACW,aAAa,CAKzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentInterface } from '@loopstack/common';
|
|
3
|
+
declare const SecretRequestDocumentSchema: z.ZodObject<{
|
|
4
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
value: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>>>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare class SecretRequestDocument implements DocumentInterface {
|
|
10
|
+
content: z.infer<typeof SecretRequestDocumentSchema>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=secret-request-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-request-document.d.ts","sourceRoot":"","sources":["../../src/documents/secret-request-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAY,iBAAiB,EAAS,MAAM,mBAAmB,CAAC;AAEvE,QAAA,MAAM,2BAA2B;;;;;kBAWtB,CAAC;AAEZ,qBAGa,qBAAsB,YAAW,iBAAiB;IAI7D,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SecretRequestDocument = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const SecretRequestDocumentSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
variables: zod_1.z
|
|
18
|
+
.array(zod_1.z.object({
|
|
19
|
+
key: zod_1.z.string(),
|
|
20
|
+
value: zod_1.z.string().optional(),
|
|
21
|
+
}))
|
|
22
|
+
.optional(),
|
|
23
|
+
})
|
|
24
|
+
.strict();
|
|
25
|
+
let SecretRequestDocument = class SecretRequestDocument {
|
|
26
|
+
content;
|
|
27
|
+
};
|
|
28
|
+
exports.SecretRequestDocument = SecretRequestDocument;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, common_1.Input)({
|
|
31
|
+
schema: SecretRequestDocumentSchema,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], SecretRequestDocument.prototype, "content", void 0);
|
|
35
|
+
exports.SecretRequestDocument = SecretRequestDocument = __decorate([
|
|
36
|
+
(0, common_1.Document)({
|
|
37
|
+
configFile: __dirname + '/secret-request-document.yaml',
|
|
38
|
+
})
|
|
39
|
+
], SecretRequestDocument);
|
|
40
|
+
//# sourceMappingURL=secret-request-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-request-document.js","sourceRoot":"","sources":["../../src/documents/secret-request-document.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,8CAAuE;AAEvE,MAAM,2BAA2B,GAAG,OAAC;KAClC,MAAM,CAAC;IACN,SAAS,EAAE,OAAC;SACT,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC,CACH;SACA,QAAQ,EAAE;CACd,CAAC;KACD,MAAM,EAAE,CAAC;AAKL,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAIhC,OAAO,CAA8C;CACtD,CAAA;AALY,sDAAqB;AAIhC;IAHC,IAAA,cAAK,EAAC;QACL,MAAM,EAAE,2BAA2B;KACpC,CAAC;;sDACmD;gCAJ1C,qBAAqB;IAHjC,IAAA,iBAAQ,EAAC;QACR,UAAU,EAAE,SAAS,GAAG,+BAA+B;KACxD,CAAC;GACW,qBAAqB,CAKjC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type: document
|
|
2
|
+
ui:
|
|
3
|
+
form:
|
|
4
|
+
properties:
|
|
5
|
+
variables:
|
|
6
|
+
title: Secrets
|
|
7
|
+
fixed: true
|
|
8
|
+
items:
|
|
9
|
+
order:
|
|
10
|
+
- key
|
|
11
|
+
- value
|
|
12
|
+
properties:
|
|
13
|
+
key:
|
|
14
|
+
title: Key
|
|
15
|
+
readonly: true
|
|
16
|
+
value:
|
|
17
|
+
title: Value
|
|
18
|
+
actions:
|
|
19
|
+
- type: custom
|
|
20
|
+
widget: secret-input
|
|
21
|
+
options:
|
|
22
|
+
transition: secrets_submitted
|
|
23
|
+
label: Save & Continue
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './common';
|
|
|
3
3
|
export * from './persistence';
|
|
4
4
|
export * from './scheduler';
|
|
5
5
|
export * from './workflow-processor';
|
|
6
|
+
export * from './documents';
|
|
6
7
|
export * from './loop-core.module';
|
|
7
8
|
export * from './loop-core.module-definition';
|
|
8
9
|
export * from './tools';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AAErC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AAErC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./common"), exports);
|
|
|
19
19
|
__exportStar(require("./persistence"), exports);
|
|
20
20
|
__exportStar(require("./scheduler"), exports);
|
|
21
21
|
__exportStar(require("./workflow-processor"), exports);
|
|
22
|
+
__exportStar(require("./documents"), exports);
|
|
22
23
|
__exportStar(require("./loop-core.module"), exports);
|
|
23
24
|
__exportStar(require("./loop-core.module-definition"), exports);
|
|
24
25
|
__exportStar(require("./tools"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,2CAAyB;AACzB,gDAA8B;AAC9B,8CAA4B;AAC5B,uDAAqC;AAErC,qDAAmC;AACnC,gEAA8C;AAC9C,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,2CAAyB;AACzB,gDAA8B;AAC9B,8CAA4B;AAC5B,uDAAqC;AAErC,8CAA4B;AAC5B,qDAAmC;AACnC,gEAA8C;AAC9C,0CAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-core.module.d.ts","sourceRoot":"","sources":["../src/loop-core.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loop-core.module.d.ts","sourceRoot":"","sources":["../src/loop-core.module.ts"],"names":[],"mappings":"AAgCA,qBAqDa,cAAc;CAAG"}
|
package/dist/loop-core.module.js
CHANGED
|
@@ -12,6 +12,7 @@ const event_emitter_1 = require("@nestjs/event-emitter");
|
|
|
12
12
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
13
13
|
const common_2 = require("@loopstack/common");
|
|
14
14
|
const common_3 = require("./common");
|
|
15
|
+
const documents_1 = require("./documents");
|
|
15
16
|
const scheduler_1 = require("./scheduler");
|
|
16
17
|
const tools_1 = require("./tools");
|
|
17
18
|
const workflow_processor_1 = require("./workflow-processor");
|
|
@@ -28,6 +29,7 @@ exports.LoopCoreModule = LoopCoreModule = __decorate([
|
|
|
28
29
|
common_2.WorkspaceEntity,
|
|
29
30
|
common_2.WorkspaceEnvironmentEntity,
|
|
30
31
|
common_2.NamespaceEntity,
|
|
32
|
+
common_2.SecretEntity,
|
|
31
33
|
]),
|
|
32
34
|
event_emitter_1.EventEmitterModule.forRoot({
|
|
33
35
|
global: true,
|
|
@@ -36,8 +38,37 @@ exports.LoopCoreModule = LoopCoreModule = __decorate([
|
|
|
36
38
|
workflow_processor_1.WorkflowProcessorModule,
|
|
37
39
|
scheduler_1.SchedulerModule,
|
|
38
40
|
],
|
|
39
|
-
providers: [
|
|
40
|
-
|
|
41
|
+
providers: [
|
|
42
|
+
tools_1.CreateDocument,
|
|
43
|
+
tools_1.GetSecretKeysTool,
|
|
44
|
+
tools_1.RequestSecretsTool,
|
|
45
|
+
tools_1.RequestSecretsTask,
|
|
46
|
+
tools_1.Task,
|
|
47
|
+
tools_1.SecretsRequestWorkflow,
|
|
48
|
+
documents_1.ErrorDocument,
|
|
49
|
+
documents_1.LinkDocument,
|
|
50
|
+
documents_1.MarkdownDocument,
|
|
51
|
+
documents_1.MessageDocument,
|
|
52
|
+
documents_1.PlainDocument,
|
|
53
|
+
documents_1.SecretRequestDocument,
|
|
54
|
+
],
|
|
55
|
+
exports: [
|
|
56
|
+
common_3.CommonModule,
|
|
57
|
+
workflow_processor_1.WorkflowProcessorModule,
|
|
58
|
+
scheduler_1.SchedulerModule,
|
|
59
|
+
tools_1.CreateDocument,
|
|
60
|
+
tools_1.GetSecretKeysTool,
|
|
61
|
+
tools_1.RequestSecretsTool,
|
|
62
|
+
tools_1.RequestSecretsTask,
|
|
63
|
+
tools_1.Task,
|
|
64
|
+
tools_1.SecretsRequestWorkflow,
|
|
65
|
+
documents_1.ErrorDocument,
|
|
66
|
+
documents_1.LinkDocument,
|
|
67
|
+
documents_1.MarkdownDocument,
|
|
68
|
+
documents_1.MessageDocument,
|
|
69
|
+
documents_1.PlainDocument,
|
|
70
|
+
documents_1.SecretRequestDocument,
|
|
71
|
+
],
|
|
41
72
|
})
|
|
42
73
|
], LoopCoreModule);
|
|
43
74
|
//# sourceMappingURL=loop-core.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-core.module.js","sourceRoot":"","sources":["../src/loop-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAA2D;AAC3D,6CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"loop-core.module.js","sourceRoot":"","sources":["../src/loop-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAA2D;AAC3D,6CAAgD;AAChD,8CAQ2B;AAC3B,qCAAwC;AACxC,2CAOqB;AACrB,2CAA8C;AAC9C,mCAOiB;AACjB,6DAA+D;AAuDxD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IArD1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,uBAAc;gBACd,uBAAc;gBACd,uBAAc;gBACd,wBAAe;gBACf,mCAA0B;gBAC1B,wBAAe;gBACf,qBAAY;aACb,CAAC;YACF,kCAAkB,CAAC,OAAO,CAAC;gBACzB,MAAM,EAAE,IAAI;aACb,CAAC;YACF,qBAAY;YACZ,4CAAuB;YACvB,2BAAe;SAChB;QACD,SAAS,EAAE;YAET,sBAAc;YACd,yBAAiB;YACjB,0BAAkB;YAClB,0BAAkB;YAClB,YAAI;YACJ,8BAAsB;YAGtB,yBAAa;YACb,wBAAY;YACZ,4BAAgB;YAChB,2BAAe;YACf,yBAAa;YACb,iCAAqB;SACtB;QACD,OAAO,EAAE;YACP,qBAAY;YACZ,4CAAuB;YACvB,2BAAe;YACf,sBAAc;YACd,yBAAiB;YACjB,0BAAkB;YAClB,0BAAkB;YAClB,YAAI;YACJ,8BAAsB;YACtB,yBAAa;YACb,wBAAY;YACZ,4BAAgB;YAChB,2BAAe;YACf,yBAAa;YACb,iCAAqB;SACtB;KACF,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.module.d.ts","sourceRoot":"","sources":["../../src/persistence/persistence.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"persistence.module.d.ts","sourceRoot":"","sources":["../../src/persistence/persistence.module.ts"],"names":[],"mappings":"AAuBA,qBAiCa,iBAAiB;CAAG"}
|
|
@@ -25,6 +25,7 @@ exports.PersistenceModule = PersistenceModule = __decorate([
|
|
|
25
25
|
common_2.PipelineEntity,
|
|
26
26
|
common_2.DocumentEntity,
|
|
27
27
|
common_2.EventSubscriberEntity,
|
|
28
|
+
common_2.SecretEntity,
|
|
28
29
|
]),
|
|
29
30
|
common_3.CommonModule,
|
|
30
31
|
],
|
|
@@ -36,6 +37,7 @@ exports.PersistenceModule = PersistenceModule = __decorate([
|
|
|
36
37
|
services_1.DocumentService,
|
|
37
38
|
services_1.MigrationsService,
|
|
38
39
|
services_1.EventSubscriberService,
|
|
40
|
+
services_1.SecretService,
|
|
39
41
|
],
|
|
40
42
|
exports: [
|
|
41
43
|
services_1.WorkflowService,
|
|
@@ -44,6 +46,7 @@ exports.PersistenceModule = PersistenceModule = __decorate([
|
|
|
44
46
|
services_1.PipelineService,
|
|
45
47
|
services_1.DocumentService,
|
|
46
48
|
services_1.EventSubscriberService,
|
|
49
|
+
services_1.SecretService,
|
|
47
50
|
],
|
|
48
51
|
})
|
|
49
52
|
], PersistenceModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.module.js","sourceRoot":"","sources":["../../src/persistence/persistence.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"persistence.module.js","sourceRoot":"","sources":["../../src/persistence/persistence.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,8CAQ2B;AAC3B,sCAAyC;AACzC,yCASoB;AAmCb,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAjC7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,uBAAc;gBACd,wBAAe;gBACf,wBAAe;gBACf,uBAAc;gBACd,uBAAc;gBACd,8BAAqB;gBACrB,qBAAY;aACb,CAAC;YACF,qBAAY;SACb;QACD,SAAS,EAAE;YACT,0BAAe;YACf,4BAAiB;YACjB,2BAAgB;YAChB,0BAAe;YACf,0BAAe;YACf,4BAAiB;YACjB,iCAAsB;YACtB,wBAAa;SACd;QACD,OAAO,EAAE;YACP,0BAAe;YACf,4BAAiB;YACjB,2BAAgB;YAChB,0BAAe;YACf,0BAAe;YACf,iCAAsB;YACtB,wBAAa;SACd;KACF,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.service.d.ts","sourceRoot":"","sources":["../../../src/persistence/services/document.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAkB,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1G,qBACa,eAAe;IAGxB,OAAO,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,UAAU,CAAC,cAAc,CAAC;IAGxD,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc;
|
|
1
|
+
{"version":3,"file":"document.service.d.ts","sourceRoot":"","sources":["../../../src/persistence/services/document.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAkB,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1G,qBACa,eAAe;IAGxB,OAAO,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,UAAU,CAAC,cAAc,CAAC;IAGxD,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc;CAoBhH"}
|
|
@@ -30,11 +30,12 @@ let DocumentService = class DocumentService {
|
|
|
30
30
|
return this.documentRepository.create({
|
|
31
31
|
...data,
|
|
32
32
|
transition: transition.id,
|
|
33
|
-
index:
|
|
33
|
+
index: 0,
|
|
34
34
|
workflowIndex: context.index,
|
|
35
35
|
place: transition.to,
|
|
36
36
|
labels: context.labels,
|
|
37
37
|
workflow: { id: context.workflowId },
|
|
38
|
+
workflowId: context.workflowId,
|
|
38
39
|
workspaceId: context.workspaceId,
|
|
39
40
|
pipelineId: context.pipelineId,
|
|
40
41
|
createdBy: context.userId,
|