replicas-engine 0.1.1449 → 0.1.1450

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,9 +8,9 @@ import {
8
8
  listCodexModelsForDetails,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-SYVJFUHM.js";
12
- import "./chunk-WVJWUTYG.js";
13
- import "./chunk-QFIUGNRG.js";
11
+ } from "./chunk-WBE5WISM.js";
12
+ import "./chunk-7M7PJ3XI.js";
13
+ import "./chunk-KK7VC54U.js";
14
14
  import "./chunk-WGUAFQCZ.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
16
  import "./chunk-F6HATEVE.js";
@@ -6,7 +6,7 @@ import {
6
6
  getOriginDefaultBranch,
7
7
  monolithRequest,
8
8
  runGitCommand
9
- } from "./chunk-WVJWUTYG.js";
9
+ } from "./chunk-7M7PJ3XI.js";
10
10
  import {
11
11
  extractCommandProtectionCommandText,
12
12
  findCommandProtectionGitLookups,
@@ -211,6 +211,7 @@ function setAgentCredentialSnapshot(provider, { type, scope, revision, account,
211
211
  // src/git/commands.ts
212
212
  import { readdirSync, readFileSync as readFileSync3, statSync } from "fs";
213
213
  import { join as join3, resolve } from "path";
214
+ var UNQUOTED_PATHS_CONFIG = ["-c", "core.quotePath=false"];
214
215
  async function runGitCommand(args, cwd, options = {}) {
215
216
  const { stdout } = await execFileAsync("git", args, {
216
217
  cwd,
@@ -365,6 +366,7 @@ export {
365
366
  reloadEngineEnv,
366
367
  setLinearSessionId,
367
368
  setAgentCredentialSnapshot,
369
+ UNQUOTED_PATHS_CONFIG,
368
370
  runGitCommand,
369
371
  readRepoHeadBranches,
370
372
  getOriginDefaultBranch,
@@ -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-QFIUGNRG.js";
6
+ } from "./chunk-KK7VC54U.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -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.1449";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1450";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -3,6 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  ENGINE_ENV,
6
+ UNQUOTED_PATHS_CONFIG,
6
7
  getCurrentBranch,
7
8
  getOriginDefaultBranch,
8
9
  monolithRequest,
@@ -10,11 +11,11 @@ import {
10
11
  resolveDiffBase,
11
12
  runGitCommand,
12
13
  setAgentCredentialSnapshot
13
- } from "./chunk-WVJWUTYG.js";
14
+ } from "./chunk-7M7PJ3XI.js";
14
15
  import {
15
16
  AppServerProcess,
16
17
  buildCodexAgentEnv
17
- } from "./chunk-QFIUGNRG.js";
18
+ } from "./chunk-KK7VC54U.js";
18
19
  import {
19
20
  SUBPROCESS_MAX_BUFFER,
20
21
  execFileAsync
@@ -319,7 +320,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
319
320
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
320
321
  await this.applyCredentialsResponse(data);
321
322
  setAgentCredentialSnapshot("codex", data);
322
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-G3WMDUB7.js");
323
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-FZSBOSM5.js");
323
324
  await restartCodexAspHostIfRunning2();
324
325
  });
325
326
  await this.start(true);
@@ -341,7 +342,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
341
342
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
342
343
  await this.applyCredentialsResponse(data);
343
344
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
344
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-G3WMDUB7.js");
345
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-FZSBOSM5.js");
345
346
  await restartCodexAspHostIfRunning2();
346
347
  }
347
348
  setAgentCredentialSnapshot("codex", data);
@@ -674,7 +675,7 @@ var FULL_DIFF_MAX_BUFFER = 50 * 1024 * 1024;
674
675
  var MAX_DIFF_FILE_BYTES = 1024 * 1024;
675
676
  var MAX_UNTRACKED_DIFF_BYTES = 10 * 1024 * 1024;
676
677
  var UNTRACKED_STAT_CONCURRENCY = 64;
677
- var BIG_FILE_THRESHOLD_CONFIG = ["-c", `core.bigFileThreshold=${MAX_DIFF_FILE_BYTES}`];
678
+ var DIFF_CONFIG = ["-c", `core.bigFileThreshold=${MAX_DIFF_FILE_BYTES}`, ...UNQUOTED_PATHS_CONFIG];
678
679
  function appendUniqueUrl(urls, url) {
679
680
  return urls.includes(url) ? urls : [...urls, url];
680
681
  }
@@ -874,7 +875,7 @@ var GitService = class {
874
875
  return this.diffStatsInFlight.run(repoPath, async () => {
875
876
  try {
876
877
  const diffBase = await resolveDiffBase(repoPath, defaultBranch);
877
- const shortstat = await runGitCommand([...BIG_FILE_THRESHOLD_CONFIG, "diff", diffBase, "--shortstat", "-M"], repoPath);
878
+ const shortstat = await runGitCommand([...DIFF_CONFIG, "diff", diffBase, "--shortstat", "-M"], repoPath);
878
879
  let added = 0;
879
880
  let removed = 0;
880
881
  const addedMatch = shortstat.match(/(\d+) insertion/);
@@ -950,7 +951,7 @@ Binary files /dev/null and ${quote(`b/${path2}`)} differ
950
951
  }
951
952
  readUntrackedDiff(repoPath, paths) {
952
953
  return new Promise((resolve) => {
953
- const child = spawn("git", ["diff", "--", ...paths], {
954
+ const child = spawn("git", [...DIFF_CONFIG, "diff", "--", ...paths], {
954
955
  cwd: repoPath,
955
956
  stdio: ["ignore", "pipe", "pipe"]
956
957
  });
@@ -1010,7 +1011,7 @@ Binary files /dev/null and ${quote(`b/${path2}`)} differ
1010
1011
  return this.fullDiffInFlight.run(key, async () => {
1011
1012
  try {
1012
1013
  const diffBase = await resolveDiffBase(repoPath, defaultBranch);
1013
- const { stdout: trackedDiff } = await execFileAsync("git", [...BIG_FILE_THRESHOLD_CONFIG, "diff", diffBase, "-M", "-C"], {
1014
+ const { stdout: trackedDiff } = await execFileAsync("git", [...DIFF_CONFIG, "diff", diffBase, "-M", "-C"], {
1014
1015
  cwd: repoPath,
1015
1016
  encoding: "utf-8",
1016
1017
  maxBuffer: FULL_DIFF_MAX_BUFFER
@@ -3,8 +3,8 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-EG2R2LTF.js";
7
- import "./chunk-WVJWUTYG.js";
6
+ } from "./chunk-7DHXN5FA.js";
7
+ import "./chunk-7M7PJ3XI.js";
8
8
  import "./chunk-WGUAFQCZ.js";
9
9
  import {
10
10
  isRecord
@@ -14,11 +14,11 @@ import {
14
14
  recoverCompletedTurn,
15
15
  spawnMuseMsp,
16
16
  startMuseSession
17
- } from "./chunk-4YE3FE3L.js";
17
+ } from "./chunk-J4EURBFX.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-QFIUGNRG.js";
21
+ } from "./chunk-KK7VC54U.js";
22
22
  import "./chunk-WGUAFQCZ.js";
23
23
  import {
24
24
  AGENT,
package/dist/src/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  evaluateCommandProtection,
28
28
  extractToolCommand,
29
29
  reportCommandProtectionBlock
30
- } from "./chunk-EG2R2LTF.js";
30
+ } from "./chunk-7DHXN5FA.js";
31
31
  import {
32
32
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
33
33
  AGENT_MESSAGE_DELTA_METHOD,
@@ -65,7 +65,7 @@ import {
65
65
  spawnMuseMsp,
66
66
  startMuseSession,
67
67
  uuidV7
68
- } from "./chunk-4YE3FE3L.js";
68
+ } from "./chunk-J4EURBFX.js";
69
69
  import {
70
70
  publishedPullRequestUrls
71
71
  } from "./chunk-ZWAYDHME.js";
@@ -143,9 +143,10 @@ import {
143
143
  timestampFromSeconds,
144
144
  upsertCredentialFileLines,
145
145
  writeSecureCredentialFile
146
- } from "./chunk-SYVJFUHM.js";
146
+ } from "./chunk-WBE5WISM.js";
147
147
  import {
148
148
  ENGINE_ENV,
149
+ UNQUOTED_PATHS_CONFIG,
149
150
  monolithRequest,
150
151
  monolithService,
151
152
  readRuntimeEnvFile,
@@ -153,10 +154,10 @@ import {
153
154
  resolveDiffBase,
154
155
  setAgentCredentialSnapshot,
155
156
  setLinearSessionId
156
- } from "./chunk-WVJWUTYG.js";
157
+ } from "./chunk-7M7PJ3XI.js";
157
158
  import {
158
159
  getCodexModelProvider
159
- } from "./chunk-QFIUGNRG.js";
160
+ } from "./chunk-KK7VC54U.js";
160
161
  import {
161
162
  SUBPROCESS_MAX_BUFFER,
162
163
  execAsync,
@@ -62539,7 +62540,7 @@ function isBinaryExtension(filePath) {
62539
62540
  }
62540
62541
  function execGitAsync(args, cwd, timeoutMs) {
62541
62542
  return new Promise((resolve7, reject) => {
62542
- const child = execFile7("git", args, {
62543
+ const child = execFile7("git", [...UNQUOTED_PATHS_CONFIG, ...args], {
62543
62544
  cwd,
62544
62545
  encoding: "utf-8",
62545
62546
  timeout: timeoutMs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1449",
3
+ "version": "0.1.1450",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",