MCPcopy Create free account
hub / github.com/KunAgent/Kun / errorMessage

Function errorMessage

kun/src/cli/agent-cli.ts:442–444  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

440}
441
442function errorMessage(error: unknown): string {
443 return error instanceof Error ? error.message : String(error)
444}
445
446function isTtyInput(input: NodeJS.ReadableStream): boolean {
447 return Boolean((input as NodeJS.ReadStream).isTTY)

Callers 5

runOneShotFunction · 0.70
runChatFunction · 0.70
runExecFunction · 0.70
shutdownRuntimeFunction · 0.70
parseJsonObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected