import type { OutboundCommandInput, SendResult } from './types';

let seq = 0;

/**
 * Sandbox outbound sink — records a simulated send with no network I/O.
 * (Real provider delivery is gated to P6+.)
 */
export const SandboxSink = {
  async simulate(cmd: OutboundCommandInput): Promise<SendResult> {
    return { providerRef: `sim-${cmd.channelType}-${++seq}`, outcome: 'SENT', latencyMs: 1 };
  },
};
