replicas-cli 0.3.463 → 0.3.465
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 +12 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23979,6 +23979,7 @@ var init_replicas_mcp = __esm({
|
|
|
23979
23979
|
updateTicket: "update_ticket",
|
|
23980
23980
|
replyOnTicket: "reply_on_ticket",
|
|
23981
23981
|
sendToChat: "send_to_chat",
|
|
23982
|
+
setStatus: "set_status",
|
|
23982
23983
|
getLinearRouting: "get_linear_routing",
|
|
23983
23984
|
setLinearRouting: "set_linear_routing",
|
|
23984
23985
|
clearLinearRouting: "clear_linear_routing",
|
|
@@ -27265,7 +27266,7 @@ var init_prompts = __esm({
|
|
|
27265
27266
|
- 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.
|
|
27266
27267
|
- 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.
|
|
27267
27268
|
- 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.
|
|
27268
|
-
- The chat is like texting an assistant
|
|
27269
|
+
- 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" or "Checking npm for outdated packages", and call it again each time you move to a new step. Before your final reply, write only what they'd want to know now: a finding that changes the answer, a ship you started, or a decision you need. Never narrate tool calls or say you're still working. When they message you mid-turn, reply to it in one line before anything else, then fold it into your work. 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.
|
|
27269
27270
|
`;
|
|
27270
27271
|
MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
|
|
27271
27272
|
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.`;
|
|
@@ -35702,6 +35703,7 @@ var init_steps = __esm({
|
|
|
35702
35703
|
[REPLICAS_MCP_TOOLS.updateTicket]: { icon: "file-pen", live: "Updating ticket", done: "Updated ticket" },
|
|
35703
35704
|
[REPLICAS_MCP_TOOLS.replyOnTicket]: { icon: "file-pen", live: "Replying on ticket", done: "Replied on ticket" },
|
|
35704
35705
|
[REPLICAS_MCP_TOOLS.sendToChat]: { icon: "message", live: "Sending to chat", done: "Sent to chat" },
|
|
35706
|
+
[REPLICAS_MCP_TOOLS.setStatus]: { icon: "message", live: "Setting status", done: "Set status" },
|
|
35705
35707
|
[REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
|
|
35706
35708
|
};
|
|
35707
35709
|
}
|
|
@@ -39443,7 +39445,11 @@ var init_types8 = __esm({
|
|
|
39443
39445
|
/** Saved before its tool calls run. */
|
|
39444
39446
|
external_exports.object({ type: external_exports.literal("assistant_message"), payload: external_exports.looseObject({ message: assistantMessageSchema }) }),
|
|
39445
39447
|
external_exports.object({ type: external_exports.literal("tool_result"), payload: external_exports.looseObject({ message: toolResultMessageSchema }) }),
|
|
39446
|
-
external_exports.object({
|
|
39448
|
+
external_exports.object({
|
|
39449
|
+
type: external_exports.literal("status"),
|
|
39450
|
+
/** `cost`: what calls since the last status that saved no step of their own cost at API prices, in USD. */
|
|
39451
|
+
payload: external_exports.looseObject({ status: external_exports.enum(HARNESS_THREAD_STATUSES), cost: external_exports.number().optional() })
|
|
39452
|
+
}),
|
|
39447
39453
|
external_exports.object({ type: external_exports.literal("error"), payload: external_exports.looseObject({ message: external_exports.string() }) }),
|
|
39448
39454
|
/** The model's context is this summary followed by the events from `firstKeptSeq` on; nothing before it is deleted. */
|
|
39449
39455
|
external_exports.object({
|
|
@@ -39453,7 +39459,9 @@ var init_types8 = __esm({
|
|
|
39453
39459
|
firstKeptSeq: external_exports.number(),
|
|
39454
39460
|
tokensBefore: external_exports.number(),
|
|
39455
39461
|
readFiles: external_exports.array(external_exports.string()),
|
|
39456
|
-
modifiedFiles: external_exports.array(external_exports.string())
|
|
39462
|
+
modifiedFiles: external_exports.array(external_exports.string()),
|
|
39463
|
+
/** The summary call's cost at API prices, in USD; absent on compactions saved before it was recorded. */
|
|
39464
|
+
cost: external_exports.number().optional()
|
|
39457
39465
|
})
|
|
39458
39466
|
})
|
|
39459
39467
|
]);
|
|
@@ -39561,7 +39569,7 @@ var CLI_VERSION;
|
|
|
39561
39569
|
var init_cli_version = __esm({
|
|
39562
39570
|
"../shared/src/cli-version.ts"() {
|
|
39563
39571
|
"use strict";
|
|
39564
|
-
CLI_VERSION = "0.3.
|
|
39572
|
+
CLI_VERSION = "0.3.465";
|
|
39565
39573
|
}
|
|
39566
39574
|
});
|
|
39567
39575
|
|