replicas-cli 0.2.177 → 0.2.179
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 +14 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11372,6 +11372,12 @@ function useReplicasAuth() {
|
|
|
11372
11372
|
return ctx;
|
|
11373
11373
|
}
|
|
11374
11374
|
|
|
11375
|
+
// ../shared/src/hooks/useEffectOnMount.ts
|
|
11376
|
+
import { useEffect } from "react";
|
|
11377
|
+
function useEffectOnMount(effect) {
|
|
11378
|
+
useEffect(effect, []);
|
|
11379
|
+
}
|
|
11380
|
+
|
|
11375
11381
|
// ../shared/src/hooks/fetch.ts
|
|
11376
11382
|
import { useCallback } from "react";
|
|
11377
11383
|
var REDIRECT_STATUSES2 = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -11558,7 +11564,7 @@ function useGenerateWorkspaceName() {
|
|
|
11558
11564
|
}
|
|
11559
11565
|
|
|
11560
11566
|
// ../shared/src/hooks/useWorkspaceEngine.ts
|
|
11561
|
-
import { useCallback as useCallback3, useEffect, useMemo, useState } from "react";
|
|
11567
|
+
import { useCallback as useCallback3, useEffect as useEffect2, useMemo, useState } from "react";
|
|
11562
11568
|
import { useQuery as useQuery2, useMutation as useMutation2 } from "@tanstack/react-query";
|
|
11563
11569
|
function upsertChat(chats, chat) {
|
|
11564
11570
|
const existingIndex = chats.findIndex((item) => item.id === chat.id);
|
|
@@ -11757,7 +11763,7 @@ function useWorkspaceEvents(workspaceId, enabled = true) {
|
|
|
11757
11763
|
return;
|
|
11758
11764
|
}
|
|
11759
11765
|
}, [qc, workspaceId]);
|
|
11760
|
-
|
|
11766
|
+
useEffect2(() => {
|
|
11761
11767
|
if (!workspaceId || !enabled) return;
|
|
11762
11768
|
const controller = new AbortController();
|
|
11763
11769
|
let cancelled = false;
|
|
@@ -12209,7 +12215,7 @@ function WorkspaceSidebar({
|
|
|
12209
12215
|
}
|
|
12210
12216
|
|
|
12211
12217
|
// src/interactive/components/ChatArea.tsx
|
|
12212
|
-
import { useRef as useRef2
|
|
12218
|
+
import { useRef as useRef2 } from "react";
|
|
12213
12219
|
import { useKeyboard as useKeyboard3 } from "@opentui/react";
|
|
12214
12220
|
|
|
12215
12221
|
// src/interactive/components/ChatMessage.tsx
|
|
@@ -13207,7 +13213,7 @@ function ChatArea({
|
|
|
13207
13213
|
const historyFocused = focusPanel === "chat-history";
|
|
13208
13214
|
const anyFocused = inputFocused || tabsFocused || historyFocused;
|
|
13209
13215
|
const modeColors = MODE_COLORS[taskMode];
|
|
13210
|
-
|
|
13216
|
+
useEffectOnMount(() => {
|
|
13211
13217
|
const scrollbox = scrollboxRef.current;
|
|
13212
13218
|
if (!scrollbox) return;
|
|
13213
13219
|
let lastScrollHeight = 0;
|
|
@@ -13226,8 +13232,8 @@ function ChatArea({
|
|
|
13226
13232
|
};
|
|
13227
13233
|
const interval = setInterval(tick, 100);
|
|
13228
13234
|
return () => clearInterval(interval);
|
|
13229
|
-
}
|
|
13230
|
-
|
|
13235
|
+
});
|
|
13236
|
+
useEffectOnMount(() => {
|
|
13231
13237
|
const textarea = textareaRef.current;
|
|
13232
13238
|
if (!textarea) return;
|
|
13233
13239
|
textarea.onSubmit = () => {
|
|
@@ -13241,7 +13247,7 @@ function ChatArea({
|
|
|
13241
13247
|
return () => {
|
|
13242
13248
|
textarea.onSubmit = void 0;
|
|
13243
13249
|
};
|
|
13244
|
-
}
|
|
13250
|
+
});
|
|
13245
13251
|
useKeyboard3((key) => {
|
|
13246
13252
|
if (!tabsFocused || chats.length <= 1 || !selectedChatId) return;
|
|
13247
13253
|
if (key.name === "left" || key.name === "right" || key.name === "tab" && !key.shift) {
|
|
@@ -14837,7 +14843,7 @@ Deleted file ${pathOrId}.
|
|
|
14837
14843
|
}
|
|
14838
14844
|
|
|
14839
14845
|
// src/index.ts
|
|
14840
|
-
var CLI_VERSION = "0.2.
|
|
14846
|
+
var CLI_VERSION = "0.2.179";
|
|
14841
14847
|
function parseBooleanOption(value) {
|
|
14842
14848
|
if (value === "true") return true;
|
|
14843
14849
|
if (value === "false") return false;
|