replicas-engine 0.1.243 → 0.1.244

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 -3
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -289,7 +289,7 @@ var WORKSPACE_SIZES = ["small", "large"];
289
289
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
290
290
 
291
291
  // ../shared/src/e2b.ts
292
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-05-30-v4";
292
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-05-30-v5";
293
293
 
294
294
  // ../shared/src/runtime-env.ts
295
295
  function parsePosixEnvFile(content) {
@@ -1922,7 +1922,13 @@ function coerceBackgroundTaskPayload(payload) {
1922
1922
  const patch = isRecord(payload.patch) ? {
1923
1923
  status: optionalString(payload.patch.status),
1924
1924
  description: optionalString(payload.patch.description),
1925
- error: optionalString(payload.patch.error)
1925
+ error: optionalString(payload.patch.error),
1926
+ isBackgrounded: optionalBoolean(payload.patch.is_backgrounded)
1927
+ } : void 0;
1928
+ const usage = isRecord(payload.usage) ? {
1929
+ totalTokens: optionalNumber(payload.usage.total_tokens),
1930
+ toolUses: optionalNumber(payload.usage.tool_uses),
1931
+ durationMs: optionalNumber(payload.usage.duration_ms)
1926
1932
  } : void 0;
1927
1933
  return {
1928
1934
  subtype,
@@ -1931,9 +1937,20 @@ function coerceBackgroundTaskPayload(payload) {
1931
1937
  summary: optionalString(payload.summary),
1932
1938
  outputFile: optionalString(payload.output_file),
1933
1939
  status: optionalString(payload.status),
1940
+ taskType: optionalString(payload.task_type),
1941
+ workflowName: optionalString(payload.workflow_name),
1942
+ prompt: optionalString(payload.prompt),
1943
+ lastToolName: optionalString(payload.last_tool_name),
1944
+ usage,
1934
1945
  patch
1935
1946
  };
1936
1947
  }
1948
+ function optionalNumber(value) {
1949
+ return typeof value === "number" && Number.isFinite(value) ? value : void 0;
1950
+ }
1951
+ function optionalBoolean(value) {
1952
+ return typeof value === "boolean" ? value : void 0;
1953
+ }
1937
1954
  function normalizeBackgroundTaskStatus(status) {
1938
1955
  if (status === "completed" || status === "failed" || status === "stopped") {
1939
1956
  return status;
@@ -6085,7 +6102,7 @@ var AspClient = class {
6085
6102
  // src/managers/codex-asp/app-server-process.ts
6086
6103
  var DEFAULT_CODEX_BINARY = "codex";
6087
6104
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
6088
- var ENGINE_PACKAGE_VERSION = "0.1.243";
6105
+ var ENGINE_PACKAGE_VERSION = "0.1.244";
6089
6106
  var INITIALIZE_METHOD = "initialize";
6090
6107
  var INITIALIZED_NOTIFICATION = "initialized";
6091
6108
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.243",
3
+ "version": "0.1.244",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",