// ── Sidecar self-registration protocol ──

// Sidecar → API server on connect
export type SidecarRegistration = {
  type: 'register';
  name: string; // 'process' | 'pty' | custom
  capabilities: string[]; // ['claude', 'pi', 'queue', 'proxy'] or ['terminal']
};

// API server → sidecar ack
export type RegistrationAck = {
  type: 'registered';
  id: string; // server-assigned ID
};

export type RegistrationMessage = SidecarRegistration | RegistrationAck;
