replicas-engine 0.1.479 → 0.1.480
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 +6 -5
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -582,7 +582,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
582
582
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
583
583
|
|
|
584
584
|
// ../shared/src/e2b.ts
|
|
585
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-22-
|
|
585
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-22-v5";
|
|
586
586
|
|
|
587
587
|
// ../shared/src/runtime-env.ts
|
|
588
588
|
function shellQuotePosix(value) {
|
|
@@ -5494,7 +5494,7 @@ var GitService = class {
|
|
|
5494
5494
|
const data = await response.json();
|
|
5495
5495
|
if (!Array.isArray(data)) return { status: "not_found" };
|
|
5496
5496
|
const branchMatches = data.filter((item) => isRecord4(item) && item.source_branch === branch);
|
|
5497
|
-
const mergeRequest = branchMatches.find((item) => item.state === "opened") ?? branchMatches[0]
|
|
5497
|
+
const mergeRequest = branchMatches.find((item) => item.state === "opened") ?? branchMatches[0];
|
|
5498
5498
|
if (!isRecord4(mergeRequest)) return { status: "not_found" };
|
|
5499
5499
|
const webUrl = mergeRequest.web_url;
|
|
5500
5500
|
if (typeof webUrl === "string" && webUrl.length > 0) return { status: "found", url: webUrl };
|
|
@@ -5592,14 +5592,15 @@ var GitService = class {
|
|
|
5592
5592
|
}
|
|
5593
5593
|
}
|
|
5594
5594
|
async refreshRepoMetadata(repo, currentBranch, startHooksCompleted, persistedState, observedBranches, includeDiffs = false) {
|
|
5595
|
-
const
|
|
5595
|
+
const notFound = { status: "not_found" };
|
|
5596
|
+
const prResult = currentBranch === repo.defaultBranch ? notFound : await this.getPullRequestUrl(repo.name, repo.path, currentBranch, persistedState);
|
|
5596
5597
|
let prUrls = persistedState?.prUrls ?? [];
|
|
5597
5598
|
if (prResult.status === "found") {
|
|
5598
5599
|
prUrls = appendUniqueUrl(prUrls, prResult.url);
|
|
5599
5600
|
}
|
|
5600
5601
|
if (observedBranches) {
|
|
5601
5602
|
for (const branch of observedBranches) {
|
|
5602
|
-
if (branch === currentBranch) continue;
|
|
5603
|
+
if (branch === currentBranch || branch === repo.defaultBranch) continue;
|
|
5603
5604
|
const branchResult = await this.lookupPrOnRemote(repo.name, repo.path, branch);
|
|
5604
5605
|
if (branchResult.status === "found") {
|
|
5605
5606
|
prUrls = appendUniqueUrl(prUrls, branchResult.url);
|
|
@@ -9800,7 +9801,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
9800
9801
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
9801
9802
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
9802
9803
|
var codexCliVersionEnsured = null;
|
|
9803
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
9804
|
+
var ENGINE_PACKAGE_VERSION = "0.1.480";
|
|
9804
9805
|
var INITIALIZE_METHOD = "initialize";
|
|
9805
9806
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
9806
9807
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|