replicas-engine 0.1.1027 → 0.1.1028

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-73446GJ3.js";
9
- import "./chunk-QFJFKNXF.js";
10
- import "./chunk-FOVYFK2H.js";
11
- import "./chunk-IPL36DTU.js";
8
+ } from "./chunk-DU4QTHOX.js";
9
+ import "./chunk-OK37MIB6.js";
10
+ import "./chunk-LY4WTFXS.js";
11
+ import "./chunk-CFLUSFBP.js";
12
12
  import "./chunk-UZSNFLDQ.js";
13
- import "./chunk-HLUAG4YU.js";
13
+ import "./chunk-BFHGBJO2.js";
14
14
  import "./chunk-VEQXQN22.js";
15
15
  export {
16
16
  getCodexAspHost,
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-HLUAG4YU.js";
8
+ } from "./chunk-BFHGBJO2.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  monolithRequest
6
- } from "./chunk-QFJFKNXF.js";
6
+ } from "./chunk-OK37MIB6.js";
7
7
  import {
8
8
  SUBPROCESS_MAX_BUFFER,
9
9
  execFileAsync
10
- } from "./chunk-IPL36DTU.js";
10
+ } from "./chunk-CFLUSFBP.js";
11
11
  import {
12
12
  extractCommandProtectionCommandText,
13
13
  findCommandProtectionGitLookups,
14
14
  findGitCommitSignals,
15
15
  findPrMergeSignals,
16
16
  parseCommandProtectionRequest
17
- } from "./chunk-HLUAG4YU.js";
17
+ } from "./chunk-BFHGBJO2.js";
18
18
 
19
19
  // src/services/command-protection-service.ts
20
20
  import { readFile, stat } from "fs/promises";
@@ -7619,6 +7619,7 @@ var EGRESS_SHELL_CONFIG = [
7619
7619
  `EGRESS_UDP_MAX_ASSOCIATIONS=${EGRESS_UDP_MAX_ASSOCIATIONS}`
7620
7620
  ].join("\n");
7621
7621
  var EGRESS_TUNNEL_SERVICE = "replicas-egress.service";
7622
+ var EGRESS_ROUTES_SERVICE = "replicas-egress-routes.service";
7622
7623
  var EGRESS_TUNNEL_INTERFACE = "rpxtun0";
7623
7624
  var EGRESS_PATHS = {
7624
7625
  /**
@@ -7631,9 +7632,11 @@ var EGRESS_PATHS = {
7631
7632
  CONFIG_DIR: "/run/replicas-egress",
7632
7633
  CONFIG_FILE: "/run/replicas-egress/config.json",
7633
7634
  REVISION_FILE: "/run/replicas-egress/revision",
7635
+ DESTINATIONS_FILE: "/run/replicas-egress/destinations",
7634
7636
  /** Persistent: this records the workspace's original resolver so the tunnel can put it back, and must outlive a reboot. */
7635
7637
  RESOLV_BACKUP: "/var/lib/replicas-egress-resolv.conf.orig",
7636
7638
  UNIT_FILE: `/etc/systemd/system/${EGRESS_TUNNEL_SERVICE}`,
7639
+ ROUTES_UNIT_FILE: `/etc/systemd/system/${EGRESS_ROUTES_SERVICE}`,
7637
7640
  UP_SCRIPT: "/usr/local/lib/replicas-egress-up",
7638
7641
  DOWN_SCRIPT: "/usr/local/lib/replicas-egress-down"
7639
7642
  };
@@ -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-HLUAG4YU.js";
6
+ } from "./chunk-BFHGBJO2.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -5,15 +5,15 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-QFJFKNXF.js";
8
+ } from "./chunk-OK37MIB6.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  buildCodexAgentEnv
12
- } from "./chunk-FOVYFK2H.js";
12
+ } from "./chunk-LY4WTFXS.js";
13
13
  import {
14
14
  SUBPROCESS_MAX_BUFFER,
15
15
  execFileAsync
16
- } from "./chunk-IPL36DTU.js";
16
+ } from "./chunk-CFLUSFBP.js";
17
17
  import {
18
18
  isRecord
19
19
  } from "./chunk-UZSNFLDQ.js";
@@ -28,7 +28,7 @@ import {
28
28
  listOpenAICompatibleModels,
29
29
  readOllamaAuthEnv,
30
30
  resolveOpenAICompatibleModelsUrl
31
- } from "./chunk-HLUAG4YU.js";
31
+ } from "./chunk-BFHGBJO2.js";
32
32
 
33
33
  // src/managers/codex-token-manager.ts
34
34
  import { promises as fs } from "fs";
@@ -264,7 +264,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
264
264
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
265
265
  await this.applyCredentialsResponse(data);
