replicas-engine 0.1.268 → 0.1.269

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 CHANGED
@@ -286,7 +286,7 @@ var WORKSPACE_SIZES = ["small", "large"];
286
286
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
287
287
 
288
288
  // ../shared/src/e2b.ts
289
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-05-v5";
289
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-05-v6";
290
290
 
291
291
  // ../shared/src/runtime-env.ts
292
292
  function parsePosixEnvFile(content) {
@@ -1967,6 +1967,13 @@ function isClaudeAuthErrorText(text) {
1967
1967
  return lower.includes("failed to authenticate") || lower.includes("authentication_error") || lower.includes("authentication_failed") || lower.includes("authentication failed") || lower.includes("invalid authentication credentials") || lower.includes("not logged in") || lower.includes("please run /login") || lower.includes("credit balance is too low") || lower.includes("401") && lower.includes("authentic");
1968
1968
  }
1969
1969
 
1970
+ // ../shared/src/codex-auth.ts
1971
+ function isCodexAuthError(error) {
1972
+ const msg = error instanceof Error ? error.message : String(error);
1973
+ const lower = msg.toLowerCase();
1974
+ return lower.includes("unauthorized") || lower.includes("authentication") || lower.includes("invalid api key") || lower.includes("incorrect api key") || lower.includes("api key") && lower.includes("invalid") || lower.includes("401") || lower.includes('codexerrorinfo="unauthorized"') || lower.includes("codexerrorinfo=unauthorized") || lower.includes("failed to refresh token") || lower.includes("your session has ended");
1975
+ }
1976
+
1970
1977
  // ../shared/src/engine/environment.ts
1971
1978
  var DESKTOP_NOVNC_PORT = 6080;
1972
1979
 
@@ -6575,7 +6582,7 @@ var AspClient = class {
6575
6582
  // src/managers/codex-asp/app-server-process.ts
6576
6583
  var DEFAULT_CODEX_BINARY = "codex";
6577
6584
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
6578
- var ENGINE_PACKAGE_VERSION = "0.1.268";
6585
+ var ENGINE_PACKAGE_VERSION = "0.1.269";
6579
6586
  var INITIALIZE_METHOD = "initialize";
6580
6587
  var INITIALIZED_NOTIFICATION = "initialized";
6581
6588
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -6834,13 +6841,6 @@ var CodexQuotaStatusTracker = class {
6834
6841
  }
6835
6842
  };
6836
6843
 
6837
- // src/utils/codex-auth.ts
6838
- function isCodexAuthError(error) {
6839
- const msg = error instanceof Error ? error.message : String(error);
6840
- const lower = msg.toLowerCase();
6841
- return lower.includes("unauthorized") || lower.includes("authentication") || lower.includes("invalid api key") || lower.includes("incorrect api key") || lower.includes("api key") && lower.includes("invalid") || lower.includes("401") || lower.includes('codexerrorinfo="unauthorized"') || lower.includes("codexerrorinfo=unauthorized");
6842
- }
6843
-
6844
6844
  // src/managers/codex-asp/mappers.ts
6845
6845
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "fs";
6846
6846
  var localImageCache = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.268",
3
+ "version": "0.1.269",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",