replicas-engine 0.1.379 → 0.1.381
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 +24 -3
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -484,7 +484,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
484
484
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
485
485
|
|
|
486
486
|
// ../shared/src/e2b.ts
|
|
487
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-
|
|
487
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-02-v2";
|
|
488
488
|
|
|
489
489
|
// ../shared/src/runtime-env.ts
|
|
490
490
|
function parsePosixEnvFile(content) {
|
|
@@ -7050,9 +7050,29 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
7050
7050
|
const detail = error instanceof Error ? error.message : String(error);
|
|
7051
7051
|
await this.emitTerminalErrorResult(
|
|
7052
7052
|
detail,
|
|
7053
|
-
[
|
|
7053
|
+
[this.claudeAuthFailureMessage()]
|
|
7054
7054
|
);
|
|
7055
7055
|
}
|
|
7056
|
+
claudeAuthFailureMessage() {
|
|
7057
|
+
switch (this.resolveClaudeAuthMethodForMessage()) {
|
|
7058
|
+
case "oauth":
|
|
7059
|
+
return "Claude Code OAuth authentication failed after refreshing credentials. Reconnect Claude Code in Settings \u2192 Agents and try again.";
|
|
7060
|
+
case "api_key":
|
|
7061
|
+
return "Anthropic API key authentication failed. The key may be invalid, revoked, out of credits, or missing access to the selected Claude model. Update the Anthropic API key in Settings \u2192 Agents and try again.";
|
|
7062
|
+
case "bedrock":
|
|
7063
|
+
return "AWS Bedrock authentication failed. Check the Bedrock credentials, region, IAM permissions, and Claude model access in Settings \u2192 Agents, then try again.";
|
|
7064
|
+
default:
|
|
7065
|
+
return "Claude authentication failed after multiple attempts. Check your Claude, Anthropic API key, or Bedrock credentials in Settings \u2192 Agents and try again.";
|
|
7066
|
+
}
|
|
7067
|
+
}
|
|
7068
|
+
resolveClaudeAuthMethodForMessage() {
|
|
7069
|
+
if (ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "oauth" || ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "api_key" || ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "bedrock") {
|
|
7070
|
+
return ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD;
|
|
7071
|
+
}
|
|
7072
|
+
if (ENGINE_ENV.CLAUDE_CODE_USE_BEDROCK === "1" || ENGINE_ENV.AWS_ACCESS_KEY_ID || ENGINE_ENV.AWS_SECRET_ACCESS_KEY) return "bedrock";
|
|
7073
|
+
if (ENGINE_ENV.ANTHROPIC_API_KEY) return "api_key";
|
|
7074
|
+
return "unknown";
|
|
7075
|
+
}
|
|
7056
7076
|
async emitMidTurnExhaustedEvent(error) {
|
|
7057
7077
|
const detail = error instanceof Error ? error.message : String(error);
|
|
7058
7078
|
await this.emitTerminalErrorResult(
|
|
@@ -7828,7 +7848,7 @@ var AspClient = class {
|
|
|
7828
7848
|
// src/managers/codex-asp/app-server-process.ts
|
|
7829
7849
|
var DEFAULT_CODEX_BINARY = "codex";
|
|
7830
7850
|
var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
7831
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
7851
|
+
var ENGINE_PACKAGE_VERSION = "0.1.381";
|
|
7832
7852
|
var INITIALIZE_METHOD = "initialize";
|
|
7833
7853
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
7834
7854
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -8205,6 +8225,7 @@ function itemToTranscriptItem(item, timestamp, status) {
|
|
|
8205
8225
|
type: "commandExecution",
|
|
8206
8226
|
id: item.id,
|
|
8207
8227
|
command: item.command,
|
|
8228
|
+
commandActions: item.commandActions,
|
|
8208
8229
|
...item.aggregatedOutput ? { output: truncateCodexAspTranscriptOutput(item.aggregatedOutput) } : {},
|
|
8209
8230
|
exitCode,
|
|
8210
8231
|
timestamp,
|