replicas-cli 0.3.539 → 0.3.541

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 +14 -12
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -24993,14 +24993,16 @@ replicas issue update REP-42 --status in_progress
24993
24993
  replicas issue update REP-42 --title "..." --description-file /tmp/desc.md
24994
24994
  replicas issue comment REP-42 "Ready for review: https://github.com/acme/app/pull/12"
24995
24995
  replicas issue comment REP-42 "Before and after" --attach /tmp/after.png
24996
- replicas issue assign REP-42 alice@acme.com # a member's email, user ID, or a workspace ID; \`me\` is this workspace
24997
- replicas issue unassign REP-42 alice@acme.com # they stay subscribed
24996
+ replicas issue assign REP-42 user:alice@acme.com
24997
+ replicas issue unassign REP-42 user:alice@acme.com
24998
24998
  replicas issue subscribe REP-42 | unsubscribe REP-42
24999
24999
  replicas issue link-pr REP-42 https://github.com/acme/app/pull/12
25000
25000
  replicas issue unlink-pr REP-42 https://github.com/acme/app/pull/12
25001
25001
  replicas issue relate REP-42 blocks REP-43 | duplicate_of REP-40
25002
25002
  \`\`\`
25003
25003
 
25004
+ Name a person as \`user:<email>\`, an agent as \`workspace:<id>\`, and this workspace as \`me\`.
25005
+
25004
25006
  Statuses: ${codeList(ISSUE_STATUSES)}. Priorities: ${codeList(ISSUE_PRIORITIES)}.
25005
25007
 
25006
25008
  ## Events
@@ -25031,7 +25033,7 @@ Keep every property true at all times: status, assignee, linked pull requests (l
25031
25033
 
25032
25034
  **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.
25033
25035
 
25034
- **Ask a person** by assigning them and commenting with exactly what you need decided; mention them as \`@email\` in the comment. Their reply arrives as an \`<issue_event>\`. Once they've answered, unassign them so the issue only shows as theirs while it needs them; they stay subscribed.
25036
+ **Ask a person** by assigning them and commenting with exactly what you need decided; mention them as \`@user:<email>\` in the comment. Their reply arrives as an \`<issue_event>\`. Once they've answered, unassign them so the issue only shows as theirs while it needs them; they stay subscribed.
25035
25037
 
25036
25038
  **Split big work:** create sub-issues with \`--parent REP-42\`, one per pull request or separable piece, and link blockers with \`relate\`.
25037
25039
 
@@ -40382,7 +40384,7 @@ var CLI_VERSION;
40382
40384
  var init_cli_version = __esm({
40383
40385
  "../shared/src/cli-version.ts"() {
40384
40386
  "use strict";
40385
- CLI_VERSION = "0.3.539";
40387
+ CLI_VERSION = "0.3.541";
40386
40388
  }
40387
40389
  });
40388
40390
 
@@ -56964,7 +56966,7 @@ async function issueCreateCommand(title3, options) {
56964
56966
  priority: options.priority,
56965
56967
  parent: options.parent,
56966
56968
  assignees: options.assign,
56967
- manager_id: options.manager === "none" ? null : options.manager,
56969
+ manager_id: options.manager,
56968
56970
  media_ids: await uploadAttachments(options.attach)
56969
56971
  }, mutationSchema), printMutation);
56970
56972
  }
@@ -58587,16 +58589,16 @@ var init_src2 = __esm({
58587
58589
  media.command("list").description("List media uploaded by a workspace (this workspace by default inside one)").option("-w, --workspace <id>", "Workspace ID").option("-k, --kind <kind>", "Filter by kind: image, video, audio, or html").option("-l, --limit <n>", "Page size (default 50, max 200)").option("-p, --page <n>", "Page number (default 1)").action(run(mediaListCommand));
58588
58590
  media.command("url <mediaId>").description("Print a short-lived download URL for media").action(run(mediaUrlCommand));
58589
58591
  issue2 = program.command("issue", { hidden: !isAgentMode() }).description("File, update, and follow Replicas Issues (REP-42). Each command takes an identifier like REP-42 or an issue ID");
58590
- issue2.command("create <title>").description("File an issue").option("-d, --description <markdown>", "What is wrong or wanted, with the evidence").option("--description-file <path>", "Read the description from a file (- for stdin)").option("-s, --status <status>", `${ISSUE_STATUSES.join(", ")} (default: backlog)`).option("-p, --priority <priority>", ISSUE_PRIORITIES.join(", ")).option("--parent <issue>", "Make it a sub-issue of this issue").option("-a, --assign <who>", "Assignee: me, an email, a user ID or a workspace ID (repeatable)", collect, []).option("--manager <workspaceId>", "Manager whose issues it joins (default: yours, inside a Manager or its ship); 'none' for none").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCreateCommand));
58592
+ issue2.command("create <title>").description("File an issue").option("-d, --description <markdown>", "What is wrong or wanted, with the evidence").option("--description-file <path>", "Read the description from a file (- for stdin)").option("-s, --status <status>", `${ISSUE_STATUSES.join(", ")} (default: backlog)`).option("-p, --priority <priority>", ISSUE_PRIORITIES.join(", ")).option("--parent <issue>", "Make it a sub-issue of this issue").option("-a, --assign <who>", "Assignee: user:<email>, workspace:<id> or me (repeatable)", collect, []).option("--manager <workspace>", "Manager whose issues it joins, as workspace:<id> (default: yours, inside a Manager or its ship); 'none' for none").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCreateCommand));
58591
58593
  issue2.command("update <issue>").description("Change the title, description, status, priority or parent").option("-t, --title <title>", "New title").option("-d, --description <markdown>", "Replace the whole description").option("--description-file <path>", "Replace the description from a file (- for stdin)").option("-s, --status <status>", ISSUE_STATUSES.join(", ")).option("-p, --priority <priority>", ISSUE_PRIORITIES.join(", ")).option("--parent <issue>", "New parent issue, or 'none'").option("--attach <file>", "Upload and embed at the end of the description (repeatable)", collect, []).action(run(issueUpdateCommand));
58592
58594
  issue2.command("view <issue>").description("Show an issue with its comments, pull requests and sub-issues").action(run(issueViewCommand));
58593
- issue2.command("list").description("List issues, newest first").option("-q, --query <text>", "Search titles and descriptions").option("-s, --status <statuses>", "Comma-separated statuses").option("-p, --priority <priorities>", "Comma-separated priorities").option("--mine", "Assigned to you (this workspace inside one)").option("--assignee <actor>", "me, user:<id> or workspace:<id>").option("--manager <workspaceId>", "A Manager's issues").option("--parent <issue>", "Sub-issues of this issue; 'none' for top-level only").option("--archived", "Include archived issues").option("-l, --limit <n>", "Page size (default 50, max 200)").action(run(issueListCommand));
58595
+ issue2.command("list").description("List issues, newest first").option("-q, --query <text>", "Search titles and descriptions").option("-s, --status <statuses>", "Comma-separated statuses").option("-p, --priority <priorities>", "Comma-separated priorities").option("--mine", "Assigned to you (this workspace inside one)").option("--assignee <actor>", "user:<email>, workspace:<id> or me; comma-separate to match any").option("--manager <workspace>", "A Manager's issues, as workspace:<id>").option("--parent <issue>", "Sub-issues of this issue; 'none' for top-level only").option("--archived", "Include archived issues").option("-l, --limit <n>", "Page size (default 50, max 200)").action(run(issueListCommand));
58594
58596
  issue2.command("search <query>").description("Search issues by text or identifier").action(run((query) => issueListCommand({ query })));
58595
- issue2.command("comment <issue> [body]").description("Comment on an issue. Mention a member as @their@email.com").option("-f, --file <path>", "Read the comment from a file (- for stdin)").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCommentCommand));
58596
- issue2.command("assign <issue> <who>").description("Assign me, an email, a user ID or a workspace ID").action(run(issueActorCommand(ISSUE_COMMANDS.assign, "Assigned")));
58597
- issue2.command("unassign <issue> <who>").description("Remove an assignee (they stay subscribed)").action(run(issueActorCommand(ISSUE_COMMANDS.unassign, "Unassigned")));
58598
- issue2.command("subscribe <issue> [who]").description("Follow an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.subscribe, "Subscribed")));
58599
- issue2.command("unsubscribe <issue> [who]").description("Stop following an issue (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.unsubscribe, "Unsubscribed")));
58597
+ issue2.command("comment <issue> [body]").description("Comment on an issue. Mention a person as @user:<email>, an agent as @workspace:<id>").option("-f, --file <path>", "Read the comment from a file (- for stdin)").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCommentCommand));
58598
+ issue2.command("assign <issue> <who>").description("Assign user:<email>, workspace:<id> or me").action(run(issueActorCommand(ISSUE_COMMANDS.assign, "Assigned")));
58599
+ issue2.command("unassign <issue> <who>").description("Remove an assignee: user:<email>, workspace:<id> or me (they stay subscribed)").action(run(issueActorCommand(ISSUE_COMMANDS.unassign, "Unassigned")));
58600
+ issue2.command("subscribe <issue> [who]").description("Follow an issue: user:<email>, workspace:<id> or me (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.subscribe, "Subscribed")));
58601
+ issue2.command("unsubscribe <issue> [who]").description("Stop following an issue: user:<email>, workspace:<id> or me (default: you)").action(run(issueActorCommand(ISSUE_COMMANDS.unsubscribe, "Unsubscribed")));
58600
58602
  issue2.command("link-pr <issue> <url>").description("Link a pull request").action(run(issueLinkPrCommand));
58601
58603
  issue2.command("unlink-pr <issue> <url>").description("Unlink a pull request").action(run(issueUnlinkPrCommand));
58602
58604
  issue2.command("relate <issue> <type> <related>").description(`Mark <type> (${ISSUE_RELATION_TYPES.join(" or ")}) another issue`).action(run(issueRelateCommand));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.539",
3
+ "version": "0.3.541",
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": {