@versori/run 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/mod.d.ts +1 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/src/connection/VanillaConnectionFactory.d.ts +16 -0
- package/esm/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
- package/esm/src/connection/VanillaConnectionFactory.js +35 -0
- package/esm/src/context/ActivationImpl.d.ts +2 -1
- package/esm/src/context/ActivationImpl.d.ts.map +1 -1
- package/esm/src/context/Context.d.ts +2 -1
- package/esm/src/context/Context.d.ts.map +1 -1
- package/esm/src/context/ContextProvider.d.ts +8 -8
- package/esm/src/context/ContextProvider.d.ts.map +1 -1
- package/esm/src/context/ContextProvider.js +1 -1
- package/esm/src/context/VanillaContext.d.ts +63 -0
- package/esm/src/context/VanillaContext.d.ts.map +1 -0
- package/esm/src/context/VanillaContext.js +313 -0
- package/esm/src/context/WorkflowClient.d.ts +2 -2
- package/esm/src/context/WorkflowClient.d.ts.map +1 -1
- package/esm/src/dsl/http/mod.d.ts +1 -1
- package/esm/src/dsl/http/mod.d.ts.map +1 -1
- package/esm/src/dsl/http/types.d.ts +20 -134
- package/esm/src/dsl/http/types.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/configloader.js +3 -0
- package/esm/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
- package/esm/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
- package/esm/src/dsl/tasks/HttpTask.d.ts +4 -4
- package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/esm/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
- package/esm/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/durable/DurableInterpreter.js +24 -7
- package/esm/src/interpreter/durable/Queue.d.ts +1 -1
- package/esm/src/interpreter/durable/Queue.js +1 -1
- package/esm/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/durableworkflow.js +2 -1
- package/esm/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/fn.js +7 -4
- package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/webhook.js +7 -6
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +24 -7
- package/esm/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/fn.js +7 -4
- package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.js +7 -6
- package/esm/src/interpreter/mod.d.ts +1 -0
- package/esm/src/interpreter/mod.d.ts.map +1 -1
- package/esm/src/interpreter/mod.js +1 -0
- package/esm/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
- package/esm/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/ExecutionError.js +46 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/ObservableCompiler.js +95 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/VanillaInterpreter.js +435 -0
- package/esm/src/interpreter/vanilla/compilers/background.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/background.js +34 -0
- package/esm/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/catch.js +75 -0
- package/esm/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
- package/esm/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/chain.js +21 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.js +91 -0
- package/esm/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/fn.js +37 -0
- package/esm/src/interpreter/vanilla/compilers/http.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/http.js +54 -0
- package/esm/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
- package/esm/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/mod.js +13 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/parallel.js +31 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/schedule.js +76 -0
- package/esm/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/serial.js +28 -0
- package/esm/src/interpreter/vanilla/compilers/types.d.ts +15 -0
- package/esm/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/types.js +13 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/unpack.js +34 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/compilers/webhook.js +261 -0
- package/esm/src/interpreter/vanilla/mod.d.ts +3 -0
- package/esm/src/interpreter/vanilla/mod.d.ts.map +1 -0
- package/esm/src/interpreter/vanilla/mod.js +14 -0
- package/esm/src/issues/Issues.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.d.ts +1 -1
- package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/esm/src/observability/logging/ConsoleLogger.js +11 -1
- package/esm/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
- package/package.json +1 -1
- package/script/mod.d.ts +1 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +2 -1
- package/script/src/connection/VanillaConnectionFactory.d.ts +16 -0
- package/script/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
- package/script/src/connection/VanillaConnectionFactory.js +40 -0
- package/script/src/context/ActivationImpl.d.ts +2 -1
- package/script/src/context/ActivationImpl.d.ts.map +1 -1
- package/script/src/context/Context.d.ts +2 -1
- package/script/src/context/Context.d.ts.map +1 -1
- package/script/src/context/ContextProvider.d.ts +8 -8
- package/script/src/context/ContextProvider.d.ts.map +1 -1
- package/script/src/context/ContextProvider.js +1 -1
- package/script/src/context/VanillaContext.d.ts +63 -0
- package/script/src/context/VanillaContext.d.ts.map +1 -0
- package/script/src/context/VanillaContext.js +319 -0
- package/script/src/context/WorkflowClient.d.ts +2 -2
- package/script/src/context/WorkflowClient.d.ts.map +1 -1
- package/script/src/dsl/http/mod.d.ts +1 -1
- package/script/src/dsl/http/mod.d.ts.map +1 -1
- package/script/src/dsl/http/types.d.ts +20 -134
- package/script/src/dsl/http/types.d.ts.map +1 -1
- package/script/src/dsl/http/versori/configloader.d.ts.map +1 -1
- package/script/src/dsl/http/versori/configloader.js +3 -0
- package/script/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
- package/script/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
- package/script/src/dsl/tasks/HttpTask.d.ts +4 -4
- package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
- package/script/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
- package/script/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
- package/script/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
- package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/durable/DurableInterpreter.js +24 -7
- package/script/src/interpreter/durable/Queue.d.ts +1 -1
- package/script/src/interpreter/durable/Queue.js +1 -1
- package/script/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/durableworkflow.js +2 -1
- package/script/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/fn.js +7 -4
- package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/webhook.js +7 -6
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +24 -7
- package/script/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/fn.js +7 -4
- package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.js +7 -6
- package/script/src/interpreter/mod.d.ts +1 -0
- package/script/src/interpreter/mod.d.ts.map +1 -1
- package/script/src/interpreter/mod.js +2 -1
- package/script/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
- package/script/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/ExecutionError.js +50 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/ObservableCompiler.js +99 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/VanillaInterpreter.js +442 -0
- package/script/src/interpreter/vanilla/compilers/background.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/background.js +37 -0
- package/script/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/catch.js +78 -0
- package/script/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
- package/script/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/chain.js +24 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/durableworkflow.js +95 -0
- package/script/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/fn.js +40 -0
- package/script/src/interpreter/vanilla/compilers/http.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/http.js +57 -0
- package/script/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
- package/script/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/mod.js +14 -0
- package/script/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/parallel.js +34 -0
- package/script/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/schedule.js +79 -0
- package/script/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/serial.js +31 -0
- package/script/src/interpreter/vanilla/compilers/types.d.ts +15 -0
- package/script/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/types.js +14 -0
- package/script/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/unpack.js +37 -0
- package/script/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
- package/script/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/compilers/webhook.js +267 -0
- package/script/src/interpreter/vanilla/mod.d.ts +3 -0
- package/script/src/interpreter/vanilla/mod.d.ts.map +1 -0
- package/script/src/interpreter/vanilla/mod.js +30 -0
- package/script/src/issues/Issues.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.d.ts +1 -1
- package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/script/src/observability/logging/ConsoleLogger.js +11 -1
- package/script/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.durableWorkflowCompiler = void 0;
|
|
16
|
+
exports.compileDurableWorkflow = compileDurableWorkflow;
|
|
17
|
+
const rxjs_1 = require("rxjs");
|
|
18
|
+
const DurableTrigger_js_1 = require("../../../dsl/triggers/DurableTrigger.js");
|
|
19
|
+
const ObservableCompiler_js_1 = require("../ObservableCompiler.js");
|
|
20
|
+
function compileDurableWorkflow(ctx, trigger, signal) {
|
|
21
|
+
return new rxjs_1.Observable((subscriber) => {
|
|
22
|
+
function cleanup() {
|
|
23
|
+
ctx.log.debug('webhook trigger stopped');
|
|
24
|
+
subscriber.complete();
|
|
25
|
+
}
|
|
26
|
+
signal.addEventListener('abort', cleanup, { once: true });
|
|
27
|
+
let consecutiveErrors = 0;
|
|
28
|
+
const maxConsecutiveErrors = 5;
|
|
29
|
+
(async () => {
|
|
30
|
+
while (true) {
|
|
31
|
+
if (signal.aborted) {
|
|
32
|
+
cleanup();
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (consecutiveErrors >= maxConsecutiveErrors) {
|
|
36
|
+
ctx.log.error('reached too many consecutive errors stopping trigger', {
|
|
37
|
+
'triggerId': trigger.id,
|
|
38
|
+
});
|
|
39
|
+
cleanup();
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
// Right now the API itself will hang for a period of time if no workflows are available.
|
|
44
|
+
// so we don't need to add a delay here.
|
|
45
|
+
const wfs = await ctx.queueProvider.fetchWorkflows({
|
|
46
|
+
group: trigger.id,
|
|
47
|
+
ttl: trigger.options.ttl,
|
|
48
|
+
limit: trigger.options.limit,
|
|
49
|
+
});
|
|
50
|
+
if (!wfs) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
for (const wf of wfs.workflows) {
|
|
54
|
+
if (wf.id &&
|
|
55
|
+
wf.attempt !== undefined &&
|
|
56
|
+
trigger.options.maxAttempts &&
|
|
57
|
+
wf.attempt > trigger.options.maxAttempts) {
|
|
58
|
+
ctx.log.error('Workflow exceeded max attempts failing', {
|
|
59
|
+
workflowId: wf.id,
|
|
60
|
+
attempts: wf.attempt,
|
|
61
|
+
});
|
|
62
|
+
await ctx.queueProvider.complete({
|
|
63
|
+
id: wf.id,
|
|
64
|
+
output: wf.output,
|
|
65
|
+
status: 'failed',
|
|
66
|
+
});
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
const payload = wf.payload ? atob(wf.payload) : '{}';
|
|
70
|
+
const data = JSON.parse(payload);
|
|
71
|
+
const activation = ObservableCompiler_js_1.VanillaActivation;
|
|
72
|
+
const newContext = ctx.contextProvider.create(data, {
|
|
73
|
+
activation: activation,
|
|
74
|
+
workflowId: wf.id,
|
|
75
|
+
});
|
|
76
|
+
consecutiveErrors = 0;
|
|
77
|
+
subscriber.next(newContext);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
ctx.log.error('Error fetching workflows', { error });
|
|
82
|
+
consecutiveErrors++;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})();
|
|
86
|
+
return () => {
|
|
87
|
+
signal.removeEventListener('abort', cleanup);
|
|
88
|
+
ctx.log.debug('durable workflow cleanup');
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
exports.durableWorkflowCompiler = {
|
|
93
|
+
ctor: DurableTrigger_js_1.DurableWorkflowTrigger,
|
|
94
|
+
compile: compileDurableWorkflow,
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fn.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/fn.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAkCnE,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAG/D,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.fnCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const FnTask_js_1 = require("../../../dsl/tasks/FnTask.js");
|
|
18
|
+
function compileFn(compilerCtx, task) {
|
|
19
|
+
return (src) => src.pipe((0, rxjs_1.tap)({
|
|
20
|
+
complete: () => compilerCtx.log.debug('fn.complete'),
|
|
21
|
+
}), (0, rxjs_1.mergeMap)(async (ctx) => {
|
|
22
|
+
return await compilerCtx.tracer.startActiveSpan(`fn-${task.id}`, async (span) => {
|
|
23
|
+
span.setAttribute('task.id', task.id);
|
|
24
|
+
span.setAttribute('execution.id', ctx.executionId);
|
|
25
|
+
try {
|
|
26
|
+
if (typeof ctx.idx === 'number') {
|
|
27
|
+
return ctx.withData(await task._fn(ctx, ctx.idx));
|
|
28
|
+
}
|
|
29
|
+
return ctx.withData(await task._fn(ctx));
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
span.end();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
exports.fnCompiler = {
|
|
38
|
+
ctor: FnTask_js_1.FnTask,
|
|
39
|
+
compile: compileFn,
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/http.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAmB,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAwDnE,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAG5E,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.httpCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const operators_1 = require("rxjs/operators");
|
|
18
|
+
const HttpTask_js_1 = require("../../../dsl/tasks/HttpTask.js");
|
|
19
|
+
const VanillaConnectionFactory_js_1 = require("../../../connection/VanillaConnectionFactory.js");
|
|
20
|
+
function compileHttp(compilerCtx, task) {
|
|
21
|
+
const fetchFactory = new VanillaConnectionFactory_js_1.VanillaFetchFactory();
|
|
22
|
+
async function http(ctx) {
|
|
23
|
+
const fetch = await fetchFactory.fetcher(ctx);
|
|
24
|
+
const httpContext = new HttpTask_js_1.HttpContextImpl(ctx, {}, fetch, 'unavailable with VanillaInterpreter');
|
|
25
|
+
const result = await task.fn(httpContext);
|
|
26
|
+
return ctx.withData(result);
|
|
27
|
+
}
|
|
28
|
+
return (src) => src.pipe((0, operators_1.tap)({
|
|
29
|
+
complete: () => compilerCtx.log.debug('http.complete'),
|
|
30
|
+
}), (0, rxjs_1.mergeMap)((ctx) => {
|
|
31
|
+
return compilerCtx.tracer.startActiveSpan(`http-${task.id}`, async (span) => {
|
|
32
|
+
span.setAttribute('task.id', task.id);
|
|
33
|
+
span.setAttribute('task.type', 'http');
|
|
34
|
+
span.setAttribute('execution.id', ctx.executionId);
|
|
35
|
+
span.setAttribute('connection.name', task.opts.connection);
|
|
36
|
+
try {
|
|
37
|
+
return await http(ctx);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
if (error instanceof Error) {
|
|
41
|
+
span.recordException(error);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
span.recordException(new Error(String(error)));
|
|
45
|
+
}
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
finally {
|
|
49
|
+
span.end();
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
exports.httpCompiler = {
|
|
55
|
+
ctor: HttpTask_js_1.HttpTaskImpl,
|
|
56
|
+
compile: compileHttp,
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/mod.ts"],"names":[],"mappings":"AAaA,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallel.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/parallel.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAsCnE,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAGrF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.parallelCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const ParallelTask_js_1 = require("../../../dsl/tasks/ParallelTask.js");
|
|
18
|
+
function compileParallel(ctx, task) {
|
|
19
|
+
const baseOperator = ctx.compiler.compileTask(ctx, task._base);
|
|
20
|
+
const eachOperator = ctx.compiler.compileTask(ctx, task._each);
|
|
21
|
+
return (src) => src.pipe(baseOperator, (0, rxjs_1.mergeMap)((ctx) => {
|
|
22
|
+
return (0, rxjs_1.from)(ctx.data).pipe((0, rxjs_1.map)((data, idx) => ctx.withData(data).setIndex(idx)),
|
|
23
|
+
// Process items in parallel using mergeMap
|
|
24
|
+
(0, rxjs_1.mergeMap)((item) => eachOperator((0, rxjs_1.of)(item)).pipe((0, rxjs_1.map)((result) => result.setIndex(item.idx)))), (0, rxjs_1.toArray)(), (0, rxjs_1.map)((results) => {
|
|
25
|
+
// Sort by original index to maintain order
|
|
26
|
+
results.sort((a, b) => a.idx - b.idx);
|
|
27
|
+
return ctx.withData(results.map((r) => r.data));
|
|
28
|
+
}));
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
exports.parallelCompiler = {
|
|
32
|
+
ctor: ParallelTask_js_1.ParallelTask,
|
|
33
|
+
compile: compileParallel,
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/schedule.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEzF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA+E7C,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,YAAY,EAAE,eAAe,CAG3E,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.scheduleCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const constants_js_1 = require("../../../dsl/http/versori/constants.js");
|
|
18
|
+
const ScheduleTrigger_js_1 = require("../../../dsl/triggers/ScheduleTrigger.js");
|
|
19
|
+
const ObservableCompiler_js_1 = require("../ObservableCompiler.js");
|
|
20
|
+
function compileSchedule(ctx, trigger, signal) {
|
|
21
|
+
return new rxjs_1.Observable((subscriber) => {
|
|
22
|
+
// Add HTTP endpoint for manual triggering
|
|
23
|
+
if (!ctx.cronRouter) {
|
|
24
|
+
throw new Error('Router not available in compiler context');
|
|
25
|
+
}
|
|
26
|
+
const projectId = Deno.env.get(constants_js_1.envVarProjectId) || 'example-service';
|
|
27
|
+
const environmentId = Deno.env.get(constants_js_1.envVarEnvId) || 'example-environment';
|
|
28
|
+
const environmentName = Deno.env.get(constants_js_1.envVarEnvironmentName) || 'example-environment';
|
|
29
|
+
const orgId = Deno.env.get(constants_js_1.envVarOrgId) || 'example-org';
|
|
30
|
+
ctx.cronRegistry.set(trigger.id, trigger.schedule);
|
|
31
|
+
function handleSchedule(_req, res, span) {
|
|
32
|
+
try {
|
|
33
|
+
const executionCtx = ctx.contextProvider.create(ObservableCompiler_js_1.VanillaActivation, {});
|
|
34
|
+
span.setAttribute('execution.id', executionCtx.executionId);
|
|
35
|
+
try {
|
|
36
|
+
subscriber.next(executionCtx);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
executionCtx.log.error('execution error inside schedule', { error });
|
|
40
|
+
}
|
|
41
|
+
res.status(200).json({
|
|
42
|
+
status: 'triggered',
|
|
43
|
+
executionId: executionCtx.executionId,
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
ctx.log.error('execution error inside schedule', { error });
|
|
49
|
+
res.status(500).json({ error: 'Failed to trigger schedule' });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
ctx.cronRouter.post(`/cron/${trigger.id}`, async (req, res) => {
|
|
53
|
+
await ctx.tracer.startActiveSpan(`schedule-${trigger.id}`, async (span) => {
|
|
54
|
+
span.setAttribute('task.id', trigger.id);
|
|
55
|
+
span.setAttribute('task.type', 'schedule');
|
|
56
|
+
span.setAttribute('schedule', trigger.schedule);
|
|
57
|
+
span.setAttribute('project.id', projectId);
|
|
58
|
+
span.setAttribute('environment.id', environmentId);
|
|
59
|
+
span.setAttribute('environment.name', environmentName);
|
|
60
|
+
span.setAttribute('org.id', orgId);
|
|
61
|
+
await handleSchedule(req, res, span);
|
|
62
|
+
span.end();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
function cleanup() {
|
|
66
|
+
ctx.log.debug('scheduler trigger stopped');
|
|
67
|
+
subscriber.complete();
|
|
68
|
+
}
|
|
69
|
+
signal.addEventListener('abort', cleanup, { once: true });
|
|
70
|
+
return () => {
|
|
71
|
+
signal.removeEventListener('abort', cleanup);
|
|
72
|
+
ctx.log.debug('scheduler execution unsubscribed');
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
exports.scheduleCompiler = {
|
|
77
|
+
ctor: ScheduleTrigger_js_1.ScheduleTrigger,
|
|
78
|
+
compile: compileSchedule,
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serial.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/serial.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AA6BnE,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAGjF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.serialCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const SerialTask_js_1 = require("../../../dsl/tasks/SerialTask.js");
|
|
18
|
+
function compileSerial(ctx, task) {
|
|
19
|
+
const baseOperator = ctx.compiler.compileTask(ctx, task._base);
|
|
20
|
+
const eachOperator = ctx.compiler.compileTask(ctx, task._each);
|
|
21
|
+
return (src) => src.pipe((0, rxjs_1.tap)({
|
|
22
|
+
complete: () => ctx.log.debug('serial.complete'),
|
|
23
|
+
}), baseOperator, (0, rxjs_1.mergeMap)((ctx) => {
|
|
24
|
+
const tasks = ctx.data.map((d, idx) => eachOperator((0, rxjs_1.of)(ctx.withData(d).setIndex(idx))));
|
|
25
|
+
return (0, rxjs_1.concat)(...tasks).pipe((0, rxjs_1.map)((result) => result.data), (0, rxjs_1.toArray)(), (0, rxjs_1.map)((results) => ctx.withData(results)));
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
exports.serialCompiler = {
|
|
29
|
+
ctor: SerialTask_js_1.SerialTask,
|
|
30
|
+
compile: compileSerial,
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable, OperatorFunction } from 'rxjs';
|
|
2
|
+
import { Task } from '../../../dsl/Task.js';
|
|
3
|
+
import { Trigger } from '../../../dsl/Trigger.js';
|
|
4
|
+
import { VanillaCompilerContext } from '../ObservableCompiler.js';
|
|
5
|
+
import { VanillaContext } from '../../../context/VanillaContext.js';
|
|
6
|
+
export interface TaskCompiler<In, Out, T extends Task<In, Out>> {
|
|
7
|
+
ctor: new (...args: any[]) => T;
|
|
8
|
+
compile: <Index = void>(ctx: VanillaCompilerContext, task: T) => ContextOperatorFunction<In, Out, Index>;
|
|
9
|
+
}
|
|
10
|
+
export interface TriggerCompiler<Out, T extends Trigger<Out>> {
|
|
11
|
+
compile: (ctx: VanillaCompilerContext, trigger: T, signal: AbortSignal) => Observable<VanillaContext<Out, void>>;
|
|
12
|
+
ctor: new (...args: any[]) => T;
|
|
13
|
+
}
|
|
14
|
+
export type ContextOperatorFunction<In, Out, Index = void> = OperatorFunction<VanillaContext<In, Index>, VanillaContext<Out, Index>>;
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,MAAM,WAAW,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC;IAC1D,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,KAAK,GAAG,IAAI,EAClB,GAAG,EAAE,sBAAsB,EAC3B,IAAI,EAAE,CAAC,KACN,uBAAuB,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,eAAe,CAAC,GAAG,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC;IACxD,OAAO,EAAE,CACL,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,WAAW,KAClB,UAAU,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;IAC3C,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,IAAI,gBAAgB,CACzE,cAAc,CAAC,EAAE,EAAE,KAAK,CAAC,EACzB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAC7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpack.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/unpack.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAgCnE,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAG5E,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025 Versori Group Inc
|
|
4
|
+
*
|
|
5
|
+
* Use of this software is governed by the Business Source License 1.1
|
|
6
|
+
* included in the LICENSE file at the root of this repository.
|
|
7
|
+
*
|
|
8
|
+
* Change Date: 2029-01-01
|
|
9
|
+
* Change License: Apache License, Version 2.0
|
|
10
|
+
*
|
|
11
|
+
* As of the Change Date, in accordance with the Business Source License,
|
|
12
|
+
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.unpackCompiler = void 0;
|
|
16
|
+
const rxjs_1 = require("rxjs");
|
|
17
|
+
const UnpackTask_js_1 = require("../../../dsl/tasks/UnpackTask.js");
|
|
18
|
+
function ensureArray(data) {
|
|
19
|
+
if (Array.isArray(data)) {
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
return [data];
|
|
23
|
+
}
|
|
24
|
+
function compileUnpack(ctx, task) {
|
|
25
|
+
const baseOperator = ctx.compiler.compileTask(ctx, task._base);
|
|
26
|
+
const mapper = task._mapper;
|
|
27
|
+
return (src) => src.pipe((0, rxjs_1.tap)({
|
|
28
|
+
complete: () => ctx.log.debug('unpack.complete'),
|
|
29
|
+
}), baseOperator, (0, rxjs_1.map)((ctx) => {
|
|
30
|
+
const result = mapper?.(ctx.data) ?? ctx.data;
|
|
31
|
+
return ctx.withData(ensureArray(result));
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
exports.unpackCompiler = {
|
|
35
|
+
ctor: UnpackTask_js_1.UnpackTask,
|
|
36
|
+
compile: compileUnpack,
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/vanilla/compilers/webhook.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAmE7C,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,EAAE,cAAc,CA6QxE,CAAC"}
|