replicas-engine 0.1.1151 → 0.1.1153

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
  listRunningCodexModels,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-3HG6K4DE.js";
12
- import "./chunk-S4UYBJQG.js";
13
- import "./chunk-GZNXGZAR.js";
14
- import "./chunk-FRA3L55N.js";
11
+ } from "./chunk-SFCWY33O.js";
12
+ import "./chunk-DBNLYOQV.js";
13
+ import "./chunk-NO6WP327.js";
14
+ import "./chunk-OH7MC4J7.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-KRDGM5WO.js";
16
+ import "./chunk-WBMTCMI4.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-KRDGM5WO.js";
8
+ } from "./chunk-WBMTCMI4.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-FRA3L55N.js";
7
+ } from "./chunk-OH7MC4J7.js";
8
8
  import {
9
9
  isRecord as isRecord2
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -18,7 +18,7 @@ import {
18
18
  isValidAgentProvider,
19
19
  parsePosixEnvFile,
20
20
  readReplicasRuntimeEnv
21
- } from "./chunk-KRDGM5WO.js";
21
+ } from "./chunk-WBMTCMI4.js";
22
22
 
23
23
  // src/runtime-env-loader.ts
24
24
  import { readFileSync } from "fs";
@@ -5,14 +5,14 @@ import {
5
5
  getOriginDefaultBranch,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-S4UYBJQG.js";
8
+ } from "./chunk-DBNLYOQV.js";
9
9
  import {
10
10
  extractCommandProtectionCommandText,
11
11
  findCommandProtectionGitLookups,
12
12
  findGitCommitSignals,
13
13
  findPrMergeSignals,
14
14
  parseCommandProtectionRequest
15
- } from "./chunk-KRDGM5WO.js";
15
+ } from "./chunk-WBMTCMI4.js";
16
16
 
17
17
  // src/services/command-protection-service.ts
18
18
  import { readFile, stat } from "fs/promises";
@@ -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-GZNXGZAR.js";
6
+ } from "./chunk-NO6WP327.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -11,7 +11,7 @@ import {
11
11
  codexReasoningEffortForThinkingLevel,
12
12
  isRecord,
13
13
  readOllamaAuthEnv
14
- } from "./chunk-KRDGM5WO.js";
14
+ } from "./chunk-WBMTCMI4.js";
15
15
 
16
16
  // src/managers/codex-asp/notification-dispatch.ts
17
17
  var TURN_STARTED_METHOD = "turn/started";
@@ -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-FRA3L55N.js";
6
+ } from "./chunk-OH7MC4J7.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-KRDGM5WO.js";
9
+ } from "./chunk-WBMTCMI4.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.1151";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1153";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -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-KRDGM5WO.js";
6
+ } from "./chunk-WBMTCMI4.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -10,15 +10,15 @@ import {
10
10
  resolveDiffBase,
11
11
  runGitCommand,
12
12
  setAgentCredentialSnapshot
13
- } from "./chunk-S4UYBJQG.js";
13
+ } from "./chunk-DBNLYOQV.js";
14
14
  import {
15
15
  AppServerProcess,
16
16
  buildCodexAgentEnv
17
- } from "./chunk-GZNXGZAR.js";
17
+ } from "./chunk-NO6WP327.js";
18
18
  import {
19
19
  SUBPROCESS_MAX_BUFFER,
20
20
  execFileAsync
21
- } from "./chunk-FRA3L55N.js";
21
+ } from "./chunk-OH7MC4J7.js";
22
22
  import {
23
23
  isRecord
24
24
  } from "./chunk-UZSNFLDQ.js";
@@ -55,7 +55,7 @@ import {
55
55
  resolveOpenAICompatibleModelsUrl,
56
56
  splitMothershipInstructions,
57
57
  withTimeout
58
- } from "./chunk-KRDGM5WO.js";
58
+ } from "./chunk-WBMTCMI4.js";
59
59
 
60
60
  // src/managers/codex-token-manager.ts
61
61
  import { promises as fs } from "fs";
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
291
291
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
292
292
  await this.applyCredentialsResponse(data);
293
293
  setAgentCredentialSnapshot("codex", data);
294
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NBIRVIBJ.js");
294
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NSXAIW5R.js");
295
295
  await restartCodexAspHostIfRunning2();
296
296
  });
297
297
  await this.start(true);
@@ -312,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
312
312
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
313
313
  await this.applyCredentialsResponse(data);
314
314
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
315
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NBIRVIBJ.js");
315
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NSXAIW5R.js");
316
316
  await restartCodexAspHostIfRunning2();
317
317
  }
318
318
  setAgentCredentialSnapshot("codex", data);
@@ -2923,7 +2923,7 @@ function parseMcpToolName(name) {
2923
2923
  }
2924
2924
 
2925
2925
  // ../shared/src/mothership-events.ts
2926
- import { z as z16 } from "zod";
2926
+ import { z as z17 } from "zod";
2927
2927
 
2928
2928
  // ../shared/src/replicas-mcp.ts
2929
2929
  import { z as z14 } from "zod";
@@ -3983,8 +3983,104 @@ var GITLAB_ABILITY = {
3983
3983
  referenceFile: { name: "GITLAB.md", content: REFERENCE5 }
3984
3984
  };
3985
3985
 
