replicas-cli 0.3.509 → 0.3.510
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 +19 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24577,7 +24577,7 @@ Track work in Replicas Issues (\`REP-42\`), the shared to-do list of the people
|
|
|
24577
24577
|
Use this when:
|
|
24578
24578
|
- You are told to work on an issue, or a message names one like \`REP-42\`
|
|
24579
24579
|
- You receive an \`<issue_event>\` block
|
|
24580
|
-
- You open a pull request, finish, get blocked, or need a person to decide something on an issue you work on
|
|
24580
|
+
- You open a pull request, hear one merged, finish, get blocked, or need a person to decide something on an issue you work on
|
|
24581
24581
|
- Someone asks you to file, update, or split up work`;
|
|
24582
24582
|
REFERENCE7 = `# Replicas Issues
|
|
24583
24583
|
|
|
@@ -24599,6 +24599,7 @@ replicas issue assign REP-42 alice@acme.com # a member's email, user ID, or a
|
|
|
24599
24599
|
replicas issue unassign REP-42 alice@acme.com # they stay subscribed
|
|
24600
24600
|
replicas issue subscribe REP-42 | unsubscribe REP-42
|
|
24601
24601
|
replicas issue link-pr REP-42 https://github.com/acme/app/pull/12
|
|
24602
|
+
replicas issue unlink-pr REP-42 https://github.com/acme/app/pull/12
|
|
24602
24603
|
replicas issue relate REP-42 blocks REP-43 | duplicate_of REP-40
|
|
24603
24604
|
\`\`\`
|
|
24604
24605
|
|
|
@@ -24618,8 +24619,16 @@ Read the event and act only when it asks something of you: a person's question o
|
|
|
24618
24619
|
|
|
24619
24620
|
**Keep the status true as you go:**
|
|
24620
24621
|
1. \`in_progress\` when you start.
|
|
24621
|
-
2. \`in_review\` when its pull request
|
|
24622
|
-
3. \`done\` when
|
|
24622
|
+
2. \`in_review\` when you open its pull request: link it with \`replicas issue link-pr\`, set the status yourself, and comment "Ready for review: <url>". Open one pull request per issue where you can. Nothing links or changes status on its own: \`Fixes REP-42\` in a pull request body is only documentation.
|
|
24623
|
+
3. \`done\` when its pull request merges and nothing is left: a linked pull request's merge arrives as an \`<issue_event>\`, and you set the status. \`canceled\` when it won't be done.
|
|
24624
|
+
|
|
24625
|
+
**Statuses mean exactly this**, so a person can read only In review and trust the rest:
|
|
24626
|
+
- \`in_progress\`: work is underway, including fixing CI, answering review comments, resolving conflicts, or waiting on another pull request.
|
|
24627
|
+
- \`in_review\`: waiting only on a person. A linked pull request is open with CI green and needs someone's review or approval; assign that person. Nothing else is in flight. When CI fails or someone pushes changes, move it back to \`in_progress\`.
|
|
24628
|
+
- \`done\`: every linked pull request it needs is merged (and deployed when that matters), and nothing is left. Set it yourself after the merge.
|
|
24629
|
+
- \`canceled\`: dropped, with a comment saying why.
|
|
24630
|
+
|
|
24631
|
+
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.
|
|
24623
24632
|
|
|
24624
24633
|
**Keep the description current**, the way a good PM does: when the scope or the plan changes, edit it rather than burying the change in comment 14. Comments are for progress, questions, and decisions.
|
|
24625
24634
|
|
|
@@ -27478,7 +27487,7 @@ ${MERGE_RULE}
|
|
|
27478
27487
|
${chatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
|
|
27479
27488
|
`;
|
|
27480
27489
|
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.
|
|
27481
|
-
- 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
|
|
27490
|
+
- 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 In review themselves, and comment their progress, so never restate what an issue shows. Nothing changes an issue's status when a pull request merges: when you hear a ship's pull request merged and the ship is asleep, link it if it isn't and move the issue to Done if that finishes it. Give a ship one issue per pull request where you can. Statuses mean exactly this: In progress, work underway (including fixing CI, review comments, conflicts, or waiting on another pull request); In review, waiting only on a person, with a linked pull request open, CI green, and the person who must review or approve it assigned, and nothing else in flight (move it back to In progress when CI fails or someone pushes changes); 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\`.
|
|
27482
27491
|
- 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.
|
|
27483
27492
|
- 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.
|
|
27484
27493
|
- 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.
|
|
@@ -27805,6 +27814,7 @@ var init_issues2 = __esm({
|
|
|
27805
27814
|
subscribe: "subscribe",
|
|
27806
27815
|
unsubscribe: "unsubscribe",
|
|
27807
27816
|
linkPr: "link-pr",
|
|
27817
|
+
unlinkPr: "unlink-pr",
|
|
27808
27818
|
relate: "relate"
|
|
27809
27819
|
};
|
|
27810
27820
|
}
|
|
@@ -40153,7 +40163,7 @@ var CLI_VERSION;
|
|
|
40153
40163
|
var init_cli_version = __esm({
|
|
40154
40164
|
"../shared/src/cli-version.ts"() {
|
|
40155
40165
|
"use strict";
|
|
40156
|
-
CLI_VERSION = "0.3.
|
|
40166
|
+
CLI_VERSION = "0.3.510";
|
|
40157
40167
|
}
|
|
40158
40168
|
});
|
|
40159
40169
|
|
|
@@ -56737,6 +56747,9 @@ function issueActorCommand(tool, done) {
|
|
|
56737
56747
|
async function issueLinkPrCommand(issue3, url2) {
|
|
56738
56748
|
output2(await callIssueTool(ISSUE_COMMANDS.linkPr, { issue: issue3, url: url2 }, external_exports.unknown()), () => console.log(`${import_chalk29.default.green("\u2713")} Linked ${url2} to ${issue3}`));
|
|
56739
56749
|
}
|
|
56750
|
+
async function issueUnlinkPrCommand(issue3, url2) {
|
|
56751
|
+
output2(await callIssueTool(ISSUE_COMMANDS.unlinkPr, { issue: issue3, url: url2 }, external_exports.unknown()), () => console.log(`${import_chalk29.default.green("\u2713")} Unlinked ${url2} from ${issue3}`));
|
|
56752
|
+
}
|
|
56740
56753
|
async function issueRelateCommand(issue3, type, related) {
|
|
56741
56754
|
output2(await callIssueTool(ISSUE_COMMANDS.relate, { issue: issue3, type, related_issue: related }, external_exports.unknown()), () => console.log(`${import_chalk29.default.green("\u2713")} ${issue3} ${type.replace("_", " ")} ${related}`));
|
|
56742
56755
|
}
|
|
@@ -58304,6 +58317,7 @@ var init_src2 = __esm({
|
|
|
58304
58317
|
issue2.command("subscribe <issue> [who]").description("Follow an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.subscribe, "Subscribed")));
|
|
58305
58318
|
issue2.command("unsubscribe <issue> [who]").description("Stop following an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.unsubscribe, "Unsubscribed")));
|
|
58306
58319
|
issue2.command("link-pr <issue> <url>").description("Link a pull request").action(run(issueLinkPrCommand));
|
|
58320
|
+
issue2.command("unlink-pr <issue> <url>").description("Unlink a pull request").action(run(issueUnlinkPrCommand));
|
|
58307
58321
|
issue2.command("relate <issue> <type> <related>").description(`Mark <type> (${ISSUE_RELATION_TYPES.join(" or ")}) another issue`).action(run(issueRelateCommand));
|
|
58308
58322
|
media.command("delete <mediaId>").description("Permanently delete media and stop all of its links working").action(run(mediaDeleteCommand));
|
|
58309
58323
|
environment = program.command("environment").alias("env").description("Manage environments (org-scoped templates that back workspaces)");
|