Vigia

Aktualizacja @agentclientprotocol/sdk z 1.x do 2.x

Porównanie publicznego API @agentclientprotocol/sdk 1.9.0 i 2.0.0, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu0
Usunięte eksporty93
Zmienione sygnatury59
Usunięte składowe klas lub interfejsów0
Zmienione składowe klas lub interfejsów19
Nowo wycofane0
Zmiany wymagań (engines, zależności peer)1
Nowe eksporty6

Usunięte eksporty

importexportkindPrzed
@agentclientprotocol/sdkAgentinterfaceinterface
@agentclientprotocol/sdkUsagetype{ totalTokens: number; inputTokens: number; outputTokens: number; thoughtTokens?: number | null | undefined; cachedReadTokens?: number | null | undefined; cachedWriteTokens?: number | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkClientinterfaceinterface
@agentclientprotocol/sdkPlanIdtypestring
@agentclientprotocol/sdkMcpErrortype{ [key: string]: unknown; code: number; message: string; data?: unknown; }
@agentclientprotocol/sdkPlanFiletype{ planId: string; uri: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkPlanItemstype{ planId: string; entries: PlanEntry[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkPlanUpdatetype{ plan: PlanUpdateContent; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkProviderIdtypestring
@agentclientprotocol/sdkLlmProtocoltypestring
@agentclientprotocol/sdkPlanRemovedtype{ planId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkStateUpdatetype(RunningStateUpdate & { state: "running"; }) | (IdleStateUpdate & { state: "idle"; }) | (RequiresActionStateUpdate & { state: "requires_action"; }) | (UnknownStateUpdate & { state: "unknown"; }) | { [key: string]: unknown; state: string; }
@agentclientprotocol/sdkMcpRequestIdtypestring
@agentclientprotocol/sdkMcpServerAcptype{ name: string; serverId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkPlanMarkdowntype{ planId: string; content: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkProviderInfotype{ providerId: string; supported: string[]; required: boolean; current?: ProviderCurrentConfig | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSystemPrompttype{ mode: string; content: ContentBlock[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkMcpServerAcpIdtypestring
@agentclientprotocol/sdkSessionMessagetype{ messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content?: ContentBlock[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSubagentUpdatetype{ sessionId: string; title?: string | null | undefined; description?: string | null | undefined; capabilities?: SubagentSessionCapabilities | null | undefined; state?: StateUpdate | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkErrorStopReasontype{ error?: Error | null | undefined; }
@agentclientprotocol/sdkIdleStateUpdatetype({ stopReason: "end_turn"; } | { stopReason: "max_tokens"; } | { stopReason: "max_turn_requests"; } | { stopReason: "refusal"; } | { stopReason: "cancelled"; } | (ErrorStopReason & { stopReason: "error"; }) | { [key: string]: unknown; stopReason: string; } | { stopReason?: null | undefined; }) & { usage?: Usage | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; stopReason?: string | null | undefined; }
@agentclientprotocol/sdkPlanCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSystemPromptModetypestring
@agentclientprotocol/sdkMessageMcpRequesttype{ serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkPlanUpdateContenttype(PlanItems & { type: "items"; }) | (PlanFile & { type: "file"; }) | (PlanMarkdown & { type: "markdown"; })
@agentclientprotocol/sdkForkSessionRequesttype{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkMessageMcpResponsetype{ result: unknown; _meta?: { [key: string]: unknown; } | null | undefined; } | { error: McpError; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkRunningStateUpdatetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSetProviderRequesttype{ providerId: string; apiType: string; baseUrl: string; headers?: { [key: string]: string; } | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkUnknownStateUpdatetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkAgentSideConnectionclassclass
@agentclientprotocol/sdkForkSessionResponsetype{ sessionId: string; modes?: SessionModeState | null | undefined; configOptions?: SessionConfigOption[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionMessageChunktype{ messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content: ContentBlock; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSetProviderResponsetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkClientSideConnectionclassclass
@agentclientprotocol/sdkListProvidersRequesttype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSubagentCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkListProvidersResponsetype{ providers: ProviderInfo[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkProviderCurrentConfigtype{ apiType: string; baseUrl: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkProvidersCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkDisableProviderRequesttype{ providerId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkMessageMcpNotificationtype{ serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkDisableProviderResponsetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionForkCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkRequiresActionStateUpdatetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionCancelCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSubagentSessionCapabilitiestype{ cancel?: SessionCancelCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionSystemPromptCapabilitiestype{ mode?: SessionSystemPromptModeCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionSystemPromptModeCapabilitiestype{ override?: SessionSystemPromptOverrideCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdkSessionSystemPromptOverrideCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2Usagetype{ totalTokens: number; inputTokens: number; outputTokens: number; thoughtTokens?: number | null | undefined; cachedReadTokens?: number | null | undefined; cachedWriteTokens?: number | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2McpErrortype{ [key: string]: unknown; code: number; message: string; data?: unknown; }
@agentclientprotocol/sdk/experimental/v2PlanFiletype{ planId: string; uri: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ProviderIdtypestring
@agentclientprotocol/sdk/experimental/v2LlmProtocoltypestring
@agentclientprotocol/sdk/experimental/v2PlanRemovedtype{ planId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2McpRequestIdtypestring
@agentclientprotocol/sdk/experimental/v2McpServerAcptype{ name: string; serverId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2PlanMarkdowntype{ planId: string; content: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ProviderInfotype{ providerId: string; supported: string[]; required: boolean; current?: ProviderCurrentConfig | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SystemPrompttype{ mode: string; content: ContentBlock[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2McpServerAcpIdtypestring
@agentclientprotocol/sdk/experimental/v2SessionMessagetype{ messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content?: ContentBlock[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SubagentUpdatetype{ sessionId: string; title?: string | null | undefined; description?: string | null | undefined; capabilities?: SubagentSessionCapabilities | null | undefined; state?: StateUpdate | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SystemPromptModetypestring
@agentclientprotocol/sdk/experimental/v2MessageMcpRequesttype{ serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ForkSessionRequesttype{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2McpAcpCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2MessageMcpResponsetype{ result: unknown; _meta?: { [key: string]: unknown; } | null | undefined; } | { error: McpError; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SetProviderRequesttype{ providerId: string; apiType: string; baseUrl: string; headers?: { [key: string]: string; } | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2UnknownStateUpdatetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ForkSessionResponsetype{ sessionId: string; configOptions?: SessionConfigOption[] | undefined; availableCommands?: AvailableCommand[] | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionMessageChunktype{ messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content: ContentBlock; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SetProviderResponsetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ListProvidersRequesttype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ListProvidersResponsetype{ providers: ProviderInfo[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ProviderCurrentConfigtype{ apiType: string; baseUrl: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2ProvidersCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2DisableProviderRequesttype{ providerId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2MessageMcpNotificationtype{ serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2DisableProviderResponsetype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionForkCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionCancelCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SubagentSessionCapabilitiestype{ cancel?: SessionCancelCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionSystemPromptCapabilitiestype{ mode?: SessionSystemPromptModeCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionSystemPromptModeCapabilitiestype{ override?: SessionSystemPromptOverrideCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2SessionSystemPromptOverrideCapabilitiestype{ _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/nesAgentinterfaceinterface
@agentclientprotocol/sdk/experimental/nesClientinterfaceinterface
@agentclientprotocol/sdk/experimental/nesAgentSideConnectionclassclass
@agentclientprotocol/sdk/experimental/nesClientSideConnectionclassclass
@agentclientprotocol/sdk/experimental/serverLegacyAgentFactorytype(conn: AgentSideConnection) => Agent

Zmienione sygnatury

exportPrzedPo
@agentclientprotocol/sdk · methods{ readonly agent: { readonly initialize: "initialize"; readonly authenticate: "authenticate"; readonly logout: "logout"; readonly providers: { readonly list: "providers/list"; readonly set: "providers/set"; readonly disable: "providers/disable"; }; readonly session: { readonly new: "session/new"; readonly load: "session/load"; readonly list: "session/list"; readonly delete: "session/delete"; readonly fork: "session/fork"; readonly resume: "session/resume"; readonly close: "session/close"; readonly setMode: "session/set_mode"; readonly setConfigOption: "session/set_config_option"; readonly prom…{ readonly agent: { readonly initialize: "initialize"; readonly authenticate: "authenticate"; readonly logout: "logout"; readonly session: { readonly new: "session/new"; readonly load: "session/load"; readonly list: "session/list"; readonly delete: "session/delete"; readonly resume: "session/resume"; readonly close: "session/close"; readonly setMode: "session/set_mode"; readonly setConfigOption: "session/set_config_option"; readonly prompt: "session/prompt"; readonly cancel: "session/cancel"; }; }; readonly client: { readonly session: { readonly requestPermission: "session/request_permission";…
@agentclientprotocol/sdk · McpServer(McpServerHttp & { type: "http"; }) | (McpServerSse & { type: "sse"; }) | (McpServerAcp & { type: "acp"; }) | McpServerStdio(McpServerHttp & { type: "http"; }) | (McpServerSse & { type: "sse"; }) | McpServerStdio
@agentclientprotocol/sdk · AGENT_METHODS{ readonly initialize: "initialize"; readonly authenticate: "authenticate"; readonly providers_list: "providers/list"; readonly providers_set: "providers/set"; readonly providers_disable: "providers/disable"; readonly session_new: "session/new"; readonly session_load: "session/load"; readonly session_set_mode: "session/set_mode"; readonly session_set_config_option: "session/set_config_option"; readonly session_prompt: "session/prompt"; readonly session_cancel: "session/cancel"; readonly mcp_message: "mcp/message"; readonly session_list: "session/list"; readonly session_delete: "session/delete"…{ readonly initialize: "initialize"; readonly authenticate: "authenticate"; readonly session_new: "session/new"; readonly session_load: "session/load"; readonly session_set_mode: "session/set_mode"; readonly session_set_config_option: "session/set_config_option"; readonly session_prompt: "session/prompt"; readonly session_cancel: "session/cancel"; readonly session_list: "session/list"; readonly session_delete: "session/delete"; readonly session_resume: "session/resume"; readonly session_close: "session/close"; readonly logout: "logout"; }
@agentclientprotocol/sdk · SessionUpdate(ContentChunk & { sessionUpdate: "user_message_chunk"; }) | (ContentChunk & { sessionUpdate: "agent_message_chunk"; }) | (ContentChunk & { sessionUpdate: "agent_thought_chunk"; }) | (ToolCall & { sessionUpdate: "tool_call"; }) | (ToolCallUpdate & { sessionUpdate: "tool_call_update"; }) | (Plan & { sessionUpdate: "plan"; }) | (PlanUpdate & { sessionUpdate: "plan_update"; }) | (PlanRemoved & { sessionUpdate: "plan_removed"; }) | (AvailableCommandsUpdate & { sessionUpdate: "available_commands_update"; }) | (CurrentModeUpdate & { sessionUpdate: "current_mode_update"; }) | (ConfigOptionUpdate & { s…(ContentChunk & { sessionUpdate: "user_message_chunk"; }) | (ContentChunk & { sessionUpdate: "agent_message_chunk"; }) | (ContentChunk & { sessionUpdate: "agent_thought_chunk"; }) | (ToolCall & { sessionUpdate: "tool_call"; }) | (ToolCallUpdate & { sessionUpdate: "tool_call_update"; }) | (Plan & { sessionUpdate: "plan"; }) | (AvailableCommandsUpdate & { sessionUpdate: "available_commands_update"; }) | (CurrentModeUpdate & { sessionUpdate: "current_mode_update"; }) | (ConfigOptionUpdate & { sessionUpdate: "config_option_update"; }) | (SessionInfoUpdate & { sessionUpdate: "session_info_update"; …
@agentclientprotocol/sdk · CLIENT_METHODS{ readonly session_request_permission: "session/request_permission"; readonly session_update: "session/update"; readonly fs_write_text_file: "fs/write_text_file"; readonly fs_read_text_file: "fs/read_text_file"; readonly terminal_create: "terminal/create"; readonly terminal_output: "terminal/output"; readonly terminal_release: "terminal/release"; readonly terminal_wait_for_exit: "terminal/wait_for_exit"; readonly terminal_kill: "terminal/kill"; readonly mcp_message: "mcp/message"; readonly elicitation_create: "elicitation/create"; readonly elicitation_complete: "elicitation/complete"; }{ readonly session_request_permission: "session/request_permission"; readonly session_update: "session/update"; readonly fs_write_text_file: "fs/write_text_file"; readonly fs_read_text_file: "fs/read_text_file"; readonly terminal_create: "terminal/create"; readonly terminal_output: "terminal/output"; readonly terminal_release: "terminal/release"; readonly terminal_wait_for_exit: "terminal/wait_for_exit"; readonly terminal_kill: "terminal/kill"; readonly elicitation_create: "elicitation/create"; readonly elicitation_complete: "elicitation/complete"; }
@agentclientprotocol/sdk · PromptResponse{ stopReason: StopReason; usage?: Usage | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ stopReason: StopReason; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · McpCapabilities{ http?: boolean | undefined; sse?: boolean | undefined; acp?: boolean | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ http?: boolean | undefined; sse?: boolean | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · AgentCapabilities{ loadSession?: boolean | undefined; promptCapabilities?: PromptCapabilities | undefined; mcpCapabilities?: McpCapabilities | undefined; sessionCapabilities?: SessionCapabilities | undefined; auth?: AgentAuthCapabilities | undefined; providers?: ProvidersCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ loadSession?: boolean | undefined; promptCapabilities?: PromptCapabilities | undefined; mcpCapabilities?: McpCapabilities | undefined; sessionCapabilities?: SessionCapabilities | undefined; auth?: AgentAuthCapabilities | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · NewSessionRequest{ cwd: string; additionalDirectories?: string[] | undefined; mcpServers: McpServer[]; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ cwd: string; additionalDirectories?: string[] | undefined; mcpServers: McpServer[]; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · AgentRequestMethod"initialize" | "authenticate" | "providers/list" | "providers/set" | "providers/disable" | "session/new" | "session/load" | "session/set_mode" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/fork" | "session/resume" | "session/close" | "logout""initialize" | "authenticate" | "session/new" | "session/load" | "session/set_mode" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/resume" | "session/close" | "logout"
@agentclientprotocol/sdk · ClientCapabilities{ fs?: FileSystemCapabilities | undefined; terminal?: boolean | undefined; session?: ClientSessionCapabilities | null | undefined; subagents?: SubagentCapabilities | null | undefined; plan?: PlanCapabilities | null | undefined; auth?: AuthCapabilities | undefined; elicitation?: ElicitationCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ fs?: FileSystemCapabilities | undefined; terminal?: boolean | undefined; session?: ClientSessionCapabilities | null | undefined; auth?: AuthCapabilities | undefined; elicitation?: ElicitationCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · LoadSessionRequest{ mcpServers: McpServer[]; cwd: string; additionalDirectories?: string[] | undefined; sessionId: string; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ mcpServers: McpServer[]; cwd: string; additionalDirectories?: string[] | undefined; sessionId: string; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · AgentHandlerContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk · SessionCapabilities{ list?: SessionListCapabilities | null | undefined; delete?: SessionDeleteCapabilities | null | undefined; additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null | undefined; systemPrompt?: SessionSystemPromptCapabilities | null | undefined; fork?: SessionForkCapabilities | null | undefined; resume?: SessionResumeCapabilities | null | undefined; close?: SessionCloseCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ list?: SessionListCapabilities | null | undefined; delete?: SessionDeleteCapabilities | null | undefined; additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null | undefined; resume?: SessionResumeCapabilities | null | undefined; close?: SessionCloseCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · ClientHandlerContext{ params: Params; signal: AbortSignal; agent: ClientContext; }{ method: string; params: Params; signal: AbortSignal; agent: ClientContext; }
@agentclientprotocol/sdk · ResumeSessionRequest{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk · AgentNotificationContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk · ClientNotificationContext{ params: Params; signal: AbortSignal; agent: ClientContext; }{ method: string; params: Params; signal: AbortSignal; agent: ClientContext; }
@agentclientprotocol/sdk · AgentRequestParamsByMethod{ initialize: InitializeRequest; authenticate: AuthenticateRequest; "providers/list": ListProvidersRequest; "providers/set": SetProviderRequest; "providers/disable": DisableProviderRequest; "session/new": NewSessionRequest; "session/load": LoadSessionRequest; "session/set_mode": SetSessionModeRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/fork": ForkSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; logout: Logou…{ initialize: InitializeRequest; authenticate: AuthenticateRequest; "session/new": NewSessionRequest; "session/load": LoadSessionRequest; "session/set_mode": SetSessionModeRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; logout: LogoutRequest; }
@agentclientprotocol/sdk · AgentRequestHandlersByMethod{ initialize: AgentRequestHandler<InitializeRequest, InitializeResponse>; "session/new": AgentRequestHandler<NewSessionRequest, NewSessionResponse>; "session/load": AgentRequestHandler<LoadSessionRequest, void | LoadSessionResponse>; "session/fork": AgentRequestHandler<ForkSessionRequest, ForkSessionResponse>; "session/list": AgentRequestHandler<ListSessionsRequest, ListSessionsResponse>; "session/delete": AgentRequestHandler<DeleteSessionRequest, void | DeleteSessionResponse>; "session/resume": AgentRequestHandler<ResumeSessionRequest, ResumeSessionResponse>; "session/close": AgentRequestHand…{ initialize: AgentRequestHandler<InitializeRequest, InitializeResponse>; "session/new": AgentRequestHandler<NewSessionRequest, NewSessionResponse>; "session/load": AgentRequestHandler<LoadSessionRequest, void | LoadSessionResponse>; "session/list": AgentRequestHandler<ListSessionsRequest, ListSessionsResponse>; "session/delete": AgentRequestHandler<DeleteSessionRequest, void | DeleteSessionResponse>; "session/resume": AgentRequestHandler<ResumeSessionRequest, ResumeSessionResponse>; "session/close": AgentRequestHandler<CloseSessionRequest, void | CloseSessionResponse>; "session/set_mode": Age…
@agentclientprotocol/sdk · AgentRequestResponsesByMethod{ initialize: InitializeResponse; authenticate: AuthenticateResponse; "providers/list": ListProvidersResponse; "providers/set": SetProviderResponse; "providers/disable": DisableProviderResponse; "session/new": NewSessionResponse; "session/load": LoadSessionResponse; "session/set_mode": SetSessionModeResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session/fork": ForkSessionResponse; "session/resume": ResumeSessionResponse; "session/close": CloseSessionResponse…{ initialize: InitializeResponse; authenticate: AuthenticateResponse; "session/new": NewSessionResponse; "session/load": LoadSessionResponse; "session/set_mode": SetSessionModeResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session/resume": ResumeSessionResponse; "session/close": CloseSessionResponse; logout: LogoutResponse; }
@agentclientprotocol/sdk/experimental/v2 · methods{ readonly agent: { readonly initialize: "initialize"; readonly auth: { readonly login: "auth/login"; readonly logout: "auth/logout"; }; readonly providers: { readonly list: "providers/list"; readonly set: "providers/set"; readonly disable: "providers/disable"; }; readonly session: { readonly new: "session/new"; readonly list: "session/list"; readonly delete: "session/delete"; readonly fork: "session/fork"; readonly resume: "session/resume"; readonly close: "session/close"; readonly setConfigOption: "session/set_config_option"; readonly prompt: "session/prompt"; readonly cancel: "session/cance…{ readonly agent: { readonly initialize: "initialize"; readonly auth: { readonly login: "auth/login"; readonly logout: "auth/logout"; }; readonly session: { readonly new: "session/new"; readonly list: "session/list"; readonly delete: "session/delete"; readonly resume: "session/resume"; readonly close: "session/close"; readonly setConfigOption: "session/set_config_option"; readonly prompt: "session/prompt"; readonly cancel: "session/cancel"; }; }; readonly client: { readonly session: { readonly requestPermission: "session/request_permission"; readonly update: "session/update"; }; readonly elici…
@agentclientprotocol/sdk/experimental/v2 · McpServer(McpServerHttp & { type: "http"; }) | (McpServerAcp & { type: "acp"; }) | (McpServerStdio & { type: "stdio"; }) | { [key: string]: unknown; type: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; type: string; }>(McpServerHttp & { type: "http"; }) | (McpServerStdio & { type: "stdio"; }) | { [key: string]: unknown; type: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; type: string; }>
@agentclientprotocol/sdk/experimental/v2 · StateUpdate(RunningStateUpdate & { state: "running"; }) | (IdleStateUpdate & { state: "idle"; }) | (RequiresActionStateUpdate & { state: "requires_action"; }) | (UnknownStateUpdate & { state: "unknown"; }) | { [key: string]: unknown; state: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; state: string; }>(RunningStateUpdate & { state: "running"; }) | (IdleStateUpdate & { state: "idle"; }) | (RequiresActionStateUpdate & { state: "requires_action"; }) | { [key: string]: unknown; state: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; state: string; }>
@agentclientprotocol/sdk/experimental/v2 · AGENT_METHODS{ readonly initialize: "initialize"; readonly auth_login: "auth/login"; readonly providers_list: "providers/list"; readonly providers_set: "providers/set"; readonly providers_disable: "providers/disable"; readonly session_new: "session/new"; readonly session_set_config_option: "session/set_config_option"; readonly session_prompt: "session/prompt"; readonly session_cancel: "session/cancel"; readonly mcp_message: "mcp/message"; readonly session_list: "session/list"; readonly session_delete: "session/delete"; readonly session_fork: "session/fork"; readonly session_resume: "session/resume"; readon…{ readonly initialize: "initialize"; readonly auth_login: "auth/login"; readonly session_new: "session/new"; readonly session_set_config_option: "session/set_config_option"; readonly session_prompt: "session/prompt"; readonly session_cancel: "session/cancel"; readonly session_list: "session/list"; readonly session_delete: "session/delete"; readonly session_resume: "session/resume"; readonly session_close: "session/close"; readonly auth_logout: "auth/logout"; }
@agentclientprotocol/sdk/experimental/v2 · CLIENT_METHODS{ readonly session_request_permission: "session/request_permission"; readonly session_update: "session/update"; readonly mcp_message: "mcp/message"; readonly elicitation_create: "elicitation/create"; readonly elicitation_complete: "elicitation/complete"; }{ readonly session_request_permission: "session/request_permission"; readonly session_update: "session/update"; readonly elicitation_create: "elicitation/create"; readonly elicitation_complete: "elicitation/complete"; }
@agentclientprotocol/sdk/experimental/v2 · AgentBatchEntry(BatchRequest<InitializeRequest, InitializeResponse, unknown> & { readonly method: "initialize"; }) | (BatchRequest<ListProvidersRequest, ListProvidersResponse, unknown> & { readonly method: "providers/list"; }) | (BatchRequest<SetProviderRequest, SetProviderResponse, unknown> & { readonly method: "providers/set"; }) | (BatchRequest<DisableProviderRequest, DisableProviderResponse, unknown> & { readonly method: "providers/disable"; }) | (BatchRequest<NewSessionRequest, NewSessionResponse, unknown> & { readonly method: "session/new"; }) | (BatchRequest<SetSessionConfigOptionRequest, SetSessionCo…(BatchRequest<InitializeRequest, InitializeResponse, unknown> & { readonly method: "initialize"; }) | (BatchRequest<NewSessionRequest, NewSessionResponse, unknown> & { readonly method: "session/new"; }) | (BatchRequest<SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, unknown> & { readonly method: "session/set_config_option"; }) | (BatchRequest<PromptRequest, PromptResponse, unknown> & { readonly method: "session/prompt"; }) | (BatchRequest<ListSessionsRequest, ListSessionsResponse, unknown> & { readonly method: "session/list"; }) | (BatchRequest<DeleteSessionRequest, DeleteSessio…
@agentclientprotocol/sdk/experimental/v2 · IdleStateUpdate({ stopReason: "end_turn"; } | { stopReason: "max_tokens"; } | { stopReason: "max_turn_requests"; } | { stopReason: "refusal"; } | { stopReason: "cancelled"; } | (ErrorStopReason & { stopReason: "error"; }) | { [key: string]: unknown; stopReason: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; stopReason: string; }> | { stopReason?: null | undefined; }) & { usage?: Usage | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; stopReason?: string | null | undefined; }({ stopReason: "end_turn"; } | { stopReason: "max_tokens"; } | { stopReason: "max_turn_requests"; } | { stopReason: "refusal"; } | { stopReason: "cancelled"; } | (ErrorStopReason & { stopReason: "error"; }) | { [key: string]: unknown; stopReason: `_${string}`; } | UnknownVariant<{ [key: string]: unknown; stopReason: string; }> | { stopReason?: null | undefined; }) & { _meta?: { [key: string]: unknown; } | null | undefined; stopReason?: string | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · McpCapabilities{ stdio?: McpStdioCapabilities | null | undefined; http?: McpHttpCapabilities | null | undefined; acp?: McpAcpCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ stdio?: McpStdioCapabilities | null | undefined; http?: McpHttpCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · ClientBatchEntry(BatchRequest<MessageMcpRequest, MessageMcpResponse, unknown> & { readonly method: "mcp/message"; }) | (BatchRequest<RequestPermissionRequest, RequestPermissionResponse, unknown> & { readonly method: "session/request_permission"; }) | (BatchRequest<CreateElicitationRequest, CreateElicitationResponse, unknown> & { readonly method: "elicitation/create"; }) | (BatchNotification<UpdateSessionNotification> & { readonly method: "session/update"; }) | (BatchNotification<CompleteElicitationNotification> & { readonly method: "elicitation/complete"; }) | (BatchNotification<CancelRequestNotification> & {…(BatchRequest<RequestPermissionRequest, RequestPermissionResponse, unknown> & { readonly method: "session/request_permission"; }) | (BatchRequest<CreateElicitationRequest, CreateElicitationResponse, unknown> & { readonly method: "elicitation/create"; }) | (BatchNotification<UpdateSessionNotification> & { readonly method: "session/update"; }) | (BatchNotification<CompleteElicitationNotification> & { readonly method: "elicitation/complete"; }) | (BatchNotification<CancelRequestNotification> & { readonly method: "$/cancel_request"; }) | (BatchRequest<unknown, never, unknown> & { readonly method: …
@agentclientprotocol/sdk/experimental/v2 · AgentCapabilities{ session?: SessionCapabilities | null | undefined; auth?: AgentAuthCapabilities | null | undefined; providers?: ProvidersCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ session?: SessionCapabilities | null | undefined; auth?: AgentAuthCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · NewSessionRequest{ cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · PlanUpdateContent(PlanItems & { type: "items"; }) | (PlanFile & { type: "file"; }) | (PlanMarkdown & { type: "markdown"; }) | { [key: string]: unknown; type: `_${string}`; planId: string; } | UnknownVariant<{ [key: string]: unknown; type: string; planId: string; }>(PlanItems & { type: "items"; }) | { [key: string]: unknown; type: `_${string}`; planId: string; } | UnknownVariant<{ [key: string]: unknown; type: string; planId: string; }>
@agentclientprotocol/sdk/experimental/v2 · AgentRequestMethod"initialize" | "providers/list" | "providers/set" | "providers/disable" | "session/new" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/fork" | "session/resume" | "session/close" | "auth/login" | "auth/logout""initialize" | "session/new" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/resume" | "session/close" | "auth/login" | "auth/logout"
@agentclientprotocol/sdk/experimental/v2 · UnrecognizedMethodstring extends Method ? Method : Method extends "initialize" | "providers/list" | "providers/set" | "providers/disable" | "session/new" | "session/set_config_option" | "session/prompt" | "session/cancel" | "mcp/message" | "session/list" | "session/delete" | "session/fork" | "session/resume" | "session/close" | "session/request_permission" | "session/update" | "elicitation/create" | "elicitation/complete" | "$/cancel_request" | "auth/login" | "auth/logout" ? never : Methodstring extends Method ? Method : Method extends "session/cancel" | "$/cancel_request" | AgentRequestMethod | ClientRequestMethod | ClientNotificationMethod ? never : Method
@agentclientprotocol/sdk/experimental/v2 · AgentHandlerContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk/experimental/v2 · ClientRequestMethod"mcp/message" | "session/request_permission" | "elicitation/create""session/request_permission" | "elicitation/create"
@agentclientprotocol/sdk/experimental/v2 · SessionCapabilities{ prompt?: PromptCapabilities | null | undefined; mcp?: McpCapabilities | null | undefined; delete?: SessionDeleteCapabilities | null | undefined; additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null | undefined; systemPrompt?: SessionSystemPromptCapabilities | null | undefined; fork?: SessionForkCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ prompt?: PromptCapabilities | null | undefined; mcp?: McpCapabilities | null | undefined; delete?: SessionDeleteCapabilities | null | undefined; additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · ClientHandlerContext{ params: Params; signal: AbortSignal; agent: ClientContext; }{ method: string; params: Params; signal: AbortSignal; agent: ClientContext; }
@agentclientprotocol/sdk/experimental/v2 · ResumeSessionRequest{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; replayFrom?: ReplayFrom | null | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }{ sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; replayFrom?: ReplayFrom | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; }
@agentclientprotocol/sdk/experimental/v2 · AgentNotificationMethod"session/cancel" | "mcp/message""session/cancel"
@agentclientprotocol/sdk/experimental/v2 · AgentNotificationContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk/experimental/v2 · ClientNotificationContext{ params: Params; signal: AbortSignal; agent: ClientContext; }{ method: string; params: Params; signal: AbortSignal; agent: ClientContext; }
@agentclientprotocol/sdk/experimental/v2 · AgentRequestParamsByMethod{ initialize: InitializeRequest; "providers/list": ListProvidersRequest; "providers/set": SetProviderRequest; "providers/disable": DisableProviderRequest; "session/new": NewSessionRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/fork": ForkSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; "auth/login": LoginAuthRequest; "auth/logout": LogoutAuthRequest; }{ initialize: InitializeRequest; "session/new": NewSessionRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; "auth/login": LoginAuthRequest; "auth/logout": LogoutAuthRequest; }
@agentclientprotocol/sdk/experimental/v2 · ClientRequestParamsByMethod{ "mcp/message": MessageMcpRequest; "session/request_permission": RequestPermissionRequest; "elicitation/create": CreateElicitationRequest; }{ "session/request_permission": RequestPermissionRequest; "elicitation/create": CreateElicitationRequest; }
@agentclientprotocol/sdk/experimental/v2 · AgentRequestHandlersByMethod{ initialize: AgentRequestHandler<InitializeRequest, InitializeResponse>; "auth/login": AgentRequestHandler<LoginAuthRequest, void | LoginAuthResponse>; "providers/list": AgentRequestHandler<ListProvidersRequest, ListProvidersResponse>; "providers/set": AgentRequestHandler<SetProviderRequest, void | SetProviderResponse>; "providers/disable": AgentRequestHandler<DisableProviderRequest, void | DisableProviderResponse>; "session/new": AgentRequestHandler<NewSessionRequest, NewSessionResponse>; "session/set_config_option": AgentRequestHandler<SetSessionConfigOptionRequest, SetSessionConfigOptionRe…{ initialize: AgentRequestHandler<InitializeRequest, InitializeResponse>; "auth/login": AgentRequestHandler<LoginAuthRequest, void | LoginAuthResponse>; "session/new": AgentRequestHandler<NewSessionRequest, NewSessionResponse>; "session/set_config_option": AgentRequestHandler<SetSessionConfigOptionRequest, SetSessionConfigOptionResponse>; "session/prompt": AgentRequestHandler<PromptRequest, PromptResponse>; "session/list": AgentRequestHandler<ListSessionsRequest, ListSessionsResponse>; "session/delete": AgentRequestHandler<DeleteSessionRequest, void | DeleteSessionResponse>; "session/resume": …
@agentclientprotocol/sdk/experimental/v2 · AgentRequestResponsesByMethod{ initialize: InitializeResponse; "providers/list": ListProvidersResponse; "providers/set": SetProviderResponse; "providers/disable": DisableProviderResponse; "session/new": NewSessionResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session/fork": ForkSessionResponse; "session/resume": ResumeSessionResponse; "session/close": CloseSessionResponse; "auth/login": LoginAuthResponse; "auth/logout": LogoutAuthResponse; }{ initialize: InitializeResponse; "session/new": NewSessionResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session/resume": ResumeSessionResponse; "session/close": CloseSessionResponse; "auth/login": LoginAuthResponse; "auth/logout": LogoutAuthResponse; }
@agentclientprotocol/sdk/experimental/v2 · ClientRequestHandlersByMethod{ "session/request_permission": ClientRequestHandler<RequestPermissionRequest, RequestPermissionResponse>; "mcp/message": ClientRequestHandler<MessageMcpRequest, MessageMcpResponse>; "elicitation/create": ClientRequestHandler<CreateElicitationRequest, CreateElicitationResponse>; }{ "session/request_permission": ClientRequestHandler<RequestPermissionRequest, RequestPermissionResponse>; "elicitation/create": ClientRequestHandler<CreateElicitationRequest, CreateElicitationResponse>; }
@agentclientprotocol/sdk/experimental/v2 · ClientRequestResponsesByMethod{ "mcp/message": MessageMcpResponse; "session/request_permission": RequestPermissionResponse; "elicitation/create": CreateElicitationResponse; }{ "session/request_permission": RequestPermissionResponse; "elicitation/create": CreateElicitationResponse; }
@agentclientprotocol/sdk/experimental/v2 · AgentNotificationParamsByMethod{ "session/cancel": CancelSessionNotification; "mcp/message": MessageMcpNotification; }{ "session/cancel": CancelSessionNotification; }
@agentclientprotocol/sdk/experimental/v2 · AgentNotificationHandlersByMethod{ "session/cancel": AgentNotificationHandler<CancelSessionNotification>; "mcp/message": AgentNotificationHandler<MessageMcpNotification>; }{ "session/cancel": AgentNotificationHandler<CancelSessionNotification>; }
@agentclientprotocol/sdk/experimental/nes · AgentRequestMethod"initialize" | "authenticate" | "providers/list" | "providers/set" | "providers/disable" | "session/new" | "session/load" | "session/set_mode" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/fork" | "session/resume" | "session/close" | "logout" | "nes/start" | "nes/suggest" | "nes/close""initialize" | "authenticate" | "session/new" | "session/load" | "session/set_mode" | "session/set_config_option" | "session/prompt" | "session/list" | "session/delete" | "session/resume" | "session/close" | "logout" | "providers/list" | "providers/set" | "providers/disable" | "session/fork" | "nes/start" | "nes/suggest" | "nes/close"
@agentclientprotocol/sdk/experimental/nes · AgentHandlerContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk/experimental/nes · NesDiagnosticSeverity"error" | "warning" | "information" | "hint""warning" | "error" | "information" | "hint"
@agentclientprotocol/sdk/experimental/nes · AgentNotificationContext{ params: Params; signal: AbortSignal; client: AgentContext; }{ method: string; params: Params; signal: AbortSignal; client: AgentContext; }
@agentclientprotocol/sdk/experimental/nes · AgentRequestParamsByMethod{ initialize: InitializeRequest; authenticate: AuthenticateRequest; "providers/list": ListProvidersRequest; "providers/set": SetProviderRequest; "providers/disable": DisableProviderRequest; "session/new": NewSessionRequest; "session/load": LoadSessionRequest; "session/set_mode": SetSessionModeRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/fork": ForkSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; logout: Logou…{ initialize: InitializeRequest; authenticate: AuthenticateRequest; "session/new": NewSessionRequest; "session/load": LoadSessionRequest; "session/set_mode": SetSessionModeRequest; "session/set_config_option": SetSessionConfigOptionRequest; "session/prompt": PromptRequest; "session/list": ListSessionsRequest; "session/delete": DeleteSessionRequest; "session/resume": ResumeSessionRequest; "session/close": CloseSessionRequest; logout: LogoutRequest; "providers/list": ListProvidersRequest; "providers/set": SetProviderRequest; "providers/disable": DisableProviderRequest; "session/fork": ForkSessio…
@agentclientprotocol/sdk/experimental/nes · AgentRequestResponsesByMethod{ initialize: InitializeResponse | (Omit<InitializeResponse, "agentCapabilities"> & { agentCapabilities?: AgentCapabilities | undefined; }); authenticate: AuthenticateResponse; "providers/list": ListProvidersResponse; "providers/set": SetProviderResponse; "providers/disable": DisableProviderResponse; "session/new": NewSessionResponse; "session/load": LoadSessionResponse; "session/set_mode": SetSessionModeResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session…{ initialize: InitializeResponse | (Omit<InitializeResponse, "agentCapabilities"> & { agentCapabilities?: AgentCapabilities | undefined; }); authenticate: AuthenticateResponse; "session/new": NewSessionResponse; "session/load": LoadSessionResponse; "session/set_mode": SetSessionModeResponse; "session/set_config_option": SetSessionConfigOptionResponse; "session/prompt": PromptResponse; "session/list": ListSessionsResponse; "session/delete": DeleteSessionResponse; "session/resume": ResumeSessionResponse; "session/close": CloseSessionResponse; logout: LogoutResponse; "providers/list": ListProvide…
@agentclientprotocol/sdk/experimental/server · HandleRequestOptions{ readonly agent?: AgentConnector | undefined; readonly createAgent?: undefined; readonly createLegacyAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: AgentFactory | undefined; readonly createLegacyAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: undefined; readonly createLegacyAgent?: LegacyAgentFactory | undefined; }{ readonly agent?: AgentConnector | undefined; readonly createAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: AgentFactory | undefined; }
@agentclientprotocol/sdk/experimental/server · PrepareWebSocketUpgradeOptions{ readonly agent?: AgentConnector | undefined; readonly createAgent?: undefined; readonly createLegacyAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: AgentFactory | undefined; readonly createLegacyAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: undefined; readonly createLegacyAgent?: LegacyAgentFactory | undefined; }{ readonly agent?: AgentConnector | undefined; readonly createAgent?: undefined; } | { readonly agent?: undefined; readonly createAgent?: AgentFactory | undefined; }

Usunięte składowe klas lub interfejsów

Nie wykryto.

Zmienione składowe klas lub interfejsów

memberPrzedPo
AgentApp.onRequest<Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): AgentApp(method: "*", handler: AgentRequestHandler<unknown, unknown>): AgentApp | <Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): A…
AgentApp.connectWith<T>(stream: Stream, op: (context: AgentContext) => MaybePromise<T>): Promise<T> | <T>(client: ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T><T>(target: Stream | ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T>
AgentApp.onNotification<Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: string, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): AgentApp(method: "*", handler: AgentNotificationHandler<unknown>): AgentApp | <Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: string, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): AgentApp
ClientApp.onRequest<Method extends ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Response>): ClientApp(method: "*", handler: ClientRequestHandler<unknown, unknown>): ClientApp | <Method extends ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Respons…
ClientApp.connectWith<T>(stream: Stream, op: (context: ClientContext) => MaybePromise<T>): Promise<T> | <T>(agent: AgentApp, op: (context: ClientContext) => MaybePromise<T>): Promise<T><T>(target: Stream | AgentApp, op: (context: ClientContext) => MaybePromise<T>): Promise<T>
ClientApp.onNotification<Method extends ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: string, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): ClientApp(method: "*", handler: ClientNotificationHandler<unknown>): ClientApp | <Method extends ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: string, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): Clie…
AgentApp.onRequest<Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: `_${string}`, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): AgentApp | <Params, Response, const Method extends string = never>(me…(method: "*", handler: AgentRequestHandler<unknown, unknown>): AgentApp | <Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: `_${string}`, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Respons…
AgentApp.connectWith<T>(stream: WireStream, op: (context: AgentContext) => MaybePromise<T>): Promise<T> | <T>(client: ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T><T>(target: WireStream | ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T>
AgentApp.onNotification<Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: `_${string}`, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): AgentApp | <Params, const Method extends string = never>(method: Unrecogni…(method: "*", handler: AgentNotificationHandler<unknown>): AgentApp | <Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: `_${string}`, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): Agen…
ClientApp.onRequest<Method extends ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: `_${string}`, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Response>): ClientApp | <Params, Response, const Method extends string = neve…(method: "*", handler: ClientRequestHandler<unknown, unknown>): ClientApp | <Method extends ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: `_${string}`, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, R…
ClientApp.connectWith<T>(stream: WireStream, op: (context: ClientContext) => MaybePromise<T>): Promise<T> | <T>(agent: AgentApp, op: (context: ClientContext) => MaybePromise<T>): Promise<T><T>(target: WireStream | AgentApp, op: (context: ClientContext) => MaybePromise<T>): Promise<T>
ClientApp.onNotification<Method extends ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: `_${string}`, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): ClientApp | <Params, const Method extends string = never>(method: Unre…(method: "*", handler: ClientNotificationHandler<unknown>): ClientApp | <Method extends ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: `_${string}`, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>)…
AgentContext.batch<const Entries extends readonly BatchEntry[]>(entries: Entries & { readonly 0: BatchEntry; } & { [Index in keyof Entries]: Entries[Index] extends BatchEntry ? string extends Entries[Index]["method"] ? Entries[Index] : Entries[Index]["method"] extends "initialize" | "providers/list" | "providers/set"…<const Entries extends readonly BatchEntry[]>(entries: Entries & { readonly 0: BatchEntry; } & { [Index in keyof Entries]: Entries[Index] extends BatchEntry ? string extends Entries[Index]["method"] ? Entries[Index] : Entries[Index]["method"] extends "session/cancel" | "$/cancel_request" | AgentRequ…
ClientContext.batch<const Entries extends readonly BatchEntry[]>(entries: Entries & { readonly 0: BatchEntry; } & { [Index in keyof Entries]: Entries[Index] extends BatchEntry ? string extends Entries[Index]["method"] ? Entries[Index] : Entries[Index]["method"] extends "initialize" | "providers/list" | "providers/set"…<const Entries extends readonly BatchEntry[]>(entries: Entries & { readonly 0: BatchEntry; } & { [Index in keyof Entries]: Entries[Index] extends BatchEntry ? string extends Entries[Index]["method"] ? Entries[Index] : Entries[Index]["method"] extends "session/cancel" | "$/cancel_request" | AgentRequ…
AgentApp.onRequest<Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): AgentApp(method: "*", handler: AgentRequestHandler<unknown, unknown>): AgentApp | <Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): AgentApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): A…
AgentApp.connectWith<T>(stream: Stream, op: (context: AgentContext) => MaybePromise<T>): Promise<T> | <T>(client: ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T><T>(target: Stream | ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T>
AgentApp.onNotification<Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: string, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): AgentApp(method: "*", handler: AgentNotificationHandler<unknown>): AgentApp | <Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): AgentApp | <Params>(method: string, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): AgentApp
ClientApp.onRequest<Method extends acp.ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Response>): ClientApp(method: "*", handler: ClientRequestHandler<unknown, unknown>): ClientApp | <Method extends acp.ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): ClientApp | <Params, Response>(method: string, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Res…
ClientApp.onNotification<Method extends acp.ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: string, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): ClientApp(method: "*", handler: ClientNotificationHandler<unknown>): ClientApp | <Method extends acp.ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): ClientApp | <Params>(method: string, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): …

Nowo wycofane

Nie wykryto.

Zmiany wymagań (engines, zależności peer)

PrzedPo
peerDependencies.zod^3.25.0 || ^4.0.0^3.25.76 || ^4.0.0
Nowe eksporty (6)
importexportkind
@agentclientprotocol/sdkAgentConnectorinterface
@agentclientprotocol/sdkAgentConnectOptionsinterface
@agentclientprotocol/sdkAgentConnectionLifecycleinterface
@agentclientprotocol/sdk/experimental/nesAgentConnectorinterface
@agentclientprotocol/sdk/experimental/nesAgentConnectOptionsinterface
@agentclientprotocol/sdk/experimental/nesAgentConnectionLifecycleinterface

Przekaż te dane swojemu agentowi AI

Vigia to darmowy serwer MCP: Twój agent programistyczny sprawdza wersje, zmiany łamiące zgodność i podatności, zanim napisze kod. Bez rejestracji i klucza API.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Dodaj do CursorDodaj do VS Code★ Gwiazdka na GitHubie

Dowolny inny klient MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Skill dla agentów (SKILL.md): mówi agentowi, kiedy używać Vigii · GitHub Action dla pull requestów

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji @agentclientprotocol/sdk z 1 do 2?

Między @agentclientprotocol/sdk 1.9.0 a 2.0.0 Vigia znalazła 93 usuniętych eksportów, 59 zmienionych sygnatur i 19 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w @agentclientprotocol/sdk 2?

0 eksportów lub składowych oznaczono w @agentclientprotocol/sdk 2.0.0 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/@agentclientprotocol/sdk/upgrade?from=1.9.0&to=2.0.0