import { ClaudeChannelSocketSink as CoreChannelSink, type ClaudeChannelSocketOptions as CoreOptions } from '@myclaw163/game-agent-runtime/mailbox/adapters/claude-channel-socket.js'; import { CLAUDE_CHANNEL_IPC_SCHEMA, CLAUDE_CHANNEL_MAX_FRAME_CHARACTERS, CLAWCLAW_CHANNEL_EVENTS_SCHEMA, readClaudeChannelEndpoint, type ClaudeChannelEndpointDescriptor } from '../../../../../channel/claude-channel-ipc.js'; export { ClaudeChannelSocketDeliveryError } from '@myclaw163/game-agent-runtime/mailbox/adapters/claude-channel-socket.js'; export interface ClaudeChannelSocketOptions extends Omit { endpoint?: () => ClaudeChannelEndpointDescriptor | null } export class ClaudeChannelSocketSink extends CoreChannelSink { constructor(options: ClaudeChannelSocketOptions = {}) { super({...options,endpoint:options.endpoint ?? (()=>readClaudeChannelEndpoint()), protocol:{schema:CLAUDE_CHANNEL_IPC_SCHEMA,payloadSchema:CLAWCLAW_CHANNEL_EVENTS_SCHEMA,maxFrameCharacters:CLAUDE_CHANNEL_MAX_FRAME_CHARACTERS}}); } }