mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-04 01:40:45 +08:00
- Implemented CliCommandNode component for executing CLI tools with AI models. - Implemented PromptNode component for constructing AI prompts with context. - Added styling for mode and tool badges in both components. - Enhanced user experience with command and argument previews, execution status, and error handling. test: add comprehensive tests for ask_question tool - Created direct test for ask_question tool execution. - Developed end-to-end tests to validate ask_question tool integration with WebSocket and A2UI surfaces. - Implemented simple and integrated WebSocket tests to ensure proper message handling and surface reception. - Added tool registration test to verify ask_question tool is correctly registered. chore: add WebSocket listener and simulation tests - Added WebSocket listener for A2UI surfaces to facilitate testing. - Implemented frontend simulation test to validate complete flow from backend to frontend. - Created various test scripts to ensure robust testing of ask_question tool functionality.
20 lines
613 B
JavaScript
20 lines
613 B
JavaScript
import { listTools, executeTool } from './ccw/dist/tools/index.js';
|
|
|
|
console.log('=== Testing ask_question Tool Registration ===\n');
|
|
|
|
// List all tools
|
|
const tools = listTools();
|
|
console.log(`Total registered tools: ${tools.length}\n`);
|
|
|
|
// Find ask_question tool
|
|
const askTool = tools.find(t => t.name === 'ask_question');
|
|
|
|
if (askTool) {
|
|
console.log('✅ ask_question tool is registered!\n');
|
|
console.log('Tool details:');
|
|
console.log(JSON.stringify(askTool, null, 2));
|
|
} else {
|
|
console.log('❌ ask_question tool NOT found');
|
|
console.log('\nRegistered tools:', tools.map(t => t.name).join(', '));
|
|
}
|