Download src/gateway/agent-command-policy.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/gateway/agent-command-policy.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/gateway/agent-command-policy.ts
-
curl -L -o agent-command-policy.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/gateway/agent-command-policy.ts
388 Bytes
| /** Commands routed through `agent` that mutate session lifecycle state. */ | |
| export const AGENT_SESSION_RESET_COMMAND_RE = /^\/(new|reset)(?:\s+([\s\S]*))?$/i; | |
| /** Returns true when an agent message requests a session reset. */ | |
| export function isAgentSessionResetCommand(message: unknown): boolean { | |
| return typeof message === "string" && AGENT_SESSION_RESET_COMMAND_RE.test(message); | |
| } | |