diff --git a/.claude/checkpoints/1754966560.json b/.claude/checkpoints/1754966560.json new file mode 100644 index 0000000000..f10e57b657 --- /dev/null +++ b/.claude/checkpoints/1754966560.json @@ -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"} diff --git a/.claude/checkpoints/1754966562.json b/.claude/checkpoints/1754966562.json new file mode 100644 index 0000000000..530360e487 --- /dev/null +++ b/.claude/checkpoints/1754966562.json @@ -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(-) "} diff --git a/src/verification/test-verification.ts b/src/verification/test-verification.ts new file mode 100644 index 0000000000..4209df6628 --- /dev/null +++ b/src/verification/test-verification.ts @@ -0,0 +1,47 @@ +/** + * Simple test to verify the verification system works + */ + +import { verificationHookManager } from './hooks.js'; + +export async function testVerificationSystem(): Promise { + 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); +} \ No newline at end of file