@theholocron/cli 5.0.0-alpha.235 → 5.0.0-alpha.236

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/cli.mjs CHANGED
@@ -10,7 +10,7 @@ import { lintCommitMsgFile } from "@theholocron/astromech/lint";
10
10
  import { LOG_LEVELS, NoopAnalyticsSink, NoopErrorSink, redactObject } from "@theholocron/observability/core";
11
11
  import yargs from "yargs";
12
12
  import { hideBin } from "yargs/helpers";
13
- import { AuthError, ProviderApiError, ProviderApiError as ProviderApiError$1, createRestClient } from "@theholocron/http-client";
13
+ import { AuthError, ProviderApiError, ProviderApiError as ProviderApiError$1, createRestClient, onRetry } from "@theholocron/http-client";
14
14
  import { createEnvLookup, firstEnv, withEnvPrefix } from "@theholocron/env-utils";
15
15
  import { Entry, findCredentials } from "@napi-rs/keyring";
16
16
  import { pathToFileURL } from "node:url";
@@ -797,9 +797,13 @@ function createProgress(print, enabled = progressEnabled) {
797
797
  discardStdin: false
798
798
  }).start();
799
799
  active = spinner;
800
+ const stopListening = onRetry((e) => {
801
+ spinner.text = `${label} (retrying ${e.vendor ?? "the request"}, attempt ${e.attempt} of ${e.of})`;
802
+ });
800
803
  try {
801
804
  return await fn();
802
805
  } finally {
806
+ stopListening();
803
807
  spinner.stop();
804
808
  active = void 0;
805
809
  }