Download src/cron/agent-availability.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cron/agent-availability.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/cron/agent-availability.ts
-
curl -L -o agent-availability.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/cron/agent-availability.ts
378 Bytes
| import { readAgentDatabaseAdmissionRefusal } from "../state/agent-database-admission.js"; | |
| export function describeUnavailableCronAgent(agentId: string, env?: NodeJS.ProcessEnv): string { | |
| const refusal = readAgentDatabaseAdmissionRefusal(agentId, { env }); | |
| return refusal | |
| ? `${refusal.reason}\n${refusal.repairHint}` | |
| : `cron job agent is unavailable: ${agentId}`; | |
| } | |