3986
+ // ../shared/src/routes/compute.ts
3987
+ import { z as z16 } from "zod";
3988
+ var COMPUTE_SANDBOX_KINDS = ["gpu"];
3989
+ var GPU_TYPES = ["T4", "L4", "A10G", "L40S", "A100", "A100-80GB", "H100", "H200", "B200"];
3990
+ var DEFAULT_GPU_TYPE = "L4";
3991
+ var DEFAULT_GPU_IMAGE = "pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime";
3992
+ var COMPUTE_SANDBOX_WORKDIR = "/workspace";
3993
+ var COMPUTE_SANDBOX_LIMITS = {
3994
+ maxActivePerWorkspace: 3,
3995
+ maxActivePerOrganization: 10,
3996
+ maxGpuCount: 8,
3997
+ maxPorts: 5,
3998
+ defaultTimeoutMinutes: 60,
3999
+ maxTimeoutMinutes: 24 * 60,
4000
+ defaultIdleTimeoutMinutes: 10,
4001
+ maxIdleTimeoutMinutes: 60,
4002
+ maxTransferBytes: 1024 ** 3
4003
+ };
4004
+ var computeEnvSchema = z16.record(z16.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).max(128), z16.string().max(32768)).refine((env) => Object.keys(env).length <= 64, "At most 64 environment variables are allowed");
4005
+ var createComputeSandboxRequestSchema = z16.object({
4006
+ kind: z16.enum(COMPUTE_SANDBOX_KINDS),
4007
+ gpu: z16.string().trim().optional(),
4008
+ image: z16.string().trim().min(1).max(256).regex(/^\S+$/, "Image must not contain whitespace").optional(),
4009
+ timeoutMinutes: z16.number().int().min(1).max(COMPUTE_SANDBOX_LIMITS.maxTimeoutMinutes).optional(),
4010
+ idleTimeoutMinutes: z16.number().int().min(1).max(COMPUTE_SANDBOX_LIMITS.maxIdleTimeoutMinutes).optional(),
4011
+ ports: z16.array(z16.number().int().min(1).max(65535)).max(COMPUTE_SANDBOX_LIMITS.maxPorts).optional(),
4012
+ env: computeEnvSchema.optional()
4013
+ });
4014
+ var computeExecRequestSchema = z16.object({
4015
+ command: z16.string().min(1).max(1e5),
4016
+ workdir: z16.string().min(1).max(4096).optional(),
4017
+ env: computeEnvSchema.optional(),
4018
+ detach: z16.boolean().optional()
4019
+ });
4020
+
4021
+ // ../shared/src/default-skills/replicas-agent/abilities/gpu.ts
4022
+ var SECTION6 = `### GPU sandboxes
4023
+ Run GPU workloads (training, inference, CUDA builds, rendering) on cloud GPU sandboxes with \`replicas gpu\`. The workspace itself has no GPU.
4024
+
4025
+ **Reference:** \`references/GPU.md\`
4026
+
4027
+ Use this when:
4028
+ - A task needs a GPU: training or fine-tuning, model inference, CUDA code, benchmarks, or GPU rendering
4029
+ - You need to verify GPU code actually runs instead of only writing it`;
4030
+ var REFERENCE6 = `# GPU sandboxes
4031
+
4032
+ \`replicas gpu\` starts cloud GPU sandboxes and runs commands in them. It is authenticated automatically, and usage is billed at cost to the organization, so stop sandboxes when you are done.
4033
+
4034
+ ## One-shot runs
4035
+
4036
+ \`\`\`bash
4037
+ replicas gpu run --gpu H100 --pull outputs -- python train.py
4038
+ \`\`\`
4039
+
4040
+ This starts a sandbox, copies the current directory to \`${COMPUTE_SANDBOX_WORKDIR}\` (git repositories honor \`.gitignore\`), streams the command's output, copies \`${COMPUTE_SANDBOX_WORKDIR}/outputs\` back to \`./outputs\`, stops the sandbox, and exits with the command's exit code. Add \`--keep\` to leave it running.
4041
+
4042
+ ## Interactive sessions
4043
+
4044
+ \`\`\`bash
4045
+ replicas gpu create --gpu A100-80GB --timeout 3h # waits until running
4046
+ replicas gpu push # . -> ${COMPUTE_SANDBOX_WORKDIR}
4047
+ replicas gpu exec -- nvidia-smi
4048
+ replicas gpu exec -- pip install -r requirements.txt
4049
+ replicas gpu exec --detach -- python train.py # prints a job ID
4050
+ replicas gpu logs <jobId> -f # streams until the job exits
4051
+ replicas gpu pull ${COMPUTE_SANDBOX_WORKDIR}/checkpoints ./
4052
+ replicas gpu delete
4053
+ \`\`\`
4054
+
4055
+ - Commands run with \`sh -c\` in \`${COMPUTE_SANDBOX_WORKDIR}\`; quote shell operators: \`replicas gpu exec -- "cd src && make"\`.
4056
+ - \`--sandbox <id>\` picks a sandbox when more than one is running; \`replicas gpu list\` shows them.
4057
+ - Use \`--detach\` and \`logs -f\` for anything longer than a few minutes. A foreground \`exec\` dies with its connection.
4058
+ - \`--port 8000\` on create exposes a container port as a public HTTPS URL (shown by \`list\`).
4059
+ - \`--env KEY=value\` passes secrets such as \`HF_TOKEN\`; never bake them into files you push.
4060
+
4061
+ ## Choosing hardware and images
4062
+
4063
+ - GPUs: ${GPU_TYPES.join(", ")} (default ${DEFAULT_GPU_TYPE}). Add a count for multi-GPU, e.g. \`H100:4\` (max ${COMPUTE_SANDBOX_LIMITS.maxGpuCount}). Pick the smallest GPU that fits: T4/L4 for small models and smoke tests, A100/H100 for real training.
4064
+ - Default image: \`${DEFAULT_GPU_IMAGE}\`. Pass any public registry image with \`--image\`; the first start of a new image takes a few minutes to pull.
4065
+ - The sandbox has internet access. Download datasets and weights inside it rather than pushing them; pushes and pulls are capped at ${COMPUTE_SANDBOX_LIMITS.maxTransferBytes / 1024 ** 3} GiB.
4066
+
4067
+ ## Limits
4068
+
4069
+ - ${COMPUTE_SANDBOX_LIMITS.maxActivePerWorkspace} running sandboxes per workspace and ${COMPUTE_SANDBOX_LIMITS.maxActivePerOrganization} per organization
4070
+ - Lifetime 1 hour by default, up to 24 hours with \`--timeout\`
4071
+ - Sandboxes stop after 10 minutes with no running command (\`--idle-timeout\`, up to 1 hour)
4072
+ - Sandboxes stop when this workspace sleeps, is archived, or is deleted, and their files are lost; pull results before finishing
4073
+ `;
4074
+ var GPU_ABILITY = {
4075
+ label: "GPU sandboxes",
4076
+ description: "Run training, inference, and other GPU workloads on cloud GPUs with `replicas gpu`.",
4077
+ bullet: "- Running GPU workloads (training, inference, CUDA, rendering) on cloud GPU sandboxes with `replicas gpu`",
4078
+ section: SECTION6,
4079
+ referenceFile: { name: "GPU.md", content: REFERENCE6 }
4080
+ };
4081
+
3986
4082
  // ../shared/src/default-skills/replicas-agent/abilities/linear.ts
3987
- var SECTION6 = `### Linear
4083
+ var SECTION7 = `### Linear
3988
4084
  Create tickets, fetch issues, update state, add comments, and search through \`replicas.linear.graphql\` in \`@replicas/sdk\`. This works without a Linear MCP server and refreshes authentication automatically.
3989
4085
 
3990
4086
  **Reference:** \`references/LINEAR.md\`
@@ -3995,7 +4091,7 @@ Use this when:
3995
4091
  - You need to update an issue's state or add a comment
3996
4092
  - You need to search Linear issues
3997
4093
  - A Linear request failed with an authentication error`;
3998
- var REFERENCE6 = `# Linear Integration
4094
+ var REFERENCE7 = `# Linear Integration
3999
4095
 
