replicas-engine 0.1.1183 → 0.1.1185

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.
@@ -4211,7 +4211,7 @@ var LINEAR_ABILITY = {
4211
4211
 
4212
4212
  // ../shared/src/default-skills/replicas-agent/abilities/media.ts
4213
4213
  var SECTION8 = `### Media
4214
- Deliver screenshots, GIFs, screen recordings, generated diagrams, audio clips, and self-contained HTML pages to the Replicas dashboard and, when applicable, inline in the destination workflow.
4214
+ Deliver screenshots, GIFs, screen recordings, generated diagrams, and audio clips to the Replicas dashboard and, when applicable, inline in the destination workflow.
4215
4215
 
4216
4216
  **Reference:** \`references/MEDIA.md\`
4217
4217
 
@@ -4219,16 +4219,15 @@ Use this when:
4219
4219
  - You are about to run \`replicas media upload\`; this reference owns the complete Replicas-first, destination-second workflow
4220
4220
  - You produce a screenshot, recording, generated image, or audio clip the user should see
4221
4221
  - You need to show motion or an interaction (an animation, a popup that moves, a flow) in a PR or message: make a short looping GIF with \`replicas media gif\`, never a grid of frames
4222
- - You produce a self-contained HTML report that should be linked from a pull request
4223
4222
  - You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
4224
4223
  - You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
4225
- var REFERENCE8 = `# Media (Screenshots, GIFs, Recordings, Audio, HTML)
4224
+ var REFERENCE8 = `# Media (Screenshots, GIFs, Recordings, Audio)
4226
4225
 
4227
- This is the single source of truth for delivering screenshots, GIFs, screen recordings, generated diagrams, audio clips, and self-contained HTML pages through Replicas and external surfaces (Slack, Linear, GitHub, GitLab).
4226
+ This is the single source of truth for delivering screenshots, GIFs, screen recordings, generated diagrams, and audio clips through Replicas and external surfaces (Slack, Linear, GitHub, GitLab). HTML pages are visuals: publish them with \`replicas visualize\` (see \`replicas visualize --help\`), not \`media upload\`.
4228
4227
 
4229
4228
  ## Always
4230
4229
 
4231
- - Every picture, GIF, recording, or HTML page you mention in your reply to the user shows up in that reply: paste its printed \`![\u2026](\u2026)\` or \`HTML page\` line on its own line. Do this even when you also posted it to a PR, Slack, Linear, or GitLab, and even when the task came from one of them.
4230
+ - Every picture, GIF, recording, or visual you mention in your reply to the user shows up in that reply: paste its printed \`![\u2026](\u2026)\` line on its own line. Do this even when you also posted it to a PR, Slack, Linear, or GitLab, and even when the task came from one of them.
4232
4231
  - Never send the user somewhere else to see it ("see the Canvas", "check the media tab"). Uploads also appear in the Canvas's media folder, so they stay there for later.
4233
4232
  - Keep the whole \`replicas media upload\` output. Don't pipe it through \`tail\`, \`grep\`, or \`head\`; you need every line it prints.
4234
4233
 
@@ -4280,8 +4279,8 @@ Make comparisons easy to see at a glance, whether it's before and after or optio
4280
4279
 
4281
4280
  Upload to Replicas in these cases \u2014 and **only** these cases:
4282
4281
 
4283
- 1. **Media you show the user.** A screenshot, screen recording, generated diagram, audio clip, or HTML page, once you decide to show it to the user or share it. Screenshots you take only to check your own work stay local. Upload before you delete the file or send it anywhere else. This applies even when you're also sending the file to Slack, Linear, GitHub, or GitLab.
4284
- 2. **Files the user explicitly asks you to upload.** If the user sends or points at a file (image, video, audio, HTML) and asks you to upload it, run \`replicas media upload\`. Otherwise leave it alone \u2014 files in the workspace the user did not ask about should not be auto-uploaded as media.
4282
+ 1. **Media you show the user.** A screenshot, screen recording, generated diagram, or audio clip, once you decide to show it to the user or share it. Screenshots you take only to check your own work stay local. Upload before you delete the file or send it anywhere else. This applies even when you're also sending the file to Slack, Linear, GitHub, or GitLab.
4283
+ 2. **Files the user explicitly asks you to upload.** If the user sends or points at a file (image, video, audio) and asks you to upload it, run \`replicas media upload\`. Otherwise leave it alone \u2014 files in the workspace the user did not ask about should not be auto-uploaded as media.
4285
4284
  3. **Anything you plan to share externally (Slack, Linear, GitHub, GitLab, etc.).** Upload to Replicas first, then follow the destination's delivery path below.
4286
4285
 
4287
4286
  If none of these apply, don't upload.
@@ -4291,7 +4290,7 @@ If none of these apply, don't upload.
4291
4290
  \`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:
4292
4291
 
4293
4292
  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.
4294
- 2. Include the printed embed line in the Replicas chat reply. HTML uses its printed page link instead of an image embed.
4293
+ 2. Include the printed embed line in the Replicas chat reply.
4295
4294
  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.
4296
4295
  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.
4297
4296
  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.
@@ -4338,15 +4337,13 @@ For each media file, the CLI prints an embed line and a dashboard link:
4338
4337
 
4339
4338
  Match each "View in Replicas" line to the embed line directly above it \u2014 that's the deep link for that file.
4340
4339
 
4341
- HTML uploads print an \`HTML page\` Markdown link instead of an image embed. It previews the page inside Replicas chat only. They also print a \`Forge link (organization only)\` to use everywhere else: it opens a dedicated page, where signed-in organization members go straight to the report and signed-out members sign in first.
4342
-
4343
4340
  Video and audio stay private unless they must play without Replicas sign-in; then pass \`--access public\` (alias \`--share\`):
4344
4341
 
4345
4342
  \`\`\`bash
4346
4343
  replicas media upload demo.mp4 --name "Checkout demo" --access public
4347
4344
  \`\`\`
4348
4345
 
4349
- Public links are unguessable bearer URLs: anyone with the link can view the file until it is rotated or revoked. HTML pages only support organization access. Reuse the link printed at upload. \`replicas media share <media-id>\` issues a new link and breaks the old one everywhere it is embedded, and \`replicas media revoke <media-id>\` removes public access.
4346
+ Public links are unguessable bearer URLs: anyone with the link can view the file until it is rotated or revoked. Reuse the link printed at upload. \`replicas media share <media-id>\` issues a new link and breaks the old one everywhere it is embedded, and \`replicas media revoke <media-id>\` removes public access.
4350
4347
 
4351
4348
  Permanently delete an upload with \`replicas media delete <media-id>\`. The backend only permits deletion when the media belongs to the current workspace; media from another workspace returns not found.
4352
4349
 
@@ -4354,8 +4351,8 @@ Permanently delete an upload with \`replicas media delete <media-id>\`. The back
4354
4351
 
4355
4352
  | URL | What it is | Where it's allowed |
4356
4353
  |---|---|---|
4357
- | \`https://api.replicas.dev/v1/media/<id>\` (inside \`![\u2026](\u2026)\`) | Authenticated API redirect printed for private video, audio, and HTML \u2014 requires the Replicas chat session | **Only** in the Replicas chat reply. Nowhere else. |
4358
- | \`https://app.replicas.dev/organizations/<organization-id>/media/<media-id>\` | Organization-only page (\`Forge link\`) printed for every HTML upload, and for video or audio with \`--access organization\` | Pull requests and other places where every viewer belongs to the Replicas organization. |
4354
+ | \`https://api.replicas.dev/v1/media/<id>\` (inside \`![\u2026](\u2026)\`) | Authenticated API redirect printed for private video, audio, and visuals \u2014 requires the Replicas chat session | **Only** in the Replicas chat reply. Nowhere else. |
4355
+ | \`https://app.replicas.dev/organizations/<organization-id>/media/<media-id>\` | Organization-only page (\`Forge link\`) printed for every visual, and for video or audio with \`--access organization\` | Pull requests and other places where every viewer belongs to the Replicas organization. |
4359
4356
  | \`https://api.replicas.dev/v1/media/public/<id>/<token>\` | Public bearer URL printed for every image, and for video or audio with \`--access public\` | The Replicas chat reply and GitHub embeds. |
4360
4357
  | \`https://app.replicas.dev/workspaces/<workspace-id>?mode=media&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. |
4361
4358
 
@@ -4373,7 +4370,7 @@ This rule has no exceptions:
4373
4370
 
4374
4371
  ### ALWAYS link a Replicas web URL \u2014 never the authenticated API URL \u2014 when referencing media externally
4375
4372
 
4376
- For an HTML page, use its printed \`Forge link\`. For other authenticated media references, use the dashboard form:
4373
+ For a visual, use its printed \`Forge link\`: it opens a dedicated page, where signed-in organization members go straight to it and signed-out members sign in first. For other authenticated media references, use the dashboard form:
4377
4374
 
4378
4375
  \`\`\`
4379
4376
  https://app.replicas.dev/workspaces/<workspace-id>?mode=media&media=<media-id>
@@ -4387,7 +4384,7 @@ Always render as a markdown / mrkdwn hyperlink labeled **View in Replicas** \u20
4387
4384
 
4388
4385
  ## In your Replicas chat reply
4389
4386
 
4390
- Include each markdown embed line **verbatim** where you want that file to render inline. The chat substitutes each one with an embedded image, video, or audio player. For HTML, use the printed \`HTML page\` link. Multiple embeds can appear in a single reply.
4387
+ Include each markdown embed line **verbatim** where you want that file to render inline. The chat substitutes each one with an embedded image, video, or audio player. Multiple embeds can appear in a single reply.
4391
4388
 
4392
4389
  Never reply with only dashboard links (for example a "Links:" list of \`?mode=media&media=\` URLs) in place of the embeds: a dashboard link renders as plain text, so the user sees nothing inline. This applies even when the task came from Slack, Linear, GitHub, or GitLab; the chat reply still gets the embeds.
4393
4390
 
@@ -4530,7 +4527,7 @@ GitHub does not play external videos inline, so show motion with a GIF (see *Mak
4530
4527
 
4531
4528
  Public links are unauthenticated bearer capabilities. Revoke with \`replicas media revoke <media-id>\` **only** when the user asks or the media should intentionally stop rendering; never as routine post-task cleanup, since revoking breaks every embed already posted on the PR.
4532
4529
 
4533
- For a self-contained HTML report, upload it and put the printed \`Forge link\` Markdown in the PR body or comment. GitHub cannot render the page inline, so use the normal link rather than image syntax. HTML pages cannot be shared publicly.
4530
+ For a self-contained HTML report, publish it with \`replicas visualize\` and put the printed \`Forge link\` Markdown in the PR body or comment. GitHub cannot render the page inline, so use the normal link rather than image syntax. Visuals cannot be shared publicly.
4534
4531
 
4535
4532
  Do **not** commit screenshots to the repo, use placeholder URLs, expose the authenticated \`/v1/media/<id>\` URL, or automate GitHub's undocumented browser upload flow.
4536
4533
 
@@ -4568,9 +4565,8 @@ Auto-detected from the filename extension:
4568
4565
  | \`png\`, \`jpg\`, \`jpeg\`, \`webp\`, \`gif\` | image |
4569
4566
  | \`mp4\`, \`webm\` | video |
4570
4567
  | \`mp3\`, \`wav\` | audio |
4571
- | \`html\`, \`htm\` | html |
4572
4568
 
4573
- For other extensions, pass \`--kind image|video|audio|html\` explicitly. The kind applies to every file in that invocation, so group files of the same kind together:
4569
+ 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:
4574
4570
 
4575
4571
  \`\`\`bash
4576
4572
  replicas media upload diagram.svg --name "Architecture diagram" --kind image
@@ -4579,16 +4575,16 @@ replicas media upload chart-a.svg chart-b.svg --name "Latency chart" --name "Err
4579
4575
 
4580
4576
  ## Options
4581
4577
 
4582
- - \`--kind <image|video|audio|html>\` \u2014 override auto-detection
4578
+ - \`--kind <image|video|audio>\` \u2014 override auto-detection
4583
4579
  - \`--name <name>\`: required display name shown in the dashboard, one per file in order
4584
4580
  - \`--session-id <id>\` \u2014 associate the upload with a specific session
4585
- - \`--access organization|public\`: for video and audio, print an organization-only link or create a public bearer URL. Images are always public, and HTML always gets an organization-only link
4586
- - \`--share\`: alias for \`--access public\`; not supported for HTML
4581
+ - \`--access organization|public\`: for video and audio, print an organization-only link or create a public bearer URL. Images are always public
4582
+ - \`--share\`: alias for \`--access public\`
4587
4583
  `;
4588
4584
  var MEDIA_ABILITY = {
4589
4585
  label: "Media",
4590
4586
  description: "Deliver media to Replicas and destination workflows with inline uploads.",
4591
- bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips, or HTML recap pages \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms. Paste the printed `![\u2026](\u2026)` embeds in your chat reply, never only dashboard links, and upload the file itself to Slack, Linear, or GitLab. To show motion, turn the recording into a short GIF with `replicas media gif` instead of a grid of frames",
4587
+ bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, or audio clips \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms. Paste the printed `![\u2026](\u2026)` embeds in your chat reply, never only dashboard links, and upload the file itself to Slack, Linear, or GitLab. To show motion, turn the recording into a short GIF with `replicas media gif` instead of a grid of frames",
4592
4588
  section: SECTION8,
4593
4589
  referenceFile: { name: "MEDIA.md", content: REFERENCE8 }
4594
4590
  };
@@ -5407,6 +5403,130 @@ var SLACK_ABILITY = {
5407
5403
  referenceFile: { name: "SLACK.md", content: REFERENCE14 }
5408
5404
  };
5409
5405
 
5406
+ // ../shared/src/visuals.ts
5407
+ var VISUAL_COLUMN_WIDTH = 760;
5408
+ var VISUAL_PHONE_WIDTH = 390;
5409
+ var VISUAL_PAGE_RULES = `- Write one self-contained HTML file with inline <style> and <script>; a fragment without <html> or <head> is fine. Put data inline instead of fetching it. Libraries may load from public CDNs such as cdn.jsdelivr.net. Local images written as absolute paths (src="/abs/shot.png", url(/abs/bg.webp)) are inlined when you publish.
5410
+ - The page sits directly on the chat background, as wide as your reply (about ${VISUAL_COLUMN_WIDTH}px on desktop, ${VISUAL_PHONE_WIDTH - 30}px on phones), with its left edge aligned to your text. Leave html and body transparent, use a fluid width with no outer padding, and add no outer card, border, or title banner: the page is part of your reply.
5411
+ - Let content set the height. Never use 100vh, height:100%, or min-height:100vh on html, body, or the outer element; publishing refuses a page whose height follows the frame. Give charts fixed pixel heights.
5412
+ - Color everything with the theme variables so the page follows light and dark mode live: --foreground, --muted-foreground (secondary text), --background, --muted (subtle fills), --accent, --border, --primary and --primary-foreground (Replicas green), --destructive, --warning, --code-background, --code-foreground, and --chart-1 to --chart-6 for series (use them in order and label series directly). Never hardcode a light or dark palette. A canvas or chart library that needs literal colors can read them with getComputedStyle(document.documentElement) and redraw on matchMedia("(prefers-color-scheme: dark)") changes.
5413
+ - Text is 13px General Sans, like the chat; --font-sans and --font-mono are set. Keep Replicas' flat look: separate sections with 1px var(--border) lines or var(--muted) fills, without shadows or rounded cards. Use var(--radius) only on small controls.
5414
+ - Interaction is welcome: hover details, tabs, toggles, sliders. Links open in a new browser tab.
5415
+ - Keep the top-right corner (about 110\xD740px) free of anything essential: the chat shows the visual's actions there on hover.`;
5416
+ var THEME_FRAGMENT_KEY = "replicas-theme";
5417
+ var HOST_CONTEXT_CHANGED_METHOD = "ui/notifications/host-context-changed";
5418
+ var SIZE_CHANGED_METHOD = "ui/notifications/size-changed";
5419
+ var OPEN_LINK_METHOD = "ui/open-link";
5420
+ var VISUAL_CONTENT_HEIGHT_EXPRESSION = "(function(){var r=document.documentElement;return Math.ceil(r.scrollHeight>r.clientHeight?r.scrollHeight:r.getBoundingClientRect().height)})()";
5421
+ var BASE_CSS = "html{color:var(--foreground);font-family:var(--font-sans);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;scrollbar-width:none}html::-webkit-scrollbar{display:none}body{margin:0}:where(*,*::before,*::after){box-sizing:border-box}code,kbd,pre,samp{font-family:var(--font-mono)}:where(:focus-visible){outline:2px solid var(--ring);outline-offset:-2px}";
5422
+ var THEME_STYLE_ID = "replicas-visual-theme";
5423
+ var BOOTSTRAP_SCRIPT = `
5424
+ (() => {
5425
+ const style = document.getElementById('${THEME_STYLE_ID}');
5426
+ const nativeView = window.ReactNativeWebView;
5427
+ const framed = window.parent !== window;
5428
+ const post = (message) => nativeView ? nativeView.postMessage(JSON.stringify(message)) : window.parent.postMessage(message, '*');
5429
+ const applyTheme = (theme) => {
5430
+ const variables = Object.entries(theme.variables).map(([name, value]) => name + ':' + value + ';').join('');
5431
+ const font = theme.fontUrl ? '@font-face{font-family:"General Sans";src:url("' + theme.fontUrl + '") format("woff2");font-weight:200 700;font-display:swap}' : '';
5432
+ style.textContent = ':root{color-scheme:' + theme.appearance + ';' + variables + '}' + font + ${JSON.stringify(BASE_CSS)};
5433
+ };
5434
+ try {
5435
+ const fragment = /[#&]${THEME_FRAGMENT_KEY}=([^&]*)/.exec(location.hash);
5436
+ if (fragment) {
5437
+ applyTheme(JSON.parse(decodeURIComponent(fragment[1])));
5438
+ history.replaceState(history.state, '', location.pathname + location.search);
5439
+ }
5440
+ } catch {}
5441
+ if (!nativeView) {
5442
+ document.addEventListener('click', (event) => {
5443
+ const anchor = event.isTrusted && event.composedPath().find((target) => target instanceof Element && target.matches('a[href]'));
5444
+ if (!anchor) return;
5445
+ const url = new URL(anchor.getAttribute('href'), document.baseURI);
5446
+ if (!/^https?:$/.test(url.protocol) || url.href.split('#')[0] === location.href.split('#')[0]) return;
5447
+ if (framed) {
5448
+ event.preventDefault();
5449
+ post({ jsonrpc: '2.0', method: '${OPEN_LINK_METHOD}', params: { url: url.href } });
5450
+ } else {
5451
+ anchor.setAttribute('target', '_blank');
5452
+ anchor.setAttribute('rel', 'noopener');
5453
+ }
5454
+ }, true);
5455
+ }
5456
+ if (!framed && !nativeView) return;
5457
+ let reportedHeight;
5458
+ const reportHeight = () => {
5459
+ const height = ${VISUAL_CONTENT_HEIGHT_EXPRESSION};
5460
+ if (height === reportedHeight) return;
5461
+ reportedHeight = height;
5462
+ post({ jsonrpc: '2.0', method: '${SIZE_CHANGED_METHOD}', params: { height } });
5463
+ };
5464
+ window.addEventListener('message', (event) => {
5465
+ if (event.source !== window.parent || event.data?.method !== '${HOST_CONTEXT_CHANGED_METHOD}') return;
5466
+ const { theme, styles, fontUrl } = event.data.params;
5467
+ applyTheme({ appearance: theme, variables: styles.variables, fontUrl });
5468
+ reportedHeight = undefined;
5469
+ if (document.readyState !== 'loading') reportHeight();
5470
+ });
5471
+ const resizeObserver = new ResizeObserver(reportHeight);
5472
+ resizeObserver.observe(document.documentElement);
5473
+ document.addEventListener('DOMContentLoaded', () => {
5474
+ resizeObserver.observe(document.body);
5475
+ reportHeight();
5476
+ });
5477
+ window.addEventListener('load', reportHeight);
5478
+ })();
5479
+ `.trim().replace(/\s*\n\s*/g, " ");
5480
+
5481
+ // ../shared/src/default-skills/replicas-agent/abilities/visuals.ts
5482
+ var SECTION15 = `### Visuals
5483
+ Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas chat reply, in the chat's own font and colors.
5484
+
5485
+ **Reference:** \`references/VISUALS.md\`
5486
+
5487
+ Use this when:
5488
+ - Seeing it would explain faster than reading it: numbers over time, a flow or architecture, a before and after, options side by side
5489
+ - The user asks to see, chart, plot, compare, or visualize something`;
5490
+ var REFERENCE15 = `# Visuals
5491
+
5492
+ A visual is a self-contained HTML page shown inline in your Replicas chat reply. It sits on the chat background in the chat's font and colors, grows to fit its content, and follows the user's light or dark theme live.
5493
+
5494
+ ## When to make one
5495
+
5496
+ Make one when seeing beats reading: how parts of a system connect, how a request or data flows, numbers or options compared, a timeline, a before and after, or a UI mockup. Make one when the user asks to see, chart, compare, sketch, or visualize something. Never draw these as ASCII art or text diagrams.
5497
+
5498
+ Don't make one when:
5499
+ - A short answer or list covers it.
5500
+ - It is a plain table: write a Markdown table.
5501
+ - It is screenshots, or a before and after of them: upload them as images, which readers can open full screen and zoom. See "Before and after" in \`references/MEDIA.md\`.
5502
+ - The user wants a page, site, or component in their project: build that in the repo.
5503
+
5504
+ ## Make it
5505
+
5506
+ 1. Write the page, for example \`/tmp/visuals/<name>.html\`, following the page rules below.
5507
+ 2. Run \`replicas visualize <page.html> --title "<short title>"\`. It checks the page in a headless browser, publishes it, and prints two screenshots (dark at desktop width, light at phone width) with any console errors and layout warnings.
5508
+ 3. Open both screenshots and look. If anything is wrong, fix the page and publish again, then use the newest line. While iterating, \`replicas visualize <page.html> --check\` renders without publishing.
5509
+ 4. Paste the printed \`![\u2026](\u2026)\` line on its own line where the visual belongs in your final reply.
5510
+
5511
+ ## Page rules
5512
+
5513
+ ${VISUAL_PAGE_RULES}
5514
+
5515
+ ## In your reply
5516
+
5517
+ - The user sees the visual itself. Don't introduce it ("Here's a chart", "Here's the diagram"), say where it is, or restate its data. Add only what it doesn't say, such as the takeaway or a caveat.
5518
+ - Paste the line in your final reply, not in a progress update. To change a visual, edit the page, publish it again, and paste the new line.
5519
+ - The line only renders in Replicas chat. When you post to pull requests, Slack, Linear, or anywhere else, link the printed Forge link instead. Leave the Forge link out of your chat reply.
5520
+ `;
5521
+ var VISUALS_ABILITY = {
5522
+ label: "Visuals",
5523
+ description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
5524
+ // The visuals_instructions system prompt block is its trigger.
5525
+ bullet: "",
5526
+ section: SECTION15,
5527
+ referenceFile: { name: "VISUALS.md", content: REFERENCE15 }
5528
+ };
5529
+
5410
5530
  // ../shared/src/default-skills/replicas-agent/registry.ts
5411
5531
  var REPLICAS_AGENT_ABILITY_REGISTRY = {
5412
5532
  replicas: REPLICAS_ABILITY,
@@ -5422,7 +5542,8 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
5422
5542
  plugins: PLUGINS_ABILITY,
5423
5543
  previews: PREVIEWS_ABILITY,
5424
5544
  sentry: SENTRY_ABILITY,
5425
- slack: SLACK_ABILITY
5545
+ slack: SLACK_ABILITY,
5546
+ visuals: VISUALS_ABILITY
5426
5547
  };
5427
5548
  var REPLICAS_AGENT_ABILITIES = Object.keys(
5428
5549
  REPLICAS_AGENT_ABILITY_REGISTRY
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-XG6BQ3DQ.js";
7
- import "./chunk-OKE4RCRY.js";
8
- import "./chunk-2AG3DWDX.js";
6
+ } from "./chunk-3MSUW7UR.js";
7
+ import "./chunk-5LUEYBGK.js";
8
+ import "./chunk-DK47O5WV.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-AGNQDFJU.js";
12
+ import "./chunk-MRLYA3JT.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -13,12 +13,12 @@ import {
13
13
  recoverCompletedTurn,
14
14
  spawnMuseMsp,
15
15
  startMuseSession
16
- } from "./chunk-E6ZC5R42.js";
16
+ } from "./chunk-HI2JQFS4.js";
17
17
  import {
18
18
  AppServerProcess,
19
19
  buildCodexAgentEnv
20
- } from "./chunk-RB33U66A.js";
21
- import "./chunk-2AG3DWDX.js";
20
+ } from "./chunk-BWK6AIHV.js";
21
+ import "./chunk-DK47O5WV.js";
22
22
  import {
23
23
  AGENT,
24
24
  OPENCODE_GO_PROVIDER,
@@ -28,7 +28,7 @@ import {
28
28
  headlessAgentUsagePath,
29
29
  isRecord,
30
30
  withTimeout
31
- } from "./chunk-AGNQDFJU.js";
31
+ } from "./chunk-MRLYA3JT.js";
32
32
  import "./chunk-VEQXQN22.js";
33
33
 
34
34
  // src/headless-agent.ts