replicas-cli 0.3.336 → 0.3.339

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 +37 -12
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -269,7 +269,7 @@ function decodePathSegments(segments) {
269
269
  }
270
270
  });
271
271
  }
272
- var DEFAULT_WEB_APP_URL, DEFAULT_SUPABASE_URL, DEFAULT_SUPABASE_ANON_KEY, DASHBOARD_PATH, WEB_APP_PATHS, LEGACY_WEB_APP_PATHS, PR_URL_REGEX;
272
+ var DEFAULT_WEB_APP_URL, DEFAULT_SUPABASE_URL, DEFAULT_SUPABASE_ANON_KEY, DASHBOARD_PATH, WEB_APP_PATHS, LEGACY_WEB_APP_PATHS, MEMBER_MENTION_PATTERN, PR_URL_REGEX;
273
273
  var init_urls = __esm({
274
274
  "../shared/src/urls.ts"() {
275
275
  "use strict";
@@ -311,6 +311,7 @@ var init_urls = __esm({
311
311
  home: "/home",
312
312
  dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
313
313
  };
314
+ MEMBER_MENTION_PATTERN = new RegExp(String.raw`\[@((?:[^\]\\\n]|\\.)+)\]\(https?://[^\s/)]+${WEB_APP_PATHS.members}\?user=([0-9a-f-]{36})\)`, "g");
314
315
  PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
315
316
  }
316
317
  });
@@ -16356,7 +16357,7 @@ function classifyCanvasFilename(filename) {
16356
16357
  const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
16357
16358
  return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
16358
16359
  }
16359
- var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, CLAUDE_FABLE_5_1_BEDROCK_MODEL, CLAUDE_FABLE_5_BEDROCK_MODEL, CLAUDE_OPUS_5_5_BEDROCK_MODEL, CLAUDE_OPUS_5_BEDROCK_MODEL, CLAUDE_OPUS_4_8_BEDROCK_MODEL, CLAUDE_SONNET_5_5_BEDROCK_MODEL, CLAUDE_SONNET_5_BEDROCK_MODEL, CLAUDE_HAIKU_5_5_BEDROCK_MODEL, CLAUDE_HAIKU_4_5_BEDROCK_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_1_SOL_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, SANDBOX_IMAGE_MODEL_FALLBACKS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
16360
+ var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_2_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, CLAUDE_FABLE_5_2_BEDROCK_MODEL, CLAUDE_FABLE_5_1_BEDROCK_MODEL, CLAUDE_FABLE_5_BEDROCK_MODEL, CLAUDE_OPUS_5_5_BEDROCK_MODEL, CLAUDE_OPUS_5_BEDROCK_MODEL, CLAUDE_OPUS_4_8_BEDROCK_MODEL, CLAUDE_SONNET_5_5_BEDROCK_MODEL, CLAUDE_SONNET_5_BEDROCK_MODEL, CLAUDE_HAIKU_5_5_BEDROCK_MODEL, CLAUDE_HAIKU_4_5_BEDROCK_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_ASTRA_MODEL, GPT_6_1_SOL_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, SANDBOX_IMAGE_MODEL_FALLBACKS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
16360
16361
  var init_types4 = __esm({
16361
16362
  "../shared/src/engine/types.ts"() {
16362
16363
  "use strict";
@@ -16369,6 +16370,7 @@ var init_types4 = __esm({
16369
16370
  init_languages();
16370
16371
  CLAUDE_OPUS_1M_MODEL = "opus[1m]";
16371
16372
  LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
16373
+ CLAUDE_FABLE_5_2_MODEL = "claude-fable-5-2";
16372
16374
  CLAUDE_FABLE_5_1_MODEL = "claude-fable-5-1";
16373
16375
  CLAUDE_FABLE_5_MODEL = "claude-fable-5";
16374
16376
  CLAUDE_OPUS_5_5_MODEL = "claude-opus-5-5";
@@ -16378,6 +16380,7 @@ var init_types4 = __esm({
16378
16380
  CLAUDE_SONNET_5_MODEL = "claude-sonnet-5";
16379
16381
  CLAUDE_HAIKU_5_5_MODEL = "claude-haiku-5-5";
16380
16382
  CLAUDE_HAIKU_4_5_MODEL = "claude-haiku-4-5";
16383
+ CLAUDE_FABLE_5_2_BEDROCK_MODEL = "anthropic.claude-fable-5-2";
16381
16384
  CLAUDE_FABLE_5_1_BEDROCK_MODEL = "anthropic.claude-fable-5-1";
16382
16385
  CLAUDE_FABLE_5_BEDROCK_MODEL = "anthropic.claude-fable-5";
16383
16386
  CLAUDE_OPUS_5_5_BEDROCK_MODEL = "anthropic.claude-opus-5-5";
@@ -16416,6 +16419,7 @@ var init_types4 = __esm({
16416
16419
  "meta/muse-spark-1.3"
16417
16420
  ];
16418
16421
  CLAUDE_MODEL_CONTEXT_WINDOWS = {
16422
+ [CLAUDE_FABLE_5_2_MODEL]: 1e6,
16419
16423
  [CLAUDE_FABLE_5_1_MODEL]: 1e6,
16420
16424
  [CLAUDE_FABLE_5_MODEL]: 1e6,
16421
16425
  [CLAUDE_OPUS_5_5_MODEL]: 1e6,
@@ -16425,6 +16429,7 @@ var init_types4 = __esm({
16425
16429
  [CLAUDE_SONNET_5_MODEL]: 1e6,
16426
16430
  [CLAUDE_HAIKU_5_5_MODEL]: 1e6,
16427
16431
  [CLAUDE_HAIKU_4_5_MODEL]: 2e5,
16432
+ [CLAUDE_FABLE_5_2_BEDROCK_MODEL]: 1e6,
16428
16433
  [CLAUDE_FABLE_5_1_BEDROCK_MODEL]: 1e6,
16429
16434
  [CLAUDE_FABLE_5_BEDROCK_MODEL]: 1e6,
16430
16435
  [CLAUDE_OPUS_5_5_BEDROCK_MODEL]: 1e6,
@@ -16441,6 +16446,7 @@ var init_types4 = __esm({
16441
16446
  "claude-haiku-4-5@20251001": 2e5
16442
16447
  };
16443
16448
  CLAUDE_MODEL_MIN_SANDBOX_IMAGE = {
16449
+ [CLAUDE_FABLE_5_2_MODEL]: "replicas-sandbox-2026-11-09-v5",
16444
16450
  [CLAUDE_FABLE_5_1_MODEL]: "replicas-sandbox-2026-09-01-v6",
16445
16451
  [CLAUDE_FABLE_5_MODEL]: null,
16446
16452
  [CLAUDE_OPUS_5_5_MODEL]: "replicas-sandbox-2026-09-22-v4",
@@ -16534,12 +16540,13 @@ var init_types4 = __esm({
16534
16540
  ]);
16535
16541
  withoutHiddenByDefault = (models) => models.filter((model2) => !HIDDEN_BY_DEFAULT_MODELS.has(model2));
16536
16542
  DEFAULT_STATIC_AGENT_MODELS = {
16537
- // Haiku 5.5 replaces it for Claude Code; Cursor has no newer Haiku, so it keeps it.
16538
- claude: withoutHiddenByDefault(AGENT_MODELS.claude).filter((model2) => model2 !== CLAUDE_HAIKU_4_5_MODEL),
16543
+ // Fable 5.2 and Haiku 5.5 replace them for Claude Code; Cursor has neither, so it keeps them.
16544
+ claude: withoutHiddenByDefault(AGENT_MODELS.claude).filter((model2) => model2 !== CLAUDE_FABLE_5_1_MODEL && model2 !== CLAUDE_HAIKU_4_5_MODEL),
16539
16545
  codex: withoutHiddenByDefault(AGENT_MODELS.codex)
16540
16546
  };
16541
16547
  DEFAULT_CURSOR_MODELS = withoutHiddenByDefault(AGENT_MODELS.cursor);
16542
16548
  SANDBOX_IMAGE_MODEL_FALLBACKS = {
16549
+ [CLAUDE_FABLE_5_2_MODEL]: CLAUDE_FABLE_5_1_MODEL,
16543
16550
  [CLAUDE_OPUS_5_5_MODEL]: CLAUDE_OPUS_5_MODEL,
16544
16551
  [CLAUDE_SONNET_5_5_MODEL]: CLAUDE_SONNET_5_MODEL,
16545
16552
  [CLAUDE_HAIKU_5_5_MODEL]: CLAUDE_HAIKU_4_5_MODEL,
@@ -16550,6 +16557,7 @@ var init_types4 = __esm({
16550
16557
  };
16551
16558
  MODEL_LABELS = {
16552
16559
  fable: "Fable 5.1",
16560
+ [CLAUDE_FABLE_5_2_MODEL]: "Fable 5.2",
16553
16561
  [CLAUDE_FABLE_5_1_MODEL]: "Fable 5.1",
16554
16562
  [CLAUDE_FABLE_5_MODEL]: "Fable 5",
16555
16563
  sonnet: "Sonnet 5",
@@ -17802,7 +17810,7 @@ var init_workspace_attention = __esm({
17802
17810
  });
17803
17811
 
17804
17812
  // ../shared/src/routes/push.ts
17805
- var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, pushQuestionSchema, pushNotificationDataSchema, registerLiveActivityRequestSchema, setLiveActivityStartTokenRequestSchema;
17813
+ var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, setLiveActivityStartTokenRequestSchema;
17806
17814
  var init_push = __esm({
17807
17815
  "../shared/src/routes/push.ts"() {
17808
17816
  "use strict";
@@ -17840,6 +17848,7 @@ var init_push = __esm({
17840
17848
  toolRequestId: external_exports.string().optional(),
17841
17849
  question: pushQuestionSchema.optional()
17842
17850
  });
17851
+ workspaceSharedPushDataSchema = pushNotificationDataSchema.pick({ organizationId: true, workspaceId: true, chatId: true, completedAt: true }).extend({ kind: external_exports.literal("shared") });
17843
17852
  registerLiveActivityRequestSchema = external_exports.object({
17844
17853
  deviceId: external_exports.string().uuid(),
17845
17854
  workspaceId: external_exports.string().uuid(),
@@ -19234,7 +19243,7 @@ If none of these apply, don't upload.
19234
19243
  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. Every image gets a public link, so its printed embed works in chat and on GitHub.
19235
19244
  2. Include the printed embed line in the Replicas chat reply.
19236
19245
  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.
19237
- 4. On Slack and Linear, put the **View in Replicas** dashboard link next to the destination embed as a secondary link. GitHub and GitLab need only the embed.
19246
+ 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.
19238
19247
  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.
19239
19248
 
19240
19249
  | Destination | Required file delivery | Inline result |
@@ -19322,7 +19331,7 @@ The \`mode=media&media=<media-id>\` query params open that specific file in the
19322
19331
 
19323
19332
  When you have a specific file in mind, never link the bare workspace URL without the \`media=<id>\` param.
19324
19333
 
19325
- Always render as a markdown / mrkdwn hyperlink labeled **View in Replicas** \u2014 never paste a raw URL.
19334
+ Always render it as a hyperlink labeled **View in Replicas** (a URL button on Slack) \u2014 never paste a raw URL.
19326
19335
 
19327
19336
  ## In your Replicas chat reply
19328
19337
 
@@ -19364,13 +19373,21 @@ await replicas.slack.call('files.completeUploadExternal', {
19364
19373
  files: [{ id: reservation.file_id, title: 'Screenshot' }],
19365
19374
  channel_id: 'CHANNEL_ID',
19366
19375
  thread_ts: 'THREAD_TS',
19367
- initial_comment: '<https://app.replicas.dev/workspaces/<workspace-id>?mode=media&media=<media-id>|View in Replicas>',
19376
+ blocks: [{
19377
+ type: 'actions',
19378
+ elements: [{
19379
+ type: 'button',
19380
+ text: { type: 'plain_text', text: 'View in Replicas' },
19381
+ url: 'https://app.replicas.dev/workspaces/<workspace-id>?mode=media&media=<media-id>',
19382
+ action_id: 'view_media',
19383
+ }],
19384
+ }],
19368
19385
  });
19369
19386
  \`\`\`
19370
19387
 
19371
19388
  Notes:
19372
19389
  - All three steps are required; do not try to POST to \`https://slack.com/api/files.uploadV2\` \u2014 that endpoint does not exist on the Web API.
19373
- - \`initial_comment\` uses Slack mrkdwn (\`<url|label>\`), not GitHub-flavored markdown.
19390
+ - The **View in Replicas** link goes in a button, never as text. Leave out \`initial_comment\`: Slack ignores \`blocks\` when it is set.
19374
19391
  - Omit \`thread_ts\` only when you genuinely want a top-level channel post.
19375
19392
  - For multiple files in the same message, run steps 1\u20132 per file and pass all \`{id, title}\` objects in the \`files\` array of a single \`files.completeUploadExternal\` call \u2014 they share into the thread together.
19376
19393
  - If you also need to post a separate text reply in the thread, send it with \`chat.postMessage\` after the upload \u2014 but the upload itself must carry the image.
@@ -20298,7 +20315,7 @@ var init_slack_response_style = __esm({
20298
20315
  SLACK_CONCISE_REPLY_SHAPE = 'short and easy to read. Lead with a concise, easy-to-skim answer; add depth when asked. When the answer is several items compared on the same fields (a ranking, numbers per team or customer, a before and after), send them as a Slack `table` block with a header row, not a numbered or bulleted list. Each send is a deliberate message, not an automatic split of a long answer. Simple requests need only a short answer or, where the surrounding instructions allow it, a fitting reaction. Use common, everyday words, simple sentences, and contractions where they sound natural. Avoid jargon, corporate language, and formal words when a plain word works. Start with what happened or what works now, then add only the context, limits, or next step people need. Cut repetition and play-by-play, but keep anything important. Put long logs and file-by-file recaps in the pull request or workspace unless the user asks for them. Never use em dashes; use a comma, period, colon, or parentheses. Skip filler openers ("Great question", "Good catch", "Happy to help"), stock AI words ("delve", "leverage", "seamless", "robust"), closing offers ("Let me know if you need anything else"), and a closing line that restates the answer';
20299
20316
  SLACK_QUOTE_REPLY_GUIDANCE = "Use a short Slack blockquote (`> quoted text`) only when answering a specific earlier message or when the reply would otherwise have an unclear referent. Quote only the relevant line; do not quote the latest message by default, repeat the full request, or add a blockquote when the reply is already unambiguous. Escape the leading `<` in raw Slack mention and control markup such as `<@U\u2026>` and `<!channel>` as `&lt;` before quoting so it cannot notify anyone.";
20300
20317
  SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would make the message faster to scan or use. Before composing a structured message, read Slack's live [block catalog](https://docs.slack.dev/reference/block-kit/blocks) and the linked schema for each block you plan to use; do not rely on memory for which blocks exist or their fields. You have broad leeway to use display-only blocks and `actions` with URL buttons, but do not add controls that require an interaction callback. Keep simple replies as plain text, do not add decorative UI or repeat content across blocks, and always keep `text` as a concise, complete fallback for notifications and accessibility.";
20301
- SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread (the message announcing you opened it), attach a button for it: send `blocks` alongside `text`, with a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. Later messages about a pull request you already linked in this thread keep the link in the sentence and get no button, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message, since Slack uses it for notifications and fallback, and keep the link in the sentence too.';
20318
+ SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread (the message announcing you opened it), attach a button for it: send `blocks` alongside `text`, with a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. The button replaces the link, so never put the raw URL in the section text. Later messages about a pull request you already linked in this thread get no button and refer to it with a short labeled link like `<pr url|#944>`, never a raw URL, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message plus the link, since Slack uses it for notifications and fallback.';
20302
20319
  }
20303
20320
  });
20304
20321
 
@@ -32126,7 +32143,7 @@ var CLI_VERSION;
32126
32143
  var init_cli_version = __esm({
32127
32144
  "../shared/src/cli-version.ts"() {
32128
32145
  "use strict";
32129
- CLI_VERSION = "0.3.336";
32146
+ CLI_VERSION = "0.3.339";
32130
32147
  }
32131
32148
  });
32132
32149
 
@@ -33001,7 +33018,15 @@ var init_workspace_events = __esm({
33001
33018
  subagent: external_exports.object({ id: external_exports.string(), name: external_exports.string(), prUrl: external_exports.string().nullable() }),
33002
33019
  ts: external_exports.string()
33003
33020
  }),
33004
- external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), ts: external_exports.string() })
33021
+ external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), ts: external_exports.string() }),
33022
+ external_exports.object({
33023
+ type: external_exports.literal("workspace.shared"),
33024
+ workspaceId: external_exports.string(),
33025
+ workspaceName: external_exports.string(),
33026
+ sharedWithUserId: external_exports.string(),
33027
+ sharedByName: external_exports.string(),
33028
+ ts: external_exports.string()
33029
+ })
33005
33030
  ]);
33006
33031
  }
33007
33032
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.336",
3
+ "version": "0.3.339",
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": {