4000
4096
  Use \`@replicas/sdk\`; never request or handle a Linear OAuth token. Replicas refreshes the organization credential behind the gateway.
4001
4097
 
@@ -4088,12 +4184,12 @@ var LINEAR_ABILITY = {
4088
4184
  label: "Linear",
4089
4185
  description: "Create tickets, fetch issues, comment, and update state through @replicas/sdk.",
4090
4186
  bullet: "- Interacting with Linear (creating tickets, fetching issues including any linear.app link the user shares, updating state, commenting, or troubleshooting authentication): use replicas.linear.graphql from @replicas/sdk, which refreshes tokens automatically and needs no Linear MCP server. Read references/LINEAR.md before treating a rejected workspace token as a disconnected integration.",
4091
- section: SECTION6,
4092
- referenceFile: { name: "LINEAR.md", content: REFERENCE6 }
4187
+ section: SECTION7,
4188
+ referenceFile: { name: "LINEAR.md", content: REFERENCE7 }
4093
4189
  };
4094
4190
 
4095
4191
  // ../shared/src/default-skills/replicas-agent/abilities/media.ts
4096
- var SECTION7 = `### Media
4192
+ var SECTION8 = `### Media
4097
4193
  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.
4098
4194
 
4099
4195
  **Reference:** \`references/MEDIA.md\`
@@ -4105,7 +4201,7 @@ Use this when:
4105
4201
  - You produce a self-contained HTML report that should be linked from a pull request
4106
4202
  - You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
4107
4203
  - You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
4108
- var REFERENCE7 = `# Media (Screenshots, GIFs, Recordings, Audio, HTML)
4204
+ var REFERENCE8 = `# Media (Screenshots, GIFs, Recordings, Audio, HTML)
4109
4205
 
4110
4206
  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).
4111
4207
 
@@ -4485,12 +4581,12 @@ var MEDIA_ABILITY = {
4485
4581
  label: "Media",
4486
4582
  description: "Deliver media to Replicas and destination workflows with inline uploads.",
4487
4583
  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",
4488
- section: SECTION7,
4489
- referenceFile: { name: "MEDIA.md", content: REFERENCE7 }
4584
+ section: SECTION8,
4585
+ referenceFile: { name: "MEDIA.md", content: REFERENCE8 }
4490
4586
  };
4491
4587
 
4492
4588
  // ../shared/src/default-skills/replicas-agent/abilities/previews.ts
4493
- var SECTION8 = `### Previews
4589
+ var SECTION9 = `### Previews
4494
4590
  Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
4495
4591
 
4496
4592
  **Reference:** \`references/PREVIEWS.md\`
@@ -4500,7 +4596,7 @@ Use this when:
4500
4596
  - The task involves UI work that benefits from human review
4501
4597
  - You are verifying frontend/backend integrations visually
4502
4598
  - You need a URL for OAuth redirects, GitHub App callbacks, or webhooks (never the sandbox's \`*.e2b.app\` address)`;
4503
- var REFERENCE8 = `# Preview URLs
4599
+ var REFERENCE9 = `# Preview URLs
4504
4600
 
4505
4601
  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.
4506
4602
 
@@ -4589,12 +4685,12 @@ var PREVIEWS_ABILITY = {
4589
4685
  label: "Previews",
4590
4686
  description: "Expose locally running services on public preview URLs for humans.",
4591
4687
  bullet: "- Creating preview URLs for locally running services, including OAuth redirect, app callback, and webhook URLs (never a raw `*.e2b.app` address)",
4592
- section: SECTION8,
4593
- referenceFile: { name: "PREVIEWS.md", content: REFERENCE8 }
4688
+ section: SECTION9,
4689
+ referenceFile: { name: "PREVIEWS.md", content: REFERENCE9 }
4594
4690
  };
4595
4691
 
4596
4692
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
4597
- var SECTION9 = `### Plugins
4693
+ var SECTION10 = `### Plugins
4598
4694
  Discover and execute installed marketplace tools through the workspace-scoped TypeScript SDK.
4599
4695
 
4600
4696
  **Reference:** \`references/PLUGINS.md\`
@@ -4613,7 +4709,7 @@ Use this when:
4613
4709
  - The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
4614
4710
  - The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
4615
4711
  - The user asks to analyze text with Pangram`;
4616
- var REFERENCE9 = `# Plugins
4712
+ var REFERENCE10 = `# Plugins
4617
4713
 
4618
4714
  Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and selects the most specific environment the workspace inherits from, then Global. Provider credentials, sessions, and project keys are never exposed.
4619
4715
 
@@ -4819,12 +4915,12 @@ var PLUGINS_ABILITY = {
4819
4915
  label: "Plugins",
4820
4916
  description: "Use installed marketplace tools through @replicas/sdk.",
4821
4917
  bullet: "- Interacting with installed marketplace plugins through TypeScript",
4822
- section: SECTION9,
4823
- referenceFile: { name: "PLUGINS.md", content: REFERENCE9 }
4918
+ section: SECTION10,
4919
+ referenceFile: { name: "PLUGINS.md", content: REFERENCE10 }
4824
4920
  };
4825
4921
 
4826
4922
  // ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
4827
- var SECTION10 = `### Replicas (in-workspace CLI)
4923
+ var SECTION11 = `### Replicas (in-workspace CLI)
4828
4924
  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.
4829
4925
 
4830
4926
  **Reference:** \`references/REPLICAS.md\`
@@ -4836,7 +4932,7 @@ Use this when:
4836
4932
  - The user asks "what envs / repos / automations do I have?"
4837
4933
  - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
4838
4934
  - You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake`;
4839
- var REFERENCE10 = `# Replicas (in-workspace CLI)
4935
+ var REFERENCE11 = `# Replicas (in-workspace CLI)
4840
4936
 
4841
4937
  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.
4842
4938
 
@@ -5097,13 +5193,13 @@ var REPLICAS_ABILITY = {
5097
5193
  description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
5098
5194
  // No bullet — help_instructions covers the `replicas` CLI surface in detail.
5099
5195
  bullet: "",
5100
- section: SECTION10,
5101
- referenceFile: { name: "REPLICAS.md", content: REFERENCE10 },
5196
+ section: SECTION11,
5197
+ referenceFile: { name: "REPLICAS.md", content: REFERENCE11 },
5102
5198
  locked: true
5103
5199
  };
5104
5200
 
5105
5201
  // ../shared/src/default-skills/replicas-agent/abilities/sentry.ts
5106
- var SECTION11 = `### Sentry
5202
+ var SECTION12 = `### Sentry
5107
5203
  Read issues and project data through the workspace-scoped TypeScript SDK.
5108
5204
 
