Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

1.6 KB
Raw Blame
/**
 * The pane module's public surface (architecture §2, D1). Team and the MCP sessions import
 * from here only; internal files are imported directly only by their own tests.
 * `child-env.ts` runs in the pane child and is imported by the CLI entry, not here.
 */

export * from "./contract.js";
export { toSlotRow } from "./slot-row.js";
export { REASON_DETAIL_MAX_CHARS, reasonDetail, upstreamRecordsFor } from "./reason-detail.js";
export { deliveryRefusal } from "./prompt-delivery.js";
export {
  type Accounting,
  mergeAccounting,
  readTokenFileCached,
  resolveProvider,
  type TokenFileStats,
} from "./accounting.js";
export {
  buildClaudishPaneArgv,
  checkChildFlags,
  assertMagmuxAvailable,
  flagsRemoveRead,
  MagmuxUnavailableError,
  MIN_MAGMUX_VERSION,
  SOCK_ROOT,
  sockRootFor,
} from "./pane-launch.js";
export {
  ensureSwept,
  installPaneShutdownHooks,
  livePaneCount,
  MAX_LIVE_PANES,
  PaneLimitError,
  reapAllPanes,
  releasePaneReservations,
  reservePanes,
  sweepOrphanPanes,
} from "./pane-registry.js";
export {
  type PaneBlock,
  type PaneDiagnostics,
  type PaneLastSend,
  type PaneSession,
  type PaneResizeOutcome,
  type PaneSessionOptions,
  PaneStartError,
  type SendResult,
  startPaneSession,
} from "./pane-session.js";
export {
  clampPaneSize,
  DEFAULT_PANE_COLS,
  DEFAULT_PANE_ROWS,
  MAX_PANE_CELLS,
  MAX_PANE_COLS,
  MAX_PANE_ROWS,
  MIN_PANE_COLS,
  MIN_PANE_ROWS,
  type PaneSize,
  RESIZE_QUIET_MS,
} from "./pane-size.js";
export type { FinalVerdict, PaneSnapshot, SettledTurn } from "./types.js";
export { chainAnswerOf } from "./types.js";
export type { Phase } from "./slot-state.js";