refactor: re-export AppRendererClient from types.ts instead of defining it twice (#1745)
Dropping the v1 translation proxy made the protocol's alias identical to the one core/mcp/types.ts already exported. Keep one definition and re-export it, so the two cannot drift. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PsmUAZ6aLUAFqenjJKSSRp Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
b0391561a1
commit
4a1e1ad7a3
1 changed files with 5 additions and 7 deletions
|
|
@ -22,10 +22,10 @@ import type {
|
|||
ResourceSubscriptionStreamState,
|
||||
ExcludedTool,
|
||||
RequestMetadata,
|
||||
AppRendererClient,
|
||||
} from "./types.js";
|
||||
import type {
|
||||
CacheMode,
|
||||
Client,
|
||||
ClientCapabilities,
|
||||
DiscoverResult,
|
||||
Implementation,
|
||||
|
|
@ -48,13 +48,11 @@ import type { SamplingCreateMessage } from "./samplingCreateMessage.js";
|
|||
import type { ElicitationCreateMessage } from "./elicitationCreateMessage.js";
|
||||
|
||||
/**
|
||||
* The SDK `Client` the MCP Apps host bridge is built over. ext-apps'
|
||||
* `AppBridge` takes it directly and forwards a running app's
|
||||
* tools/resources/prompts calls (and list-changed notifications) through it.
|
||||
* Since ext-apps 2.0.0 peers on SDK v2 this is the real client with nothing in
|
||||
* between — the v1-peer translation proxy it used to name is gone (#1745).
|
||||
* Re-exported from `./types.js`, where it is defined and documented, so hook
|
||||
* code that types against this protocol (`core/react/useInspectorClient.ts`)
|
||||
* can import it here without a second, drift-prone definition (#1745).
|
||||
*/
|
||||
export type AppRendererClient = Client;
|
||||
export type { AppRendererClient } from "./types.js";
|
||||
|
||||
/**
|
||||
* The contract every state manager and hook depends on. Anything that holds
|
||||
|
|
|
|||
Loading…
Reference in a new issue