replicas-engine 0.1.1624 → 0.1.1625

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.
@@ -8,12 +8,12 @@ import {
8
8
  listCodexModelsForDetails,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-33YPJUHY.js";
12
- import "./chunk-P6JEOJYI.js";
13
- import "./chunk-EJKGU756.js";
14
- import "./chunk-QWRELB5I.js";
11
+ } from "./chunk-AOR5KXL3.js";
12
+ import "./chunk-KLGUYWRC.js";
13
+ import "./chunk-CCUGLHDK.js";
14
+ import "./chunk-7QLCCWO2.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-JBRMCXE4.js";
16
+ import "./chunk-F2SSS7T5.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  HOOK_EXEC_MAX_BUFFER_BYTES
6
- } from "./chunk-JBRMCXE4.js";
6
+ } from "./chunk-F2SSS7T5.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -12,15 +12,15 @@ import {
12
12
  resolveDiffBase,
13
13
  runGitCommand,
14
14
  setAgentCredentialSnapshot
15
- } from "./chunk-P6JEOJYI.js";
15
+ } from "./chunk-KLGUYWRC.js";
16
16
  import {
17
17
  AppServerProcess,
18
18
  buildCodexAgentEnv
19
- } from "./chunk-EJKGU756.js";
19
+ } from "./chunk-CCUGLHDK.js";
20
20
  import {
21
21
  SUBPROCESS_MAX_BUFFER,
22
22
  execFileAsync
23
- } from "./chunk-QWRELB5I.js";
23
+ } from "./chunk-7QLCCWO2.js";
24
24
  import {
25
25
  isRecord
26
26
  } from "./chunk-UZSNFLDQ.js";
@@ -61,7 +61,7 @@ import {
61
61
  shrunkImageSize,
62
62
  splitMothershipInstructions,
63
63
  withTimeout
64
- } from "./chunk-JBRMCXE4.js";
64
+ } from "./chunk-F2SSS7T5.js";
65
65
 
66
66
  // src/managers/codex-token-manager.ts
67
67
  import { promises as fs } from "fs";
@@ -461,7 +461,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
461
461
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
462
462
  await this.applyCredentialsResponse(data);
463
463
  setAgentCredentialSnapshot("codex", data);
464
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-5BBUUVMM.js");
464
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-IN7WWAPV.js");
465
465
  await restartCodexAspHostIfRunning2();
466
466
  });
467
467
  await this.start(true);
@@ -483,7 +483,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
483
483
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
484
484
  await this.applyCredentialsResponse(data);
485
485
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
486
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-5BBUUVMM.js");
486
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-IN7WWAPV.js");
487
487
  await restartCodexAspHostIfRunning2();
488
488
  }
489
489
  setAgentCredentialSnapshot("codex", data);
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  execFileAsync
6
- } from "./chunk-QWRELB5I.js";
6
+ } from "./chunk-7QLCCWO2.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-JBRMCXE4.js";
9
+ } from "./chunk-F2SSS7T5.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
240
240
  if (method === "foundry") return "azure";
241
241
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
242
242
  }
243
- var ENGINE_PACKAGE_VERSION = "0.1.1624";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1625";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -14060,11 +14060,12 @@ var GITLAB_ABILITY = {
14060
14060
 
14061
14061
  // ../shared/src/routes/compute.ts
14062
14062
  import { z as z26 } from "zod";
14063
- var COMPUTE_SANDBOX_KINDS = ["gpu"];
14063
+ var COMPUTE_SANDBOX_KINDS = ["gpu", "macos"];
14064
14064
  var GPU_TYPES = ["T4", "L4", "A10G", "L40S", "A100", "A100-80GB", "H100", "H200", "B200"];
14065
14065
  var DEFAULT_GPU_TYPE = "L4";
14066
14066
  var DEFAULT_GPU_IMAGE = "pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime";
