@versori/run 0.6.0-alpha.1 → 0.6.1
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/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.js +2 -2
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/src/connection/internal/CredentialHolder.js +1 -1
- package/esm/src/connection/internal/FetchBuilder.d.ts +2 -9
- package/esm/src/connection/internal/FetchBuilder.d.ts.map +1 -1
- package/esm/src/connection/internal/FetchBuilder.js +3 -124
- package/esm/src/context/Context.d.ts +0 -5
- package/esm/src/context/Context.d.ts.map +1 -1
- package/esm/src/context/Context.js +3 -6
- package/esm/src/context/VanillaContext.d.ts.map +1 -1
- package/esm/src/context/VanillaContext.js +3 -0
- package/esm/src/context/WorkflowClient.d.ts +1 -0
- package/esm/src/context/WorkflowClient.d.ts.map +1 -1
- package/esm/src/context/WorkflowClient.js +3 -0
- package/esm/src/dsl/Workflow.d.ts.map +1 -1
- package/esm/src/dsl/Workflow.js +0 -2
- package/esm/src/dsl/http/types.d.ts +0 -2
- 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 +1 -1
- package/esm/src/dsl/http/versori/constants.d.ts +21 -0
- package/esm/src/dsl/http/versori/constants.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/constants.js +38 -0
- package/esm/src/dsl/http/versori/cronapi.d.ts +3 -2
- package/esm/src/dsl/http/versori/cronapi.d.ts.map +1 -1
- package/esm/src/dsl/http/versori/cronapi.js +15 -14
- package/esm/src/dsl/http/versori/kvapi/core/OpenAPI.js +1 -1
- package/esm/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -1
- package/esm/src/dsl/triggers/WebhookTrigger.js +1 -3
- package/esm/src/internal/constants.d.ts +0 -3
- package/esm/src/internal/constants.d.ts.map +1 -1
- package/esm/src/internal/constants.js +0 -3
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts +2 -9
- package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/durable/DurableInterpreter.js +13 -57
- package/esm/src/interpreter/durable/ObservableCompiler.d.ts +1 -6
- package/esm/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
- package/esm/src/interpreter/durable/Queue.d.ts +3 -0
- package/esm/src/interpreter/durable/Queue.d.ts.map +1 -1
- package/esm/src/interpreter/durable/Queue.js +1 -1
- package/esm/src/interpreter/durable/compilers/catch.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/catch.js +1 -3
- package/esm/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/durableworkflow.js +21 -6
- package/esm/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/fn.js +6 -29
- package/esm/src/interpreter/durable/compilers/http.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/http.js +11 -45
- package/esm/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/schedule.js +3 -4
- package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/durable/compilers/webhook.js +0 -2
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +1 -8
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +12 -56
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts +1 -6
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/catch.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/catch.js +0 -5
- package/esm/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/fn.js +18 -29
- package/esm/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/http.js +10 -44
- package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/schedule.js +4 -61
- package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/webhook.js +3 -9
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts +0 -1
- package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/vanilla/VanillaInterpreter.js +6 -30
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -1
- package/esm/src/interpreter/vanilla/compilers/durableworkflow.js +12 -2
- package/esm/src/interpreter/vanilla/compilers/schedule.js +1 -1
- package/esm/src/issues/Issues.d.ts.map +1 -1
- package/esm/src/issues/Issues.js +1 -6
- package/esm/src/kv/KeyValue.d.ts +7 -3
- package/esm/src/kv/KeyValue.d.ts.map +1 -1
- package/esm/src/kv/fingerprintExternalUserId.d.ts +6 -0
- package/esm/src/kv/fingerprintExternalUserId.d.ts.map +1 -0
- package/esm/src/kv/fingerprintExternalUserId.js +20 -0
- package/esm/src/kv/memory/MemoryKeyValueProvider.d.ts +4 -0
- package/esm/src/kv/memory/MemoryKeyValueProvider.d.ts.map +1 -1
- package/esm/src/kv/memory/MemoryKeyValueProvider.js +50 -0
- package/esm/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
- package/esm/src/kv/nats/NatsKeyValueProvider.js +14 -0
- package/esm/src/kv/sdk/SDKKeyValueProvider.d.ts.map +1 -1
- package/esm/src/kv/sdk/SDKKeyValueProvider.js +12 -0
- package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/esm/src/observability/mod.d.ts +1 -0
- package/esm/src/observability/mod.d.ts.map +1 -1
- package/esm/src/observability/mod.js +1 -0
- package/esm/src/observability/tracePropagation.d.ts +23 -0
- package/esm/src/observability/tracePropagation.d.ts.map +1 -0
- package/esm/src/observability/tracePropagation.js +39 -0
- package/package.json +1 -3
- package/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.js +2 -2
- package/script/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/script/src/connection/internal/CredentialHolder.js +1 -1
- package/script/src/connection/internal/FetchBuilder.d.ts +2 -9
- package/script/src/connection/internal/FetchBuilder.d.ts.map +1 -1
- package/script/src/connection/internal/FetchBuilder.js +3 -147
- package/script/src/context/Context.d.ts +0 -5
- package/script/src/context/Context.d.ts.map +1 -1
- package/script/src/context/Context.js +3 -6
- package/script/src/context/VanillaContext.d.ts.map +1 -1
- package/script/src/context/VanillaContext.js +3 -0
- package/script/src/context/WorkflowClient.d.ts +1 -0
- package/script/src/context/WorkflowClient.d.ts.map +1 -1
- package/script/src/context/WorkflowClient.js +3 -0
- package/script/src/dsl/Workflow.d.ts.map +1 -1
- package/script/src/dsl/Workflow.js +0 -2
- package/script/src/dsl/http/types.d.ts +0 -2
- 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 +1 -1
- package/script/src/dsl/http/versori/constants.d.ts +21 -0
- package/script/src/dsl/http/versori/constants.d.ts.map +1 -0
- package/script/src/dsl/http/versori/constants.js +41 -0
- package/script/src/dsl/http/versori/cronapi.d.ts +3 -2
- package/script/src/dsl/http/versori/cronapi.d.ts.map +1 -1
- package/script/src/dsl/http/versori/cronapi.js +15 -14
- package/script/src/dsl/http/versori/kvapi/core/OpenAPI.js +1 -1
- package/script/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -1
- package/script/src/dsl/triggers/WebhookTrigger.js +1 -3
- package/script/src/internal/constants.d.ts +0 -3
- package/script/src/internal/constants.d.ts.map +1 -1
- package/script/src/internal/constants.js +1 -4
- package/script/src/interpreter/durable/DurableInterpreter.d.ts +2 -9
- package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/durable/DurableInterpreter.js +18 -62
- package/script/src/interpreter/durable/ObservableCompiler.d.ts +1 -6
- package/script/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
- package/script/src/interpreter/durable/Queue.d.ts +3 -0
- package/script/src/interpreter/durable/Queue.d.ts.map +1 -1
- package/script/src/interpreter/durable/Queue.js +1 -1
- package/script/src/interpreter/durable/compilers/catch.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/catch.js +1 -3
- package/script/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/durableworkflow.js +21 -6
- package/script/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/fn.js +5 -28
- package/script/src/interpreter/durable/compilers/http.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/http.js +11 -45
- package/script/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/schedule.js +3 -4
- package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/durable/compilers/webhook.js +0 -2
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +1 -8
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +11 -55
- package/script/src/interpreter/memory/ObservableCompiler.d.ts +1 -6
- package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/catch.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/catch.js +0 -5
- package/script/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/fn.js +17 -28
- package/script/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/http.js +10 -44
- package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/schedule.js +4 -61
- package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/webhook.js +3 -9
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts +0 -1
- package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/vanilla/VanillaInterpreter.js +6 -30
- package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -1
- package/script/src/interpreter/vanilla/compilers/durableworkflow.js +12 -2
- package/script/src/interpreter/vanilla/compilers/schedule.js +1 -1
- package/script/src/issues/Issues.d.ts.map +1 -1
- package/script/src/issues/Issues.js +1 -6
- package/script/src/kv/KeyValue.d.ts +7 -3
- package/script/src/kv/KeyValue.d.ts.map +1 -1
- package/script/src/kv/fingerprintExternalUserId.d.ts +6 -0
- package/script/src/kv/fingerprintExternalUserId.d.ts.map +1 -0
- package/script/src/kv/fingerprintExternalUserId.js +23 -0
- package/script/src/kv/memory/MemoryKeyValueProvider.d.ts +4 -0
- package/script/src/kv/memory/MemoryKeyValueProvider.d.ts.map +1 -1
- package/script/src/kv/memory/MemoryKeyValueProvider.js +50 -0
- package/script/src/kv/nats/NatsKeyValueProvider.d.ts.map +1 -1
- package/script/src/kv/nats/NatsKeyValueProvider.js +14 -0
- package/script/src/kv/sdk/SDKKeyValueProvider.d.ts.map +1 -1
- package/script/src/kv/sdk/SDKKeyValueProvider.js +12 -0
- package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
- package/script/src/observability/mod.d.ts +1 -0
- package/script/src/observability/mod.d.ts.map +1 -1
- package/script/src/observability/mod.js +1 -0
- package/script/src/observability/tracePropagation.d.ts +23 -0
- package/script/src/observability/tracePropagation.d.ts.map +1 -0
- package/script/src/observability/tracePropagation.js +46 -0
- package/esm/deps/jsr.io/@std/fmt/1.0.9/colors.d.ts.map +0 -1
- package/esm/src/internal/supervisor.d.ts +0 -23
- package/esm/src/internal/supervisor.d.ts.map +0 -1
- package/esm/src/internal/supervisor.js +0 -267
- package/script/deps/jsr.io/@std/fmt/1.0.9/colors.d.ts.map +0 -1
- package/script/src/internal/supervisor.d.ts +0 -23
- package/script/src/internal/supervisor.d.ts.map +0 -1
- package/script/src/internal/supervisor.js +0 -275
- /package/esm/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,MAAM,cAAc,GAAG,CACzB,UAAU,EAAE,mBAAmB,EAC/B,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB,MAAM,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAChC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,KAAK,GAAG,SAAS,CAAC,CAAC;IAC5D,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IACzE,WAAW,IAAI,mBAAmB,CAAC;IACnC,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,CAAC;CACxD;AAGD,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,mBAAmB,GAChC,OAAO,KAAK,CAId;AAED,MAAM,WAAW,YAAY;IACzB,aAA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a,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,YAAY,GAAG,aAAa,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configloader.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/configloader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configloader.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/configloader.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,YAAY,EAA+B,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIlG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAUrD;AAED,qBAAa,mBAAoB,YAAW,YAAY;IACpD,OAAO,CAAC,UAAU,CAAmB;gBAEzB,GAAG,EAAE,gBAAgB;IAIjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB;IAShD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAO/C,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAczC,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAa9C"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.VersoriConfigReader = void 0;
|
|
16
16
|
exports.LoadConfigFromFile = LoadConfigFromFile;
|
|
17
|
-
const constants_js_1 = require("
|
|
17
|
+
const constants_js_1 = require("./constants.js");
|
|
18
18
|
//TODO(@teo): remove this file, it is implemented in the src/config directory now.
|
|
19
19
|
/**
|
|
20
20
|
* Loads the Versori SDK configuration from a JSON file.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const envVarOrgId = "RUN_ORGANISATION_ID";
|
|
2
|
+
export declare const envVarEnvId = "RUN_ENVIRONMENT_ID";
|
|
3
|
+
export declare const envVarEnvironmentName = "RUN_ENVIRONMENT";
|
|
4
|
+
export declare const envVarProjectId = "RUN_SERVICE_ID";
|
|
5
|
+
export declare const envVarOrgSlug = "RUN_ORGANISATION_SLUG";
|
|
6
|
+
export declare const envVarPlatformApiBaseURL = "RUN_PLATFORM_API_INTERNAL_URL";
|
|
7
|
+
export declare const envVarCronApiBaseURL = "RUN_CRON_API_INTERNAL_URL";
|
|
8
|
+
export declare const envVarSDKApiBaseURL = "RUN_SDK_API_URL";
|
|
9
|
+
export declare const envVarSelfRefURL = "RUN_SELF_REF_URL";
|
|
10
|
+
export declare const envVarCredsBaseURL = "RUN_CREDENTIALS_SERVICE_INTERNAL_URL";
|
|
11
|
+
export declare const envVarOtelTracesURL = "RUN_OTEL_TRACES_URL";
|
|
12
|
+
export declare const envVarVersion = "RUN_SERVICE_VERSION";
|
|
13
|
+
export declare const envVarConfigFile = "RUN_CONFIG_FILE";
|
|
14
|
+
export declare const envVarClientId = "RUN_CLIENT_ID";
|
|
15
|
+
export declare const envVarClientSecret = "RUN_CLIENT_SECRET";
|
|
16
|
+
export declare const envVarTokenEndpoint = "RUN_TOKEN_ENDPOINT";
|
|
17
|
+
export declare const envVarInternalToken = "RUN_INTERNAL_TOKEN";
|
|
18
|
+
export declare const envVarJwt = "RUN_VERSORI_JWT";
|
|
19
|
+
export declare const envVarLocalRun = "RUN_LOCAL";
|
|
20
|
+
export declare const cronPort = 3001;
|
|
21
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/constants.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AACzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAGlD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,SAAS,oBAAoB,CAAC;AAG3C,eAAO,MAAM,cAAc,cAAc,CAAC;AAG1C,eAAO,MAAM,QAAQ,OAAO,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.cronPort = exports.envVarLocalRun = exports.envVarJwt = exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.envVarVersion = exports.envVarOtelTracesURL = exports.envVarCredsBaseURL = exports.envVarSelfRefURL = exports.envVarSDKApiBaseURL = exports.envVarCronApiBaseURL = exports.envVarPlatformApiBaseURL = exports.envVarOrgSlug = exports.envVarProjectId = exports.envVarEnvironmentName = exports.envVarEnvId = exports.envVarOrgId = void 0;
|
|
16
|
+
//TODO(@teo): remove this file, it is implemented in the src/internal/constants.ts directory now.
|
|
17
|
+
// This file contains constants used in the Versori DSL HTTP client.
|
|
18
|
+
exports.envVarOrgId = 'RUN_ORGANISATION_ID';
|
|
19
|
+
exports.envVarEnvId = 'RUN_ENVIRONMENT_ID';
|
|
20
|
+
exports.envVarEnvironmentName = 'RUN_ENVIRONMENT';
|
|
21
|
+
exports.envVarProjectId = 'RUN_SERVICE_ID';
|
|
22
|
+
exports.envVarOrgSlug = 'RUN_ORGANISATION_SLUG';
|
|
23
|
+
exports.envVarPlatformApiBaseURL = 'RUN_PLATFORM_API_INTERNAL_URL';
|
|
24
|
+
exports.envVarCronApiBaseURL = 'RUN_CRON_API_INTERNAL_URL';
|
|
25
|
+
exports.envVarSDKApiBaseURL = 'RUN_SDK_API_URL';
|
|
26
|
+
exports.envVarSelfRefURL = 'RUN_SELF_REF_URL';
|
|
27
|
+
exports.envVarCredsBaseURL = 'RUN_CREDENTIALS_SERVICE_INTERNAL_URL';
|
|
28
|
+
exports.envVarOtelTracesURL = 'RUN_OTEL_TRACES_URL';
|
|
29
|
+
exports.envVarVersion = 'RUN_SERVICE_VERSION';
|
|
30
|
+
// The following environment variables are used for the config file
|
|
31
|
+
exports.envVarConfigFile = 'RUN_CONFIG_FILE';
|
|
32
|
+
// The following environment variables are used for internal authentication
|
|
33
|
+
exports.envVarClientId = 'RUN_CLIENT_ID';
|
|
34
|
+
exports.envVarClientSecret = 'RUN_CLIENT_SECRET';
|
|
35
|
+
exports.envVarTokenEndpoint = 'RUN_TOKEN_ENDPOINT';
|
|
36
|
+
exports.envVarInternalToken = 'RUN_INTERNAL_TOKEN';
|
|
37
|
+
exports.envVarJwt = 'RUN_VERSORI_JWT';
|
|
38
|
+
// The following are for running locally
|
|
39
|
+
exports.envVarLocalRun = 'RUN_LOCAL';
|
|
40
|
+
// please no changerino
|
|
41
|
+
exports.cronPort = 3001; // The port on which the cron API communicates with the service
|
|
@@ -5,10 +5,11 @@ type Cron = {
|
|
|
5
5
|
url: string;
|
|
6
6
|
};
|
|
7
7
|
export declare class CronAPIClient implements CronProvider {
|
|
8
|
-
private baseUrl
|
|
8
|
+
private baseUrl;
|
|
9
9
|
private envId;
|
|
10
10
|
private integrationUrl;
|
|
11
|
-
|
|
11
|
+
private runLocal;
|
|
12
|
+
constructor(baseUrl: string, envId: string, integrationUrl: string);
|
|
12
13
|
static fromEnv(): CronAPIClient;
|
|
13
14
|
static addDefaultCronPort(url: string): string;
|
|
14
15
|
makeCronPath(name: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cronapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/cronapi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cronapi.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/cronapi.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAY3C,KAAK,IAAI,GAAG;IACR,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,aAAc,YAAW,YAAY;IAC9C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAU;gBAEd,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;IAOlE,MAAM,CAAC,OAAO,IAAI,aAAa;IAmB/B,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAU9C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAM5B,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB5D,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE;CAsB3B"}
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.CronAPIClient = void 0;
|
|
16
|
-
const constants_js_1 = require("
|
|
17
|
-
const supervisor_js_1 = require("../../../internal/supervisor.js");
|
|
16
|
+
const constants_js_1 = require("./constants.js");
|
|
18
17
|
class CronAPIClient {
|
|
19
|
-
constructor(envId, integrationUrl
|
|
18
|
+
constructor(baseUrl, envId, integrationUrl) {
|
|
20
19
|
Object.defineProperty(this, "baseUrl", {
|
|
21
20
|
enumerable: true,
|
|
22
21
|
configurable: true,
|
|
@@ -35,22 +34,30 @@ class CronAPIClient {
|
|
|
35
34
|
writable: true,
|
|
36
35
|
value: void 0
|
|
37
36
|
});
|
|
37
|
+
Object.defineProperty(this, "runLocal", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: void 0
|
|
42
|
+
});
|
|
38
43
|
this.baseUrl = baseUrl;
|
|
39
44
|
this.envId = envId;
|
|
40
45
|
this.integrationUrl = integrationUrl;
|
|
46
|
+
this.runLocal = Deno.env.get(constants_js_1.envVarLocalRun) === 'true';
|
|
41
47
|
}
|
|
42
48
|
static fromEnv() {
|
|
43
|
-
const baseUrl = Deno.env.get(constants_js_1.envVarCronApiBaseURL)
|
|
49
|
+
const baseUrl = Deno.env.get(constants_js_1.envVarCronApiBaseURL) ||
|
|
50
|
+
'http://cron-api.platform.svc.cluster.local';
|
|
44
51
|
const envId = Deno.env.get(constants_js_1.envVarEnvId);
|
|
45
52
|
const projectId = Deno.env.get(constants_js_1.envVarProjectId);
|
|
46
53
|
const orgSlug = Deno.env.get(constants_js_1.envVarOrgSlug);
|
|
47
54
|
const envName = Deno.env.get(constants_js_1.envVarEnvironmentName);
|
|
48
|
-
if (!envId || !projectId || !orgSlug || !envName) {
|
|
55
|
+
if (!baseUrl || !envId || !projectId || !orgSlug || !envName) {
|
|
49
56
|
throw new Error('Missing required environment variables');
|
|
50
57
|
}
|
|
51
58
|
const integrationUrl = Deno.env.get(constants_js_1.envVarSelfRefURL) ||
|
|
52
59
|
`http://svc-${projectId.toLowerCase()}-${envName.toLowerCase()}.sb-${orgSlug.toLowerCase()}.svc.cluster.local:${constants_js_1.cronPort}`;
|
|
53
|
-
return new CronAPIClient(envId, this.addDefaultCronPort(integrationUrl)
|
|
60
|
+
return new CronAPIClient(baseUrl, envId, this.addDefaultCronPort(integrationUrl));
|
|
54
61
|
}
|
|
55
62
|
// Check if the URL has a port, if not, add the default cron port.
|
|
56
63
|
static addDefaultCronPort(url) {
|
|
@@ -71,13 +78,7 @@ class CronAPIClient {
|
|
|
71
78
|
schedule,
|
|
72
79
|
url: this.makeCronPath(name),
|
|
73
80
|
}));
|
|
74
|
-
if (
|
|
75
|
-
// if we are in supervised mode we don't want to do run crons automatically
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (!this.baseUrl) {
|
|
79
|
-
// we are no in supervised mode and there is no base URL
|
|
80
|
-
// run for local dev
|
|
81
|
+
if (this.runLocal) {
|
|
81
82
|
this.runLocalFn(cronsArray);
|
|
82
83
|
return;
|
|
83
84
|
}
|
|
@@ -96,7 +97,7 @@ class CronAPIClient {
|
|
|
96
97
|
if (crons.length === 0) {
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
|
-
const cronPort = Deno.env.get(
|
|
100
|
+
const cronPort = Deno.env.get('CRON_PORT') || '3001';
|
|
100
101
|
console.log('----------------------------------------');
|
|
101
102
|
console.log('Running in local mode, your scheduler workflows will not trigger automatically.');
|
|
102
103
|
console.log('Instead you can trigger them by sending a request to the following URLs:');
|
|
@@ -16,7 +16,7 @@ exports.OpenAPI = void 0;
|
|
|
16
16
|
/* istanbul ignore file */
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
const constants_js_1 = require("
|
|
19
|
+
const constants_js_1 = require("../../constants.js");
|
|
20
20
|
exports.OpenAPI = {
|
|
21
21
|
BASE: Deno.env.get(constants_js_1.envVarSDKApiBaseURL) || 'http://localhost:8902',
|
|
22
22
|
VERSION: '1.0.0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookTrigger.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/triggers/WebhookTrigger.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IAC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EpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAElF;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACnC,CAAC;AAEF,qBAAa,cAAe,YAAW,OAAO,CAAC,WAAW,CAAC;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,cAAc,CAAC;IAExB,CAAC,WAAW,CAAC,EAAE,MAAM,CAAa;gBAEtB,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB;IAKpD,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;CAG1D;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAElF"}
|
|
@@ -40,11 +40,9 @@ class WebhookTrigger {
|
|
|
40
40
|
});
|
|
41
41
|
this.id = id;
|
|
42
42
|
this.options = options;
|
|
43
|
-
this.then = this.then.bind(this);
|
|
44
43
|
}
|
|
45
44
|
then(task) {
|
|
46
|
-
|
|
47
|
-
return new Workflow_js_1.WorkflowImpl(this, actualTask);
|
|
45
|
+
return new Workflow_js_1.WorkflowImpl(this, (0, ensureTask_js_1.ensureTask)(task));
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
exports.WebhookTrigger = WebhookTrigger;
|
|
@@ -10,9 +10,6 @@ export declare const envVarSelfRefURL = "RUN_SELF_REF_URL";
|
|
|
10
10
|
export declare const envVarCredsBaseURL = "RUN_CREDENTIALS_SERVICE_INTERNAL_URL";
|
|
11
11
|
export declare const envVarOtelTracesURL = "RUN_OTEL_TRACES_URL";
|
|
12
12
|
export declare const envVarVersion = "RUN_SERVICE_VERSION";
|
|
13
|
-
export declare const envReadyCheckURL = "READY_CHECK_URL";
|
|
14
|
-
export declare const envPort = "PORT";
|
|
15
|
-
export declare const envCronPort = "CRON_PORT";
|
|
16
13
|
export declare const envVarConfigFile = "RUN_CONFIG_FILE";
|
|
17
14
|
export declare const envVarClientId = "RUN_CLIENT_ID";
|
|
18
15
|
export declare const envVarClientSecret = "RUN_CLIENT_SECRET";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/src/internal/constants.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AACzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,aAAa,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/src/internal/constants.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,wBAAwB,kCAAkC,CAAC;AACxE,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AACzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAGlD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,SAAS,oBAAoB,CAAC;AAG3C,eAAO,MAAM,cAAc,cAAc,CAAC;AAG1C,eAAO,MAAM,QAAQ,OAAO,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* use of this software will be governed by the Apache License, Version 2.0.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.cronPort = exports.envVarLocalRun = exports.envVarJwt = exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.
|
|
15
|
+
exports.cronPort = exports.envVarLocalRun = exports.envVarJwt = exports.envVarInternalToken = exports.envVarTokenEndpoint = exports.envVarClientSecret = exports.envVarClientId = exports.envVarConfigFile = exports.envVarVersion = exports.envVarOtelTracesURL = exports.envVarCredsBaseURL = exports.envVarSelfRefURL = exports.envVarSDKApiBaseURL = exports.envVarCronApiBaseURL = exports.envVarPlatformApiBaseURL = exports.envVarOrgSlug = exports.envVarProjectId = exports.envVarEnvironmentName = exports.envVarEnvId = exports.envVarOrgId = void 0;
|
|
16
16
|
// This file contains constants used in the Versori DSL HTTP client.
|
|
17
17
|
exports.envVarOrgId = 'RUN_ORGANISATION_ID';
|
|
18
18
|
exports.envVarEnvId = 'RUN_ENVIRONMENT_ID';
|
|
@@ -26,9 +26,6 @@ exports.envVarSelfRefURL = 'RUN_SELF_REF_URL';
|
|
|
26
26
|
exports.envVarCredsBaseURL = 'RUN_CREDENTIALS_SERVICE_INTERNAL_URL';
|
|
27
27
|
exports.envVarOtelTracesURL = 'RUN_OTEL_TRACES_URL';
|
|
28
28
|
exports.envVarVersion = 'RUN_SERVICE_VERSION';
|
|
29
|
-
exports.envReadyCheckURL = 'READY_CHECK_URL';
|
|
30
|
-
exports.envPort = 'PORT';
|
|
31
|
-
exports.envCronPort = 'CRON_PORT';
|
|
32
29
|
// The following environment variables are used for the config file
|
|
33
30
|
exports.envVarConfigFile = 'RUN_CONFIG_FILE';
|
|
34
31
|
// The following environment variables are used for internal authentication
|
|
@@ -46,11 +46,6 @@ type Registration = {
|
|
|
46
46
|
sigintListener: () => void;
|
|
47
47
|
subscription?: Subscription;
|
|
48
48
|
};
|
|
49
|
-
type WebhookRegistry = Map<string, {
|
|
50
|
-
method: string;
|
|
51
|
-
path: string;
|
|
52
|
-
options: any;
|
|
53
|
-
}>;
|
|
54
49
|
/**
|
|
55
50
|
* DurableInterpreter is an interpreter for executing Versori workflows with support for durable, queue-based workflow
|
|
56
51
|
* execution. It supports all trigger types including the {@link workflow} trigger which allows workflows to be started
|
|
@@ -81,8 +76,7 @@ export declare class DurableInterpreter {
|
|
|
81
76
|
private readonly contextProvider;
|
|
82
77
|
private readonly webhookRouter;
|
|
83
78
|
private readonly cronRouter;
|
|
84
|
-
private cronRegistry;
|
|
85
|
-
private webhookRegistry;
|
|
79
|
+
private readonly cronRegistry;
|
|
86
80
|
private readonly platformApi;
|
|
87
81
|
private readonly cnxFetchFactory;
|
|
88
82
|
private readonly cronProvider;
|
|
@@ -96,8 +90,7 @@ export declare class DurableInterpreter {
|
|
|
96
90
|
private cronServer?;
|
|
97
91
|
private shutdownServer?;
|
|
98
92
|
private isShuttingDown;
|
|
99
|
-
|
|
100
|
-
constructor(log: Logger, compiler: ObservableCompiler, contextProvider: ContextProvider, webhookRouter: Router, cronRouter: Router, cronRegistry: Map<string, string>, webhookRegistry: WebhookRegistry, platformApi: PlatformApi, cnxFetchFactory: DirectConnectionFactory, cronProvider: CronProvider, tracer: Tracer, issue: IssueAPI, cfgReader: ConfigReader, queueProvider: QueueAPI, otelSDK?: NodeSDK | undefined);
|
|
93
|
+
constructor(log: Logger, compiler: ObservableCompiler, contextProvider: ContextProvider, webhookRouter: Router, cronRouter: Router, cronRegistry: Map<string, string>, platformApi: PlatformApi, cnxFetchFactory: DirectConnectionFactory, cronProvider: CronProvider, tracer: Tracer, issue: IssueAPI, cfgReader: ConfigReader, queueProvider: QueueAPI, otelSDK?: NodeSDK | undefined);
|
|
101
94
|
static newInstance(options?: DurableInterpreterOptions): Promise<DurableInterpreter>;
|
|
102
95
|
register<O>(workflow: Workflow<O>, options?: DurableInterpreterOptions): Registration;
|
|
103
96
|
start(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DurableInterpreter.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/durable/DurableInterpreter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DurableInterpreter.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/durable/DurableInterpreter.ts"],"names":[],"mappings":"AAaA,OAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAgB,EAAqB,MAAM,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAA+B,UAAU,EAAM,YAAY,EAAO,MAAM,MAAM,CAAC;AAEtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAuB,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAarE,OAAO,EAAE,QAAQ,EA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2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DurableInterpreter = void 0;
|
|
7
2
|
/*
|
|
8
3
|
* Copyright (c) 2025 Versori Group Inc
|
|
9
4
|
*
|
|
@@ -16,6 +11,11 @@ exports.DurableInterpreter = void 0;
|
|
|
16
11
|
* As of the Change Date, in accordance with the Business Source License,
|
|
17
12
|
* use of this software will be governed by the Apache License, Version 2.0.
|
|
18
13
|
*/
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DurableInterpreter = void 0;
|
|
19
19
|
const api_1 = __importDefault(require("@opentelemetry/api"));
|
|
20
20
|
const exporter_trace_otlp_proto_1 = require("@opentelemetry/exporter-trace-otlp-proto");
|
|
21
21
|
const resources_1 = require("@opentelemetry/resources");
|
|
@@ -26,10 +26,9 @@ const CredentialsProvider_js_1 = require("../../connection/CredentialsProvider.j
|
|
|
26
26
|
const DirectConnectionFactory_js_1 = require("../../connection/DirectConnectionFactory.js");
|
|
27
27
|
const ContextProvider_js_1 = require("../../context/ContextProvider.js");
|
|
28
28
|
const configloader_js_1 = require("../../dsl/http/versori/configloader.js");
|
|
29
|
+
const constants_js_1 = require("../../dsl/http/versori/constants.js");
|
|
29
30
|
const cronapi_js_1 = require("../../dsl/http/versori/cronapi.js");
|
|
30
31
|
const Workflow_js_1 = require("../../dsl/Workflow.js");
|
|
31
|
-
const constants_js_1 = require("../../internal/constants.js");
|
|
32
|
-
const supervisor_js_1 = require("../../internal/supervisor.js");
|
|
33
32
|
const Issues_js_1 = require("../../issues/Issues.js");
|
|
34
33
|
const MemoryKeyValueProvider_js_1 = require("../../kv/memory/MemoryKeyValueProvider.js");
|
|
35
34
|
const SDKKeyValueProvider_js_1 = require("../../kv/sdk/SDKKeyValueProvider.js");
|
|
@@ -37,8 +36,8 @@ const ConsoleLogger_js_1 = require("../../observability/logging/ConsoleLogger.js
|
|
|
37
36
|
const PlatformApi_js_1 = require("../../services/platform/PlatformApi.js");
|
|
38
37
|
const ObservableCompiler_js_1 = require("./ObservableCompiler.js");
|
|
39
38
|
const Queue_js_1 = require("./Queue.js");
|
|
40
|
-
function getKVProvider() {
|
|
41
|
-
if (
|
|
39
|
+
function getKVProvider(runLocal) {
|
|
40
|
+
if (runLocal) {
|
|
42
41
|
return Promise.resolve(new MemoryKeyValueProvider_js_1.MemoryKeyValueProvider());
|
|
43
42
|
}
|
|
44
43
|
return SDKKeyValueProvider_js_1.SDKKeyValueProvider.fromEnv();
|
|
@@ -68,7 +67,7 @@ function getKVProvider() {
|
|
|
68
67
|
* ```
|
|
69
68
|
*/
|
|
70
69
|
class DurableInterpreter {
|
|
71
|
-
constructor(log, compiler, contextProvider, webhookRouter, cronRouter, cronRegistry,
|
|
70
|
+
constructor(log, compiler, contextProvider, webhookRouter, cronRouter, cronRegistry, platformApi, cnxFetchFactory, cronProvider, tracer, issue, cfgReader, queueProvider, otelSDK) {
|
|
72
71
|
Object.defineProperty(this, "log", {
|
|
73
72
|
enumerable: true,
|
|
74
73
|
configurable: true,
|
|
@@ -105,12 +104,6 @@ class DurableInterpreter {
|
|
|
105
104
|
writable: true,
|
|
106
105
|
value: cronRegistry
|
|
107
106
|
});
|
|
108
|
-
Object.defineProperty(this, "webhookRegistry", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
configurable: true,
|
|
111
|
-
writable: true,
|
|
112
|
-
value: webhookRegistry
|
|
113
|
-
});
|
|
114
107
|
Object.defineProperty(this, "platformApi", {
|
|
115
108
|
enumerable: true,
|
|
116
109
|
configurable: true,
|
|
@@ -189,13 +182,6 @@ class DurableInterpreter {
|
|
|
189
182
|
writable: true,
|
|
190
183
|
value: false
|
|
191
184
|
});
|
|
192
|
-
// Workflow registration promises only used when supervisor is enabled
|
|
193
|
-
Object.defineProperty(this, "wfRegistration", {
|
|
194
|
-
enumerable: true,
|
|
195
|
-
configurable: true,
|
|
196
|
-
writable: true,
|
|
197
|
-
value: []
|
|
198
|
-
});
|
|
199
185
|
if (typeof this.log === 'undefined') {
|
|
200
186
|
// this captures the old way of instantiating the DurableInterpreter and provides an
|
|
201
187
|
// error message back to the user to let them know they should use the new way.
|
|
@@ -214,6 +200,7 @@ class DurableInterpreter {
|
|
|
214
200
|
const otelTracesURL = Deno.env.get(constants_js_1.envVarOtelTracesURL);
|
|
215
201
|
let otelSDK;
|
|
216
202
|
const configReader = configloader_js_1.VersoriConfigReader.fromEnv(log);
|
|
203
|
+
const runLocal = Deno.env.get(constants_js_1.envVarLocalRun) === 'true';
|
|
217
204
|
await waitForReady(log);
|
|
218
205
|
// Do NOT change those attributes, they are used by the API to filter on
|
|
219
206
|
const resource = (0, resources_1.resourceFromAttributes)({
|
|
@@ -235,15 +222,6 @@ class DurableInterpreter {
|
|
|
235
222
|
log.info('Starting OpenTelemetry SDK');
|
|
236
223
|
otelSDK.start();
|
|
237
224
|
}
|
|
238
|
-
else if (supervisor_js_1.enabled) {
|
|
239
|
-
otelSDK = new sdk_node_1.NodeSDK({
|
|
240
|
-
traceExporter: new supervisor_js_1.Fake(),
|
|
241
|
-
serviceName: serviceName,
|
|
242
|
-
resource: resource,
|
|
243
|
-
});
|
|
244
|
-
log.info('Starting Testing OpenTelemetry SDK');
|
|
245
|
-
otelSDK.start();
|
|
246
|
-
}
|
|
247
225
|
const tracer = api_1.default.trace.getTracer(serviceName, version);
|
|
248
226
|
const queueProvider = await Queue_js_1.QueueImpl.fromEnv(log);
|
|
249
227
|
const connectionFactory = DirectConnectionFactory_js_1.DirectConnectionFactory.fromEnv(log);
|
|
@@ -251,14 +229,14 @@ class DurableInterpreter {
|
|
|
251
229
|
if (options.contextProvider) {
|
|
252
230
|
// no need to set up a key-value provider if options.contextProvider is already
|
|
253
231
|
// initialised.
|
|
254
|
-
return new DurableInterpreter(log, compiler, options.contextProvider, express_1.default.Router(), express_1.default.Router(), new Map(),
|
|
232
|
+
return new DurableInterpreter(log, compiler, options.contextProvider, express_1.default.Router(), express_1.default.Router(), new Map(), PlatformApi_js_1.PlatformApiImpl.fromEnv(), connectionFactory, cronapi_js_1.CronAPIClient.fromEnv(), tracer, issuesProvider, configReader, queueProvider, otelSDK);
|
|
255
233
|
}
|
|
256
|
-
const kvp = await getKVProvider();
|
|
234
|
+
const kvp = await getKVProvider(runLocal);
|
|
257
235
|
const platformApi = PlatformApi_js_1.PlatformApiImpl.fromEnv();
|
|
258
236
|
const organisationId = Deno.env.get(constants_js_1.envVarOrgId) || 'development';
|
|
259
237
|
const environmentId = Deno.env.get(constants_js_1.envVarEnvId) || 'development';
|
|
260
238
|
const ctxProvider = new ContextProvider_js_1.ContextProviderImpl(log, kvp, new CredentialsProvider_js_1.CredentialsProviderImpl(connectionFactory.credentials, connectionFactory.tokens, connectionFactory.oauth1, configReader, platformApi), platformApi, organisationId, environmentId, issuesProvider, queueProvider);
|
|
261
|
-
return new DurableInterpreter(log, compiler, ctxProvider, express_1.default.Router(), express_1.default.Router(), new Map(),
|
|
239
|
+
return new DurableInterpreter(log, compiler, ctxProvider, express_1.default.Router(), express_1.default.Router(), new Map(), PlatformApi_js_1.PlatformApiImpl.fromEnv(), connectionFactory, cronapi_js_1.CronAPIClient.fromEnv(), tracer, issuesProvider, configReader, queueProvider, otelSDK);
|
|
262
240
|
}
|
|
263
241
|
register(workflow, options) {
|
|
264
242
|
const localAbortController = new AbortController();
|
|
@@ -278,7 +256,6 @@ class DurableInterpreter {
|
|
|
278
256
|
tracer: this.tracer,
|
|
279
257
|
contextProvider: this.contextProvider,
|
|
280
258
|
webhookRouter: this.webhookRouter,
|
|
281
|
-
webhookRegistry: this.webhookRegistry,
|
|
282
259
|
queueProvider: this.queueProvider,
|
|
283
260
|
cronRouter: this.cronRouter,
|
|
284
261
|
cronRegistry: this.cronRegistry,
|
|
@@ -301,14 +278,11 @@ class DurableInterpreter {
|
|
|
301
278
|
},
|
|
302
279
|
};
|
|
303
280
|
this.registeredWorkflows.push(registration);
|
|
304
|
-
if (supervisor_js_1.enabled) {
|
|
305
|
-
this.wfRegistration.push((0, supervisor_js_1.registerWorkflow)(workflow));
|
|
306
|
-
}
|
|
307
281
|
return registration;
|
|
308
282
|
}
|
|
309
|
-
|
|
310
|
-
const port = Deno.env.get(
|
|
311
|
-
const cronPort = Deno.env.get(
|
|
283
|
+
start() {
|
|
284
|
+
const port = Deno.env.get('PORT') || 3000;
|
|
285
|
+
const cronPort = Deno.env.get('CRON_PORT') || 3001;
|
|
312
286
|
const webhookApp = (0, express_1.default)();
|
|
313
287
|
const cronApp = (0, express_1.default)();
|
|
314
288
|
cronApp.use(express_1.default.json());
|
|
@@ -335,18 +309,11 @@ class DurableInterpreter {
|
|
|
335
309
|
triggerName: registration.triggerName,
|
|
336
310
|
error: err instanceof Error ? err.toString() : err,
|
|
337
311
|
});
|
|
338
|
-
this.tracer.startActiveSpan('done', (span) => {
|
|
339
|
-
span.setAttribute('error.message', err instanceof Error ? err.toString() : err);
|
|
340
|
-
span.setAttribute('execution.id', ctx.executionId);
|
|
341
|
-
span.setAttribute('result', 'fail');
|
|
342
|
-
span.setAttribute('workflow.id', ctx.workflowId || 'unknown-workflow');
|
|
343
|
-
span.end();
|
|
344
|
-
});
|
|
345
312
|
try {
|
|
346
313
|
ctx.options.onError?.(ctx.withData(err));
|
|
347
314
|
}
|
|
348
315
|
catch (err) {
|
|
349
|
-
ctx.log.error('DurableInterpreter.
|
|
316
|
+
ctx.log.error('DurableInterpreter.onErrorError: failed to call onError handler', {
|
|
350
317
|
triggerName: registration.triggerName,
|
|
351
318
|
error: err instanceof Error ? err.toString() : err,
|
|
352
319
|
});
|
|
@@ -364,12 +331,6 @@ class DurableInterpreter {
|
|
|
364
331
|
triggerName: registration.triggerName,
|
|
365
332
|
durationMs,
|
|
366
333
|
});
|
|
367
|
-
this.tracer.startActiveSpan('done', (span) => {
|
|
368
|
-
span.setAttribute('execution.id', ctx.executionId);
|
|
369
|
-
span.setAttribute('result', 'pass');
|
|
370
|
-
span.setAttribute('workflow.id', ctx.workflowId || 'unknown-workflow');
|
|
371
|
-
span.end();
|
|
372
|
-
});
|
|
373
334
|
try {
|
|
374
335
|
ctx.options.onSuccess?.(ctx);
|
|
375
336
|
}
|
|
@@ -431,7 +392,6 @@ class DurableInterpreter {
|
|
|
431
392
|
if (this.cronServer) {
|
|
432
393
|
this.cronServer.close();
|
|
433
394
|
}
|
|
434
|
-
this.otelSDK?.shutdown();
|
|
435
395
|
// Remove all signal listeners
|
|
436
396
|
for (const registration of this.registeredWorkflows) {
|
|
437
397
|
Deno.removeSignalListener('SIGINT', registration.sigintListener);
|
|
@@ -448,10 +408,6 @@ class DurableInterpreter {
|
|
|
448
408
|
}
|
|
449
409
|
};
|
|
450
410
|
Deno.addSignalListener('SIGINT', this.shutdownServer);
|
|
451
|
-
if (supervisor_js_1.enabled) {
|
|
452
|
-
await Promise.all(this.wfRegistration);
|
|
453
|
-
await (0, supervisor_js_1.signalReady)();
|
|
454
|
-
}
|
|
455
411
|
return new Promise((resolve) => {
|
|
456
412
|
let serversClosed = 0;
|
|
457
413
|
const totalServers = [this.webhookServer, this.cronServer].filter(Boolean).length;
|
|
@@ -489,7 +445,7 @@ class DurableInterpreter {
|
|
|
489
445
|
}
|
|
490
446
|
exports.DurableInterpreter = DurableInterpreter;
|
|
491
447
|
async function waitForReady(log) {
|
|
492
|
-
const readyCheckUrl = Deno.env.get(
|
|
448
|
+
const readyCheckUrl = Deno.env.get('READY_CHECK_URL');
|
|
493
449
|
if (!readyCheckUrl) {
|
|
494
450
|
return Promise.resolve();
|
|
495
451
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Tracer } from '@opentelemetry/api';
|
|
2
2
|
import { Router } from 'express';
|
|
3
3
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
|
-
import { ConnectionFactory } from '../../connection/types.js';
|
|
5
4
|
import { ContextImpl } from '../../context/Context.js';
|
|
6
5
|
import { ContextProvider } from '../../context/ContextProvider.js';
|
|
7
6
|
import { ConfigReader } from '../../dsl/http/types.js';
|
|
@@ -12,6 +11,7 @@ import { Logger } from '../../observability/logging/Logger.js';
|
|
|
12
11
|
import { PlatformApi } from '../../services/platform/mod.js';
|
|
13
12
|
import { ContextOperatorFunction, TaskCompiler, TriggerCompiler } from './compilers/types.js';
|
|
14
13
|
import { QueueAPI } from './Queue.js';
|
|
14
|
+
import { ConnectionFactory } from '../../connection/types.js';
|
|
15
15
|
export type DurableCompilerContext = {
|
|
16
16
|
compiler: ObservableCompiler;
|
|
17
17
|
log: Logger;
|
|
@@ -22,11 +22,6 @@ export type DurableCompilerContext = {
|
|
|
22
22
|
queueProvider: QueueAPI;
|
|
23
23
|
issueProvider: IssueAPI;
|
|
24
24
|
webhookRouter: Router;
|
|
25
|
-
webhookRegistry: Map<string, {
|
|
26
|
-
method: string;
|
|
27
|
-
path: string;
|
|
28
|
-
options: any;
|
|
29
|
-
}>;
|
|
30
25
|
cronRouter: Router;
|
|
31
26
|
configReader: ConfigReader;
|
|
32
27
|
cronRegistry: Map<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableCompiler.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/durable/ObservableCompiler.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ObservableCompiler.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/durable/ObservableCompiler.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MA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string;
|
|
8
|
+
tracestate?: string;
|
|
7
9
|
[key: string]: any;
|
|
8
10
|
};
|
|
9
11
|
export type Workflows = {
|
|
@@ -28,6 +30,7 @@ export type SubmitWorkflow = {
|
|
|
28
30
|
payload: string;
|
|
29
31
|
maxAttempts?: number;
|
|
30
32
|
metadata: WorkflowMsgMetadata;
|
|
33
|
+
after?: string;
|
|
31
34
|
projectId?: string;
|
|
32
35
|
environmentId?: string;
|
|
33
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Queue.d.ts","sourceRoot":"","sources":["../../../../src/src/interpreter/durable/Queue.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AASpD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAEF,MAA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,CAAC,GAAG,CAAS;IAEpB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAS;gBAElB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAOlF,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS;IAchC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBzD,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC;IA2B3D,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IA8C9E,UAAU,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB7D,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAc3D;AAGD,qBAAa,SAAU,YAAW,QAAQ;;IAGtC,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAG1D,MAAM,CAAC,QAAQ,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC;IAG5D,cAAc,CAAC,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAG/E,UAAU,CAAC,QAAQ,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAG9D,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAGtD"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MockQueue = exports.QueueImpl = void 0;
|
|
16
|
-
const constants_js_1 = require("../../
|
|
16
|
+
const constants_js_1 = require("../../dsl/http/versori/constants.js");
|
|
17
17
|
const mod_js_1 = require("../../mod.js");
|
|
18
18
|
class QueueImpl {
|
|
19
19
|
constructor(baseUrl, projectId, environmentId, log) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catch.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/catch.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG5D,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"catch.d.ts","sourceRoot":"","sources":["../../../../../src/src/interpreter/durable/compilers/catch.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAG5D,OAAO,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAuFnE,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAGrE,CAAC"}
|