refactor: converge hwpod node-ops channel

This commit is contained in:
Codex Agent
2026-06-05 16:47:50 +08:00
parent 8a1cd5c725
commit 3e7131f6ab
117 changed files with 1056 additions and 19327 deletions
-8
View File
@@ -33,7 +33,6 @@ const defaultDevBaseImage = process.env.HWLAB_G14_DEV_BASE_IMAGE || "127.0.0.1:5
const defaultServiceIds = Object.freeze([
"hwlab-cloud-api",
"hwlab-cloud-web",
"hwlab-device-pod",
"hwlab-gateway",
"hwlab-edge-proxy",
"hwlab-agent-skills"
@@ -41,7 +40,6 @@ const defaultServiceIds = Object.freeze([
const v02RuntimeServiceIds = Object.freeze([
"hwlab-cloud-api",
"hwlab-cloud-web",
"hwlab-device-pod",
"hwlab-gateway",
"hwlab-edge-proxy",
"hwlab-agent-skills"
@@ -49,7 +47,6 @@ const v02RuntimeServiceIds = Object.freeze([
const v02ObservableServices = Object.freeze([
{ serviceId: "hwlab-cloud-api", port: 6667, healthPath: "/health/live" },
{ serviceId: "hwlab-cloud-web", port: 8080, healthPath: "/health/live" },
{ serviceId: "hwlab-device-pod", port: 7601, healthPath: "/health/live" },
{ serviceId: "hwlab-edge-proxy", port: 6667, healthPath: "/health" },
{ serviceId: "hwlab-agent-skills", port: 7430, healthPath: "/health/live" },
{ serviceId: "hwlab-deepseek-proxy", port: 4000, healthPath: "/health/live" }
@@ -1453,10 +1450,6 @@ function prepareSourceScript() {
"const serviceIds = selected.length ? selected : (deploy.services || []).map((service) => service.serviceId);",
"const services = serviceIds.map((serviceId) => {",
" const service = { serviceId, profile: 'v02', namespace, commitId: tag, sourceCommitId: revision, image: `${registryPrefix}/${serviceId}:${tag}`, imageTag: tag, digest: null, buildBackend: 'contract-skeleton' };",
" if (serviceId === 'hwlab-device-pod') {",
" const environmentImage = `${registryPrefix}/${serviceId}-env:env-${revision.slice(0, 12)}`;",
" Object.assign(service, { image: environmentImage, imageTag: environmentImage.slice(environmentImage.lastIndexOf(':') + 1), runtimeMode: 'env-reuse-git-mirror-checkout', envReuse: true, environmentImage, environmentDigest: null, environmentInputHash: null, codeInputHash: null, bootRepo: 'git@github.com:pikasTech/HWLAB.git', bootCommit: revision, bootSh: 'deploy/runtime/boot/hwlab-device-pod.sh', bootEnvEvidence: { env: { HWLAB_BOOT_REPO: 'git@github.com:pikasTech/HWLAB.git', HWLAB_BOOT_COMMIT: revision, HWLAB_BOOT_SH: 'deploy/runtime/boot/hwlab-device-pod.sh', HWLAB_ENVIRONMENT_IMAGE: environmentImage, HWLAB_ENVIRONMENT_DIGEST: '' } } });",
" }",
" return service;",
"});",
"fs.mkdirSync(path.dirname(catalogPath), { recursive: true });",
@@ -4421,7 +4414,6 @@ function deviceAgent71FreqManifest({ profile = "dev", source, registryPrefix, ca
{ name: "HWLAB_IMAGE_TAG", value: bridgeImageTag },
{ name: "DEVICE_ID", value: "71-freq" },
{ name: "DEVICE_WORKSPACE_ROOT", value: "F:\\Work\\ConStart" },
{ name: "DEVICE_POD_PROFILE_DIR", value: "/workspace/hwlab/.device-pod" },
{ name: "HWLAB_CLOUD_API_URL", value: `http://hwlab-cloud-api.${namespace}.svc.cluster.local:6667` },
{ name: "HWLAB_GATEWAY_SESSION_ID", value: "gws_d601_win_71_freq" },
{ name: "HWLAB_GATEWAY_RESOURCE_ID", value: "res_d601_windows_host" },