import {
  getRuntime
} from "./chunk-UYTSKFGK.js";

// src/sessions/interrupt.ts
function interruptSession(sessionId) {
  const run = getRuntime().inFlightRuns.get(sessionId);
  if (!run) return false;
  run.controller.abort(new DOMException("interrupted", "AbortError"));
  return true;
}

export {
  interruptSession
};
