replicas-engine 0.1.957 → 0.1.959

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.
@@ -5,12 +5,12 @@ import {
5
5
  getCodexAspHost,
6
6
  restartCodexAspHost,
7
7
  restartCodexAspHostIfRunning
8
- } from "./chunk-4TRSKDZK.js";
9
- import "./chunk-42BR2ZBE.js";
10
- import "./chunk-RQXIJ3IG.js";
11
- import "./chunk-CYNWRZYJ.js";
8
+ } from "./chunk-TFD6QK6J.js";
9
+ import "./chunk-4HNUOSLS.js";
10
+ import "./chunk-X76Z5POI.js";
11
+ import "./chunk-CANEL3IU.js";
12
12
  import "./chunk-UZSNFLDQ.js";
13
- import "./chunk-FK3P6B55.js";
13
+ import "./chunk-QXISBAH5.js";
14
14
  import "./chunk-VEQXQN22.js";
15
15
  export {
16
16
  getCodexAspHost,
@@ -12,10 +12,9 @@ import {
12
12
  fallbackPlanResponseSchema,
13
13
  isRecord,
14
14
  isValidAgentProvider,
15
- isValidRelayBaseProvider,
16
15
  parsePosixEnvFile,
17
16
  readReplicasRuntimeEnv
18
- } from "./chunk-FK3P6B55.js";
17
+ } from "./chunk-QXISBAH5.js";
19
18
 
20
19
  // src/runtime-env-loader.ts
21
20
  import { readFileSync } from "fs";
@@ -189,14 +188,14 @@ async function monolithRequest(path, init = {}) {
189
188
  });
190
189
  }
191
190
  var MonolithService = class {
192
- async getRelayConfig() {
191
+ async getSubagentMcpConfig() {
193
192
  try {
194
- const response = await monolithRequest("/v1/engine/relay-subagent-providers", { method: "GET" });
193
+ const response = await monolithRequest("/v1/engine/subagent-mcp", { method: "GET", signal: AbortSignal.timeout(1e4) });
195
194
  if (!response.ok) {
196
195
  return null;
197
196
  }
198
197
  const body = await response.json();
199
- return isRecord(body) && Array.isArray(body.providers) && body.providers.every((provider) => typeof provider === "string" && isValidAgentProvider(provider)) && typeof body.baseProvider === "string" && isValidRelayBaseProvider(body.baseProvider) ? { providers: body.providers, baseProvider: body.baseProvider } : null;
198
+ return isRecord(body) && typeof body.enabled === "boolean" && Array.isArray(body.providers) && body.providers.every((provider) => typeof provider === "string" && isValidAgentProvider(provider)) ? { enabled: body.enabled, providers: body.providers } : null;
200
199
  } catch {
201
200
  return null;
202
201
  }
@@ -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-FK3P6B55.js";
6
+ } from "./chunk-QXISBAH5.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";