replicas-engine 0.1.663 → 0.1.664
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.
|
@@ -6332,7 +6332,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
6332
6332
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
6333
6333
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
6334
6334
|
var codexCliVersionEnsured = null;
|
|
6335
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
6335
|
+
var ENGINE_PACKAGE_VERSION = "0.1.664";
|
|
6336
6336
|
var INITIALIZE_METHOD = "initialize";
|
|
6337
6337
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
6338
6338
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
package/dist/src/index.js
CHANGED
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
serializeCanvasContentResponse,
|
|
187
187
|
shellQuotePosix,
|
|
188
188
|
stripAgentDiagnosticErrors
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-L4RE37PJ.js";
|
|
190
190
|
|
|
191
191
|
// src/index.ts
|
|
192
192
|
import { serve } from "@hono/node-server";
|
|
@@ -3317,7 +3317,7 @@ var AuthFallbackCoordinator = class {
|
|
|
3317
3317
|
`${this.provider} ${reason === "out_of_credits" ? "is out of credits" : "hit its usage limit"}: ${detail}`,
|
|
3318
3318
|
"exhausted"
|
|
3319
3319
|
);
|
|
3320
|
-
if (!swap.ok && swap.error.code === "no_credentials") return "
|
|
3320
|
+
if (!swap.ok && swap.error.code === "no_credentials") return "not_configured";
|
|
3321
3321
|
const applied = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS[this.provider] ?? exhausted;
|
|
3322
3322
|
const moved = swap.ok && !(applied.method === exhausted.method && applied.scope === exhausted.scope);
|
|
3323
3323
|
const payload = {
|
|
@@ -4925,7 +4925,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
4925
4925
|
}
|
|
4926
4926
|
async emitQuotaExhaustedEvent(kind, outcome, detail) {
|
|
4927
4927
|
const limit = kind === "out_of_credits" ? "Claude ran out of credits on the credential this workspace is using." : "Claude hit the usage limit on the credential this workspace is using.";
|
|
4928
|
-
const next = outcome === "failed" ? "
|
|
4928
|
+
const next = outcome === "failed" ? "The configured fallback credential could not be used. Check it in Settings \u2192 Agents and try again." : outcome === "not_configured" ? "No fallback credential is configured for this workspace. Add one in Settings \u2192 Agents, or try again once the limit resets." : "No other credential is available for this workspace. Check Settings \u2192 Agents, or try again once the limit resets.";
|
|
4929
4929
|
await this.emitTerminalErrorResult(detail, [`${limit} ${next}`]);
|
|
4930
4930
|
}
|
|
4931
4931
|
async emitMidTurnExhaustedEvent(error) {
|