feat: switch agent to a periodic dump rather than long running process

This commit is contained in:
Aarnav Tale
2026-03-27 13:19:16 -04:00
parent 2c57187628
commit ee59a2d06d
17 changed files with 521 additions and 464 deletions
+2 -6
View File
@@ -46,12 +46,8 @@ const agents = headscaleApiKey
? await createAgentManager(
config.integration?.agent,
config.headscale.url,
headscaleApiKey,
(user, ephemeral, reusable, expiration, aclTags) =>
hsApi
.getRuntimeClient(headscaleApiKey)
.createPreAuthKey(user, ephemeral, reusable, expiration, aclTags),
() => hsApi.getRuntimeClient(headscaleApiKey).getUsers(),
hsApi.getRuntimeClient(headscaleApiKey),
hsApi.clientHelpers.isAtleast("0.28.0"),
db,
)
: (() => {