replicas-cli 0.3.533 → 0.3.536

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 +89 -37
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22638,15 +22638,23 @@ var init_chat_fork = __esm({
22638
22638
  });
22639
22639
 
22640
22640
  // ../shared/src/credential-refresh.ts
22641
- var engineCredentialRefreshFailureSchema;
22641
+ var restingCredentialsSchema, engineCredentialRefreshFailureSchema;
22642
22642
  var init_credential_refresh = __esm({
22643
22643
  "../shared/src/credential-refresh.ts"() {
22644
22644
  "use strict";
22645
22645
  init_zod();
22646
22646
  init_workspace_credentials();
22647
+ init_credentials();
22648
+ restingCredentialsSchema = external_exports.object({
22649
+ count: external_exports.number(),
22650
+ /** Set when every one of them is in this scope. */
22651
+ scope: external_exports.enum(CREDENTIAL_SCOPE).optional(),
22652
+ resetsAt: external_exports.string()
22653
+ });
22647
22654
  engineCredentialRefreshFailureSchema = external_exports.object({
22648
22655
  code: external_exports.string(),
22649
- credential: workspaceCredentialSelectionSchema.optional()
22656
+ credential: workspaceCredentialSelectionSchema.optional(),
22657
+ resting: restingCredentialsSchema.optional()
22650
22658
  });
22651
22659
  }
22652
22660
  });
@@ -27806,7 +27814,7 @@ function stripAgentInstructionBlocks(text4) {
27806
27814
  else spans(prose, text4.length);
27807
27815
  return stripInstructionBlocksOutside(text4, quoted);
27808
27816
  }
