replicas-cli 0.3.406 → 0.3.407
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 +5 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37937,7 +37937,7 @@ var CLI_VERSION;
|
|
|
37937
37937
|
var init_cli_version = __esm({
|
|
37938
37938
|
"../shared/src/cli-version.ts"() {
|
|
37939
37939
|
"use strict";
|
|
37940
|
-
CLI_VERSION = "0.3.
|
|
37940
|
+
CLI_VERSION = "0.3.407";
|
|
37941
37941
|
}
|
|
37942
37942
|
});
|
|
37943
37943
|
|
|
@@ -52583,19 +52583,12 @@ async function replicaCreateCommand(name, options) {
|
|
|
52583
52583
|
const environmentInput = options.environment?.trim();
|
|
52584
52584
|
let selectedEnvironmentId = environmentInput === "global" ? (await orgAuthenticatedFetch("/v1/environments/global")).environment.id : environmentInput && await resolveEnvironmentId(environmentInput);
|
|
52585
52585
|
let codingAgent = parseReplicaAgent(options.agent);
|
|
52586
|
-
if (replicaName && /\s/.test(replicaName)) {
|
|
52587
|
-
throw new Error("Replica name cannot contain spaces.");
|
|
52588
|
-
}
|
|
52589
52586
|
if (!replicaName) {
|
|
52590
52587
|
const response2 = await ask({
|
|
52591
52588
|
type: "text",
|
|
52592
52589
|
name: "name",
|
|
52593
|
-
message: "Enter replica name
|
|
52594
|
-
validate: (value) =>
|
|
52595
|
-
if (!value.trim()) return "Name is required";
|
|
52596
|
-
if (/\s/.test(value)) return "Name cannot contain spaces";
|
|
52597
|
-
return true;
|
|
52598
|
-
}
|
|
52590
|
+
message: "Enter replica name:",
|
|
52591
|
+
validate: (value) => value.trim() ? true : "Name is required"
|
|
52599
52592
|
});
|
|
52600
52593
|
const answer = response2.name;
|
|
52601
52594
|
if (!answer) {
|
|
@@ -55852,11 +55845,11 @@ var init_src2 = __esm({
|
|
|
55852
55845
|
config2.command("list").description("List all configuration values").action(run(configListCommand));
|
|
55853
55846
|
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").action(run(replicaListCommand));
|
|
55854
55847
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
55855
|
-
program.command("create [name]").description("Create a new replica").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
55848
|
+
program.command("create [name]").description("Create a new replica (quote names with spaces)").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
55856
55849
|
program.command("send <id>").description("Send a message to a replica").option("-m, --message <message>", "Message to send").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").option("-c, --chat <chatId>", "Chat to send to (defaults to the main chat)").option("--model <model>", "Model to use for this message").addOption(new import_commander.Option("--thinking-level <level>", "Thinking/reasoning level").choices(VALID_THINKING_LEVELS)).option("--plan", "Run the message in plan mode").option("--goal", "Set the message as the chat goal").option("--fast", "Run the message in fast mode").action(run(replicaSendCommand));
|
|
55857
55850
|
program.command("delete <id>").description("Delete a replica").option("-f, --force", "Skip confirmation prompt").action(run(replicaDeleteCommand));
|
|
55858
55851
|
program.command("read <id>").description("Read conversation history of a replica").option("-l, --limit <limit>", "Maximum number of events to return, from the end").option("--before <cursor>", "Read the page before this cursor (see Has More output)").option("-b, --before-event <index>", "Read the page before this event index (older engines)").option("-c, --chat <chatId>", "Chat to read (defaults to the main chat)").action(run(replicaReadCommand));
|
|
55859
|
-
program.command("rename <id> <name>").description("Rename a replica").action(run(workspaceRenameCommand));
|
|
55852
|
+
program.command("rename <id> <name>").description("Rename a replica (quote names with spaces)").action(run(workspaceRenameCommand));
|
|
55860
55853
|
program.command("wake <id>").description("Wake a sleeping or archived replica").option("-r, --restore", "Restore an archived replica").action(run(workspaceWakeCommand));
|
|
55861
55854
|
program.command("sleep <id>").description("Put a replica to sleep").action(run(workspaceLifecycleCommand("sleep")));
|
|
55862
55855
|
program.command("archive <id>").description("Archive a replica").action(run(workspaceLifecycleCommand("archive")));
|