14067
- var COMPUTE_SANDBOX_WORKDIR = "/workspace";
14067
+ var COMPUTE_SANDBOX_WORKDIRS = { gpu: "/workspace", macos: "/Users/computer/workspace" };
14068
+ var MACOS_SANDBOX_MAX_TIMEOUT_MINUTES = 120;
14068
14069
  var COMPUTE_SANDBOX_LIMITS = {
14069
14070
  maxActivePerWorkspace: 3,
14070
14071
  maxActivePerOrganization: 10,
@@ -14100,6 +14101,7 @@ var computeTransferPathSchema = z26.object({
14100
14101
  });
14101
14102
 
14102
14103
  // ../shared/src/default-skills/replicas-agent/abilities/gpu.ts
14104
+ var COMPUTE_SANDBOX_WORKDIR = COMPUTE_SANDBOX_WORKDIRS.gpu;
14103
14105
  var SECTION6 = `### GPU sandboxes
14104
14106
  Run GPU workloads (training, inference, CUDA builds, rendering) on cloud GPU sandboxes with \`replicas gpu\`. The workspace itself has no GPU.
14105
14107
 
@@ -14375,8 +14377,52 @@ var LOCAL_COMPUTER_ABILITY = {
14375
14377
  referenceFile: { name: "LOCAL-COMPUTER.md", content: REFERENCE8 }
14376
14378
  };
14377
14379
 
14380
+ // ../shared/src/default-skills/replicas-agent/abilities/macos.ts
14381
+ var WORKDIR = COMPUTE_SANDBOX_WORKDIRS.macos;
14382
+ var SECTION9 = `### macOS sandboxes
14383
+ Build and test Apple apps (Xcode builds, iOS Simulator, Swift, macOS-only tools) on cloud Macs with \`replicas macos\`. The workspace itself runs Linux.
14384
+
14385
+ **Reference:** \`references/MACOS.md\`
14386
+
14387
+ Use this when:
14388
+ - A task needs macOS or Xcode: building an iOS or macOS app, running XCTest, booting an iOS Simulator, or a macOS-only tool`;
14389
+ var REFERENCE9 = `# macOS sandboxes
14390
+
14391
+ \`replicas macos\` starts a cloud Mac (Apple silicon, Xcode, iOS Simulator runtimes, Homebrew, git, Node, Python) and runs commands on it. It is authenticated automatically, and usage is billed at cost to the organization, so stop Macs when you are done.
14392
+
14393
+ \`\`\`bash
14394
+ replicas macos create
14395
+ replicas macos push # . -> ${WORKDIR}
14396
+ replicas macos exec -- xcodebuild -version
14397
+ replicas macos exec -- "cd ios && xcodebuild -scheme App -destination 'platform=iOS Simulator,name=iPhone 17' build"
14398
+ replicas macos exec -- "xcrun simctl boot 'iPhone 17' && xcrun simctl io booted screenshot shot.png"
14399
+ replicas macos pull ${WORKDIR}/shot.png ./
14400
+ replicas macos delete
14401
+ \`\`\`
14402
+
14403
+ - Commands run with \`sh -c\` in \`${WORKDIR}\` as an admin user; quote shell operators. Use \`echo revyl | sudo -S <command>\` when a command needs root.
14404
+ - A Mac runs one command at a time; others wait for it. Each command can run for up to an hour, and its output (first 1 MiB) arrives when it exits, so pipe long logs through \`tail\`.
14405
+ - Background processes (\`&\`, \`nohup\`) end with the command that started them. Boot a simulator and use it in the same command, or leave it booted with \`xcrun simctl boot\`, which keeps running.
14406
+ - \`--sandbox <id>\` picks a Mac when more than one is running; \`replicas macos list\` shows them.
14407
+ - Pass secrets per command with \`--env KEY=value\`; never push them in files.
14408
+ - Push source rather than build output, and pull only results such as screenshots, logs, and \`.app\` bundles; transfers are capped at 1 GiB.
14409
+
14410
+ ## Limits
14411
+
14412
+ - Lifetime 1 hour by default, up to ${MACOS_SANDBOX_MAX_TIMEOUT_MINUTES} minutes with \`--timeout\`. Nothing on a Mac is kept after it stops.
14413
+ - Macs stop when this workspace sleeps, is archived, or is deleted; pull results before finishing.
14414
+ - Macs are shared across organizations, so a create can fail when none are free; retry after a few minutes.
14415
+ `;
14416
+ var MACOS_ABILITY = {
14417
+ label: "macOS sandboxes",
14418
+ description: "Build and test iOS and macOS apps with Xcode and the iOS Simulator on cloud Macs with `replicas macos`.",
14419
+ bullet: "- Building and testing iOS or macOS apps (Xcode, iOS Simulator, Swift) on cloud Macs with `replicas macos`",
14420
+ section: SECTION9,
14421
+ referenceFile: { name: "MACOS.md", content: REFERENCE9 }
14422
+ };
14423
+
14378
14424
  // ../shared/src/default-skills/replicas-agent/abilities/media.ts
14379
- var SECTION9 = `### Media
14425
+ var SECTION10 = `### Media
14380
14426
  Deliver screenshots, GIFs, screen recordings, generated diagrams, and audio clips to the Replicas dashboard and, when applicable, inline in the destination workflow.
14381
14427
 
14382
14428
  **Reference:** \`references/MEDIA.md\`
@@ -14387,7 +14433,7 @@ Use this when:
14387
14433
  - 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
14388
14434
  - You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
14389
14435
  - You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
14390
- var REFERENCE9 = `# Media (Screenshots, GIFs, Recordings, Audio)
14436
+ var REFERENCE10 = `# Media (Screenshots, GIFs, Recordings, Audio)
14391
14437
 
14392
14438
  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\`.
14393
14439
 
@@ -14754,12 +14800,12 @@ var MEDIA_ABILITY = {
14754
14800
  label: "Media",
14755
14801
  description: "Deliver media to Replicas and destination workflows with inline uploads.",
14756
14802
  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",
14757
- section: SECTION9,
14758
- referenceFile: { name: "MEDIA.md", content: REFERENCE9 }
14803
+ section: SECTION10,
14804
+ referenceFile: { name: "MEDIA.md", content: REFERENCE10 }
14759
14805
  };
14760
14806
 
14761
14807
  // ../shared/src/default-skills/replicas-agent/abilities/previews.ts
14762
- var SECTION10 = `### Previews
14808
+ var SECTION11 = `### Previews
14763
14809
  Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
14764
14810
 
14765
14811
  **Reference:** \`references/PREVIEWS.md\`
@@ -14769,7 +14815,7 @@ Use this when:
14769
14815
  - The task involves UI work that benefits from human review
14770
14816
  - You are verifying frontend/backend integrations visually
14771
14817
  - You need a URL for OAuth redirects, GitHub App callbacks, or webhooks (never the sandbox's \`*.e2b.app\` address)`;
14772
- var REFERENCE10 = `# Preview URLs
14818
+ var REFERENCE11 = `# Preview URLs
14773
14819
 
14774
14820
  When you run services on ports \u2014 such as a web app, API server, or database \u2014 humans may want to interact with them directly. You can expose your locally running services as public preview URLs.
14775
14821
 
@@ -14858,12 +14904,12 @@ var PREVIEWS_ABILITY = {
14858
14904
  label: "Previews",
14859
14905
  description: "Expose locally running services on public preview URLs for humans.",
14860
14906
  bullet: "- Creating preview URLs for locally running services, including OAuth redirect, app callback, and webhook URLs (never a raw `*.e2b.app` address)",
14861
- section: SECTION10,
14862
- referenceFile: { name: "PREVIEWS.md", content: REFERENCE10 }
14907
+ section: SECTION11,
14908
+ referenceFile: { name: "PREVIEWS.md", content: REFERENCE11 }
14863
14909
  };
14864
14910
 
14865
14911
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
14866
- var SECTION11 = `### Plugins
14912
+ var SECTION12 = `### Plugins
14867
14913
  Discover and execute installed marketplace tools through the workspace-scoped TypeScript SDK.
14868
14914
 
14869
14915
  **Reference:** \`references/PLUGINS.md\`
@@ -14882,7 +14928,7 @@ Use this when:
14882
14928
  - The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
14883
14929
  - The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
14884
14930
  - The user asks to analyze text with Pangram`;
14885
- var REFERENCE11 = `# Plugins
14931
+ var REFERENCE12 = `# Plugins
14886
14932
 
14887
14933
  Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and uses the connection from the most specific environment in the workspace's fork chain. Provider credentials, sessions, and project keys are never exposed.
14888
14934
 
@@ -15088,12 +15134,12 @@ var PLUGINS_ABILITY = {
15088
15134
  label: "Plugins",
15089
15135
  description: "Use installed marketplace tools through @replicas/sdk.",
15090
15136
  bullet: "- Interacting with installed marketplace plugins through TypeScript",
15091
- section: SECTION11,
15092
- referenceFile: { name: "PLUGINS.md", content: REFERENCE11 }
15137
+ section: SECTION12,
15138
+ referenceFile: { name: "PLUGINS.md", content: REFERENCE12 }
15093
15139
  };
15094
15140
 
15095
15141
  // ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
15096
- var SECTION12 = `### Replicas (in-workspace CLI)
15142
+ var SECTION13 = `### Replicas (in-workspace CLI)
15097
15143
  Take action *with* Replicas itself \u2014 manage automations, environments (variables, files), repos, and \`replicas.json\` config \u2014 using the pre-installed, pre-authenticated \`replicas\` CLI.
15098
15144
 
15099
15145
  **Reference:** \`references/REPLICAS.md\`
@@ -15107,7 +15153,7 @@ Use this when:
15107
15153
  - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
15108
15154
  - You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake
15109
15155
  - The user asks you to change how their Replicas app looks (theme, colors, accent) \u2014 use \`replicas theme set\` (see *Themes*)`;
15110
- var REFERENCE12 = `# Replicas (in-workspace CLI)
15156
+ var REFERENCE13 = `# Replicas (in-workspace CLI)
15111
15157
 
15112
15158
  This guide covers how to take action *with* Replicas itself from inside a Replicas workspace \u2014 managing automations, environments (and their variables/files), repos, previews, and the user's \`replicas.json\` config \u2014 using the pre-installed \`replicas\` CLI.
15113
15159
 
@@ -15425,13 +15471,13 @@ var REPLICAS_ABILITY = {
15425
15471
  label: "Replicas",
15426
15472
  description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
15427
15473
  bullet: "- Getting a secret, API key, or token you don't have from the user: run `replicas environment vars request <KEY>...`, which shows them a form. Never ask for the value in chat or tell them to add it in settings.",
15428
- section: SECTION12,
15429
- referenceFile: { name: "REPLICAS.md", content: REFERENCE12 },
15474
+ section: SECTION13,
15475
+ referenceFile: { name: "REPLICAS.md", content: REFERENCE13 },
15430
15476
  locked: true
15431
15477
  };
15432
15478
 
15433
15479
  // ../shared/src/default-skills/replicas-agent/abilities/sentry.ts
15434
- var SECTION13 = `### Sentry
15480
+ var SECTION14 = `### Sentry
15435
15481
  Read issues and project data through the workspace-scoped TypeScript SDK.
15436
15482
 
15437
15483
  **Reference:** \`references/SENTRY.md\`
@@ -15440,7 +15486,7 @@ Use this when:
15440
15486
  - A user shares a Sentry link (sentry.io or a self-hosted Sentry server)
15441
15487
  - You need to inspect Sentry projects or issues
15442
15488
  - A user asks for error-monitoring context outside a webhook-triggered task`;
15443
- var REFERENCE13 = `# Sentry Integration
15489
+ var REFERENCE14 = `# Sentry Integration
15444
15490
 
15445
15491
  Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
15446
15492
 
@@ -15471,8 +15517,8 @@ var SENTRY_ABILITY = {
15471
15517
  label: "Sentry",
15472
15518
  description: "Read Sentry projects and issues through @replicas/sdk.",
15473
15519
  bullet: "- Interacting with Sentry (reading projects, issues, and error context, including any Sentry issue link the user shares): use replicas.sentry.request from @replicas/sdk. Read references/SENTRY.md to turn an issue link into API paths.",
15474
- section: SECTION13,
15475
- referenceFile: { name: "SENTRY.md", content: REFERENCE13 }
15520
+ section: SECTION14,
15521
+ referenceFile: { name: "SENTRY.md", content: REFERENCE14 }
15476
15522
  };
15477
15523
 
15478
15524
  // ../shared/src/memory.ts
@@ -15480,11 +15526,11 @@ var HISTORY_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/history`;
15480
15526
  var HISTORY_INDEX_FILENAME = "INDEX.md";
15481
15527
 
15482
15528
  // ../shared/src/default-skills/replicas-agent/abilities/session-history.ts
15483
- var SECTION14 = `### Session history
15529
+ var SECTION15 = `### Session history
15484
15530
  Search past agent sessions in this organization when the user refers to prior work, a date, a teammate's session, or "last time".
15485
15531
 
15486
15532
  **Reference:** \`references/SESSION-HISTORY.md\``;
15487
- var REFERENCE14 = `# Session history
15533
+ var REFERENCE15 = `# Session history
15488
15534
 
15489
15535
  Past sessions are installed under \`${HISTORY_ROOT}\`:
15490
15536
 
@@ -15513,8 +15559,8 @@ var SESSION_HISTORY_ABILITY = {
15513
15559
  label: "Session history",
15514
15560
  description: "Search past agent sessions in this organization.",
15515
15561
  bullet: "",
15516
- section: SECTION14,
15517
- referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE14 },
15562
+ section: SECTION15,
15563
+ referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE15 },
15518
15564
  locked: true
15519
15565
  };
15520
15566
 
@@ -15525,7 +15571,7 @@ var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would
15525
15571
  var 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.';
15526
15572
 
15527
15573
  // ../shared/src/default-skills/replicas-agent/abilities/slack.ts
15528
- var SECTION15 = `### Slack
15574
+ var SECTION16 = `### Slack
15529
15575
  Send messages, read threads, search conversations, and transfer files through the workspace-scoped TypeScript SDK.
15530
15576
 
15531
15577
  **Reference:** \`references/SLACK.md\`
@@ -15535,7 +15581,7 @@ Use this when:
15535
15581
  - You need to read or search Slack conversations
15536
15582
  - You need to download a file attached to a Slack message
15537
15583
  - You encounter a Slack message link and need its full thread`;
15538
- var REFERENCE15 = `# Slack Integration
15584
+ var REFERENCE16 = `# Slack Integration
15539
15585
 
15540
15586
  Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
15541
15587
 
@@ -15614,8 +15660,8 @@ var SLACK_ABILITY = {
15614
15660
  label: "Slack",
15615
15661
  description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
15616
15662
  bullet: "- Interacting with Slack (listing channels, sending messages, reading threads, or searching): use replicas.slack.call from @replicas/sdk. Read references/SLACK.md; no Slack MCP server or provider token in the VM is required.",
15617
- section: SECTION15,
15618
- referenceFile: { name: "SLACK.md", content: REFERENCE15 }
15663
+ section: SECTION16,
15664
+ referenceFile: { name: "SLACK.md", content: REFERENCE16 }
15619
15665
  };
15620
15666
 
15621
15667
  // ../shared/src/visuals.ts
@@ -15715,7 +15761,7 @@ var BOOTSTRAP_SCRIPT = `
15715
15761
  `.trim().replace(/\s*\n\s*/g, " ");
15716
15762
 
15717
15763
  // ../shared/src/default-skills/replicas-agent/abilities/visuals.ts
15718
- var SECTION16 = `### Visuals
15764
+ var SECTION17 = `### Visuals
15719
15765
  Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas chat reply, in the chat's own font and colors.
15720
15766
 
15721
15767
  **Reference:** \`references/VISUALS.md\`
@@ -15723,7 +15769,7 @@ Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas c
15723
15769
  Use this when:
15724
15770
  - Seeing it would explain faster than reading it: numbers over time, a flow or architecture, a before and after, options side by side
15725
15771
  - The user asks to see, chart, plot, compare, or visualize something`;
15726
- var REFERENCE16 = `# Visuals
15772
+ var REFERENCE17 = `# Visuals
15727
15773
 
15728
15774
  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.
15729
15775
 
@@ -15761,8 +15807,8 @@ var VISUALS_ABILITY = {
15761
15807
  description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
15762
15808
  // The visuals_instructions system prompt block is its trigger.
15763
15809
  bullet: "",
15764
- section: SECTION16,
15765
- referenceFile: { name: "VISUALS.md", content: REFERENCE16 }
15810
+ section: SECTION17,
15811
+ referenceFile: { name: "VISUALS.md", content: REFERENCE17 }
15766
15812
  };
15767
15813
 
15768
15814
  // ../shared/src/default-skills/replicas-agent/registry.ts
@@ -15777,6 +15823,7 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
15777
15823
  gpu: GPU_ABILITY,
15778
15824
  linear: LINEAR_ABILITY,
15779
15825
  local_computer: LOCAL_COMPUTER_ABILITY,
15826
+ macos: MACOS_ABILITY,
15780
15827
  media: MEDIA_ABILITY,
15781
15828
  plugins: PLUGINS_ABILITY,
15782
15829
  previews: PREVIEWS_ABILITY,
@@ -21068,7 +21115,7 @@ var VOICE_WAVEFORM = {
21068
21115
  };
21069
21116
 
21070
21117
  // ../shared/src/e2b.ts
21071
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-17-v23";
21118
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-18-v1";
21072
21119
 
21073
21120
  // ../shared/src/e2b-retry.ts
21074
21121
  var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
@@ -21816,7 +21863,7 @@ var encoder3 = new TextEncoder();
21816
21863
 
21817
21864
  // ../shared/src/routes/billing.ts
21818
21865
  import { z as z34 } from "zod";
21819
- var SOURCE_LIMIT_SOURCES = ["limrun", "modal"];
21866
+ var SOURCE_LIMIT_SOURCES = ["limrun", "modal", "revyl"];
21820
21867
  var usageLimitCentsSchema = z34.number().int().min(100).max(1e8);
21821
21868
  var sourceLimitsCentsSchema = z34.partialRecord(z34.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
21822
21869
 
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-QWRELB5I.js";
7
+ } from "./chunk-7QLCCWO2.js";
8
8
  import {
9
9
  isRecord as isRecord2
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -21,7 +21,7 @@ import {
21
21
  provisionedDeviceSchema,
22
22
  readReplicasRuntimeEnv,
23
23
  serializePosixEnvFile
24
- } from "./chunk-JBRMCXE4.js";
24
+ } from "./chunk-F2SSS7T5.js";
25
25
 
26
26
  // src/runtime-env-loader.ts
27
27
  import { readFileSync } from "fs";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  AspClient
6
- } from "./chunk-EJKGU756.js";
6
+ } from "./chunk-CCUGLHDK.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -15,7 +15,7 @@ import {
15
15
  isRecord,
