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:
30
skills/plugins/claude-hud/dist/render/lines/environment.js
vendored
Normal file
30
skills/plugins/claude-hud/dist/render/lines/environment.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { dim } from '../colors.js';
|
||||
export function renderEnvironmentLine(ctx) {
|
||||
const display = ctx.config?.display;
|
||||
if (display?.showConfigCounts === false) {
|
||||
return null;
|
||||
}
|
||||
const totalCounts = ctx.claudeMdCount + ctx.rulesCount + ctx.mcpCount + ctx.hooksCount;
|
||||
const threshold = display?.environmentThreshold ?? 0;
|
||||
if (totalCounts === 0 || totalCounts < threshold) {
|
||||
return null;
|
||||
}
|
||||
const parts = [];
|
||||
if (ctx.claudeMdCount > 0) {
|
||||
parts.push(`${ctx.claudeMdCount} CLAUDE.md`);
|
||||
}
|
||||
if (ctx.rulesCount > 0) {
|
||||
parts.push(`${ctx.rulesCount} rules`);
|
||||
}
|
||||
if (ctx.mcpCount > 0) {
|
||||
parts.push(`${ctx.mcpCount} MCPs`);
|
||||
}
|
||||
if (ctx.hooksCount > 0) {
|
||||
parts.push(`${ctx.hooksCount} hooks`);
|
||||
}
|
||||
if (parts.length === 0) {
|
||||
return null;
|
||||
}
|
||||
return dim(parts.join(' | '));
|
||||
}
|
||||
//# sourceMappingURL=environment.js.map
|
||||
Reference in New Issue
Block a user