replicas-cli 0.3.370 → 0.3.372

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 +20 -7
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -26366,7 +26366,8 @@ var init_prompts = __esm({
26366
26366
  MOTHERSHIP_INSTRUCTIONS_TAG = "multitask_instructions";
26367
26367
  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.`;
26368
26368
  BOARD_ANSWER_NOTE = "The user answered on the board.";
26369
- 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.
26369
+ BOARD_RULES = `- The board in the Ships pane beside this chat is the user's one view of the work. Each task the user asks for is one ticket, with only that task's pull requests. Spawning a ship creates its ticket from the \`title\` and \`task\` you pass. A ship works on one ticket at a time: when you give an existing ship a new, separate task with \`${REPLICAS_MCP_TOOLS.messageSubagent}\`, pass \`title\` so the task gets its own ticket. Pull requests are filed under the ticket their ship was on when it opened them; move one with \`pull_requests\` in \`${REPLICAS_MCP_TOOLS.updateBoard}\` only when that's wrong. Replicas files tickets under Needs you, Ready to review, Working or Done from the ship and the ticket's pull requests. Never restate what a ticket or pull request already shows.
26370
+ - A title says what the task is about, such as "Slack replies in Mothership channels get dropped", never a ship, branch or pull request name. Each ticket also has an issue summary (what was wrong or asked, with its evidence) and a fix summary (what was done, with pull requests as #number). Replicas writes all three from the task, the ship's reports and its pull requests, and ships add to them with \`${REPLICAS_MCP_TOOLS.updateTicket}\`. Correct one with \`${REPLICAS_MCP_TOOLS.updateBoard}\` only when it's wrong.
26370
26371
  - 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.
26371
26372
  - 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.
26372
26373
  - 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.
@@ -34573,16 +34574,19 @@ var init_workspace_target = __esm({
34573
34574
  });
34574
34575
 
34575
34576
  // ../shared/src/mothership-board.ts
34576
- 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;
34577
+ var MOTHERSHIP_TICKET_LIMITS, L, tooLong, text3, clearable, httpsUrl, markdown, linearIdentifier, mediaSchema, questionSchema, mothershipTicketTitleSchema, mothershipTicketTaskSchema, mothershipTicketMediaSchema, mothershipTicketQuestionsSchema, issueSchema, fixSchema, updateMothershipTicketRequestSchema, updateMothershipBoardRequestSchema, answerMothershipTicketRequestSchema, mothershipTicketAnswerRefSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
34577
34578
  var init_mothership_board = __esm({
34578
34579
  "../shared/src/mothership-board.ts"() {
34579
34580
  "use strict";
34580
34581
  init_zod();
34581
34582
  init_mothership();
34583
+ init_mothership_events();
34584
+ init_urls();
34582
34585
  MOTHERSHIP_TICKET_LIMITS = {
34583
34586
  title: 80,
34584
34587
  task: 1e3,
34585
- summary: 600,
34588
+ issue: 1e3,
34589
+ fix: 800,
34586
34590
  note: 100,
34587
34591
  overview: 160,
34588
34592
  question: 300,
@@ -34599,6 +34603,7 @@ var init_mothership_board = __esm({
34599
34603
  text3 = (max) => external_exports.string().trim().min(1).max(max, tooLong(max));
34600
34604
  clearable = (schema) => external_exports.union([schema, external_exports.literal("")]).optional();
34601
34605
  httpsUrl = external_exports.url({ protocol: /^https$/, error: "Must be an https URL" });
34606
+ markdown = "Markdown: **bold**, *italics*, `code`, [links](https://...) and line breaks.";
34602
34607
  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");
34603
34608
  mediaSchema = external_exports.object({
34604
34609
  url: httpsUrl.describe("The URL `replicas media upload` printed."),
@@ -34609,12 +34614,16 @@ var init_mothership_board = __esm({
34609
34614
  question: text3(L.question).describe("One question, with the context needed to answer it."),
34610
34615
  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.")
34611
34616
  });
34612
- mothershipTicketTitleSchema = text3(L.title);
34617
+ mothershipTicketTitleSchema = text3(L.title).describe(`What the task is about, in a few plain words, such as "Slack replies in Mothership channels get dropped" or "Add CSV export to Analytics". Never a ship, branch or pull request name. At most ${L.title} characters.`);
34613
34618
  mothershipTicketTaskSchema = text3(L.task);
34614
34619
  mothershipTicketMediaSchema = external_exports.array(mediaSchema);
34615
34620
  mothershipTicketQuestionsSchema = external_exports.array(questionSchema.extend({ id: external_exports.string() }));
34621
+ issueSchema = clearable(text3(L.issue)).describe(`What was wrong or what was asked, in a few plain sentences a busy reader understands: the problem, not the fix. Carry the evidence: Slack and Linear threads as links, customer quotes in quotation marks, and screenshots in \`media\`. ${markdown} At most ${L.issue} characters.`);
34622
+ fixSchema = clearable(text3(L.fix)).describe(`What was done or is being done about it, with pull requests as #number. Keep it current as the work goes on, and say how it ended once the pull requests land. ${markdown} At most ${L.fix} characters.`);
34616
34623
  updateMothershipTicketRequestSchema = external_exports.object({
34617
- 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.`),
34624
+ title: mothershipTicketTitleSchema.optional(),
34625
+ issue: issueSchema,
34626
+ fix: fixSchema,
34618
34627
  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.`),
34619
34628
  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.`),
34620
34629
  blocked: clearable(text3(L.blocked)).describe('Why you cannot go on without the user, such as missing access. "" once unblocked.')
@@ -34624,14 +34633,18 @@ var init_mothership_board = __esm({
34624
34633
  tickets: external_exports.array(external_exports.object({
34625
34634
  id: external_exports.uuid(),
34626
34635
  title: mothershipTicketTitleSchema.optional(),
34636
+ issue: issueSchema,
34637
+ fix: fixSchema,
34638
+ pull_requests: external_exports.array(httpsUrl).max(20).optional().describe("Pull request URLs that came out of this ticket's task. They move here from any other ticket. Each pull request is filed under the ticket its ship was working on when it opened it, so pass this only to correct that."),
34627
34639
  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.`),
34628
34640
  linear: clearable(linearIdentifier).describe('The Linear issue this ticket is for, such as REP-123. "" removes it.'),
34629
- archived: external_exports.boolean().optional().describe("Take it off the board.")
34641
+ archived: external_exports.boolean().optional().describe("true takes it off the board for good: closes its open pull requests without merging, stops their automatic fixes, and archives its ships unless they still have other tickets. false puts it back on the board.")
34630
34642
  })).max(50).optional().describe("Changes to existing tickets."),
34631
34643
  order: external_exports.array(external_exports.uuid()).optional().describe("Ticket ids, most important first. Tickets left out keep their order after these."),
34632
34644
  create: external_exports.array(external_exports.object({
34633
34645
  title: mothershipTicketTitleSchema,
34634
34646
  task: mothershipTicketTaskSchema.optional(),
34647
+ issue: text3(L.issue).optional(),
34635
34648
  questions: external_exports.array(questionSchema).max(L.questions).optional(),
34636
34649
  note: text3(L.note).optional()
34637
34650
  })).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.")
@@ -37722,7 +37735,7 @@ var CLI_VERSION;
37722
37735
  var init_cli_version = __esm({
37723
37736
  "../shared/src/cli-version.ts"() {
37724
37737
  "use strict";
37725
- CLI_VERSION = "0.3.370";
37738
+ CLI_VERSION = "0.3.372";
37726
37739
  }
37727
37740
  });
37728
37741
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.370",
3
+ "version": "0.3.372",
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": {