@base44-preview/cli 0.0.57-pr.551.95f187e → 0.1.0-pr.551.d451f39
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 +5 -5
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -243912,7 +243912,7 @@ import { join as join11 } from "node:path";
|
|
|
243912
243912
|
// package.json
|
|
243913
243913
|
var package_default = {
|
|
243914
243914
|
name: "base44",
|
|
243915
|
-
version: "0.0
|
|
243915
|
+
version: "0.1.0",
|
|
243916
243916
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
243917
243917
|
type: "module",
|
|
243918
243918
|
bin: {
|
|
@@ -253773,16 +253773,16 @@ async function logsAction(ctx, options) {
|
|
|
253773
253773
|
entries = entries.slice(0, limit);
|
|
253774
253774
|
}
|
|
253775
253775
|
const env3 = options.env ?? "preview";
|
|
253776
|
-
const logsOutput =
|
|
253776
|
+
const logsOutput = ctx.jsonMode ? `${JSON.stringify(entries, null, 2)}
|
|
253777
253777
|
` : formatLogs(entries, env3);
|
|
253778
|
-
const shouldOutputOutroMessage = !
|
|
253778
|
+
const shouldOutputOutroMessage = !ctx.jsonMode;
|
|
253779
253779
|
return {
|
|
253780
253780
|
outroMessage: shouldOutputOutroMessage ? "Fetched logs" : undefined,
|
|
253781
253781
|
stdout: logsOutput
|
|
253782
253782
|
};
|
|
253783
253783
|
}
|
|
253784
253784
|
function getLogsCommand() {
|
|
253785
|
-
return new Base44Command("logs").description("Fetch function logs for this app").option("--function <names>", "Filter by function name(s), comma-separated. If omitted, fetches logs for all project functions").option("--since <datetime>", "Show logs from this time. ISO datetime or relative shorthand (e.g. 1h, 30m, 2d)", normalizeDatetime).option("--until <datetime>", "Show logs until this time. ISO datetime or relative shorthand (e.g. 1h, 30m, 2d)", normalizeDatetime).addOption(new Option("--level <level>", "Filter by log level").choices([...LogLevelSchema.options]).hideHelp()).option("-n, --limit <n>", "Results per page (1-1000, default: 50)").addOption(new Option("--order <order>", "Sort order").choices(["asc", "desc"])).addOption(new Option("--env <env>", "Which deployment to read logs from: preview (current draft) or prod (published). Default: preview").choices(["preview", "prod"])).
|
|
253785
|
+
return new Base44Command("logs").description("Fetch function logs for this app").option("--function <names>", "Filter by function name(s), comma-separated. If omitted, fetches logs for all project functions").option("--since <datetime>", "Show logs from this time. ISO datetime or relative shorthand (e.g. 1h, 30m, 2d)", normalizeDatetime).option("--until <datetime>", "Show logs until this time. ISO datetime or relative shorthand (e.g. 1h, 30m, 2d)", normalizeDatetime).addOption(new Option("--level <level>", "Filter by log level").choices([...LogLevelSchema.options]).hideHelp()).option("-n, --limit <n>", "Results per page (1-1000, default: 50)").addOption(new Option("--order <order>", "Sort order").choices(["asc", "desc"])).addOption(new Option("--env <env>", "Which deployment to read logs from: preview (current draft) or prod (published). Default: preview").choices(["preview", "prod"])).action(logsAction);
|
|
253786
253786
|
}
|
|
253787
253787
|
|
|
253788
253788
|
// src/cli/commands/project/scaffold.ts
|
|
@@ -262471,4 +262471,4 @@ export {
|
|
|
262471
262471
|
CLIExitError
|
|
262472
262472
|
};
|
|
262473
262473
|
|
|
262474
|
-
//# debugId=
|
|
262474
|
+
//# debugId=E1F62E870494041064756E2164756E21
|