Stream ID identifying the request
ProtectedensureProtectedensureHandle approval response from the frontend.
approval response
ProtectedimportDynamically imports the Claude Code SDK from the local installation.
OptionalcustomClaudeCodePath: stringOptional custom path to Claude Code executable (cli.js)
An object containing the SDK's query function, user message type, and options type.
ProtectedisProtectedrequestProtectedresolveSend a request to Claude Code.
request parameters
Pre-generated stream ID for tracking streaming responses
Protectedsend
Cancel a running request to Claude Code.