chore: initialize recovered claude workspace
This commit is contained in:
17
src/commands/heapdump/heapdump.ts
Normal file
17
src/commands/heapdump/heapdump.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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}`,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user