replicas-cli 0.3.428 → 0.3.429
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 +28 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23128,6 +23128,7 @@ var init_replicas_mcp = __esm({
|
|
|
23128
23128
|
getBoard: "get_board",
|
|
23129
23129
|
updateBoard: "update_board",
|
|
23130
23130
|
updateTicket: "update_ticket",
|
|
23131
|
+
replyOnTicket: "reply_on_ticket",
|
|
23131
23132
|
sendToChat: "send_to_chat",
|
|
23132
23133
|
getLinearRouting: "get_linear_routing",
|
|
23133
23134
|
setLinearRouting: "set_linear_routing",
|
|
@@ -26552,7 +26553,7 @@ function stripAgentInstructionBlocks(text4) {
|
|
|
26552
26553
|
else spans(prose, text4.length);
|
|
26553
26554
|
return stripInstructionBlocksOutside(text4, quoted);
|
|
26554
26555
|
}
|
|
26555
|
-
var REPLICAS_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, MOTHERSHIP_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, BOARD_RULES, MOTHERSHIP_INSTRUCTIONS_BLOCK, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
|
|
26556
|
+
var REPLICAS_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, MOTHERSHIP_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, BOARD_RULES, MOTHERSHIP_INSTRUCTIONS_BLOCK, MOTHERSHIP_TICKET_MESSAGE_NOTE, MOTHERSHIP_TICKET_REPLY_NUDGE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
|
|
26556
26557
|
var init_prompts = __esm({
|
|
26557
26558
|
"../shared/src/prompts.ts"() {
|
|
26558
26559
|
"use strict";
|
|
@@ -26588,6 +26589,8 @@ var init_prompts = __esm({
|
|
|
26588
26589
|
- 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.
|
|
26589
26590
|
`;
|
|
26590
26591
|
MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
|
|
26592
|
+
MOTHERSHIP_TICKET_MESSAGE_NOTE = `The user sent this from your ticket on the Mothership'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.`;
|
|
26593
|
+
MOTHERSHIP_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.`;
|
|
26591
26594
|
T = REPLICAS_MCP_TOOLS;
|
|
26592
26595
|
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:
|
|
26593
26596
|
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.
|
|
@@ -26668,6 +26671,7 @@ function extractMothershipEvents(text4) {
|
|
|
26668
26671
|
summary: summary.trim(),
|
|
26669
26672
|
...detail ? { detail } : {},
|
|
26670
26673
|
...attributes.chat_id ? { chatId: attributes.chat_id } : {},
|
|
26674
|
+
...attributes.ticket_id ? { ticket: { id: attributes.ticket_id, title: attributes.ticket ?? "" } } : {},
|
|
26671
26675
|
...attributes.noticed === "true" ? { noticed: true } : {}
|
|
26672
26676
|
}];
|
|
26673
26677
|
});
|
|
@@ -26688,7 +26692,7 @@ var init_mothership_events = __esm({
|
|
|
26688
26692
|
init_prompts();
|
|
26689
26693
|
init_message_origin();
|
|
26690
26694
|
init_urls();
|
|
26691
|
-
MOTHERSHIP_EVENT_KINDS = ["finished", "ready", "needs_attention", "approved", "merged", "closed", "archived"];
|
|
26695
|
+
MOTHERSHIP_EVENT_KINDS = ["finished", "ready", "needs_attention", "approved", "merged", "closed", "archived", "replied"];
|
|
26692
26696
|
UNKNOWN_EVENT_KIND = "update";
|
|
26693
26697
|
MOTHERSHIP_EVENT_TYPE = "multitask-event";
|
|
26694
26698
|
mothershipEventSchema = external_exports.object({
|
|
@@ -26701,6 +26705,7 @@ var init_mothership_events = __esm({
|
|
|
26701
26705
|
detail: external_exports.string().optional(),
|
|
26702
26706
|
// Set when the subagent is a chat in this workspace rather than a ship; agentId is then that chat's id.
|
|
26703
26707
|
chatId: external_exports.string().optional(),
|
|
26708
|
+
ticket: external_exports.object({ id: external_exports.string(), title: external_exports.string() }).optional(),
|
|
26704
26709
|
// Set on events recorded before every kind woke the orchestrator, which were shown as a row when they happened.
|
|
26705
26710
|
noticed: external_exports.boolean().optional()
|
|
26706
26711
|
});
|
|
@@ -34808,7 +34813,7 @@ var init_workspace_target = __esm({
|
|
|
34808
34813
|
});
|
|
34809
34814
|
|
|
34810
34815
|
// ../shared/src/mothership-board.ts
|
|
34811
|
-
var MOTHERSHIP_TICKET_LIMITS, L, tooLong, text3, clearable, httpsUrl, inlineMarkdown, markdown, linearIdentifier, mediaSchema, questionSchema, mothershipTicketTitleSchema, mothershipTicketTaskSchema, mothershipTicketMediaSchema, mothershipTicketQuestionsSchema, issueSchema, fixSchema, updateMothershipTicketRequestSchema, updateMothershipBoardRequestSchema, answerMothershipTicketRequestSchema, mothershipTicketAnswerRefSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
|
|
34816
|
+
var MOTHERSHIP_TICKET_LIMITS, L, tooLong, text3, clearable, httpsUrl, inlineMarkdown, markdown, linearIdentifier, mediaSchema, questionSchema, mothershipTicketTitleSchema, mothershipTicketTaskSchema, mothershipTicketMediaSchema, mothershipTicketQuestionsSchema, issueSchema, fixSchema, updateMothershipTicketRequestSchema, updateMothershipBoardRequestSchema, answerMothershipTicketRequestSchema, mothershipTicketAnswerRefSchema, replyOnMothershipTicketRequestSchema, mothershipTicketReplyRefSchema, mothershipTicketThreadSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
|
|
34812
34817
|
var init_mothership_board = __esm({
|
|
34813
34818
|
"../shared/src/mothership-board.ts"() {
|
|
34814
34819
|
"use strict";
|
|
@@ -34816,6 +34821,7 @@ var init_mothership_board = __esm({
|
|
|
34816
34821
|
init_mothership();
|
|
34817
34822
|
init_mothership_events();
|
|
34818
34823
|
init_urls();
|
|
34824
|
+
init_format();
|
|
34819
34825
|
MOTHERSHIP_TICKET_LIMITS = {
|
|
34820
34826
|
title: 80,
|
|
34821
34827
|
task: 1e3,
|
|
@@ -34830,7 +34836,8 @@ var init_mothership_board = __esm({
|
|
|
34830
34836
|
blocked: 200,
|
|
34831
34837
|
media: 6,
|
|
34832
34838
|
caption: 80,
|
|
34833
|
-
answer: 2e3
|
|
34839
|
+
answer: 2e3,
|
|
34840
|
+
reply: 600
|
|
34834
34841
|
};
|
|
34835
34842
|
L = MOTHERSHIP_TICKET_LIMITS;
|
|
34836
34843
|
tooLong = (max) => `At most ${max} characters. Keep it short; the user should take it in at a glance`;
|
|
@@ -34889,6 +34896,21 @@ var init_mothership_board = __esm({
|
|
|
34889
34896
|
answer: text3(L.answer)
|
|
34890
34897
|
});
|
|
34891
34898
|
mothershipTicketAnswerRefSchema = external_exports.object({ mothershipId: external_exports.uuid(), ticketId: external_exports.uuid(), questionId: external_exports.string().min(1) });
|
|
34899
|
+
replyOnMothershipTicketRequestSchema = external_exports.object({
|
|
34900
|
+
reply: text3(L.reply).describe(`Your answer to the user's latest message on the ticket, in a few sentences. ${markdown} Link a screenshot or recording uploaded with \`replicas media upload\` if it helps. At most ${L.reply} characters; keep longer detail in your chat.`),
|
|
34901
|
+
question: questionSchema.optional().describe("A follow-up question only if you need the user to decide something. It shows on the ticket with its options, and their answer comes back to you.")
|
|
34902
|
+
});
|
|
34903
|
+
mothershipTicketReplyRefSchema = external_exports.object({ ticketId: external_exports.uuid(), text: text3(L.answer) });
|
|
34904
|
+
mothershipTicketThreadSchema = external_exports.array(external_exports.object({
|
|
34905
|
+
id: external_exports.string(),
|
|
34906
|
+
from: external_exports.enum(["user", "ship"]),
|
|
34907
|
+
name: external_exports.string(),
|
|
34908
|
+
ship_id: external_exports.string(),
|
|
34909
|
+
chat_id: external_exports.string(),
|
|
34910
|
+
text: external_exports.string(),
|
|
34911
|
+
at: external_exports.string(),
|
|
34912
|
+
nudge: external_exports.enum(["sent", "missed"]).optional()
|
|
34913
|
+
}));
|
|
34892
34914
|
LINEAR_ISSUE_SUMMARIES_MAX = 50;
|
|
34893
34915
|
linearIssueSummariesRequestSchema = external_exports.object({ identifiers: external_exports.array(linearIdentifier).min(1).max(LINEAR_ISSUE_SUMMARIES_MAX) });
|
|
34894
34916
|
}
|
|
@@ -34999,6 +35021,7 @@ var init_steps = __esm({
|
|
|
34999
35021
|
[REPLICAS_MCP_TOOLS.getBoard]: { icon: "book", live: "Reading board", done: "Read board" },
|
|
35000
35022
|
[REPLICAS_MCP_TOOLS.updateBoard]: { icon: "file-pen", live: "Updating board", done: "Updated board" },
|
|
35001
35023
|
[REPLICAS_MCP_TOOLS.updateTicket]: { icon: "file-pen", live: "Updating ticket", done: "Updated ticket" },
|
|
35024
|
+
[REPLICAS_MCP_TOOLS.replyOnTicket]: { icon: "file-pen", live: "Replying on ticket", done: "Replied on ticket" },
|
|
35002
35025
|
[REPLICAS_MCP_TOOLS.sendToChat]: { icon: "message", live: "Sending to chat", done: "Sent to chat" },
|
|
35003
35026
|
[REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
|
|
35004
35027
|
};
|
|
@@ -38369,7 +38392,7 @@ var CLI_VERSION;
|
|
|
38369
38392
|
var init_cli_version = __esm({
|
|
38370
38393
|
"../shared/src/cli-version.ts"() {
|
|
38371
38394
|
"use strict";
|
|
38372
|
-
CLI_VERSION = "0.3.
|
|
38395
|
+
CLI_VERSION = "0.3.429";
|
|
38373
38396
|
}
|
|
38374
38397
|
});
|
|
38375
38398
|
|