27809
- var REPLICAS_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, managerEventChatNote, MANAGER_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, MANAGER_ISSUE_EVENT_CHAT_NOTE, MERGE_RULE, chatRule, BOARD_RULES, ISSUE_RULES, MANAGER_TICKET_MESSAGE_NOTE, MANAGER_TICKET_REPLY_NUDGE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
27817
+ var REPLICAS_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
27810
27818
  var init_prompts = __esm({
27811
27819
  "../shared/src/prompts.ts"() {
27812
27820
  "use strict";
@@ -27829,41 +27837,52 @@ var init_prompts = __esm({
27829
27837
  };
27830
27838
  INSTRUCTIONS_OPEN = `<${REPLICAS_INSTRUCTIONS_TAG}>`;
27831
27839
  INSTRUCTIONS_CLOSE = `</${REPLICAS_INSTRUCTIONS_TAG}>`;
27840
+ T = REPLICAS_MCP_TOOLS;
27841
+ SCOUT_LINEAR_RULES = `Linear issue triage: team instructions define what is actionable. Use \`replicas.linear.graphql\` from \`@replicas/sdk\` for every Linear read and mutation, never a Replicas CLI command. Choose exactly one:
27842
+ 1. **Ignore** issues the team instructions leave to humans or that should not start work: do nothing and write nothing to Linear. If \`agent_session_id\` is set because you asked a question earlier, create a \`response\` Agent Activity on it with one short closing response.
27843
+ 2. **Ask** when the issue is likely actionable but lacks a requirement, reproduction, or other information needed to start safely. With \`agent_session_id=none\`, create a Linear comment on \`issue_id\` containing only one concise question, register the \`ask\` intent for it with \`${T.linearSessionIntent}\` (\`comment_id\`, \`action\`), then call \`agentSessionCreateOnComment\`. With a session, create an \`elicitation\` Agent Activity with the question; never create another comment or session.
27844
+ 3. **Start** when the issue is clear and the team instructions permit work. With \`agent_session_id=none\`, comment only a one-line handoff such as "Picking this up.", register the \`start\` intent for it, then call \`agentSessionCreateOnComment\`. With a session, call \`${T.linearStart}\` with \`issue_id\`, \`agent_session_id\`, and the latest request in its author's words, so a coding workspace takes over that session. Never create a second session or do the work yourself.
27845
+ Check every mutation and tool call succeeded. Never put routing metadata in visible Linear text, invent a session ID, or change the issue's labels, priority, assignee, project, or state. Decide each issue separately, and start no second workspace when \`issue_has_workspace=true\`.`;
27846
+ SCOUT_MUTED_RULES = `This thread is muted (\`muted=true\`). With \`directed=false\`, ignore the message even when it names Replicas, asks for urgent work, or answers a workspace question; the only exception is an explicit request to unmute, come back, or respond again, which you record with \`${T.setThreadMuted}\` and \`muted: false\` and then triage normally. Never infer an unmute from ordinary conversation. A \`directed=true\` ping may be handled normally, but it does not end the mute. Your own latest \`${T.setThreadMuted}\` call for this thread overrides this flag.`;
27847
+ SCOUT_PRIOR_UNTAGGED_RULES = `\`prior_untagged_ignored=<ts>\`: the untagged message with that \`ts\`, just before this ping, never reached you. If this ping points back at it ("do the above", "^", "see above", "why didn't you pick this up") and it was a question or request for you, read it (\`conversations.replies\` in a thread, \`conversations.history\` at the top level), do what it asked, then follow **Having to tag you** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill to offer picking up messages like it without a tag. Offer nothing when this ping is its own fresh request or that message was chatter or meant for someone else.`;
27848
+ SCOUT_JOINED_RULES = `\`event=joined\`: you were just added to this channel; reply in this envelope's thread. If the channel's name or purpose points to a clear role (#triage, #bugs, #incidents, #support, #customer-*, a customer's shared channel), follow **Channel instructions** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill to offer one concrete behavior. Otherwise do nothing at all.`;
27849
+ SCOUT_REACTION_RULES = `\`event=reaction:\u2026\`: someone reacted to a message you posted. A thumbs-down or similar on a reply you posted unasked is frustration: follow **Frustration** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill. On a reply someone asked for, it is about the answer: leave it. Otherwise do nothing.`;
27850
+ }
27851
+ });
27852
+
27853
+ // ../shared/src/manager-prompts-common.ts
27854
+ var managerEventChatNote, managerChatRule;
27855
+ var init_manager_prompts_common = __esm({
27856
+ "../shared/src/manager-prompts-common.ts"() {
27857
+ "use strict";
27858
+ init_replicas_mcp();
27859
+ init_prompts();
27832
27860
  managerEventChatNote = (then) => `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 ${then}end with a one-line note.`;
27861
+ managerChatRule = (view, news) => `- The chat is like texting an assistant. In a turn the user typed, they see the text you write between tool calls as it streams, your final reply, what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and your \`${REPLICAS_MCP_TOOLS.setStatus}\` line, never your tool calls. Unless you can answer right away, open with one line on what you'll do first and roughly how long it takes. Then call \`${REPLICAS_MCP_TOOLS.setStatus}\` with a few words on your current step, such as "Reading the billing webhook", and again each time you move to a new step. Before your final reply, write only what they'd want to know now: ${news}. Never narrate tool calls or say you're still working. When they message you mid-turn, reply in one line before anything else, then fold it into your work. Write in a line or two with links and any media inline, and never restate ${view} in chat.`;
27862
+ }
27863
+ });
27864
+
27865
+ // ../shared/src/manager-prompts-legacy.ts
27866
+ var MANAGER_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, MERGE_RULE, BOARD_RULES, MANAGER_TICKET_MESSAGE_NOTE, MANAGER_TICKET_REPLY_NUDGE;
27867
+ var init_manager_prompts_legacy = __esm({
27868
+ "../shared/src/manager-prompts-legacy.ts"() {
27869
+ "use strict";
27870
+ init_replicas_mcp();
27871
+ init_manager_prompts_common();
27872
+ init_prompts();
27833
27873
  MANAGER_EVENT_CHAT_NOTE = managerEventChatNote("update the board if its order, notes or overview changed, and ");
27834
27874
  BOARD_ANSWER_NOTE = "The user answered on the board.";
27835
- MANAGER_ISSUE_EVENT_CHAT_NOTE = managerEventChatNote("");
27836
27875
  MERGE_RULE = `- 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.`;
27837
- chatRule = (view, news) => `- The chat is like texting an assistant. In a turn the user typed, they see the text you write between tool calls as it streams, your final reply, what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and your \`${REPLICAS_MCP_TOOLS.setStatus}\` line, never your tool calls. Unless you can answer right away, open with one line on what you'll do first and roughly how long it takes. Then call \`${REPLICAS_MCP_TOOLS.setStatus}\` with a few words on your current step, such as "Reading the billing webhook", and again each time you move to a new step. Before your final reply, write only what they'd want to know now: ${news}. Never narrate tool calls or say you're still working. When they message you mid-turn, reply in one line before anything else, then fold it into your work. Write in a line or two with links and any media inline, and never restate ${view} in chat.`;
27838
27876
  BOARD_RULES = `- The board in the Ships pane beside this chat is the user's one view of the work: one ticket per task they ask for, holding only that task's pull requests. Replicas fills in each ticket's title, summaries, section and pull requests from the task, the ship's reports and its pull requests, so never restate what a ticket shows, and correct one with \`${REPLICAS_MCP_TOOLS.updateBoard}\` only when it's wrong.
27839
27877
  - Keep the board organized with \`${REPLICAS_MCP_TOOLS.updateBoard}\`: tickets in order, most important first; one short note per ticket only when it adds something, such as "Merge after #12"; and one overview line on where the work as a whole stands. Archive tickets the user no longer needs.
27840
27878
  - 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.
27841
27879
  - 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.
27842
27880
  ${MERGE_RULE}
27843
27881
  - On every ship event and board answer, act with tools on whatever it unblocks, such as starting the next task once a pull request merges, and update the board if it changed. The user sees nothing you write in these turns unless a message they typed is still unanswered; otherwise reach them only with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and only for what they'd want right now: a deliverable they asked for, with its media, links or answer; a blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged" or "I asked the ship to\u2026". End the turn with a one-line note of what you did.
27844
- ${chatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
27845
- `;
27846
- ISSUE_RULES = `- Your work lives in issues in your slice of the organization's Issues, which the Issues tab beside this chat shows the user. Before delegating, turn a request into issues with \`replicas issue create\`: one per independent task, so five small bugs are five issues, and a parent with sub-issues for a big project. Reuse an issue the request is about; find it with \`replicas issue list\`. A title says what the task is about, never a ship, branch or pull request name.
27847
- - Spawn ships with \`issue\`, and pass \`issue\` to \`${REPLICAS_MCP_TOOLS.messageSubagent}\` to point a ship at another one: it is assigned, subscribed and told. Several ships can share an issue. Replicas moves an issue to In progress when a ship starts it. Ships link their pull requests with \`replicas issue link-pr\`, move the issue to Review themselves, and comment their progress, so never restate what an issue shows. Linked pull requests then move the status: Replicas moves an issue to Approved when every linked pull request is approved, and to Done when every one is merged, and each move reaches you as an \`<issue_event>\`. Nothing links on its own, so when a ship is asleep, link its pull request yourself if it isn't linked, and move the issue back when a move isn't really true. Give a ship one issue per pull request where you can. Statuses mean exactly this: In progress, work underway (a failing check, conflicts, review comments to answer, missing work, or waiting on another pull request); Review, waiting only on a person, with a linked pull request open, no conflicts and nothing failing (CI rerunning after a push is fine), and the person who must review or approve it assigned (move it back to In progress only for a conflict, a failing check or missing work, never just because something was pushed, so issues don't bounce); Approved, every linked pull request approved but not yet merged or live; Done, every linked pull request it needs merged (and deployed when that matters) and nothing left; Canceled, dropped, with a comment saying why. Keep every property true at all times: status, assignee, linked pull requests (link only the pull requests that do this issue's work; unlink wrong ones with \`replicas issue unlink-pr\` or the app), and the description, when the plan changes. Before ending a turn, check that your issues' statuses match reality, including those of ships that are asleep. Order, reprioritize or cancel issues with \`replicas issue update\`.
27848
- - You are subscribed to every issue in your slice: comments and changes by ships and people arrive as \`<issue_event>\` blocks. Act on them like ship events. Ships assigned to an issue get its comments too, so never relay a comment to them; pass it only to a ship that isn't on the issue.
27849
- - 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 decision or merge only they can give, assign them to the issue with \`replicas issue assign\` and comment the question with \`replicas issue comment\`; their reply comes back as an \`<issue_event>\`. Once they answer a question you asked, unassign them with \`replicas issue unassign\` so the issue leaves their "Assigned to you"; they stay subscribed. Ships ask and unassign for their own questions, so leave those to them.
27850
- - 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 assign the user only if you can't decide. On \`ready\` for a pull request that needs a person's review, assign the user with a one-line comment.
27851
- ${MERGE_RULE}
27852
- - On every ship and issue event, act with tools on whatever it unblocks, such as starting the next task once a pull request merges. The user sees nothing you write in these turns unless a message they typed is still unanswered; otherwise reach them only with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and only for what they'd want right now: a deliverable they asked for, with its media, links or answer; a blocker that needs them, also assigned to them on its issue; or a request of theirs being done. Never for status, such as "PR #12 merged" or "I asked the ship to\u2026". End the turn with a one-line note of what you did, or only \`No action needed.\` when an issue event needs nothing from you.
27853
- ${chatRule("the Issues tab", "the issues you created, a ship you started, a finding that changes the answer, or a decision you need")}
27882
+ ${managerChatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
27854
27883
  `;
27855
27884
  MANAGER_TICKET_MESSAGE_NOTE = `The user sent this from your ticket on the Manager's board and reads your answer there, not in this chat. Answer them with \`${REPLICAS_MCP_TOOLS.replyOnTicket}\`: briefly, with a link or screenshot if it helps, and a follow-up question only if you need one. Keep longer work and detail in this chat.`;
27856
27885
  MANAGER_TICKET_REPLY_NUDGE = `The user is still waiting for your answer on your ticket, and they only read the ticket. Answer them now with \`${REPLICAS_MCP_TOOLS.replyOnTicket}\`, briefly.`;
27857
- T = REPLICAS_MCP_TOOLS;
27858
- SCOUT_LINEAR_RULES = `Linear issue triage: team instructions define what is actionable. Use \`replicas.linear.graphql\` from \`@replicas/sdk\` for every Linear read and mutation, never a Replicas CLI command. Choose exactly one:
27859
- 1. **Ignore** issues the team instructions leave to humans or that should not start work: do nothing and write nothing to Linear. If \`agent_session_id\` is set because you asked a question earlier, create a \`response\` Agent Activity on it with one short closing response.
27860
- 2. **Ask** when the issue is likely actionable but lacks a requirement, reproduction, or other information needed to start safely. With \`agent_session_id=none\`, create a Linear comment on \`issue_id\` containing only one concise question, register the \`ask\` intent for it with \`${T.linearSessionIntent}\` (\`comment_id\`, \`action\`), then call \`agentSessionCreateOnComment\`. With a session, create an \`elicitation\` Agent Activity with the question; never create another comment or session.
27861
- 3. **Start** when the issue is clear and the team instructions permit work. With \`agent_session_id=none\`, comment only a one-line handoff such as "Picking this up.", register the \`start\` intent for it, then call \`agentSessionCreateOnComment\`. With a session, call \`${T.linearStart}\` with \`issue_id\`, \`agent_session_id\`, and the latest request in its author's words, so a coding workspace takes over that session. Never create a second session or do the work yourself.
27862
- Check every mutation and tool call succeeded. Never put routing metadata in visible Linear text, invent a session ID, or change the issue's labels, priority, assignee, project, or state. Decide each issue separately, and start no second workspace when \`issue_has_workspace=true\`.`;
27863
- SCOUT_MUTED_RULES = `This thread is muted (\`muted=true\`). With \`directed=false\`, ignore the message even when it names Replicas, asks for urgent work, or answers a workspace question; the only exception is an explicit request to unmute, come back, or respond again, which you record with \`${T.setThreadMuted}\` and \`muted: false\` and then triage normally. Never infer an unmute from ordinary conversation. A \`directed=true\` ping may be handled normally, but it does not end the mute. Your own latest \`${T.setThreadMuted}\` call for this thread overrides this flag.`;
27864
- SCOUT_PRIOR_UNTAGGED_RULES = `\`prior_untagged_ignored=<ts>\`: the untagged message with that \`ts\`, just before this ping, never reached you. If this ping points back at it ("do the above", "^", "see above", "why didn't you pick this up") and it was a question or request for you, read it (\`conversations.replies\` in a thread, \`conversations.history\` at the top level), do what it asked, then follow **Having to tag you** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill to offer picking up messages like it without a tag. Offer nothing when this ping is its own fresh request or that message was chatter or meant for someone else.`;
27865
- SCOUT_JOINED_RULES = `\`event=joined\`: you were just added to this channel; reply in this envelope's thread. If the channel's name or purpose points to a clear role (#triage, #bugs, #incidents, #support, #customer-*, a customer's shared channel), follow **Channel instructions** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill to offer one concrete behavior. Otherwise do nothing at all.`;
27866
- SCOUT_REACTION_RULES = `\`event=reaction:\u2026\`: someone reacted to a message you posted. A thumbs-down or similar on a reply you posted unasked is frustration: follow **Frustration** in the \`${SCOUT_SETTINGS_SKILL_NAME}\` skill. On a reply someone asked for, it is about the answer: leave it. Otherwise do nothing.`;
27867
27886
  }
27868
27887
  });
27869
27888
 
@@ -27905,6 +27924,7 @@ var init_message_origin = __esm({
27905
27924
  "../shared/src/message-origin.ts"() {
27906
27925
  "use strict";
27907
27926
  init_prompts();
27927
+ init_manager_prompts_legacy();
27908
27928
  init_type_guards();
27909
27929
  init_uuid();
27910
27930
  UUID = UUID_RE.source.slice(1, -1);
@@ -39137,15 +39157,22 @@ function applyInterruptions(messages, events) {
39137
39157
  }
39138
39158
  function applyEngineNotices(messages, events) {
39139
39159
  const notices = [];
39140
- events.forEach((event, index) => {
39160
+ const sameTime = /* @__PURE__ */ new Map();
39161
+ const noticeId = (kind, timestamp2) => {
39162
+ const id = `${kind}-${timestamp2}`;
39163
+ const ordinal2 = sameTime.get(id) ?? 0;
39164
+ sameTime.set(id, ordinal2 + 1);
39165
+ return `${id}-${ordinal2}`;
39166
+ };
39167
+ events.forEach((event) => {
39141
39168
  if (event.type === MANAGER_EVENT_TYPE) {
39142
39169
  const parsed = typeof event.payload.text === "string" ? parseManagerEvents(event.payload.text) : null;
39143
- if (parsed) notices.push({ id: `multitask-event-${event.timestamp}-${index}`, type: "multitask_event", events: parsed, timestamp: event.timestamp });
39170
+ if (parsed) notices.push({ id: noticeId("multitask-event", event.timestamp), type: "multitask_event", events: parsed, timestamp: event.timestamp });
39144
39171
  return;
39145
39172
  }
39146
39173
  if (event.type === CHAT_MESSAGE_REJECTED_EVENT_TYPE) {
39147
39174
  notices.push({
39148
- id: `message-rejected-${event.timestamp}-${index}`,
39175
+ id: noticeId("message-rejected", event.timestamp),
39149
39176
  type: "error",
39150
39177
  message: typeof event.payload.message === "string" ? event.payload.message : "Message was rejected",
39151
39178
  rejectedMessageId: typeof event.payload[REJECTED_MESSAGE_ID_PAYLOAD_KEY] === "string" ? event.payload[REJECTED_MESSAGE_ID_PAYLOAD_KEY] : void 0,
@@ -39156,7 +39183,7 @@ function applyEngineNotices(messages, events) {
39156
39183
  }
39157
39184
  if (event.type === CHAT_TURN_LOST_EVENT_TYPE) {
39158
39185
  notices.push({
39159
- id: `turn-lost-${event.timestamp}-${index}`,
39186
+ id: noticeId("turn-lost", event.timestamp),
39160
39187
  type: "error",
39161
39188
  message: CHAT_TURN_LOST_MESSAGE,
39162
39189
  timestamp: event.timestamp
@@ -39168,7 +39195,7 @@ function applyEngineNotices(messages, events) {
39168
39195
  if (!payload) return;
39169
39196
  notices.push({
39170
39197
  ...payload,
39171
- id: `auth-fallback-${event.timestamp}-${index}`,
39198
+ id: noticeId("auth-fallback", event.timestamp),
39172
39199
  type: "auth_fallback",
39173
39200
  timestamp: event.timestamp
39174
39201
  });
@@ -39890,6 +39917,27 @@ var init_keyboard_shortcuts = __esm({
39890
39917
  }
39891
39918
  });
39892
39919
 
39920
+ // ../shared/src/manager-prompts-issues.ts
39921
+ var ISSUES_MANAGER_EVENT_CHAT_NOTE;
39922
+ var init_manager_prompts_issues = __esm({
39923
+ "../shared/src/manager-prompts-issues.ts"() {
39924
+ "use strict";
39925
+ init_replicas_mcp();
39926
+ init_manager_prompts_common();
39927
+ init_prompts();
39928
+ ISSUES_MANAGER_EVENT_CHAT_NOTE = managerEventChatNote("");
39929
+ }
39930
+ });
39931
+
39932
+ // ../shared/src/manager-prompts.ts
39933
+ var init_manager_prompts = __esm({
39934
+ "../shared/src/manager-prompts.ts"() {
39935
+ "use strict";
39936
+ init_manager_prompts_issues();
39937
+ init_manager_prompts_legacy();
39938
+ }
39939
+ });
39940
+
39893
39941
  // ../shared/src/quote-match.ts
39894
39942
  var init_quote_match = __esm({
39895
39943
  "../shared/src/quote-match.ts"() {
@@ -40297,7 +40345,7 @@ var CLI_VERSION;
40297
40345
  var init_cli_version = __esm({
40298
40346
  "../shared/src/cli-version.ts"() {
40299
40347
  "use strict";
40300
- CLI_VERSION = "0.3.533";
40348
+ CLI_VERSION = "0.3.536";
40301
40349
  }
40302
40350
  });
40303
40351
 
@@ -51300,6 +51348,10 @@ var init_src = __esm({
51300
51348
  init_slash_commands();
51301
51349
  init_keyboard_shortcuts();
51302
51350
  init_prompts();
51351
+ init_manager_prompts();
51352
+ init_manager_prompts_common();
51353
+ init_manager_prompts_issues();
51354
+ init_manager_prompts_legacy();
51303
51355
  init_issue_events();
51304
51356
  init_tag_blocks();
51305
51357
  init_manager_events();
@@ -51633,15 +51685,15 @@ async function ask(question) {
51633
51685
  if (!isInteractive()) {
51634
51686
  throw new Error(`Missing input (${String(question.message).trim()}) and no interactive terminal to ask for it. Pass it as an option; see --help.`);
51635
51687
  }
51636
- return (0, import_prompts7.default)(question);
51688
+ return (0, import_prompts10.default)(question);
51637
51689
  }
51638
- var import_chalk, import_prompts7, jsonMode, isJsonMode, isInteractive, outputSuccess;
51690
+ var import_chalk, import_prompts10, jsonMode, isJsonMode, isInteractive, outputSuccess;
51639
51691
  var init_output = __esm({
51640
51692
  "src/lib/output.ts"() {
51641
51693
  "use strict";
51642
51694
  import_chalk = __toESM(require("chalk"));
51643
51695
  init_src();
51644
- import_prompts7 = __toESM(require("prompts"));
51696
+ import_prompts10 = __toESM(require("prompts"));
51645
51697
  jsonMode = false;
51646
51698
  isJsonMode = () => jsonMode;
51647
51699
  isInteractive = () => !jsonMode && !!process.stdin.isTTY;
@@ -52310,7 +52362,7 @@ function parseKeyValuePairs(pairs) {
52310
52362
  }
52311
52363
  async function confirmAction(message2) {
52312
52364
  if (!isInteractive()) throw new Error(`${message2} Pass -f to confirm without a terminal.`);
52313
- const { confirm } = await (0, import_prompts8.default)({ type: "confirm", name: "confirm", message: message2, initial: false });
52365
+ const { confirm } = await (0, import_prompts11.default)({ type: "confirm", name: "confirm", message: message2, initial: false });
52314
52366
  if (!confirm) console.log(import_chalk6.default.yellow("\nCancelled."));
52315
52367
  return Boolean(confirm);
52316
52368
  }
@@ -52332,13 +52384,13 @@ async function waitForUser(params) {
52332
52384
  }
52333
52385
  return params.settled(value) ? value : params.poll(false);
52334
52386
  }
52335
- var import_chalk6, import_prompts8;
52387
+ var import_chalk6, import_prompts11;
52336
52388
  var init_command_utils = __esm({
52337
52389
  "src/lib/command-utils.ts"() {
52338
52390
  "use strict";
52339
52391
  import_chalk6 = __toESM(require("chalk"));
52340
52392
  init_src();
52341
- import_prompts8 = __toESM(require("prompts"));
52393
+ import_prompts11 = __toESM(require("prompts"));
52342
52394
  init_config();
52343
52395
  init_output();
52344
52396
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.533",
3
+ "version": "0.3.536",
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": {