Skip to content
2 min read · 371 words

@nhtio/adk/batteries/llm/claude_code_cli/types ​

TypeScript wire shapes, helper contracts, and option types for the Claude Code CLI battery.

Remarks ​

Type aliases for the ClaudeCodeCliAdapter — the public options shape, the ClaudeCodeCliHelpers contract (extends the wire-shape-agnostic ChatHelpersCommon with the battery's own history-rendering and outbound tool-result-rendering members), and re-exports of the wire-shape-agnostic types consumers of this battery need. The adapter↔wrapper protocol itself lives in ./wire (zero imports, shared across future CLI harnesses) and is re-exported here for convenience.

Interfaces ​

InterfaceDescription
ClaudeCodeCliAdapterOptionsConfiguration options for the @nhtio/adk/batteries/llm/claude_code_cli!ClaudeCodeCliAdapter.
ClaudeCodeCliHelpersFull translation-helper contract for the Claude Code CLI battery. Extends the wire-shape- agnostic ChatHelpersCommon (shared with every other Chat-family battery) and adds the battery-specific members: a plain-text-only timeline-message renderer (a -p prompt string has no native image side-channel, unlike Ollama's images[]), a plain-text-only tool-call-result renderer for the inbound history direction, and the top-level history-to-prompt assembler.
ExecaLikeThe slice of execa this adapter uses to spawn the wrapper.

Type Aliases ​

Type AliasDescription
ExecaResolverResolver forms accepted for the execa module — mirrors ExecaResolver in execa_executor.ts.

References ​

ChatCompletionsBucketLabel ​

Re-exports ChatCompletionsBucketLabel


ChatCompletionsBucketOrder ​

Re-exports ChatCompletionsBucketOrder


ChatCompletionsRetryConfig ​

Re-exports ChatCompletionsRetryConfig


ChatCompletionsTool ​

Re-exports ChatCompletionsTool


ChatHelpersCommon ​

Re-exports ChatHelpersCommon


ClaudeCodeCliExtraArg ​

Re-exports ClaudeCodeCliExtraArg


DescriptionLike ​

Re-exports DescriptionLike


JsonSchema ​

Re-exports JsonSchema


MemoryAttrs ​

Re-exports MemoryAttrs


RetrievableAttrs ​

Re-exports RetrievableAttrs


StandingInstructionAttrs ​

Re-exports StandingInstructionAttrs


ThoughtAttrs ​

Re-exports ThoughtAttrs


ToolCallIdFilterFn ​

Re-exports ToolCallIdFilterFn


TrustedContentAttrs ​

Re-exports TrustedContentAttrs


UnsupportedMediaPolicy ​

Re-exports UnsupportedMediaPolicy


UntrustedContentAttrs ​

Re-exports UntrustedContentAttrs


WrapperAuth ​

Re-exports WrapperAuth


WrapperBridgedTool ​

Re-exports WrapperBridgedTool


WrapperCommand ​

Re-exports WrapperCommand


WrapperErrorEvent ​

Re-exports WrapperErrorEvent


WrapperEvent ​

Re-exports WrapperEvent


WrapperInitEvent ​

Re-exports WrapperInitEvent


WrapperLogEvent ​

Re-exports WrapperLogEvent


WrapperMessageDeltaEvent ​

Re-exports WrapperMessageDeltaEvent


WrapperReadyEvent ​

Re-exports WrapperReadyEvent


WrapperResultEvent ​

Re-exports WrapperResultEvent


WrapperRetryEvent ​

Re-exports WrapperRetryEvent


WrapperRunCommand ​

Re-exports WrapperRunCommand


WrapperShutdownCommand ​

Re-exports WrapperShutdownCommand


WrapperShutdownCompleteEvent ​

Re-exports WrapperShutdownCompleteEvent


WrapperThoughtDeltaEvent ​

Re-exports WrapperThoughtDeltaEvent


WrapperToolCallRequestEvent ​

Re-exports WrapperToolCallRequestEvent


WrapperToolCallResponseCommand ​

Re-exports WrapperToolCallResponseCommand


WrapperToolResultContentBlock ​

Re-exports WrapperToolResultContentBlock