feat: enforce Guanghu-native HoloLake runtime laws

This commit is contained in:
冰朔 2026-08-04 23:11:25 +08:00
commit 67e6fcdd38
57 changed files with 1765 additions and 1504 deletions

View file

@ -5,7 +5,9 @@
"version": "0.4.6",
"type": "module",
"scripts": {
"predev": "pnpm test:native-authority",
"dev": "vite",
"prebuild": "pnpm test:native-authority && pnpm test:native-core",
"build": "tsc -b && vite build",
"build:team-foundation": "VITE_HOLOLAKE_DISTRIBUTION=team-foundation tsc -b && VITE_HOLOLAKE_DISTRIBUTION=team-foundation vite build && node scripts/finalize-team-foundation-build.mjs",
"agent-docs": "node scripts/build-agent-docs.mjs",
@ -21,6 +23,7 @@
"perf:editor:update": "node scripts/editor-performance-benchmark.mjs --update",
"preview": "vite preview",
"tauri": "tauri",
"pretest": "pnpm test:native-authority",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "playwright test",
@ -32,6 +35,8 @@
"test:internal-release": "node --test scripts/internal-release-version.test.mjs",
"guard:deployment-source": "node scripts/deployment-source-guard.mjs",
"test:deployment-source": "node --test scripts/deployment-source-guard.test.mjs",
"test:native-authority": "bash scripts/test-guanghu-native-authority.sh && node scripts/validate-guanghu-native-profile.mjs",
"test:native-core": "vitest run --config vitest.guanghu-native.config.ts --coverage",
"package:internal:macos": "HOLOLAKE_DISTRIBUTION=personal HOLOLAKE_SOURCE_REPOSITORY_ID=REPO-008 HOLOLAKE_SOURCE_CHANNEL_ID=HLP-CHANNEL-0001 pnpm guard:deployment-source && ./scripts/build-internal-release.sh macos",
"package:local-candidate:macos": "HOLOLAKE_TAURI_CONFIG=src-tauri/tauri.local-candidate.conf.json HOLOLAKE_APP_NAME='HoloLake Era · 本地方向候选 0.4.6' HOLOLAKE_INSTALLER_BASENAME='HoloLake-Era-{version}-Local-Direction-Candidate-Mac-aarch64' ./scripts/build-internal-release.sh macos",
"package:internal:windows": "HOLOLAKE_DISTRIBUTION=personal HOLOLAKE_SOURCE_REPOSITORY_ID=REPO-008 HOLOLAKE_SOURCE_CHANNEL_ID=HLP-CHANNEL-0001 pnpm guard:deployment-source && ./scripts/build-internal-release.sh windows",