replicas-engine 0.1.460 → 0.1.461
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 +12 -11
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -543,7 +543,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
543
543
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
544
544
|
|
|
545
545
|
// ../shared/src/e2b.ts
|
|
546
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-19-
|
|
546
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-19-v13";
|
|
547
547
|
|
|
548
548
|
// ../shared/src/runtime-env.ts
|
|
549
549
|
function shellQuotePosix(value) {
|
|
@@ -6774,6 +6774,15 @@ var CodingAgentManager = class {
|
|
|
6774
6774
|
};
|
|
6775
6775
|
|
|
6776
6776
|
// src/utils/agent-env.ts
|
|
6777
|
+
function resolveClaudeAuthMethodForMessage(env = ENGINE_ENV) {
|
|
6778
|
+
const method = env.REPLICAS_CLAUDE_AUTH_METHOD;
|
|
6779
|
+
if (method && method !== "none") {
|
|
6780
|
+
return method;
|
|
6781
|
+
}
|
|
6782
|
+
if (env.CLAUDE_CODE_USE_BEDROCK === "1") return "bedrock";
|
|
6783
|
+
if (env.ANTHROPIC_API_KEY) return "api_key";
|
|
6784
|
+
return "unknown";
|
|
6785
|
+
}
|
|
6777
6786
|
function buildClaudeAgentEnv(overrides) {
|
|
6778
6787
|
const env = { ...process.env };
|
|
6779
6788
|
if (overrides) {
|
|
@@ -7790,7 +7799,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
7790
7799
|
);
|
|
7791
7800
|
}
|
|
7792
7801
|
claudeAuthFailureMessage() {
|
|
7793
|
-
switch (
|
|
7802
|
+
switch (resolveClaudeAuthMethodForMessage()) {
|
|
7794
7803
|
case "oauth":
|
|
7795
7804
|
return "Claude Code OAuth authentication failed after refreshing credentials. Reconnect Claude Code in Settings \u2192 Agents and try again.";
|
|
7796
7805
|
case "api_key":
|
|
@@ -7803,14 +7812,6 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
7803
7812
|
return "Claude authentication failed after multiple attempts. Check your Claude, Anthropic API key, or Bedrock credentials in Settings \u2192 Agents and try again.";
|
|
7804
7813
|
}
|
|
7805
7814
|
}
|
|
7806
|
-
resolveClaudeAuthMethodForMessage() {
|
|
7807
|
-
if (ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "oauth" || ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "api_key" || ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "bedrock" || ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "foundry") {
|
|
7808
|
-
return ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD;
|
|
7809
|
-
}
|
|
7810
|
-
if (ENGINE_ENV.CLAUDE_CODE_USE_BEDROCK === "1" || ENGINE_ENV.AWS_ACCESS_KEY_ID || ENGINE_ENV.AWS_SECRET_ACCESS_KEY) return "bedrock";
|
|
7811
|
-
if (ENGINE_ENV.ANTHROPIC_API_KEY) return "api_key";
|
|
7812
|
-
return "unknown";
|
|
7813
|
-
}
|
|
7814
7815
|
async emitMidTurnExhaustedEvent(error) {
|
|
7815
7816
|
const detail = error instanceof Error ? error.message : String(error);
|
|
7816
7817
|
await this.emitTerminalErrorResult(
|
|
@@ -8604,7 +8605,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
8604
8605
|
var MIN_CODEX_CLI_VERSION = "0.144.0";
|
|
8605
8606
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
8606
8607
|
var codexCliVersionEnsured = null;
|
|
8607
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
8608
|
+
var ENGINE_PACKAGE_VERSION = "0.1.461";
|
|
8608
8609
|
var INITIALIZE_METHOD = "initialize";
|
|
8609
8610
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
8610
8611
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|