@nocturnium/svelte-ide 1.0.0-rc.1
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/LICENSE +21 -0
- package/README.md +251 -0
- package/dist/components/agents/AgentActivityPanel.svelte +565 -0
- package/dist/components/agents/AgentActivityPanel.svelte.d.ts +24 -0
- package/dist/components/agents/AgentAvatar.svelte +417 -0
- package/dist/components/agents/AgentAvatar.svelte.d.ts +23 -0
- package/dist/components/agents/AgentCursor.svelte +224 -0
- package/dist/components/agents/AgentCursor.svelte.d.ts +35 -0
- package/dist/components/agents/AgentPresenceBar.svelte +261 -0
- package/dist/components/agents/AgentPresenceBar.svelte.d.ts +20 -0
- package/dist/components/agents/index.d.ts +4 -0
- package/dist/components/agents/index.js +5 -0
- package/dist/components/ai/AIConversationList.svelte +524 -0
- package/dist/components/ai/AIConversationList.svelte.d.ts +17 -0
- package/dist/components/ai/AIEditPreview.svelte +132 -0
- package/dist/components/ai/AIEditPreview.svelte.d.ts +8 -0
- package/dist/components/ai/AIInlineEdit.svelte +155 -0
- package/dist/components/ai/AIInlineEdit.svelte.d.ts +10 -0
- package/dist/components/ai/AIMessage.svelte +239 -0
- package/dist/components/ai/AIMessage.svelte.d.ts +13 -0
- package/dist/components/ai/AIMessageActions.svelte +176 -0
- package/dist/components/ai/AIMessageActions.svelte.d.ts +12 -0
- package/dist/components/ai/AIMessageContent.svelte +355 -0
- package/dist/components/ai/AIMessageContent.svelte.d.ts +7 -0
- package/dist/components/ai/AIPanel.svelte +561 -0
- package/dist/components/ai/AIPanel.svelte.d.ts +7 -0
- package/dist/components/ai/AISuggestionWidget.svelte +132 -0
- package/dist/components/ai/AISuggestionWidget.svelte.d.ts +10 -0
- package/dist/components/ai/AIToolCallDisplay.svelte +317 -0
- package/dist/components/ai/AIToolCallDisplay.svelte.d.ts +12 -0
- package/dist/components/ai/index.d.ts +9 -0
- package/dist/components/ai/index.js +10 -0
- package/dist/components/core/Avatar.svelte +110 -0
- package/dist/components/core/Avatar.svelte.d.ts +12 -0
- package/dist/components/core/Badge.svelte +98 -0
- package/dist/components/core/Badge.svelte.d.ts +11 -0
- package/dist/components/core/Button.svelte +175 -0
- package/dist/components/core/Button.svelte.d.ts +18 -0
- package/dist/components/core/ConnectionStatus.svelte +294 -0
- package/dist/components/core/ConnectionStatus.svelte.d.ts +20 -0
- package/dist/components/core/ContextMenu.svelte +176 -0
- package/dist/components/core/ContextMenu.svelte.d.ts +19 -0
- package/dist/components/core/ErrorBoundary.svelte +277 -0
- package/dist/components/core/ErrorBoundary.svelte.d.ts +23 -0
- package/dist/components/core/Icon.svelte +107 -0
- package/dist/components/core/Icon.svelte.d.ts +8 -0
- package/dist/components/core/Input.svelte +138 -0
- package/dist/components/core/Input.svelte.d.ts +20 -0
- package/dist/components/core/Kbd.svelte +34 -0
- package/dist/components/core/Kbd.svelte.d.ts +7 -0
- package/dist/components/core/ResizeHandle.svelte +200 -0
- package/dist/components/core/ResizeHandle.svelte.d.ts +23 -0
- package/dist/components/core/Spinner.svelte +35 -0
- package/dist/components/core/Spinner.svelte.d.ts +7 -0
- package/dist/components/core/Textarea.svelte +112 -0
- package/dist/components/core/Textarea.svelte.d.ts +18 -0
- package/dist/components/core/Tooltip.svelte +103 -0
- package/dist/components/core/Tooltip.svelte.d.ts +11 -0
- package/dist/components/core/index.d.ts +13 -0
- package/dist/components/core/index.js +14 -0
- package/dist/components/editor/AIFocusLayer.svelte +430 -0
- package/dist/components/editor/AIFocusLayer.svelte.d.ts +32 -0
- package/dist/components/editor/Breadcrumbs.svelte +435 -0
- package/dist/components/editor/Breadcrumbs.svelte.d.ts +33 -0
- package/dist/components/editor/BreakpointLayer.svelte +642 -0
- package/dist/components/editor/BreakpointLayer.svelte.d.ts +20 -0
- package/dist/components/editor/CognitiveLoadMeter.svelte +324 -0
- package/dist/components/editor/CognitiveLoadMeter.svelte.d.ts +18 -0
- package/dist/components/editor/CollaborativeEditor.svelte +218 -0
- package/dist/components/editor/CollaborativeEditor.svelte.d.ts +32 -0
- package/dist/components/editor/CommandPalette.svelte +434 -0
- package/dist/components/editor/CommandPalette.svelte.d.ts +11 -0
- package/dist/components/editor/ComplexityLayer.svelte +293 -0
- package/dist/components/editor/ComplexityLayer.svelte.d.ts +23 -0
- package/dist/components/editor/ConflictZoneLayer.svelte +441 -0
- package/dist/components/editor/ConflictZoneLayer.svelte.d.ts +25 -0
- package/dist/components/editor/ContextLens.svelte +262 -0
- package/dist/components/editor/ContextLens.svelte.d.ts +27 -0
- package/dist/components/editor/CustomEditor.svelte +1242 -0
- package/dist/components/editor/CustomEditor.svelte.d.ts +37 -0
- package/dist/components/editor/DebugConsole.svelte +646 -0
- package/dist/components/editor/DebugConsole.svelte.d.ts +41 -0
- package/dist/components/editor/EchoCursorLayer.svelte +363 -0
- package/dist/components/editor/EchoCursorLayer.svelte.d.ts +24 -0
- package/dist/components/editor/Editor.svelte +61 -0
- package/dist/components/editor/Editor.svelte.d.ts +22 -0
- package/dist/components/editor/EditorGutter.svelte +119 -0
- package/dist/components/editor/EditorGutter.svelte.d.ts +19 -0
- package/dist/components/editor/EditorLines.svelte +182 -0
- package/dist/components/editor/EditorLines.svelte.d.ts +43 -0
- package/dist/components/editor/EditorPane.svelte +134 -0
- package/dist/components/editor/EditorPane.svelte.d.ts +9 -0
- package/dist/components/editor/EditorSelections.svelte +186 -0
- package/dist/components/editor/EditorSelections.svelte.d.ts +25 -0
- package/dist/components/editor/EditorTabs.svelte +170 -0
- package/dist/components/editor/EditorTabs.svelte.d.ts +12 -0
- package/dist/components/editor/FileExplorer.svelte +811 -0
- package/dist/components/editor/FileExplorer.svelte.d.ts +67 -0
- package/dist/components/editor/FileIcon.svelte +110 -0
- package/dist/components/editor/FileIcon.svelte.d.ts +10 -0
- package/dist/components/editor/FindReplace.svelte +448 -0
- package/dist/components/editor/FindReplace.svelte.d.ts +40 -0
- package/dist/components/editor/GhostBracketLayer.svelte +391 -0
- package/dist/components/editor/GhostBracketLayer.svelte.d.ts +24 -0
- package/dist/components/editor/GitBlameLayer.svelte +436 -0
- package/dist/components/editor/GitBlameLayer.svelte.d.ts +18 -0
- package/dist/components/editor/InlineDiagnosticsLayer.svelte +540 -0
- package/dist/components/editor/InlineDiagnosticsLayer.svelte.d.ts +35 -0
- package/dist/components/editor/InlineDiffLayer.svelte +337 -0
- package/dist/components/editor/InlineDiffLayer.svelte.d.ts +31 -0
- package/dist/components/editor/MinimalEditor.svelte +75 -0
- package/dist/components/editor/MinimalEditor.svelte.d.ts +6 -0
- package/dist/components/editor/MinimalEditor2.svelte +84 -0
- package/dist/components/editor/MinimalEditor2.svelte.d.ts +6 -0
- package/dist/components/editor/Minimap.svelte +327 -0
- package/dist/components/editor/Minimap.svelte.d.ts +34 -0
- package/dist/components/editor/PluginPreviewSandbox.svelte +793 -0
- package/dist/components/editor/PluginPreviewSandbox.svelte.d.ts +49 -0
- package/dist/components/editor/ProblemsPanel.svelte +628 -0
- package/dist/components/editor/ProblemsPanel.svelte.d.ts +25 -0
- package/dist/components/editor/QuickActionsMenu.svelte +403 -0
- package/dist/components/editor/QuickActionsMenu.svelte.d.ts +18 -0
- package/dist/components/editor/SnippetPalette.svelte +530 -0
- package/dist/components/editor/SnippetPalette.svelte.d.ts +16 -0
- package/dist/components/editor/StructureMap.svelte +431 -0
- package/dist/components/editor/StructureMap.svelte.d.ts +37 -0
- package/dist/components/editor/SymbolOutline.svelte +722 -0
- package/dist/components/editor/SymbolOutline.svelte.d.ts +44 -0
- package/dist/components/editor/TimelineScrubber.svelte +470 -0
- package/dist/components/editor/TimelineScrubber.svelte.d.ts +40 -0
- package/dist/components/editor/TokenRenderer.svelte +69 -0
- package/dist/components/editor/TokenRenderer.svelte.d.ts +15 -0
- package/dist/components/editor/constants.d.ts +32 -0
- package/dist/components/editor/constants.js +36 -0
- package/dist/components/editor/core/ai-awareness.d.ts +176 -0
- package/dist/components/editor/core/ai-awareness.js +210 -0
- package/dist/components/editor/core/bracket-healer.d.ts +189 -0
- package/dist/components/editor/core/bracket-healer.js +406 -0
- package/dist/components/editor/core/breakpoints.d.ts +203 -0
- package/dist/components/editor/core/breakpoints.js +414 -0
- package/dist/components/editor/core/commands.d.ts +108 -0
- package/dist/components/editor/core/commands.js +246 -0
- package/dist/components/editor/core/complexity-analyzer.d.ts +123 -0
- package/dist/components/editor/core/complexity-analyzer.js +376 -0
- package/dist/components/editor/core/conflict-predictor.d.ts +135 -0
- package/dist/components/editor/core/conflict-predictor.js +316 -0
- package/dist/components/editor/core/crdt-binding.d.ts +118 -0
- package/dist/components/editor/core/crdt-binding.js +286 -0
- package/dist/components/editor/core/diagnostics.d.ts +210 -0
- package/dist/components/editor/core/diagnostics.js +335 -0
- package/dist/components/editor/core/echo-cursor.d.ts +201 -0
- package/dist/components/editor/core/echo-cursor.js +267 -0
- package/dist/components/editor/core/folding.d.ts +124 -0
- package/dist/components/editor/core/folding.js +672 -0
- package/dist/components/editor/core/ghost-pair.d.ts +122 -0
- package/dist/components/editor/core/ghost-pair.js +221 -0
- package/dist/components/editor/core/git-blame.d.ts +170 -0
- package/dist/components/editor/core/git-blame.js +324 -0
- package/dist/components/editor/core/index.d.ts +26 -0
- package/dist/components/editor/core/index.js +24 -0
- package/dist/components/editor/core/keybindings.d.ts +79 -0
- package/dist/components/editor/core/keybindings.js +357 -0
- package/dist/components/editor/core/multi-cursor.d.ts +196 -0
- package/dist/components/editor/core/multi-cursor.js +521 -0
- package/dist/components/editor/core/navigation.d.ts +107 -0
- package/dist/components/editor/core/navigation.js +408 -0
- package/dist/components/editor/core/quick-actions.d.ts +189 -0
- package/dist/components/editor/core/quick-actions.js +427 -0
- package/dist/components/editor/core/search.d.ts +88 -0
- package/dist/components/editor/core/search.js +192 -0
- package/dist/components/editor/core/semantic-analyzer.d.ts +77 -0
- package/dist/components/editor/core/semantic-analyzer.js +424 -0
- package/dist/components/editor/core/snippet-manager.d.ts +202 -0
- package/dist/components/editor/core/snippet-manager.js +565 -0
- package/dist/components/editor/core/state.d.ts +367 -0
- package/dist/components/editor/core/state.js +900 -0
- package/dist/components/editor/core/timeline.d.ts +204 -0
- package/dist/components/editor/core/timeline.js +349 -0
- package/dist/components/editor/editor-find.d.ts +56 -0
- package/dist/components/editor/editor-find.js +148 -0
- package/dist/components/editor/editor-input.d.ts +77 -0
- package/dist/components/editor/editor-input.js +445 -0
- package/dist/components/editor/editor-multicursor.d.ts +21 -0
- package/dist/components/editor/editor-multicursor.js +196 -0
- package/dist/components/editor/editor-scroll.d.ts +14 -0
- package/dist/components/editor/editor-scroll.js +34 -0
- package/dist/components/editor/index.d.ts +15 -0
- package/dist/components/editor/index.js +21 -0
- package/dist/components/editor/languages.d.ts +62 -0
- package/dist/components/editor/languages.js +285 -0
- package/dist/components/editor/theme.d.ts +88 -0
- package/dist/components/editor/theme.js +139 -0
- package/dist/components/editor/tokenizer/base.d.ts +40 -0
- package/dist/components/editor/tokenizer/base.js +203 -0
- package/dist/components/editor/tokenizer/index.d.ts +56 -0
- package/dist/components/editor/tokenizer/index.js +215 -0
- package/dist/components/editor/tokenizer/languages/css.d.ts +17 -0
- package/dist/components/editor/tokenizer/languages/css.js +194 -0
- package/dist/components/editor/tokenizer/languages/go.d.ts +17 -0
- package/dist/components/editor/tokenizer/languages/go.js +220 -0
- package/dist/components/editor/tokenizer/languages/html.d.ts +24 -0
- package/dist/components/editor/tokenizer/languages/html.js +145 -0
- package/dist/components/editor/tokenizer/languages/javascript.d.ts +56 -0
- package/dist/components/editor/tokenizer/languages/javascript.js +452 -0
- package/dist/components/editor/tokenizer/languages/json.d.ts +12 -0
- package/dist/components/editor/tokenizer/languages/json.js +91 -0
- package/dist/components/editor/tokenizer/languages/markdown.d.ts +16 -0
- package/dist/components/editor/tokenizer/languages/markdown.js +156 -0
- package/dist/components/editor/tokenizer/languages/python.d.ts +20 -0
- package/dist/components/editor/tokenizer/languages/python.js +227 -0
- package/dist/components/editor/tokenizer/languages/svelte.d.ts +40 -0
- package/dist/components/editor/tokenizer/languages/svelte.js +326 -0
- package/dist/components/editor/tokenizer/types.d.ts +86 -0
- package/dist/components/editor/tokenizer/types.js +4 -0
- package/dist/components/layout/IDELayout.svelte +274 -0
- package/dist/components/layout/IDELayout.svelte.d.ts +29 -0
- package/dist/components/layout/StatusBar.svelte +511 -0
- package/dist/components/layout/StatusBar.svelte.d.ts +47 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.js +3 -0
- package/dist/components/lsp/AutocompleteWidget.svelte +364 -0
- package/dist/components/lsp/AutocompleteWidget.svelte.d.ts +33 -0
- package/dist/components/lsp/DiagnosticMarker.svelte +166 -0
- package/dist/components/lsp/DiagnosticMarker.svelte.d.ts +19 -0
- package/dist/components/lsp/DiagnosticsPanel.svelte +388 -0
- package/dist/components/lsp/DiagnosticsPanel.svelte.d.ts +21 -0
- package/dist/components/lsp/HoverTooltip.svelte +274 -0
- package/dist/components/lsp/HoverTooltip.svelte.d.ts +24 -0
- package/dist/components/lsp/LSPEditor.svelte +486 -0
- package/dist/components/lsp/LSPEditor.svelte.d.ts +39 -0
- package/dist/components/lsp/SignatureHelpWidget.svelte +216 -0
- package/dist/components/lsp/SignatureHelpWidget.svelte.d.ts +22 -0
- package/dist/components/lsp/index.d.ts +6 -0
- package/dist/components/lsp/index.js +7 -0
- package/dist/components/plugins/PluginCard.svelte +153 -0
- package/dist/components/plugins/PluginCard.svelte.d.ts +19 -0
- package/dist/components/plugins/PluginPanel.svelte +280 -0
- package/dist/components/plugins/PluginPanel.svelte.d.ts +8 -0
- package/dist/components/plugins/PluginProposalForm.svelte +250 -0
- package/dist/components/plugins/PluginProposalForm.svelte.d.ts +6 -0
- package/dist/components/plugins/PluginStatusBadge.svelte +14 -0
- package/dist/components/plugins/PluginStatusBadge.svelte.d.ts +8 -0
- package/dist/components/plugins/index.d.ts +4 -0
- package/dist/components/plugins/index.js +5 -0
- package/dist/components/vfs/LockConflictDialog.svelte +705 -0
- package/dist/components/vfs/LockConflictDialog.svelte.d.ts +21 -0
- package/dist/components/vfs/LockIndicator.svelte +194 -0
- package/dist/components/vfs/LockIndicator.svelte.d.ts +29 -0
- package/dist/components/vfs/LockOverlay.svelte +344 -0
- package/dist/components/vfs/LockOverlay.svelte.d.ts +17 -0
- package/dist/components/vfs/VersionConflictDialog.svelte +549 -0
- package/dist/components/vfs/VersionConflictDialog.svelte.d.ts +24 -0
- package/dist/components/vfs/index.d.ts +4 -0
- package/dist/components/vfs/index.js +5 -0
- package/dist/crdt/awareness.d.ts +42 -0
- package/dist/crdt/awareness.js +109 -0
- package/dist/crdt/document.d.ts +101 -0
- package/dist/crdt/document.js +187 -0
- package/dist/crdt/index.d.ts +9 -0
- package/dist/crdt/index.js +8 -0
- package/dist/crdt/provider.d.ts +85 -0
- package/dist/crdt/provider.js +150 -0
- package/dist/crdt/types.d.ts +61 -0
- package/dist/crdt/types.js +4 -0
- package/dist/crdt/undo.d.ts +34 -0
- package/dist/crdt/undo.js +70 -0
- package/dist/index.d.ts +277 -0
- package/dist/index.js +280 -0
- package/dist/plugins/index.d.ts +103 -0
- package/dist/plugins/index.js +153 -0
- package/dist/services/error-handling.d.ts +95 -0
- package/dist/services/error-handling.js +413 -0
- package/dist/services/ide-integration.d.ts +83 -0
- package/dist/services/ide-integration.js +367 -0
- package/dist/services/lsp-client.d.ts +69 -0
- package/dist/services/lsp-client.js +667 -0
- package/dist/services/mock-ai.d.ts +37 -0
- package/dist/services/mock-ai.js +318 -0
- package/dist/services/optimistic.d.ts +141 -0
- package/dist/services/optimistic.js +367 -0
- package/dist/services/vfs-client.d.ts +81 -0
- package/dist/services/vfs-client.js +348 -0
- package/dist/stores/agents.svelte.d.ts +85 -0
- package/dist/stores/agents.svelte.js +459 -0
- package/dist/stores/ai-persistence.svelte.d.ts +76 -0
- package/dist/stores/ai-persistence.svelte.js +334 -0
- package/dist/stores/ai.svelte.d.ts +140 -0
- package/dist/stores/ai.svelte.js +383 -0
- package/dist/stores/collaboration.svelte.d.ts +164 -0
- package/dist/stores/collaboration.svelte.js +334 -0
- package/dist/stores/editor.svelte.d.ts +131 -0
- package/dist/stores/editor.svelte.js +250 -0
- package/dist/stores/index.d.ts +10 -0
- package/dist/stores/index.js +29 -0
- package/dist/stores/layout.svelte.d.ts +171 -0
- package/dist/stores/layout.svelte.js +351 -0
- package/dist/stores/plugin.svelte.d.ts +121 -0
- package/dist/stores/plugin.svelte.js +410 -0
- package/dist/stores/vfs.svelte.d.ts +123 -0
- package/dist/stores/vfs.svelte.js +680 -0
- package/dist/styles/theme.css +623 -0
- package/dist/types/agents.d.ts +127 -0
- package/dist/types/agents.js +5 -0
- package/dist/types/ai.d.ts +137 -0
- package/dist/types/ai.js +4 -0
- package/dist/types/crdt.d.ts +222 -0
- package/dist/types/crdt.js +5 -0
- package/dist/types/editor.d.ts +52 -0
- package/dist/types/editor.js +18 -0
- package/dist/types/events.d.ts +133 -0
- package/dist/types/events.js +4 -0
- package/dist/types/filesystem.d.ts +77 -0
- package/dist/types/filesystem.js +4 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.js +12 -0
- package/dist/types/lsp.d.ts +691 -0
- package/dist/types/lsp.js +108 -0
- package/dist/types/plugin.d.ts +239 -0
- package/dist/types/plugin.js +5 -0
- package/dist/types/vfs.d.ts +191 -0
- package/dist/types/vfs.js +18 -0
- package/dist/utils/format.d.ts +55 -0
- package/dist/utils/format.js +152 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/keybindings.d.ts +33 -0
- package/dist/utils/keybindings.js +171 -0
- package/dist/utils/language.d.ts +27 -0
- package/dist/utils/language.js +222 -0
- package/package.json +178 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* AgentActivityPanel - Shows agents and their activities
|
|
4
|
+
*
|
|
5
|
+
* Features:
|
|
6
|
+
* - Grid/list view toggle for agents
|
|
7
|
+
* - Real-time activity feed
|
|
8
|
+
* - Agent filtering by status
|
|
9
|
+
* - Click to select and view agent details
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { Icon, Button, Badge } from '../core';
|
|
13
|
+
import AgentAvatar from './AgentAvatar.svelte';
|
|
14
|
+
import type { Agent, AgentActivity, AgentFilter, AgentViewMode } from '../../types';
|
|
15
|
+
|
|
16
|
+
interface Props {
|
|
17
|
+
/** List of agents to display */
|
|
18
|
+
agents: Agent[];
|
|
19
|
+
/** Activity feed items */
|
|
20
|
+
activities: AgentActivity[];
|
|
21
|
+
/** Currently selected agent ID */
|
|
22
|
+
selectedAgentId?: string | null;
|
|
23
|
+
/** Current filter */
|
|
24
|
+
filter?: AgentFilter;
|
|
25
|
+
/** View mode */
|
|
26
|
+
viewMode?: AgentViewMode;
|
|
27
|
+
/** Called when agent is selected */
|
|
28
|
+
onSelectAgent?: (agentId: string | null) => void;
|
|
29
|
+
/** Called when filter changes */
|
|
30
|
+
onFilterChange?: (filter: AgentFilter) => void;
|
|
31
|
+
/** Called when view mode changes */
|
|
32
|
+
onViewModeChange?: (mode: AgentViewMode) => void;
|
|
33
|
+
/** Additional CSS class */
|
|
34
|
+
class?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let {
|
|
38
|
+
agents,
|
|
39
|
+
activities,
|
|
40
|
+
selectedAgentId = null,
|
|
41
|
+
filter = 'all',
|
|
42
|
+
viewMode = 'grid',
|
|
43
|
+
onSelectAgent,
|
|
44
|
+
onFilterChange,
|
|
45
|
+
onViewModeChange,
|
|
46
|
+
class: className = ''
|
|
47
|
+
}: Props = $props();
|
|
48
|
+
|
|
49
|
+
// Derived values
|
|
50
|
+
let filteredAgents = $derived(
|
|
51
|
+
filter === 'all' ? agents : agents.filter((a) => a.status === filter)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
let selectedAgent = $derived(agents.find((a) => a.id === selectedAgentId));
|
|
55
|
+
|
|
56
|
+
let selectedAgentActivities = $derived(
|
|
57
|
+
selectedAgentId ? activities.filter((a) => a.agentId === selectedAgentId) : activities
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
let onlineCount = $derived(agents.filter((a) => a.status === 'online' || a.status === 'busy').length);
|
|
61
|
+
let busyCount = $derived(agents.filter((a) => a.status === 'busy').length);
|
|
62
|
+
|
|
63
|
+
function formatTime(timestamp: string): string {
|
|
64
|
+
const date = new Date(timestamp);
|
|
65
|
+
const now = new Date();
|
|
66
|
+
const diff = now.getTime() - date.getTime();
|
|
67
|
+
|
|
68
|
+
if (diff < 60000) return 'just now';
|
|
69
|
+
if (diff < 3600000) return `${Math.floor(diff / 60000)}m ago`;
|
|
70
|
+
if (diff < 86400000) return `${Math.floor(diff / 3600000)}h ago`;
|
|
71
|
+
return date.toLocaleDateString();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function getActivityIcon(type: AgentActivity['type']): string {
|
|
75
|
+
switch (type) {
|
|
76
|
+
case 'action':
|
|
77
|
+
return 'play';
|
|
78
|
+
case 'message':
|
|
79
|
+
return 'message-circle';
|
|
80
|
+
case 'error':
|
|
81
|
+
return 'alert-circle';
|
|
82
|
+
case 'milestone':
|
|
83
|
+
return 'flag';
|
|
84
|
+
case 'system':
|
|
85
|
+
return 'info';
|
|
86
|
+
default:
|
|
87
|
+
return 'activity';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getActivityColor(type: AgentActivity['type']): string {
|
|
92
|
+
switch (type) {
|
|
93
|
+
case 'error':
|
|
94
|
+
return 'var(--ide-error)';
|
|
95
|
+
case 'milestone':
|
|
96
|
+
return 'var(--ide-success)';
|
|
97
|
+
case 'system':
|
|
98
|
+
return 'var(--ide-info)';
|
|
99
|
+
default:
|
|
100
|
+
return 'var(--ide-text-secondary)';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<div class="agent-panel {className}">
|
|
106
|
+
<!-- Header -->
|
|
107
|
+
<div class="agent-panel__header">
|
|
108
|
+
<div class="agent-panel__title">
|
|
109
|
+
<Icon name="users" size={16} />
|
|
110
|
+
<span>Agents</span>
|
|
111
|
+
<Badge variant="secondary" size="sm">{onlineCount}/{agents.length}</Badge>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="agent-panel__actions">
|
|
114
|
+
<Button
|
|
115
|
+
variant="ghost"
|
|
116
|
+
size="xs"
|
|
117
|
+
onclick={() => onViewModeChange?.(viewMode === 'grid' ? 'list' : 'grid')}
|
|
118
|
+
title={viewMode === 'grid' ? 'List view' : 'Grid view'}
|
|
119
|
+
>
|
|
120
|
+
<Icon name={viewMode === 'grid' ? 'list' : 'grid'} size={14} />
|
|
121
|
+
</Button>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<!-- Filter tabs -->
|
|
126
|
+
<div class="agent-panel__filters" role="tablist">
|
|
127
|
+
<button
|
|
128
|
+
class="agent-panel__filter"
|
|
129
|
+
class:agent-panel__filter--active={filter === 'all'}
|
|
130
|
+
onclick={() => onFilterChange?.('all')}
|
|
131
|
+
role="tab"
|
|
132
|
+
aria-selected={filter === 'all'}
|
|
133
|
+
>
|
|
134
|
+
All ({agents.length})
|
|
135
|
+
</button>
|
|
136
|
+
<button
|
|
137
|
+
class="agent-panel__filter"
|
|
138
|
+
class:agent-panel__filter--active={filter === 'online'}
|
|
139
|
+
onclick={() => onFilterChange?.('online')}
|
|
140
|
+
role="tab"
|
|
141
|
+
aria-selected={filter === 'online'}
|
|
142
|
+
>
|
|
143
|
+
Online ({onlineCount})
|
|
144
|
+
</button>
|
|
145
|
+
<button
|
|
146
|
+
class="agent-panel__filter"
|
|
147
|
+
class:agent-panel__filter--active={filter === 'busy'}
|
|
148
|
+
onclick={() => onFilterChange?.('busy')}
|
|
149
|
+
role="tab"
|
|
150
|
+
aria-selected={filter === 'busy'}
|
|
151
|
+
>
|
|
152
|
+
Busy ({busyCount})
|
|
153
|
+
</button>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<!-- Agent grid/list -->
|
|
157
|
+
<div class="agent-panel__agents agent-panel__agents--{viewMode}">
|
|
158
|
+
{#each filteredAgents as agent (agent.id)}
|
|
159
|
+
<button
|
|
160
|
+
class="agent-card"
|
|
161
|
+
class:agent-card--selected={selectedAgentId === agent.id}
|
|
162
|
+
class:agent-card--compact={viewMode === 'list'}
|
|
163
|
+
onclick={() => onSelectAgent?.(selectedAgentId === agent.id ? null : agent.id)}
|
|
164
|
+
>
|
|
165
|
+
<AgentAvatar {agent} size={viewMode === 'grid' ? 'md' : 'sm'} />
|
|
166
|
+
<div class="agent-card__info">
|
|
167
|
+
<span class="agent-card__name">{agent.name}</span>
|
|
168
|
+
{#if agent.currentTask}
|
|
169
|
+
<span class="agent-card__task">{agent.currentTask.description}</span>
|
|
170
|
+
{#if viewMode === 'grid'}
|
|
171
|
+
<div class="agent-card__progress">
|
|
172
|
+
<div
|
|
173
|
+
class="agent-card__progress-bar"
|
|
174
|
+
style="width: {agent.currentTask.progress.percentage}%"
|
|
175
|
+
></div>
|
|
176
|
+
</div>
|
|
177
|
+
{/if}
|
|
178
|
+
{:else}
|
|
179
|
+
<span class="agent-card__status">{agent.status}</span>
|
|
180
|
+
{/if}
|
|
181
|
+
</div>
|
|
182
|
+
{#if agent.currentTask && viewMode === 'list'}
|
|
183
|
+
<span class="agent-card__percent">{agent.currentTask.progress.percentage}%</span>
|
|
184
|
+
{/if}
|
|
185
|
+
</button>
|
|
186
|
+
{/each}
|
|
187
|
+
|
|
188
|
+
{#if filteredAgents.length === 0}
|
|
189
|
+
<div class="agent-panel__empty">
|
|
190
|
+
<Icon name="users" size={24} />
|
|
191
|
+
<span>No agents {filter !== 'all' ? filter : ''}</span>
|
|
192
|
+
</div>
|
|
193
|
+
{/if}
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<!-- Selected agent details -->
|
|
197
|
+
{#if selectedAgent}
|
|
198
|
+
<div class="agent-panel__details">
|
|
199
|
+
<div class="agent-panel__details-header">
|
|
200
|
+
<AgentAvatar agent={selectedAgent} size="lg" />
|
|
201
|
+
<div class="agent-panel__details-info">
|
|
202
|
+
<h3>{selectedAgent.name}</h3>
|
|
203
|
+
<span class="agent-panel__details-type">{selectedAgent.type}</span>
|
|
204
|
+
</div>
|
|
205
|
+
<Button variant="ghost" size="xs" onclick={() => onSelectAgent?.(null)}>
|
|
206
|
+
<Icon name="x" size={14} />
|
|
207
|
+
</Button>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
{#if selectedAgent.currentTask}
|
|
211
|
+
<div class="agent-panel__task">
|
|
212
|
+
<div class="agent-panel__task-header">
|
|
213
|
+
<Icon name="play" size={12} />
|
|
214
|
+
<span>{selectedAgent.currentTask.description}</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="agent-panel__task-progress">
|
|
217
|
+
<div
|
|
218
|
+
class="agent-panel__task-bar"
|
|
219
|
+
style="width: {selectedAgent.currentTask.progress.percentage}%"
|
|
220
|
+
></div>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="agent-panel__task-stats">
|
|
223
|
+
<span>{selectedAgent.currentTask.progress.phase}</span>
|
|
224
|
+
<span>{selectedAgent.currentTask.progress.filesModified} files</span>
|
|
225
|
+
<span>{selectedAgent.currentTask.progress.toolCalls} calls</span>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
{/if}
|
|
229
|
+
</div>
|
|
230
|
+
{/if}
|
|
231
|
+
|
|
232
|
+
<!-- Activity feed -->
|
|
233
|
+
<div class="agent-panel__feed">
|
|
234
|
+
<div class="agent-panel__feed-header">
|
|
235
|
+
<Icon name="activity" size={14} />
|
|
236
|
+
<span>{selectedAgent ? `${selectedAgent.name}'s Activity` : 'All Activity'}</span>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="agent-panel__feed-list">
|
|
239
|
+
{#each selectedAgentActivities.slice(0, 50) as activity (activity.id)}
|
|
240
|
+
<div class="activity-item" class:activity-item--error={activity.type === 'error'}>
|
|
241
|
+
<div class="activity-item__icon" style="color: {getActivityColor(activity.type)}">
|
|
242
|
+
<Icon name={getActivityIcon(activity.type)} size={12} />
|
|
243
|
+
</div>
|
|
244
|
+
<div class="activity-item__content">
|
|
245
|
+
<span class="activity-item__agent">{activity.agent.name}</span>
|
|
246
|
+
<span class="activity-item__text">{activity.content}</span>
|
|
247
|
+
</div>
|
|
248
|
+
<span class="activity-item__time">{formatTime(activity.timestamp)}</span>
|
|
249
|
+
</div>
|
|
250
|
+
{/each}
|
|
251
|
+
|
|
252
|
+
{#if selectedAgentActivities.length === 0}
|
|
253
|
+
<div class="agent-panel__empty">
|
|
254
|
+
<Icon name="inbox" size={20} />
|
|
255
|
+
<span>No activity yet</span>
|
|
256
|
+
</div>
|
|
257
|
+
{/if}
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<style>
|
|
263
|
+
.agent-panel {
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: column;
|
|
266
|
+
height: 100%;
|
|
267
|
+
background: var(--ide-bg-secondary);
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.agent-panel__header {
|
|
272
|
+
display: flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: space-between;
|
|
275
|
+
padding: var(--ide-spacing-sm) var(--ide-spacing-md);
|
|
276
|
+
border-bottom: 1px solid var(--ide-border);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.agent-panel__title {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: var(--ide-spacing-sm);
|
|
283
|
+
font-size: var(--ide-font-size-sm);
|
|
284
|
+
font-weight: 600;
|
|
285
|
+
color: var(--ide-text-primary);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.agent-panel__actions {
|
|
289
|
+
display: flex;
|
|
290
|
+
gap: var(--ide-spacing-xs);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.agent-panel__filters {
|
|
294
|
+
display: flex;
|
|
295
|
+
padding: var(--ide-spacing-xs) var(--ide-spacing-sm);
|
|
296
|
+
gap: var(--ide-spacing-xs);
|
|
297
|
+
border-bottom: 1px solid var(--ide-border);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.agent-panel__filter {
|
|
301
|
+
padding: var(--ide-spacing-xs) var(--ide-spacing-sm);
|
|
302
|
+
font-size: var(--ide-font-size-xs);
|
|
303
|
+
color: var(--ide-text-secondary);
|
|
304
|
+
background: transparent;
|
|
305
|
+
border: none;
|
|
306
|
+
border-radius: var(--ide-radius-sm);
|
|
307
|
+
cursor: pointer;
|
|
308
|
+
transition: all var(--ide-transition-fast);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.agent-panel__filter:hover {
|
|
312
|
+
background: var(--ide-bg-hover);
|
|
313
|
+
color: var(--ide-text-primary);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.agent-panel__filter--active {
|
|
317
|
+
background: var(--ide-bg-tertiary);
|
|
318
|
+
color: var(--ide-text-primary);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.agent-panel__agents {
|
|
322
|
+
padding: var(--ide-spacing-sm);
|
|
323
|
+
overflow-y: auto;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.agent-panel__agents--grid {
|
|
327
|
+
display: grid;
|
|
328
|
+
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
329
|
+
gap: var(--ide-spacing-sm);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.agent-panel__agents--list {
|
|
333
|
+
display: flex;
|
|
334
|
+
flex-direction: column;
|
|
335
|
+
gap: var(--ide-spacing-xs);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.agent-card {
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: flex-start;
|
|
341
|
+
gap: var(--ide-spacing-sm);
|
|
342
|
+
padding: var(--ide-spacing-sm);
|
|
343
|
+
background: var(--ide-bg-primary);
|
|
344
|
+
border: 1px solid var(--ide-border);
|
|
345
|
+
border-radius: var(--ide-radius-md);
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
transition: all var(--ide-transition-fast);
|
|
348
|
+
text-align: left;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.agent-card:hover {
|
|
352
|
+
border-color: var(--ide-interactive);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.agent-card--selected {
|
|
356
|
+
border-color: var(--ide-interactive);
|
|
357
|
+
background: var(--ide-bg-tertiary);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.agent-card--compact {
|
|
361
|
+
align-items: center;
|
|
362
|
+
padding: var(--ide-spacing-xs) var(--ide-spacing-sm);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.agent-card__info {
|
|
366
|
+
flex: 1;
|
|
367
|
+
min-width: 0;
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
gap: 2px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.agent-card__name {
|
|
374
|
+
font-size: var(--ide-font-size-sm);
|
|
375
|
+
font-weight: 500;
|
|
376
|
+
color: var(--ide-text-primary);
|
|
377
|
+
white-space: nowrap;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
text-overflow: ellipsis;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.agent-card__task {
|
|
383
|
+
font-size: var(--ide-font-size-xs);
|
|
384
|
+
color: var(--ide-text-secondary);
|
|
385
|
+
white-space: nowrap;
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
text-overflow: ellipsis;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.agent-card__status {
|
|
391
|
+
font-size: var(--ide-font-size-xs);
|
|
392
|
+
color: var(--ide-text-muted);
|
|
393
|
+
text-transform: capitalize;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.agent-card__progress {
|
|
397
|
+
height: 3px;
|
|
398
|
+
background: var(--ide-progress-track);
|
|
399
|
+
border-radius: 2px;
|
|
400
|
+
margin-top: 4px;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.agent-card__progress-bar {
|
|
405
|
+
height: 100%;
|
|
406
|
+
background: var(--ide-progress-fill);
|
|
407
|
+
border-radius: 2px;
|
|
408
|
+
transition: width 0.3s ease;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.agent-card__percent {
|
|
412
|
+
font-size: var(--ide-font-size-xs);
|
|
413
|
+
color: var(--ide-text-muted);
|
|
414
|
+
font-family: var(--ide-font-mono);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.agent-panel__empty {
|
|
418
|
+
display: flex;
|
|
419
|
+
flex-direction: column;
|
|
420
|
+
align-items: center;
|
|
421
|
+
justify-content: center;
|
|
422
|
+
gap: var(--ide-spacing-sm);
|
|
423
|
+
padding: var(--ide-spacing-xl);
|
|
424
|
+
color: var(--ide-text-muted);
|
|
425
|
+
font-size: var(--ide-font-size-sm);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.agent-panel__details {
|
|
429
|
+
padding: var(--ide-spacing-sm);
|
|
430
|
+
border-top: 1px solid var(--ide-border);
|
|
431
|
+
background: var(--ide-bg-primary);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.agent-panel__details-header {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: var(--ide-spacing-sm);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.agent-panel__details-info {
|
|
441
|
+
flex: 1;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.agent-panel__details-info h3 {
|
|
445
|
+
margin: 0;
|
|
446
|
+
font-size: var(--ide-font-size-sm);
|
|
447
|
+
font-weight: 600;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.agent-panel__details-type {
|
|
451
|
+
font-size: var(--ide-font-size-xs);
|
|
452
|
+
color: var(--ide-text-muted);
|
|
453
|
+
text-transform: capitalize;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.agent-panel__task {
|
|
457
|
+
margin-top: var(--ide-spacing-sm);
|
|
458
|
+
padding: var(--ide-spacing-sm);
|
|
459
|
+
background: var(--ide-bg-secondary);
|
|
460
|
+
border-radius: var(--ide-radius-sm);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.agent-panel__task-header {
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
gap: var(--ide-spacing-xs);
|
|
467
|
+
font-size: var(--ide-font-size-xs);
|
|
468
|
+
color: var(--ide-text-secondary);
|
|
469
|
+
margin-bottom: var(--ide-spacing-xs);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.agent-panel__task-progress {
|
|
473
|
+
height: 4px;
|
|
474
|
+
background: var(--ide-progress-track);
|
|
475
|
+
border-radius: 2px;
|
|
476
|
+
overflow: hidden;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.agent-panel__task-bar {
|
|
480
|
+
height: 100%;
|
|
481
|
+
background: linear-gradient(90deg, var(--ide-agent-ai-primary), var(--color-nocturnium-flame));
|
|
482
|
+
border-radius: 2px;
|
|
483
|
+
transition: width 0.3s ease;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.agent-panel__task-stats {
|
|
487
|
+
display: flex;
|
|
488
|
+
gap: var(--ide-spacing-md);
|
|
489
|
+
margin-top: var(--ide-spacing-xs);
|
|
490
|
+
font-size: var(--ide-font-size-xs);
|
|
491
|
+
color: var(--ide-text-muted);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.agent-panel__feed {
|
|
495
|
+
flex: 1;
|
|
496
|
+
display: flex;
|
|
497
|
+
flex-direction: column;
|
|
498
|
+
min-height: 0;
|
|
499
|
+
border-top: 1px solid var(--ide-border);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.agent-panel__feed-header {
|
|
503
|
+
display: flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
gap: var(--ide-spacing-xs);
|
|
506
|
+
padding: var(--ide-spacing-sm);
|
|
507
|
+
font-size: var(--ide-font-size-xs);
|
|
508
|
+
font-weight: 600;
|
|
509
|
+
color: var(--ide-text-secondary);
|
|
510
|
+
text-transform: uppercase;
|
|
511
|
+
letter-spacing: 0.05em;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.agent-panel__feed-list {
|
|
515
|
+
flex: 1;
|
|
516
|
+
overflow-y: auto;
|
|
517
|
+
padding: 0 var(--ide-spacing-sm) var(--ide-spacing-sm);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.activity-item {
|
|
521
|
+
display: flex;
|
|
522
|
+
align-items: flex-start;
|
|
523
|
+
gap: var(--ide-spacing-xs);
|
|
524
|
+
padding: var(--ide-spacing-xs) 0;
|
|
525
|
+
border-bottom: 1px solid var(--ide-border);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.activity-item:last-child {
|
|
529
|
+
border-bottom: none;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.activity-item--error {
|
|
533
|
+
background: color-mix(in srgb, var(--ide-error) 10%, transparent);
|
|
534
|
+
margin: 0 calc(-1 * var(--ide-spacing-sm));
|
|
535
|
+
padding: var(--ide-spacing-xs) var(--ide-spacing-sm);
|
|
536
|
+
border-radius: var(--ide-radius-sm);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.activity-item__icon {
|
|
540
|
+
flex-shrink: 0;
|
|
541
|
+
padding-top: 2px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.activity-item__content {
|
|
545
|
+
flex: 1;
|
|
546
|
+
min-width: 0;
|
|
547
|
+
font-size: var(--ide-font-size-xs);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.activity-item__agent {
|
|
551
|
+
font-weight: 500;
|
|
552
|
+
color: var(--ide-text-primary);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.activity-item__text {
|
|
556
|
+
color: var(--ide-text-secondary);
|
|
557
|
+
margin-left: var(--ide-spacing-xs);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.activity-item__time {
|
|
561
|
+
flex-shrink: 0;
|
|
562
|
+
font-size: 10px;
|
|
563
|
+
color: var(--ide-text-muted);
|
|
564
|
+
}
|
|
565
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Agent, AgentActivity, AgentFilter, AgentViewMode } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** List of agents to display */
|
|
4
|
+
agents: Agent[];
|
|
5
|
+
/** Activity feed items */
|
|
6
|
+
activities: AgentActivity[];
|
|
7
|
+
/** Currently selected agent ID */
|
|
8
|
+
selectedAgentId?: string | null;
|
|
9
|
+
/** Current filter */
|
|
10
|
+
filter?: AgentFilter;
|
|
11
|
+
/** View mode */
|
|
12
|
+
viewMode?: AgentViewMode;
|
|
13
|
+
/** Called when agent is selected */
|
|
14
|
+
onSelectAgent?: (agentId: string | null) => void;
|
|
15
|
+
/** Called when filter changes */
|
|
16
|
+
onFilterChange?: (filter: AgentFilter) => void;
|
|
17
|
+
/** Called when view mode changes */
|
|
18
|
+
onViewModeChange?: (mode: AgentViewMode) => void;
|
|
19
|
+
/** Additional CSS class */
|
|
20
|
+
class?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const AgentActivityPanel: import("svelte").Component<Props, {}, "">;
|
|
23
|
+
type AgentActivityPanel = ReturnType<typeof AgentActivityPanel>;
|
|
24
|
+
export default AgentActivityPanel;
|