266
266
  setAgentCredentialSnapshot("codex", data);
267
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-R6LN7ANF.js");
267
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-A57BJZPM.js");
268
268
  await restartCodexAspHostIfRunning2();
269
269
  });
270
270
  await this.start(true);
@@ -285,7 +285,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
285
285
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
286
286
  await this.applyCredentialsResponse(data);
287
287
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
288
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-R6LN7ANF.js");
288
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-A57BJZPM.js");
289
289
  await restartCodexAspHostIfRunning2();
290
290
  }
291
291
  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-IPL36DTU.js";
6
+ } from "./chunk-CFLUSFBP.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-HLUAG4YU.js";
9
+ } from "./chunk-BFHGBJO2.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.1027";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1028";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -14,7 +14,7 @@ import {
14
14
  isValidAgentProvider,
15
15
  parsePosixEnvFile,
16
16
  readReplicasRuntimeEnv
17
- } from "./chunk-HLUAG4YU.js";
17
+ } from "./chunk-BFHGBJO2.js";
18
18
 
19
19
  // src/runtime-env-loader.ts
20
20
  import { readFileSync } from "fs";
@@ -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-7BKBAILL.js";
7
- import "./chunk-QFJFKNXF.js";
8
- import "./chunk-IPL36DTU.js";
6
+ } from "./chunk-AWQZGS2I.js";
7
+ import "./chunk-OK37MIB6.js";
8
+ import "./chunk-CFLUSFBP.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-HLUAG4YU.js";
12
+ import "./chunk-BFHGBJO2.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  AppServerProcess,
9
9
  buildCodexAgentEnv
10
- } from "./chunk-FOVYFK2H.js";
11
- import "./chunk-IPL36DTU.js";
10
+ } from "./chunk-LY4WTFXS.js";
11
+ import "./chunk-CFLUSFBP.js";
12
12
  import {
13
13
  AGENT,
14
14
  headlessAgentRequestSchema
15
- } from "./chunk-HLUAG4YU.js";
15
+ } from "./chunk-BFHGBJO2.js";
16
16
  import "./chunk-VEQXQN22.js";
17
17
 
18
18
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  reportCommandProtectionBlock,
33
33
  resolveDiffBase,
34
34
  runGitCommand
35
- } from "./chunk-7BKBAILL.js";
35
+ } from "./chunk-AWQZGS2I.js";
36
36
  import {
37
37
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
38
38
  AGENT_MESSAGE_DELTA_METHOD,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-P73LGPQO.js";
58
58
  import {
59
59
  publishedPullRequestUrls
60
- } from "./chunk-X5VJ2FDA.js";
60
+ } from "./chunk-3OGTHVR4.js";
61
61
  import {
62
62
  BaseRefreshManager,
63
63
  CodexAspAuthMethodChangedError,
@@ -71,7 +71,7 @@ import {
71
71
  refreshDelayMs,
72
72
  restartCodexAspHost,
73
73
  routineRefreshRequest
74
- } from "./chunk-73446GJ3.js";
74
+ } from "./chunk-DU4QTHOX.js";
75
75
  import {
76
76
  ENGINE_ENV,
77
77
  monolithRequest,
@@ -79,16 +79,16 @@ import {
79
79
  readRuntimeEnvFile,
80
80
  reloadEngineEnv,
81
81
  setAgentCredentialSnapshot
82
- } from "./chunk-QFJFKNXF.js";
82
+ } from "./chunk-OK37MIB6.js";
83
83
  import {
84
84
  AspClient,
85
85
  getCodexModelProvider
86
- } from "./chunk-FOVYFK2H.js";
86
+ } from "./chunk-LY4WTFXS.js";
87
87
  import {
88
88
  SUBPROCESS_MAX_BUFFER,
89
89
  execAsync,
90
90
  execFileAsync
91
- } from "./chunk-IPL36DTU.js";
91
+ } from "./chunk-CFLUSFBP.js";
92
92
  import {
93
93
  isRecord as isRecord2
94
94
  } from "./chunk-UZSNFLDQ.js";
@@ -318,7 +318,7 @@ import {
318
318
  workspaceTokenRequestSchema,
319
319
  workspaceTokenResponseSchema,
320
320
  wrapInTag
321
- } from "./chunk-HLUAG4YU.js";
321
+ } from "./chunk-BFHGBJO2.js";
322
322
  import {
323
323
  cloneMcpConfig,
324
324
  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-X5VJ2FDA.js";
6
+ } from "./chunk-3OGTHVR4.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-HLUAG4YU.js";
12
+ } from "./chunk-BFHGBJO2.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-HLUAG4YU.js";
12
+ } from "./chunk-BFHGBJO2.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.1027",
3
+ "version": "0.1.1028",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",