replicas-engine 0.1.497 → 0.1.498

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/src/index.js +29 -12
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -609,7 +609,7 @@ var WORKSPACE_SIZES = ["small", "large"];
609
609
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
610
610
 
611
611
  // ../shared/src/e2b.ts
612
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-24-v5";
612
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-24-v6";
613
613
 
614
614
  // ../shared/src/runtime-env.ts
615
615
  function shellQuotePosix(value) {
@@ -872,7 +872,7 @@ replicas computer browser-state /tmp/after-click.png
872
872
  replicas computer record start /tmp/demo.mp4 --fps 60
873
873
  # ... do stuff ...
874
874
  replicas computer record stop
875
- replicas media upload /tmp/demo.mp4
875
+ replicas media upload /tmp/demo.mp4 --name "Demo recording"
876
876
  \`\`\`
877
877
 
878
878
  ## Command reference
@@ -962,7 +962,7 @@ Starts an ffmpeg screen recorder and returns only after ffmpeg has written the f
962
962
  Only one recording at a time. Re-running \`start\` while one is active fails - call \`stop\` first.
963
963
 
964
964
  ### \`replicas computer record stop\`
965
- SIGINTs ffmpeg, verifies that the process has finalized the MP4, then prints the output path. A finalization timeout preserves the recording state so \`stop\` can be retried safely. Upload it with \`replicas media upload <path>\` to share it.
965
+ SIGINTs ffmpeg, verifies that the process has finalized the MP4, then prints the output path. A finalization timeout preserves the recording state so \`stop\` can be retried safely. Upload it with \`replicas media upload <path> --name "<name>"\` to share it.
966
966
 
967
967
  ## Patterns
968
968
 
@@ -1007,7 +1007,7 @@ For tasks the user wants proof of:
1007
1007
  replicas computer record start /tmp/walkthrough.mp4
1008
1008
  # ... your work ...
1009
1009
  replicas computer record stop
1010
- replicas media upload /tmp/walkthrough.mp4
1010
+ replicas media upload /tmp/walkthrough.mp4 --name "Walkthrough recording"
1011
1011
  \`\`\`
1012
1012
  Then embed the printed \`![\u2026](\u2026)\` line in your chat reply. See \`MEDIA.md\`.
1013
1013
 
@@ -1208,7 +1208,7 @@ gh pr review 123 --request-changes --body "Changes needed"
1208
1208
  GitHub does NOT have a public API for uploading images to PRs/issues. When you need to include images:
1209
1209
  - Do NOT use placeholder image URLs
1210
1210
  - Do NOT commit screenshots as files to the repository
1211
- - Run \`replicas media upload <image> --share\` and put the printed \`Forge embed\` Markdown in the PR body or comment
1211
+ - Run \`replicas media upload <image> --name "<display name>" --share\` and put the printed \`Forge embed\` Markdown in the PR body or comment
1212
1212
  - For video, embed a shared poster image linked to the recording's **View in Replicas** URL; GitHub does not reliably render externally hosted video inline
1213
1213
  - Treat the public URL as an opt-in bearer capability; revoke it with \`replicas media revoke <media-id>\` only when the user asks or the media should stop rendering \u2014 revoking breaks embeds already posted on the PR
1214
1214
  - If you were triggered from Slack, also upload the image to the Slack thread so the user can see it directly
@@ -1789,10 +1789,26 @@ If none of these apply, don't upload.
1789
1789
  ## Uploading to Replicas
1790
1790
 
1791
1791
  \`\`\`bash
1792
- replicas media upload <path-to-file> [<path-to-file> ...]
1792
+ replicas media upload <path-to-file> --name "<display name>" [<path-to-file> --name "<display name>" ...]
1793
1793
  \`\`\`
1794
1794
 
1795
- Pass one or more file paths. Uploading several files in a single invocation is preferred over running the command repeatedly \u2014 it's faster and keeps the output grouped.
1795
+ Pass one or more file paths, each with a required \`--name\` (see below). Uploading several files in a single invocation is preferred over running the command repeatedly: it's faster and keeps the output grouped.
1796
+
1797
+ ### Name each upload
1798
+
1799
+ \`--name\` is **required** and sets the short, human-readable display name shown in the Replicas dashboard (the backend still tracks the asset by UUID). Make it descriptive of the content, e.g. \`login-page\`, \`checkout-error\`, or \`db-latency-chart\`. Never use a generic value like \`screenshot\` or \`image\`.
1800
+
1801
+ \`\`\`bash
1802
+ replicas media upload /tmp/shot.png --name "Login page after fix"
1803
+ \`\`\`
1804
+
1805
+ Pass one \`--name\` per file, in the same order as the file paths:
1806
+
1807
+ \`\`\`bash
1808
+ replicas media upload /tmp/before.png /tmp/after.png --name "Before fix" --name "After fix"
1809
+ \`\`\`
1810
+
1811
+ Names are normalized to hyphen-case (spaces become hyphens, e.g. \`Login page\` is stored as \`login-page\`). Give every asset a **distinct** name \u2014 duplicates are not rejected, but Replicas keeps the first as-is and adds a \`-1\`, \`-2\` suffix to later collisions, which produces confusing lists, so pick unique names yourself.
1796
1812
 
1797
1813
  For each file, the CLI prints two lines:
1798
1814
 
@@ -1804,7 +1820,7 @@ Match each "View in Replicas" line to the embed line directly above it \u2014 th
1804
1820
  Pass \`--share\` only when the media must render on an external forge:
1805
1821
 
1806
1822
  \`\`\`bash
1807
- replicas media upload screenshot.png --share
1823
+ replicas media upload screenshot.png --name "Login page" --share
1808
1824
  \`\`\`
1809
1825
 
1810
1826
  This prints an additional \`Forge embed\` Markdown line backed by an opt-in public bearer URL. Anyone with that unguessable URL can view the asset until it is rotated or revoked. Use \`replicas media share <media-id>\` to rotate it and \`replicas media revoke <media-id>\` to revoke it.
@@ -1974,7 +1990,7 @@ Never paste the \`api.tryreplicas.com/v1/media/<id>\` URL into a Linear body or
1974
1990
  GitHub has **no public API** for uploading attachments to PRs or issues. Its web UI uses an undocumented internal endpoint that API clients must not emulate. For screenshots, explicitly create a forge share and put the printed \`Forge embed\` Markdown directly in the PR body or comment, followed by the dashboard link:
1975
1991
 
1976
1992
  \`\`\`bash
1977
- replicas media upload /tmp/screenshot.png --share
1993
+ replicas media upload /tmp/screenshot.png --name "PR screenshot" --share
1978
1994
  \`\`\`
1979
1995
 
1980
1996
  GitHub does not reliably render arbitrary external videos as inline players. For a recording:
@@ -2028,13 +2044,14 @@ Auto-detected from the filename extension:
2028
2044
  For other extensions, pass \`--kind image|video|audio\` explicitly. The kind applies to every file in that invocation, so group files of the same kind together:
2029
2045
 
2030
2046
  \`\`\`bash
2031
- replicas media upload diagram.svg --kind image
2032
- replicas media upload chart-a.svg chart-b.svg --kind image
2047
+ replicas media upload diagram.svg --name "Architecture diagram" --kind image
2048
+ replicas media upload chart-a.svg chart-b.svg --name "Latency chart" --name "Error rate chart" --kind image
2033
2049
  \`\`\`
2034
2050
 
2035
2051
  ## Options
2036
2052
 
2037
2053
  - \`--kind <image|video|audio>\` \u2014 override auto-detection
2054
+ - \`--name <name>\`: required display name shown in the dashboard, one per file in order
2038
2055
  - \`--session-id <id>\` \u2014 associate the upload with a specific session
2039
2056
  - \`--share\`: create a revocable public bearer URL for a forge image embed
2040
2057
  `;
@@ -9917,7 +9934,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
9917
9934
  var MIN_CODEX_CLI_VERSION = "0.144.6";
9918
9935
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
9919
9936
  var codexCliVersionEnsured = null;
9920
- var ENGINE_PACKAGE_VERSION = "0.1.497";
9937
+ var ENGINE_PACKAGE_VERSION = "0.1.498";
9921
9938
  var INITIALIZE_METHOD = "initialize";
9922
9939
  var INITIALIZED_NOTIFICATION = "initialized";
9923
9940
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.497",
3
+ "version": "0.1.498",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",