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