replicas-cli 0.3.364 → 0.3.365

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.
Files changed (2) hide show
  1. package/dist/index.cjs +167 -265
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -214,62 +214,7 @@ function getOrganizationMediaPath(organizationId, mediaId) {
214
214
  function getOrganizationMediaUrl(organizationId, mediaId, webAppUrl2 = DEFAULT_WEB_APP_URL) {
215
215
  return `${webAppUrl2}${getOrganizationMediaPath(organizationId, mediaId)}`;
216
216
  }
217
- function parsePrUrl(url2) {
218
- const match = url2.match(PR_URL_REGEX);
219
- if (!match) return null;
220
- const [, owner, repo, numberStr] = match;
221
- const number4 = Number.parseInt(numberStr, 10);
222
- if (!Number.isFinite(number4)) return null;
223
- return { owner, repo, number: number4 };
224
- }
225
- function parseCodeHostPrUrl(url2) {
226
- const github = parsePrUrl(url2);
227
- if (github) {
228
- return {
229
- ...github,
230
- provider: "github",
231
- host: "github.com",
232
- repositoryPath: `${github.owner}/${github.repo}`,
233
- repoUrl: `https://github.com/${github.owner}/${github.repo}`
234
- };
235
- }
236
- let parsed;
237
- try {
238
- parsed = new URL(url2);
239
- } catch {
240
- return null;
241
- }
242
- if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return null;
243
- const segments = parsed.pathname.split("/").filter(Boolean);
244
- const separatorIndex = segments.indexOf("-");
245
- if (separatorIndex <= 0 || segments[separatorIndex + 1] !== "merge_requests") return null;
246
- const number4 = Number.parseInt(segments[separatorIndex + 2] ?? "", 10);
247
- if (!Number.isFinite(number4)) return null;
248
- const repositorySegments = decodePathSegments(segments.slice(0, separatorIndex));
249
- const repo = repositorySegments[repositorySegments.length - 1];
250
- const owner = repositorySegments[0];
251
- if (!owner || !repo) return null;
252
- const repositoryPath = repositorySegments.join("/");
253
- return {
254
- provider: "gitlab",
255
- host: parsed.host.toLowerCase(),
256
- owner,
257
- repo,
258
- number: number4,
259
- repositoryPath,
260
- repoUrl: `${parsed.origin}/${repositoryPath}`
261
- };
262
- }
263
- function decodePathSegments(segments) {
264
- return segments.map((segment) => {
265
- try {
266
- return decodeURIComponent(segment);
267
- } catch {
268
- return segment;
269
- }
270
- });
271
- }
272
- var DEFAULT_WEB_APP_URL, DEFAULT_SUPABASE_URL, DEFAULT_SUPABASE_ANON_KEY, DASHBOARD_PATH, WEB_APP_PATHS, UUID_PATTERN, APP_LINK_PATHS, APP_LINK_PATTERNS, LEGACY_WEB_APP_PATHS, MEMBER_MENTION_PATTERN, PR_URL_REGEX;
217
+ var DEFAULT_WEB_APP_URL, DEFAULT_SUPABASE_URL, DEFAULT_SUPABASE_ANON_KEY, DASHBOARD_PATH, WEB_APP_PATHS, UUID_PATTERN, APP_LINK_PATHS, APP_LINK_PATTERNS, LEGACY_WEB_APP_PATHS, MEMBER_MENTION_PATTERN;
273
218
  var init_urls = __esm({
274
219
  "../shared/src/urls.ts"() {
275
220
  "use strict";
@@ -323,7 +268,6 @@ var init_urls = __esm({
323
268
  dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
324
269
  };
325
270
  MEMBER_MENTION_PATTERN = new RegExp(String.raw`\[@((?:[^\]\\\n]|\\.)+)\]\(https?://[^\s/)]+${WEB_APP_PATHS.members}\?user=([0-9a-f-]{36})\)`, "g");
326
- PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
327
271
  }
328
272
  });
329
273
 
@@ -13664,9 +13608,9 @@ function codePointLengthVar(doc, ctx, accessor, inDoubt) {
13664
13608
  doc.write(`const ${v} = typeof ${accessor} === "string" && ${inDoubt} ? ${cpLen}(${accessor}) : ${accessor}.length;`);
13665
13609
  return v;
13666
13610
  }
13667
- function numericOperand(value, label2) {
13611
+ function numericOperand(value, label) {
13668
13612
  if (typeof value !== "number" || !Number.isFinite(value)) {
13669
- throw new ZodCompileUnsupportedError(`${label2} bound of type ${typeof value}`);
13613
+ throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof value}`);
13670
13614
  }
13671
13615
  return `${value}`;
13672
13616
  }
@@ -21623,7 +21567,7 @@ var init_fallback_chains = __esm({
21623
21567
  fallbackHarnessStepSchema
21624
21568
  ]);
21625
21569
  fallbackPlanResponseSchema = external_exports.object({
21626
- steps: external_exports.array(external_exports.unknown()).transform((steps2) => steps2.flatMap((step) => fallbackPlanStepSchema.safeParse(step).data ?? []))
21570
+ steps: external_exports.array(external_exports.unknown()).transform((steps) => steps.flatMap((step) => fallbackPlanStepSchema.safeParse(step).data ?? []))
21627
21571
  });
21628
21572
  }
21629
21573
  });
@@ -23024,7 +22968,7 @@ var init_environment = __esm({
23024
22968
  });
23025
22969
 
23026
22970
  // ../shared/src/replicas-mcp.ts
23027
- var REPLICAS_MCP_TOOLS, automationToolInputSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, createEnvironmentDeviceToolInputSchema;
22971
+ var REPLICAS_MCP_TOOLS, automationToolInputSchema, automationBackgroundSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, createEnvironmentDeviceToolInputSchema;
23028
22972
  var init_replicas_mcp = __esm({
23029
22973
  "../shared/src/replicas-mcp.ts"() {
23030
22974
  "use strict";
@@ -23068,6 +23012,7 @@ var init_replicas_mcp = __esm({
23068
23012
  waitForSubagents: "wait_for_subagents",
23069
23013
  getBoard: "get_board",
23070
23014
  updateBoard: "update_board",
23015
+ updateTicket: "update_ticket",
23071
23016
  sendToChat: "send_to_chat",
23072
23017
  getLinearRouting: "get_linear_routing",
23073
23018
  setLinearRouting: "set_linear_routing",
@@ -23105,7 +23050,11 @@ var init_replicas_mcp = __esm({
23105
23050
  "What happens to a run's workspace when the agent finishes. `delete_when_done` (default, except one-time runs, which default to `default`) when the output lives elsewhere (PR comments, checks, Slack posts); `sleep_when_done` when later runs reuse the workspace, like one per PR across pushes; `default` (keep alive) when people follow up in the workspace."
23106
23051
  )
23107
23052
  });
23053
+ automationBackgroundSchema = external_exports.boolean().optional().describe(
23054
+ "Marks 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."
23055
+ );
23108
23056
  automationCreateToolInputSchema = automationToolInputSchema.extend({
23057
+ background: automationBackgroundSchema,
23109
23058
  scope: external_exports.enum(["org", "user"]).optional().describe("`org` (default) or `user` for a personal automation, which needs a personal API key.")
23110
23059
  });
23111
23060
  automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
@@ -23115,6 +23064,7 @@ var init_replicas_mcp = __esm({
23115
23064
  model: external_exports.string().nullable().optional(),
23116
23065
  thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable().optional(),
23117
23066
  workspace_size: external_exports.enum(WORKSPACE_SIZES).optional(),
23067
+ background: automationBackgroundSchema,
23118
23068
  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.")
23119
23069
  });
23120
23070
  chatPath = { id: external_exports.string().describe("Workspace ID"), chat_id: external_exports.string().describe("Chat ID") };
@@ -25510,6 +25460,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
25510
25460
  | "What automations do I have?" | \`replicas automation list\` |
25511
25461
  | "Run my nightly automation now" | \`replicas automation run <id>\` |
25512
25462
  | "Check back on this in a week" | \`replicas automation create ... --in 1w --background --personal\` |
25463
+ | "Check this daily for a week" | \`replicas automation create ... --trigger-cron "0 9 * * *" --max-runs 7 --workspace current --background --personal\` |
25513
25464
  | "Make an automation that runs every weekday at 9am" | \`replicas automation create\` (interactive) or \`--trigger-cron "0 9 * * 1-5"\` |
25514
25465
  | "Make an automation that runs when a PR opens on \`acme/web\`" | \`replicas automation create ... --trigger-github pull_request.opened --trigger-github-repos acme/web\` |
25515
25466
  | "Make an automation that runs when an MR opens on \`acme/web\`" | \`replicas automation create ... --trigger-gitlab merge_request.opened --trigger-gitlab-repos acme/web\` |
@@ -25669,7 +25620,7 @@ replicas automation create "Re-check PR #142 CI" \\
25669
25620
  - \`--in <duration>\` (\`30m\`, \`2h\`, \`3d\`, \`1w\`, \`1d12h\`) or \`--at <ISO-8601 with offset>\` (e.g. "tomorrow at 9am" \u2192 \`--at 2026-10-08T09:00:00-07:00\`, using the user's timezone if you know it; otherwise say which timezone you assumed).
25670
25621
  - Inside a workspace, one-time follow-ups default to \`--workspace current\`, so you resume with this conversation's context. Inside a workspace, \`--environment\` defaults to this workspace's environment (same repositories), including for \`--workspace new\` and \`reuse\`.
25671
25622
  - Write \`--prompt\` as instructions to your future self: the links, what to check, what "done" looks like, and how to report back (e.g. reply in the original Slack thread). It runs with no memory of why it was scheduled beyond what you write.
25672
- - \`--background\` keeps follow-ups out of the user's main automations list (they are still visible under **Background**). Use it for every one-time follow-up that reports back into this conversation, even one that leads to a big decision. Omit it only for recurring automations the user wants to see and manage, such as ongoing monitoring.
25623
+ - \`--background\` marks an AI agent's own automation: a reminder, follow-up or recurring check-in for its task. It stays out of the user's main automations list, under **Background**.
25673
25624
  - \`--personal\` makes the automation the user's own. Omit it only when the follow-up belongs to the organization.
25674
25625
  - Recurring with an end: \`--trigger-cron "0 9 * * *" --max-runs 5 --workspace current\` runs daily five times, then deletes itself. \`--workspace reuse\` creates one new workspace on the first run and sends every later run to it; \`--workspace new\` (the default for non-one-time automations) creates a fresh workspace per run.
25675
25626
  - Repeat \`--trigger-cron\` for different times on different days: \`--trigger-cron "0 9 * * 1" --trigger-cron "0 17 * * 5"\` runs Monday at 9 and Friday at 5.
@@ -26377,19 +26328,15 @@ var init_prompts = __esm({
26377
26328
  init_slack_response_style();
26378
26329
  REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
26379
26330
  MOTHERSHIP_INSTRUCTIONS_TAG = "multitask_instructions";
26380
- MOTHERSHIP_EVENT_CHAT_NOTE = `If a message the user typed in this turn is still unanswered, your final reply answers it and they see it. Otherwise they don't see text you write in this turn: if it brings something they asked for, or a blocker that needs them, send it with ${REPLICAS_MCP_TOOLS.sendToChat}; then update the board and end with a one-line note.`;
26331
+ MOTHERSHIP_EVENT_CHAT_NOTE = `If a message the user typed in this turn is still unanswered, your final reply answers it and they see it. Otherwise they don't see text you write in this turn: if it brings something they asked for, or a blocker that needs them, send it with ${REPLICAS_MCP_TOOLS.sendToChat}; then update the board if its order, notes or overview changed, and end with a one-line note.`;
26381
26332
  BOARD_ANSWER_NOTE = "The user answered on the board.";
26382
- BOARD_RULES = `- The board, a live status page you keep with \`${REPLICAS_MCP_TOOLS.updateBoard}\` in the Ships pane beside this chat, is the user's one view of the work: keep it covering every ship, pull request, deploy and blocker. Show ships, pull requests and Linear tickets as ship, pr and linear blocks, which stay current on their own, instead of describing their status. Keep exactly these sections, always in this order, leaving out any that are empty; when you add one, give it the position that keeps this order:
26383
- - Questions (needs_you): only decisions you truly can't make, and blocked ships. Give each your recommendation and a choice. Make routine calls yourself, such as retries, small scope choices or test cleanup, and note them on the ship's row instead of asking.
26384
- - Ready to review (success): one table with columns PR and What it does, even for a single pull request: a pr block and a short line per row. Never a callout per pull request, and never a review in Questions: a merge conflict on a pull request awaiting review is not a question.
26385
- - Working (working): one table with columns Ship and Now: a ship block and a short line per active ship or deploy.
26386
- - Done (done, collapsed): pull requests once deployed, and finished work. Move a row from Working to Done as soon as its deploy or work finishes.
26387
- - On every \`finished\` and \`archived\` event, move that ship's rows out of Working, or remove them, so Working only lists ships that are working.
26388
- - A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or add it to Questions only if you can't decide.
26333
+ BOARD_RULES = `- The board in the Ships pane beside this chat is the user's one view of the work. Each task is a ticket: spawning a ship creates its ticket, with the \`title\` and \`task\` you pass. The ship writes its ticket's summary, screenshots, recordings and questions, and Replicas files tickets under Needs you, Ready to review, Working or Done from the ship and its pull requests. Never restate what a ticket or pull request already shows.
26334
+ - You keep the board organized with \`${REPLICAS_MCP_TOOLS.updateBoard}\`: the order of tickets, most important first; one short note per ticket when it adds something the ticket doesn't say, such as "Merge after #12" or "Waiting on REP-40"; and one overview line at the top on where the work as a whole stands. Archive tickets the user no longer needs. When a ship continues another ship's task, pass that ticket's id as \`ticket\` to \`${REPLICAS_MCP_TOOLS.spawnSubagent}\` instead of making a new one.
26335
+ - Ask the user only for decisions you truly can't make. Make routine calls yourself, such as retries, small scope choices or test cleanup. For a question of your own, create a ticket with it; the user's answer comes to you here, marked "${BOARD_ANSWER_NOTE}". Answers to a ship's questions go straight to that ship.
26336
+ - A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or ask the user only if you can't decide.
26389
26337
  - When a pull request should merge once it's approved and CI passes, call \`${REPLICAS_MCP_TOOLS.mergeWhenReady}\`: Replicas merges it and sends \`merged\`, or \`needs_attention\` saying why it can't. Never watch CI or pull requests with \`gh\`, sleep loops or wait scripts, and merge one yourself only when the user wants it merged right away.
26390
- - On every ship event and every answer the user gives on the board (marked "${BOARD_ANSWER_NOTE}"), act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board. The user sees nothing you write in these turns, unless a message they typed is still unanswered because it arrived during the turn: then your final reply answers it, as in any turn they start. Otherwise the only way to reach them is \`${REPLICAS_MCP_TOOLS.sendToChat}\`. Call it only for what they would want right now: a deliverable they asked for, with its media, links or answer (the finished video, the requested numbers); a failure or blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged", "deploying", "it's on the board" or "I asked the ship to\u2026": the board and the chat's own rows show those. End the turn with a one-line note of what you did; only the activity log shows it.
26391
- - The chat is like texting an assistant: the user sees only your final reply to each message they type, plus what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, never your tool calls or earlier text. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Anything that needs the user later goes on the board. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
26392
- - When the user picks a choice or clicks a button that messages or merges, Replicas removes that item from the board for you. Add it back, or a new item, only if the user is still needed.
26338
+ - On every ship event and every answer the user gives on the board, act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board if its order, notes or overview changed. The user sees nothing you write in these turns, unless a message they typed is still unanswered because it arrived during the turn: then your final reply answers it, as in any turn they start. Otherwise the only way to reach them is \`${REPLICAS_MCP_TOOLS.sendToChat}\`. Call it only for what they would want right now: a deliverable they asked for, with its media, links or answer (the finished video, the requested numbers); a failure or blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged", "deploying", "it's on the board" or "I asked the ship to\u2026": the board and the chat's own rows show those. End the turn with a one-line note of what you did; only the activity log shows it.
26339
+ - The chat is like texting an assistant: the user sees only your final reply to each message they type, plus what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, never your tool calls or earlier text. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
26393
26340
  `;
26394
26341
  MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
26395
26342
  T = REPLICAS_MCP_TOOLS;
@@ -26520,11 +26467,11 @@ function coerceBackgroundTaskPayload(payload) {
26520
26467
  const workflowAgents = Array.isArray(payload.workflow_progress) ? payload.workflow_progress.flatMap((entry) => {
26521
26468
  if (!isRecord(entry) || entry.type !== "workflow_agent") return [];
26522
26469
  const agentId = optionalString(entry.agentId);
26523
- const label2 = optionalString(entry.label);
26524
- if (!agentId || !label2) return [];
26470
+ const label = optionalString(entry.label);
26471
+ if (!agentId || !label) return [];
26525
26472
  return [{
26526
26473
  agentId,
26527
- label: label2,
26474
+ label,
26528
26475
  model: optionalString(entry.model),
26529
26476
  state: optionalString(entry.state),
26530
26477
  promptPreview: optionalString(entry.promptPreview),
@@ -27066,13 +27013,13 @@ var init_utils = __esm({
27066
27013
  });
27067
27014
 
27068
27015
  // ../shared/src/display-message/format.ts
27069
- function fileContentDiff(path10, content, action2) {
27016
+ function fileContentDiff(path10, content, action) {
27070
27017
  const lines = content.replace(/\n$/, "").split("\n");
27071
27018
  return [
27072
- `--- ${action2 === "add" ? "/dev/null" : `a/${path10}`}`,
27073
- `+++ ${action2 === "add" ? `b/${path10}` : "/dev/null"}`,
27074
- action2 === "add" ? `@@ -0,0 +1,${lines.length} @@` : `@@ -1,${lines.length} +0,0 @@`,
27075
- ...lines.map((line) => `${action2 === "add" ? "+" : "-"}${line}`)
27019
+ `--- ${action === "add" ? "/dev/null" : `a/${path10}`}`,
27020
+ `+++ ${action === "add" ? `b/${path10}` : "/dev/null"}`,
27021
+ action === "add" ? `@@ -0,0 +1,${lines.length} @@` : `@@ -1,${lines.length} +0,0 @@`,
27022
+ ...lines.map((line) => `${action === "add" ? "+" : "-"}${line}`)
27076
27023
  ].join("\n");
27077
27024
  }
27078
27025
  function shellCommands(command) {
@@ -34590,121 +34537,74 @@ var init_workspace_target = __esm({
34590
34537
  });
34591
34538
 
34592
34539
  // ../shared/src/mothership-board.ts
34593
- var MOTHERSHIP_BOARD_TONES, label, tone, blockId, httpsUrl, prUrl, linearIdentifier, action, text3, badge, pr, ship, linear, button, steps, inline, row, blockTypes, blockSchemas, block, MOTHERSHIP_BOARD_CONTAINER_TYPES, mothershipBoardBlocksSchema, mothershipBoardOperationsSchema, mothershipBoardItemRefSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
34540
+ var MOTHERSHIP_TICKET_LIMITS, L, tooLong, text3, clearable, httpsUrl, linearIdentifier, mediaSchema, questionSchema, mothershipTicketTitleSchema, mothershipTicketTaskSchema, mothershipTicketMediaSchema, mothershipTicketQuestionsSchema, updateMothershipTicketRequestSchema, updateMothershipBoardRequestSchema, answerMothershipTicketRequestSchema, mothershipTicketAnswerRefSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
34594
34541
  var init_mothership_board = __esm({
34595
34542
  "../shared/src/mothership-board.ts"() {
34596
34543
  "use strict";
34597
34544
  init_zod();
34598
- init_urls();
34599
- MOTHERSHIP_BOARD_TONES = ["neutral", "needs_you", "warning", "success", "danger", "working", "done"];
34600
- label = (max) => external_exports.string().trim().min(1).max(max);
34601
- tone = external_exports.enum(MOTHERSHIP_BOARD_TONES);
34602
- blockId = external_exports.string().regex(/^[\w.:-]{1,64}$/, "Use 1-64 letters, digits, _, -, . or :");
34545
+ init_mothership();
34546
+ MOTHERSHIP_TICKET_LIMITS = {
34547
+ title: 80,
34548
+ task: 1e3,
34549
+ summary: 600,
34550
+ note: 100,
34551
+ overview: 160,
34552
+ question: 300,
34553
+ option: 60,
34554
+ options: 3,
34555
+ questions: 2,
34556
+ blocked: 200,
34557
+ media: 6,
34558
+ caption: 80,
34559
+ answer: 2e3
34560
+ };
34561
+ L = MOTHERSHIP_TICKET_LIMITS;
34562
+ tooLong = (max) => `At most ${max} characters. Keep it short; the user should take it in at a glance`;
34563
+ text3 = (max) => external_exports.string().trim().min(1).max(max, tooLong(max));
34564
+ clearable = (schema) => external_exports.union([schema, external_exports.literal("")]).optional();
34603
34565
  httpsUrl = external_exports.url({ protocol: /^https$/, error: "Must be an https URL" });
34604
- prUrl = httpsUrl.refine((url2) => parseCodeHostPrUrl(url2) !== null, "Must be a GitHub pull request or GitLab merge request URL");
34605
34566
  linearIdentifier = external_exports.string().regex(/^[A-Za-z][A-Za-z0-9]{0,9}-\d{1,7}$/, "Use a Linear identifier such as REP-123");
34606
- action = external_exports.discriminatedUnion("type", [
34607
- external_exports.object({ type: external_exports.literal("open_ship"), workspace_id: external_exports.uuid() }),
34608
- external_exports.object({ type: external_exports.literal("message_ship"), workspace_id: external_exports.uuid(), message: label(4e3) }),
34609
- external_exports.object({ type: external_exports.literal("open_pr"), url: prUrl }),
34610
- external_exports.object({ type: external_exports.literal("merge_pr"), url: prUrl }),
34611
- external_exports.object({ type: external_exports.literal("message_mothership"), message: label(4e3) }),
34612
- external_exports.object({ type: external_exports.literal("open_link"), url: httpsUrl })
34613
- ]);
34614
- text3 = external_exports.object({ type: external_exports.literal("text"), id: blockId.optional(), text: label(2e3) });
34615
- badge = external_exports.object({ type: external_exports.literal("badge"), id: blockId.optional(), label: label(40), tone: tone.optional() });
34616
- pr = external_exports.object({ type: external_exports.literal("pr"), id: blockId.optional(), url: prUrl });
34617
- ship = external_exports.object({ type: external_exports.literal("ship"), id: blockId.optional(), workspace_id: external_exports.uuid() });
34618
- linear = external_exports.object({ type: external_exports.literal("linear"), id: blockId.optional(), identifier: linearIdentifier });
34619
- button = external_exports.object({ type: external_exports.literal("button"), id: blockId.optional(), label: label(60), action, variant: external_exports.enum(["primary", "outline", "warning", "destructive"]).optional(), resolves: blockId.optional() });
34620
- steps = external_exports.object({
34621
- type: external_exports.literal("steps"),
34622
- id: blockId.optional(),
34623
- steps: external_exports.array(external_exports.object({ label: label(30), state: external_exports.enum(["done", "current", "pending", "failed"]) })).min(1).max(8)
34624
- });
34625
- inline = external_exports.discriminatedUnion("type", [text3, badge, pr, ship, linear, button, steps]);
34626
- row = external_exports.object({ type: external_exports.literal("row"), id: blockId.optional(), cells: external_exports.array(external_exports.union([label(500), inline])).min(1).max(6) });
34627
- blockTypes = {
34628
- text: text3,
34629
- badge,
34630
- pr,
34631
- ship,
34632
- linear,
34633
- button,
34634
- steps,
34635
- stat: external_exports.object({ type: external_exports.literal("stat"), id: blockId.optional(), label: label(40), value: label(40), tone: tone.optional() }),
34636
- divider: external_exports.object({ type: external_exports.literal("divider"), id: blockId.optional() }),
34637
- updated_at: external_exports.object({ type: external_exports.literal("updated_at"), id: blockId.optional() }),
34638
- choice: external_exports.object({
34639
- type: external_exports.literal("choice"),
34640
- id: blockId.optional(),
34641
- question: label(500),
34642
- options: external_exports.array(external_exports.object({ label: label(60), message: label(2e3).optional() })).min(2).max(6),
34643
- allow_custom: external_exports.boolean().optional(),
34644
- resolves: blockId.optional()
34645
- }),
34646
- button_group: external_exports.object({ type: external_exports.literal("button_group"), id: blockId.optional(), children: external_exports.array(button).min(1).max(8) }),
34647
- table: external_exports.object({ type: external_exports.literal("table"), id: blockId.optional(), columns: external_exports.array(label(40)).min(1).max(6), children: external_exports.array(row).max(100) }),
34648
- callout: external_exports.object({
34649
- type: external_exports.literal("callout"),
34650
- id: blockId.optional(),
34651
- tone,
34652
- title: label(120).optional(),
34653
- get children() {
34654
- return external_exports.array(block).max(20).optional();
34655
- }
34656
- }),
34657
- list: external_exports.object({
34658
- type: external_exports.literal("list"),
34659
- id: blockId.optional(),
34660
- ordered: external_exports.boolean().optional(),
34661
- get children() {
34662
- return external_exports.array(block).max(100);
34663
- }
34664
- }),
34665
- section: external_exports.object({
34666
- type: external_exports.literal("section"),
34667
- id: blockId.optional(),
34668
- title: label(120),
34669
- tone: tone.optional(),
34670
- collapsed: external_exports.boolean().optional(),
34671
- get children() {
34672
- return external_exports.array(block).max(100);
34673
- }
34674
- })
34675
- };
34676
- blockSchemas = [text3, ...Object.values(blockTypes).filter((schema) => schema !== text3)];
34677
- block = external_exports.discriminatedUnion("type", blockSchemas);
34678
- MOTHERSHIP_BOARD_CONTAINER_TYPES = Object.entries(blockTypes).filter(([, schema]) => "children" in schema.shape).map(([type]) => type);
34679
- mothershipBoardBlocksSchema = external_exports.array(block).max(100).superRefine((blocks, ctx) => {
34680
- const seen = /* @__PURE__ */ new Set();
34681
- const visit2 = (node2, path10) => {
34682
- if (typeof node2 === "string") return;
34683
- if (node2.id) {
34684
- if (seen.has(node2.id)) ctx.addIssue({ code: "custom", path: [...path10, "id"], message: `Duplicate block id "${node2.id}"` });
34685
- seen.add(node2.id);
34686
- }
34687
- if (node2.type === "table") {
34688
- node2.children.forEach((child, index) => {
34689
- if (child.cells.length > node2.columns.length) ctx.addIssue({ code: "custom", path: [...path10, "children", index, "cells"], message: `Row has ${child.cells.length} cells but the table has ${node2.columns.length} columns` });
34690
- });
34691
- }
34692
- if (node2.type === "row") node2.cells.forEach((cell, index) => visit2(cell, [...path10, "cells", index]));
34693
- else if ("children" in node2) node2.children?.forEach((child, index) => visit2(child, [...path10, "children", index]));
34694
- };
34695
- blocks.forEach((node2, index) => visit2(node2, [index]));
34696
- });
34697
- mothershipBoardOperationsSchema = external_exports.array(external_exports.discriminatedUnion("op", [
34698
- external_exports.object({ op: external_exports.literal("replace"), blocks: external_exports.array(block) }),
34699
- external_exports.object({
34700
- op: external_exports.literal("upsert"),
34701
- block: external_exports.discriminatedUnion("type", [row, ...blockSchemas]).refine((value) => Boolean(value.id), { message: "Give the block an id", path: ["id"] }),
34702
- parent_id: blockId.optional(),
34703
- position: external_exports.number().int().min(0).optional()
34704
- }),
34705
- external_exports.object({ op: external_exports.literal("remove"), id: blockId })
34706
- ])).min(1).max(50);
34707
- mothershipBoardItemRefSchema = external_exports.object({ mothershipId: external_exports.uuid(), block, occurrence: external_exports.number().int().min(0).optional() });
34567
+ mediaSchema = external_exports.object({
34568
+ url: httpsUrl.describe("The URL `replicas media upload` printed."),
34569
+ caption: text3(L.caption).describe('What it shows, such as "After: the list stays pinned".'),
34570
+ kind: external_exports.enum(["image", "video"]).describe("video for recordings, image for screenshots and GIFs.")
34571
+ });
34572
+ questionSchema = external_exports.object({
34573
+ question: text3(L.question).describe("One question, with the context needed to answer it."),
34574
+ options: external_exports.array(text3(L.option)).max(L.options).optional().describe("Up to three answers to pick from, recommended first. The user can always write their own.")
34575
+ });
34576
+ mothershipTicketTitleSchema = text3(L.title);
34577
+ mothershipTicketTaskSchema = text3(L.task);
34578
+ mothershipTicketMediaSchema = external_exports.array(mediaSchema);
34579
+ mothershipTicketQuestionsSchema = external_exports.array(questionSchema.extend({ id: external_exports.string() }));
34580
+ updateMothershipTicketRequestSchema = external_exports.object({
34581
+ summary: text3(L.summary).optional().describe(`What you did and what came of it, in two to four plain sentences a busy reader understands, with pull requests as #number. Markdown: **bold**, *italics*, \`code\` and [links](https://...). At most ${L.summary} characters.`),
34582
+ media: external_exports.array(mediaSchema).max(L.media).optional().describe(`Screenshots and recordings that show the result, uploaded with \`replicas media upload\`, at most ${L.media}. Replaces the ticket's media.`),
34583
+ questions: external_exports.array(questionSchema).max(L.questions).optional().describe(`Questions only the user can answer, at most ${L.questions}. Replaces the open ones; pass [] once they are answered. Their answer comes back to you in this chat.`),
34584
+ blocked: clearable(text3(L.blocked)).describe('Why you cannot go on without the user, such as missing access. "" once unblocked.')
34585
+ });
34586
+ updateMothershipBoardRequestSchema = external_exports.object({
34587
+ overview: clearable(text3(L.overview)).describe(`One line at the top of the board on where the work as a whole stands. "" removes it. At most ${L.overview} characters.`),
34588
+ tickets: external_exports.array(external_exports.object({
34589
+ id: external_exports.uuid(),
34590
+ title: mothershipTicketTitleSchema.optional(),
34591
+ note: clearable(text3(L.note)).describe(`Your one short comment on the ticket, shown under its row, replacing the last. "" removes it. At most ${L.note} characters.`),
34592
+ linear: clearable(linearIdentifier).describe('The Linear issue this ticket is for, such as REP-123. "" removes it.'),
34593
+ archived: external_exports.boolean().optional().describe("Take it off the board.")
34594
+ })).max(50).optional().describe("Changes to existing tickets."),
34595
+ order: external_exports.array(external_exports.uuid()).optional().describe("Ticket ids, most important first. Tickets left out keep their order after these."),
34596
+ create: external_exports.array(external_exports.object({
34597
+ title: mothershipTicketTitleSchema,
34598
+ task: mothershipTicketTaskSchema.optional(),
34599
+ questions: external_exports.array(questionSchema).max(L.questions).optional(),
34600
+ note: text3(L.note).optional()
34601
+ })).max(5).optional().describe("Tickets with no ship, for your own questions to the user or work no ship does. Their answers come to you.")
34602
+ });
34603
+ answerMothershipTicketRequestSchema = external_exports.object({
34604
+ questionId: external_exports.string().min(1),
34605
+ answer: text3(L.answer)
34606
+ });
34607
+ mothershipTicketAnswerRefSchema = external_exports.object({ mothershipId: external_exports.uuid(), ticketId: external_exports.uuid(), questionId: external_exports.string().min(1) });
34708
34608
  LINEAR_ISSUE_SUMMARIES_MAX = 50;
34709
34609
  linearIssueSummariesRequestSchema = external_exports.object({ identifiers: external_exports.array(linearIdentifier).min(1).max(LINEAR_ISSUE_SUMMARIES_MAX) });
34710
34610
  }
@@ -34809,6 +34709,7 @@ var init_steps = __esm({
34809
34709
  [REPLICAS_MCP_TOOLS.clearLinearRouting]: { icon: "trash", live: "Clearing Linear routing", done: "Cleared Linear routing" },
34810
34710
  [REPLICAS_MCP_TOOLS.getBoard]: { icon: "book", live: "Reading board", done: "Read board" },
34811
34711
  [REPLICAS_MCP_TOOLS.updateBoard]: { icon: "file-pen", live: "Updating board", done: "Updated board" },
34712
+ [REPLICAS_MCP_TOOLS.updateTicket]: { icon: "file-pen", live: "Updating ticket", done: "Updated ticket" },
34812
34713
  [REPLICAS_MCP_TOOLS.sendToChat]: { icon: "message", live: "Sending to chat", done: "Sent to chat" },
34813
34714
  [REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
34814
34715
  };
@@ -35508,7 +35409,7 @@ var init_codex_parser = __esm({
35508
35409
  // ../shared/src/display-message/parsers/cursor-parser.ts
35509
35410
  function getTextContent(value) {
35510
35411
  if (!Array.isArray(value)) return "";
35511
- return value.map((block2) => isRecord(block2) && block2.type === "text" && typeof block2.text === "string" ? block2.text : "").join("");
35412
+ return value.map((block) => isRecord(block) && block.type === "text" && typeof block.text === "string" ? block.text : "").join("");
35512
35413
  }
35513
35414
  function cursorStatusToDisplayStatus(status) {
35514
35415
  return status === "completed" || status === "FINISHED" ? "completed" : status === "error" || status === "ERROR" || status === "CANCELLED" || status === "EXPIRED" ? "failed" : "in_progress";
@@ -35748,8 +35649,8 @@ var init_errors3 = __esm({
35748
35649
 
35749
35650
  // ../shared/src/display-message/parsers/inference-error.ts
35750
35651
  function formatInferenceError(message2, context = {}) {
35751
- const label2 = context.provider ? INFERENCE_PROVIDER_LABELS[context.provider] ?? context.provider : null;
35752
- const source = label2 ? `${label2}${context.model ? ` (${context.model})` : ""} request failed${typeof context.status === "number" ? ` with HTTP ${context.status}` : ""}` : null;
35652
+ const label = context.provider ? INFERENCE_PROVIDER_LABELS[context.provider] ?? context.provider : null;
35653
+ const source = label ? `${label}${context.model ? ` (${context.model})` : ""} request failed${typeof context.status === "number" ? ` with HTTP ${context.status}` : ""}` : null;
35753
35654
  let body = source ? message2 ? `${source}: ${message2}` : `${source}.` : message2;
35754
35655
  const detail = context.detail?.trim();
35755
35656
  if (detail && !body.includes(detail)) {
@@ -36172,7 +36073,7 @@ function normalizeContentBlocks(content) {
36172
36073
  if (typeof content === "string") {
36173
36074
  return content ? [{ type: "text", text: content }] : [];
36174
36075
  }
36175
- return Array.isArray(content) ? content.filter((block2) => isRecord(block2) && typeof block2.type === "string") : [];
36076
+ return Array.isArray(content) ? content.filter((block) => isRecord(block) && typeof block.type === "string") : [];
36176
36077
  }
36177
36078
  function parseStringField(value) {
36178
36079
  if (typeof value !== "string") return null;
@@ -36261,13 +36162,13 @@ var init_task_accumulator = __esm({
36261
36162
  }
36262
36163
  return out;
36263
36164
  }
36264
- processContentBlock(block2) {
36265
- if (!isRecord(block2)) return false;
36266
- if (block2.type === "tool_use" && typeof block2.name === "string" && typeof block2.id === "string") {
36267
- return this.processToolUse(block2.name, block2.id, toAccumulatorInput(block2.input));
36165
+ processContentBlock(block) {
36166
+ if (!isRecord(block)) return false;
36167
+ if (block.type === "tool_use" && typeof block.name === "string" && typeof block.id === "string") {
36168
+ return this.processToolUse(block.name, block.id, toAccumulatorInput(block.input));
36268
36169
  }
36269
- if (block2.type === "tool_result" && typeof block2.tool_use_id === "string") {
36270
- return this.processCreateResult(block2.tool_use_id, block2.content);
36170
+ if (block.type === "tool_result" && typeof block.tool_use_id === "string") {
36171
+ return this.processCreateResult(block.tool_use_id, block.content);
36271
36172
  }
36272
36173
  return false;
36273
36174
  }
@@ -36276,12 +36177,12 @@ var init_task_accumulator = __esm({
36276
36177
  });
36277
36178
 
36278
36179
  // ../shared/src/display-message/parsers/claude-parser.ts
36279
- function fileOrCommandMessage(block2, timestamp) {
36280
- let template = toolMessageTemplates.get(block2);
36180
+ function fileOrCommandMessage(block, timestamp) {
36181
+ let template = toolMessageTemplates.get(block);
36281
36182
  if (!template) {
36282
- const input2 = typeof block2.input === "string" ? safeJsonParse(block2.input, {}) : block2.input ?? {};
36283
- template = toolMessageTemplate(block2.name ?? "", block2.id ?? "", input2);
36284
- toolMessageTemplates.set(block2, template);
36183
+ const input2 = typeof block.input === "string" ? safeJsonParse(block.input, {}) : block.input ?? {};
36184
+ template = toolMessageTemplate(block.name ?? "", block.id ?? "", input2);
36185
+ toolMessageTemplates.set(block, template);
36285
36186
  }
36286
36187
  return { ...template, timestamp };
36287
36188
  }
@@ -36608,13 +36509,13 @@ function parseClaudeEvents(events, parentToolUseId) {
36608
36509
  if (liveStreamId !== null && liveStreamId !== messageId) {
36609
36510
  supersededStreamIds.add(liveStreamId);
36610
36511
  }
36611
- if (contentBlocks.some((block2) => block2.type === "text" && block2.text)) {
36512
+ if (contentBlocks.some((block) => block.type === "text" && block.text)) {
36612
36513
  completedStreamIds.add(messageId);
36613
36514
  liveStreamId = null;
36614
36515
  }
36615
36516
  }
36616
36517
  const thinkingBlocks = contentBlocks.flatMap(
36617
- (block2) => block2.type === "thinking" && typeof block2.thinking === "string" ? [block2.thinking] : []
36518
+ (block) => block.type === "thinking" && typeof block.thinking === "string" ? [block.thinking] : []
36618
36519
  );
36619
36520
  if (thinkingBlocks.length > 0) {
36620
36521
  const allThinking = [...assistantThinking.get(messageKey) ?? [], ...thinkingBlocks];
@@ -36633,14 +36534,14 @@ function parseClaudeEvents(events, parentToolUseId) {
36633
36534
  upsertMessage(reasoningMessage);
36634
36535
  }
36635
36536
  }
36636
- contentBlocks.forEach((block2) => {
36637
- if (block2.type === "text" && block2.text) {
36537
+ contentBlocks.forEach((block) => {
36538
+ if (block.type === "text" && block.text) {
36638
36539
  const textIndex = assistantTextCounts.get(messageKey) ?? 0;
36639
36540
  assistantTextCounts.set(messageKey, textIndex + 1);
36640
36541
  const agentMessage = {
36641
36542
  id: `agent-${messageKey}-${textIndex}`,
36642
36543
  type: "agent",
36643
- content: block2.text,
36544
+ content: block.text,
36644
36545
  timestamp: event.timestamp
36645
36546
  };
36646
36547
  if (streamRefs?.agent !== void 0) {
@@ -36650,10 +36551,10 @@ function parseClaudeEvents(events, parentToolUseId) {
36650
36551
  upsertMessage(agentMessage);
36651
36552
  }
36652
36553
  }
36653
- if (block2.type === "tool_use" && block2.id) {
36654
- const toolName = block2.name || "unknown";
36655
- const toolInput = block2.input || {};
36656
- const toolUseId = block2.id;
36554
+ if (block.type === "tool_use" && block.id) {
36555
+ const toolName = block.name || "unknown";
36556
+ const toolInput = block.input || {};
36557
+ const toolUseId = block.id;
36657
36558
  toolCallMap.set(toolUseId, {
36658
36559
  messageIndex: messages.length,
36659
36560
  toolName,
@@ -36672,9 +36573,9 @@ function parseClaudeEvents(events, parentToolUseId) {
36672
36573
  nestedEvents
36673
36574
  }));
36674
36575
  } else if (COMMAND_TOOL_NAMES.has(toolName) || FILE_TOOL_NAMES.has(toolName)) {
36675
- messages.push(fileOrCommandMessage(block2, event.timestamp));
36576
+ messages.push(fileOrCommandMessage(block, event.timestamp));
36676
36577
  } else if (toolName === "TaskCreate" || toolName === "TaskUpdate" || toolName === "TaskList") {
36677
- taskAccumulator.processContentBlock(block2);
36578
+ taskAccumulator.processContentBlock(block);
36678
36579
  const snapshot = taskSnapshot();
36679
36580
  if (snapshot.length > 0) {
36680
36581
  messages.push({
@@ -37785,7 +37686,7 @@ var CLI_VERSION;
37785
37686
  var init_cli_version = __esm({
37786
37687
  "../shared/src/cli-version.ts"() {
37787
37688
  "use strict";
37788
- CLI_VERSION = "0.3.364";
37689
+ CLI_VERSION = "0.3.365";
37789
37690
  }
37790
37691
  });
37791
37692
 
@@ -38686,6 +38587,7 @@ var init_workspace_events = __esm({
38686
38587
  subagent: external_exports.object({ id: external_exports.string(), name: external_exports.string(), prUrl: external_exports.string().nullable() }),
38687
38588
  ts: external_exports.string()
38688
38589
  }),
38590
+ external_exports.object({ type: external_exports.literal("mothership.board.changed"), workspaceId: external_exports.string(), ts: external_exports.string() }),
38689
38591
  external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), userId: external_exports.string().optional(), ts: external_exports.string() }),
38690
38592
  external_exports.object({
38691
38593
  type: external_exports.literal("workspace.shared"),
@@ -47413,8 +47315,8 @@ var require_CronExpression = __commonJS({
47413
47315
  return false;
47414
47316
  }
47415
47317
  if (__privateMethod(this, _CronExpression_instances, checkDstTransition_fn).call(this, currentDate)) {
47416
- const steps2 = reverse ? currentHour - nextHour : nextHour - currentHour;
47417
- for (let i = 0; i < steps2; i++) {
47318
+ const steps = reverse ? currentHour - nextHour : nextHour - currentHour;
47319
+ for (let i = 0; i < steps; i++) {
47418
47320
  currentDate.applyDateOperation(dateMathVerb, CronDate_1.TimeUnit.Hour, hours.length);
47419
47321
  if (!reverse && currentDate.getHours() >= nextHour)
47420
47322
  break;
@@ -47905,8 +47807,8 @@ var require_CronFileParser = __commonJS({
47905
47807
  expressions: [],
47906
47808
  errors: {}
47907
47809
  };
47908
- for (const block2 of blocks) {
47909
- const entry = block2.trim();
47810
+ for (const block of blocks) {
47811
+ const entry = block.trim();
47910
47812
  if (entry.length === 0 || entry.startsWith("#")) {
47911
47813
  continue;
47912
47814
  }
@@ -49480,8 +49382,8 @@ var init_api2 = __esm({
49480
49382
  });
49481
49383
 
49482
49384
  // src/lib/oauth-flow-ui.ts
49483
- function field(label2, value) {
49484
- console.log(` ${import_chalk2.default.gray(label2.padEnd(LABEL_WIDTH))}${value}`);
49385
+ function field(label, value) {
49386
+ console.log(` ${import_chalk2.default.gray(label.padEnd(LABEL_WIDTH))}${value}`);
49485
49387
  }
49486
49388
  function appliesTo(target) {
49487
49389
  if (!target.isUserScoped) return "Organization Settings";
@@ -51085,8 +50987,8 @@ async function claudeAuthCommand(options = {}) {
51085
50987
  oauthSteps: 2,
51086
50988
  orgEndpoint: "/v1/claude/credentials",
51087
50989
  userEndpoint: "/v1/claude/user/credentials",
51088
- runOAuth: async (steps2, save) => {
51089
- await openForApproval("Replicas", await save(await runClaudeOAuthFlow(steps2)));
50990
+ runOAuth: async (steps, save) => {
50991
+ await openForApproval("Replicas", await save(await runClaudeOAuthFlow(steps)));
51090
50992
  },
51091
50993
  toRequestBody: (tokens) => ({
51092
50994
  access_token: tokens.accessToken,
@@ -51196,8 +51098,8 @@ async function museAuthCommand(options = {}) {
51196
51098
  oauthSteps: 1,
51197
51099
  orgEndpoint: "/v1/muse/credentials",
51198
51100
  userEndpoint: "/v1/muse/user/credentials",
51199
- runOAuth: async (steps2, save) => {
51200
- await openForApproval("Replicas", await save(await runMuseOAuthFlow(steps2)));
51101
+ runOAuth: async (steps, save) => {
51102
+ await openForApproval("Replicas", await save(await runMuseOAuthFlow(steps)));
51201
51103
  },
51202
51104
  toRequestBody: (tokens) => ({ access_token: tokens.accessToken })
51203
51105
  });
@@ -51364,8 +51266,8 @@ async function credentialsUsageCommand({ org: org2, user }) {
51364
51266
  `${Math.round(window.usedPercent)}%`,
51365
51267
  window.resetsAt && import_chalk17.default.gray(`(resets ${formatDate(window.resetsAt)})`)
51366
51268
  ].filter(Boolean).join(" ")).join(", ");
51367
- const label2 = [account.email ?? account.credentialId, account.planType].filter(Boolean).join(" ");
51368
- console.log(`${account.provider} ${scopeLabel({ org: account.scope === "org" })} ${label2} ${limits}`);
51269
+ const label = [account.email ?? account.credentialId, account.planType].filter(Boolean).join(" ");
51270
+ console.log(`${account.provider} ${scopeLabel({ org: account.scope === "org" })} ${label} ${limits}`);
51369
51271
  if (account.exhaustedUntil) console.log(import_chalk17.default.gray(` Workspaces skip this account until ${formatDate(account.exhaustedUntil)}`));
51370
51272
  }
51371
51273
  });
@@ -51984,15 +51886,15 @@ async function envHookTestCommand(envIdOrName, options, kind) {
51984
51886
  }
51985
51887
  );
51986
51888
  if (errorMessage) throw new Error(errorMessage);
51987
- const label2 = kind === "warm" ? "Warm" : "Start";
51889
+ const label = kind === "warm" ? "Warm" : "Start";
51988
51890
  const passed = !timedOut && exitCode === 0;
51989
51891
  output2({ passed, exit_code: exitCode, timed_out: timedOut, saved: passed && !!options.save, output: logs }, () => {
51990
51892
  if (passed) console.log(import_chalk20.default.green(`
51991
- ${label2} hook passed${options.save ? " and was saved" : ""} (exit code ${exitCode}).
51893
+ ${label} hook passed${options.save ? " and was saved" : ""} (exit code ${exitCode}).
51992
51894
  `));
51993
51895
  });
51994
- if (timedOut) throw new Error(`${label2} hook timed out.`);
51995
- if (!passed) throw new Error(`${label2} hook failed (exit code ${exitCode ?? "unknown"}).`);
51896
+ if (timedOut) throw new Error(`${label} hook timed out.`);
51897
+ if (!passed) throw new Error(`${label} hook failed (exit code ${exitCode ?? "unknown"}).`);
51996
51898
  }
51997
51899
  async function envHookRepositoryHooksCommand(envIdOrName, kind) {
51998
51900
  ensureOrgApiAuthenticated();
@@ -52337,8 +52239,8 @@ Replicas (Page ${response2.page} of ${response2.total_pages}, Total: ${response2
52337
52239
  console.log(import_chalk21.default.gray(` Created: ${formatDate(replica.created_at)}`));
52338
52240
  if (replica.pull_requests && replica.pull_requests.length > 0) {
52339
52241
  console.log(import_chalk21.default.gray(` Pull Requests:`));
52340
- for (const pr3 of replica.pull_requests) {
52341
- console.log(import_chalk21.default.cyan(` - ${pr3.repository} #${pr3.number}: ${pr3.url}`));
52242
+ for (const pr2 of replica.pull_requests) {
52243
+ console.log(import_chalk21.default.cyan(` - ${pr2.repository} #${pr2.number}: ${pr2.url}`));
52342
52244
  }
52343
52245
  }
52344
52246
  console.log();
@@ -52371,8 +52273,8 @@ Replica: ${replica.name}
52371
52273
  }
52372
52274
  if (replica.pull_requests && replica.pull_requests.length > 0) {
52373
52275
  console.log(import_chalk21.default.gray(` Pull Requests:`));
52374
- for (const pr3 of replica.pull_requests) {
52375
- console.log(import_chalk21.default.cyan(` - ${pr3.repository} #${pr3.number}: ${pr3.url}`));
52276
+ for (const pr2 of replica.pull_requests) {
52277
+ console.log(import_chalk21.default.cyan(` - ${pr2.repository} #${pr2.number}: ${pr2.url}`));
52376
52278
  }
52377
52279
  }
52378
52280
  console.log();
@@ -52607,10 +52509,10 @@ async function workspaceWakeCommand(id, options) {
52607
52509
  await orgAuthenticatedFetch(`/v1/replica/${id}/wake${options.restore ? "?restore=true" : ""}`, { method: "POST" });
52608
52510
  outputSuccess(`Waking workspace ${id}. Check progress with: replicas status ${id}`);
52609
52511
  }
52610
- function workspaceLifecycleCommand(action2) {
52512
+ function workspaceLifecycleCommand(action) {
52611
52513
  return async (id) => {
52612
- await orgAuthenticatedFetch(`/v1/replica/${id}/${action2}`, { method: "POST" });
52613
- outputSuccess(`Workspace ${id} ${action2 === "sleep" ? "is going to sleep" : "archived"}.`);
52514
+ await orgAuthenticatedFetch(`/v1/replica/${id}/${action}`, { method: "POST" });
52515
+ outputSuccess(`Workspace ${id} ${action === "sleep" ? "is going to sleep" : "archived"}.`);
52614
52516
  };
52615
52517
  }
52616
52518
  async function workspaceWaitCommand(id, options) {
@@ -52731,7 +52633,7 @@ async function shareRemoveCommand(id, userId) {
52731
52633
  outputSuccess(`Stopped sharing workspace ${id} with ${userId}`);
52732
52634
  }
52733
52635
  async function prViewCommand(id, prUrls) {
52734
- const urls = prUrls.length > 0 ? prUrls : (await orgAuthenticatedFetch(`/v1/replica/${id}`)).replica.pull_requests?.map((pr3) => pr3.url) ?? [];
52636
+ const urls = prUrls.length > 0 ? prUrls : (await orgAuthenticatedFetch(`/v1/replica/${id}`)).replica.pull_requests?.map((pr2) => pr2.url) ?? [];
52735
52637
  if (urls.length === 0) {
52736
52638
  output2({ pullRequests: [] }, () => console.log("No pull requests linked to this workspace."));
52737
52639
  return;
@@ -52755,15 +52657,15 @@ ${url2}`));
52755
52657
  }
52756
52658
  });
52757
52659
  }
52758
- async function prMergeCommand(id, prUrl2) {
52759
- const { queued } = await orgAuthenticatedFetch(`/v1/replica/${id}/pull-requests/merge`, { method: "POST", body: { prUrl: prUrl2 } });
52760
- outputSuccess(`${queued ? "Added to the merge queue:" : "Merged"} ${prUrl2}`);
52660
+ async function prMergeCommand(id, prUrl) {
52661
+ const { queued } = await orgAuthenticatedFetch(`/v1/replica/${id}/pull-requests/merge`, { method: "POST", body: { prUrl } });
52662
+ outputSuccess(`${queued ? "Added to the merge queue:" : "Merged"} ${prUrl}`);
52761
52663
  }
52762
- function prUpdateCommand(action2) {
52763
- return async (id, prUrl2) => {
52764
- const body = { prUrl: prUrl2, action: action2 };
52664
+ function prUpdateCommand(action) {
52665
+ return async (id, prUrl) => {
52666
+ const body = { prUrl, action };
52765
52667
  await orgAuthenticatedFetch(`/v1/replica/${id}/pull-requests/update`, { method: "POST", body });
52766
- outputSuccess(`${prUrl2}: ${action2.replaceAll("_", " ")} done`);
52668
+ outputSuccess(`${prUrl}: ${action.replaceAll("_", " ")} done`);
52767
52669
  };
52768
52670
  }
52769
52671
  async function canvasListCommand(id) {
@@ -52911,7 +52813,7 @@ var init_chat = __esm({
52911
52813
  chatQueueRemoveCommand = (id, chatId, messageId) => mutateQueue(chatPath2(id, chatId, `/queue/${messageId}`), "DELETE");
52912
52814
  chatQueueEditCommand = (id, chatId, messageId, message2) => mutateQueue(chatPath2(id, chatId, `/queue/${messageId}`), "PATCH", { message: message2 });
52913
52815
  chatQueueMoveCommand = (id, chatId, messageId, position) => mutateQueue(chatPath2(id, chatId, "/queue/reorder"), "PATCH", { messageId, position: Number(position) });
52914
- chatQueueActionCommand = (action2) => (id, chatId, messageId) => mutateQueue(chatPath2(id, chatId, `/queue/${messageId}/${action2}`), "POST");
52816
+ chatQueueActionCommand = (action) => (id, chatId, messageId) => mutateQueue(chatPath2(id, chatId, `/queue/${messageId}/${action}`), "POST");
52915
52817
  }
52916
52818
  });
52917
52819
 
@@ -53004,11 +52906,11 @@ async function environmentSetupStepCommand(key, status) {
53004
52906
  \u2713 ${key} \u2192 ${status}
53005
52907
  `)));
53006
52908
  }
53007
- function readJsonFile(file2, label2) {
52909
+ function readJsonFile(file2, label) {
53008
52910
  try {
53009
52911
  return JSON.parse(import_fs6.default.readFileSync(file2, "utf8"));
53010
52912
  } catch (error62) {
53011
- throw new Error(`Could not read ${label2} JSON from ${file2}: ${error62 instanceof Error ? error62.message : String(error62)}`);
52913
+ throw new Error(`Could not read ${label} JSON from ${file2}: ${error62 instanceof Error ? error62.message : String(error62)}`);
53012
52914
  }
53013
52915
  }
53014
52916
  async function environmentSetupProposeCommand(options) {
@@ -55451,17 +55353,17 @@ function registerSlackCommands(parent) {
55451
55353
  slackThread.command("switch <workspace>").description("Point the current Slack thread at another workspace ID or name").option("-c, --channel <channelId>", "Slack channel ID (defaults to REPLICAS_SLACK_CHANNEL_ID)").option("-t, --thread-ts <threadTs>", "Slack thread timestamp (defaults to REPLICAS_SLACK_THREAD_TS)").action(run(slackThreadSwitchCommand));
55452
55354
  }
55453
55355
  function registerEnvironmentHookCommands(parent, config3) {
55454
- const label2 = `${config3.kind} hook`;
55356
+ const label = `${config3.kind} hook`;
55455
55357
  const hooks = parent.command(`${config3.kind}-hooks`).description(config3.kind === "warm" ? "Manage env-level warm hooks (run while pre-warming workspaces)" : "Manage env-level start hooks (run on every workspace boot, before repo-level start hooks)");
55456
- hooks.command("get <env>").description(`Show the active ${label2} for an environment`).action(run(config3.get));
55457
- hooks.command("save <env>").description(`Save and activate a ${label2}${config3.kind === "warm" ? " without testing it" : ""}`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.save));
55458
- hooks.command("test <env>").description(`Run a ${label2} in an isolated sandbox without saving it`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.test));
55358
+ hooks.command("get <env>").description(`Show the active ${label} for an environment`).action(run(config3.get));
55359
+ hooks.command("save <env>").description(`Save and activate a ${label}${config3.kind === "warm" ? " without testing it" : ""}`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.save));
55360
+ hooks.command("test <env>").description(`Run a ${label} in an isolated sandbox without saving it`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.test));
55459
55361
  if (config3.saveTest) {
55460
- hooks.command("save-test <env>").description(`Test a ${label2} and save it only if the test passes`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.saveTest));
55362
+ hooks.command("save-test <env>").description(`Test a ${label} and save it only if the test passes`).option("-c, --content <content>", "Inline hook script").option("-f, --file <local-path>", "Read hook script from a local file").action(run(config3.saveTest));
55461
55363
  }
55462
55364
  hooks.command("repository-hooks <env>").description(`List per-repo ${config3.kind} hooks defined in replicas.json / replicas.yaml`).action(run(config3.repositoryHooks));
55463
55365
  }
55464
- var import_config20, import_commander, collect, program, organizationOptionalCommands, interactiveCommands, org, config2, chat, chatQueue, share, pr2, canvas, credentials, automation, repos, plugins, skills, media, environment, envVars, envFiles, envSkills, envMcps, parsePortOption, envDevices, envWarmPool, preview, authenticatedPreviewHelp;
55366
+ var import_config20, import_commander, collect, program, organizationOptionalCommands, interactiveCommands, org, config2, chat, chatQueue, share, pr, canvas, credentials, automation, repos, plugins, skills, media, environment, envVars, envFiles, envSkills, envMcps, parsePortOption, envDevices, envWarmPool, preview, authenticatedPreviewHelp;
55465
55367
  var init_src2 = __esm({
55466
55368
  "src/index.ts"() {
55467
55369
  "use strict";
@@ -55606,13 +55508,13 @@ var init_src2 = __esm({
55606
55508
  share.command("list <id>").description("List members a replica is shared with").action(run(shareListCommand));
55607
55509
  share.command("add <id> <userId>").description("Share a replica with a member").action(run(shareAddCommand));
55608
55510
  share.command("remove <id> <userId>").description("Stop sharing a replica with a member").action(run(shareRemoveCommand));
55609
- pr2 = program.command("pr").description("Inspect and act on pull requests linked to a replica");
55610
- pr2.command("view <id> [prUrls...]").description("Show state, CI, and mergeability (defaults to every linked pull request)").action(run(prViewCommand));
55611
- pr2.command("merge <id> <prUrl>").description("Merge a pull request").action(run(prMergeCommand));
55612
- pr2.command("approve <id> <prUrl>").description("Approve a pull request").action(run(prUpdateCommand("approve")));
55613
- pr2.command("close <id> <prUrl>").description("Close a pull request").action(run(prUpdateCommand("close")));
55614
- pr2.command("draft <id> <prUrl>").description("Convert a pull request to a draft").action(run(prUpdateCommand("convert_to_draft")));
55615
- pr2.command("ready <id> <prUrl>").description("Mark a draft pull request ready for review").action(run(prUpdateCommand("mark_ready_for_review")));
55511
+ pr = program.command("pr").description("Inspect and act on pull requests linked to a replica");
55512
+ pr.command("view <id> [prUrls...]").description("Show state, CI, and mergeability (defaults to every linked pull request)").action(run(prViewCommand));
55513
+ pr.command("merge <id> <prUrl>").description("Merge a pull request").action(run(prMergeCommand));
55514
+ pr.command("approve <id> <prUrl>").description("Approve a pull request").action(run(prUpdateCommand("approve")));
55515
+ pr.command("close <id> <prUrl>").description("Close a pull request").action(run(prUpdateCommand("close")));
55516
+ pr.command("draft <id> <prUrl>").description("Convert a pull request to a draft").action(run(prUpdateCommand("convert_to_draft")));
55517
+ pr.command("ready <id> <prUrl>").description("Mark a draft pull request ready for review").action(run(prUpdateCommand("mark_ready_for_review")));
55616
55518
  canvas = program.command("canvas").description("Read and edit files in a replica Canvas");
55617
55519
  canvas.command("list <id>").description("List Canvas files").action(run(canvasListCommand));
55618
55520
  canvas.command("get <id> <filename>").description("Print a Canvas text file").action(run(canvasGetCommand));
@@ -55626,7 +55528,7 @@ var init_src2 = __esm({
55626
55528
  automation = program.command("automation").alias("auto").description("Manage automations");
55627
55529
  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));
55628
55530
  automation.command("get <id>").description("Get automation details by ID").action(run(automationGetCommand));
55629
- 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 created on the first run), current (this workspace), or a workspace ID").option("--background", "Keep it out of the main automations list (for offhand follow-ups)").option("--disabled", "Create in disabled state").action(run((name, options) => automationCreateCommand(name, { ...options, enabled: !options.disabled })));
55531
+ 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 created on the first 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("--disabled", "Create in disabled state").action(run((name, options) => automationCreateCommand(name, { ...options, enabled: !options.disabled })));
55630
55532
  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("--move-to-org", "Move a personal automation to the organization so teammates can see and edit it (cannot be undone)").action(run(automationEditCommand));
55631
55533
  automation.command("run <id>").description("Manually trigger an automation (cron-triggered automations only)").action(run(automationRunCommand));
55632
55534
  automation.command("delete <id>").description("Delete an automation").option("-f, --force", "Skip confirmation prompt").action(run(automationDeleteCommand));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.364",
3
+ "version": "0.3.365",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {