framework
Version:
The (AI) Framework: turnkey, zero-config AI orchestration that wraps a coding-agent CLI (Claude Code) as a black box and takes you from an idea to a running app. Vite for AI.
19 lines • 1.1 kB
TypeScript
import type { AgentMeta } from '../store/index.js';
import type { BridgeSession } from './bridge-endpoints.js';
/** How far back a cloud agent is still worth having a tab open for. */
export declare const BRIDGE_SESSION_WINDOW_MS: number;
/**
* At most this many tabs. The extension opens one per session, and a browser that quietly
* accumulates tabs is worse than a bridge that misses an old agent.
*/
export declare const BRIDGE_SESSION_LIMIT = 3;
/**
* Which cloud sessions the extension should be watching (#1237).
*
* Recency is the whole filter, and it has to be, because a web agent's status tells us nothing:
* #1231 ends the agent at the hand-off, so every one of them reads `done` whether its session is
* parked on a question or finished an hour ago. There is no read-back that would say which, so
* the honest rule is "recent, and not many", rather than a liveness check we cannot perform.
*/
export declare function bridgeSessionsFrom(agents: readonly AgentMeta[], now: Date, windowMs?: number, limit?: number): BridgeSession[];
//# sourceMappingURL=bridge-sessions.d.ts.map