replicas-engine 0.1.426 → 0.1.427

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 +19 -4
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -504,7 +504,7 @@ var WORKSPACE_SIZES = ["small", "large"];
504
504
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
505
505
 
506
506
  // ../shared/src/e2b.ts
507
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-11-v1";
507
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-11-v2";
508
508
 
509
509
  // ../shared/src/runtime-env.ts
510
510
  function shellQuotePosix(value) {
@@ -8437,7 +8437,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
8437
8437
  var MIN_CODEX_CLI_VERSION = "0.144.0";
8438
8438
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
8439
8439
  var codexCliVersionEnsured = null;
8440
- var ENGINE_PACKAGE_VERSION = "0.1.426";
8440
+ var ENGINE_PACKAGE_VERSION = "0.1.427";
8441
8441
  var INITIALIZE_METHOD = "initialize";
8442
8442
  var INITIALIZED_NOTIFICATION = "initialized";
8443
8443
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -9351,9 +9351,10 @@ async function readCodexAspThreadHistory(threadId) {
9351
9351
  entries = await readdir4(CODEX_HISTORY_DIR, { withFileTypes: true });
9352
9352
  } catch (error) {
9353
9353
  if (error && typeof error === "object" && "code" in error && error.code === "ENOENT") {
9354
- throw new CodexThreadNotFoundError(threadId);
9354
+ entries = [];
9355
+ } else {
9356
+ throw error;
9355
9357
  }
9356
- throw error;
9357
9358
  }
9358
9359
  for (const entry of entries) {
9359
9360
  if (!entry.isFile() || !entry.name.endsWith(".jsonl")) continue;
@@ -9368,6 +9369,20 @@ async function readCodexAspThreadHistory(threadId) {
9368
9369
  };
9369
9370
  }
9370
9371
  }
9372
+ try {
9373
+ const host = await getCodexAspHost();
9374
+ const response = await host.client.request(
9375
+ THREAD_READ_METHOD,
9376
+ { threadId, includeTurns: true }
9377
+ );
9378
+ return {
9379
+ thread_id: threadId,
9380
+ events: [],
9381
+ codexAspTranscript: threadToAspTranscript(response.thread),
9382
+ goal: null
9383
+ };
9384
+ } catch {
9385
+ }
9371
9386
  throw new CodexThreadNotFoundError(threadId);
9372
9387
  }
9373
9388
  function skillToSlashCommand(skill) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.426",
3
+ "version": "0.1.427",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",