trigger.dev 0.0.0-v3-prerelease-20240424094958 → 0.0.0-v3-prerelease-20240424101411

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/index.js CHANGED
@@ -799,7 +799,7 @@ import invariant from "tiny-invariant";
799
799
  import { z as z4 } from "zod";
800
800
 
801
801
  // package.json
802
- var version = "0.0.0-v3-prerelease-20240424094958";
802
+ var version = "0.0.0-v3-prerelease-20240424101411";
803
803
  var dependencies = {
804
804
  "@clack/prompts": "^0.7.0",
805
805
  "@depot/cli": "0.0.1-cli.2.55.0",
@@ -815,7 +815,7 @@ var dependencies = {
815
815
  "@opentelemetry/sdk-trace-base": "^1.22.0",
816
816
  "@opentelemetry/sdk-trace-node": "^1.22.0",
817
817
  "@opentelemetry/semantic-conventions": "^1.22.0",
818
- "@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240424094958",
818
+ "@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240424101411",
819
819
  "@types/degit": "^2.8.3",
820
820
  chalk: "^5.2.0",
821
821
  chokidar: "^3.5.3",
@@ -2638,11 +2638,15 @@ async function login(options) {
2638
2638
  true
2639
2639
  );
2640
2640
  if (!whoAmIResult.success) {
2641
- prettyError("Whoami failed", whoAmIResult.error);
2641
+ prettyError("Unable to validate existing personal access token", whoAmIResult.error);
2642
2642
  if (!opts.embedded) {
2643
- outro3("Login failed");
2643
+ outro3(
2644
+ `Login failed using stored token. To fix, first logout using \`trigger.dev logout${options?.profile ? ` --profile ${options.profile}` : ""}\` and then try again.`
2645
+ );
2646
+ throw new SkipLoggingError(whoAmIResult.error);
2647
+ } else {
2648
+ throw new Error(whoAmIResult.error);
2644
2649
  }
2645
- throw new Error(whoAmIResult.error);
2646
2650
  } else {
2647
2651
  if (!opts.embedded) {
2648
2652
  const continueOption = await select({