Files
proffesor-for-testing__agen…/v2/scripts/debug-parser-state.ts
Profa fd2f37eaa0 fix(v3): update README claims and init hooks to use correct package name
Changes:
- Fix README.md agent counts (48 QE agents = 41 main + 7 subagents)
- Fix README.md skill counts (15 QE-specific skills)
- Fix v3/README.md agent counts (47 → 48)
- Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe'
- Complete v2 → v2/ folder reorganization (54 items moved)
- Update root package.json to point to v3 as main version

Verified claims:
- 48 QE agents (41 main + 7 TDD subagents)
- 15 QE-specific skills
- 12 DDD bounded contexts
- ~5,600+ tests
- HNSW, ReasoningBank, Queen Coordinator features exist

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 18:03:40 +00:00

41 lines
1.2 KiB
TypeScript

import { ASTChunker } from '../src/code-intelligence/chunking/ASTChunker.js';
import { TreeSitterParser } from '../src/code-intelligence/parser/TreeSitterParser.js';
// Simulate benchmark test's beforeAll
const astChunker = new ASTChunker({
maxTokens: 512,
overlapPercent: 15,
});
const sampleCode = `
export class UserService {
private users: Map<string, User> = new Map();
async createUser(email: string): Promise<User> {
return { email };
}
}
`;
const result = astChunker.chunkFile('/src/services/UserService.ts', sampleCode, 'typescript');
console.log('ASTChunker result chunks:', result.chunks.length);
// Now simulate TreeSitterParser test's beforeAll
const parser = new TreeSitterParser();
// Now test if the parser works
const content = `
class Test {
private static async getData(): Promise<void> {}
}
`;
const parseResult = parser.parseFile('test.ts', content, 'typescript');
console.log('\nParser test results:');
for (const e of parseResult.entities) {
console.log(' Entity:', e.name, e.type);
console.log(' visibility:', e.metadata?.visibility);
console.log(' isStatic:', e.metadata?.isStatic);
console.log(' isAsync:', e.metadata?.isAsync);
}