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
4 lines
106 B
TypeScript
4 lines
106 B
TypeScript
export function getMessageCount(data: unknown): number {
|
|
return Array.isArray(data) ? data.length : 0
|
|
}
|