replicas-cli 0.3.137 → 0.3.139
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/index.cjs +13 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29023,7 +29023,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
29023
29023
|
});
|
|
29024
29024
|
|
|
29025
29025
|
// ../shared/src/cli-version.ts
|
|
29026
|
-
var CLI_VERSION = "0.3.
|
|
29026
|
+
var CLI_VERSION = "0.3.139";
|
|
29027
29027
|
|
|
29028
29028
|
// ../shared/src/version.ts
|
|
29029
29029
|
function compareVersions(v1, v2) {
|
|
@@ -35667,16 +35667,18 @@ ${VISUAL_PAGE_RULES}`).action(run(visualizeCommand));
|
|
|
35667
35667
|
media.command("share <mediaId>").description("Rotate an image's public forge URL, or create one for video or audio media").action(run(mediaShareCommand));
|
|
35668
35668
|
media.command("revoke <mediaId>").description("Revoke the public forge URL for uploaded media").action(run(mediaRevokeCommand));
|
|
35669
35669
|
media.command("delete <mediaId>").description("Permanently delete media uploaded by this workspace").action(run(mediaDeleteCommand));
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
|
|
35674
|
-
|
|
35675
|
-
|
|
35676
|
-
|
|
35677
|
-
|
|
35678
|
-
|
|
35679
|
-
|
|
35670
|
+
if (!process.env.REPLICAS_GPU_DISABLED) {
|
|
35671
|
+
const gpu = program.command("gpu").description("Run commands on cloud GPU sandboxes (billed at cost to your organization)");
|
|
35672
|
+
const addCreateOptions = (command) => command.option("-g, --gpu <type>", `GPU type with an optional count: ${GPU_TYPES.join(", ")}, e.g. H100:2 (default ${DEFAULT_GPU_TYPE})`).option("-i, --image <image>", `Public registry image (default ${DEFAULT_GPU_IMAGE})`).option("-t, --timeout <duration>", "Maximum lifetime, e.g. 90m or 4h (default 1h, max 24h)").option("--idle-timeout <duration>", "Stop after this long with no running command (default 10m, max 1h)").option("-p, --port <port>", "Expose a container port as a public HTTPS URL (repeatable)", collect, []).option("-e, --env <KEY=value>", "Environment variable for the sandbox (repeatable)", collect, []);
|
|
35673
|
+
addCreateOptions(gpu.command("create")).description("Start a GPU sandbox and wait until it is running").option("--no-wait", "Return while the sandbox is still starting").action(run(gpuCreateCommand));
|
|
35674
|
+
gpu.command("list").description("List the running GPU sandboxes of this workspace").action(run(gpuListCommand));
|
|
35675
|
+
gpu.command("exec [command...]").description("Run a shell command in a GPU sandbox and stream its output: replicas gpu exec -- python train.py").option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").option("-w, --workdir <dir>", `Working directory (default ${COMPUTE_SANDBOX_WORKDIR})`).option("-e, --env <KEY=value>", "Environment variable for the command (repeatable)", collect, []).option("-d, --detach", 'Run in the background and print a job ID for "replicas gpu logs"').action(run(gpuExecCommand));
|
|
35676
|
+
gpu.command("logs <jobId>").description("Print the output of a detached job").option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").option("-f, --follow", "Stream until the job exits and exit with its code").action(run(gpuLogsCommand));
|
|
35677
|
+
gpu.command("push [local] [remote]").description(`Copy a local file or directory into a GPU sandbox (default . to ${COMPUTE_SANDBOX_WORKDIR}); git repositories honor .gitignore`).option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").action(run(gpuPushCommand));
|
|
35678
|
+
gpu.command("pull <remote> [local]").description("Copy a file or directory out of a GPU sandbox into a local directory (default .)").option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").action(run(gpuPullCommand));
|
|
35679
|
+
addCreateOptions(gpu.command("run [command...]")).description("Start a GPU sandbox, copy the current directory in, run a command, then stop it: replicas gpu run --gpu H100 -- python train.py").option("--pull <path>", `Copy a path (relative to ${COMPUTE_SANDBOX_WORKDIR}) back into the current directory afterwards (repeatable)`, collect, []).option("--keep", "Keep the sandbox running afterwards").action(run(gpuRunCommand));
|
|
35680
|
+
gpu.command("delete [id]").description("Stop a GPU sandbox").option("-s, --sandbox <id>", "Sandbox ID (defaults to the only running sandbox)").action(run(gpuDeleteCommand));
|
|
35681
|
+
}
|
|
35680
35682
|
program.command("history").description("Read past session history").command("transcript <name>").description("Download the full transcript of a session in INDEX.md and print its path").action(run(historyTranscriptCommand));
|
|
35681
35683
|
skills.command("suggest <file>").description("Suggest saving a SKILL.md as an organization skill; the user reviews it before it is saved").requiredOption("--title <text>", 'Short title shown to the user, e.g. "Always use Conventional Commits"').action(run(skillsSuggestCommand));
|
|
35682
35684
|
program.command("computer").description("Drive the workspace Linux desktop through replicas-computer");
|