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 importu | 0 |
|---|---|
| Usunięte eksporty | 93 |
| Zmienione sygnatury | 59 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 19 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 1 |
| Nowe eksporty | 6 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
@agentclientprotocol/sdk | Agent | interface | interface |
@agentclientprotocol/sdk | Usage | type | { 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 | Client | interface | interface |
@agentclientprotocol/sdk | PlanId | type | string |
@agentclientprotocol/sdk | McpError | type | { [key: string]: unknown; code: number; message: string; data?: unknown; } |
@agentclientprotocol/sdk | PlanFile | type | { planId: string; uri: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | PlanItems | type | { planId: string; entries: PlanEntry[]; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | PlanUpdate | type | { plan: PlanUpdateContent; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ProviderId | type | string |
@agentclientprotocol/sdk | LlmProtocol | type | string |
@agentclientprotocol/sdk | PlanRemoved | type | { planId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | StateUpdate | type | (RunningStateUpdate & { state: "running"; }) | (IdleStateUpdate & { state: "idle"; }) | (RequiresActionStateUpdate & { state: "requires_action"; }) | (UnknownStateUpdate & { state: "unknown"; }) | { [key: string]: unknown; state: string; } |
@agentclientprotocol/sdk | McpRequestId | type | string |
@agentclientprotocol/sdk | McpServerAcp | type | { name: string; serverId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | PlanMarkdown | type | { planId: string; content: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ProviderInfo | type | { providerId: string; supported: string[]; required: boolean; current?: ProviderCurrentConfig | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SystemPrompt | type | { mode: string; content: ContentBlock[]; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | McpServerAcpId | type | string |
@agentclientprotocol/sdk | SessionMessage | type | { messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content?: ContentBlock[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SubagentUpdate | type | { 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 | ErrorStopReason | type | { error?: Error | null | undefined; } |
@agentclientprotocol/sdk | IdleStateUpdate | type | ({ 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/sdk | PlanCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SystemPromptMode | type | string |
@agentclientprotocol/sdk | MessageMcpRequest | type | { serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | PlanUpdateContent | type | (PlanItems & { type: "items"; }) | (PlanFile & { type: "file"; }) | (PlanMarkdown & { type: "markdown"; }) |
@agentclientprotocol/sdk | ForkSessionRequest | type | { sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | MessageMcpResponse | type | { result: unknown; _meta?: { [key: string]: unknown; } | null | undefined; } | { error: McpError; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | RunningStateUpdate | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SetProviderRequest | type | { providerId: string; apiType: string; baseUrl: string; headers?: { [key: string]: string; } | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | UnknownStateUpdate | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | AgentSideConnection | class | class |
@agentclientprotocol/sdk | ForkSessionResponse | type | { sessionId: string; modes?: SessionModeState | null | undefined; configOptions?: SessionConfigOption[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionMessageChunk | type | { messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content: ContentBlock; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SetProviderResponse | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ClientSideConnection | class | class |
@agentclientprotocol/sdk | ListProvidersRequest | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SubagentCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ListProvidersResponse | type | { providers: ProviderInfo[]; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ProviderCurrentConfig | type | { apiType: string; baseUrl: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | ProvidersCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | DisableProviderRequest | type | { providerId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | MessageMcpNotification | type | { serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | DisableProviderResponse | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionForkCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | RequiresActionStateUpdate | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionCancelCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SubagentSessionCapabilities | type | { cancel?: SessionCancelCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionSystemPromptCapabilities | type | { mode?: SessionSystemPromptModeCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionSystemPromptModeCapabilities | type | { override?: SessionSystemPromptOverrideCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk | SessionSystemPromptOverrideCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | Usage | type | { 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/v2 | McpError | type | { [key: string]: unknown; code: number; message: string; data?: unknown; } |
@agentclientprotocol/sdk/experimental/v2 | PlanFile | type | { planId: string; uri: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ProviderId | type | string |
@agentclientprotocol/sdk/experimental/v2 | LlmProtocol | type | string |
@agentclientprotocol/sdk/experimental/v2 | PlanRemoved | type | { planId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | McpRequestId | type | string |
@agentclientprotocol/sdk/experimental/v2 | McpServerAcp | type | { name: string; serverId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | PlanMarkdown | type | { planId: string; content: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ProviderInfo | type | { providerId: string; supported: string[]; required: boolean; current?: ProviderCurrentConfig | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SystemPrompt | type | { mode: string; content: ContentBlock[]; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | McpServerAcpId | type | string |
@agentclientprotocol/sdk/experimental/v2 | SessionMessage | type | { messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content?: ContentBlock[] | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SubagentUpdate | type | { 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/v2 | SystemPromptMode | type | string |
@agentclientprotocol/sdk/experimental/v2 | MessageMcpRequest | type | { serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ForkSessionRequest | type | { sessionId: string; cwd: string; additionalDirectories?: string[] | undefined; mcpServers?: McpServer[] | undefined; systemPrompt?: SystemPrompt | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | McpAcpCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | MessageMcpResponse | type | { result: unknown; _meta?: { [key: string]: unknown; } | null | undefined; } | { error: McpError; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SetProviderRequest | type | { providerId: string; apiType: string; baseUrl: string; headers?: { [key: string]: string; } | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | UnknownStateUpdate | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ForkSessionResponse | type | { sessionId: string; configOptions?: SessionConfigOption[] | undefined; availableCommands?: AvailableCommand[] | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionMessageChunk | type | { messageId: string; senderSessionId?: string | null | undefined; recipientSessionId?: string | null | undefined; content: ContentBlock; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SetProviderResponse | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ListProvidersRequest | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ListProvidersResponse | type | { providers: ProviderInfo[]; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ProviderCurrentConfig | type | { apiType: string; baseUrl: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | ProvidersCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | DisableProviderRequest | type | { providerId: string; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | MessageMcpNotification | type | { serverId: string; requestId: string; method: string; params?: { [key: string]: unknown; } | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | DisableProviderResponse | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionForkCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionCancelCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SubagentSessionCapabilities | type | { cancel?: SessionCancelCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionSystemPromptCapabilities | type | { mode?: SessionSystemPromptModeCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionSystemPromptModeCapabilities | type | { override?: SessionSystemPromptOverrideCapabilities | null | undefined; _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/v2 | SessionSystemPromptOverrideCapabilities | type | { _meta?: { [key: string]: unknown; } | null | undefined; } |
@agentclientprotocol/sdk/experimental/nes | Agent | interface | interface |
@agentclientprotocol/sdk/experimental/nes | Client | interface | interface |
@agentclientprotocol/sdk/experimental/nes | AgentSideConnection | class | class |
@agentclientprotocol/sdk/experimental/nes | ClientSideConnection | class | class |
@agentclientprotocol/sdk/experimental/server | LegacyAgentFactory | type | (conn: AgentSideConnection) => Agent |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@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 · UnrecognizedMethod | string 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 : Method | string 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
| member | Przed | Po |
|---|---|---|
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)
| Przed | Po | |
|---|---|---|
peerDependencies.zod | ^3.25.0 || ^4.0.0 | ^3.25.76 || ^4.0.0 |
Nowe eksporty (6)
| import | export | kind |
|---|---|---|
@agentclientprotocol/sdk | AgentConnector | interface |
@agentclientprotocol/sdk | AgentConnectOptions | interface |
@agentclientprotocol/sdk | AgentConnectionLifecycle | interface |
@agentclientprotocol/sdk/experimental/nes | AgentConnector | interface |
@agentclientprotocol/sdk/experimental/nes | AgentConnectOptions | interface |
@agentclientprotocol/sdk/experimental/nes | AgentConnectionLifecycle | interface |
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