ExperimentalReadonly ExperimentalinitializedResolves with the validated initialize exchange once initialization succeeds, or rejects if initialization or the connection fails.
After a repeated initialize completes, reading this again resolves with
the latest exchange.
Readonly ExperimentalsignalAbortSignal that aborts when the connection closes.
Unless close() closed the connection, notifications received before it
closed can still reach their handlers after the signal aborts.
Readonly ExperimentalclosedPromise that resolves when the connection closes.
Unless close() closed the connection, notifications received before it
closed can still reach their handlers after this resolves.
Readonly ExperimentalclientContext for calling client-side ACP methods.
Experimental draft ACP v2 agent-side connection returned by
AgentApp.connect(...).Use
clientto call client-side ACP methods for the lifetime of the connection.