@base44-preview/cli 0.0.56-pr.547.6723c69 → 0.0.56-pr.547.766b60b

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 CHANGED
@@ -61,12 +61,12 @@ The CLI will guide you through project setup. For step-by-step tutorials, see th
61
61
  | [`secrets list`](https://docs.base44.com/developers/references/cli/commands/secrets-list) | List project secret names |
62
62
  | [`secrets set`](https://docs.base44.com/developers/references/cli/commands/secrets-set) | Set one or more project secrets |
63
63
  | [`secrets delete`](https://docs.base44.com/developers/references/cli/commands/secrets-delete) | Delete a project secret |
64
- | [`sandbox list-directory`](https://docs.base44.com/developers/references/cli/commands/sandbox-list-directory) | List directory entries in an app's remote sandbox |
65
- | [`sandbox read-file`](https://docs.base44.com/developers/references/cli/commands/sandbox-read-file) | Read file contents from an app's remote sandbox |
66
- | [`sandbox write-file`](https://docs.base44.com/developers/references/cli/commands/sandbox-write-file) | Create or overwrite a file in an app's remote sandbox |
67
- | [`sandbox edit-file`](https://docs.base44.com/developers/references/cli/commands/sandbox-edit-file) | Apply exact old→new string edits to a file in the sandbox |
64
+ | [`sandbox ls`](https://docs.base44.com/developers/references/cli/commands/sandbox-ls) | List directory entries in an app's remote sandbox |
65
+ | [`sandbox read`](https://docs.base44.com/developers/references/cli/commands/sandbox-read) | Read file contents from an app's remote sandbox |
66
+ | [`sandbox write`](https://docs.base44.com/developers/references/cli/commands/sandbox-write) | Create or overwrite a file in an app's remote sandbox |
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
- | [`sandbox run-command`](https://docs.base44.com/developers/references/cli/commands/sandbox-run-command) | Run a shell command in an app's remote sandbox |
69
+ | [`sandbox run`](https://docs.base44.com/developers/references/cli/commands/sandbox-run) | Run a shell command in an app's remote sandbox |
70
70
  | [`sandbox release`](https://docs.base44.com/developers/references/cli/commands/sandbox-release) | Release the external-agent session so the in-app builder can resume |
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 |
@@ -92,8 +92,8 @@ Use `--json` for scripting and agent automation:
92
92
 
93
93
  ```bash
94
94
  # Pure JSON on stdout, ready for jq
95
- base44 sandbox list-directory src --app-id app_123 --json | jq '.entries'
96
- base44 sandbox run-command "npm test" --app-id app_123 --json | jq '.exitCode'
95
+ base44 sandbox ls src --app-id app_123 --json | jq '.entries'
96
+ base44 sandbox run "npm test" --app-id app_123 --json | jq '.exitCode'
97
97
  ```
98
98
 
99
99
  ## AI agent skills
package/dist/cli/index.js CHANGED
@@ -254025,12 +254025,12 @@ async function editFileAction({ runTask: runTask2 }, path17, options) {
254025
254025
  };
254026
254026
  }
254027
254027
  function getSandboxEditFileCommand() {
254028
- return new Base44Command("edit-file").description("Apply exact old→new string edits to a file in the sandbox").argument("<path>", "File path relative to the app root").option("--edits-json <json>", "JSON array of edits (if omitted, read from stdin)").option("--dry-run", "Return the unified diff without writing").addHelpText("after", `
254028
+ return new Base44Command("edit").description("Apply exact old→new string edits to a file in the sandbox").argument("<path>", "File path relative to the app root").option("--edits-json <json>", "JSON array of edits (if omitted, read from stdin)").option("--dry-run", "Return the unified diff without writing").addHelpText("after", `
254029
254029
  Each edit is { "old_text": "...", "new_text": "...", "replace_all"?: true }.
254030
254030
 
254031
254031
  Examples:
254032
- $ echo '[{"old_text":"foo","new_text":"bar"}]' | base44 sandbox edit-file src/x.ts
254033
- $ base44 sandbox edit-file src/x.ts --dry-run --edits-json '[{"old_text":"a","new_text":"b","replace_all":true}]'`).action(editFileAction);
254032
+ $ echo '[{"old_text":"foo","new_text":"bar"}]' | base44 sandbox edit src/x.ts
254033
+ $ base44 sandbox edit src/x.ts --dry-run --edits-json '[{"old_text":"a","new_text":"b","replace_all":true}]'`).action(editFileAction);
254034
254034
  }
254035
254035
 
254036
254036
  // src/cli/commands/sandbox/grep.ts
@@ -254064,7 +254064,7 @@ async function listDirectoryAction({ runTask: runTask2 }, path17, options) {
254064
254064
  return { outroMessage: "Listed directory", stdout: toJsonStdout(result) };
254065
254065
  }
254066
254066
  function getSandboxListDirectoryCommand() {
254067
- return new Base44Command("list-directory").description("List directory entries in an app's remote sandbox").argument("[path]", "Directory relative to the app root (default: app root)").option("--recursive", "List nested entries").option("--max-depth <n>", "Max depth when recursive (1-10, default 3)").option("--include-hidden", "Include dotfiles").action(listDirectoryAction);
254067
+ return new Base44Command("ls").description("List directory entries in an app's remote sandbox").argument("[path]", "Directory relative to the app root (default: app root)").option("--recursive", "List nested entries").option("--max-depth <n>", "Max depth when recursive (1-10, default 3)").option("--include-hidden", "Include dotfiles").action(listDirectoryAction);
254068
254068
  }
254069
254069
 
254070
254070
  // src/cli/commands/sandbox/read-file.ts
@@ -254076,7 +254076,7 @@ async function readFileAction({ runTask: runTask2 }, paths, options) {
254076
254076
  return { outroMessage: "Read file", stdout: toJsonStdout(result) };
254077
254077
  }
254078
254078
  function getSandboxReadFileCommand() {
254079
- return new Base44Command("read-file").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);
254079
+ 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
254080
  }
254081
254081
 
254082
254082
  // src/cli/commands/sandbox/release.ts
@@ -254103,10 +254103,10 @@ async function runCommandAction({ runTask: runTask2 }, commandParts, options) {
254103
254103
  return { outroMessage: "Ran command", stdout: toJsonStdout(result) };
254104
254104
  }
254105
254105
  function getSandboxRunCommandCommand() {
254106
- return new Base44Command("run-command").description("Run a shell command in an app's remote sandbox").argument("<command...>", "Shell command to execute (quote to keep as one)").option("--cwd <path>", "Working directory relative to the app root").option("--timeout-ms <n>", "Timeout in milliseconds (default 120000, max 600000)").addHelpText("after", `
254106
+ return new Base44Command("run").description("Run a shell command in an app's remote sandbox").argument("<command...>", "Shell command to execute (quote to keep as one)").option("--cwd <path>", "Working directory relative to the app root").option("--timeout-ms <n>", "Timeout in milliseconds (default 120000, max 600000)").addHelpText("after", `
254107
254107
  Examples:
254108
- $ base44 sandbox run-command "npm test"
254109
- $ base44 sandbox run-command ls -la --cwd src`).action(runCommandAction);
254108
+ $ base44 sandbox run "npm test"
254109
+ $ base44 sandbox run ls -la --cwd src`).action(runCommandAction);
254110
254110
  }
254111
254111
 
254112
254112
  // src/cli/commands/sandbox/write-file.ts
@@ -254117,10 +254117,10 @@ async function writeFileAction({ runTask: runTask2 }, path17, options) {
254117
254117
  return { outroMessage: "Wrote file", stdout: toJsonStdout(result) };
254118
254118
  }
254119
254119
  function getSandboxWriteFileCommand() {
254120
- return new Base44Command("write-file").description("Create or overwrite a file in an app's remote sandbox").argument("<path>", "File path relative to the app root").option("--content <content>", "File content (if omitted, read from stdin)").option("--overwrite", "Overwrite the file if it already exists").addHelpText("after", `
254120
+ return new Base44Command("write").description("Create or overwrite a file in an app's remote sandbox").argument("<path>", "File path relative to the app root").option("--content <content>", "File content (if omitted, read from stdin)").option("--overwrite", "Overwrite the file if it already exists").addHelpText("after", `
254121
254121
  Examples:
254122
- $ echo "hello" | base44 sandbox write-file notes.txt
254123
- $ base44 sandbox write-file notes.txt --content "hello" --overwrite`).action(writeFileAction);
254122
+ $ echo "hello" | base44 sandbox write notes.txt
254123
+ $ base44 sandbox write notes.txt --content "hello" --overwrite`).action(writeFileAction);
254124
254124
  }
254125
254125
 
254126
254126
  // src/cli/commands/sandbox/index.ts
@@ -262450,4 +262450,4 @@ export {
262450
262450
  CLIExitError
262451
262451
  };
262452
262452
 
262453
- //# debugId=AF2F482BE60A660F64756E2164756E21
262453
+ //# debugId=A515814FA03CE85F64756E2164756E21