16
16
  readOllamaAuthEnv,
17
17
  readOpenAICompatibleAuthEnv
18
- } from "./chunk-JBRMCXE4.js";
18
+ } from "./chunk-F2SSS7T5.js";
19
19
 
20
20
  // src/managers/codex-asp/notification-dispatch.ts
21
21
  var TURN_STARTED_METHOD = "turn/started";
@@ -5,7 +5,7 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-P6JEOJYI.js";
8
+ } from "./chunk-KLGUYWRC.js";
9
9
  import {
10
10
  COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES,
11
11
  COMMAND_PROTECTION_REPO_GIT_ARGS,
@@ -18,7 +18,7 @@ import {
18
18
  parseCommandProtectionRequest,
19
19
  toCommandProtectionRepoState,
20
20
  withE2BRetry
21
- } from "./chunk-JBRMCXE4.js";
21
+ } from "./chunk-F2SSS7T5.js";
22
22
 
23
23
  // src/services/command-protection-service.ts
24
24
  import { readFile, stat } from "fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-JBRMCXE4.js";
8
+ } from "./chunk-F2SSS7T5.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -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-HCW3KUXC.js";
7
- import "./chunk-P6JEOJYI.js";
8
- import "./chunk-QWRELB5I.js";
6
+ } from "./chunk-SNUE4J6Z.js";
7
+ import "./chunk-KLGUYWRC.js";
8
+ import "./chunk-7QLCCWO2.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-JBRMCXE4.js";
12
+ import "./chunk-F2SSS7T5.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -14,12 +14,12 @@ import {
14
14
  recoverCompletedTurn,
