@wonderwhy-er/desktop-commander
Version:
MCP server for terminal operations and file editing
36 lines (35 loc) • 1.36 kB
TypeScript
import type { BroadcastDoorbell } from './remote-channel.js';
type TransportObservation = {
stage: string;
callId: string;
payload?: BroadcastDoorbell;
deviceId: string | null | undefined;
userId: string | undefined;
transport?: 'broadcast' | 'mqtt';
outcome?: 'success' | 'failed';
timestampUtc?: string;
toolName?: string;
operation?: string;
operationId?: string;
/** Who claimed the call (call_claimed): MQTT, Broadcast, or the scan for waiting calls. */
claimedBy?: 'mqtt' | 'broadcast' | 'recovery';
};
/** Record a device transport checkpoint without affecting command handling. */
export declare function observeTransport(input: TransportObservation): {
observation_id: `${string}-${string}-${string}-${string}-${string}`;
source_process_id: `${string}-${string}-${string}-${string}-${string}`;
schema_version: number;
timestamp_utc: string;
claimed_by?: "broadcast" | "mqtt" | "recovery" | undefined;
operation_id?: string | undefined;
operation?: string | undefined;
tool_name?: string | undefined;
notification_id?: string | undefined;
attempt_number?: number | undefined;
outcome?: "success" | "failed" | undefined;
transport?: "broadcast" | "mqtt" | undefined;
call_id: string;
device_id: string;
stage: string;
} | null;
export {};