@lucashca/claudecontrol 0.3.23 → 0.3.25
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.
|
@@ -2,7 +2,7 @@ import type { LucideIcon } from 'lucide-react';
|
|
|
2
2
|
import { Blocks, Code2, TestTube2, Cloud, Database, Layout, ChevronRight, Loader2, GitBranch, Square } from 'lucide-react';
|
|
3
3
|
import { useAtomValue } from 'jotai';
|
|
4
4
|
import { useState } from 'react';
|
|
5
|
-
import { agentsMapAtom
|
|
5
|
+
import { agentsMapAtom } from '@/atoms';
|
|
6
6
|
import { api } from '@/api';
|
|
7
7
|
import { Badge, Button, Tooltip } from '@/ui';
|
|
8
8
|
import { AGENT_LABELS, AGENT_DESCRIPTIONS } from '@/types';
|
|
@@ -165,10 +165,8 @@ export function ChatPanel({ agentId, compact }: { agentId: string; compact?: boo
|
|
|
165
165
|
|
|
166
166
|
function ActiveAgentsBar({ currentAgentId, workspaceId }: { currentAgentId: string; workspaceId: string }) {
|
|
167
167
|
const agentsMap = useAtomValue(agentsMapAtom);
|
|
168
|
-
const barTabIds = useAtomValue(barTabIdsAtom);
|
|
169
|
-
const tabSet = new Set(barTabIds);
|
|
170
168
|
const others = [...agentsMap.values()].filter(
|
|
171
|
-
a => a.workspaceId === workspaceId && a.id !== currentAgentId && !a.closed &&
|
|
169
|
+
a => a.workspaceId === workspaceId && a.id !== currentAgentId && !a.closed && a.status === 'working',
|
|
172
170
|
);
|
|
173
171
|
if (others.length === 0) return null;
|
|
174
172
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
Plus, X, Wifi, WifiOff, Settings, RefreshCw, Shield, ShieldOff, Eye, EyeOff, Lock, Code2, Menu, Loader2, Bell, BellOff,
|
|
3
|
+
Plus, X, Wifi, WifiOff, Settings, RefreshCw, Shield, ShieldOff, Eye, EyeOff, Lock, Code2, Menu, Loader2, Bell, BellOff, Trash2,
|
|
4
4
|
} from 'lucide-react';
|
|
5
5
|
import { useAtomValue, useSetAtom } from 'jotai';
|
|
6
6
|
import { Logo } from '@/ui';
|
|
@@ -28,8 +28,8 @@ const PALETTE = [
|
|
|
28
28
|
'#ec4899','#06b6d4','#f97316','#c8ee44','#a78bfa',
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
-
function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onToggleHidden, onClose, anchorEl }: {
|
|
32
|
-
wsId: string; wsName: string; wsColor: string; wsOrchestratorRole?: string; isHidden: boolean; onToggleHidden: () => void; onClose: () => void; anchorEl: HTMLElement | null;
|
|
31
|
+
function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onToggleHidden, onDelete, onClose, anchorEl }: {
|
|
32
|
+
wsId: string; wsName: string; wsColor: string; wsOrchestratorRole?: string; isHidden: boolean; onToggleHidden: () => void; onDelete: () => void; onClose: () => void; anchorEl: HTMLElement | null;
|
|
33
33
|
}) {
|
|
34
34
|
const [name, setName] = useState(wsName);
|
|
35
35
|
const [color, setColor] = useState(wsColor);
|
|
@@ -96,6 +96,10 @@ function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onTo
|
|
|
96
96
|
{isHidden ? 'Mostrar workspace' : 'Ocultar workspace'}
|
|
97
97
|
</Button>
|
|
98
98
|
<Button variant="primary" size="sm" onClick={save} className="w-full mt-2">Salvar</Button>
|
|
99
|
+
<Button variant="ghost" size="sm" onClick={onDelete}
|
|
100
|
+
className="w-full justify-start gap-2 mt-1 px-2 py-1.5 text-[11px] text-cc-error hover:bg-cc-error/10">
|
|
101
|
+
<Trash2 size={12} /> Excluir workspace
|
|
102
|
+
</Button>
|
|
99
103
|
</div>
|
|
100
104
|
);
|
|
101
105
|
}
|
|
@@ -203,6 +207,7 @@ export function Header() {
|
|
|
203
207
|
isHidden={hidden}
|
|
204
208
|
anchorEl={settingsAnchorRefs.current[w.id]}
|
|
205
209
|
onToggleHidden={() => { toggleHiddenWorkspace(w.id); setEditingWs(null); }}
|
|
210
|
+
onDelete={() => { api.deleteWorkspace(w.id).then(() => { closeWs(w.id); refresh(); }); setEditingWs(null); }}
|
|
206
211
|
onClose={() => setEditingWs(null)}
|
|
207
212
|
/>
|
|
208
213
|
)}
|
package/package.json
CHANGED
package/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.3.
|
|
1
|
+
{"version":"0.3.25","build":"2026-04-03T23:11:55.577Z"}
|