@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.
@@ -3482,6 +3482,10 @@ async function createTemporalConnection(logger2, temporalConfig) {
3482
3482
  }
3483
3483
  async function registerWorkflows(logger2, config) {
3484
3484
  logger2.info(`Registering workflows`);
3485
+ if (!config.temporalConfig) {
3486
+ logger2.info(`Temporal config not provided, skipping workflow registration`);
3487
+ return null;
3488
+ }
3485
3489
  const allScriptPaths = [];
3486
3490
  const dynamicActivities = [];
3487
3491
  try {
@@ -3680,13 +3684,13 @@ program.command("consumption-apis").description("Run consumption APIs").argument
3680
3684
  issuer: options.jwtIssuer,
3681
3685
  audience: options.jwtAudience
3682
3686
  },
3683
- temporalConfig: {
3687
+ temporalConfig: options.temporalUrl ? {
3684
3688
  url: options.temporalUrl,
3685
3689
  namespace: options.temporalNamespace,
3686
3690
  clientCert: options.clientCert,
3687
3691
  clientKey: options.clientKey,
3688
3692
  apiKey: options.apiKey
3689
- },
3693
+ } : void 0,
3690
3694
  enforceAuth: options.enforceAuth,
3691
3695
  proxyPort: options.proxyPort,
3692
3696
  workerCount: options.workerCount
@@ -3718,13 +3722,13 @@ program.command("consumption-type-serializer").description("Run consumption type
3718
3722
  });
3719
3723
  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) => {
3720
3724
  runScripts({
3721
- temporalConfig: {
3725
+ temporalConfig: options.temporalUrl ? {
3722
3726
  url: options.temporalUrl,
3723
3727
  namespace: options.temporalNamespace,
3724
3728
  clientCert: options.clientCert,
3725
3729
  clientKey: options.clientKey,
3726
3730
  apiKey: options.apiKey
3727
- }
3731
+ } : void 0
3728
3732
  });
3729
3733
  });
3730
3734
  program.parse();