replicas-engine 0.1.337 → 0.1.338

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.
Files changed (2) hide show
  1. package/dist/src/index.js +13 -6
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -295,7 +295,7 @@ var WORKSPACE_SIZES = ["small", "large"];
295
295
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
296
296
 
297
297
  // ../shared/src/e2b.ts
298
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-22-v3";
298
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-22-v4";
299
299
 
300
300
  // ../shared/src/runtime-env.ts
301
301
  function parsePosixEnvFile(content) {
@@ -3652,10 +3652,11 @@ var GitService = class {
3652
3652
  const states = [];
3653
3653
  for (const repo of repos) {
3654
3654
  try {
3655
- const [persistedState, currentBranchRaw, gitDiff] = await Promise.all([
3655
+ const [persistedState, currentBranchRaw, gitDiff, provider] = await Promise.all([
3656
3656
  loadRepoState(repo.name),
3657
3657
  getCurrentBranch(repo.path),
3658
- this.getGitDiffStats(repo.path, repo.defaultBranch)
3658
+ this.getGitDiffStats(repo.path, repo.defaultBranch),
3659
+ this.resolveCodeHostProvider(repo.path)
3659
3660
  ]);
3660
3661
  const currentBranch = currentBranchRaw ?? repo.defaultBranch;
3661
3662
  const fullDiff = includeDiffs && gitDiff ? await this.getFullGitDiff(repo.path, repo.defaultBranch) : void 0;
@@ -3667,7 +3668,8 @@ var GitService = class {
3667
3668
  prUrls: persistedState?.prUrls ?? [],
3668
3669
  // fullDiff may be empty if the diff subprocess fails.
3669
3670
  gitDiff: includeDiffs && gitDiff ? { ...gitDiff, fullDiff: fullDiff ?? "" } : gitDiff,
3670
- startHooksCompleted: persistedState?.startHooksCompleted ?? false
3671
+ startHooksCompleted: persistedState?.startHooksCompleted ?? false,
3672
+ provider
3671
3673
  });
3672
3674
  } catch {
3673
3675
  }
@@ -4030,6 +4032,10 @@ var GitService = class {
4030
4032
  return { status: "error" };
4031
4033
  }
4032
4034
  }
4035
+ async resolveCodeHostProvider(repoPath) {
4036
+ const origin = await this.getOriginInfo(repoPath);
4037
+ return origin.provider === "unknown" ? void 0 : origin.provider;
4038
+ }
4033
4039
  async getOriginInfo(repoPath) {
4034
4040
  const cached = this.originInfoCache.get(repoPath);
4035
4041
  if (cached !== void 0) {
@@ -4173,7 +4179,8 @@ var GitService = class {
4173
4179
  currentBranch,
4174
4180
  prUrls,
4175
4181
  gitDiff: await this.getGitDiffStats(repo.path, repo.defaultBranch),
4176
- startHooksCompleted
4182
+ startHooksCompleted,
4183
+ provider: await this.resolveCodeHostProvider(repo.path)
4177
4184
  };
4178
4185
  await saveRepoState(repo.name, state, state);
4179
4186
  return state;
@@ -7501,7 +7508,7 @@ var AspClient = class {
7501
7508
  // src/managers/codex-asp/app-server-process.ts
7502
7509
  var DEFAULT_CODEX_BINARY = "codex";
7503
7510
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
7504
- var ENGINE_PACKAGE_VERSION = "0.1.337";
7511
+ var ENGINE_PACKAGE_VERSION = "0.1.338";
7505
7512
  var INITIALIZE_METHOD = "initialize";
7506
7513
  var INITIALIZED_NOTIFICATION = "initialized";
7507
7514
  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.337",
3
+ "version": "0.1.338",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",