@base44-preview/cli 0.0.57-pr.551.95f187e → 0.1.0-pr.551.cd949a6
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 +6 -5
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -243442,6 +243442,7 @@ var ListFunctionsResponseSchema = exports_external.object({
|
|
|
243442
243442
|
functions: exports_external.array(FunctionInfoSchema)
|
|
243443
243443
|
});
|
|
243444
243444
|
var LogLevelSchema = exports_external.enum(["info", "warning", "error", "debug"]);
|
|
243445
|
+
var LogEnvSchema = exports_external.enum(["preview", "prod"]);
|
|
243445
243446
|
var FunctionLogEntrySchema = exports_external.object({
|
|
243446
243447
|
time: exports_external.string(),
|
|
243447
243448
|
level: exports_external.preprocess((v) => v === "warn" ? "warning" : !v || v === "log" ? "info" : v, LogLevelSchema),
|
|
@@ -243912,7 +243913,7 @@ import { join as join11 } from "node:path";
|
|
|
243912
243913
|
// package.json
|
|
243913
243914
|
var package_default = {
|
|
243914
243915
|
name: "base44",
|
|
243915
|
-
version: "0.0
|
|
243916
|
+
version: "0.1.0",
|
|
243916
243917
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
243917
243918
|
type: "module",
|
|
243918
243919
|
bin: {
|
|
@@ -253773,16 +253774,16 @@ async function logsAction(ctx, options) {
|
|
|
253773
253774
|
entries = entries.slice(0, limit);
|
|
253774
253775
|
}
|
|
253775
253776
|
const env3 = options.env ?? "preview";
|
|
253776
|
-
const logsOutput =
|
|
253777
|
+
const logsOutput = ctx.jsonMode ? `${JSON.stringify(entries, null, 2)}
|
|
253777
253778
|
` : formatLogs(entries, env3);
|
|
253778
|
-
const shouldOutputOutroMessage = !
|
|
253779
|
+
const shouldOutputOutroMessage = !ctx.jsonMode;
|
|
253779
253780
|
return {
|
|
253780
253781
|
outroMessage: shouldOutputOutroMessage ? "Fetched logs" : undefined,
|
|
253781
253782
|
stdout: logsOutput
|
|
253782
253783
|
};
|
|
253783
253784
|
}
|
|
253784
253785
|
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([
|
|
253786
|
+
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([...LogEnvSchema.options])).action(logsAction);
|
|
253786
253787
|
}
|
|
253787
253788
|
|
|
253788
253789
|
// src/cli/commands/project/scaffold.ts
|
|
@@ -262471,4 +262472,4 @@ export {
|
|
|
262471
262472
|
CLIExitError
|
|
262472
262473
|
};
|
|
262473
262474
|
|
|
262474
|
-
//# debugId=
|
|
262475
|
+
//# debugId=D425B400F88D6F6D64756E2164756E21
|