replicas-cli 0.3.644 → 0.3.646

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 +13 -9
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -27585,7 +27585,7 @@ If none of these apply, don't upload.
27585
27585
 
27586
27586
  1. First, run \`replicas media upload\` with the original file. Do not begin any destination upload until the command succeeds. This creates the canonical dashboard copy and prints an embed plus a per-file dashboard link. *Uploading to Replicas* below says which uploads get a public link that also works on GitHub.
27587
27587
  2. Include the printed embed line in the Replicas chat reply.
27588
- 3. Identify every destination in the task and use its inline representation from the table below. Slack, Linear, and GitLab require an upload of the same original bytes; GitHub uses the image's printed public embed.
27588
+ 3. Identify every destination in the task and use its inline representation from the table below. Slack, Linear, and GitLab require an upload of the same original bytes; on GitHub, attach the image with \`gh \u2026 --attach <file>\` (see GitHub below).
27589
27589
  4. On Slack, attach the **View in Replicas** dashboard link to the upload as a button (see the Slack flow below). On Linear, put it next to the destination embed as a secondary link. GitHub and GitLab need only the embed.
27590
27590
  5. Check each destination response. If its upload or public link fails, say so explicitly and keep the dashboard link; never claim that a dashboard link is an inline embed.
27591
27591
 
@@ -27595,7 +27595,7 @@ If none of these apply, don't upload.
27595
27595
  | Slack | \`files.getUploadURLExternal\` \u2192 raw-byte POST \u2192 \`files.completeUploadExternal\` | Uploaded file in the channel or thread |
27596
27596
  | Linear | \`fileUpload\` mutation \u2192 presigned upload \u2192 issue/comment mutation | Returned \`assetUrl\` in Markdown |
27597
27597
  | GitLab | Project \`/uploads\` endpoint with the original bytes | Returned GitLab Markdown |
27598
- | GitHub | \`gh pr create --attach <image>\` (also \`edit\` and \`comment\`), or the printed public embed | Inline image, linked to the recording when needed |
27598
+ | GitHub | \`gh pr create --attach <image>\` (also \`edit\` and \`comment\`) | Inline image, linked to the recording when needed |
27599
27599
 
27600
27600
  The dashboard link is the subtitle and jump-back path. It is never a substitute for the destination embed.
27601
27601
 
@@ -27645,12 +27645,12 @@ Never reply with only dashboard links (for example a "Links:" list of \`?mode=me
27645
27645
 
27646
27646
  After \`replicas media upload\` succeeds, external delivery has two required follow-up steps for every file:
27647
27647
 
27648
- 1. **Use the destination's inline representation:** upload the raw bytes to Slack, Linear, or GitLab; embed the image's printed public link on GitHub.
27648
+ 1. **Use the destination's inline representation:** upload the raw bytes to Slack, Linear, or GitLab; attach the image with \`gh \u2026 --attach <file>\` on GitHub.
27649
27649
  2. **On Slack and Linear, link the Replicas dashboard deep link** (\`?mode=media&media=<id>\` form) so the user can jump straight to the file in the workspace. On GitHub and GitLab, the embed is enough.
27650
27650
 
27651
27651
  A dashboard link alone is never enough.
27652
27652
 
27653
- Slack, Linear, and GitLab receive the original bytes through their native upload APIs. GitHub uses the printed public link for screenshots and recording previews.
27653
+ Slack, Linear, and GitLab receive the original bytes through their native upload APIs. On GitHub, \`gh \u2026 --attach\` uploads screenshots and recording previews and embeds their public links.
27654
27654
 
27655
27655
  ### Slack \u2014 embed natively via the 3-step external file upload flow
27656
27656
 
@@ -27773,7 +27773,7 @@ gh pr comment 456 --body-file /tmp/comment.md --attach ./after.png
27773
27773
 
27774
27774
  \`gh issue create|edit|comment\` take \`--attach\` too. Alt text follows \`#\`. A reference to the file in the body, such as \`![Before](./before.png)\`, is replaced with the image; other images are appended. Without a body flag, \`gh pr edit\` appends to the current description. \`--attach\` takes png, jpg, gif and webp only, and needs \`--body\` or \`--body-file\` rather than \`--fill\` or \`--template\`.
27775
27775
 
27776
- When you already uploaded an image, paste its printed \`![\u2026](<public-url>)\` line into the body instead. Never use a local file path, a \`/v1/media/<id>\` URL, a Linear \`assetUrl\`, or an expiring storage URL.
27776
+ When an upload already printed a public \`![\u2026](<public-url>)\` line for the image, you can paste that line into the body instead. Never use a local file path, a \`/v1/media/<id>\` URL, a Linear \`assetUrl\`, or an expiring storage URL.
27777
27777
 
27778
27778
  GitHub does not play external videos inline, so show motion with a GIF (see *Make a GIF from a recording* above); its printed embed animates inline like any image. Videos stay private. When the full recording is also worth watching, upload the MP4 too and paste the PR line it prints, with your GIF's link filled in. The GIF links to the recording's **View in Replicas** URL, or to its public link when you passed \`--access public\`. When a still is enough, use a poster instead (\`ffmpeg -i /tmp/demo.mp4 -frames:v 1 /tmp/demo-poster.png\`), uploaded like any image:
27779
27779
 
@@ -27917,7 +27917,7 @@ A screenshot or recording is usually a fixed record, so these examples pass \`--
27917
27917
  For each image, video or audio file, the CLI prints an embed line and a dashboard link:
27918
27918
 
27919
27919
  1. By default, \`Replicas chat embed: ![<name>](<api-url>)\`. This authenticated URL renders inline in Replicas chat **only**; see below.
27920
- 2. With \`--public\`, a public link instead: \`![<name>](<public-url>)\` for images, \`[<name>](<public-url>)\` for video and audio. Pass \`--public\` only for an image or recording you embed on GitHub, which has no upload API. Slack, Linear and GitLab get the file itself through their own uploads (see below), and Replicas chat uses the default embed. Never put a video inside \`![\u2026](\u2026)\` or a \`<video>\` tag on GitHub: it shows as a broken image or disappears.
27920
+ 2. With \`--public\`, a public link instead: \`![<name>](<public-url>)\` for images, \`[<name>](<public-url>)\` for video and audio. On GitHub, attach images with \`gh \u2026 --attach <file>\` instead, which needs no flag; pass \`--public\` only when you write a GitHub embed yourself, such as a recording linked from its GIF. Slack, Linear and GitLab get the file itself through their own uploads (see below), and Replicas chat uses the default embed. Never put a video inside \`![\u2026](\u2026)\` or a \`<video>\` tag on GitHub: it shows as a broken image or disappears.
27921
27921
  3. \`View in Replicas: <deep-link>\` is a per-file dashboard URL of the form \`https://app.replicas.dev/workspaces/<workspace-id>?mode=media&media=<artifact-id>\` that opens directly to that specific file.
27922
27922
 
27923
27923
  Match each "View in Replicas" line to the embed line directly above it \u2014 that's the deep link for that file. Other files print a \`[<name>](\u2026/artifacts/<id>)\` link.
@@ -30012,9 +30012,11 @@ When someone asks for a recurring task or accepts an offer to automate a repeate
30012
30012
  });
30013
30013
 
30014
30014
  // ../shared/src/artifact-commands.ts
30015
+ var GITHUB_ARTIFACT_IMAGES;
30015
30016
  var init_artifact_commands = __esm({
30016
30017
  "../shared/src/artifact-commands.ts"() {
30017
30018
  "use strict";
30019
+ GITHUB_ARTIFACT_IMAGES = "On GitHub, attach each image with `--attach <file>` on `gh pr create`, `gh pr edit` or `gh pr|issue comment`: it uploads the image and embeds a link GitHub can show, so you need no other flag. Only when you write an embed yourself, such as a recording linked from its GIF, upload with `replicas artifact upload --public` and use the public link it prints.";
30018
30020
  }
30019
30021
  });
30020
30022
 
@@ -30114,7 +30116,7 @@ function stripAgentInstructionBlocks(text5) {
30114
30116
  else spans(prose, text5.length);
30115
30117
  return stripInstructionBlocksOutside(text5, quoted3);
30116
30118
  }
30117
- var REPLICAS_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
30119
+ var REPLICAS_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, PR_ARTIFACT_GUIDANCE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
30118
30120
  var init_prompts = __esm({
30119
30121
  "../shared/src/prompts.ts"() {
30120
30122
  "use strict";
@@ -30138,6 +30140,7 @@ var init_prompts = __esm({
30138
30140
  };
30139
30141
  INSTRUCTIONS_OPEN = `<${REPLICAS_INSTRUCTIONS_TAG}>`;
30140
30142
  INSTRUCTIONS_CLOSE = `</${REPLICAS_INSTRUCTIONS_TAG}>`;
30143
+ PR_ARTIFACT_GUIDANCE = `When the change is visible, show it in the description: screenshots for static UI, and a GIF from \`replicas artifact gif <recording>\` for motion or an interaction. ${GITHUB_ARTIFACT_IMAGES} On GitLab, follow \`references/MEDIA.md\`.`;
30141
30144
  T = REPLICAS_MCP_TOOLS;
