feat: add uptime runner agent

This commit is contained in:
2026-04-29 19:48:14 +00:00
commit d8d1adca14
18 changed files with 1234 additions and 0 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env -S deno run --allow-all
/**
* uptime.link runner agent.
*
* The runner connects to an uptime.link instance, fetches assigned check jobs,
* executes them from the local network location, and reports results back.
*/
import { UptimeRunnerCli } from './ts/cli.ts';
async function main(): Promise<void> {
const cli = new UptimeRunnerCli();
await cli.parseAndExecute(Deno.args);
}
if (import.meta.main) {
try {
await main();
} catch (error) {
console.error(`Error: ${error instanceof Error ? error.message : String(error)}`);
Deno.exit(1);
}
}