@base44-preview/cli 0.0.56-pr.547.766b60b → 0.0.56-pr.547.db4783d
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/README.md +1 -1
- package/dist/cli/index.js +25 -25
- package/dist/cli/index.js.map +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ The CLI will guide you through project setup. For step-by-step tutorials, see th
|
|
|
67
67
|
| [`sandbox edit`](https://docs.base44.com/developers/references/cli/commands/sandbox-edit) | Apply exact old→new string edits to a file in the sandbox |
|
|
68
68
|
| [`sandbox grep`](https://docs.base44.com/developers/references/cli/commands/sandbox-grep) | Search files for a pattern in an app's remote sandbox |
|
|
69
69
|
| [`sandbox run`](https://docs.base44.com/developers/references/cli/commands/sandbox-run) | Run a shell command in an app's remote sandbox |
|
|
70
|
-
| [`sandbox
|
|
70
|
+
| [`sandbox checkpoint`](https://docs.base44.com/developers/references/cli/commands/sandbox-checkpoint) | Create a restore-point checkpoint of an app's remote sandbox |
|
|
71
71
|
| [`site deploy`](https://docs.base44.com/developers/references/cli/commands/site-deploy) | Deploy built site files to Base44 hosting |
|
|
72
72
|
| [`site open`](https://docs.base44.com/developers/references/cli/commands/site-open) | Open the published site in your browser |
|
|
73
73
|
| [`types generate`](https://docs.base44.com/developers/references/cli/commands/types-generate) | Generate TypeScript types from project resources |
|
package/dist/cli/index.js
CHANGED
|
@@ -243444,7 +243444,7 @@ var ListFunctionsResponseSchema = exports_external.object({
|
|
|
243444
243444
|
var LogLevelSchema = exports_external.enum(["info", "warning", "error", "debug"]);
|
|
243445
243445
|
var FunctionLogEntrySchema = exports_external.object({
|
|
243446
243446
|
time: exports_external.string(),
|
|
243447
|
-
level: LogLevelSchema,
|
|
243447
|
+
level: exports_external.preprocess((v) => v === "warn" ? "warning" : !v || v === "log" ? "info" : v, LogLevelSchema),
|
|
243448
243448
|
message: exports_external.string()
|
|
243449
243449
|
});
|
|
243450
243450
|
var FunctionLogsResponseSchema = exports_external.array(FunctionLogEntrySchema);
|
|
@@ -253896,12 +253896,14 @@ var RunCommandResponseSchema = exports_external.object({
|
|
|
253896
253896
|
truncated: data.truncated,
|
|
253897
253897
|
durationMs: data.duration_ms
|
|
253898
253898
|
}));
|
|
253899
|
-
var
|
|
253900
|
-
|
|
253901
|
-
|
|
253899
|
+
var CreateCheckpointResponseSchema = exports_external.object({
|
|
253900
|
+
checkpoint_id: exports_external.string(),
|
|
253901
|
+
name: exports_external.string().nullable(),
|
|
253902
|
+
git_commit_hash: exports_external.string().nullable()
|
|
253902
253903
|
}).transform((data) => ({
|
|
253903
|
-
|
|
253904
|
-
|
|
253904
|
+
checkpointId: data.checkpoint_id,
|
|
253905
|
+
name: data.name,
|
|
253906
|
+
gitCommitHash: data.git_commit_hash
|
|
253905
253907
|
}));
|
|
253906
253908
|
|
|
253907
253909
|
// src/core/resources/sandbox/api.ts
|
|
@@ -253966,8 +253968,8 @@ function grep(appId, params) {
|
|
|
253966
253968
|
function runCommand(appId, params) {
|
|
253967
253969
|
return callTool(appId, "run_command", { ...params }, RunCommandResponseSchema, "running command", false);
|
|
253968
253970
|
}
|
|
253969
|
-
function
|
|
253970
|
-
return callTool(appId, "
|
|
253971
|
+
function createCheckpoint(appId, params) {
|
|
253972
|
+
return callTool(appId, "create_checkpoint", { ...params }, CreateCheckpointResponseSchema, "creating checkpoint");
|
|
253971
253973
|
}
|
|
253972
253974
|
|
|
253973
253975
|
// src/cli/commands/sandbox/shared.ts
|
|
@@ -253995,6 +253997,19 @@ function parsePositiveInt(value, flagName) {
|
|
|
253995
253997
|
return n2;
|
|
253996
253998
|
}
|
|
253997
253999
|
|
|
254000
|
+
// src/cli/commands/sandbox/checkpoint.ts
|
|
254001
|
+
async function checkpointAction({ runTask: runTask2 }, options) {
|
|
254002
|
+
const { id: appId } = getAppContext();
|
|
254003
|
+
const result = await runTask2("Creating checkpoint", () => createCheckpoint(appId, { name: options.name }));
|
|
254004
|
+
return { outroMessage: "Created checkpoint", stdout: toJsonStdout(result) };
|
|
254005
|
+
}
|
|
254006
|
+
function getSandboxCheckpointCommand() {
|
|
254007
|
+
return new Base44Command("checkpoint").description("Create a restore-point checkpoint of an app's remote sandbox").option("--name <name>", "Optional message/title for the checkpoint (defaults to an auto-generated title)").addHelpText("after", `
|
|
254008
|
+
Examples:
|
|
254009
|
+
$ base44 sandbox checkpoint
|
|
254010
|
+
$ base44 sandbox checkpoint --name "before refactor"`).action(checkpointAction);
|
|
254011
|
+
}
|
|
254012
|
+
|
|
253998
254013
|
// src/cli/commands/sandbox/edit-file.ts
|
|
253999
254014
|
var EditsInputSchema = exports_external.array(exports_external.object({
|
|
254000
254015
|
old_text: exports_external.string().min(1),
|
|
@@ -254079,21 +254094,6 @@ function getSandboxReadFileCommand() {
|
|
|
254079
254094
|
return new Base44Command("read").description("Read file contents from an app's remote sandbox").argument("<paths...>", "One or more file paths relative to the app root").option("--offset <n>", "1-based start line").option("--limit <n>", "Max lines to return from offset").action(readFileAction);
|
|
254080
254095
|
}
|
|
254081
254096
|
|
|
254082
|
-
// src/cli/commands/sandbox/release.ts
|
|
254083
|
-
async function releaseAction({
|
|
254084
|
-
runTask: runTask2
|
|
254085
|
-
}) {
|
|
254086
|
-
const { id: appId } = getAppContext();
|
|
254087
|
-
const result = await runTask2("Releasing sandbox session", () => releaseSession(appId));
|
|
254088
|
-
return {
|
|
254089
|
-
outroMessage: "Released sandbox session",
|
|
254090
|
-
stdout: toJsonStdout(result)
|
|
254091
|
-
};
|
|
254092
|
-
}
|
|
254093
|
-
function getSandboxReleaseCommand() {
|
|
254094
|
-
return new Base44Command("release").description("Release the external-agent session so the in-app builder can resume").action(releaseAction);
|
|
254095
|
-
}
|
|
254096
|
-
|
|
254097
254097
|
// src/cli/commands/sandbox/run-command.ts
|
|
254098
254098
|
async function runCommandAction({ runTask: runTask2 }, commandParts, options) {
|
|
254099
254099
|
const { id: appId } = getAppContext();
|
|
@@ -254125,7 +254125,7 @@ Examples:
|
|
|
254125
254125
|
|
|
254126
254126
|
// src/cli/commands/sandbox/index.ts
|
|
254127
254127
|
function getSandboxCommand() {
|
|
254128
|
-
return new Command("sandbox").description("Develop an app remotely via its server-side sandbox").addCommand(getSandboxListDirectoryCommand()).addCommand(getSandboxReadFileCommand()).addCommand(getSandboxWriteFileCommand()).addCommand(getSandboxEditFileCommand()).addCommand(getSandboxGrepCommand()).addCommand(getSandboxRunCommandCommand()).addCommand(
|
|
254128
|
+
return new Command("sandbox").description("Develop an app remotely via its server-side sandbox").addCommand(getSandboxListDirectoryCommand()).addCommand(getSandboxReadFileCommand()).addCommand(getSandboxWriteFileCommand()).addCommand(getSandboxEditFileCommand()).addCommand(getSandboxGrepCommand()).addCommand(getSandboxRunCommandCommand()).addCommand(getSandboxCheckpointCommand());
|
|
254129
254129
|
}
|
|
254130
254130
|
|
|
254131
254131
|
// src/cli/commands/secrets/delete.ts
|
|
@@ -262450,4 +262450,4 @@ export {
|
|
|
262450
262450
|
CLIExitError
|
|
262451
262451
|
};
|
|
262452
262452
|
|
|
262453
|
-
//# debugId=
|
|
262453
|
+
//# debugId=C107ED30593A378964756E2164756E21
|