Files
oh-my-opencode/src/features/tmux-subagent/decision-engine.ts
T
YeonGyu-Kim f8b5771443 refactor(tmux-subagent): split manager and decision-engine into focused modules
Extract session lifecycle, polling, grid planning, and event handling:
- polling.ts: session polling controller with stability detection
- event-handlers.ts: session created/deleted handlers
- grid-planning.ts, spawn-action-decider.ts, spawn-target-finder.ts
- session-status-parser.ts, session-message-count.ts
- cleanup.ts, polling-constants.ts, tmux-grid-constants.ts
2026-02-08 16:21:04 +09:00

23 lines
602 B
TypeScript

export type { SessionMapping } from "./oldest-agent-pane"
export type { GridCapacity, GridPlan, GridSlot } from "./grid-planning"
export type { SpawnTarget } from "./spawn-target-finder"
export {
calculateCapacity,
computeGridPlan,
mapPaneToSlot,
} from "./grid-planning"
export {
canSplitPane,
canSplitPaneAnyDirection,
findMinimalEvictions,
getBestSplitDirection,
getColumnCount,
getColumnWidth,
isSplittableAtCount,
} from "./pane-split-availability"
export { findSpawnTarget } from "./spawn-target-finder"
export { decideCloseAction, decideSpawnActions } from "./spawn-action-decider"