SuperCharge Claude Code v1.0.0 - Complete Customization Package
Features: - 30+ Custom Skills (cognitive, development, UI/UX, autonomous agents) - RalphLoop autonomous agent integration - Multi-AI consultation (Qwen) - Agent management system with sync capabilities - Custom hooks for session management - MCP servers integration - Plugin marketplace setup - Comprehensive installation script Components: - Skills: always-use-superpowers, ralph, brainstorming, ui-ux-pro-max, etc. - Agents: 100+ agents across engineering, marketing, product, etc. - Hooks: session-start-superpowers, qwen-consult, ralph-auto-trigger - Commands: /brainstorm, /write-plan, /execute-plan - MCP Servers: zai-mcp-server, web-search-prime, web-reader, zread - Binaries: ralphloop wrapper Installation: ./supercharge.sh
This commit is contained in:
44
plugins/claude-hud/dist/render/agents-line.js
vendored
Normal file
44
plugins/claude-hud/dist/render/agents-line.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import { yellow, green, magenta, dim } from './colors.js';
|
||||
export function renderAgentsLine(ctx) {
|
||||
const { agents } = ctx.transcript;
|
||||
const runningAgents = agents.filter((a) => a.status === 'running');
|
||||
const recentCompleted = agents
|
||||
.filter((a) => a.status === 'completed')
|
||||
.slice(-2);
|
||||
const toShow = [...runningAgents, ...recentCompleted].slice(-3);
|
||||
if (toShow.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const lines = [];
|
||||
for (const agent of toShow) {
|
||||
lines.push(formatAgent(agent));
|
||||
}
|
||||
return lines.join('\n');
|
||||
}
|
||||
function formatAgent(agent) {
|
||||
const statusIcon = agent.status === 'running' ? yellow('◐') : green('✓');
|
||||
const type = magenta(agent.type);
|
||||
const model = agent.model ? dim(`[${agent.model}]`) : '';
|
||||
const desc = agent.description ? dim(`: ${truncateDesc(agent.description)}`) : '';
|
||||
const elapsed = formatElapsed(agent);
|
||||
return `${statusIcon} ${type}${model ? ` ${model}` : ''}${desc} ${dim(`(${elapsed})`)}`;
|
||||
}
|
||||
function truncateDesc(desc, maxLen = 40) {
|
||||
if (desc.length <= maxLen)
|
||||
return desc;
|
||||
return desc.slice(0, maxLen - 3) + '...';
|
||||
}
|
||||
function formatElapsed(agent) {
|
||||
const now = Date.now();
|
||||
const start = agent.startTime.getTime();
|
||||
const end = agent.endTime?.getTime() ?? now;
|
||||
const ms = end - start;
|
||||
if (ms < 1000)
|
||||
return '<1s';
|
||||
if (ms < 60000)
|
||||
return `${Math.round(ms / 1000)}s`;
|
||||
const mins = Math.floor(ms / 60000);
|
||||
const secs = Math.round((ms % 60000) / 1000);
|
||||
return `${mins}m ${secs}s`;
|
||||
}
|
||||
//# sourceMappingURL=agents-line.js.map
|
||||
Reference in New Issue
Block a user