mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 15:46:58 +10:00
18 lines
398 B
TypeScript
18 lines
398 B
TypeScript
|
|
import { performHeapDump } from '../../utils/heapDumpService.js'
|
||
|
|
|
||
|
|
export async function call(): Promise<{ type: 'text'; value: string }> {
|
||
|
|
const result = await performHeapDump()
|
||
|
|
|
||
|
|
if (!result.success) {
|
||
|
|
return {
|
||
|
|
type: 'text',
|
||
|
|
value: `Failed to create heap dump: ${result.error}`,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return {
|
||
|
|
type: 'text',
|
||
|
|
value: `${result.heapPath}\n${result.diagPath}`,
|
||
|
|
}
|
||
|
|
}
|