replicas-cli 0.3.508 → 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 +24 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23496,12 +23496,13 @@ var init_environment = __esm({
|
|
|
23496
23496
|
});
|
|
23497
23497
|
|
|
23498
23498
|
// ../shared/src/workspace-attention.ts
|
|
23499
|
-
var WORKSPACE_ATTENTION_REASONS, CHAT_ATTENTION_REASONS;
|
|
23499
|
+
var WORKSPACE_ATTENTION_REASONS, CHAT_ATTENTION_REASONS, INPUT_REQUEST_REASONS;
|
|
23500
23500
|
var init_workspace_attention = __esm({
|
|
23501
23501
|
"../shared/src/workspace-attention.ts"() {
|
|
23502
23502
|
"use strict";
|
|
23503
23503
|
WORKSPACE_ATTENTION_REASONS = ["question", "plan", "variables", "blocked", "setup", "deploy_failed"];
|
|
23504
23504
|
CHAT_ATTENTION_REASONS = ["question", "blocked"];
|
|
23505
|
+
INPUT_REQUEST_REASONS = ["question", "plan"];
|
|
23505
23506
|
}
|
|
23506
23507
|
});
|
|
23507
23508
|
|
|
@@ -24576,7 +24577,7 @@ Track work in Replicas Issues (\`REP-42\`), the shared to-do list of the people
|
|
|
24576
24577
|
Use this when:
|
|
24577
24578
|
- You are told to work on an issue, or a message names one like \`REP-42\`
|
|
24578
24579
|
- You receive an \`<issue_event>\` block
|
|
24579
|
-
- 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
|
|
24580
24581
|
- Someone asks you to file, update, or split up work`;
|
|
24581
24582
|
REFERENCE7 = `# Replicas Issues
|
|
24582
24583
|
|
|
@@ -24598,6 +24599,7 @@ replicas issue assign REP-42 alice@acme.com # a member's email, user ID, or a
|
|
|
24598
24599
|
replicas issue unassign REP-42 alice@acme.com # they stay subscribed
|
|
24599
24600
|
replicas issue subscribe REP-42 | unsubscribe REP-42
|
|
24600
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
|
|
24601
24603
|
replicas issue relate REP-42 blocks REP-43 | duplicate_of REP-40
|
|
24602
24604
|
\`\`\`
|
|
24603
24605
|
|
|
@@ -24617,8 +24619,16 @@ Read the event and act only when it asks something of you: a person's question o
|
|
|
24617
24619
|
|
|
24618
24620
|
**Keep the status true as you go:**
|
|
24619
24621
|
1. \`in_progress\` when you start.
|
|
24620
|
-
2. \`in_review\` when its pull request
|
|
24621
|
-
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.
|
|
24622
24632
|
|
|
24623
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.
|
|
24624
24634
|
|
|
@@ -27477,7 +27487,7 @@ ${MERGE_RULE}
|
|
|
27477
27487
|
${chatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
|
|
27478
27488
|
`;
|
|
27479
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.
|
|
27480
|
-
- 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\`.
|
|
27481
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.
|
|
27482
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.
|
|
27483
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.
|
|
@@ -27804,6 +27814,7 @@ var init_issues2 = __esm({
|
|
|
27804
27814
|
subscribe: "subscribe",
|
|
27805
27815
|
unsubscribe: "unsubscribe",
|
|
27806
27816
|
linkPr: "link-pr",
|
|
27817
|
+
unlinkPr: "unlink-pr",
|
|
27807
27818
|
relate: "relate"
|
|
27808
27819
|
};
|
|
27809
27820
|
}
|
|
@@ -40152,7 +40163,7 @@ var CLI_VERSION;
|
|
|
40152
40163
|
var init_cli_version = __esm({
|
|
40153
40164
|
"../shared/src/cli-version.ts"() {
|
|
40154
40165
|
"use strict";
|
|
40155
|
-
CLI_VERSION = "0.3.
|
|
40166
|
+
CLI_VERSION = "0.3.510";
|
|
40156
40167
|
}
|
|
40157
40168
|
});
|
|
40158
40169
|
|
|
@@ -40747,7 +40758,7 @@ var init_presence = __esm({
|
|
|
40747
40758
|
});
|
|
40748
40759
|
|
|
40749
40760
|
// ../shared/src/routes/workspace-events.ts
|
|
40750
|
-
var workspaceTurnCompletionSchema, workspaceEventSchemaByType, workspaceChangedEventSchema;
|
|
40761
|
+
var workspaceTurnCompletionSchema, inputRequestRaisedSchema, workspaceEventSchemaByType, workspaceChangedEventSchema;
|
|
40751
40762
|
var init_workspace_events = __esm({
|
|
40752
40763
|
"../shared/src/routes/workspace-events.ts"() {
|
|
40753
40764
|
"use strict";
|
|
@@ -40762,6 +40773,7 @@ var init_workspace_events = __esm({
|
|
|
40762
40773
|
pullRequestFeedback: external_exports.boolean().optional(),
|
|
40763
40774
|
attention: external_exports.object({ reason: external_exports.enum(CHAT_ATTENTION_REASONS), userId: external_exports.string() }).optional()
|
|
40764
40775
|
});
|
|
40776
|
+
inputRequestRaisedSchema = external_exports.object({ reason: external_exports.enum(INPUT_REQUEST_REASONS), userId: external_exports.string(), chatId: external_exports.string(), since: external_exports.string() });
|
|
40765
40777
|
workspaceEventSchemaByType = external_exports.discriminatedUnion("type", [
|
|
40766
40778
|
external_exports.object({
|
|
40767
40779
|
type: external_exports.literal("workspace.changed"),
|
|
@@ -40815,7 +40827,7 @@ var init_workspace_events = __esm({
|
|
|
40815
40827
|
}),
|
|
40816
40828
|
external_exports.object({ type: external_exports.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: external_exports.string(), ts: external_exports.string() }),
|
|
40817
40829
|
external_exports.object({ type: external_exports.literal("issues.synced"), syncId: external_exports.number(), ts: external_exports.string() }),
|
|
40818
|
-
external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), userId: external_exports.string().optional(), ts: external_exports.string() }),
|
|
40830
|
+
external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), userId: external_exports.string().optional(), request: inputRequestRaisedSchema.optional(), ts: external_exports.string() }),
|
|
40819
40831
|
external_exports.object({
|
|
40820
40832
|
type: external_exports.literal("workspace.shared"),
|
|
40821
40833
|
workspaceId: external_exports.string(),
|
|
@@ -56735,6 +56747,9 @@ function issueActorCommand(tool, done) {
|
|
|
56735
56747
|
async function issueLinkPrCommand(issue3, url2) {
|
|
56736
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}`));
|
|
56737
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
|
+
}
|
|
56738
56753
|
async function issueRelateCommand(issue3, type, related) {
|
|
56739
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}`));
|
|
56740
56755
|
}
|
|
@@ -58302,6 +58317,7 @@ var init_src2 = __esm({
|
|
|
58302
58317
|
issue2.command("subscribe <issue> [who]").description("Follow an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.subscribe, "Subscribed")));
|
|
58303
58318
|
issue2.command("unsubscribe <issue> [who]").description("Stop following an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.unsubscribe, "Unsubscribed")));
|
|
58304
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));
|
|
58305
58321
|
issue2.command("relate <issue> <type> <related>").description(`Mark <type> (${ISSUE_RELATION_TYPES.join(" or ")}) another issue`).action(run(issueRelateCommand));
|
|
58306
58322
|
media.command("delete <mediaId>").description("Permanently delete media and stop all of its links working").action(run(mediaDeleteCommand));
|
|
58307
58323
|
environment = program.command("environment").alias("env").description("Manage environments (org-scoped templates that back workspaces)");
|