replicas-cli 0.3.532 → 0.3.535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +79 -35
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27806,7 +27806,7 @@ function stripAgentInstructionBlocks(text4) {
|
|
|
27806
27806
|
else spans(prose, text4.length);
|
|
27807
27807
|
return stripInstructionBlocksOutside(text4, quoted);
|
|
27808
27808
|
}
|
|
27809
|
-
var REPLICAS_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE,
|
|
27809
|
+
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
27810
|
var init_prompts = __esm({
|
|
27811
27811
|
"../shared/src/prompts.ts"() {
|
|
27812
27812
|
"use strict";
|
|
@@ -27829,41 +27829,52 @@ var init_prompts = __esm({
|
|
|
27829
27829
|
};
|
|
27830
27830
|
INSTRUCTIONS_OPEN = `<${REPLICAS_INSTRUCTIONS_TAG}>`;
|
|
27831
27831
|
INSTRUCTIONS_CLOSE = `</${REPLICAS_INSTRUCTIONS_TAG}>`;
|
|
27832
|
+
T = REPLICAS_MCP_TOOLS;
|
|
27833
|
+
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:
|
|
27834
|
+
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.
|
|
27835
|
+
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.
|
|
27836
|
+
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.
|
|
27837
|
+
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\`.`;
|
|
27838
|
+
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.`;
|
|
27839
|
+
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.`;
|
|
27840
|
+
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.`;
|
|
27841
|
+
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.`;
|
|
27842
|
+
}
|
|
27843
|
+
});
|
|
27844
|
+
|
|
27845
|
+
// ../shared/src/manager-prompts-common.ts
|
|
27846
|
+
var managerEventChatNote, managerChatRule;
|
|
27847
|
+
var init_manager_prompts_common = __esm({
|
|
27848
|
+
"../shared/src/manager-prompts-common.ts"() {
|
|
27849
|
+
"use strict";
|
|
27850
|
+
init_replicas_mcp();
|
|
27851
|
+
init_prompts();
|
|
27832
27852
|
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.`;
|
|
27853
|
+
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.`;
|
|
27854
|
+
}
|
|
27855
|
+
});
|
|
27856
|
+
|
|
27857
|
+
// ../shared/src/manager-prompts-legacy.ts
|
|
27858
|
+
var MANAGER_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, MERGE_RULE, BOARD_RULES, MANAGER_TICKET_MESSAGE_NOTE, MANAGER_TICKET_REPLY_NUDGE;
|
|
27859
|
+
var init_manager_prompts_legacy = __esm({
|
|
27860
|
+
"../shared/src/manager-prompts-legacy.ts"() {
|
|
27861
|
+
"use strict";
|
|
27862
|
+
init_replicas_mcp();
|
|
27863
|
+
init_manager_prompts_common();
|
|
27864
|
+
init_prompts();
|
|
27833
27865
|
MANAGER_EVENT_CHAT_NOTE = managerEventChatNote("update the board if its order, notes or overview changed, and ");
|
|
27834
27866
|
BOARD_ANSWER_NOTE = "The user answered on the board.";
|
|
27835
|
-
MANAGER_ISSUE_EVENT_CHAT_NOTE = managerEventChatNote("");
|
|
27836
27867
|
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
27868
|
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
27869
|
- 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
27870
|
- 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
27871
|
- 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
27872
|
${MERGE_RULE}
|
|
27843
27873
|
- 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
|
-
${
|
|
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")}
|
|
27874
|
+
${managerChatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
|
|
27854
27875
|
`;
|
|
27855
27876
|
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
27877
|
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
27878
|
}
|
|
27868
27879
|
});
|
|
27869
27880
|
|
|
@@ -27905,6 +27916,7 @@ var init_message_origin = __esm({
|
|
|
27905
27916
|
"../shared/src/message-origin.ts"() {
|
|
27906
27917
|
"use strict";
|
|
27907
27918
|
init_prompts();
|
|
27919
|
+
init_manager_prompts_legacy();
|
|
27908
27920
|
init_type_guards();
|
|
27909
27921
|
init_uuid();
|
|
27910
27922
|
UUID = UUID_RE.source.slice(1, -1);
|
|
@@ -39137,15 +39149,22 @@ function applyInterruptions(messages, events) {
|
|
|
39137
39149
|
}
|
|
39138
39150
|
function applyEngineNotices(messages, events) {
|
|
39139
39151
|
const notices = [];
|
|
39140
|
-
|
|
39152
|
+
const sameTime = /* @__PURE__ */ new Map();
|
|
39153
|
+
const noticeId = (kind, timestamp2) => {
|
|
39154
|
+
const id = `${kind}-${timestamp2}`;
|
|
39155
|
+
const ordinal2 = sameTime.get(id) ?? 0;
|
|
39156
|
+
sameTime.set(id, ordinal2 + 1);
|
|
39157
|
+
return `${id}-${ordinal2}`;
|
|
39158
|
+
};
|
|
39159
|
+
events.forEach((event) => {
|
|
39141
39160
|
if (event.type === MANAGER_EVENT_TYPE) {
|
|
39142
39161
|
const parsed = typeof event.payload.text === "string" ? parseManagerEvents(event.payload.text) : null;
|
|
39143
|
-
if (parsed) notices.push({ id:
|
|
39162
|
+
if (parsed) notices.push({ id: noticeId("multitask-event", event.timestamp), type: "multitask_event", events: parsed, timestamp: event.timestamp });
|
|
39144
39163
|
return;
|
|
39145
39164
|
}
|
|
39146
39165
|
if (event.type === CHAT_MESSAGE_REJECTED_EVENT_TYPE) {
|
|
39147
39166
|
notices.push({
|
|
39148
|
-
id:
|
|
39167
|
+
id: noticeId("message-rejected", event.timestamp),
|
|
39149
39168
|
type: "error",
|
|
39150
39169
|
message: typeof event.payload.message === "string" ? event.payload.message : "Message was rejected",
|
|
39151
39170
|
rejectedMessageId: typeof event.payload[REJECTED_MESSAGE_ID_PAYLOAD_KEY] === "string" ? event.payload[REJECTED_MESSAGE_ID_PAYLOAD_KEY] : void 0,
|
|
@@ -39156,7 +39175,7 @@ function applyEngineNotices(messages, events) {
|
|
|
39156
39175
|
}
|
|
39157
39176
|
if (event.type === CHAT_TURN_LOST_EVENT_TYPE) {
|
|
39158
39177
|
notices.push({
|
|
39159
|
-
id:
|
|
39178
|
+
id: noticeId("turn-lost", event.timestamp),
|
|
39160
39179
|
type: "error",
|
|
39161
39180
|
message: CHAT_TURN_LOST_MESSAGE,
|
|
39162
39181
|
timestamp: event.timestamp
|
|
@@ -39168,7 +39187,7 @@ function applyEngineNotices(messages, events) {
|
|
|
39168
39187
|
if (!payload) return;
|
|
39169
39188
|
notices.push({
|
|
39170
39189
|
...payload,
|
|
39171
|
-
id:
|
|
39190
|
+
id: noticeId("auth-fallback", event.timestamp),
|
|
39172
39191
|
type: "auth_fallback",
|
|
39173
39192
|
timestamp: event.timestamp
|
|
39174
39193
|
});
|
|
@@ -39890,6 +39909,27 @@ var init_keyboard_shortcuts = __esm({
|
|
|
39890
39909
|
}
|
|
39891
39910
|
});
|
|
39892
39911
|
|
|
39912
|
+
// ../shared/src/manager-prompts-issues.ts
|
|
39913
|
+
var ISSUES_MANAGER_EVENT_CHAT_NOTE;
|
|
39914
|
+
var init_manager_prompts_issues = __esm({
|
|
39915
|
+
"../shared/src/manager-prompts-issues.ts"() {
|
|
39916
|
+
"use strict";
|
|
39917
|
+
init_replicas_mcp();
|
|
39918
|
+
init_manager_prompts_common();
|
|
39919
|
+
init_prompts();
|
|
39920
|
+
ISSUES_MANAGER_EVENT_CHAT_NOTE = managerEventChatNote("");
|
|
39921
|
+
}
|
|
39922
|
+
});
|
|
39923
|
+
|
|
39924
|
+
// ../shared/src/manager-prompts.ts
|
|
39925
|
+
var init_manager_prompts = __esm({
|
|
39926
|
+
"../shared/src/manager-prompts.ts"() {
|
|
39927
|
+
"use strict";
|
|
39928
|
+
init_manager_prompts_issues();
|
|
39929
|
+
init_manager_prompts_legacy();
|
|
39930
|
+
}
|
|
39931
|
+
});
|
|
39932
|
+
|
|
39893
39933
|
// ../shared/src/quote-match.ts
|
|
39894
39934
|
var init_quote_match = __esm({
|
|
39895
39935
|
"../shared/src/quote-match.ts"() {
|
|
@@ -40297,7 +40337,7 @@ var CLI_VERSION;
|
|
|
40297
40337
|
var init_cli_version = __esm({
|
|
40298
40338
|
"../shared/src/cli-version.ts"() {
|
|
40299
40339
|
"use strict";
|
|
40300
|
-
CLI_VERSION = "0.3.
|
|
40340
|
+
CLI_VERSION = "0.3.535";
|
|
40301
40341
|
}
|
|
40302
40342
|
});
|
|
40303
40343
|
|
|
@@ -51300,6 +51340,10 @@ var init_src = __esm({
|
|
|
51300
51340
|
init_slash_commands();
|
|
51301
51341
|
init_keyboard_shortcuts();
|
|
51302
51342
|
init_prompts();
|
|
51343
|
+
init_manager_prompts();
|
|
51344
|
+
init_manager_prompts_common();
|
|
51345
|
+
init_manager_prompts_issues();
|
|
51346
|
+
init_manager_prompts_legacy();
|
|
51303
51347
|
init_issue_events();
|
|
51304
51348
|
init_tag_blocks();
|
|
51305
51349
|
init_manager_events();
|
|
@@ -51633,15 +51677,15 @@ async function ask(question) {
|
|
|
51633
51677
|
if (!isInteractive()) {
|
|
51634
51678
|
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
51679
|
}
|
|
51636
|
-
return (0,
|
|
51680
|
+
return (0, import_prompts10.default)(question);
|
|
51637
51681
|
}
|
|
51638
|
-
var import_chalk,
|
|
51682
|
+
var import_chalk, import_prompts10, jsonMode, isJsonMode, isInteractive, outputSuccess;
|
|
51639
51683
|
var init_output = __esm({
|
|
51640
51684
|
"src/lib/output.ts"() {
|
|
51641
51685
|
"use strict";
|
|
51642
51686
|
import_chalk = __toESM(require("chalk"));
|
|
51643
51687
|
init_src();
|
|
51644
|
-
|
|
51688
|
+
import_prompts10 = __toESM(require("prompts"));
|
|
51645
51689
|
jsonMode = false;
|
|
51646
51690
|
isJsonMode = () => jsonMode;
|
|
51647
51691
|
isInteractive = () => !jsonMode && !!process.stdin.isTTY;
|
|
@@ -52310,7 +52354,7 @@ function parseKeyValuePairs(pairs) {
|
|
|
52310
52354
|
}
|
|
52311
52355
|
async function confirmAction(message2) {
|
|
52312
52356
|
if (!isInteractive()) throw new Error(`${message2} Pass -f to confirm without a terminal.`);
|
|
52313
|
-
const { confirm } = await (0,
|
|
52357
|
+
const { confirm } = await (0, import_prompts11.default)({ type: "confirm", name: "confirm", message: message2, initial: false });
|
|
52314
52358
|
if (!confirm) console.log(import_chalk6.default.yellow("\nCancelled."));
|
|
52315
52359
|
return Boolean(confirm);
|
|
52316
52360
|
}
|
|
@@ -52332,13 +52376,13 @@ async function waitForUser(params) {
|
|
|
52332
52376
|
}
|
|
52333
52377
|
return params.settled(value) ? value : params.poll(false);
|
|
52334
52378
|
}
|
|
52335
|
-
var import_chalk6,
|
|
52379
|
+
var import_chalk6, import_prompts11;
|
|
52336
52380
|
var init_command_utils = __esm({
|
|
52337
52381
|
"src/lib/command-utils.ts"() {
|
|
52338
52382
|
"use strict";
|
|
52339
52383
|
import_chalk6 = __toESM(require("chalk"));
|
|
52340
52384
|
init_src();
|
|
52341
|
-
|
|
52385
|
+
import_prompts11 = __toESM(require("prompts"));
|
|
52342
52386
|
init_config();
|
|
52343
52387
|
init_output();
|
|
52344
52388
|
}
|