@base44-preview/cli 0.0.49-pr.452.768057 → 0.0.49-pr.452.970e277
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/index.js +24 -5
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -234683,6 +234683,21 @@ class UserError extends CLIError {
|
|
|
234683
234683
|
|
|
234684
234684
|
class SystemError extends CLIError {
|
|
234685
234685
|
}
|
|
234686
|
+
class AuthExpiredError extends UserError {
|
|
234687
|
+
code = "AUTH_EXPIRED";
|
|
234688
|
+
constructor(message = "Authentication has expired", options) {
|
|
234689
|
+
super(message, {
|
|
234690
|
+
hints: options?.hints ?? [
|
|
234691
|
+
{
|
|
234692
|
+
message: "Run 'base44 login' to re-authenticate",
|
|
234693
|
+
command: "base44 login"
|
|
234694
|
+
}
|
|
234695
|
+
],
|
|
234696
|
+
cause: options?.cause
|
|
234697
|
+
});
|
|
234698
|
+
}
|
|
234699
|
+
}
|
|
234700
|
+
|
|
234686
234701
|
class ConfigNotFoundError extends UserError {
|
|
234687
234702
|
code = "CONFIG_NOT_FOUND";
|
|
234688
234703
|
constructor(message = "No Base44 project found in this directory", options) {
|
|
@@ -243629,12 +243644,12 @@ async function waitForAuthentication(deviceCode, expiresIn, interval) {
|
|
|
243629
243644
|
});
|
|
243630
243645
|
} catch (error48) {
|
|
243631
243646
|
if (error48 instanceof Error && error48.message.includes("timed out")) {
|
|
243632
|
-
throw new
|
|
243647
|
+
throw new AuthExpiredError("Authentication timed out. Please try again.");
|
|
243633
243648
|
}
|
|
243634
243649
|
throw error48;
|
|
243635
243650
|
}
|
|
243636
243651
|
if (tokenResponse === undefined) {
|
|
243637
|
-
throw new
|
|
243652
|
+
throw new InternalError("Failed to retrieve authentication token.");
|
|
243638
243653
|
}
|
|
243639
243654
|
return tokenResponse;
|
|
243640
243655
|
}
|
|
@@ -250233,7 +250248,7 @@ async function checkSkillVersions(projectRoot) {
|
|
|
250233
250248
|
return results.filter((r) => r !== null);
|
|
250234
250249
|
}
|
|
250235
250250
|
function startSkillVersionCheck(projectRoot) {
|
|
250236
|
-
return checkSkillVersions(projectRoot)
|
|
250251
|
+
return checkSkillVersions(projectRoot);
|
|
250237
250252
|
}
|
|
250238
250253
|
function formatSkillWarning(staleSkills) {
|
|
250239
250254
|
const { shinyOrange } = theme.colors;
|
|
@@ -250427,7 +250442,11 @@ class Base44Command extends Command {
|
|
|
250427
250442
|
}
|
|
250428
250443
|
if (this._commandOptions.requireAppConfig) {
|
|
250429
250444
|
await ensureAppConfig(this.context);
|
|
250430
|
-
|
|
250445
|
+
const errorReporter = this.context.errorReporter;
|
|
250446
|
+
skillCheckPromise = startSkillVersionCheck(getAppConfig().projectRoot).catch((error48) => {
|
|
250447
|
+
errorReporter.captureException(error48 instanceof Error ? error48 : new Error(String(error48)));
|
|
250448
|
+
return null;
|
|
250449
|
+
});
|
|
250431
250450
|
}
|
|
250432
250451
|
const result = await fn(this.context, ...args) ?? {};
|
|
250433
250452
|
if (!quiet) {
|
|
@@ -260261,4 +260280,4 @@ export {
|
|
|
260261
260280
|
CLIExitError
|
|
260262
260281
|
};
|
|
260263
260282
|
|
|
260264
|
-
//# debugId=
|
|
260283
|
+
//# debugId=29CB970984B0BC8464756E2164756E21
|