File size: 1,090 Bytes
3144483 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /** Named queue lanes for work that must not interleave with the main command stream. */
export const enum CommandLane {
Main = "main",
SystemAgent = "system-agent",
SystemAgentInference = "system-agent-inference",
Cron = "cron",
CronNested = "cron-nested",
/**
* External hook agent-run dispatch. Distinct from `cron-nested` so hook work
* is schedulable in its own right; capacity is bounded by the shared lane
* group rather than by adding a slot outside the cron budget.
*/
HookDispatch = "hook-dispatch",
Background = "background",
Subagent = "subagent",
ActiveMemory = "active-memory",
Nested = "nested",
}
// Keep the exported diagnostics inventory closed so per-session lanes cannot
// turn a saturation snapshot into an unbounded payload.
export const STATIC_COMMAND_LANES = [
CommandLane.Main,
CommandLane.SystemAgent,
CommandLane.SystemAgentInference,
CommandLane.Cron,
CommandLane.CronNested,
CommandLane.HookDispatch,
CommandLane.Background,
CommandLane.Subagent,
CommandLane.ActiveMemory,
CommandLane.Nested,
] as const;
|