replicas-cli 0.2.190 → 0.2.192

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.mjs +10 -14
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -8339,22 +8339,19 @@ Docker is pre-installed in Replicas workspaces, but the daemon does **not** auto
8339
8339
 
8340
8340
  \`\`\`bash
8341
8341
  sudo service docker start
8342
+ until docker info >/dev/null 2>&1; do sleep 0.2; done
8342
8343
  \`\`\`
8343
8344
 
8344
- After starting, verify the daemon is running:
8345
-
8346
- \`\`\`bash
8347
- docker info
8348
- \`\`\`
8345
+ \`service docker start\` returns before the socket is accepting connections, so immediate commands may fail without the poll.
8349
8346
 
8350
8347
  ## Important Notes
8351
8348
 
8352
8349
  - **Start once per session.** The daemon stays running until the workspace shuts down. You do not need to restart it between commands.
8353
8350
  - **Check before starting.** If you are unsure whether the daemon is already running, check first to avoid an unnecessary restart:
8354
8351
  \`\`\`bash
8355
- docker info > /dev/null 2>&1 || sudo service docker start
8352
+ docker info >/dev/null 2>&1 || { sudo service docker start && until docker info >/dev/null 2>&1; do sleep 0.2; done; }
8356
8353
  \`\`\`
8357
- - **Sudo is required** for starting the daemon, but regular \`docker\` commands run without sudo (the user is in the \`docker\` group).
8354
+ - **Sudo is only required for starting the daemon.** The workspace user is in the \`docker\` group, so regular \`docker\` commands work without sudo.
8358
8355
  `;
8359
8356
  var DOCKER_ABILITY = {
8360
8357
  label: "Docker",
@@ -8494,8 +8491,8 @@ gh pr review 123 --request-changes --body "Changes needed"
8494
8491
  GitHub does NOT have a public API for uploading images to PRs/issues. When you need to include images:
8495
8492
  - Do NOT use placeholder image URLs
8496
8493
  - Do NOT commit screenshots as files to the repository
8497
- - Upload images to Imgur (or another external host) and use the returned URLs in your PR markdown
8498
- - If you were triggered from Slack, also upload the images to the Slack thread so the user can see them directly
8494
+ - Use the \`replicas-agent\` skill to share the image
8495
+ - If you were triggered from Slack, also upload the image to the Slack thread so the user can see it directly
8499
8496
  `;
8500
8497
  var GITHUB_ABILITY = {
8501
8498
  label: "GitHub",
@@ -8943,10 +8940,9 @@ After (or alongside) the embeds, include a \`[View in Replicas](<deep-link>)\` h
8943
8940
 
8944
8941
  ### On external platforms (Slack, Linear, GitHub, etc.)
8945
8942
 
8946
- Do **both** of these \u2014 neither alone is sufficient:
8943
+ Always include a \`[View in Replicas](<deep-link>)\` hyperlink \u2014 use the per-file deep link the CLI printed for that file (\`...?mode=media&media=<media-id>\`), so the recipient lands directly on that specific item.
8947
8944
 
8948
- 1. Upload the raw bytes via that platform's own upload API (Slack \`files.upload\`, Linear attachments, Imgur for GitHub PR/issue images, etc.) so the recipient actually sees the media.
8949
- 2. Include a \`[View in Replicas](<deep-link>)\` hyperlink \u2014 use the per-file deep link the CLI printed for that file (\`...?mode=media&media=<media-id>\`), so the recipient lands directly on that specific item.
8945
+ For platforms that support native uploads (Slack \`files.upload\`, Linear attachments, etc.), upload the raw bytes there too so the recipient sees the media inline in addition to the Replicas link. GitHub PRs/issues do not have a public upload API, so the \`View in Replicas\` link is the canonical way to share media there \u2014 do not commit screenshots to the repo and do not use placeholder URLs.
8950
8946
 
8951
8947
  Do **not** include the \`![filename](https://api.tryreplicas.com/...)\` markdown embed in external messages. It will render as a broken image / 401 for the recipient.
8952
8948
 
@@ -8992,7 +8988,7 @@ replicas media upload chart-a.svg chart-b.svg --kind image
8992
8988
  var MEDIA_ABILITY = {
8993
8989
  label: "Media",
8994
8990
  description: "Share screenshots, recordings, generated images, and audio clips.",
8995
- bullet: "- Sharing media (screenshots, screen recordings, generated diagrams, audio clips) \u2014 including in your Replicas chat reply and to external platforms",
8991
+ bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms",
8996
8992
  section: SECTION6,
8997
8993
  referenceFile: { name: "MEDIA.md", content: REFERENCE6 }
8998
8994
  };
@@ -16602,7 +16598,7 @@ Deleted file ${pathOrId}.
16602
16598
  }
16603
16599
 
16604
16600
  // src/index.ts
16605
- var CLI_VERSION = "0.2.190";
16601
+ var CLI_VERSION = "0.2.192";
16606
16602
  function parseBooleanOption(value) {
16607
16603
  if (value === "true") return true;
16608
16604
  if (value === "false") return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.190",
3
+ "version": "0.2.192",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {