replicas-cli 0.2.413 → 0.2.415
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/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24428,7 +24428,7 @@ function formatTurnElapsed(ms) {
|
|
|
24428
24428
|
}
|
|
24429
24429
|
|
|
24430
24430
|
// ../shared/src/cli-version.ts
|
|
24431
|
-
var CLI_VERSION = "0.2.
|
|
24431
|
+
var CLI_VERSION = "0.2.415";
|
|
24432
24432
|
|
|
24433
24433
|
// ../shared/src/version.ts
|
|
24434
24434
|
function compareVersions(v1, v2) {
|
|
@@ -24455,6 +24455,9 @@ var DESKTOP_VIEWER_HEIGHT = 1080;
|
|
|
24455
24455
|
|
|
24456
24456
|
// ../shared/src/engine/v1.ts
|
|
24457
24457
|
var MERGED_MESSAGE_SEPARATOR = "\n\n<!-- replicas:merged -->\n\n";
|
|
24458
|
+
function getTerminalChatProcessing(event) {
|
|
24459
|
+
return event.type === "chat.turn.completed" ? event.payload.processing ?? false : false;
|
|
24460
|
+
}
|
|
24458
24461
|
var createChatRequestSchema = external_exports.object({
|
|
24459
24462
|
id: external_exports.string().uuid().optional(),
|
|
24460
24463
|
createdAt: external_exports.string().datetime().optional(),
|
|
@@ -33384,7 +33387,7 @@ function useWorkspaceEvents(workspaceId, enabled = true) {
|
|
|
33384
33387
|
if (event.type === "chat.turn.completed" || event.type === "chat.interrupted") {
|
|
33385
33388
|
qc.setQueryData(chatsKey, (current) => {
|
|
33386
33389
|
if (!current) return current;
|
|
33387
|
-
return { chats: patchChat(current.chats, event.payload.chatId, { processing:
|
|
33390
|
+
return { chats: patchChat(current.chats, event.payload.chatId, { processing: getTerminalChatProcessing(event), updatedAt: event.ts }) };
|
|
33388
33391
|
});
|
|
33389
33392
|
qc.invalidateQueries({ queryKey: ["chat-history", workspaceId, event.payload.chatId] });
|
|
33390
33393
|
return;
|