replicas-engine 0.1.279 → 0.1.280

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.
Files changed (2) hide show
  1. package/dist/src/index.js +20 -2
  2. package/package.json +1 -1
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-07-v4";
289
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-08-v1";
290
290
 
291
291
  // ../shared/src/runtime-env.ts
292
292
  function parsePosixEnvFile(content) {
@@ -6532,7 +6532,7 @@ var AspClient = class {
6532
6532
  // src/managers/codex-asp/app-server-process.ts
6533
6533
  var DEFAULT_CODEX_BINARY = "codex";
6534
6534
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
6535
- var ENGINE_PACKAGE_VERSION = "0.1.279";
6535
+ var ENGINE_PACKAGE_VERSION = "0.1.280";
6536
6536
  var INITIALIZE_METHOD = "initialize";
6537
6537
  var INITIALIZED_NOTIFICATION = "initialized";
6538
6538
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -10565,6 +10565,24 @@ function createV1Routes(deps) {
10565
10565
  );
10566
10566
  }
10567
10567
  });
10568
+ app2.post("/codex/refresh-now", async (c) => {
10569
+ try {
10570
+ await codexTokenManager.refreshOnce();
10571
+ const status = codexTokenManager.getHealthStatus();
10572
+ if (status.lastErrorAt && (!status.lastSuccessAt || status.lastErrorAt > status.lastSuccessAt)) {
10573
+ return c.json(
10574
+ jsonError("Failed to refresh Codex credentials", status.lastErrorMessage ?? "Unknown error"),
10575
+ 502
10576
+ );
10577
+ }
10578
+ return c.json({ success: true, lastSuccessAt: status.lastSuccessAt });
10579
+ } catch (error) {
10580
+ return c.json(
10581
+ jsonError("Failed to refresh Codex credentials", error instanceof Error ? error.message : "Unknown error"),
10582
+ 500
10583
+ );
10584
+ }
10585
+ });
10568
10586
  app2.post("/environment/track", async (c) => {
10569
10587
  try {
10570
10588
  const body = await c.req.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.279",
3
+ "version": "0.1.280",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",