mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 00:27:39 +00:00
11 lines
427 B
TypeScript
11 lines
427 B
TypeScript
import type { MemorySnapshot } from '../../shared/types'
|
|
import type { CommandHandler } from '../dispatch'
|
|
import { formatMemorySnapshot, printResult } from '../format'
|
|
|
|
export const DIAGNOSTICS_HANDLERS: Record<string, CommandHandler> = {
|
|
'diagnostics memory': async ({ client, json }) => {
|
|
const result = await client.call<MemorySnapshot>('diagnostics.memory')
|
|
printResult(result, json, formatMemorySnapshot)
|
|
}
|
|
}
|