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:
32
plugins/claude-hud/tests/stdin.test.js
Normal file
32
plugins/claude-hud/tests/stdin.test.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readStdin } from '../dist/stdin.js';
|
||||
|
||||
test('readStdin returns null for TTY input', async () => {
|
||||
const originalIsTTY = process.stdin.isTTY;
|
||||
Object.defineProperty(process.stdin, 'isTTY', { value: true, configurable: true });
|
||||
|
||||
try {
|
||||
const result = await readStdin();
|
||||
assert.equal(result, null);
|
||||
} finally {
|
||||
Object.defineProperty(process.stdin, 'isTTY', { value: originalIsTTY, configurable: true });
|
||||
}
|
||||
});
|
||||
|
||||
test('readStdin returns null on stream errors', async () => {
|
||||
const originalIsTTY = process.stdin.isTTY;
|
||||
const originalSetEncoding = process.stdin.setEncoding;
|
||||
Object.defineProperty(process.stdin, 'isTTY', { value: false, configurable: true });
|
||||
process.stdin.setEncoding = () => {
|
||||
throw new Error('boom');
|
||||
};
|
||||
|
||||
try {
|
||||
const result = await readStdin();
|
||||
assert.equal(result, null);
|
||||
} finally {
|
||||
process.stdin.setEncoding = originalSetEncoding;
|
||||
Object.defineProperty(process.stdin, 'isTTY', { value: originalIsTTY, configurable: true });
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user