replicas-engine 0.1.324 → 0.1.325
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 +8 -4
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -287,7 +287,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
287
287
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
288
288
|
|
|
289
289
|
// ../shared/src/e2b.ts
|
|
290
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-16-
|
|
290
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-16-v4";
|
|
291
291
|
|
|
292
292
|
// ../shared/src/runtime-env.ts
|
|
293
293
|
function parsePosixEnvFile(content) {
|
|
@@ -7149,7 +7149,7 @@ var AspClient = class {
|
|
|
7149
7149
|
// src/managers/codex-asp/app-server-process.ts
|
|
7150
7150
|
var DEFAULT_CODEX_BINARY = "codex";
|
|
7151
7151
|
var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
7152
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
7152
|
+
var ENGINE_PACKAGE_VERSION = "0.1.325";
|
|
7153
7153
|
var INITIALIZE_METHOD = "initialize";
|
|
7154
7154
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
7155
7155
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -9850,6 +9850,7 @@ function acceptedEventInCodexTranscript(acceptedEvent, transcript) {
|
|
|
9850
9850
|
if (!message) return false;
|
|
9851
9851
|
return getCodexTranscriptUserMessages(transcript).includes(message);
|
|
9852
9852
|
}
|
|
9853
|
+
var LAST_MESSAGE_PREVIEW_MAX = 200;
|
|
9853
9854
|
function isPersistedChat(value) {
|
|
9854
9855
|
if (!isRecord4(value)) {
|
|
9855
9856
|
return false;
|
|
@@ -9866,7 +9867,8 @@ function normalizePersistedChat(chat) {
|
|
|
9866
9867
|
createdAt: chat.createdAt,
|
|
9867
9868
|
updatedAt: chat.updatedAt,
|
|
9868
9869
|
providerSessionId: isLegacyCodexSdkChat ? null : chat.providerSessionId,
|
|
9869
|
-
parentChatId: chat.parentChatId ?? null
|
|
9870
|
+
parentChatId: chat.parentChatId ?? null,
|
|
9871
|
+
lastMessageText: chat.lastMessageText ?? null
|
|
9870
9872
|
};
|
|
9871
9873
|
}
|
|
9872
9874
|
function parsePersistedChatsContent(content) {
|
|
@@ -9975,6 +9977,7 @@ var ChatService = class {
|
|
|
9975
9977
|
const acceptedEvent = createUserMessageEvent(request.message, result.messageId, request.images);
|
|
9976
9978
|
chat.pendingMessageIds.push(result.messageId);
|
|
9977
9979
|
chat.acceptedUserEvents.set(result.messageId, acceptedEvent);
|
|
9980
|
+
chat.persisted.lastMessageText = request.message.trim().slice(0, LAST_MESSAGE_PREVIEW_MAX) || null;
|
|
9978
9981
|
this.touch(chat);
|
|
9979
9982
|
let recordedSender;
|
|
9980
9983
|
if (request.senderUserId && request.senderEmail) {
|
|
@@ -10285,7 +10288,8 @@ var ChatService = class {
|
|
|
10285
10288
|
isCompacting: chat.provider.isCompacting?.() ?? false,
|
|
10286
10289
|
isAuthRetrying: chat.provider.isAuthRetrying?.() ?? false,
|
|
10287
10290
|
goal: chat.provider.getGoal?.() ?? null,
|
|
10288
|
-
parentChatId: chat.persisted.parentChatId
|
|
10291
|
+
parentChatId: chat.persisted.parentChatId,
|
|
10292
|
+
lastMessageText: chat.persisted.lastMessageText ?? null
|
|
10289
10293
|
};
|
|
10290
10294
|
}
|
|
10291
10295
|
requireChat(chatId) {
|