@514labs/moose-lib 0.6.357 → 0.6.358
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/moose-runner.mjs
CHANGED
|
@@ -3475,6 +3475,10 @@ async function createTemporalConnection(logger2, temporalConfig) {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
async function registerWorkflows(logger2, config) {
|
|
3477
3477
|
logger2.info(`Registering workflows`);
|
|
3478
|
+
if (!config.temporalConfig) {
|
|
3479
|
+
logger2.info(`Temporal config not provided, skipping workflow registration`);
|
|
3480
|
+
return null;
|
|
3481
|
+
}
|
|
3478
3482
|
const allScriptPaths = [];
|
|
3479
3483
|
const dynamicActivities = [];
|
|
3480
3484
|
try {
|
|
@@ -3673,13 +3677,13 @@ program.command("consumption-apis").description("Run consumption APIs").argument
|
|
|
3673
3677
|
issuer: options.jwtIssuer,
|
|
3674
3678
|
audience: options.jwtAudience
|
|
3675
3679
|
},
|
|
3676
|
-
temporalConfig: {
|
|
3680
|
+
temporalConfig: options.temporalUrl ? {
|
|
3677
3681
|
url: options.temporalUrl,
|
|
3678
3682
|
namespace: options.temporalNamespace,
|
|
3679
3683
|
clientCert: options.clientCert,
|
|
3680
3684
|
clientKey: options.clientKey,
|
|
3681
3685
|
apiKey: options.apiKey
|
|
3682
|
-
},
|
|
3686
|
+
} : void 0,
|
|
3683
3687
|
enforceAuth: options.enforceAuth,
|
|
3684
3688
|
proxyPort: options.proxyPort,
|
|
3685
3689
|
workerCount: options.workerCount
|
|
@@ -3711,13 +3715,13 @@ program.command("consumption-type-serializer").description("Run consumption type
|
|
|
3711
3715
|
});
|
|
3712
3716
|
program.command("scripts").description("Run scripts").option("--temporal-url <url>", "Temporal server URL").option("--temporal-namespace <namespace>", "Temporal namespace").option("--client-cert <path>", "Path to client certificate").option("--client-key <path>", "Path to client key").option("--api-key <key>", "API key for authentication").action((options) => {
|
|
3713
3717
|
runScripts({
|
|
3714
|
-
temporalConfig: {
|
|
3718
|
+
temporalConfig: options.temporalUrl ? {
|
|
3715
3719
|
url: options.temporalUrl,
|
|
3716
3720
|
namespace: options.temporalNamespace,
|
|
3717
3721
|
clientCert: options.clientCert,
|
|
3718
3722
|
clientKey: options.clientKey,
|
|
3719
3723
|
apiKey: options.apiKey
|
|
3720
|
-
}
|
|
3724
|
+
} : void 0
|
|
3721
3725
|
});
|
|
3722
3726
|
});
|
|
3723
3727
|
program.parse();
|