replicas-engine 0.1.478 → 0.1.479

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 +39 -2
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -582,7 +582,7 @@ var WORKSPACE_SIZES = ["small", "large"];
582
582
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
583
583
 
584
584
  // ../shared/src/e2b.ts
585
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-22-v3";
585
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-22-v4";
586
586
 
587
587
  // ../shared/src/runtime-env.ts
588
588
  function shellQuotePosix(value) {
@@ -6314,6 +6314,7 @@ var EnvironmentDetailsService = class {
6314
6314
  details.engineVersion = E2B_TEMPLATE_NAME;
6315
6315
  details.supportsMidTurnSteering = true;
6316
6316
  details.supportsGoalUpdates = true;
6317
+ details.supportsQueuedMessageEditing = true;
6317
6318
  details.claudeAuthMethod = detectClaudeAuthMethod();
6318
6319
  details.codexAuthMethod = detectCodexAuthMethod();
6319
6320
  details.cursorAuthMethod = detectCursorAuthMethod();
@@ -7709,6 +7710,12 @@ var MessageQueueService = class {
7709
7710
  this.queue = [];
7710
7711
  return true;
7711
7712
  }
7713
+ updateQueuedMessage(messageId, message) {
7714
+ const queuedMessage = this.queue.find((item) => item.id === messageId);
7715
+ if (!queuedMessage) return false;
7716
+ queuedMessage.message = message;
7717
+ return true;
7718
+ }
7712
7719
  takeFromQueue(messageId) {
7713
7720
  const index = this.queue.findIndex((m) => m.id === messageId);
7714
7721
  if (index === -1) return null;
@@ -7839,6 +7846,9 @@ var CodingAgentManager = class {
7839
7846
  clearQueue() {
7840
7847
  return this.messageQueue.clearQueue();
7841
7848
  }
7849
+ updateQueuedMessage(messageId, message) {
7850
+ return this.messageQueue.updateQueuedMessage(messageId, message);
7851
+ }
7842
7852
  reorderQueue(messageId, newPosition) {
7843
7853
  return this.messageQueue.reorderQueue(messageId, newPosition);
7844
7854
  }
@@ -9790,7 +9800,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
9790
9800
  var MIN_CODEX_CLI_VERSION = "0.144.6";
9791
9801
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
9792
9802
  var codexCliVersionEnsured = null;
9793
- var ENGINE_PACKAGE_VERSION = "0.1.478";
9803
+ var ENGINE_PACKAGE_VERSION = "0.1.479";
9794
9804
  var INITIALIZE_METHOD = "initialize";
9795
9805
  var INITIALIZED_NOTIFICATION = "initialized";
9796
9806
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -13815,6 +13825,9 @@ var RelayManager = class {
13815
13825
  clearQueue() {
13816
13826
  return this.inner.clearQueue();
13817
13827
  }
13828
+ updateQueuedMessage(messageId, message) {
13829
+ return this.inner.updateQueuedMessage(messageId, message);
13830
+ }
13818
13831
  reorderQueue(messageId, newPosition) {
13819
13832
  return this.inner.reorderQueue(messageId, newPosition);
13820
13833
  }
@@ -14548,6 +14561,14 @@ var ChatService = class {
14548
14561
  queue: chat.provider.getQueue()
14549
14562
  };
14550
14563
  }
14564
+ updateQueuedMessage(chatId, messageId, message) {
14565
+ const chat = this.requireChat(chatId);
14566
+ const success = chat.provider.updateQueuedMessage(messageId, message);
14567
+ return {
14568
+ success,
14569
+ queue: chat.provider.getQueue()
14570
+ };
14571
+ }
14551
14572
  reorderQueue(chatId, messageId, position) {
14552
14573
  const chat = this.requireChat(chatId);
14553
14574
  const success = chat.provider.reorderQueue(messageId, position);
@@ -16143,6 +16164,22 @@ function createV1Routes(deps) {
16143
16164
  return c.json(jsonError("Failed to remove from queue", error instanceof Error ? error.message : "Unknown error"), 500);
16144
16165
  }
16145
16166
  });
16167
+ app2.patch("/chats/:chatId/queue/:messageId", async (c) => {
16168
+ try {
16169
+ const body = await c.req.json();
16170
+ const message = body.message?.trim();
16171
+ if (!message) {
16172
+ return c.json(jsonError("Invalid request", "message is required"), 400);
16173
+ }
16174
+ const result = deps.chatService.updateQueuedMessage(c.req.param("chatId"), c.req.param("messageId"), message);
16175
+ return c.json(result);
16176
+ } catch (error) {
16177
+ if (error instanceof ChatNotFoundError) {
16178
+ return c.json(jsonError("Chat not found", error.message), 404);
16179
+ }
16180
+ return c.json(jsonError("Failed to update queued message", error instanceof Error ? error.message : "Unknown error"), 500);
16181
+ }
16182
+ });
16146
16183
  app2.post("/chats/:chatId/queue/:messageId/steer", async (c) => {
16147
16184
  try {
16148
16185
  const result = await deps.chatService.steerFromQueue(c.req.param("chatId"), c.req.param("messageId"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.478",
3
+ "version": "0.1.479",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",