replicas-cli 0.3.471 → 0.3.473
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 +9 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21775,7 +21775,7 @@ function workspaceConfigWithCapabilities(config3, capabilities = {}) {
|
|
|
21775
21775
|
function workspaceConfigWithPrFollowups(config3, prFollowups = config3?.capabilities?.pr_followups === true) {
|
|
21776
21776
|
return workspaceConfigWithCapabilities(config3, { pr_followups: prFollowups });
|
|
21777
21777
|
}
|
|
21778
|
-
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21778
|
+
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_KINDS, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21779
21779
|
var init_workspaces = __esm({
|
|
21780
21780
|
"../shared/src/routes/workspaces.ts"() {
|
|
21781
21781
|
"use strict";
|
|
@@ -21799,6 +21799,7 @@ var init_workspaces = __esm({
|
|
|
21799
21799
|
line: "This workspace was paused because your organization reached its usage limit for this period. An admin can raise or remove it in billing settings."
|
|
21800
21800
|
}
|
|
21801
21801
|
};
|
|
21802
|
+
WORKSPACE_KINDS = ["standard", "mothership", "scout"];
|
|
21802
21803
|
WORKSPACE_SIDEBAR_VIEWS = ["owned", "shared", "team", "automated"];
|
|
21803
21804
|
WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
21804
21805
|
DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
@@ -21836,7 +21837,7 @@ var init_workspace_search = __esm({
|
|
|
21836
21837
|
viewModes: [...WORKSPACE_SIDEBAR_VIEWS].sort().join(","),
|
|
21837
21838
|
archived: "include",
|
|
21838
21839
|
excludeScout: "true",
|
|
21839
|
-
|
|
21840
|
+
excludeMothershipShips: "true",
|
|
21840
21841
|
excludeAutomationRuns: "true",
|
|
21841
21842
|
page: 1,
|
|
21842
21843
|
limit: 1e3
|
|
@@ -26296,7 +26297,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
26296
26297
|
| --- | --- |
|
|
26297
26298
|
| \`replicas whoami\` | Print the workspace + org identity |
|
|
26298
26299
|
| \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
|
|
26299
|
-
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces |
|
|
26300
|
+
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only Motherships |
|
|
26300
26301
|
| \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
|
|
26301
26302
|
| \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
|
|
26302
26303
|
| \`replicas identity aws-credentials --role-arn <arn> [--region <region>] [--source-identity]\` | Exchange the current token for AWS credential_process JSON (requires AWS CLI); \`--source-identity\` records the workspace ID in CloudTrail and needs \`sts:SetSourceIdentity\` in the role trust policy |
|
|
@@ -39629,7 +39630,7 @@ var CLI_VERSION;
|
|
|
39629
39630
|
var init_cli_version = __esm({
|
|
39630
39631
|
"../shared/src/cli-version.ts"() {
|
|
39631
39632
|
"use strict";
|
|
39632
|
-
CLI_VERSION = "0.3.
|
|
39633
|
+
CLI_VERSION = "0.3.473";
|
|
39633
39634
|
}
|
|
39634
39635
|
});
|
|
39635
39636
|
|
|
@@ -54035,6 +54036,7 @@ async function replicaListCommand(options) {
|
|
|
54035
54036
|
const params = new URLSearchParams();
|
|
54036
54037
|
if (options.page) params.set("page", options.page);
|
|
54037
54038
|
if (options.limit) params.set("limit", options.limit);
|
|
54039
|
+
if (options.kind) params.set("kind", options.kind);
|
|
54038
54040
|
const query = params.toString();
|
|
54039
54041
|
const response = await orgAuthenticatedFetch(
|
|
54040
54042
|
`/v1/replica${query ? "?" + query : ""}`
|
|
@@ -54048,7 +54050,7 @@ async function replicaListCommand(options) {
|
|
|
54048
54050
|
Replicas (Page ${response2.page} of ${response2.total_pages}, Total: ${response2.total}):
|
|
54049
54051
|
`));
|
|
54050
54052
|
for (const replica of response2.replicas) {
|
|
54051
|
-
console.log(import_chalk22.default.white(` ${replica.name}`));
|
|
54053
|
+
console.log(import_chalk22.default.white(` ${replica.name}`) + (replica.kind === "standard" ? "" : import_chalk22.default.magenta(` [${replica.kind}]`)));
|
|
54052
54054
|
console.log(import_chalk22.default.gray(` ID: ${replica.id}`));
|
|
54053
54055
|
if (replica.repositories.length > 0) {
|
|
54054
54056
|
console.log(import_chalk22.default.gray(` Repositories: ${replica.repositories.map((repository) => repository.name).join(", ")}`));
|
|
@@ -54073,6 +54075,7 @@ async function replicaGetCommand(id) {
|
|
|
54073
54075
|
Replica: ${replica.name}
|
|
54074
54076
|
`));
|
|
54075
54077
|
console.log(import_chalk22.default.gray(` ID: ${replica.id}`));
|
|
54078
|
+
console.log(import_chalk22.default.gray(` Kind: ${replica.kind}`));
|
|
54076
54079
|
if (replica.repositories.length > 0) {
|
|
54077
54080
|
console.log(import_chalk22.default.gray(` Repositories: ${replica.repositories.map((repository) => repository.name).join(", ")}`));
|
|
54078
54081
|
}
|
|
@@ -57550,7 +57553,7 @@ var init_src2 = __esm({
|
|
|
57550
57553
|
config2.command("get <key>").description("Get a configuration value").action(run(configGetCommand));
|
|
57551
57554
|
config2.command("set <key> <value>").description("Set a configuration value").action(run(configSetCommand));
|
|
57552
57555
|
config2.command("list").description("List all configuration values").action(run(configListCommand));
|
|
57553
|
-
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));
|
|
57556
|
+
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").addOption(new import_commander.Option("-k, --kind <kind>", "Only list replicas of this kind").choices(WORKSPACE_KINDS)).action(run(replicaListCommand));
|
|
57554
57557
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
57555
57558
|
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));
|
|
57556
57559
|
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));
|