Reorganize: Move all skills to skills/ folder
- Created skills/ directory - Moved 272 skills to skills/ subfolder - Kept agents/ at root level - Kept installation scripts and docs at root level Repository structure: - skills/ - All 272 skills from skills.sh - agents/ - Agent definitions - *.sh, *.ps1 - Installation scripts - README.md, etc. - Documentation Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
25
skills/plugins/claude-hud/dist/render/todos-line.js
vendored
Normal file
25
skills/plugins/claude-hud/dist/render/todos-line.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { yellow, green, dim } from './colors.js';
|
||||
export function renderTodosLine(ctx) {
|
||||
const { todos } = ctx.transcript;
|
||||
if (!todos || todos.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const inProgress = todos.find((t) => t.status === 'in_progress');
|
||||
const completed = todos.filter((t) => t.status === 'completed').length;
|
||||
const total = todos.length;
|
||||
if (!inProgress) {
|
||||
if (completed === total && total > 0) {
|
||||
return `${green('✓')} All todos complete ${dim(`(${completed}/${total})`)}`;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
const content = truncateContent(inProgress.content);
|
||||
const progress = dim(`(${completed}/${total})`);
|
||||
return `${yellow('▸')} ${content} ${progress}`;
|
||||
}
|
||||
function truncateContent(content, maxLen = 50) {
|
||||
if (content.length <= maxLen)
|
||||
return content;
|
||||
return content.slice(0, maxLen - 3) + '...';
|
||||
}
|
||||
//# sourceMappingURL=todos-line.js.map
|
||||
Reference in New Issue
Block a user