From 4c1791163047807670aa93402d67d3cb60b16be3 Mon Sep 17 00:00:00 2001 From: Yige Date: Tue, 7 Jul 2026 19:23:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(schemas):=20runtime-recommended=20?= =?UTF-8?q?=E6=94=B6=E7=B4=A7=20sha256=20=E4=B8=BA=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=EF=BC=886=20=E5=B9=B3=E5=8F=B0=E9=BD=90=E5=85=A8=EF=BC=89=20(#?= =?UTF-8?q?46)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与主仓库 lib/schemas/agent-service/runtime-manifest.ts 同源导出,强化归档防篡改校验 --- schemas/runtime-recommended.schema.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/schemas/runtime-recommended.schema.json b/schemas/runtime-recommended.schema.json index e4beb36..3f29d64 100644 --- a/schemas/runtime-recommended.schema.json +++ b/schemas/runtime-recommended.schema.json @@ -15,7 +15,8 @@ "name", "version", "distTag", - "archives" + "archives", + "sha256" ], "properties": { "name": { @@ -72,6 +73,14 @@ "sha256": { "type": "object", "description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断", + "required": [ + "darwin-arm64", + "darwin-x64", + "win32-x64", + "win32-arm64", + "linux-x64", + "linux-arm64" + ], "properties": { "darwin-arm64": { "type": "string", @@ -114,7 +123,8 @@ "description": "Node.js 推荐版本(官方 dist 归档,经内置 Volta 安装)", "required": [ "version", - "archives" + "archives", + "sha256" ], "properties": { "version": { @@ -167,6 +177,14 @@ "sha256": { "type": "object", "description": "各平台归档的 SHA-256 校验值(十六进制小写)。构建脚本下载后校验,防止归档被镜像/代理篡改或截断", + "required": [ + "darwin-arm64", + "darwin-x64", + "win32-x64", + "win32-arm64", + "linux-x64", + "linux-arm64" + ], "properties": { "darwin-arm64": { "type": "string",