replicas-cli 0.3.509 → 0.3.511
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 +27 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21696,7 +21696,7 @@ function workspaceConfigWithCapabilities(config3, capabilities = {}) {
|
|
|
21696
21696
|
function workspaceConfigWithPrFollowups(config3, prFollowups = config3?.capabilities?.pr_followups === true) {
|
|
21697
21697
|
return workspaceConfigWithCapabilities(config3, { pr_followups: prFollowups });
|
|
21698
21698
|
}
|
|
21699
|
-
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_KINDS, MANAGER_KINDS, CREATABLE_WORKSPACE_KINDS, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21699
|
+
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_KINDS, MANAGER_KINDS, CREATABLE_WORKSPACE_KINDS, createWorkspaceCanvasUploadRequestSchema, completeWorkspaceCanvasUploadRequestSchema, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21700
21700
|
var init_workspaces = __esm({
|
|
21701
21701
|
"../shared/src/routes/workspaces.ts"() {
|
|
21702
21702
|
"use strict";
|
|
@@ -21723,6 +21723,11 @@ var init_workspaces = __esm({
|
|
|
21723
21723
|
WORKSPACE_KINDS = ["standard", "manager", "mothership", "scout"];
|
|
21724
21724
|
MANAGER_KINDS = ["manager", "mothership"];
|
|
21725
21725
|
CREATABLE_WORKSPACE_KINDS = ["standard", ...MANAGER_KINDS];
|
|
21726
|
+
createWorkspaceCanvasUploadRequestSchema = external_exports.object({
|
|
21727
|
+
sizeBytes: external_exports.number().int().positive(),
|
|
21728
|
+
filename: external_exports.string().min(1)
|
|
21729
|
+
});
|
|
21730
|
+
completeWorkspaceCanvasUploadRequestSchema = external_exports.object({ filename: external_exports.string().min(1) });
|
|
21726
21731
|
WORKSPACE_SIDEBAR_VIEWS = ["owned", "shared", "team", "automated"];
|
|
21727
21732
|
WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
21728
21733
|
DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
@@ -22190,7 +22195,7 @@ function classifyCanvasFilename(filename) {
|
|
|
22190
22195
|
const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
|
|
22191
22196
|
return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
|
|
22192
22197
|
}
|
|
22193
|
-
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, versionChangeSchema, engineUpdateChangesSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22198
|
+
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, versionChangeSchema, engineUpdateChangesSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_UPLOAD_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22194
22199
|
var init_types4 = __esm({
|
|
22195
22200
|
"../shared/src/engine/types.ts"() {
|
|
22196
22201
|
"use strict";
|
|
@@ -22469,6 +22474,7 @@ var init_types4 = __esm({
|
|
|
22469
22474
|
engineUpdateChangesSchema.extend({ state: external_exports.literal("failed"), reason: external_exports.string() })
|
|
22470
22475
|
]);
|
|
22471
22476
|
MAX_CANVAS_FILE_BYTES = 100 * 1024 * 1024;
|
|
22477
|
+
MAX_CANVAS_UPLOAD_BYTES = 5 * 1024 * 1024 * 1024;
|
|
22472
22478
|
MAX_CANVAS_PREVIEW_BYTES = 5 * 1024 * 1024;
|
|
22473
22479
|
CANVAS_KIND_BY_EXTENSION = {
|
|
22474
22480
|
".md": { kind: "markdown", mimeType: "text/markdown; charset=utf-8" },
|
|
@@ -24577,7 +24583,7 @@ Track work in Replicas Issues (\`REP-42\`), the shared to-do list of the people
|
|
|
24577
24583
|
Use this when:
|
|
24578
24584
|
- You are told to work on an issue, or a message names one like \`REP-42\`
|
|
24579
24585
|
- 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
|
|
24586
|
+
- 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
24587
|
- Someone asks you to file, update, or split up work`;
|
|
24582
24588
|
REFERENCE7 = `# Replicas Issues
|
|
24583
24589
|
|
|
@@ -24599,6 +24605,7 @@ replicas issue assign REP-42 alice@acme.com # a member's email, user ID, or a
|
|
|
24599
24605
|
replicas issue unassign REP-42 alice@acme.com # they stay subscribed
|
|
24600
24606
|
replicas issue subscribe REP-42 | unsubscribe REP-42
|
|
24601
24607
|
replicas issue link-pr REP-42 https://github.com/acme/app/pull/12
|
|
24608
|
+
replicas issue unlink-pr REP-42 https://github.com/acme/app/pull/12
|
|
24602
24609
|
replicas issue relate REP-42 blocks REP-43 | duplicate_of REP-40
|
|
24603
24610
|
\`\`\`
|
|
24604
24611
|
|
|
@@ -24618,8 +24625,16 @@ Read the event and act only when it asks something of you: a person's question o
|
|
|
24618
24625
|
|
|
24619
24626
|
**Keep the status true as you go:**
|
|
24620
24627
|
1. \`in_progress\` when you start.
|
|
24621
|
-
2. \`in_review\` when its pull request
|
|
24622
|
-
3. \`done\` when
|
|
24628
|
+
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.
|
|
24629
|
+
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.
|
|
24630
|
+
|
|
24631
|
+
**Statuses mean exactly this**, so a person can read only In review and trust the rest:
|
|
24632
|
+
- \`in_progress\`: work is underway, including fixing CI, answering review comments, resolving conflicts, or waiting on another pull request.
|
|
24633
|
+
- \`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\`.
|
|
24634
|
+
- \`done\`: every linked pull request it needs is merged (and deployed when that matters), and nothing is left. Set it yourself after the merge.
|
|
24635
|
+
- \`canceled\`: dropped, with a comment saying why.
|
|
24636
|
+
|
|
24637
|
+
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
24638
|
|
|
24624
24639
|
**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
24640
|
|
|
@@ -27478,7 +27493,7 @@ ${MERGE_RULE}
|
|
|
27478
27493
|
${chatRule("the board", "a finding that changes the answer, a ship you started, or a decision you need")}
|
|
27479
27494
|
`;
|
|
27480
27495
|
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
|
|
27496
|
+
- 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
27497
|
- 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
27498
|
- 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
27499
|
- 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 +27820,7 @@ var init_issues2 = __esm({
|
|
|
27805
27820
|
subscribe: "subscribe",
|
|
27806
27821
|
unsubscribe: "unsubscribe",
|
|
27807
27822
|
linkPr: "link-pr",
|
|
27823
|
+
unlinkPr: "unlink-pr",
|
|
27808
27824
|
relate: "relate"
|
|
27809
27825
|
};
|
|
27810
27826
|
}
|
|
@@ -40153,7 +40169,7 @@ var CLI_VERSION;
|
|
|
40153
40169
|
var init_cli_version = __esm({
|
|
40154
40170
|
"../shared/src/cli-version.ts"() {
|
|
40155
40171
|
"use strict";
|
|
40156
|
-
CLI_VERSION = "0.3.
|
|
40172
|
+
CLI_VERSION = "0.3.511";
|
|
40157
40173
|
}
|
|
40158
40174
|
});
|
|
40159
40175
|
|
|
@@ -56737,6 +56753,9 @@ function issueActorCommand(tool, done) {
|
|
|
56737
56753
|
async function issueLinkPrCommand(issue3, url2) {
|
|
56738
56754
|
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
56755
|
}
|
|
56756
|
+
async function issueUnlinkPrCommand(issue3, url2) {
|
|
56757
|
+
output2(await callIssueTool(ISSUE_COMMANDS.unlinkPr, { issue: issue3, url: url2 }, external_exports.unknown()), () => console.log(`${import_chalk29.default.green("\u2713")} Unlinked ${url2} from ${issue3}`));
|
|
56758
|
+
}
|
|
56740
56759
|
async function issueRelateCommand(issue3, type, related) {
|
|
56741
56760
|
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
56761
|
}
|
|
@@ -58304,6 +58323,7 @@ var init_src2 = __esm({
|
|
|
58304
58323
|
issue2.command("subscribe <issue> [who]").description("Follow an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.subscribe, "Subscribed")));
|
|
58305
58324
|
issue2.command("unsubscribe <issue> [who]").description("Stop following an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.unsubscribe, "Unsubscribed")));
|
|
58306
58325
|
issue2.command("link-pr <issue> <url>").description("Link a pull request").action(run(issueLinkPrCommand));
|
|
58326
|
+
issue2.command("unlink-pr <issue> <url>").description("Unlink a pull request").action(run(issueUnlinkPrCommand));
|
|
58307
58327
|
issue2.command("relate <issue> <type> <related>").description(`Mark <type> (${ISSUE_RELATION_TYPES.join(" or ")}) another issue`).action(run(issueRelateCommand));
|
|
58308
58328
|
media.command("delete <mediaId>").description("Permanently delete media and stop all of its links working").action(run(mediaDeleteCommand));
|
|
58309
58329
|
environment = program.command("environment").alias("env").description("Manage environments (org-scoped templates that back workspaces)");
|