replicas-engine 0.1.684 → 0.1.686

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.
@@ -2175,7 +2175,7 @@ If none of these apply, don't upload.
2175
2175
 
2176
2176
  \`replicas media upload\` is always the first delivery action. When the current task has an external destination, every other delivery step follows only after that command succeeds. For every file:
2177
2177
 
2178
- 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 the authenticated chat embed plus a per-file dashboard link.
2178
+ 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 a chat embed plus a per-file dashboard link. With public access, the printed Forge embed is the chat embed and is also safe to use on GitHub.
2179
2179
  2. Include the printed embed line in the Replicas chat reply, followed by the matching **View in Replicas** link. HTML uses its printed page link instead of an image embed.
2180
2180
  3. Identify every destination in the task and attempt to upload the same original bytes there. Use the destination's inline representation from the table below; do not replace the file with a Replicas link.
2181
2181
  4. Put the **View in Replicas** dashboard link next to the destination embed as a secondary link.
@@ -2215,10 +2215,11 @@ replicas media upload /tmp/before.png /tmp/after.png --name "Before fix" --name
2215
2215
 
2216
2216
  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.
2217
2217
 
2218
- For each media file, the CLI prints two lines:
2218
+ For each media file, the CLI prints an embed line and a dashboard link:
2219
2219
 
2220
- 1. \`![filename](<api-url>)\` \u2014 the chat embed (renders inline in Replicas chat **only** \u2014 see below).
2221
- 2. \`View in Replicas: <deep-link>\` \u2014 a per-file dashboard URL of the form \`https://replicas.dev/workspaces/<workspace-id>?media=<media-id>\` that opens directly to that specific file.
2220
+ 1. Default and organization access print \`Replicas chat embed: ![filename](<api-url>)\`; this authenticated URL renders inline in Replicas chat **only** \u2014 see below.
2221
+ 2. Public access (\`--access public\` or \`--share\`) prints \`![filename](<public-url>)\` as the Forge embed instead. This is the public, stable bearer URL to paste into GitHub.
2222
+ 3. \`View in Replicas: <deep-link>\` is a per-file dashboard URL of the form \`https://replicas.dev/workspaces/<workspace-id>?media=<media-id>\` that opens directly to that specific file.
2222
2223
 
2223
2224
  Match each "View in Replicas" line to the embed line directly above it \u2014 that's the deep link for that file.
2224
2225
 
@@ -2238,7 +2239,7 @@ Use public access only when the media must render without Replicas authenticatio
2238
2239
  replicas media upload screenshot.png --name "Login page" --access public
2239
2240
  \`\`\`
2240
2241
 
2241
- \`--share\` remains an alias for \`--access public\`. Public access prints an additional \`Forge embed\` for image, video, or audio media, backed by an opt-in bearer URL. Anyone with that unguessable URL can view the asset until it is rotated or revoked. HTML pages only support organization access. Use \`replicas media share <media-id>\` to rotate a public media URL and \`replicas media revoke <media-id>\` to revoke it.
2242
+ \`--share\` remains an alias for \`--access public\`. Public access prints the raw \`Forge embed\` Markdown instead of the authenticated chat-only embed for image, video, or audio media, backed by an opt-in bearer URL. Anyone with that unguessable URL can view the asset until it is rotated or revoked. HTML pages only support organization access. Use \`replicas media share <media-id>\` to rotate a public media URL and \`replicas media revoke <media-id>\` to revoke it.
2242
2243
 
2243
2244
  ## The URLs the CLI gives you \u2014 and where each one is allowed
2244
2245
 
@@ -2246,7 +2247,7 @@ replicas media upload screenshot.png --name "Login page" --access public
2246
2247
  |---|---|---|
2247
2248
  | \`https://api.replicas.dev/v1/media/<id>\` (inside \`![\u2026](\u2026)\`) | Authenticated API redirect to a presigned blob \u2014 requires the Replicas chat session | **Only** in the Replicas chat reply. Nowhere else. |
2248
2249
  | \`https://replicas.dev/organizations/<organization-id>/media/<media-id>\` | Organization-only page printed by \`--access organization\` | Pull requests and other places where every viewer belongs to the Replicas organization. |
2249
- | \`https://api.replicas.dev/v1/media/public/<id>/<token>\` | Opt-in public bearer URL printed by \`--access public\` or \`--share\` | GitHub embeds for image, video, or audio media. |
2250
+ | \`https://api.replicas.dev/v1/media/public/<id>/<token>\` | Opt-in public bearer URL printed by \`--access public\` or \`--share\` | The Replicas chat reply and GitHub embeds, for image, video, or audio media. |
2250
2251
  | \`https://replicas.dev/workspaces/<workspace-id>?media=<media-id>\` | Authenticated dashboard deep link that opens the media file in the workspace | Everywhere external: Slack, GitHub, GitLab, Linear, PR bodies, comments, emails. |
2251
2252
 
2252
2253
  ### NEVER link the API redirect URL outside the Replicas chat reply
@@ -6742,7 +6743,7 @@ var DEFAULT_CODEX_ARGS = [
6742
6743
  var MIN_CODEX_CLI_VERSION = "0.144.6";
6743
6744
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
6744
6745
  var codexCliVersionEnsured = null;
6745
- var ENGINE_PACKAGE_VERSION = "0.1.684";
6746
+ var ENGINE_PACKAGE_VERSION = "0.1.686";
6746
6747
  var INITIALIZE_METHOD = "initialize";
6747
6748
  var INITIALIZED_NOTIFICATION = "initialized";
6748
6749
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -7,7 +7,7 @@ import {
7
7
  headlessAgentRequestSchema,
8
8
  putPresignedFile,
9
9
  recoverCompletedTurn
10
- } from "./chunk-KJPH3VTS.js";
10
+ } from "./chunk-SC7MWNN2.js";
11
11
 
12
12
  // src/headless-agent.ts
13
13
  import { createHash } from "crypto";
package/dist/src/index.js CHANGED
@@ -192,7 +192,7 @@ import {
192
192
  serializeCanvasContentResponse,
193
193
  shellQuotePosix,
194
194
  stripAgentDiagnosticErrors
195
- } from "./chunk-KJPH3VTS.js";
195
+ } from "./chunk-SC7MWNN2.js";
196
196
 
197
197
  // src/index.ts
198
198
  import { serve } from "@hono/node-server";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.684",
3
+ "version": "0.1.686",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",