Spaces:
Sleeping
Sleeping
| import { CommandLane } from "../../process/lanes.js"; | |
| export function resolveSessionLane(key: string) { | |
| const cleaned = key.trim() || CommandLane.Main; | |
| return cleaned.startsWith("session:") ? cleaned : `session:${cleaned}`; | |
| } | |
| export function resolveGlobalLane(lane?: string) { | |
| const cleaned = lane?.trim(); | |
| return cleaned ? cleaned : CommandLane.Main; | |
| } | |
| export function resolveEmbeddedSessionLane(key: string) { | |
| return resolveSessionLane(key); | |
| } | |