replicas-cli 0.3.536 → 0.3.539
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 +53 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21145,8 +21145,8 @@ var init_preview_host = __esm({
|
|
|
21145
21145
|
});
|
|
21146
21146
|
|
|
21147
21147
|
// ../shared/src/sandbox.ts
|
|
21148
|
-
function
|
|
21149
|
-
return
|
|
21148
|
+
function isWorkspaceSizeOption(value) {
|
|
21149
|
+
return WORKSPACE_SIZE_OPTIONS.some((size) => size === value);
|
|
21150
21150
|
}
|
|
21151
21151
|
function trimLogTailCommand(file2, maxBytes, keepBytes) {
|
|
21152
21152
|
return `size=$(stat -c %s ${file2} 2>/dev/null || echo 0); [ "$size" -gt ${maxBytes} ] && { fallocate --collapse-range --offset 0 --length $(( (size - ${keepBytes}) / 4096 * 4096 )) ${file2} 2>/dev/null || truncate -s 0 ${file2}; }`;
|
|
@@ -24559,7 +24559,7 @@ var init_gpu = __esm({
|
|
|
24559
24559
|
init_compute();
|
|
24560
24560
|
COMPUTE_SANDBOX_WORKDIR = COMPUTE_SANDBOX_WORKDIRS.gpu;
|
|
24561
24561
|
SECTION6 = `### GPU sandboxes
|
|
24562
|
-
Run GPU workloads (training, inference, CUDA builds, rendering) on cloud GPU sandboxes with \`replicas gpu\`. The workspace itself has no GPU.
|
|
24562
|
+
Run GPU workloads (training, inference, CUDA builds, rendering) on cloud GPU sandboxes with \`replicas gpu\`. The workspace itself has no GPU, but GPU sandboxes are available when a task needs one.
|
|
24563
24563
|
|
|
24564
24564
|
**Reference:** \`references/GPU.md\`
|
|
24565
24565
|
|
|
@@ -24597,6 +24597,41 @@ replicas gpu delete
|
|
|
24597
24597
|
- \`--port 8000\` on create exposes a container port as a public HTTPS URL (shown by \`list\`).
|
|
24598
24598
|
- \`--env KEY=value\` passes secrets such as \`HF_TOKEN\`; never bake them into files you push.
|
|
24599
24599
|
|
|
24600
|
+
## GPU-accelerated browser
|
|
24601
|
+
|
|
24602
|
+
The workspace's browser renders WebGL in software. Chrome in a GPU sandbox also uses software rendering unless it gets the flags below. If you need a page rendered on a real GPU, push a production build and serve it inside the sandbox. The sandbox carries no Replicas login, so it can only open a preview URL (\`references/PREVIEWS.md\`) created without \`--authenticated\`, which anyone with the link can open: ask the user before making a private app public that way, and never recreate an existing authenticated preview without the flag. Then run Playwright in a GPU sandbox:
|
|
24603
|
+
|
|
24604
|
+
\`\`\`bash
|
|
24605
|
+
mkdir -p /tmp/gpu-browser && cd /tmp/gpu-browser
|
|
24606
|
+
cat > fps.mjs <<'EOF'
|
|
24607
|
+
import { chromium } from 'playwright';
|
|
24608
|
+
import { mkdirSync } from 'node:fs';
|
|
24609
|
+
// Without these flags Chrome falls back to SwiftShader, a software renderer.
|
|
24610
|
+
const browser = await chromium.launch({ args: ['--use-angle=vulkan', '--enable-features=Vulkan', '--ignore-gpu-blocklist'] });
|
|
24611
|
+
const page = await browser.newPage({ viewport: { width: 1280, height: 720 } });
|
|
24612
|
+
await page.goto(process.argv[2], { waitUntil: 'networkidle' });
|
|
24613
|
+
const result = await page.evaluate(async () => {
|
|
24614
|
+
const gl = document.createElement('canvas').getContext('webgl');
|
|
24615
|
+
const info = gl?.getExtension('WEBGL_debug_renderer_info');
|
|
24616
|
+
const renderer = info ? gl.getParameter(info.UNMASKED_RENDERER_WEBGL) : 'no WebGL';
|
|
24617
|
+
const frames = [];
|
|
24618
|
+
await new Promise((done) => {
|
|
24619
|
+
const tick = (t) => { frames.push(t); frames.at(-1) - frames[0] < 5000 ? requestAnimationFrame(tick) : done(); };
|
|
24620
|
+
requestAnimationFrame(tick);
|
|
24621
|
+
});
|
|
24622
|
+
const gaps = frames.slice(1).map((t, i) => t - frames[i]).sort((a, b) => a - b);
|
|
24623
|
+
return { renderer, fps: Math.round((frames.length - 1) / 5), p95FrameMs: Math.round(gaps[Math.floor(gaps.length * 0.95)]) };
|
|
24624
|
+
});
|
|
24625
|
+
console.log(JSON.stringify(result));
|
|
24626
|
+
mkdirSync('outputs', { recursive: true });
|
|
24627
|
+
await page.screenshot({ path: 'outputs/frame.png' });
|
|
24628
|
+
await browser.close();
|
|
24629
|
+
EOF
|
|
24630
|
+
replicas gpu run --image mcr.microsoft.com/playwright:v1.49.0-noble --pull outputs -- "npm i playwright@1.49.0 >/dev/null && node fps.mjs https://<preview-url>/<page>"
|
|
24631
|
+
\`\`\`
|
|
24632
|
+
|
|
24633
|
+
Check that \`renderer\` names the NVIDIA GPU; one naming SwiftShader means the page ran in software. \`fps\` counts the browser's frame callbacks, which is the most the page can draw; a game that skips frames draws fewer, so read its own frame counter (or count calls to its render function) when it has one. Add the interactions the page needs (clicks, waits for a scene to load) before measuring, and keep the Playwright package version matching the image tag.
|
|
24634
|
+
|
|
24600
24635
|
## Choosing hardware and images
|
|
24601
24636
|
|
|
24602
24637
|
- GPUs, picked with \`--gpu\`: ${GPU_TYPES.join(", ")} (default ${DEFAULT_GPU_TYPE}). Add a count for multi-GPU, e.g. \`H100:4\` (max ${COMPUTE_SANDBOX_LIMITS.maxGpuCount}). Pick the smallest GPU that fits: T4/L4 for small models and smoke tests, A100/H100 for real training.
|
|
@@ -24613,7 +24648,7 @@ replicas gpu delete
|
|
|
24613
24648
|
GPU_ABILITY = {
|
|
24614
24649
|
label: "GPU sandboxes",
|
|
24615
24650
|
description: "Run training, inference, and other GPU workloads on cloud GPUs with `replicas gpu`.",
|
|
24616
|
-
bullet: "- Running GPU workloads (training, inference, CUDA, rendering) on cloud GPU sandboxes with `replicas gpu`",
|
|
24651
|
+
bullet: "- Running GPU workloads (training, inference, CUDA, rendering) on cloud GPU sandboxes with `replicas gpu` (this workspace has no GPU of its own)",
|
|
24617
24652
|
section: SECTION6,
|
|
24618
24653
|
referenceFile: { name: "GPU.md", content: REFERENCE6 }
|
|
24619
24654
|
};
|
|
@@ -26270,7 +26305,7 @@ replicas automation edit <id> \\
|
|
|
26270
26305
|
--name "..." \\
|
|
26271
26306
|
--description "..." \\
|
|
26272
26307
|
--prompt "..." \\
|
|
26273
|
-
--size small|large|ultra \\
|
|
26308
|
+
--size small|large|ultra|auto \\
|
|
26274
26309
|
--enabled true|false \\
|
|
26275
26310
|
--environment <env-name-or-id> \\
|
|
26276
26311
|
--trigger-cron "0 4 * * *" # replaces existing triggers
|
|
@@ -27234,6 +27269,7 @@ var init_plugin_catalog = __esm({
|
|
|
27234
27269
|
["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
|
|
27235
27270
|
["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
|
|
27236
27271
|
["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
|
|
27272
|
+
["fireflies", "fireflies", "API_KEY", false, "productivity", "Fireflies"],
|
|
27237
27273
|
["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
|
|
27238
27274
|
["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
|
|
27239
27275
|
["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
|
|
@@ -27590,7 +27626,7 @@ var init_replicas_mcp = __esm({
|
|
|
27590
27626
|
agent_provider: external_exports.enum(ENGINE_AGENT_PROVIDERS).nullable().optional(),
|
|
27591
27627
|
model: external_exports.string().nullable().optional(),
|
|
27592
27628
|
thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
27593
|
-
workspace_size: external_exports.enum(
|
|
27629
|
+
workspace_size: external_exports.enum(WORKSPACE_SIZE_OPTIONS).optional(),
|
|
27594
27630
|
credential_user_id: external_exports.string().nullable().optional().describe(`${credentialUserIdDescription} Null switches back to the organization's.`),
|
|
27595
27631
|
background: automationBackgroundSchema,
|
|
27596
27632
|
scope: external_exports.literal("org").optional().describe("`org` moves a personal automation to the organization so teammates can see and edit it. It cannot be moved back.")
|
|
@@ -27919,7 +27955,7 @@ function parseMessageOrigin(raw) {
|
|
|
27919
27955
|
const automation2 = raw.match(SCHEDULED_FOLLOW_UP);
|
|
27920
27956
|
return automation2 ? { kind: "automation", id: automation2[2], name: automation2[1].trim(), body: stripReplicasInstructionBlock(raw.slice(automation2[0].length)) } : null;
|
|
27921
27957
|
}
|
|
27922
|
-
var UUID, WORKSPACE_SENDER, BOARD_ANSWER, AUTOMATION_RUN_PREFIX, AUTOMATION_RUN, SCHEDULED_NOTE, SCHEDULED_FOLLOW_UP;
|
|
27958
|
+
var UUID, WORKSPACE_SENDER_LINE, WORKSPACE_SENDER, BOARD_ANSWER, AUTOMATION_RUN_PREFIX, AUTOMATION_RUN, SCHEDULED_NOTE, SCHEDULED_FOLLOW_UP;
|
|
27923
27959
|
var init_message_origin = __esm({
|
|
27924
27960
|
"../shared/src/message-origin.ts"() {
|
|
27925
27961
|
"use strict";
|
|
@@ -27928,7 +27964,8 @@ var init_message_origin = __esm({
|
|
|
27928
27964
|
init_type_guards();
|
|
27929
27965
|
init_uuid();
|
|
27930
27966
|
UUID = UUID_RE.source.slice(1, -1);
|
|
27931
|
-
|
|
27967
|
+
WORKSPACE_SENDER_LINE = String.raw`<${REPLICAS_INSTRUCTIONS_TAG}>\nFrom the workspace ("(?:[^"\\\n]|\\.)*") \((${UUID})\)\.\n</${REPLICAS_INSTRUCTIONS_TAG}>`;
|
|
27968
|
+
WORKSPACE_SENDER = new RegExp(String.raw`^\s*${WORKSPACE_SENDER_LINE}`);
|
|
27932
27969
|
BOARD_ANSWER = new RegExp(String.raw`^\s*(?:<${REPLICAS_INSTRUCTIONS_TAG}>\nFrom [^\n]*\n</${REPLICAS_INSTRUCTIONS_TAG}>\s*)?<${REPLICAS_INSTRUCTIONS_TAG}>\n${BOARD_ANSWER_NOTE.replace(/\./g, "\\.")}\n</${REPLICAS_INSTRUCTIONS_TAG}>`);
|
|
27933
27970
|
AUTOMATION_RUN_PREFIX = "Automation run: ";
|
|
27934
27971
|
AUTOMATION_RUN = new RegExp(String.raw`^\s*(?:<${REPLICAS_INSTRUCTIONS_TAG}>\n[^\n]*\n</${REPLICAS_INSTRUCTIONS_TAG}>\s*)*?<${REPLICAS_INSTRUCTIONS_TAG}>\n${AUTOMATION_RUN_PREFIX}(\{[^\n]*\})\n</${REPLICAS_INSTRUCTIONS_TAG}>`);
|
|
@@ -40345,7 +40382,7 @@ var CLI_VERSION;
|
|
|
40345
40382
|
var init_cli_version = __esm({
|
|
40346
40383
|
"../shared/src/cli-version.ts"() {
|
|
40347
40384
|
"use strict";
|
|
40348
|
-
CLI_VERSION = "0.3.
|
|
40385
|
+
CLI_VERSION = "0.3.539";
|
|
40349
40386
|
}
|
|
40350
40387
|
});
|
|
40351
40388
|
|
|
@@ -54956,7 +54993,8 @@ async function replicaSendCommand(id, options) {
|
|
|
54956
54993
|
thinking_level: options.thinkingLevel,
|
|
54957
54994
|
plan_mode: options.plan,
|
|
54958
54995
|
goal_mode: options.goal,
|
|
54959
|
-
fast_mode: options.fast
|
|
54996
|
+
fast_mode: options.fast,
|
|
54997
|
+
...options.reply ? {} : { expect_reply: false }
|
|
54960
54998
|
};
|
|
54961
54999
|
if (options.agent) {
|
|
54962
55000
|
body2.coding_agent = parseReplicaAgent(options.agent);
|
|
@@ -55539,8 +55577,8 @@ function parseWorkspaceLifecyclePolicyOption(value) {
|
|
|
55539
55577
|
}
|
|
55540
55578
|
function parseWorkspaceSizeOption(value) {
|
|
55541
55579
|
if (value === void 0) return void 0;
|
|
55542
|
-
if (
|
|
55543
|
-
throw new Error(`Invalid --size: ${value}. Valid options: ${
|
|
55580
|
+
if (isWorkspaceSizeOption(value)) return value;
|
|
55581
|
+
throw new Error(`Invalid --size: ${value}. Valid options: ${WORKSPACE_SIZE_OPTIONS.join(", ")}`);
|
|
55544
55582
|
}
|
|
55545
55583
|
function parseActorListOption(value) {
|
|
55546
55584
|
if (value === void 0) return void 0;
|
|
@@ -58462,7 +58500,7 @@ var init_src2 = __esm({
|
|
|
58462
58500
|
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));
|
|
58463
58501
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
58464
58502
|
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));
|
|
58465
|
-
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));
|
|
58503
|
+
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").option("--no-reply", "From a workspace: don't return the recipient's reply to this chat").action(run(replicaSendCommand));
|
|
58466
58504
|
program.command("delete <id>").description("Delete a replica").option("-f, --force", "Skip confirmation prompt").action(run(replicaDeleteCommand));
|
|
58467
58505
|
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));
|
|
58468
58506
|
program.command("rename <id> <name>").description("Rename a replica (quote names with spaces)").action(run(workspaceRenameCommand));
|
|
@@ -58519,8 +58557,8 @@ var init_src2 = __esm({
|
|
|
58519
58557
|
automation = program.command("automation").alias("auto").description("Manage automations");
|
|
58520
58558
|
automation.command("list").description("List all automations").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").option("--owner <owner>", "Ownership filter: org, user, all").option("--trigger-type <type>", "Only automations with a trigger of this type (cron, github, gitlab, slack, sentry, linear, custom)").option("--enabled <enabled>", "Only enabled or disabled automations (true/false)").option("--search <search>", "Case-insensitive substring match on the name").option("--background <background>", "Only background (true) or main-list (false) automations").action(run(automationListCommand));
|
|
58521
58559
|
automation.command("get <id>").description("Get automation details by ID").action(run(automationGetCommand));
|
|
58522
|
-
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-d, --description <description>", "Description shown with the automation").option("-e, --environment <environment>", "Environment name or ID").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small (default), large, ultra").option("--trigger-cron <schedule>", 'Cron schedule expression, e.g. "0 9 * * 1-5" (repeatable)', collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules (default: UTC)").option("--trigger-github <event>", 'GitHub event, e.g. "pull_request.opened" (repeatable)', collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", 'GitLab event, e.g. "merge_request.opened" (repeatable)', collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups", "Allow follow-up actions on matching PRs").option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--plan-mode", "Run automation messages in plan mode").option("--goal-mode", "Set automation messages as goals").option("--fast-mode", "Run automation messages in fast mode").option("--personal", "Create a personal automation owned by the authenticated user").option("--in <duration>", "Run once after this long, e.g. 30m, 2h, 3d, 1w (inside a workspace, defaults --workspace to current)").option("--at <datetime>", "Run once at this ISO-8601 time with timezone, e.g. 2026-10-08T09:00:00-07:00").option("--max-runs <n>", 'Delete the automation after this many runs ("none" for unlimited)').option("--workspace <target>", "Where runs go: new (default, new workspace each run), reuse (one workspace for every run), current (this workspace), or a workspace ID").option("--background", "Mark this as an AI agent's own automation (a reminder, follow-up or recurring check-in for its task). Kept out of the main automations list").option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email (organization automations only)").option("--disabled", "Create in disabled state").action(run((name, options) => automationCreateCommand(name, { ...options, enabled: !options.disabled })));
|
|
58523
|
-
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-d, --description <description>", "New description (pass empty string to clear)").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra").option("--enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules").option("--trigger-github <event>", "Set GitHub event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", "Set GitLab event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--keep-triggers", "Add the --trigger-cron, --trigger-github, --trigger-gitlab, --in or --at triggers to the existing ones instead of replacing them").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (replaces the current list; pass empty string to remove them)").option("--add-github-checks <names>", "Comma-separated GitHub check names to add, keeping the ones already configured").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups <enabled>", "Allow follow-up actions on matching PRs (true/false)", parseBooleanOption).option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--plan-mode <enabled>", "Run automation messages in plan mode (true/false)", parseBooleanOption).option("--goal-mode <enabled>", "Set automation messages as goals (true/false)", parseBooleanOption).option("--fast-mode <enabled>", "Run automation messages in fast mode (true/false)", parseBooleanOption).option("--in <duration>", "Replace triggers with a one-time run after this long, e.g. 30m, 2h, 3d, 1w").option("--at <datetime>", "Replace triggers with a one-time run at this ISO-8601 time with timezone").option("--max-runs <n>", 'Delete the automation after this many runs in total ("none" for unlimited)').option("--workspace <target>", "Where runs go: new, reuse, current, or a workspace ID").option("--background <enabled>", "Keep it out of the main automations list (true/false)", parseBooleanOption).option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email, or org to use the organization's").option("--move-to-org", "Move a personal automation to the organization so teammates can see and edit it (cannot be undone)").action(run(automationEditCommand));
|
|
58560
|
+
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-d, --description <description>", "Description shown with the automation").option("-e, --environment <environment>", "Environment name or ID").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small (default), large, ultra, auto").option("--trigger-cron <schedule>", 'Cron schedule expression, e.g. "0 9 * * 1-5" (repeatable)', collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules (default: UTC)").option("--trigger-github <event>", 'GitHub event, e.g. "pull_request.opened" (repeatable)', collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", 'GitLab event, e.g. "merge_request.opened" (repeatable)', collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups", "Allow follow-up actions on matching PRs").option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--plan-mode", "Run automation messages in plan mode").option("--goal-mode", "Set automation messages as goals").option("--fast-mode", "Run automation messages in fast mode").option("--personal", "Create a personal automation owned by the authenticated user").option("--in <duration>", "Run once after this long, e.g. 30m, 2h, 3d, 1w (inside a workspace, defaults --workspace to current)").option("--at <datetime>", "Run once at this ISO-8601 time with timezone, e.g. 2026-10-08T09:00:00-07:00").option("--max-runs <n>", 'Delete the automation after this many runs ("none" for unlimited)').option("--workspace <target>", "Where runs go: new (default, new workspace each run), reuse (one workspace for every run), current (this workspace), or a workspace ID").option("--background", "Mark this as an AI agent's own automation (a reminder, follow-up or recurring check-in for its task). Kept out of the main automations list").option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email (organization automations only)").option("--disabled", "Create in disabled state").action(run((name, options) => automationCreateCommand(name, { ...options, enabled: !options.disabled })));
|
|
58561
|
+
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-d, --description <description>", "New description (pass empty string to clear)").option("--size <size>", "Size of workspaces runs create (not a reused existing one): small, large, ultra, auto").option("--enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-cron-timezone <timezone>", "Timezone for cron schedules").option("--trigger-github <event>", "Set GitHub event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").option("--trigger-github-reviewers <users>", "Comma-separated GitHub usernames to fire for (required with pull_request.review_requested)").option("--trigger-gitlab <event>", "Set GitLab event (repeatable; replaces existing triggers unless --keep-triggers)", collect, []).option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--keep-triggers", "Add the --trigger-cron, --trigger-github, --trigger-gitlab, --in or --at triggers to the existing ones instead of replacing them").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (replaces the current list; pass empty string to remove them)").option("--add-github-checks <names>", "Comma-separated GitHub check names to add, keeping the ones already configured").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle: delete_when_done (default for new automations except one-time ones), sleep_when_done, archive_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").option("--pr-followups <enabled>", "Allow follow-up actions on matching PRs (true/false)", parseBooleanOption).option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, xhigh, max (or "none" to clear)').option("--plan-mode <enabled>", "Run automation messages in plan mode (true/false)", parseBooleanOption).option("--goal-mode <enabled>", "Set automation messages as goals (true/false)", parseBooleanOption).option("--fast-mode <enabled>", "Run automation messages in fast mode (true/false)", parseBooleanOption).option("--in <duration>", "Replace triggers with a one-time run after this long, e.g. 30m, 2h, 3d, 1w").option("--at <datetime>", "Replace triggers with a one-time run at this ISO-8601 time with timezone").option("--max-runs <n>", 'Delete the automation after this many runs in total ("none" for unlimited)').option("--workspace <target>", "Where runs go: new, reuse, current, or a workspace ID").option("--background <enabled>", "Keep it out of the main automations list (true/false)", parseBooleanOption).option("--credentials <who>", "Run on your coding agent credentials before the organization's: me or your email, or org to use the organization's").option("--move-to-org", "Move a personal automation to the organization so teammates can see and edit it (cannot be undone)").action(run(automationEditCommand));
|
|
58524
58562
|
automation.command("run <id>").description("Manually trigger an automation (cron-triggered automations only)").action(run(automationRunCommand));
|
|
58525
58563
|
automation.command("delete <id>").description("Delete an automation").option("-f, --force", "Skip confirmation prompt").action(run(automationDeleteCommand));
|
|
58526
58564
|
automation.command("check <checkRunId>").description("Report this automation run's verdict on one of its GitHub checks").requiredOption("--token <token>", "Ownership token for this check, exactly as given in the prompt").requiredOption("--conclusion <conclusion>", "success or failure").requiredOption("--title <title>", "One-line verdict shown on the check").option("--summary <summary>", "What was checked and why it passed or failed").action(run(automationCheckCommand));
|