@base44-preview/cli 0.1.1-pr.560.47e731b → 0.1.2-pr.560.079a819

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 CHANGED
@@ -233593,6 +233593,9 @@ var ApiErrorResponseSchema = exports_external.looseObject({
233593
233593
  });
233594
233594
 
233595
233595
  // src/core/errors.ts
233596
+ function usingWorkspaceApiKey() {
233597
+ return process.env.BASE44_API_KEY?.trim().startsWith("b44k_") ?? false;
233598
+ }
233596
233599
  function formatApiError(errorBody, parsed) {
233597
233600
  const data = parsed ?? ApiErrorResponseSchema.safeParse(errorBody).data;
233598
233601
  if (data) {
@@ -233787,6 +233790,13 @@ class ApiError extends SystemError {
233787
233790
  ];
233788
233791
  }
233789
233792
  if (statusCode === 401) {
233793
+ if (usingWorkspaceApiKey()) {
233794
+ return [
233795
+ {
233796
+ message: "The workspace API key (BASE44_API_KEY) was rejected. Verify it is valid and authorized for this app."
233797
+ }
233798
+ ];
233799
+ }
233790
233800
  return [{ message: "Try logging in again", command: "base44 login" }];
233791
233801
  }
233792
233802
  if (statusCode === 403) {
@@ -243932,7 +243942,7 @@ import { join as join11 } from "node:path";
243932
243942
  // package.json
243933
243943
  var package_default = {
243934
243944
  name: "base44",
243935
- version: "0.1.1",
243945
+ version: "0.1.2",
243936
243946
  description: "Base44 CLI - Unified interface for managing Base44 applications",
243937
243947
  type: "module",
243938
243948
  bin: {
@@ -262563,4 +262573,4 @@ export {
262563
262573
  CLIExitError
262564
262574
  };
262565
262575
 
262566
- //# debugId=E0C3AB7A49E7E6F964756E2164756E21
262576
+ //# debugId=AF0A655FA851A06864756E2164756E21