replicas-engine 0.1.1622 → 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-JKML4JSY.js";
12
- import "./chunk-LYLGTT5A.js";
13
- import "./chunk-R2P2UU6T.js";
14
- import "./chunk-NNBW4NDI.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-5GOBYYQ3.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-5GOBYYQ3.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-LYLGTT5A.js";
15
+ } from "./chunk-KLGUYWRC.js";
16
16
  import {
17
17
  AppServerProcess,
18
18
  buildCodexAgentEnv
19
- } from "./chunk-R2P2UU6T.js";
19
+ } from "./chunk-CCUGLHDK.js";
20
20
  import {
21
21
  SUBPROCESS_MAX_BUFFER,
22
22
  execFileAsync
23
- } from "./chunk-NNBW4NDI.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-5GOBYYQ3.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-RVECQCMW.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-RVECQCMW.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-NNBW4NDI.js";
6
+ } from "./chunk-7QLCCWO2.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-5GOBYYQ3.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.1622";
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";
@@ -13080,6 +13080,7 @@ var REPLICAS_MCP_TOOLS = {
13080
13080
  updateTicket: "update_ticket",
13081
13081
  replyOnTicket: "reply_on_ticket",
13082
13082
  sendToChat: "send_to_chat",
13083
+ setStatus: "set_status",
13083
13084
  getLinearRouting: "get_linear_routing",
13084
13085
  setLinearRouting: "set_linear_routing",
13085
13086
  clearLinearRouting: "clear_linear_routing",
@@ -14059,11 +14060,12 @@ var GITLAB_ABILITY = {
14059
14060
 
14060
14061
  // ../shared/src/routes/compute.ts
14061
14062
  import { z as z26 } from "zod";
14062
- var COMPUTE_SANDBOX_KINDS = ["gpu"];
14063
+ var COMPUTE_SANDBOX_KINDS = ["gpu", "macos"];
14063
14064
  var GPU_TYPES = ["T4", "L4", "A10G", "L40S", "A100", "A100-80GB", "H100", "H200", "B200"];
14064
14065
  var DEFAULT_GPU_TYPE = "L4";
14065
14066
  var DEFAULT_GPU_IMAGE = "pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime";
14066
- var COMPUTE_SANDBOX_WORKDIR = "/workspace";
14067
+ var COMPUTE_SANDBOX_WORKDIRS = { gpu: "/workspace", macos: "/Users/computer/workspace" };
14068
+ var MACOS_SANDBOX_MAX_TIMEOUT_MINUTES = 120;
14067
14069
  var COMPUTE_SANDBOX_LIMITS = {
14068
14070
  maxActivePerWorkspace: 3,
14069
14071
  maxActivePerOrganization: 10,
@@ -14099,6 +14101,7 @@ var computeTransferPathSchema = z26.object({
14099
14101
  });
14100
14102
 
14101
14103
  // ../shared/src/default-skills/replicas-agent/abilities/gpu.ts
14104
+ var COMPUTE_SANDBOX_WORKDIR = COMPUTE_SANDBOX_WORKDIRS.gpu;
14102
14105
  var SECTION6 = `### GPU sandboxes
14103
14106
  Run GPU workloads (training, inference, CUDA builds, rendering) on cloud GPU sandboxes with \`replicas gpu\`. The workspace itself has no GPU.
14104
14107
 
@@ -14374,8 +14377,52 @@ var LOCAL_COMPUTER_ABILITY = {
14374
14377
  referenceFile: { name: "LOCAL-COMPUTER.md", content: REFERENCE8 }
14375
14378
  };
14376
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
+
14377
14424
  // ../shared/src/default-skills/replicas-agent/abilities/media.ts
14378
- var SECTION9 = `### Media
14425
+ var SECTION10 = `### Media
14379
14426
  Deliver screenshots, GIFs, screen recordings, generated diagrams, and audio clips to the Replicas dashboard and, when applicable, inline in the destination workflow.
14380
14427
 
14381
14428
  **Reference:** \`references/MEDIA.md\`
@@ -14386,7 +14433,7 @@ Use this when:
14386
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
14387
14434
  - You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
14388
14435
  - You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
14389
- var REFERENCE9 = `# Media (Screenshots, GIFs, Recordings, Audio)
14436
+ var REFERENCE10 = `# Media (Screenshots, GIFs, Recordings, Audio)
14390
14437
 
14391
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\`.
14392
14439
 
@@ -14753,12 +14800,12 @@ var MEDIA_ABILITY = {
14753
14800
  label: "Media",
14754
14801
  description: "Deliver media to Replicas and destination workflows with inline uploads.",
14755
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",
14756
- section: SECTION9,
14757
- referenceFile: { name: "MEDIA.md", content: REFERENCE9 }
14803
+ section: SECTION10,
14804
+ referenceFile: { name: "MEDIA.md", content: REFERENCE10 }
14758
14805
  };
14759
14806
 
14760
14807
  // ../shared/src/default-skills/replicas-agent/abilities/previews.ts
14761
- var SECTION10 = `### Previews
14808
+ var SECTION11 = `### Previews
14762
14809
  Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
14763
14810
 
14764
14811
  **Reference:** \`references/PREVIEWS.md\`
@@ -14768,7 +14815,7 @@ Use this when:
14768
14815
  - The task involves UI work that benefits from human review
14769
14816
  - You are verifying frontend/backend integrations visually
14770
14817
  - You need a URL for OAuth redirects, GitHub App callbacks, or webhooks (never the sandbox's \`*.e2b.app\` address)`;
14771
- var REFERENCE10 = `# Preview URLs
14818
+ var REFERENCE11 = `# Preview URLs
14772
14819
 
14773
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.
14774
14821
 
@@ -14857,12 +14904,12 @@ var PREVIEWS_ABILITY = {
14857
14904
  label: "Previews",
14858
14905
  description: "Expose locally running services on public preview URLs for humans.",
14859
14906
  bullet: "- Creating preview URLs for locally running services, including OAuth redirect, app callback, and webhook URLs (never a raw `*.e2b.app` address)",
14860
- section: SECTION10,
14861
- referenceFile: { name: "PREVIEWS.md", content: REFERENCE10 }
14907
+ section: SECTION11,
14908
+ referenceFile: { name: "PREVIEWS.md", content: REFERENCE11 }
14862
14909
  };
14863
14910
 
14864
14911
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
14865
- var SECTION11 = `### Plugins
14912
+ var SECTION12 = `### Plugins
14866
14913
  Discover and execute installed marketplace tools through the workspace-scoped TypeScript SDK.
14867
14914
 
14868
14915
  **Reference:** \`references/PLUGINS.md\`
@@ -14881,7 +14928,7 @@ Use this when:
14881
14928
  - The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
14882
14929
  - The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
14883
14930
  - The user asks to analyze text with Pangram`;
14884
- var REFERENCE11 = `# Plugins
14931
+ var REFERENCE12 = `# Plugins
14885
14932
 
14886
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.
14887
14934
 
@@ -15087,12 +15134,12 @@ var PLUGINS_ABILITY = {
15087
15134
  label: "Plugins",
15088
15135
  description: "Use installed marketplace tools through @replicas/sdk.",
15089
15136
  bullet: "- Interacting with installed marketplace plugins through TypeScript",
15090
- section: SECTION11,
15091
- referenceFile: { name: "PLUGINS.md", content: REFERENCE11 }
15137
+ section: SECTION12,
15138
+ referenceFile: { name: "PLUGINS.md", content: REFERENCE12 }
15092
15139
  };
15093
15140
 
15094
15141
  // ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
15095
- var SECTION12 = `### Replicas (in-workspace CLI)
15142
+ var SECTION13 = `### Replicas (in-workspace CLI)
15096
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.
15097
15144
 
15098
15145
  **Reference:** \`references/REPLICAS.md\`
@@ -15106,7 +15153,7 @@ Use this when:
15106
15153
  - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
15107
15154
  - You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake
15108
15155
  - The user asks you to change how their Replicas app looks (theme, colors, accent) \u2014 use \`replicas theme set\` (see *Themes*)`;
15109
- var REFERENCE12 = `# Replicas (in-workspace CLI)
15156
+ var REFERENCE13 = `# Replicas (in-workspace CLI)
15110
15157
 
15111
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.
15112
15159
 
@@ -15424,13 +15471,13 @@ var REPLICAS_ABILITY = {
15424
15471
  label: "Replicas",
15425
15472
  description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
15426
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.",
15427
- section: SECTION12,
15428
- referenceFile: { name: "REPLICAS.md", content: REFERENCE12 },
15474
+ section: SECTION13,
15475
+ referenceFile: { name: "REPLICAS.md", content: REFERENCE13 },
15429
15476
  locked: true
15430
15477
  };
15431
15478
 
15432
15479
  // ../shared/src/default-skills/replicas-agent/abilities/sentry.ts
15433
- var SECTION13 = `### Sentry
15480
+ var SECTION14 = `### Sentry
15434
15481
  Read issues and project data through the workspace-scoped TypeScript SDK.
15435
15482
 
15436
15483
  **Reference:** \`references/SENTRY.md\`
@@ -15439,7 +15486,7 @@ Use this when:
15439
15486
  - A user shares a Sentry link (sentry.io or a self-hosted Sentry server)
15440
15487
  - You need to inspect Sentry projects or issues
15441
15488
  - A user asks for error-monitoring context outside a webhook-triggered task`;
15442
- var REFERENCE13 = `# Sentry Integration
15489
+ var REFERENCE14 = `# Sentry Integration
15443
15490
 
15444
15491
  Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
15445
15492
 
@@ -15470,8 +15517,8 @@ var SENTRY_ABILITY = {
15470
15517
  label: "Sentry",
15471
15518
  description: "Read Sentry projects and issues through @replicas/sdk.",
15472
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.",
15473
- section: SECTION13,
15474
- referenceFile: { name: "SENTRY.md", content: REFERENCE13 }
15520
+ section: SECTION14,
15521
+ referenceFile: { name: "SENTRY.md", content: REFERENCE14 }
15475
15522
  };
15476
15523
 
15477
15524
  // ../shared/src/memory.ts
@@ -15479,11 +15526,11 @@ var HISTORY_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/history`;
15479
15526
  var HISTORY_INDEX_FILENAME = "INDEX.md";
15480
15527
 
15481
15528
  // ../shared/src/default-skills/replicas-agent/abilities/session-history.ts
15482
- var SECTION14 = `### Session history
15529
+ var SECTION15 = `### Session history
15483
15530
  Search past agent sessions in this organization when the user refers to prior work, a date, a teammate's session, or "last time".
15484
15531
 
15485
15532
  **Reference:** \`references/SESSION-HISTORY.md\``;
15486
- var REFERENCE14 = `# Session history
15533
+ var REFERENCE15 = `# Session history
15487
15534
 
15488
15535
  Past sessions are installed under \`${HISTORY_ROOT}\`:
15489
15536
 
@@ -15512,8 +15559,8 @@ var SESSION_HISTORY_ABILITY = {
15512
15559
  label: "Session history",
15513
15560
  description: "Search past agent sessions in this organization.",
15514
15561
  bullet: "",
15515
- section: SECTION14,
15516
- referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE14 },
15562
+ section: SECTION15,
15563
+ referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE15 },
15517
15564
  locked: true
15518
15565
  };
15519
15566
 
@@ -15524,7 +15571,7 @@ var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would
15524
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.';
15525
15572
 
15526
15573
  // ../shared/src/default-skills/replicas-agent/abilities/slack.ts
15527
- var SECTION15 = `### Slack
15574
+ var SECTION16 = `### Slack
15528
15575
  Send messages, read threads, search conversations, and transfer files through the workspace-scoped TypeScript SDK.
15529
15576
 
15530
15577
  **Reference:** \`references/SLACK.md\`
@@ -15534,7 +15581,7 @@ Use this when:
15534
15581
  - You need to read or search Slack conversations
15535
15582
  - You need to download a file attached to a Slack message
15536
15583
  - You encounter a Slack message link and need its full thread`;
15537
- var REFERENCE15 = `# Slack Integration
15584
+ var REFERENCE16 = `# Slack Integration
15538
15585
 
15539
15586
  Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
15540
15587
 
@@ -15613,8 +15660,8 @@ var SLACK_ABILITY = {
15613
15660
  label: "Slack",
15614
15661
  description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
15615
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.",
15616
- section: SECTION15,
15617
- referenceFile: { name: "SLACK.md", content: REFERENCE15 }
15663
+ section: SECTION16,
15664
+ referenceFile: { name: "SLACK.md", content: REFERENCE16 }
15618
15665
  };
15619
15666
 
15620
15667
  // ../shared/src/visuals.ts
@@ -15714,7 +15761,7 @@ var BOOTSTRAP_SCRIPT = `
15714
15761
  `.trim().replace(/\s*\n\s*/g, " ");
15715
15762
 
15716
15763
  // ../shared/src/default-skills/replicas-agent/abilities/visuals.ts
15717
- var SECTION16 = `### Visuals
15764
+ var SECTION17 = `### Visuals
15718
15765
  Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas chat reply, in the chat's own font and colors.
15719
15766
 
15720
15767
  **Reference:** \`references/VISUALS.md\`
@@ -15722,7 +15769,7 @@ Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas c
15722
15769
  Use this when:
15723
15770
  - Seeing it would explain faster than reading it: numbers over time, a flow or architecture, a before and after, options side by side
15724
15771
  - The user asks to see, chart, plot, compare, or visualize something`;
15725
- var REFERENCE16 = `# Visuals
15772
+ var REFERENCE17 = `# Visuals
15726
15773
 
15727
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.
15728
15775
 
@@ -15760,8 +15807,8 @@ var VISUALS_ABILITY = {
15760
15807
  description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
15761
15808
  // The visuals_instructions system prompt block is its trigger.
15762
15809
  bullet: "",
15763
- section: SECTION16,
15764
- referenceFile: { name: "VISUALS.md", content: REFERENCE16 }
15810
+ section: SECTION17,
15811
+ referenceFile: { name: "VISUALS.md", content: REFERENCE17 }
15765
15812
  };
15766
15813
 
15767
15814
  // ../shared/src/default-skills/replicas-agent/registry.ts
@@ -15776,6 +15823,7 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
15776
15823
  gpu: GPU_ABILITY,
15777
15824
  linear: LINEAR_ABILITY,
15778
15825
  local_computer: LOCAL_COMPUTER_ABILITY,
15826
+ macos: MACOS_ABILITY,
15779
15827
  media: MEDIA_ABILITY,
15780
15828
  plugins: PLUGINS_ABILITY,
15781
15829
  previews: PREVIEWS_ABILITY,
@@ -15989,7 +16037,7 @@ var BOARD_RULES = `- The board in the Ships pane beside this chat is the user's
15989
16037
  - A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or ask the user only if you can't decide.
15990
16038
  - When a pull request should merge once it's approved and CI passes, call \`${REPLICAS_MCP_TOOLS.mergeWhenReady}\`: Replicas merges it and sends \`merged\`, or \`needs_attention\` saying why it can't. Never watch CI or pull requests with \`gh\`, sleep loops or wait scripts, and merge one yourself only when the user wants it merged right away.
15991
16039
  - On every ship event and every answer the user gives on the board, act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board if its order, notes or overview changed. The user sees nothing you write in these turns, unless a message they typed is still unanswered because it arrived during the turn: then your final reply answers it, as in any turn they start. Otherwise the only way to reach them is \`${REPLICAS_MCP_TOOLS.sendToChat}\`. Call it only for what they would want right now: a deliverable they asked for, with its media, links or answer (the finished video, the requested numbers); a failure or blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged", "deploying", "it's on the board" or "I asked the ship to\u2026": the board and the chat's own rows show those. End the turn with a one-line note of what you did; only the activity log shows it.
15992
- - The chat is like texting an assistant: the user sees only your final reply to each message they type, plus what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, never your tool calls or earlier text. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
16040
+ - The chat is like texting an assistant. In a turn the user typed, they see the text you write between tool calls as it streams, your final reply, what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and your \`${REPLICAS_MCP_TOOLS.setStatus}\` line, never your tool calls. Unless you can answer right away, open with one line on what you'll do first and roughly how long it takes. Then call \`${REPLICAS_MCP_TOOLS.setStatus}\` with a few words on your current step, such as "Reading the billing webhook" or "Checking npm for outdated packages", and call it again each time you move to a new step. Before your final reply, write only what they'd want to know now: a finding that changes the answer, a ship you started, or a decision you need. Never narrate tool calls or say you're still working. When they message you mid-turn, reply to it in one line before anything else, then fold it into your work. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
15993
16041
  `;
15994
16042
  var MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
15995
16043
  function splitMothershipInstructions(customInstructions) {
@@ -17496,6 +17544,7 @@ var REPLICAS_API_STEPS = {
17496
17544
  [REPLICAS_MCP_TOOLS.updateTicket]: { icon: "file-pen", live: "Updating ticket", done: "Updated ticket" },
17497
17545
  [REPLICAS_MCP_TOOLS.replyOnTicket]: { icon: "file-pen", live: "Replying on ticket", done: "Replied on ticket" },
17498
17546
  [REPLICAS_MCP_TOOLS.sendToChat]: { icon: "message", live: "Sending to chat", done: "Sent to chat" },
17547
+ [REPLICAS_MCP_TOOLS.setStatus]: { icon: "message", live: "Setting status", done: "Set status" },
17499
17548
  [REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
17500
17549
  };
17501
17550
  function replicasToolName(message2) {
@@ -17549,7 +17598,7 @@ function describeToolCall(message2, base) {
17549
17598
  const command = replicasTool === REPLICAS_MCP_TOOLS.runCommand ? inputString(input, "command") : void 0;
17550
17599
  const name = inputString(input, "name") ?? inputString(replicaFields, "name");
17551
17600
  const workspaceId = inputString(input, "id") ?? inputString(replicaFields, "id");
17552
- const label = command ? commandLabel(command) : inputString(input, "title") ?? (replicasTool === REPLICAS_MCP_TOOLS.createAutomation ? name : void 0);
17601
+ const label = command ? commandLabel(command) : replicasTool === REPLICAS_MCP_TOOLS.setStatus ? inputString(input, "status") : inputString(input, "title") ?? (replicasTool === REPLICAS_MCP_TOOLS.createAutomation ? name : void 0);
17553
17602
  return {
17554
17603
  ...base,
17555
17604
  key,
@@ -21066,7 +21115,7 @@ var VOICE_WAVEFORM = {
21066
21115
  };
21067
21116
 
21068
21117
  // ../shared/src/e2b.ts
21069
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-17-v20";
21118
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-18-v1";
21070
21119
 
21071
21120
  // ../shared/src/e2b-retry.ts
21072
21121
  var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
@@ -21701,7 +21750,11 @@ var harnessEventBodySchema = z32.discriminatedUnion("type", [
21701
21750
  /** Saved before its tool calls run. */
21702
21751
  z32.object({ type: z32.literal("assistant_message"), payload: z32.looseObject({ message: assistantMessageSchema }) }),
21703
21752
  z32.object({ type: z32.literal("tool_result"), payload: z32.looseObject({ message: toolResultMessageSchema }) }),
21704
- z32.object({ type: z32.literal("status"), payload: z32.looseObject({ status: z32.enum(HARNESS_THREAD_STATUSES) }) }),
21753
+ z32.object({
21754
+ type: z32.literal("status"),
21755
+ /** `cost`: what calls since the last status that saved no step of their own cost at API prices, in USD. */
21756
+ payload: z32.looseObject({ status: z32.enum(HARNESS_THREAD_STATUSES), cost: z32.number().optional() })
21757
+ }),
21705
21758
  z32.object({ type: z32.literal("error"), payload: z32.looseObject({ message: z32.string() }) }),
21706
21759
  /** The model's context is this summary followed by the events from `firstKeptSeq` on; nothing before it is deleted. */
21707
21760
  z32.object({
@@ -21711,7 +21764,9 @@ var harnessEventBodySchema = z32.discriminatedUnion("type", [
21711
21764
  firstKeptSeq: z32.number(),
21712
21765
  tokensBefore: z32.number(),
21713
21766
  readFiles: z32.array(z32.string()),
21714
- modifiedFiles: z32.array(z32.string())
21767
+ modifiedFiles: z32.array(z32.string()),
21768
+ /** The summary call's cost at API prices, in USD; absent on compactions saved before it was recorded. */
21769
+ cost: z32.number().optional()
21715
21770
  })
21716
21771
  })
21717
21772
  ]);
@@ -21808,7 +21863,7 @@ var encoder3 = new TextEncoder();
21808
21863
 
21809
21864
  // ../shared/src/routes/billing.ts
21810
21865
  import { z as z34 } from "zod";
21811
- var SOURCE_LIMIT_SOURCES = ["limrun", "modal"];
21866
+ var SOURCE_LIMIT_SOURCES = ["limrun", "modal", "revyl"];
21812
21867
  var usageLimitCentsSchema = z34.number().int().min(100).max(1e8);
21813
21868
  var sourceLimitsCentsSchema = z34.partialRecord(z34.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
21814
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-NNBW4NDI.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-5GOBYYQ3.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-R2P2UU6T.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-5GOBYYQ3.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-LYLGTT5A.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-5GOBYYQ3.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-5GOBYYQ3.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-IBPVZ5QG.js";
7
- import "./chunk-LYLGTT5A.js";
8
- import "./chunk-NNBW4NDI.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-5GOBYYQ3.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-AJ2P3ZD7.js";
17
+ } from "./chunk-NV4AIJEN.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-R2P2UU6T.js";
22
- import "./chunk-NNBW4NDI.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-5GOBYYQ3.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-IBPVZ5QG.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-AJ2P3ZD7.js";
132
+ } from "./chunk-NV4AIJEN.js";
133
133
  import {
134
134
  publishedPullRequestUrls
135
- } from "./chunk-H4SPDB7T.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-JKML4JSY.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-LYLGTT5A.js";
226
+ } from "./chunk-KLGUYWRC.js";
227
227
  import {
228
228
  buildCodexAgentEnv,
229
229
  getCodexModelProvider
230
- } from "./chunk-R2P2UU6T.js";
230
+ } from "./chunk-CCUGLHDK.js";
231
231
  import {
232
232
  SUBPROCESS_MAX_BUFFER,
233
233
  execAsync,
234
234
  execFileAsync
235
- } from "./chunk-NNBW4NDI.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-5GOBYYQ3.js";
532
+ } from "./chunk-F2SSS7T5.js";
533
533
  import {
534
534
  __commonJS,
535
535
  __export,
@@ -11122,7 +11122,7 @@ import { z as z4 } from "zod";
11122
11122
 
11123
11123
  // ../shared/src/persisted-query-hashes.ts
11124
11124
  var PERSISTED_QUERY_HASHES = {
11125
- workspaceChats: "d4421c1c"
11125
+ workspaceChats: "384b2db2"
11126
11126
  };
11127
11127
 
11128
11128
  // ../shared/src/workspace-chat.ts
@@ -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-H4SPDB7T.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-5GOBYYQ3.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-5GOBYYQ3.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.1622",
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",