chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,15 @@
import type { TypedResponse } from "@remix-run/server-runtime";
import { json } from "@remix-run/server-runtime";
import type { WorkerApiHeartbeatResponseBody } from "@trigger.dev/core/v3/workers";
import { WorkerApiHeartbeatRequestBody } from "@trigger.dev/core/v3/workers";
import { createActionWorkerApiRoute } from "~/services/routeBuilders/apiBuilder.server";
export const action = createActionWorkerApiRoute(
{
body: WorkerApiHeartbeatRequestBody,
},
async ({ authenticatedWorker }): Promise<TypedResponse<WorkerApiHeartbeatResponseBody>> => {
await authenticatedWorker.heartbeatWorkerInstance();
return json({ ok: true });
}
);