feat: 增加固定工作台应用目录兼容格式

This commit is contained in:
2026-10-13 16:48:14 +08:00
parent 70f3132ec4
commit 0c0f991baa
21 changed files with 2408 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
/** 发布者关系声明的跨字段检查;不推导安装、权限或运行时健康。 */
export function validateApplicationContract(manifest) {
if (!['docker-app', 'native-app', 'artifact'].includes(manifest.type)) return []
if (!['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(manifest.type)) return []
const errors = []
const ids = new Set()
for (const entrypoint of Array.isArray(manifest.entrypoints) ? manifest.entrypoints : []) {