@base44-preview/cli 0.1.1-pr.560.47e731b → 0.1.2-pr.561.234c4ed

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
@@ -236102,19 +236102,7 @@ function getTestOverrides() {
236102
236102
 
236103
236103
  // src/core/auth/config.ts
236104
236104
  var TOKEN_REFRESH_BUFFER_MS = 60 * 1000;
236105
- var WORKSPACE_API_KEY_PREFIX = "b44k_";
236106
236105
  var refreshPromise = null;
236107
- function getWorkspaceApiKeyFromEnv() {
236108
- const key = process.env.BASE44_API_KEY?.trim();
236109
- return key ? key : null;
236110
- }
236111
- function isWorkspaceApiKey(value) {
236112
- return value.startsWith(WORKSPACE_API_KEY_PREFIX);
236113
- }
236114
- function hasWorkspaceApiKeyAuth() {
236115
- const key = getWorkspaceApiKeyFromEnv();
236116
- return key !== null && isWorkspaceApiKey(key);
236117
- }
236118
236106
  async function seedAuthFromEnv() {
236119
236107
  const accessToken = process.env.BASE44_ACCESS_TOKEN;
236120
236108
  if (!accessToken) {
@@ -243932,7 +243920,7 @@ import { join as join11 } from "node:path";
243932
243920
  // package.json
243933
243921
  var package_default = {
243934
243922
  name: "base44",
243935
- version: "0.1.1",
243923
+ version: "0.1.2",
243936
243924
  description: "Base44 CLI - Unified interface for managing Base44 applications",
243937
243925
  type: "module",
243938
243926
  bin: {
@@ -244229,7 +244217,7 @@ async function deployAll(projectData, options) {
244229
244217
  });
244230
244218
  await agentResource.push(agents);
244231
244219
  await authConfigResource.push(authConfig);
244232
- const connectorResults = connectors.length > 0 ? (await pushConnectors(connectors)).results : [];
244220
+ const { results: connectorResults } = await pushConnectors(connectors);
244233
244221
  if (project.site?.outputDirectory) {
244234
244222
  const outputDir = resolve2(project.root, project.site.outputDirectory);
244235
244223
  const { appUrl } = await deploySite(outputDir);
@@ -244253,9 +244241,6 @@ async function handleUnauthorized(request, _options, response) {
244253
244241
  if (response.status !== 401) {
244254
244242
  return;
244255
244243
  }
244256
- if (hasWorkspaceApiKeyAuth()) {
244257
- return;
244258
- }
244259
244244
  if (retriedRequests.has(request)) {
244260
244245
  return;
244261
244246
  }
@@ -244284,11 +244269,6 @@ var base44Client = distribution_default.create({
244284
244269
  },
244285
244270
  captureRequestBody,
244286
244271
  async (request) => {
244287
- const workspaceApiKey = getWorkspaceApiKeyFromEnv();
244288
- if (workspaceApiKey && isWorkspaceApiKey(workspaceApiKey)) {
244289
- request.headers.set("api_key", workspaceApiKey);
244290
- return;
244291
- }
244292
244272
  try {
244293
244273
  const auth = await readAuth();
244294
244274
  if (isTokenExpired(auth)) {
@@ -244494,12 +244474,6 @@ async function login({
244494
244474
 
244495
244475
  // src/cli/utils/command/middleware.ts
244496
244476
  async function ensureAuth(ctx) {
244497
- if (hasWorkspaceApiKeyAuth()) {
244498
- ctx.errorReporter.setContext({
244499
- user: { email: "workspace-api-key", name: "Workspace API key" }
244500
- });
244501
- return;
244502
- }
244503
244477
  await seedAuthFromEnv();
244504
244478
  const loggedIn = await isLoggedIn();
244505
244479
  if (!loggedIn) {
@@ -251924,12 +251898,6 @@ function getLogoutCommand() {
251924
251898
 
251925
251899
  // src/cli/commands/auth/whoami.ts
251926
251900
  async function whoami(_ctx) {
251927
- const workspaceApiKey = getWorkspaceApiKeyFromEnv();
251928
- if (workspaceApiKey && isWorkspaceApiKey(workspaceApiKey)) {
251929
- return {
251930
- outroMessage: `Using workspace API key: ${theme.styles.bold(workspaceApiKey.slice(0, 10))}`
251931
- };
251932
- }
251933
251901
  const auth2 = await readAuth();
251934
251902
  return { outroMessage: `Logged in as: ${theme.styles.bold(auth2.email)}` };
251935
251903
  }
@@ -253814,7 +253782,8 @@ async function fetchLogsForFunctions(functionNames, options, availableFunctionNa
253814
253782
  }
253815
253783
  throw error48;
253816
253784
  }
253817
- allEntries.push(...logs.map((entry) => normalizeLogEntry(entry, functionName)));
253785
+ const matchingLogs = filters.level ? logs.filter((entry) => entry.level === filters.level) : logs;
253786
+ allEntries.push(...matchingLogs.map((entry) => normalizeLogEntry(entry, functionName)));
253818
253787
  }
253819
253788
  if (functionNames.length > 1) {
253820
253789
  const order = options.order?.toUpperCase() === "ASC" ? 1 : -1;
@@ -262563,4 +262532,4 @@ export {
262563
262532
  CLIExitError
262564
262533
  };
262565
262534
 
262566
- //# debugId=E0C3AB7A49E7E6F964756E2164756E21
262535
+ //# debugId=606087EF0C91158C64756E2164756E21