claude-code

This commit is contained in:
ashutoshpythoncs@gmail.com
2026-03-31 18:58:05 +05:30
parent a2a44a5841
commit b564857c0b
2148 changed files with 564518 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
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}`,
}
}

View File

@@ -0,0 +1,14 @@
import type { Command } from '../../commands.js'
const heapDump = {
type: 'local',
name: 'heapdump',
description: 'Dump the JS heap to ~/Desktop',
isHidden: true,
supportsNonInteractive: true,
load: () => import('./heapdump.js'),
} satisfies Command
export default heapDump