replicas-engine 0.1.304 → 0.1.306
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 +32 -2
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -302,7 +302,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
302
302
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
303
303
|
|
|
304
304
|
// ../shared/src/e2b.ts
|
|
305
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-
|
|
305
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-13-v2";
|
|
306
306
|
|
|
307
307
|
// ../shared/src/runtime-env.ts
|
|
308
308
|
function parsePosixEnvFile(content) {
|
|
@@ -5395,6 +5395,11 @@ var MessageQueueService = class {
|
|
|
5395
5395
|
this.queue.splice(index, 1);
|
|
5396
5396
|
return true;
|
|
5397
5397
|
}
|
|
5398
|
+
clearQueue() {
|
|
5399
|
+
if (this.queue.length === 0) return false;
|
|
5400
|
+
this.queue = [];
|
|
5401
|
+
return true;
|
|
5402
|
+
}
|
|
5398
5403
|
/**
|
|
5399
5404
|
* Move a message to a new position in the queue
|
|
5400
5405
|
* @returns true if the message was found and moved
|
|
@@ -5491,6 +5496,9 @@ var CodingAgentManager = class {
|
|
|
5491
5496
|
removeFromQueue(messageId) {
|
|
5492
5497
|
return this.messageQueue.removeFromQueue(messageId);
|
|
5493
5498
|
}
|
|
5499
|
+
clearQueue() {
|
|
5500
|
+
return this.messageQueue.clearQueue();
|
|
5501
|
+
}
|
|
5494
5502
|
reorderQueue(messageId, newPosition) {
|
|
5495
5503
|
return this.messageQueue.reorderQueue(messageId, newPosition);
|
|
5496
5504
|
}
|
|
@@ -6827,7 +6835,7 @@ var AspClient = class {
|
|
|
6827
6835
|
// src/managers/codex-asp/app-server-process.ts
|
|
6828
6836
|
var DEFAULT_CODEX_BINARY = "codex";
|
|
6829
6837
|
var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
6830
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
6838
|
+
var ENGINE_PACKAGE_VERSION = "0.1.306";
|
|
6831
6839
|
var INITIALIZE_METHOD = "initialize";
|
|
6832
6840
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
6833
6841
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -9084,6 +9092,9 @@ var RelayManager = class {
|
|
|
9084
9092
|
removeFromQueue(messageId) {
|
|
9085
9093
|
return this.inner.removeFromQueue(messageId);
|
|
9086
9094
|
}
|
|
9095
|
+
clearQueue() {
|
|
9096
|
+
return this.inner.clearQueue();
|
|
9097
|
+
}
|
|
9087
9098
|
reorderQueue(messageId, newPosition) {
|
|
9088
9099
|
return this.inner.reorderQueue(messageId, newPosition);
|
|
9089
9100
|
}
|
|
@@ -9529,6 +9540,14 @@ var ChatService = class {
|
|
|
9529
9540
|
queue: chat.provider.getQueue()
|
|
9530
9541
|
};
|
|
9531
9542
|
}
|
|
9543
|
+
clearQueue(chatId) {
|
|
9544
|
+
const chat = this.requireChat(chatId);
|
|
9545
|
+
const success = chat.provider.clearQueue();
|
|
9546
|
+
return {
|
|
9547
|
+
success,
|
|
9548
|
+
queue: chat.provider.getQueue()
|
|
9549
|
+
};
|
|
9550
|
+
}
|
|
9532
9551
|
reorderQueue(chatId, messageId, position) {
|
|
9533
9552
|
const chat = this.requireChat(chatId);
|
|
9534
9553
|
const success = chat.provider.reorderQueue(messageId, position);
|
|
@@ -10888,6 +10907,17 @@ function createV1Routes(deps) {
|
|
|
10888
10907
|
return c.json(jsonError("Failed to get queue", error instanceof Error ? error.message : "Unknown error"), 500);
|
|
10889
10908
|
}
|
|
10890
10909
|
});
|
|
10910
|
+
app2.delete("/chats/:chatId/queue", (c) => {
|
|
10911
|
+
try {
|
|
10912
|
+
const result = deps.chatService.clearQueue(c.req.param("chatId"));
|
|
10913
|
+
return c.json(result);
|
|
10914
|
+
} catch (error) {
|
|
10915
|
+
if (error instanceof ChatNotFoundError) {
|
|
10916
|
+
return c.json(jsonError("Chat not found", error.message), 404);
|
|
10917
|
+
}
|
|
10918
|
+
return c.json(jsonError("Failed to clear queue", error instanceof Error ? error.message : "Unknown error"), 500);
|
|
10919
|
+
}
|
|
10920
|
+
});
|
|
10891
10921
|
app2.delete("/chats/:chatId/queue/:messageId", (c) => {
|
|
10892
10922
|
try {
|
|
10893
10923
|
const result = deps.chatService.removeFromQueue(c.req.param("chatId"), c.req.param("messageId"));
|