Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions vscode/guardex-active-agents/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,29 @@ function iconColorId(iconId) {
case 'folder':
case 'graph':
case 'history':
case 'dashboard':
case 'inbox':
case 'file-directory':
case 'settings-gear':
case 'folder-library':
return 'textLink.foreground';
case 'git-branch':
return 'gitDecoration.modifiedResourceForeground';
case 'account':
return 'terminal.ansiYellow';
case 'debug-pause':
return 'terminal.ansiYellow';
case 'sparkle':
case 'rocket':
return 'terminal.ansiMagenta';
case 'list-flat':
case 'device-camera':
return 'terminal.ansiCyan';
case 'list-tree':
case 'telescope':
return 'terminal.ansiBlue';
case 'organization':
return 'terminal.ansiGreen';
default:
return '';
}
Expand Down Expand Up @@ -2750,12 +2762,12 @@ function buildSessionDetailItems(session) {
}
if (provider?.label) {
items.push(new DetailItem('Provider', provider.label, {
iconId: 'sparkle',
iconId: 'rocket',
}));
}
if (snapshot) {
items.push(new DetailItem('Snapshot', snapshot, {
iconId: 'account',
iconId: 'device-camera',
}));
}
if (projectRelativePath) {
Expand All @@ -2768,7 +2780,7 @@ function buildSessionDetailItems(session) {
iconId: 'git-branch',
}));
items.push(new DetailItem('Worktree', session.worktreePath, {
iconId: 'folder',
iconId: 'folder-library',
tooltip: session.worktreePath,
}));
return items;
Expand Down Expand Up @@ -3044,11 +3056,12 @@ class ActiveAgentsProvider {
const sectionItems = [
new SectionItem('Overview', [
new DetailItem('Summary', buildOverviewDescription(element.overview), {
iconId: 'graph',
iconId: 'dashboard',
tooltip: buildRepoTooltip(element.repoRoot, element.overview),
}),
], {
description: '1',
iconId: 'telescope',
}),
];

Expand All @@ -3065,14 +3078,14 @@ class ActiveAgentsProvider {
sectionItems.push(new SectionItem('Idle / thinking', idleThinkingItems, {
description: String(idleThinkingItems.length),
collapsedState: vscode.TreeItemCollapsibleState.Collapsed,
iconId: 'comment-discussion',
iconId: 'debug-pause',
}));
}

if (element.unassignedChanges.length > 0) {
sectionItems.push(new SectionItem('Unassigned changes', buildUnassignedChangeNodes(element.unassignedChanges), {
description: String(element.unassignedChanges.length),
iconId: 'warning',
iconId: 'inbox',
}));
}

Expand All @@ -3082,22 +3095,22 @@ class ActiveAgentsProvider {
advancedItems.push(new SectionItem('Active agent tree', rawActiveAgents, {
description: String(element.sessions.length),
collapsedState: vscode.TreeItemCollapsibleState.Collapsed,
iconId: 'git-branch',
iconId: 'organization',
}));
}
const rawChangeTree = buildGroupedChangeTreeNodes(element.sessions, element.changes);
if (rawChangeTree.length > 0) {
advancedItems.push(new SectionItem('Raw path tree', rawChangeTree, {
description: String(element.changes.length),
collapsedState: vscode.TreeItemCollapsibleState.Collapsed,
iconId: 'list-tree',
iconId: 'file-directory',
}));
}
if (advancedItems.length > 0) {
sectionItems.push(new SectionItem('Advanced details', advancedItems, {
description: String(advancedItems.length),
collapsedState: vscode.TreeItemCollapsibleState.Collapsed,
iconId: 'list-tree',
iconId: 'settings-gear',
}));
}
return sectionItems;
Expand Down
Loading