/**
 * Shared agent-side types that subsystems (executors, image generator,
 * frontends) need to reference without taking a dependency on Agent
 * itself — avoids circular imports through the Agent class.
 */
/**
 * Sentinel error a frontend's sender/notifier throws when its own
 * AsyncLocalStorage scope is empty — i.e. the current call stack didn't
 * originate from this frontend's chat handler, so it has no chat to deliver
 * to. The Agent's multiplexer treats this as "not my turn, try the next
 * frontend"; non-NoChatContext errors propagate.
 *
 * Frontends MUST throw NoChatContext rather than silently broadcasting or
 * returning, otherwise the multiplexer can't tell who should handle the
 * call when multiple frontends are registered.
 */
export class NoChatContext extends Error {
    constructor(message = "No active chat context for this frontend") {
        super(message);
        this.name = "NoChatContext";
    }
}
//# sourceMappingURL=agent-types.js.map