replicas-cli 0.3.517 → 0.3.519

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 +9 -9
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -25983,7 +25983,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
25983
25983
  | --- | --- |
25984
25984
  | \`replicas whoami\` | Print the workspace + org identity |
25985
25985
  | \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
25986
- | \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only Managers |
25986
+ | \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind manager\` lists only Managers |
25987
25987
  | \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
25988
25988
  | \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
25989
25989
  | \`replicas identity aws-credentials --role-arn <arn> [--region <region>] [--source-identity]\` | Exchange the current token for AWS credential_process JSON (requires AWS CLI); \`--source-identity\` records the workspace ID in CloudTrail and needs \`sts:SetSourceIdentity\` in the role trust policy |
@@ -27859,14 +27859,15 @@ var init_tag_blocks = __esm({
27859
27859
  });
27860
27860
 
27861
27861
  // ../shared/src/issue-events.ts
27862
- function parseChange(line, excerpt) {
27862
+ function parseChange(line, quote) {
27863
27863
  const match = line.match(CHANGE_LINE);
27864
27864
  const rest = (match ? match[3] + match[4] : line).replaceAll(" (agent)", "").replace(/(?:\. Now)?:$/, "");
27865
27865
  const [, field2, from, to] = rest.match(TRANSITION) ?? [];
27866
27866
  const transition = transitionSchema.safeParse({ field: field2, from, to }).data;
27867
27867
  const labels = !transition ? [] : transition.field === "status" ? [ISSUE_STATUS_LABELS[transition.from], ISSUE_STATUS_LABELS[transition.to]] : [ISSUE_PRIORITY_LABELS[transition.from], ISSUE_PRIORITY_LABELS[transition.to]];
27868
27868
  const text4 = transition ? `changed the ${transition.field}: ${labels.join(" \u2192 ")}` : rest;
27869
- return { actor: match?.[1] ?? "", agent: Boolean(match?.[2]), text: excerpt ? `${text4}: ${excerpt}` : text4, ...transition ? { transition } : {} };
27869
+ const excerpt = quote.split("\n").map((quoted) => quoted.trim()).find(Boolean);
27870
+ return { actor: match?.[1] ?? "", agent: Boolean(match?.[2]), text: excerpt ? `${text4}: ${excerpt}` : text4, ...quote ? { quote } : {}, ...transition ? { transition } : {} };
27870
27871
  }
27871
27872
  function extractIssueEvents(text4) {
27872
27873
  return [...text4.matchAll(tagBlockPattern(ISSUE_EVENT_TAG))].flatMap((match) => {
@@ -27876,7 +27877,7 @@ function extractIssueEvents(text4) {
27876
27877
  const changes = detail.split("\n\n").flatMap((paragraph) => {
27877
27878
  const [line, ...quoted] = paragraph.split("\n");
27878
27879
  if (!line.trim() || line.startsWith(">")) return [];
27879
- return [parseChange(line, line.endsWith(". Now:") ? void 0 : quoted.map((quote) => quote.replace(/^>\s?/, "").trim()).find(Boolean))];
27880
+ return [parseChange(line, quoted.map((quote) => quote.replace(/^>\s?/, "")).join("\n").trim())];
27880
27881
  });
27881
27882
  return [{
27882
27883
  id: `${attributes.issue}:${attributes.sync_id ?? ""}`,
@@ -27902,7 +27903,7 @@ var init_issue_events = __esm({
27902
27903
  external_exports.object({ field: external_exports.literal("status"), from: issueStatusSchema, to: issueStatusSchema }),
27903
27904
  external_exports.object({ field: external_exports.literal("priority"), from: issuePrioritySchema, to: issuePrioritySchema })
27904
27905
  ]);
27905
- issueEventChangeSchema = external_exports.object({ actor: external_exports.string(), agent: external_exports.boolean(), text: external_exports.string(), transition: transitionSchema.optional() });
27906
+ issueEventChangeSchema = external_exports.object({ actor: external_exports.string(), agent: external_exports.boolean(), text: external_exports.string(), quote: external_exports.string().optional(), transition: transitionSchema.optional() });
27906
27907
  CHANGE_LINE = /^(.+?)( \(agent\))? (created it|renamed it|edited |changed the |made it|moved it|removed |assigned |unassigned |marked |linked |unlinked |pull request |commented|deleted a comment|archived it|restored it)(.*)$/;
27907
27908
  TRANSITION = /^changed the (status|priority): (\w+) → (\w+)$/;
27908
27909
  issueChangeSentence = (change2) => [change2.actor, change2.text].filter(Boolean).join(" ");
@@ -40202,7 +40203,7 @@ var CLI_VERSION;
40202
40203
  var init_cli_version = __esm({
40203
40204
  "../shared/src/cli-version.ts"() {
40204
40205
  "use strict";
40205
- CLI_VERSION = "0.3.517";
40206
+ CLI_VERSION = "0.3.519";
40206
40207
  }
40207
40208
  });
40208
40209
 
@@ -40562,9 +40563,8 @@ var init_scout2 = __esm({
40562
40563
  scoutRouteLinearTicketRequestSchema = external_exports.object({
40563
40564
  agent_session_id: external_exports.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
40564
40565
  environment_id: external_exports.string().trim().min(1).optional().describe("Start the ticket in this environment."),
40565
- manager_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead."),
40566
- mothership_id: external_exports.string().trim().min(1).optional().describe("Old name of `manager_id`.")
40567
- }).refine((args) => !(args.environment_id && (args.manager_id || args.mothership_id)), "Pass environment_id or manager_id, not both.");
40566
+ manager_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
40567
+ }).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
40568
40568
  slackChannelIdSchema = external_exports.string().describe("Slack channel id from the envelope's `channel_id`.");
40569
40569
  slackThreadTsSchema = external_exports.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
40570
40570
  scoutSlackMessageReferenceSchema = external_exports.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.517",
3
+ "version": "0.3.519",
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": {