mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/verification/test-verification.ts
This commit is contained in:
1 parent
4749df06e3
commit
13691c48a8
3 files changed
+49
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250812-024240", "file": "/workspaces/claude-code-flow/src/verification/cli-integration.ts", "timestamp": "2025-08-12T02:42:40Z", "type": "pre-edit", "original_branch": "alpha-89"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250812-024242", "file": "/workspaces/claude-code-flow/src/verification/cli-integration.ts", "timestamp": "2025-08-12T02:42:42Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 196 ++++++++++++++++++++++++++++--- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754966544.json | 1 + .claude/checkpoints/1754966545.json | 1 + src/verification/cli-integration.ts | 3 +- 6 files changed, 190 insertions(+), 19 deletions(-) "}
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* Simple test to verify the verification system works
|
||||
*/
|
||||
|
||||
import { verificationHookManager } from './hooks.js';
|
||||
|
||||
export async function testVerificationSystem(): Promise<void> {
|
||||
console.log('🧪 Testing Verification System...');
|
||||
|
||||
try {
|
||||
// Test status
|
||||
const metrics = verificationHookManager.getMetrics();
|
||||
console.log('✅ Metrics retrieved:', metrics);
|
||||
|
||||
// Test adding a simple checker
|
||||
verificationHookManager.addPreTaskChecker({
|
||||
id: 'test-checker',
|
||||
name: 'Test Checker',
|
||||
description: 'A simple test checker',
|
||||
priority: 50,
|
||||
check: async (context) => ({
|
||||
passed: true,
|
||||
score: 1.0,
|
||||
message: 'Test check passed'
|
||||
})
|
||||
});
|
||||
|
||||
console.log('✅ Test checker added successfully');
|
||||
|
||||
// Test configuration
|
||||
verificationHookManager.updateConfig({
|
||||
preTask: { enabled: true, checkers: [], failureStrategy: 'warn' }
|
||||
});
|
||||
|
||||
console.log('✅ Configuration updated successfully');
|
||||
|
||||
console.log('🎉 Verification system test completed successfully!');
|
||||
} catch (error) {
|
||||
console.error('❌ Verification system test failed:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
// Auto-run test if this file is executed directly
|
||||
if (require.main === module) {
|
||||
testVerificationSystem().catch(console.error);
|
||||
}
|
||||
Reference in new issue
Block a user