feat: add v02 device-pod env reuse boot path

This commit is contained in:
Codex
2026-05-29 22:49:08 +08:00
parent 56b720efa8
commit d1ffc007e4
14 changed files with 901 additions and 74 deletions
+10 -1
View File
@@ -2,6 +2,7 @@
import { createServer } from "node:http";
import { randomUUID } from "node:crypto";
import { runtimeIdentityFromEnv } from "../../internal/build-metadata.mjs";
import { jsonResponse, listen, parsePort, readJson } from "../../internal/sim/http.mjs";
const SERVICE_ID = "hwlab-device-pod";
@@ -78,6 +79,7 @@ function healthPayload() {
acceptsUserAuthority: false,
fake: false,
gatewayAdapter: gatewayAdapterState(),
runtime: runtimeIdentityFromEnv(process.env),
source: sourcePayload(),
note: "Profile, grant, lease, and user-facing job authority live in hwlab-cloud-api; this service only exposes the internal executor boundary."
};
@@ -351,7 +353,14 @@ function isInternalCaller(request) {
}
function sourcePayload() {
return { kind: "INTERNAL_EXECUTOR", serviceId: SERVICE_ID, authority: "hwlab-cloud-api", fake: false, devLiveEvidence: false };
return {
kind: "INTERNAL_EXECUTOR",
serviceId: SERVICE_ID,
authority: "hwlab-cloud-api",
fake: false,
devLiveEvidence: false,
runtime: runtimeIdentityFromEnv(process.env)
};
}
function gatewayAdapterBlocker(summary) {