@base44-preview/cli 0.1.14-pr.626.6952180 → 0.1.15-pr.626.a329343
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 +16 -20
- package/dist/cli/index.js.map +14 -14
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -239236,7 +239236,7 @@ import { join as join13 } from "node:path";
|
|
|
239236
239236
|
// package.json
|
|
239237
239237
|
var package_default = {
|
|
239238
239238
|
name: "base44",
|
|
239239
|
-
version: "0.1.
|
|
239239
|
+
version: "0.1.15",
|
|
239240
239240
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239241
239241
|
type: "module",
|
|
239242
239242
|
bin: {
|
|
@@ -247239,21 +247239,17 @@ var DeclareVersionResponseSchema = object({
|
|
|
247239
247239
|
}));
|
|
247240
247240
|
var CreateVersionResponseSchema = object({
|
|
247241
247241
|
version_id: string2(),
|
|
247242
|
-
manifest_hash: string2()
|
|
247243
|
-
deduplicated: boolean2()
|
|
247242
|
+
manifest_hash: string2()
|
|
247244
247243
|
}).transform((data) => ({
|
|
247245
247244
|
versionId: data.version_id,
|
|
247246
|
-
manifestHash: data.manifest_hash
|
|
247247
|
-
deduplicated: data.deduplicated
|
|
247245
|
+
manifestHash: data.manifest_hash
|
|
247248
247246
|
}));
|
|
247249
247247
|
var DeployVersionResponseSchema = object({
|
|
247250
247248
|
deployment_id: string2(),
|
|
247251
|
-
manifest_hash: string2()
|
|
247252
|
-
revision: number2()
|
|
247249
|
+
manifest_hash: string2()
|
|
247253
247250
|
}).transform((data) => ({
|
|
247254
247251
|
deploymentId: data.deployment_id,
|
|
247255
|
-
manifestHash: data.manifest_hash
|
|
247256
|
-
revision: data.revision
|
|
247252
|
+
manifestHash: data.manifest_hash
|
|
247257
247253
|
}));
|
|
247258
247254
|
|
|
247259
247255
|
// src/core/version/api.ts
|
|
@@ -249713,6 +249709,7 @@ import { createReadStream as createReadStream3 } from "node:fs";
|
|
|
249713
249709
|
import { stat as stat3 } from "node:fs/promises";
|
|
249714
249710
|
import { basename as basename6, join as join27 } from "node:path";
|
|
249715
249711
|
var MAX_FILE_COUNT = 1e5;
|
|
249712
|
+
var HASH_CONCURRENCY = 32;
|
|
249716
249713
|
var ASSETS_IGNORE_FILE2 = ".assetsignore";
|
|
249717
249714
|
var ALWAYS_IGNORED2 = new Set([
|
|
249718
249715
|
ASSETS_IGNORE_FILE2,
|
|
@@ -249749,7 +249746,7 @@ async function collectBuildOutput(outputDir) {
|
|
|
249749
249746
|
if (!relativePaths.includes(ENTRY2)) {
|
|
249750
249747
|
throw new InvalidInputError(`${outputDir} has no ${ENTRY2}, so nothing could enter the site.`);
|
|
249751
249748
|
}
|
|
249752
|
-
return await
|
|
249749
|
+
return await pMap(relativePaths, async (path) => {
|
|
249753
249750
|
const absolutePath = join27(outputDir, ...path.split("/"));
|
|
249754
249751
|
const { size } = await stat3(absolutePath);
|
|
249755
249752
|
return {
|
|
@@ -249758,7 +249755,7 @@ async function collectBuildOutput(outputDir) {
|
|
|
249758
249755
|
size,
|
|
249759
249756
|
digest: await digestFile(absolutePath)
|
|
249760
249757
|
};
|
|
249761
|
-
})
|
|
249758
|
+
}, { concurrency: HASH_CONCURRENCY });
|
|
249762
249759
|
}
|
|
249763
249760
|
async function readRawResources(dir) {
|
|
249764
249761
|
if (!await pathExists(dir)) {
|
|
@@ -250707,7 +250704,7 @@ async function logsAction(ctx, options) {
|
|
|
250707
250704
|
function getLogsCommand() {
|
|
250708
250705
|
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 deployed 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 Option2("--level <level>", "Filter by log level").choices([
|
|
250709
250706
|
...LogLevelSchema.options
|
|
250710
|
-
])).option("-n, --limit <n>", "Results per page (1-1000; the server returns at most 500)").option("-f, --follow", "Stream new logs as they arrive").addOption(new Option2("--order <order>", "Sort order").choices(["asc", "desc"])).addOption(new Option2("--env <env>", "Which deployment to read logs from: preview (current draft) or prod (published).
|
|
250707
|
+
])).option("-n, --limit <n>", "Results per page (1-1000; the server returns at most 500)").option("-f, --follow", "Stream new logs as they arrive").addOption(new Option2("--order <order>", "Sort order").choices(["asc", "desc"])).addOption(new Option2("--env <env>", "Which deployment to read logs from: preview (current draft) or prod (published). Omit to read both.").choices([...LogEnvSchema.options])).action(logsAction);
|
|
250711
250708
|
}
|
|
250712
250709
|
|
|
250713
250710
|
// src/cli/commands/project/scaffold.ts
|
|
@@ -250813,13 +250810,12 @@ async function publishAction(ctx, options) {
|
|
|
250813
250810
|
appId: app?.id ?? ""
|
|
250814
250811
|
}));
|
|
250815
250812
|
}
|
|
250816
|
-
const outputDir = requireOutputDir(target);
|
|
250817
250813
|
const gitHash = await resolveProvenanceCommit(target.root, options.gitHash);
|
|
250818
250814
|
const result = await runTask("Publishing...", async (updateMessage) => {
|
|
250819
|
-
const artifacts = {
|
|
250820
|
-
files: await collectBuildOutput(
|
|
250815
|
+
const artifacts = await tagStep("create_version", async () => ({
|
|
250816
|
+
files: await collectBuildOutput(requireOutputDir(target)),
|
|
250821
250817
|
...await collectResources(target.configDir, target)
|
|
250822
|
-
};
|
|
250818
|
+
}));
|
|
250823
250819
|
return await publishVersion(artifacts, {
|
|
250824
250820
|
sourceCommit: gitHash,
|
|
250825
250821
|
target: options.target,
|
|
@@ -250831,10 +250827,10 @@ async function publishAction(ctx, options) {
|
|
|
250831
250827
|
});
|
|
250832
250828
|
}, { successMessage: "Published", errorMessage: "Publish failed" });
|
|
250833
250829
|
if (!jsonMode) {
|
|
250834
|
-
log.message(theme.styles.dim(`version ${result.versionId}
|
|
250830
|
+
log.message(theme.styles.dim(`version ${result.versionId}`));
|
|
250835
250831
|
}
|
|
250836
250832
|
return {
|
|
250837
|
-
outroMessage: `Deployment ${result.deploymentId}
|
|
250833
|
+
outroMessage: `Deployment ${result.deploymentId}`,
|
|
250838
250834
|
stdout: jsonMode ? `${JSON.stringify(result, null, 2)}
|
|
250839
250835
|
` : undefined
|
|
250840
250836
|
};
|
|
@@ -251572,7 +251568,7 @@ async function deployAction3({ runTask, jsonMode }, versionId, options) {
|
|
|
251572
251568
|
idempotencyKey: randomUUID5()
|
|
251573
251569
|
}), { successMessage: "Version deployed", errorMessage: "Deploy failed" });
|
|
251574
251570
|
return {
|
|
251575
|
-
outroMessage: `Deployment ${deployment.deploymentId}
|
|
251571
|
+
outroMessage: `Deployment ${deployment.deploymentId}`,
|
|
251576
251572
|
stdout: jsonMode ? `${JSON.stringify(deployment, null, 2)}
|
|
251577
251573
|
` : undefined
|
|
251578
251574
|
};
|
|
@@ -260302,4 +260298,4 @@ export {
|
|
|
260302
260298
|
runCLI
|
|
260303
260299
|
};
|
|
260304
260300
|
|
|
260305
|
-
//# debugId=
|
|
260301
|
+
//# debugId=A48EFDF915836D7364756E2164756E21
|