mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 17:50:22 +00:00
16 lines
459 B
TypeScript
16 lines
459 B
TypeScript
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);
|
|
}
|