15
15
  spawnMuseMsp,
16
16
  startMuseSession
17
- } from "./chunk-3PPHFQTX.js";
17
+ } from "./chunk-NV4AIJEN.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-EJKGU756.js";
22
- import "./chunk-QWRELB5I.js";
21
+ } from "./chunk-CCUGLHDK.js";
22
+ import "./chunk-7QLCCWO2.js";
23
23
  import {
24
24
  AGENT,
25
25
  OPENCODE_GO_PROVIDER,
@@ -29,7 +29,7 @@ import {
29
29
  headlessAgentUsagePath,
30
30
  isRecord,
31
31
  withTimeout
32
- } from "./chunk-JBRMCXE4.js";
32
+ } from "./chunk-F2SSS7T5.js";
33
33
  import "./chunk-VEQXQN22.js";
34
34
 
35
35
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  evaluateCommandProtection,
92
92
  extractToolCommand,
93
93
  reportCommandProtectionBlock
94
- } from "./chunk-HCW3KUXC.js";
94
+ } from "./chunk-SNUE4J6Z.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -129,10 +129,10 @@ import {
129
129
  spawnMuseMsp,
130
130
  startMuseSession,
131
131
  uuidV7
132
- } from "./chunk-3PPHFQTX.js";
132
+ } from "./chunk-NV4AIJEN.js";
133
133
  import {
134
134
  publishedPullRequestUrls
135
- } from "./chunk-M3PEV2C2.js";
135
+ } from "./chunk-TEJQLQLD.js";
136
136
  import {
137
137
  ACCOUNT_RATE_LIMITS_READ_METHOD,
138
138
  AsyncLock,
@@ -212,7 +212,7 @@ import {
212
212
  transcriptSecrets,
213
213
  upsertCredentialFileLines,
214
214
  writeSecureCredentialFile
215
- } from "./chunk-33YPJUHY.js";
215
+ } from "./chunk-AOR5KXL3.js";
216
216
  import {
217
217
  ENGINE_ENV,
218
218
  UNQUOTED_PATHS_CONFIG,
@@ -223,16 +223,16 @@ import {
223
223
  resolveDiffBase,
224
224
  setAgentCredentialSnapshot,
225
225
  setLinearSessionId
226
- } from "./chunk-P6JEOJYI.js";
226
+ } from "./chunk-KLGUYWRC.js";
227
227
  import {
228
228
  buildCodexAgentEnv,
229
229
  getCodexModelProvider
230
- } from "./chunk-EJKGU756.js";
230
+ } from "./chunk-CCUGLHDK.js";
231
231
  import {
232
232
  SUBPROCESS_MAX_BUFFER,
233
233
  execAsync,
234
234
  execFileAsync
235
- } from "./chunk-QWRELB5I.js";
235
+ } from "./chunk-7QLCCWO2.js";
236
236
  import {
237
237
  isRecord as isRecord2
238
238
  } from "./chunk-UZSNFLDQ.js";
@@ -529,7 +529,7 @@ import {
529
529
  workspaceTokenRequestSchema,
530
530
  workspaceTokenResponseSchema,
531
531
  wrapInTag
532
- } from "./chunk-JBRMCXE4.js";
532
+ } from "./chunk-F2SSS7T5.js";
533
533
  import {
534
534
  __commonJS,
535
535
  __export,
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-M3PEV2C2.js";
6
+ } from "./chunk-TEJQLQLD.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-JBRMCXE4.js";
12
+ } from "./chunk-F2SSS7T5.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -11,7 +11,7 @@ import {
11
11
  spawnSubagentRequestSchema,
12
12
  subagentResponseSchema,
13
13
  waitSubagentRequestSchema
14
- } from "./chunk-JBRMCXE4.js";
14
+ } from "./chunk-F2SSS7T5.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1624",
3
+ "version": "0.1.1625",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",