5109
5205
  **Reference:** \`references/SENTRY.md\`
@@ -5112,7 +5208,7 @@ Use this when:
5112
5208
  - A user shares a sentry.io link
5113
5209
  - You need to inspect Sentry projects or issues
5114
5210
  - A user asks for error-monitoring context outside a webhook-triggered task`;
5115
- var REFERENCE11 = `# Sentry Integration
5211
+ var REFERENCE12 = `# Sentry Integration
5116
5212
 
5117
5213
  Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
5118
5214
 
@@ -5141,8 +5237,8 @@ var SENTRY_ABILITY = {
5141
5237
  label: "Sentry",
5142
5238
  description: "Read Sentry projects and issues through @replicas/sdk.",
5143
5239
  bullet: "- Interacting with Sentry (reading projects, issues, and error context, including any sentry.io link the user shares): use replicas.sentry.request from @replicas/sdk. Read references/SENTRY.md to turn an issue link into API paths.",
5144
- section: SECTION11,
5145
- referenceFile: { name: "SENTRY.md", content: REFERENCE11 }
5240
+ section: SECTION12,
5241
+ referenceFile: { name: "SENTRY.md", content: REFERENCE12 }
5146
5242
  };
5147
5243
 
5148
5244
  // ../shared/src/memory.ts
@@ -5150,11 +5246,11 @@ var HISTORY_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/history`;
5150
5246
  var HISTORY_INDEX_FILENAME = "INDEX.md";
5151
5247
 
5152
5248
  // ../shared/src/default-skills/replicas-agent/abilities/session-history.ts
5153
- var SECTION12 = `### Session history
5249
+ var SECTION13 = `### Session history
5154
5250
  Search past agent sessions in this organization when the user refers to prior work, a date, a teammate's session, or "last time".
5155
5251
 
5156
5252
  **Reference:** \`references/SESSION-HISTORY.md\``;
5157
- var REFERENCE12 = `# Session history
5253
+ var REFERENCE13 = `# Session history
5158
5254
 
5159
5255
  Past sessions are installed under \`${HISTORY_ROOT}\`:
5160
5256
 
@@ -5183,8 +5279,8 @@ var SESSION_HISTORY_ABILITY = {
5183
5279
  label: "Session history",
5184
5280
  description: "Search past agent sessions in this organization.",
5185
5281
  bullet: "",
5186
- section: SECTION12,
5187
- referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE12 },
5282
+ section: SECTION13,
5283
+ referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE13 },
5188
5284
  locked: true
5189
5285
  };
5190
5286
 
@@ -5195,7 +5291,7 @@ var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would
5195
5291
  var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread \u2014 the message announcing you opened it \u2014 attach a button for it: send `blocks` alongside `text` \u2014 a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. Later messages about a pull request you already linked in this thread keep the link in the sentence and get no button, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message \u2014 Slack uses it for notifications and fallback \u2014 and keep the link in the sentence too.';
5196
5292
 
5197
5293
  // ../shared/src/default-skills/replicas-agent/abilities/slack.ts
5198
- var SECTION13 = `### Slack
5294
+ var SECTION14 = `### Slack
5199
5295
  Send messages, read threads, search conversations, and transfer files through the workspace-scoped TypeScript SDK.
5200
5296
 
5201
5297
  **Reference:** \`references/SLACK.md\`
@@ -5205,7 +5301,7 @@ Use this when:
5205
5301
  - You need to read or search Slack conversations
5206
5302
  - You need to download a file attached to a Slack message
5207
5303
  - You encounter a Slack message link and need its full thread`;
5208
- var REFERENCE13 = `# Slack Integration
5304
+ var REFERENCE14 = `# Slack Integration
5209
5305
 
5210
5306
  Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
5211
5307
 
@@ -5283,8 +5379,8 @@ var SLACK_ABILITY = {
5283
5379
  label: "Slack",
5284
5380
  description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
5285
5381
  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.",
5286
- section: SECTION13,
5287
- referenceFile: { name: "SLACK.md", content: REFERENCE13 }
5382
+ section: SECTION14,
5383
+ referenceFile: { name: "SLACK.md", content: REFERENCE14 }
5288
5384
  };
5289
5385
 
5290
5386
  // ../shared/src/default-skills/replicas-agent/registry.ts
@@ -5296,6 +5392,7 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
5296
5392
  environment_setup: ENVIRONMENT_SETUP_ABILITY,
5297
5393
  github: GITHUB_ABILITY,
5298
5394
  gitlab: GITLAB_ABILITY,
5395
+ gpu: GPU_ABILITY,
5299
5396
  linear: LINEAR_ABILITY,
5300
5397
  media: MEDIA_ABILITY,
5301
5398
  plugins: PLUGINS_ABILITY,
