mirror of
https://github.com/hanzoai/agents.git
synced 2026-10-30 18:48:36 +00:00
23 lines
645 B
TypeScript
23 lines
645 B
TypeScript
import { ClaudeCodeAgent } from '../src/main/services/coding-agent/implementations/ClaudeCodeAgent';
|
|
|
|
async function debug() {
|
|
const agent = new ClaudeCodeAgent({});
|
|
await agent.initialize();
|
|
|
|
const result = await agent.listSessionSummaries({ lookbackDays: 1 });
|
|
if (result.success === false) {
|
|
console.log('Error:', result.error);
|
|
return;
|
|
}
|
|
|
|
// Show raw timestamps from the top 10 sessions
|
|
console.log('Top 10 sessions by timestamp:');
|
|
for (const s of result.data.slice(0, 10)) {
|
|
console.log(
|
|
`${s.id.substring(0, 8)} | ts: ${s.timestamp} | upd: ${s.updatedAt} | proj: ${s.projectName}`
|
|
);
|
|
}
|
|
}
|
|
|
|
debug();
|