remove stray companion probe script

This commit is contained in:
2026-08-05 18:49:52 +00:00
parent 3ca5968605
commit 864140998f
-11
View File
@@ -1,11 +0,0 @@
import { getActiveHeadscaleCredentials } from 'officerdb';
const creds = await getActiveHeadscaleCredentials(1);
if (!creds) { console.log('no active server'); process.exit(0); }
console.log('server:', creds.name, creds.url, 'key prefix:', creds.apiKey.slice(0, 9) + '…', 'len', creds.apiKey.length);
for (const path of ['/ping', '/health', '/api/v1/enroll/invites']) {
const res = await fetch(`${creds.url}/officer-api${path}`, {
headers: { authorization: `Bearer ${creds.apiKey}`, accept: 'application/json' },
});
console.log(path, res.status, (await res.text()).slice(0, 200));
}