@@ -5388,16 +5485,16 @@ function splitMothershipInstructions(customInstructions) {
5388
5485
  // ../shared/src/mothership-events.ts
5389
5486
  var MOTHERSHIP_EVENT_KINDS = ["finished", "ready", "needs_attention", "merged", "closed", "archived"];
5390
5487
  var MOTHERSHIP_EVENT_TYPE = "multitask-event";
5391
- var mothershipEventSchema = z16.object({
5392
- id: z16.string(),
5393
- at: z16.string(),
5394
- kind: z16.enum(MOTHERSHIP_EVENT_KINDS),
5395
- agentId: z16.string(),
5396
- agentName: z16.string(),
5397
- summary: z16.string(),
5398
- detail: z16.string().optional(),
5488
+ var mothershipEventSchema = z17.object({
5489
+ id: z17.string(),
5490
+ at: z17.string(),
5491
+ kind: z17.enum(MOTHERSHIP_EVENT_KINDS),
5492
+ agentId: z17.string(),
5493
+ agentName: z17.string(),
5494
+ summary: z17.string(),
5495
+ detail: z17.string().optional(),
5399
5496
  // Already shown as a row when it happened, so the delivered message does not show it again.
5400
- noticed: z16.boolean().optional()
5497
+ noticed: z17.boolean().optional()
5401
5498
  });
5402
5499
  var TAG = "multitask_event";
5403
5500
  var BLOCK = new RegExp(`<${TAG}((?:\\s+\\w+="[^"]*")*)>\\n?([\\s\\S]*?)\\n?</${TAG}>`, "g");
@@ -5431,7 +5528,7 @@ function isMothershipEventMessage(text3) {
5431
5528
  }
5432
5529
 
5433
5530
  // ../shared/src/learned-skills.ts
5434
- import { z as z17 } from "zod";
5531
+ import { z as z18 } from "zod";
5435
5532
 
5436
5533
  // ../shared/src/frontmatter.ts
5437
5534
  import { parse as parseYaml } from "yaml";
@@ -5454,20 +5551,20 @@ function parseFrontmatter(content) {
5454
5551
  var LEARNED_SKILLS_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/learned-skills`;
5455
5552
  var LEARNED_SKILLS_MANIFEST_PATH = `${LEARNED_SKILLS_ROOT}/manifest.json`;
5456
5553
  var LEARNED_SKILL_DIR_PREFIX = "replicas-learned__";
5457
- var learnedSkillsManifestSchema = z17.object({
5458
- skills: z17.array(z17.object({ name: z17.string(), sha256: z17.string() }))
5554
+ var learnedSkillsManifestSchema = z18.object({
5555
+ skills: z18.array(z18.object({ name: z18.string(), sha256: z18.string() }))
5459
5556
  });
5460
- var dreamVerdictChecksSchema = z17.object({
5461
- repeatable: z17.boolean(),
5462
- realInstruction: z17.boolean(),
5463
- noContradiction: z17.boolean(),
5464
- formatExact: z17.boolean(),
5465
- humanOnly: z17.boolean(),
5466
- actionable: z17.boolean(),
5467
- durable: z17.boolean()
5557
+ var dreamVerdictChecksSchema = z18.object({
5558
+ repeatable: z18.boolean(),
5559
+ realInstruction: z18.boolean(),
5560
+ noContradiction: z18.boolean(),
5561
+ formatExact: z18.boolean(),
5562
+ humanOnly: z18.boolean(),
5563
+ actionable: z18.boolean(),
5564
+ durable: z18.boolean()
5468
5565
  });
5469
5566
  var DREAM_VERDICT_CHECKS = dreamVerdictChecksSchema.keyof().options;
5470
- var dreamVerdictSchema = dreamVerdictChecksSchema.extend({ approve: z17.boolean(), reason: z17.string() });
5567
+ var dreamVerdictSchema = dreamVerdictChecksSchema.extend({ approve: z18.boolean(), reason: z18.string() });
5471
5568
  var learnedSkillFormatInstruction = (speaker) => `Write a SKILL.md whose frontmatter has a kebab-case \`name\` and a short \`description\` that starts with "Use when" and names the situations it applies to; the body records only what ${speaker} actually said, restated as a direct instruction, usually one to three lines. Every line of a learning is loaded into future sessions, so leave out anything an agent could infer on its own: no headings, explanations, rules, or examples unless ${speaker} stated those specifics themselves. For "from now on, use Conventional Commits", the body is just "Use Conventional Commits for every commit message and PR title."`;
5472
5569
 
5473
5570
  // ../shared/src/user-message-matching.ts
@@ -8475,7 +8572,7 @@ var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
8475
8572
  };
8476
8573
 
8477
8574
  // ../shared/src/routes/command-protection.ts
8478
- import { z as z18 } from "zod";
8575
+ import { z as z19 } from "zod";
8479
8576
 
8480
8577
  // ../shared/src/git-invocations.ts
8481
8578
  var COMMIT_VALUE_OPTIONS = /* @__PURE__ */ new Set(["message", "file", "trailer", "reuse-message", "reedit-message", "fixup", "squash", "template", "author", "date", "cleanup", "pathspec-from-file"]);
@@ -8566,27 +8663,27 @@ function findCheckoutTarget(args) {
8566
8663
  }
8567
8664
 
8568
8665
  // ../shared/src/routes/command-protection.ts
8569
- var commandProtectionRepoStateSchema = z18.object({
8570
- branch: z18.string().nullable(),
8571
- defaultBranch: z18.string().nullable(),
8572
- pushBranch: z18.string().nullable(),
8573
- pushConfig: z18.string().nullable(),
8574
- headMessage: z18.string().nullable(),
8575
- mergeInProgress: z18.boolean().optional()
8666
+ var commandProtectionRepoStateSchema = z19.object({
8667
+ branch: z19.string().nullable(),
8668
+ defaultBranch: z19.string().nullable(),
8669
+ pushBranch: z19.string().nullable(),
8670
+ pushConfig: z19.string().nullable(),
8671
+ headMessage: z19.string().nullable(),
8672
+ mergeInProgress: z19.boolean().optional()
8576
8673
  });
8577
- var commandProtectionEvaluateRequestSchema = z18.object({
8578
- provider: z18.enum(["claude", "codex", "cursor", "opencode", "pi"]),
8579
- source: z18.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call"]),
8580
- toolName: z18.string(),
8581
- toolInput: z18.unknown(),
8582
- command: z18.string().nullish(),
8583
- cwd: z18.string().nullish(),
8584
- toolUseId: z18.string().nullish(),
8674
+ var commandProtectionEvaluateRequestSchema = z19.object({
8675
+ provider: z19.enum(["claude", "codex", "cursor", "opencode", "pi"]),
8676
+ source: z19.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call"]),
8677
+ toolName: z19.string(),
8678
+ toolInput: z19.unknown(),
8679
+ command: z19.string().nullish(),
8680
+ cwd: z19.string().nullish(),
8681
+ toolUseId: z19.string().nullish(),
8585
8682
  // Read by the engine before the command runs, keyed by absolute path, so the
8586
8683
  // policy can see branches and commit messages the command text only references.
8587
- gitContext: z18.object({
8588
- repos: z18.record(z18.string(), commandProtectionRepoStateSchema),
8589
- messageFiles: z18.record(z18.string(), z18.string())
8684
+ gitContext: z19.object({
8685
+ repos: z19.record(z19.string(), commandProtectionRepoStateSchema),
8686
+ messageFiles: z19.record(z19.string(), z19.string())
8590
8687
  }).optional()
8591
8688
  });
8592
8689
  var COMMAND_PROTECTION_COMMAND_KEYS = ["command", "cmd", "script", "query", "endpoint", "path", "url", "mutation"];
@@ -8783,106 +8880,106 @@ function shouldRefreshPullRequests(toolName, toolInput) {
8783
8880
  }
8784
8881
 
8785
8882
  // ../shared/src/routes/linear.ts
8786
- import { z as z19 } from "zod";
8787
- var linearSessionMetadataSchema = z19.object({
8788
- via_mothership: z19.boolean().optional(),
8789
- issue_id: z19.string(),
8790
- issue_identifier: z19.string(),
8791
- issue_title: z19.string(),
8792
- issue_description: z19.string(),
8793
- issue_url: z19.string(),
8794
- comment_id: z19.string(),
8795
- comment_body: z19.string(),
8796
- triggered_by_id: z19.string().optional(),
8797
- triggered_by_name: z19.string().optional(),
8798
- triggered_by_email: z19.string().optional(),
8799
- linear_workspace_id: z19.string().optional(),
8800
- creator_id: z19.string().optional(),
8801
- creator_name: z19.string().optional(),
8802
- creator_email: z19.string().optional(),
8803
- assignee_id: z19.string().optional(),
8804
- assignee_name: z19.string().optional(),
8805
- assignee_email: z19.string().optional(),
8806
- issue_state: z19.string().optional(),
8807
- parent_issue: z19.object({
8808
- id: z19.string(),
8809
- identifier: z19.string(),
8810
- title: z19.string(),
8811
- description: z19.string().nullable()
8883
+ import { z as z20 } from "zod";
8884
+ var linearSessionMetadataSchema = z20.object({
8885
+ via_mothership: z20.boolean().optional(),
8886
+ issue_id: z20.string(),
8887
+ issue_identifier: z20.string(),
8888
+ issue_title: z20.string(),
8889
+ issue_description: z20.string(),
8890
+ issue_url: z20.string(),
8891
+ comment_id: z20.string(),
8892
+ comment_body: z20.string(),
8893
+ triggered_by_id: z20.string().optional(),
8894
+ triggered_by_name: z20.string().optional(),
8895
+ triggered_by_email: z20.string().optional(),
8896
+ linear_workspace_id: z20.string().optional(),
8897
+ creator_id: z20.string().optional(),
8898
+ creator_name: z20.string().optional(),
8899
+ creator_email: z20.string().optional(),
8900
+ assignee_id: z20.string().optional(),
8901
+ assignee_name: z20.string().optional(),
8902
+ assignee_email: z20.string().optional(),
8903
+ issue_state: z20.string().optional(),
8904
+ parent_issue: z20.object({
8905
+ id: z20.string(),
8906
+ identifier: z20.string(),
8907
+ title: z20.string(),
8908
+ description: z20.string().nullable()
8812
8909
  }).optional(),
8813
- workspace: z19.object({
8814
- id: z19.string(),
8815
- coding_agent: z19.custom((value) => typeof value === "string" && isValidAgentProvider(value)),
8816
- task_description: z19.string(),
8817
- created_at: z19.string()
8910
+ workspace: z20.object({
8911
+ id: z20.string(),
8912
+ coding_agent: z20.custom((value) => typeof value === "string" && isValidAgentProvider(value)),
8913
+ task_description: z20.string(),
8914
+ created_at: z20.string()
8818
8915
  }).optional()
8819
8916
  });
8820
8917
 
8821
8918
  // ../shared/src/routes/scout.ts
8822
- import { z as z20 } from "zod";
8919
+ import { z as z21 } from "zod";
8823
8920
  var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
8824
- var scoutLinearSessionIntentRequestSchema = z20.object({
8825
- comment_id: z20.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
8826
- action: z20.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it is the complete task prompt.")
8921
+ var scoutLinearSessionIntentRequestSchema = z21.object({
8922
+ comment_id: z21.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
8923
+ action: z21.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it is the complete task prompt.")
8827
8924
  });
8828
- var scoutLinearStartRequestSchema = z20.object({
8829
- issue_id: z20.string().describe("Linear issue id from the envelope's `issue_id`."),
8830
- agent_session_id: z20.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
8831
- prompt: z20.string().trim().min(1).describe("Complete task prompt for the coding workspace.")
8925
+ var scoutLinearStartRequestSchema = z21.object({
8926
+ issue_id: z21.string().describe("Linear issue id from the envelope's `issue_id`."),
8927
+ agent_session_id: z21.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
8928
+ prompt: z21.string().trim().min(1).describe("Complete task prompt for the coding workspace.")
8832
8929
  });
8833
- var slackChannelIdSchema = z20.string().describe("Slack channel id from the envelope's `channel_id`.");
8834
- var slackThreadTsSchema = z20.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
8835
- var scoutSlackSpawnRequestSchema = z20.object({
8930
+ var slackChannelIdSchema = z21.string().describe("Slack channel id from the envelope's `channel_id`.");
8931
+ var slackThreadTsSchema = z21.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
8932
+ var scoutSlackSpawnRequestSchema = z21.object({
8836
8933
  channel_id: slackChannelIdSchema,
8837
8934
  thread_ts: slackThreadTsSchema,
8838
- message_ts: z20.string().describe("Timestamp of the Slack message that asked for the work (the envelope's `message_ts`). The server verifies this message and its author."),
8839
- user_id: z20.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
8840
- prompt: z20.string().describe("Complete task for the new workspace, written so it stands on its own."),
8841
- environment_id: z20.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose. If routing cannot choose, the call fails and nothing is posted, so pick one or ask the person.`)
8935
+ message_ts: z21.string().describe("Timestamp of the Slack message that asked for the work (the envelope's `message_ts`). The server verifies this message and its author."),
8936
+ user_id: z21.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
8937
+ prompt: z21.string().describe("Complete task for the new workspace, written so it stands on its own."),
8938
+ environment_id: z21.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose. If routing cannot choose, the call fails and nothing is posted, so pick one or ask the person.`)
8842
8939
  });
8843
8940
  var scoutSlackSpawnInNewThreadRequestSchema = scoutSlackSpawnRequestSchema.extend({
8844
- title: z20.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
8845
- prompt: z20.string().describe("Complete task for the new workspace, written so it stands on its own: the request plus the parts of the source thread it needs. The full source thread is attached as background.")
8941
+ title: z21.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
8942
+ prompt: z21.string().describe("Complete task for the new workspace, written so it stands on its own: the request plus the parts of the source thread it needs. The full source thread is attached as background.")
8846
8943
  });
8847
- var scoutSlackRelayRequestSchema = z20.object({
8944
+ var scoutSlackRelayRequestSchema = z21.object({
8848
8945
  channel_id: slackChannelIdSchema,
8849
8946
  thread_ts: slackThreadTsSchema,
8850
- message: z20.string().describe("The follow-up to deliver, combining every fresh message that belongs to this update."),
8851
- user_id: z20.string().optional().describe("Slack user id of the follow-up's author (the envelope's `user_id`), so it is attributed to them. Defaults to the thread's original requester. Required with `workspace_id`."),
8852
- queue: z20.boolean().optional().describe("Set true only when the person explicitly asked for this to happen after the current task finishes. Delivers behind the active turn instead of interrupting it."),
8853
- workspace_id: z20.string().optional().describe(`Existing workspace id, from \`${REPLICAS_MCP_TOOLS.listWorkspaces}\` or a workspace link in the thread, to bind a thread without a workspace to before relaying. The author must be able to see it. Omit to relay into the thread's own workspace.`),
8854
- message_ts: z20.string().optional().describe("Timestamp of the Slack message that led to this relay (the envelope's `message_ts`). Required with `workspace_id`; the server verifies this message and its author.")
8947
+ message: z21.string().describe("The follow-up to deliver, combining every fresh message that belongs to this update."),
8948
+ user_id: z21.string().optional().describe("Slack user id of the follow-up's author (the envelope's `user_id`), so it is attributed to them. Defaults to the thread's original requester. Required with `workspace_id`."),
8949
+ queue: z21.boolean().optional().describe("Set true only when the person explicitly asked for this to happen after the current task finishes. Delivers behind the active turn instead of interrupting it."),
8950
+ workspace_id: z21.string().optional().describe(`Existing workspace id, from \`${REPLICAS_MCP_TOOLS.listWorkspaces}\` or a workspace link in the thread, to bind a thread without a workspace to before relaying. The author must be able to see it. Omit to relay into the thread's own workspace.`),
8951
+ message_ts: z21.string().optional().describe("Timestamp of the Slack message that led to this relay (the envelope's `message_ts`). Required with `workspace_id`; the server verifies this message and its author.")
8855
8952
  });
8856
- var scoutListWorkspacesRequestSchema = z20.object({
8953
+ var scoutListWorkspacesRequestSchema = z21.object({
8857
8954
  channel_id: slackChannelIdSchema,
8858
8955
  thread_ts: slackThreadTsSchema,
8859
- message_ts: z20.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
8860
- user_id: z20.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
8861
- query: z20.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace names and pull request URLs.")
8956
+ message_ts: z21.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
8957
+ user_id: z21.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
8958
+ query: z21.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace names and pull request URLs.")
8862
8959
  });
8863
- var scoutSlackConfirmationSchema = z20.object({
8864
- confirmation_channel_id: z20.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
8865
- confirmation_thread_ts: z20.string().describe("`thread_ts` from that message's envelope."),
8866
- confirmation_message_ts: z20.string().describe("`message_ts` from that message's envelope."),
8867
- confirmation_user_id: z20.string().describe("`user_id` from that message's envelope.")
8960
+ var scoutSlackConfirmationSchema = z21.object({
8961
+ confirmation_channel_id: z21.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
8962
+ confirmation_thread_ts: z21.string().describe("`thread_ts` from that message's envelope."),
8963
+ confirmation_message_ts: z21.string().describe("`message_ts` from that message's envelope."),
8964
+ confirmation_user_id: z21.string().describe("`user_id` from that message's envelope.")
8868
8965
  });
8869
8966
  var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
8870
8967
  var scoutSaveChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
8871
- preset_id: z20.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
8872
- name: z20.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
8873
- description: z20.string().optional().describe("One-line summary shown in settings."),
8874
- icon: z20.enum(SCOUT_PRESET_ICONS).optional(),
8875
- instructions: z20.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
8968
+ preset_id: z21.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
8969
+ name: z21.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
8970
+ description: z21.string().optional().describe("One-line summary shown in settings."),
8971
+ icon: z21.enum(SCOUT_PRESET_ICONS).optional(),
8972
+ instructions: z21.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
8876
8973
  });
8877
8974
  var scoutUpdateChannelSettingsToolInputSchema = scoutSlackConfirmationSchema.extend({
8878
- source: z20.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
8879
- external_id: z20.string().describe("Slack channel id or Linear team id."),
8880
- monitored: z20.boolean().optional().describe("`false` stops Scout from handling the source: it excludes a Slack channel or stops monitoring a Linear team. `true` resumes a Slack channel or starts monitoring a Linear team, and only an organization admin can ask for that. Omit to keep it."),
8881
- preset_id: z20.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
8882
- instructions: z20.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them.")
8975
+ source: z21.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
8976
+ external_id: z21.string().describe("Slack channel id or Linear team id."),
8977
+ monitored: z21.boolean().optional().describe("`false` stops Scout from handling the source: it excludes a Slack channel or stops monitoring a Linear team. `true` resumes a Slack channel or starts monitoring a Linear team, and only an organization admin can ask for that. Omit to keep it."),
8978
+ preset_id: z21.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
8979
+ instructions: z21.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them.")
8883
8980
  });
8884
8981
  var scoutDeleteChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
8885
- preset_id: z20.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
8982
+ preset_id: z21.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
8886
8983
  });
8887
8984
 
8888
8985
  // ../shared/src/routes/plugin-catalog.ts
@@ -9261,58 +9358,58 @@ var WORKSPACE_LIST_SECTION_LABELS = {
9261
9358
  };
9262
9359
 
9263
9360
  // ../shared/src/routes/workspace-events.ts
9264
- import { z as z21 } from "zod";
9265
- var workspaceChangedEventSchema = z21.discriminatedUnion("type", [
9266
- z21.object({
9267
- type: z21.literal("workspace.changed"),
9268
- workspaceId: z21.string(),
9269
- workspace: z21.object({ status: z21.enum(WORKSPACE_STATUSES), last_activity_at: z21.string().nullable() }).optional(),
9270
- completion: z21.object({
9271
- workspaceName: z21.string(),
9272
- completedAt: z21.string(),
9273
- processing: z21.boolean().optional()
9361
+ import { z as z22 } from "zod";
9362
+ var workspaceChangedEventSchema = z22.discriminatedUnion("type", [
9363
+ z22.object({
9364
+ type: z22.literal("workspace.changed"),
9365
+ workspaceId: z22.string(),
9366
+ workspace: z22.object({ status: z22.enum(WORKSPACE_STATUSES), last_activity_at: z22.string().nullable() }).optional(),
9367
+ completion: z22.object({
9368
+ workspaceName: z22.string(),
9369
+ completedAt: z22.string(),
9370
+ processing: z22.boolean().optional()
9274
9371
  }).optional(),
9275
- ts: z21.string()
9372
+ ts: z22.string()
9276
9373
  }),
9277
- z21.object({
9278
- type: z21.literal("workspace.chat.changed"),
9279
- workspaceId: z21.string(),
9280
- chatId: z21.string(),
9281
- ts: z21.string()
9374
+ z22.object({
9375
+ type: z22.literal("workspace.chat.changed"),
9376
+ workspaceId: z22.string(),
9377
+ chatId: z22.string(),
9378
+ ts: z22.string()
9282
9379
  }),
9283
- z21.object({ type: z21.literal("presence.changed"), ts: z21.string() }),
9284
- z21.object({
9285
- type: z21.literal("mobile-testing.changed"),
9286
- workspaceId: z21.string(),
9287
- ts: z21.string()
9380
+ z22.object({ type: z22.literal("presence.changed"), ts: z22.string() }),
9381
+ z22.object({
9382
+ type: z22.literal("mobile-testing.changed"),
9383
+ workspaceId: z22.string(),
9384
+ ts: z22.string()
9288
9385
  }),
9289
- z21.object({
9290
- type: z21.literal("pull-request.changed"),
9291
- prUrl: z21.string(),
9292
- ts: z21.string()
9386
+ z22.object({
9387
+ type: z22.literal("pull-request.changed"),
9388
+ prUrl: z22.string(),
9389
+ ts: z22.string()
9293
9390
  })
9294
9391
  ]);
9295
9392
 
9296
9393
  // ../shared/src/routes/presence.ts
9297
- import { z as z22 } from "zod";
9298
- var presenceStatusSchema = z22.enum(["online", "typing"]);
9299
- var presenceLocationSchema = z22.object({
9300
- workspaceId: z22.string().optional()
9394
+ import { z as z23 } from "zod";
9395
+ var presenceStatusSchema = z23.enum(["online", "typing"]);
9396
+ var presenceLocationSchema = z23.object({
9397
+ workspaceId: z23.string().optional()
9301
9398
  });
9302
- var presenceEntrySchema = z22.object({
9303
- userId: z22.string(),
9399
+ var presenceEntrySchema = z23.object({
9400
+ userId: z23.string(),
9304
9401
  status: presenceStatusSchema,
9305
9402
  location: presenceLocationSchema,
9306
- ts: z22.string()
9403
+ ts: z23.string()
9307
9404
  });
9308
- var updatePresenceRequestSchema = z22.object({
9405
+ var updatePresenceRequestSchema = z23.object({
9309
9406
  status: presenceStatusSchema,
9310
9407
  location: presenceLocationSchema.optional()
9311
9408
  });
9312
9409
 
9313
9410
  // ../shared/src/routes/review-messages.ts
9314
- import { z as z23 } from "zod";
9315
- var sendPullRequestReviewMessageRequestSchema = z23.object({
9411
+ import { z as z24 } from "zod";
9412
+ var sendPullRequestReviewMessageRequestSchema = z24.object({
9316
9413
  ...sendChatMessageRequestSchema.pick({
9317
9414
  message: true,
9318
9415
  messageId: true,
@@ -9325,8 +9422,8 @@ var sendPullRequestReviewMessageRequestSchema = z23.object({
9325
9422
  ultrafastMode: true
9326
9423
  }).shape,
9327
9424
  /** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
9328
- newChat: z23.boolean().optional(),
9329
- provider: z23.enum(VALID_AGENT_PROVIDERS).optional()
9425
+ newChat: z24.boolean().optional(),
9426
+ provider: z24.enum(VALID_AGENT_PROVIDERS).optional()
9330
9427
  });
9331
9428
 
9332
9429
  // ../shared/src/audit-log.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
  evaluateCommandProtection
6
- } from "./chunk-X6EV75KD.js";
7
- import "./chunk-S4UYBJQG.js";
8
- import "./chunk-FRA3L55N.js";
6
+ } from "./chunk-ES2J5G75.js";
7
+ import "./chunk-DBNLYOQV.js";
8
+ import "./chunk-OH7MC4J7.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-KRDGM5WO.js";
12
+ import "./chunk-WBMTCMI4.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-NNKU7HMD.js";
16
+ } from "./chunk-EZZIC6RT.js";
17
17
  import {
18
18
  AppServerProcess,
19
19
  buildCodexAgentEnv
20
- } from "./chunk-GZNXGZAR.js";
21
- import "./chunk-FRA3L55N.js";
20
+ } from "./chunk-NO6WP327.js";
21
+ import "./chunk-OH7MC4J7.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-KRDGM5WO.js";
31
+ } from "./chunk-WBMTCMI4.js";
32
32
  import "./chunk-VEQXQN22.js";
33
33
 
34
34
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  evaluateCommandProtection,
28
28
  extractToolCommand,
29
29
  reportCommandProtectionBlock
30
- } from "./chunk-X6EV75KD.js";
30
+ } from "./chunk-ES2J5G75.js";
31
31
  import {
32
32
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
33
33
  AGENT_MESSAGE_DELTA_METHOD,
@@ -64,10 +64,10 @@ import {
64
64
  spawnMuseMsp,
65
65
  startMuseSession,
66
66
  uuidV7
67
- } from "./chunk-NNKU7HMD.js";
67
+ } from "./chunk-EZZIC6RT.js";
68
68
  import {
69
69
  publishedPullRequestUrls
70
- } from "./chunk-MZCE7SRR.js";
70
+ } from "./chunk-5P4GVEQE.js";
71
71
  import {
72
72
  ACCOUNT_RATE_LIMITS_READ_METHOD,
73
73
  AsyncLock,
@@ -130,7 +130,7 @@ import {
130
130
  timestampFromSeconds,
131
131
  upsertCredentialFileLines,
132
132
  writeSecureCredentialFile
133
- } from "./chunk-3HG6K4DE.js";
133
+ } from "./chunk-SFCWY33O.js";
134
134
  import {
135
135
  ENGINE_ENV,
136
136
  monolithRequest,
@@ -139,15 +139,15 @@ import {
139
139
  reloadEngineEnv,
140
140
  resolveDiffBase,
141
141
  setAgentCredentialSnapshot
142
- } from "./chunk-S4UYBJQG.js";
142
+ } from "./chunk-DBNLYOQV.js";
143
143
  import {
144
144
  getCodexModelProvider
145
- } from "./chunk-GZNXGZAR.js";
145
+ } from "./chunk-NO6WP327.js";
146
146
  import {
147
147
  SUBPROCESS_MAX_BUFFER,
148
148
  execAsync,
149
149
  execFileAsync
150
- } from "./chunk-FRA3L55N.js";
150
+ } from "./chunk-OH7MC4J7.js";
151
151
  import {
152
152
  isRecord as isRecord2
153
153
  } from "./chunk-UZSNFLDQ.js";
@@ -374,7 +374,7 @@ import {
374
374
  workspaceTokenRequestSchema,
375
375
  workspaceTokenResponseSchema,
376
376
  wrapInTag
377
- } from "./chunk-KRDGM5WO.js";
377
+ } from "./chunk-WBMTCMI4.js";
378
378
  import {
379
379
  cloneMcpConfig,
380
380
  ensureCompatibilityImports,
@@ -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-MZCE7SRR.js";
6
+ } from "./chunk-5P4GVEQE.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-KRDGM5WO.js";
12
+ } from "./chunk-WBMTCMI4.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -9,7 +9,7 @@ import {
9
9
  spawnSubagentRequestSchema,
10
10
  subagentResponseSchema,
11
11
  waitSubagentRequestSchema
12
- } from "./chunk-KRDGM5WO.js";
12
+ } from "./chunk-WBMTCMI4.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1151",
3
+ "version": "0.1.1153",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",