Download src/process/lanes.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/process/lanes.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/process/lanes.ts
-
curl -L -o lanes.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/process/lanes.ts
1.09 kB
| /** 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; | |