30142
30145
  SCOUT_LINEAR_RULES = `Linear issue triage: team instructions define what is actionable. Use \`replicas.linear.graphql\` from \`@replicas/sdk\` for every Linear read and mutation, never a Replicas CLI command. Choose exactly one:
30143
30146
  1. **Ignore** issues the team instructions leave to humans or that should not start work: do nothing and write nothing to Linear. If \`agent_session_id\` is set because you asked a question earlier, create a \`response\` Agent Activity on it with one short closing response.
@@ -43305,7 +43308,7 @@ var CLI_VERSION;
43305
43308
  var init_cli_version = __esm({
43306
43309
  "../shared/src/cli-version.ts"() {
43307
43310
  "use strict";
43308
- CLI_VERSION = "0.3.644";
43311
+ CLI_VERSION = "0.3.646";
43309
43312
  }
43310
43313
  });
43311
43314
 
@@ -43877,7 +43880,8 @@ var init_artifacts2 = __esm({
43877
43880
  mutability: external_exports.enum([...ARTIFACT_MUTABILITIES, "all"]).optional(),
43878
43881
  owner: external_exports.array(external_exports.enum(ARTIFACT_LIST_OWNERS)),
43879
43882
  kind: external_exports.array(external_exports.enum(ARTIFACT_KINDS)),
43880
- workspace_id: external_exports.string().uuid().optional()
43883
+ workspace_id: external_exports.string().uuid().optional(),
43884
+ q: external_exports.string().trim().max(ARTIFACT_DISPLAY_NAME_MAX_LENGTH).optional()
43881
43885
  });
43882
43886
  updateArtifactRequestSchema = external_exports.object({
43883
43887
  display_name: external_exports.string().trim().min(1).max(ARTIFACT_DISPLAY_NAME_MAX_LENGTH)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.644",
3
+ "version": "0.3.646",
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": {