replicas-engine 0.1.320 → 0.1.321

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.
package/dist/src/index.js CHANGED
@@ -287,7 +287,7 @@ var WORKSPACE_SIZES = ["small", "large"];
287
287
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
288
288
 
289
289
  // ../shared/src/e2b.ts
290
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-15-v4";
290
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-15-v5";
291
291
 
292
292
  // ../shared/src/runtime-env.ts
293
293
  function parsePosixEnvFile(content) {
@@ -3629,7 +3629,7 @@ var GitService = class {
3629
3629
  if (persistedBranch && await branchExists(persistedBranch, repo.path)) {
3630
3630
  const currentBranch = await getCurrentBranch(repo.path);
3631
3631
  if (currentBranch !== persistedBranch) {
3632
- await runGitCommand(["checkout", persistedBranch], repo.path);
3632
+ await this.checkoutWithoutHooks([persistedBranch], repo.path);
3633
3633
  }
3634
3634
  results.push({
3635
3635
  name: repo.name,
@@ -3639,7 +3639,7 @@ var GitService = class {
3639
3639
  });
3640
3640
  continue;
3641
3641
  }
3642
- await runGitCommand(["checkout", repo.defaultBranch], repo.path);
3642
+ await this.checkoutWithoutHooks([repo.defaultBranch], repo.path);
3643
3643
  if (!skipNetworkRefresh) {
3644
3644
  try {
3645
3645
  await runGitCommand(["pull", "--rebase", "--autostash"], repo.path);
@@ -3647,7 +3647,7 @@ var GitService = class {
3647
3647
  }
3648
3648
  }
3649
3649
  const branchName = await this.findAvailableBranchName(workspaceName, repo.path);
3650
- await runGitCommand(["checkout", "-b", branchName], repo.path);
3650
+ await this.checkoutWithoutHooks(["-b", branchName], repo.path);
3651
3651
  await saveRepoState(repo.name, { currentBranch: branchName }, baselineState);
3652
3652
  results.push({
3653
3653
  name: repo.name,
@@ -3923,6 +3923,9 @@ var GitService = class {
3923
3923
  }
3924
3924
  return `${sanitizedBaseName}-${Date.now()}`;
3925
3925
  }
3926
+ checkoutWithoutHooks(args, cwd) {
3927
+ return runGitCommand(["-c", "core.hooksPath=/dev/null", "checkout", ...args], cwd);
3928
+ }
3926
3929
  sanitizeBranchName(name) {
3927
3930
  const normalized = name.toLowerCase().replace(/[^a-z0-9._/-]+/g, "-").replace(/\/{2,}/g, "/").replace(/^-+|-+$/g, "");
3928
3931
  return normalized || "replicas";
@@ -7143,7 +7146,7 @@ var AspClient = class {
7143
7146
  // src/managers/codex-asp/app-server-process.ts
7144
7147
  var DEFAULT_CODEX_BINARY = "codex";
7145
7148
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
7146
- var ENGINE_PACKAGE_VERSION = "0.1.320";
7149
+ var ENGINE_PACKAGE_VERSION = "0.1.321";
7147
7150
  var INITIALIZE_METHOD = "initialize";
7148
7151
  var INITIALIZED_NOTIFICATION = "initialized";
7149
7152
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.320",
3
+ "version": "0.1.321",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",