@touchcastllc/napster-companion-api-dev 1.0.0-alpha.69 → 1.0.0-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import type { EdgeMcpApi, FunctionCallEvent, SendCommand } from "./edge-mcp-type
|
|
|
2
2
|
export interface EdgeMcpBridgeOptions {
|
|
3
3
|
/**
|
|
4
4
|
* The SDK's `sendCommand`, bound to the live instance so the bridge can emit
|
|
5
|
-
* `send_message` (state relays) and `
|
|
5
|
+
* `send_message` (state relays) and `send_function_output` (invoke results).
|
|
6
6
|
*/
|
|
7
7
|
sendCommand: SendCommand;
|
|
8
8
|
/** Mirror the SDK's `debug` flag. Default: `false`. */
|
|
@@ -37,7 +37,7 @@ export declare class EdgeMcpBridge {
|
|
|
37
37
|
* arrive as the top-level `event.name` (direct call, args in
|
|
38
38
|
* `event.arguments`) or nested in a wrapper tool's `tool_name` (args under
|
|
39
39
|
* `arguments`/`args`). Anything else is ignored so the bridge coexists with
|
|
40
|
-
* other tool paths. Matched calls always reply via `
|
|
40
|
+
* other tool paths. Matched calls always reply via `send_function_output`.
|
|
41
41
|
*/
|
|
42
42
|
dispatchFunctionCall(event: FunctionCallEvent): Promise<void>;
|
|
43
43
|
/** Tear down subscriptions and drop the api ref. Idempotent. */
|
|
@@ -49,7 +49,7 @@ export declare class EdgeMcpBridge {
|
|
|
49
49
|
*/
|
|
50
50
|
private relayStateChange;
|
|
51
51
|
/**
|
|
52
|
-
* Emit a `
|
|
52
|
+
* Emit a `send_function_output` for a `call_id`. `output` is JSON-encoded per
|
|
53
53
|
* the Realtime protocol convention.
|
|
54
54
|
*/
|
|
55
55
|
private sendOutput;
|
|
@@ -86,7 +86,7 @@ export interface FunctionCallEvent {
|
|
|
86
86
|
* coupling the bridge to the full `DataChannelCommand` union — the bridge
|
|
87
87
|
* only sends two command types:
|
|
88
88
|
* - `{ type: 'send_message', data: { role, text, trigger_response, delay } }`
|
|
89
|
-
* - `{ type: '
|
|
89
|
+
* - `{ type: 'send_function_output', data: { call_id, output } }`
|
|
90
90
|
*/
|
|
91
91
|
export type SendCommand = (command: {
|
|
92
92
|
type: string;
|