mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 02:59:03 +08:00
feat: 上架视频剪辑固定材料与作者契约
This commit is contained in:
1 parent
9577e9a411
commit
eef65008eb
18 files changed
+5658
-198
No files matched your search
@@ -76,6 +76,16 @@ Catalog sidecar 的 App spec 同步 `productKind`、可选 `extension` 和入口
|
||||
|
||||
English: Plugins are App products with host contributions, sharing the canonical catalog and installation identity. Deployment type does not decide product kind. Applications may provide contributions or consume direct dependencies; a plugin must provide a real contribution. Artifact packages contain declarative materials without ports or processes. Dependency product references do not grant installation, activation or permission. Existing listings retain their source and compliance evidence; schema migration does not make listing-only content installable or publish a client release.
|
||||
|
||||
## 固定应用材料的作者契约
|
||||
|
||||
仓库根 `SCHEMA_VERSION` 与 `schemas/registry-entry.schema.json` 继续保留已发布的 4.2 格式及其原始摘要。`type: web-bundle` 或显式声明 `appRelease` 的条目,由两个校验入口统一选择独立的 `schemas/registry-entry.v4.3.schema.json`;普通应用、服务和外部集成继续使用原有 Schema。作者 Schema 不升级客户端,也不允许条目自报官方来源或信任。
|
||||
|
||||
`appRelease` 固定材料的 `releaseDigest`、`app-release.json` 与必要 capabilities。作者定义来自清单内联 `definition` 时声明 `definitionSource: manifest`;旧包内独立定义文件继续声明 `definitionPath`。两种来源互斥,不可为内联定义编造一个文件路径。获取后,客户端仍须核验归档字节、清单与文件,并比较真实产品 UUID、入口和放置策略。
|
||||
|
||||
作者材料来源只允许不可变 HTTPS `git` 或 `release`,必须分别提供固定提交 `source.ref` 和实际归档响应体的 `source.sha256`;归档摘要不能用 `releaseDigest` 代替。Git 归档还需声明实际包内的规范相对目录 `source.path`。`native-app` 和 Docker 作者条目使用 `install.method: release`,Web bundle 使用 `web-bundle`;能力握手、MCP 授权与运行归属仍以真实安装流程为准。
|
||||
|
||||
English: The published root format and global 4.2 Schema remain unchanged. Both validators select the separate reviewed authoring Schema only for `web-bundle` or an explicit `appRelease`; ordinary listings retain their existing Schema. Inline definitions use `definitionSource: manifest`, while legacy payload definitions use `definitionPath`, exclusively. Fixed source commits, the downloaded archive SHA-256 and the canonical release digest are separate identities. Validation does not establish client support, source trust, installation, authorization or runtime ownership.
|
||||
|
||||
## 条目格式
|
||||
|
||||
每个条目是 `entries/<id>/` 下的一个目录,目录名即条目 ID。
|
||||
|
||||
+19
-15
@@ -3,7 +3,7 @@
|
||||
"schemaVersion": 1,
|
||||
"identity": {
|
||||
"kind": "app",
|
||||
"id": "video-editing"
|
||||
"id": "0171a763-ad35-4b94-98b9-204782817b44"
|
||||
},
|
||||
"presentation": {
|
||||
"defaultLocale": "zh-CN",
|
||||
@@ -11,12 +11,12 @@
|
||||
"zh-CN": {
|
||||
"name": "视频剪辑",
|
||||
"summary": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。",
|
||||
"description": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。 复用 FableCut 时间线、浏览器合成器与 MCP 核心,界面跟随 DesireCore 明暗主题。需要 Node.js 22+、显式准备的浏览器和 FFmpeg/ffprobe,以及 app-authoring-v1 的 release/runtime-binding 能力。当前目录限定 Windows 与 Ubuntu/WSLg 已测范围;macOS 待验,不声明正式签名安装器或自主模型质量已通过。 模型额度、可选外部媒体服务的许可、账户与费用另计;应用不默认选择付费生成。"
|
||||
"description": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。复用 FableCut 时间线、浏览器合成器与 MCP 核心,界面跟随 DesireCore 明暗主题。需要包含新应用目录读取能力的 DesireCore 10.0.197 或更新版本、Node.js >=22,及显式准备的固定浏览器和 FFmpeg/ffprobe。197 客户端正在发行准备,旧公开196包缺少该reader。限定功能已在 macOS 源码 GUI、Windows 未签 GUI 和 Ubuntu/WSLg 源码 GUI 实测;不扩展为正式签名安装器、官方 Linux 包、裸机 GPU 或模型自主规划质量。模型及可选媒体服务的许可、账号与费用另计,不默认调用付费生成。"
|
||||
},
|
||||
"en-US": {
|
||||
"name": "Video Editing",
|
||||
"summary": "Multitrack editing, sound and original motion with the independent Video Editor agent, preserving human edits.",
|
||||
"description": "Reuses the FableCut timeline, browser compositor and MCP core with DesireCore light/dark appearance. Requires Node.js 22+, explicitly prepared browser and FFmpeg/ffprobe assets, and app-authoring-v1 release/runtime-binding capabilities. The listing covers bounded Windows and Ubuntu/WSLg source-GUI qualification. macOS is pending; signed installers, official Linux packages, bare-metal GPU and autonomous model quality are not qualified. Model quota and optional external media service licenses, accounts and fees are separate; the application selects no paid generation service by default."
|
||||
"description": "Multitrack editing, sound and editable original motion using the retained FableCut timeline, browser compositor and MCP core, with DesireCore light/dark appearance. Requires a client >=10.0.197 containing the new official UUID catalog and manifest-inline appRelease reader, Node.js >=22 and explicit preparation of pinned browser/FFmpeg dependencies. Client 197 is being prepared; the public 196 package lacks the reader. Bounded functionality was tested on macOS source GUI, unsigned Windows GUI and Ubuntu/WSLg source GUI. Production installers, official Linux packages, bare-metal GPU and autonomous model reasoning are not qualified. Model and optional media-service licenses, accounts and fees are separate; no paid generation service is selected by default."
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -28,34 +28,37 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.3",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-01",
|
||||
"value": "2026-11-02",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
"state": "unknown"
|
||||
"state": "known",
|
||||
"value": "2026-11-02",
|
||||
"precision": "day"
|
||||
},
|
||||
"reviewedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-01",
|
||||
"value": "2026-11-02",
|
||||
"precision": "day"
|
||||
},
|
||||
"upstreamObservedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-01",
|
||||
"value": "2026-11-02",
|
||||
"precision": "day"
|
||||
}
|
||||
},
|
||||
"provenance": {
|
||||
"content": {
|
||||
"kind": "git",
|
||||
"url": "https://github.com/desirecore-agent/video-editing.git",
|
||||
"ref": "be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2"
|
||||
"kind": "release",
|
||||
"url": "https://github.com/desirecore-agent/video-editing/releases/download/v0.1.3/video-editing-0.1.3.zip",
|
||||
"ref": "e1e5d12ce95854ca7cb02d277f955abb1536c5ac",
|
||||
"sha256": "fa9128606390a17409ff4eba46c13988df17f55cb8bbd3f21c6066cb5f9940b4"
|
||||
}
|
||||
},
|
||||
"governance": {
|
||||
@@ -78,8 +81,8 @@
|
||||
"compliance": {
|
||||
"licenseEvidencePath": "LICENSE",
|
||||
"noticePath": "NOTICE.md",
|
||||
"reviewedRef": "be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2",
|
||||
"reviewedAt": "2026-11-01",
|
||||
"reviewedRef": "e1e5d12ce95854ca7cb02d277f955abb1536c5ac",
|
||||
"reviewedAt": "2026-11-02",
|
||||
"reviewedBy": "fixed-source-and-bounded-runtime-review (see review.md)",
|
||||
"upstreamEndorsed": false
|
||||
},
|
||||
@@ -94,10 +97,11 @@
|
||||
"state": "known",
|
||||
"values": [
|
||||
"windows",
|
||||
"macos",
|
||||
"linux"
|
||||
]
|
||||
},
|
||||
"requiredClientVersion": "10.0.195"
|
||||
"requiredClientVersion": "10.0.197"
|
||||
},
|
||||
"spec": {
|
||||
"kind": "app",
|
||||
@@ -109,7 +113,7 @@
|
||||
},
|
||||
"productKind": "application",
|
||||
"entrypointKinds": [
|
||||
"agent"
|
||||
"embedded-web"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
# 视频剪辑:固定材料安装、关联与维护
|
||||
|
||||
本条目只发布固定应用材料与运行说明,不包含已安装事实、系统安装器、原生依赖二进制、用户数据、模型额度或预授权。产品UUID/目录ID均为 `0171a763-ad35-4b94-98b9-204782817b44`;源仓库与skill名video-editing不是安装ID。先读取同目录manifest.json/review.md、[固定源运行合同](https://github.com/desirecore-agent/video-editing/blob/e1e5d12ce95854ca7cb02d277f955abb1536c5ac/desirecore/RUNTIME.md)、LICENSE、NOTICE.md和desirecore/runtime-assets.json。
|
||||
|
||||
## 兼容客户端与官方获取
|
||||
|
||||
最低版本预定DesireCore10.0.197;该公开客户端仍在发行准备,公开196标签源缺少官方UUID目录/manifest内联appRelease读取能力,不能仅凭同号版本或capability字符串判断兼容。正常安装前检查真实app-authoring-v1的release/runtime-binding与App管理能力;缺失时报告,不改类型绕过。
|
||||
|
||||
沿默认官方应用市场获取本UUID条目。唯一材料为 [video-editing-0.1.3.zip](https://github.com/desirecore-agent/video-editing/releases/download/v0.1.3/video-editing-0.1.3.zip),响应体 **1372662B**,SHA256 `fa9128606390a17409ff4eba46c13988df17f55cb8bbd3f21c6066cb5f9940b4`;来源提交 `e1e5d12ce95854ca7cb02d277f955abb1536c5ac`。ZIP根含app-release.json与130个payload文件/3104880B;releaseDigest `205ca1f94ae71ce4b86984328ab9914d477fcc9428fd69c6dc5789f93de0e68b`。归档SHA、产品Git提交与规范releaseDigest是三种不同事实。客户端正常获取需核验实际响应字节、包根清单、逐文件大小与摘要及真实UUID/版本/入口/placement。definitionSource=manifest直接采用已核验内联definition,不编造definitionPath。不要使用可变main、上游npx/npm服务或源码内嵌草稿清单代替该归档。
|
||||
|
||||
应用获取不等于安装完成。委派正常AppManage/AppHost/TaskHost owner完成prepare、实际Bash接纳、运行合同与CAS commit;结果未知先查询原提交,不重复副作用。实际installationId、Actor、revision、generation、材料根和数据根只取平台响应。已有同产品安装沿expectedRevision更新,不因目录重命名另造安装。
|
||||
|
||||
## 显式依赖准备与启动
|
||||
|
||||
Node.js >=22使用平台正常受管PATH。在平台返回的固定材料根为cwd、独立正式dataRoot中显式执行 `node desirecore/setup-runtime.js --data-dir <本应用数据根>`。它按完整固定URL/版本/SHA核验浏览器、FFmpeg/ffprobe并生成新展开回执,不启动服务;这些二进制没有捆入ZIP。Node、字体、浏览器和FFmpeg各自许可独立。首次准备需网络/磁盘与系统库;Linux保持正常sandbox,Windows完整路径超过原合同限制时在下载前拒绝。不可自动sudo、关闭sandbox、改ACL、身份或依赖pin迎合环境。
|
||||
|
||||
正式启动使用 `node desirecore/start.js --data-dir <同一数据根>`,原owner注入真实PORT、APP_DATA_DIR和受管身份。7777只是源码fallback对应的可调默认约定,不是分配端口或验收端口;占用时选择可用值,不结束其他进程。经原owner就绪观测与当前release/revision/generation binding核验后打开embedded-web editor入口。仅端口监听或HTTP200不代表完整初始化。
|
||||
|
||||
## 视频剪辑师和同实例MCP
|
||||
|
||||
从默认官方数字员工市场单独获取[视频剪辑师](https://github.com/desirecore-agent/video-editor),按实际导入响应ID关联当前应用,旧视频创作/视频导演保持独立。关联只设置入口偏好,contextPermissions为空,不授予文件、工具、模型或MCP权限。
|
||||
|
||||
按正式MCP管理与授权配置同材料根的 `node desirecore/cli.mjs mcp --runtime-file <当前owner运行快照.json>`。快照沿源Schema含schemaVersion、dataDir、port、instanceId、scopeId、runtimeGeneration、releaseDigest,不包含proof、凭据或grant。只连接当前已安装同实例;CLI拒绝旧代际/不同数据根,不另起服务。status/identity同此合同。模型算力与可选媒体服务许可、账户及费用另计;无前置条件时停止并报告。
|
||||
|
||||
## 更新、备份与卸载
|
||||
|
||||
保留人工时间线与草稿,沿精确owner正常停止并等实际Root/编码器退出。用已授权文件工具备份dataRoot、外部媒体与摘要;video-editing-home-v1中的工程/素材/成片不是缓存。runtime依赖可按固定合同重建。新版本正常prepare/数据合同比较/expectedRevision CAS,不复用旧PID、锁、proof或hint。恢复在停止状态核对格式、相对路径与媒体再测试;不支持的格式保持原数据并失败,没有自动降级或后台续渲染承诺。卸载沿正式入口停止精确安装并默认保留用户数据;不能清材料时顺带删工程成片。
|
||||
|
||||
English: Acquire only the fixed published archive through the normal official UUID catalog. Verify its archive SHA separately from the manifest release digest and every listed file. Client 197 is being prepared; public 196 lacks the reader. Normal owner admission, explicit pinned runtime preparation, current-instance MCP authorization and observed readiness remain necessary. Dependencies and model/media terms are separate. Preserve user data and human edits through updates, backup, restore and uninstall; uncertain submissions are queried before retrying.
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"id": "0171a763-ad35-4b94-98b9-204782817b44",
|
||||
"name": "视频剪辑",
|
||||
"type": "native-app",
|
||||
"version": "0.1.3",
|
||||
"author": "desirecore-agent",
|
||||
"description": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。",
|
||||
"shortDesc": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。",
|
||||
"fullDesc": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。复用 FableCut 时间线、浏览器合成器与 MCP 核心,界面跟随 DesireCore 明暗主题。需要包含新应用目录读取能力的 DesireCore 10.0.197 或更新版本、Node.js >=22,及显式准备的固定浏览器和 FFmpeg/ffprobe。197 客户端正在发行准备,旧公开196包缺少该reader。限定功能已在 macOS 源码 GUI、Windows 未签 GUI 和 Ubuntu/WSLg 源码 GUI 实测;不扩展为正式签名安装器、官方 Linux 包、裸机 GPU 或模型自主规划质量。模型及可选媒体服务的许可、账号与费用另计,不默认调用付费生成。",
|
||||
"tags": [
|
||||
"video",
|
||||
"editing",
|
||||
"timeline",
|
||||
"motion"
|
||||
],
|
||||
"icon": "film",
|
||||
"iconLetter": "剪",
|
||||
"platformSupport": [
|
||||
"windows",
|
||||
"macos",
|
||||
"linux"
|
||||
],
|
||||
"category": "tools",
|
||||
"githubUrl": "https://github.com/desirecore-agent/video-editing",
|
||||
"requiredClientVersion": "10.0.197",
|
||||
"install": {
|
||||
"method": "release",
|
||||
"requirements": {
|
||||
"docker": false,
|
||||
"node": ">=22",
|
||||
"minMemory": "未声明固定最低值;预览和渲染开销随工程与输出尺寸变化。",
|
||||
"minDisk": "需容纳固定浏览器、FFmpeg/ffprobe、原媒体、输入快照和导出文件;按实际容量核对。",
|
||||
"ports": [
|
||||
7777
|
||||
]
|
||||
},
|
||||
"configNeeded": [
|
||||
"客户端 >=10.0.197,实际包含官方 UUID 应用目录与 manifest 内联 appRelease reader,并检查 app-authoring-v1 release/runtime-binding。197 仍在发行准备;公开196包不包含新reader。",
|
||||
"从固定 Release 下载并核验 source.sha256,根 app-release.json 和130个文件逐项核验;由正常应用获取及 AppManage/AppHost/TaskHost 流程安装,不用可变main或npm命令替代。",
|
||||
"显式执行固定材料中的 setup-runtime,准备Node >=22、浏览器、FFmpeg/ffprobe;这些二进制不包含在 ZIP,遵循各自许可,所需系统库和原sandbox前提不可跳过。",
|
||||
"7777 是源码fallback对应的可调默认约定,不是当前端口或已安装事实。真实owner选择可用PORT并注入原启动契约,不结束其它进程。",
|
||||
"独立安装视频剪辑师,关联只设置入口偏好。MCP须另行授权连接同一个当前release/安装/instance/generation/dataRoot;版本号、能力字符串或目录不替代真实就绪观测。"
|
||||
]
|
||||
},
|
||||
"placementPolicy": {
|
||||
"showInMyApps": true,
|
||||
"allowNavPin": true,
|
||||
"allowAgentBinding": true
|
||||
},
|
||||
"source": {
|
||||
"kind": "release",
|
||||
"url": "https://github.com/desirecore-agent/video-editing/releases/download/v0.1.3/video-editing-0.1.3.zip",
|
||||
"ref": "e1e5d12ce95854ca7cb02d277f955abb1536c5ac",
|
||||
"sha256": "fa9128606390a17409ff4eba46c13988df17f55cb8bbd3f21c6066cb5f9940b4"
|
||||
},
|
||||
"stewardship": "pointer",
|
||||
"availability": "installable",
|
||||
"license": "MIT",
|
||||
"redistribution": "source-pointer-only",
|
||||
"listingMaintainer": {
|
||||
"name": "DesireCore Registry maintainers",
|
||||
"url": "https://github.com/desirecore/registry"
|
||||
},
|
||||
"upstreamMaintainer": {
|
||||
"name": "desirecore-agent",
|
||||
"url": "https://github.com/desirecore-agent/video-editing"
|
||||
},
|
||||
"branding": {
|
||||
"relationship": "independent-listing",
|
||||
"nameUsage": "nominative",
|
||||
"logoStatus": "not-used"
|
||||
},
|
||||
"compliance": {
|
||||
"licenseEvidencePath": "LICENSE",
|
||||
"noticePath": "NOTICE.md",
|
||||
"reviewedRef": "e1e5d12ce95854ca7cb02d277f955abb1536c5ac",
|
||||
"reviewedAt": "2026-11-02",
|
||||
"reviewedBy": "fixed-source-and-bounded-runtime-review (see review.md)",
|
||||
"upstreamEndorsed": false
|
||||
},
|
||||
"entrypoints": [
|
||||
{
|
||||
"id": "editor",
|
||||
"name": "剪辑工作台",
|
||||
"kind": "embedded-web",
|
||||
"serviceRef": "video-editing:editor"
|
||||
}
|
||||
],
|
||||
"appRelease": {
|
||||
"schemaVersion": 1,
|
||||
"releaseDigest": "205ca1f94ae71ce4b86984328ab9914d477fcc9428fd69c6dc5789f93de0e68b",
|
||||
"manifestPath": "app-release.json",
|
||||
"definitionSource": "manifest",
|
||||
"requiredCapabilities": [
|
||||
"app-authoring-v1",
|
||||
"release",
|
||||
"runtime-binding"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
# 视频剪辑固定材料审阅与发布边界
|
||||
|
||||
独立“视频剪辑”,与既有视频创作/视频导演分开。App PR1与CI修复PR2已合,实际固定源 `e1e5d12ce95854ca7cb02d277f955abb1536c5ac`,main CI41455224007七项真实Runner成功。直接保留FableCut `61bf46babca82214c162c0650e47a81c3530982c`历史、MIT/版权/字体通知,NOTICE.md记录独立fork,无上游背书或产品标志。Node、Chrome for Testing、FFmpeg/ffprobe与字体各自许可独立,不冒MIT-only。
|
||||
|
||||
## 真实分发身份
|
||||
|
||||
0.1.3固定资产已在2026-11-02发布到[GitHub Release](https://github.com/desirecore-agent/video-editing/releases/tag/v0.1.3),实际公网HTTP200下载与准备归档完全相同:1372662B/SHA256 `fa9128606390a17409ff4eba46c13988df17f55cb8bbd3f21c6066cb5f9940b4`。包根app-release.json及130payload/3104880B逐字节与上述提交一致,规范releaseDigest `205ca1f94ae71ce4b86984328ab9914d477fcc9428fd69c6dc5789f93de0e68b`。清单实际worktree生成来源保留,不为了填写Git mergeRef改payload或摘要。归档不含原生bins、node_modules、用户数据、媒体、测试夹具、凭据或授权。源固定pin和归档SHA独立填写,不用releaseDigest代替下载SHA。
|
||||
|
||||
产品UUID/目录ID `0171a763-ad35-4b94-98b9-204782817b44`、editor embedded-web入口/serviceRef、placement来自真实清单内联definition,appRelease.definitionSource=manifest。实际安装ID/owner/代际只能来自正常安装流程;目录不自报信任。独立4.3作者Schema与现有4.2全局Schema分开,不改旧格式字节;两个validator选择同一判据,固定git/release来源、required capabilities与互斥definition来源由回归约束。
|
||||
|
||||
## 限定实际资格
|
||||
|
||||
应用0.1.3/R14限定功能通过macOS UID501/Electron44.10源码GUI、Windows x64 Console1未签GUI、Ubuntu24.04.5/WSLg普通用户Electron44.10源码GUI。正常固定依赖准备、真实AppManage/TaskHost、实际Agent与同实例MCP、可编辑工程/自产影片full decode与来源/声音校准及真实明暗UI分开留证。Windows当前UI新窗口有实际guest/Play/Pause/正常MCP24,不冒新的AgentRun;Mac的取消/故障不变域承接已验R12,不称R14重跑全矩阵。Windows/Linux当前取消及单Root故障后原任务interrupted/登记物理清理/no auto job分别实测;Linux原观察工装readlink退出竞态保留,以同case只读续核,不重复kill。旧Windows锁归档晚hard13.245秒等原边界不因后续全闭窗口抹除。自有现场均关闭,数据保留。
|
||||
|
||||
资格不扩展为正式签名系统安装器/官方Linux包、裸机GPU、所有版本或商业模型自主规划质量。依赖固定档案校验与原setupRuntime新回执不冒全部OS首次公网下载。原生源码平台Mac eb31、Windows/WSL f5;最新平台实际合并f897完整CI已过,新增启动审批/PORT影响尚待最终fresh-home官方市场链验证。目录Schema和CI不是安装成功证明。
|
||||
|
||||
## 正式客户端和市场验收
|
||||
|
||||
最低客户端预定10.0.197,包含平台PR5598新reader并须实际capability检查;197正在发行准备,公开196实际tag源没有该reader。目录main未合前保持Draft,不宣称上架。两个目录合入与兼容客户端实际可得后,仍需全新隔离home沿默认官方main获取/安装应用和数字员工、核所有者、正常关联/独立MCP授权与实际编辑预览/导出。availability=installable只允许现有受治理获取流程,不是当前安装、运行或授权事实。
|
||||
|
||||
English: The fixed 0.1.3 archive is publicly available and downloaded bytes match the reviewed material and merged source. The independent fork retains FableCut history and notices. Qualification is bounded to the stated macOS source, unsigned Windows and Ubuntu/WSLg source GUIs; original recovery/timing failures and unchanged-domain boundaries remain explicit. The new client reader, catalog publication and fresh default-market acquisition/use are separate gates. Client 197 is not public yet; public 196 lacks the reader. This listing grants no permissions or runtime ownership.
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
# 视频剪辑使用
|
||||
|
||||
从已安装应用的“剪辑工作台”打开或新建工程,组织视频、音频、图片、标题和叠加层,使用时间线完成裁剪、分割、轨道编排、声音与调色。界面跟随 DesireCore 明暗主题;窄窗口通过 Preview / Media / Inspector 切换主任务区域。部分上游控件保留英文标签。[固定源编辑手册](https://github.com/desirecore-agent/video-editing/blob/be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2/docs/editor-guide.md)说明实际编辑与 MCP 合同。
|
||||
从已安装应用的“剪辑工作台”打开或新建工程,组织视频、音频、图片、标题和叠加层,使用时间线完成裁剪、分割、轨道编排、声音与调色。界面跟随 DesireCore 明暗主题;窄窗口通过 Preview / Media / Inspector 切换主任务区域。部分上游控件保留英文标签。[固定源编辑手册](https://github.com/desirecore-agent/video-editing/blob/e1e5d12ce95854ca7cb02d277f955abb1536c5ac/docs/editor-guide.md)说明实际编辑与 MCP 合同。
|
||||
|
||||
视频剪辑师可协助素材组织、时间线与声音处理,也可自主编写 HTML/SVG/Canvas/WebGL 原创动效并按工程实际支持的素材/组件流程加入作品,不要求作品局限于字幕或模板。人工编辑、草稿和锁遵循原工程合同;保存和 MCP 修改携带当前 projectId/baseRevision,遇到冲突先保留草稿、重新读取当前修订,不盲覆盖。
|
||||
|
||||
@@ -10,6 +10,6 @@ GUI Fast 与 `fablecut_export` 使用后台无头渲染器读取原 job 的冻
|
||||
|
||||
完成状态以原 job 的回执、文件及必要视听检查为准,提交成功不是成片成功。取消等待原编码会话退出再清理已登记且身份匹配的临时产物;缺失或不可靠身份保持 unknown。重启把原未完成 job 记为 interrupted,并清理可证明归属的登记项,不自动续跑或新建替代 job。结果未知先查原 job;重试是明确的新任务。输入、工程、已完成输出与未登记文件不属于临时产物删除清单。
|
||||
|
||||
当前目录平台范围为 Windows 与 Ubuntu/WSLg 源码 GUI 的限定功能,详见 `review.md`。macOS 验收暂缓;正式签名安装器、官方 Linux 包、裸机 GPU 与模型自主规划质量均未由这些运行证据证明。素材内容、审美、节奏和听感仍需实际审看与试听。
|
||||
当前目录平台范围为 macOS 源码 GUI、Windows 未签 GUI 与 Ubuntu/WSLg 源码 GUI 的限定功能,详见 `review.md`。包含新reader的197客户端仍在发行准备;正式签名安装器、官方 Linux 包、裸机 GPU 与模型自主规划质量均未由这些运行证据证明。素材内容、审美、节奏和听感仍需实际审看与试听。
|
||||
|
||||
English: Use the installed timeline for editable multitrack media, sound, color and original motion; preserve human edits and compare current project revisions before applying changes. Video Editor can create original HTML/SVG/Canvas/WebGL material without reducing the work to captions or presets. Authorized MCP tools attach to the same current instance. Exports use frozen job inputs and the headless renderer; external dynamic resources and OS fonts are not fully frozen. Inspect the original job and output, keep unknown results explicit, and retry only as a new request. Runtime evidence is scoped to Windows and Ubuntu/WSLg source GUI; macOS and other listed acceptance gaps remain pending.
|
||||
English: Use the installed timeline for editable multitrack media, sound, color and original motion; preserve human edits and compare current project revisions before applying changes. Video Editor can create original HTML/SVG/Canvas/WebGL material without reducing the work to captions or presets. Authorized MCP tools attach to the same current instance. Exports use frozen job inputs and the headless renderer; external dynamic resources and OS fonts are not fully frozen. Inspect the original job and output, keep unknown results explicit, and retry only as a new request. Runtime evidence is scoped to macOS source GUI, unsigned Windows GUI and Ubuntu/WSLg source GUI. The compatible 197 client and fresh default-market installation remain pending; production packages and model quality are separate.
|
||||
@@ -1,47 +0,0 @@
|
||||
# 视频剪辑:安装、更新与卸载
|
||||
|
||||
本条目是固定源码指针,不包含已安装事实、原生二进制、用户工程、模型额度或工具授权。先读取同目录 `manifest.json`、`review.md`,以及[固定源运行合同](https://github.com/desirecore-agent/video-editing/blob/be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2/desirecore/RUNTIME.md)、`LICENSE`、`NOTICE.md` 和 `desirecore/runtime-assets.json`。
|
||||
|
||||
## 兼容性与固定材料
|
||||
|
||||
目录要求 DesireCore 10.0.195 及以上;这是实际验收平台的版本下限选择,不声称它是最早兼容版本,也不保证任意同号构建已有所需能力。安装前读取公开 `apps/authoring/capabilities`,确认 `app-authoring-v1` 的 `release`、`runtime-binding` 及正常 App 管理能力实际可用;缺失时报告兼容性问题,不改条目类型绕过。
|
||||
|
||||
在安装者已授权的新源码目录中克隆 `manifest.source.url`,检出并核对完整 `manifest.source.ref`。Node.js 22+ 使用 DesireCore 已有受管 PATH。编辑内核无 npm 运行时依赖,不使用上游 `npx fablecut`、可变 `main` 或另一个 npm 包代替本固定源。在该源码根执行:
|
||||
|
||||
```sh
|
||||
node desirecore/release.js --output <新的空材料目录>
|
||||
```
|
||||
|
||||
生成器只固定材料,不安装、启动或发布服务。核对新材料根的 `app-release.json`、逐文件大小/SHA-256 和 `releaseDigest`。本固定提交的合格 r11 为 128 文件、3095832 字节,canonical `releaseDigest` 为 `053be31c5dd6428af470f9e8fe18cc1bf0f2a979bc8dc510c367759943dac775`;不符时停止并查原因,不补写摘要迁就结果。源码内的 `desirecore/app-release.json` 是草稿,不能代替新材料根清单,也不能直接用于附着受管运行。材料不含工程、媒体、exports、依赖缓存、凭据、MCP grant 或安装账本。
|
||||
|
||||
## 正式受管安装
|
||||
|
||||
委派平台正式 AppManage / 应用管理流程,沿公开 Schema 完成 prepare、原 owner 的真实 Bash/TaskHost 接纳、runtime contract 与 CAS commit。管理动作通过正式平台工具/界面,不让 Agent 用 Bash/curl 冒充 Renderer 写入管理控制面。源码生成的产品 UUID `0171a763-ad35-4b94-98b9-204782817b44` 与入口 `editor` / `video-editing:editor` 是产品定义;实际 installationId、Actor、revision、代际和端口只取平台响应。已有安装按真实实例和 expectedRevision 更新,不因仓库 slug 新建另一份安装事实。
|
||||
|
||||
以平台返回的固定材料根为 cwd,在本应用独立数据根中显式准备依赖:
|
||||
|
||||
```sh
|
||||
node desirecore/setup-runtime.js --data-dir <本应用独立数据根>
|
||||
```
|
||||
|
||||
准备按固定清单下载并核验 FFmpeg、ffprobe 与 Chrome for Testing headless shell,保留各自许可和展开回执。不要把这些组件称为 MIT-only;Node、字体与可选模型/媒体服务也各自遵循实际许可和费用。首次准备需要网络和磁盘空间。Linux 还需要浏览器所需系统库及正常 sandbox 前提;缺依赖时停止报告,不自动运行 sudo、关闭 sandbox 或修改系统权限。Windows 使用系统 tar.exe,Linux 使用 unzip;不包含正式操作系统安装器。
|
||||
|
||||
正式启动契约执行 `node desirecore/start.js --data-dir <同一数据根>`,由原 owner 注入实际 `PORT`、`APP_DATA_DIR` 和受管身份。目录选择 7777 作为可调安装默认值,取自源码 fallback;它不是已分配端口、验收端口或在线证明。owner 应核对可用端口并记录真实 PORT,发生占用时选择另一个可用值,不结束其他进程。准备本身不启动应用;登记前的候选启动和关闭均遵循原 owner 合同。正式打开沿应用管理入口,不另起游离服务。
|
||||
|
||||
端口已监听不代表初始化完成。应读取 `/api/desirecore/runtime-identity` 与当前 release/revision/generation 的真实 binding,确认就绪后再核对 GUI、工程保存与导出;HTTP 200 或单项 verified 标签不等同完整验收。缺失或旧运行证明不可自制。
|
||||
|
||||
## 视频剪辑师与同实例 MCP
|
||||
|
||||
新数字员工[视频剪辑师](https://github.com/desirecore-agent/video-editor)单独从 Agent 市场获取,不替换既有视频导演。用实际导入响应中的 Agent ID 通过正式关联入口绑定当前应用;关联是打开偏好,不授予目录、工具、模型或 MCP 权限。
|
||||
|
||||
如需 MCP,经原授权流程配置 `node desirecore/cli.mjs mcp --runtime-file <当前owner响应快照.json>`,CLI 必须来自同次固定材料根。快照按源 Schema 记录真实 `schemaVersion`、`dataDir`、`port`、`instanceId`、`scopeId`、`runtimeGeneration`、`releaseDigest`,不含 proof、凭据或预授 grant。它只帮助连接已安装且已核验的同实例;CLI 会拒绝旧代际、不同数据根或不同材料,不自启第二个服务。`status` / `identity` 使用同一快照合同。
|
||||
|
||||
## 更新、备份与卸载
|
||||
|
||||
更新前保留未保存草稿,检查原工程/导出/审批,沿精确 owner 正常停止并等待进程及编码器实际退出。以已授权文件工具备份独立数据根、外部媒体与文件摘要;`video-editing-home-v1` 中的工程、原媒体和成片不是可重建缓存。`runtime/` 可按运行合同重新准备。不得复用旧 PID、锁、proof、审批或连接快照作为当前身份。
|
||||
|
||||
新固定源按正常 prepare、数据合同比较和 expectedRevision CAS 更新;结果未知时查询原 submission,不重复提交。恢复保持应用停止,核对相对路径、媒体引用和格式,再由原 owner 启动测试工程。0.1.0 没有自动迁移、降级或后台续渲染;不支持的格式保持原数据并失败。
|
||||
|
||||
卸载通过平台正式入口停止该精确安装,数据合同默认保留用户数据。不要调用清理材料的动作顺手删除素材、工程或成片。Agent 内容更新走其正常来源更新与冲突合并,保留人工修改和偏好。
|
||||
|
||||
English: Check actual authoring/runtime capabilities as well as the tested 10.0.195 client floor. Generate fresh immutable material from the exact pinned source; the nested source manifest is a draft. Use normal AppManage/AppHost/TaskHost admission, explicit runtime preparation and real owner-injected identities. Port 7777 is an adjustable catalog installation choice, not a live or tested-port claim. Acquire Video Editor separately and attach its authorized MCP client to the same verified instance. Source-pointer publication grants no permissions. Preserve application data and human edits through updates, backup and uninstall; query uncertain operations before retrying.
|
||||
@@ -1,86 +0,0 @@
|
||||
{
|
||||
"id": "video-editing",
|
||||
"name": "视频剪辑",
|
||||
"type": "native-app",
|
||||
"version": "0.1.0",
|
||||
"author": "desirecore-agent",
|
||||
"description": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。",
|
||||
"shortDesc": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。",
|
||||
"fullDesc": "多轨视频剪辑、声音与原创动效;与独立视频剪辑师协作,保留人工编辑。 复用 FableCut 时间线、浏览器合成器与 MCP 核心,界面跟随 DesireCore 明暗主题。需要 Node.js 22+、显式准备的浏览器和 FFmpeg/ffprobe,以及 app-authoring-v1 的 release/runtime-binding 能力。当前目录限定 Windows 与 Ubuntu/WSLg 已测范围;macOS 待验,不声明正式签名安装器或自主模型质量已通过。 模型额度、可选外部媒体服务的许可、账户与费用另计;应用不默认选择付费生成。",
|
||||
"tags": [
|
||||
"video",
|
||||
"editing",
|
||||
"timeline",
|
||||
"motion"
|
||||
],
|
||||
"icon": "film",
|
||||
"iconLetter": "剪",
|
||||
"platformSupport": [
|
||||
"windows",
|
||||
"linux"
|
||||
],
|
||||
"category": "tools",
|
||||
"githubUrl": "https://github.com/desirecore-agent/video-editing",
|
||||
"requiredClientVersion": "10.0.195",
|
||||
"install": {
|
||||
"method": "native-node",
|
||||
"requirements": {
|
||||
"docker": false,
|
||||
"node": ">=22",
|
||||
"minMemory": "未声明固定最低值;预览和渲染开销随工程与输出尺寸变化。",
|
||||
"minDisk": "需容纳固定浏览器、FFmpeg/ffprobe、原媒体、输入快照和导出文件;按实际容量核对。",
|
||||
"ports": [
|
||||
7777
|
||||
]
|
||||
},
|
||||
"configNeeded": [
|
||||
"支持 app-authoring-v1 的 release/runtime-binding 及正常 AppManage/AppHost/TaskHost 能力;10.0.195 是已测平台版本,不保证任意同号构建已具备这些能力,安装前检查公开 capabilities。",
|
||||
"从固定源码生成新的不可变材料根,显式执行 setup-runtime;Node、浏览器、字体和 FFmpeg/ffprobe 各自许可独立,可选模型/媒体服务与费用另计。",
|
||||
"本目录选择源码 fallback 7777 作为可调安装约定,既非已分配端口也非验收端口;原 owner 检查可用端口并注入实际 PORT,记录正式合同,不结束其他进程。",
|
||||
"Windows 与 Ubuntu/WSLg 源码 GUI 的限定功能已测;macOS 暂缓,正式签名安装器、官方 Linux 包与裸机 GPU 未验收。",
|
||||
"只有原 owner 的实际安装/运行身份、当前 release/revision/generation 与就绪观测匹配后才连接;目录、端口和关联本身不授予文件、模型或 MCP 权限。"
|
||||
]
|
||||
},
|
||||
"placementPolicy": {
|
||||
"showInMyApps": true,
|
||||
"allowNavPin": true,
|
||||
"allowAgentBinding": true
|
||||
},
|
||||
"source": {
|
||||
"kind": "git",
|
||||
"url": "https://github.com/desirecore-agent/video-editing.git",
|
||||
"ref": "be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2"
|
||||
},
|
||||
"stewardship": "pointer",
|
||||
"availability": "installable",
|
||||
"license": "MIT",
|
||||
"redistribution": "source-pointer-only",
|
||||
"listingMaintainer": {
|
||||
"name": "DesireCore Registry maintainers",
|
||||
"url": "https://github.com/desirecore/registry"
|
||||
},
|
||||
"upstreamMaintainer": {
|
||||
"name": "desirecore-agent",
|
||||
"url": "https://github.com/desirecore-agent/video-editing"
|
||||
},
|
||||
"branding": {
|
||||
"relationship": "independent-listing",
|
||||
"nameUsage": "nominative",
|
||||
"logoStatus": "not-used"
|
||||
},
|
||||
"compliance": {
|
||||
"licenseEvidencePath": "LICENSE",
|
||||
"noticePath": "NOTICE.md",
|
||||
"reviewedRef": "be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2",
|
||||
"reviewedAt": "2026-11-01",
|
||||
"reviewedBy": "fixed-source-and-bounded-runtime-review (see review.md)",
|
||||
"upstreamEndorsed": false
|
||||
},
|
||||
"entrypoints": [
|
||||
{
|
||||
"id": "manage",
|
||||
"name": "委派 Agent 安装、打开与维护视频剪辑",
|
||||
"kind": "agent"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
# 视频剪辑固定源审阅与发布边界
|
||||
|
||||
本目录准备为新“视频剪辑”应用的源码指针,与原“视频创作 / 视频导演”条目独立。目录 PR 仍须等待[应用 PR1](https://github.com/desirecore-agent/video-editing/pull/1)、[视频剪辑师 PR1](https://github.com/desirecore-agent/video-editor/pull/1)的必要资格与合并门禁,以及本目录检查;当前 Draft 不代表已上架。macOS 由用户明确暂缓,不视作豁免或验收成功。
|
||||
|
||||
## 来源、许可与不可变身份
|
||||
|
||||
- 固定应用提交为 `be7680fb90e1f3d8e52a6d9e00ab91db64cbd5a2`;版本 0.1.0 来自该提交 `package.json`,不是新造的上游 Release。`source.ref` 与 `compliance.reviewedRef` 完全一致。
|
||||
- 应用直接保留 FableCut `61bf46babca82214c162c0650e47a81c3530982c` 的历史、MIT 许可与版权,使用新的产品名。`NOTICE.md` 明确独立 fork 和第三方来源,不声明上游背书,不使用上游产品标志。
|
||||
- 字体保留 SIL OFL 等原通知;Node、Chrome for Testing 与 FFmpeg/ffprobe 各自许可独立。固定下载 URL、完整 SHA-256、展开行为与通知位于源 `desirecore/runtime-assets.json`、`desirecore/RUNTIME.md`;目录只发布源码指针,不转发这些二进制或重新声称其许可。
|
||||
- 唯一材料生成器 `desirecore/release.js` 对新材料根生成 canonical 清单。本固定源 r11 为 128 文件 / 3095832 字节,releaseDigest 为 `053be31c5dd6428af470f9e8fe18cc1bf0f2a979bc8dc510c367759943dac775`。源码草稿清单、Git SHA 与正式 releaseDigest 是不同事实。
|
||||
- 产品 UUID `0171a763-ad35-4b94-98b9-204782817b44`、editor 入口及服务引用来自源定义,不填入私人安装实例、Actor 或运行 ID。视频剪辑师从独立仓库/市场获取,关联不携带权限或运行归属。
|
||||
|
||||
## 已核验范围
|
||||
|
||||
固定 App 源的 [CI 运行](https://github.com/desirecore-agent/video-editing/actions/runs/41170070155)通过七项检查;源码/包安装与 stdio 24 工具闭包是独立材料检查,不代替原生 GUI。平台实际运行源为已合并 `f5c8e576910ed999912dacbd9eec68b829c1c9fd`,该源声明版本 10.0.195;因此选它作目录客户端下限,仍须实际公开 capabilities 准入,不把版本号当能力证明。
|
||||
|
||||
- Windows 使用同平台源的未签名开发 GUI 候选,实际完成新 Agent 导入与关联、同实例 MCP 编辑、原始导出与全解码/源画面和立体声校准、明暗/入口/窄布局、取消,以及运行中导出被实际终止应用进程后的同原 job 恢复。恢复将原 job 记为 interrupted,物理清理四项登记临时产物,11 项保护文件摘要保持不变。新 MCP/旧 hint 拒绝、真实 Agent 核验与 CAS、有效期内旧回执拒绝和同代际复用分别留有证据。自有进程、端口、任务与租约已闭,数据和候选材料保留。
|
||||
- Linux 范围为普通用户 Ubuntu 24.04.5 / WSLg 的 Electron 44.10 源码 GUI,实际完成对应编辑、原始导出与内容校准、主题/入口 UI、取消、同原任务故障恢复、可信核验回执与清理。不推广为官方 Linux 包、裸机 GPU 或其他发行版资格。
|
||||
- 本轮未直接采样 Windows 故障前 part 的字节数,不能宣称已非零;原计划关于非零大小守卫已实现的文字误述已纠正。专门的后代进程停止分支未单独执行。GUI 关闭确认值为 false,CDP 关闭和自有进程清零另有实测。受控协议夹具验证执行与回执,不证明模型自主规划质量。
|
||||
- Windows 验收使用发布者文档列明的镜像补齐依赖档案,完整 SHA 与源固定清单一致;不声称 GitHub 首次在线下载已通过。正式安装仍执行固定源的显式准备合同,不修改 pin、权限或 sandbox 迎合环境。
|
||||
|
||||
## 发布门禁
|
||||
|
||||
`platformSupport` 当前只含 windows/linux;macOS 完成必要真机验收后才能扩充声明。正式签名安装器、官方 Linux 包和裸机 GPU 未验。产品源 PR 合并、最新 CI、合并头/基线、目录 PR 检查及从市场实际安装/关联/打开仍须逐项核实,不能由 `availability: installable` 推断已完成。该字段只允许进入现有受治理获取流程,不是已安装、已授权或在线状态。
|
||||
|
||||
目录不复制个人工程、素材、影片、用户身份、Provider Key、运行快照、MCP grant、审批或信任。固定元数据不伪造当前安装/运行回执,不替用户启用模型或外部服务。
|
||||
|
||||
English: This draft source-pointer listing pins the actual 0.1.0 fork and preserves FableCut provenance, MIT and third-party notices. Runtime dependencies keep their own licenses and SHA pins. Qualification covers bounded Windows and Ubuntu/WSLg source-GUI behavior on platform f5; macOS, signed installers, official Linux packages, bare-metal GPU and autonomous model quality remain unqualified. Pre-fault part size was not directly observed and dedicated descendant stopping was not exercised. Product and catalog PRs plus a real market acquisition/association check remain release gates. Installable metadata is not runtime, permission or publication evidence.
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"description": "DesireCore 官方注册表 — 应用、插件、MCP 服务、HTTP API 和第三方外部集成的统一目录",
|
||||
"maintainer": "DesireCore Team",
|
||||
"repository": "https://github.com/desirecore/registry",
|
||||
"lastUpdated": "2026-11-01",
|
||||
"lastUpdated": "2026-11-02",
|
||||
"stats": {
|
||||
"totalEntries": 26,
|
||||
"dockerApps": 8,
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"validate": "node scripts/validate-registry.mjs",
|
||||
"test": "node --test scripts/validate-registry.test.mjs scripts/native-app.test.mjs scripts/plugin-contract.test.mjs && npm run validate"
|
||||
"test": "node --test scripts/validate-registry.test.mjs scripts/native-app.test.mjs scripts/plugin-contract.test.mjs scripts/authored-release.test.mjs && npm run validate"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ajv": "8.20.0"
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,146 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { afterEach, test } from 'node:test'
|
||||
import { cpSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { createHash } from 'node:crypto'
|
||||
import { dirname, join, resolve } from 'node:path'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { validateRegistry } from './catalog/validator.mjs'
|
||||
import { validateJsonSchema } from './catalog/json-schema.mjs'
|
||||
|
||||
const source = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const temporary = []
|
||||
const entryFile = 'entries/desirecore-control/manifest.json'
|
||||
const sidecarFile = 'entries/desirecore-control/catalog-metadata.v1.json'
|
||||
afterEach(() => { for (const root of temporary.splice(0)) rmSync(root, { recursive: true, force: true }) })
|
||||
|
||||
function mutate(root, file, change) {
|
||||
const path = join(root, file)
|
||||
const data = JSON.parse(readFileSync(path, 'utf8'))
|
||||
change(data)
|
||||
writeFileSync(path, JSON.stringify(data))
|
||||
}
|
||||
|
||||
function fixture(type = 'native-app') {
|
||||
const root = mkdtempSync(join(tmpdir(), 'registry-authored-'))
|
||||
temporary.push(root)
|
||||
cpSync(join(source, 'schemas'), join(root, 'schemas'), { recursive: true })
|
||||
cpSync(join(source, 'entries/desirecore-control'), join(root, 'entries/desirecore-control'), { recursive: true })
|
||||
const manifest = JSON.parse(readFileSync(join(source, 'manifest.json'), 'utf8'))
|
||||
manifest.stats = { totalEntries: 1, dockerApps: 0, nativeApps: type === 'native-app' ? 1 : 0, mcpServices: 0, httpApis: 0, externalIntegrations: 0 }
|
||||
writeFileSync(join(root, 'manifest.json'), JSON.stringify(manifest))
|
||||
writeFileSync(join(root, 'SCHEMA_VERSION'), manifest.version + '\n')
|
||||
// 测试 release 引用仅用于校验分支;不代表线上 Control 已发布此 release。
|
||||
mutate(root, entryFile, entry => {
|
||||
entry.type = type
|
||||
entry.install.method = type === 'web-bundle' ? 'web-bundle' : 'release'
|
||||
if (type === 'web-bundle') entry.install.requirements = { docker: false, ports: [] }
|
||||
entry.entrypoints = [{ id: 'editor', name: 'Editor', kind: 'embedded-web', serviceRef: 'demo:editor' }]
|
||||
entry.appRelease = {
|
||||
schemaVersion: 1,
|
||||
releaseDigest: 'a'.repeat(64),
|
||||
manifestPath: 'app-release.json',
|
||||
definitionSource: 'manifest',
|
||||
requiredCapabilities: ['app-authoring-v1', 'release', ...(type === 'web-bundle' ? ['web-bundle'] : [])],
|
||||
}
|
||||
})
|
||||
mutate(root, sidecarFile, sidecar => { sidecar.spec.entrypointKinds = ['embedded-web'] })
|
||||
return root
|
||||
}
|
||||
|
||||
function result(root) {
|
||||
const cli = spawnSync(process.execPath, [join(source, 'scripts/validate-registry.mjs'), '--root', root], { encoding: 'utf8' })
|
||||
return { cli, offline: validateRegistry(root) }
|
||||
}
|
||||
function expectValid(root) {
|
||||
const report = result(root)
|
||||
assert.equal(report.cli.status, 0, report.cli.stderr)
|
||||
assert.equal(report.offline.ok, true, JSON.stringify(report.offline.errors))
|
||||
}
|
||||
function expectInvalid(root) {
|
||||
const report = result(root)
|
||||
assert.equal(report.cli.status, 1, report.cli.stdout + report.cli.stderr)
|
||||
assert.equal(report.offline.ok, false, JSON.stringify(report.offline))
|
||||
}
|
||||
|
||||
test('官方根仍为4.2且global Schema保留已发布原字节', () => {
|
||||
assert.equal(readFileSync(join(source, 'SCHEMA_VERSION'), 'utf8'), '4.2.0\n')
|
||||
assert.equal(createHash('sha256').update(readFileSync(join(source, 'schemas/registry-entry.schema.json'))).digest('hex'), 'ea63d6305ae17994e595aea009a131c41300d2b7fdb07ec83cc2c19c37b32038')
|
||||
})
|
||||
for (const type of ['native-app', 'web-bundle']) test('两个入口接受固定内联定义 ' + type, () => { expectValid(fixture(type)) })
|
||||
test('旧独立definitionPath分支继续通过', () => {
|
||||
const root = fixture()
|
||||
mutate(root, entryFile, entry => { delete entry.appRelease.definitionSource; entry.appRelease.definitionPath = 'definition.json' })
|
||||
expectValid(root)
|
||||
})
|
||||
test('普通条目与external-integration不被作者Schema重定义', () => {
|
||||
const root = mkdtempSync(join(tmpdir(), 'registry-global-'))
|
||||
temporary.push(root)
|
||||
for (const path of ['entries', 'schemas']) cpSync(join(source, path), join(root, path), { recursive: true })
|
||||
for (const path of ['SCHEMA_VERSION', 'manifest.json']) cpSync(join(source, path), join(root, path))
|
||||
for (const id of readdirSync(join(root, 'entries'))) {
|
||||
const entry = JSON.parse(readFileSync(join(root, 'entries', id, 'manifest.json'), 'utf8'))
|
||||
if (entry.type === 'web-bundle' || Object.hasOwn(entry, 'appRelease')) {
|
||||
rmSync(join(root, 'entries', id), { recursive: true })
|
||||
mutate(root, 'manifest.json', manifest => {
|
||||
manifest.stats.totalEntries -= 1
|
||||
const stat = { 'native-app': 'nativeApps', 'docker-app': 'dockerApps' }[entry.type]
|
||||
if (stat) manifest.stats[stat] -= 1
|
||||
})
|
||||
}
|
||||
}
|
||||
writeFileSync(join(root, 'schemas/registry-entry.v4.3.schema.json'), 'false\n')
|
||||
expectValid(root)
|
||||
writeFileSync(join(root, 'schemas/registry-entry.schema.json'), 'false\n')
|
||||
expectInvalid(root)
|
||||
})
|
||||
test('作者Schema拒绝时不回退global', () => {
|
||||
const root = fixture()
|
||||
writeFileSync(join(root, 'schemas/registry-entry.v4.3.schema.json'), 'false\n')
|
||||
expectInvalid(root)
|
||||
})
|
||||
for (const invalid of ['null', '[]', '42']) test('两个入口拒绝非法作者Schema根 ' + invalid, () => {
|
||||
const root = fixture()
|
||||
writeFileSync(join(root, 'schemas/registry-entry.v4.3.schema.json'), invalid + '\n')
|
||||
expectInvalid(root)
|
||||
})
|
||||
test('离线contains匹配实际元素并拒绝空数组与缺失能力', () => {
|
||||
const schema = { type: 'array', contains: { const: 'app-authoring-v1' } }
|
||||
assert.deepEqual(validateJsonSchema(['release', 'app-authoring-v1'], schema), [])
|
||||
assert.ok(validateJsonSchema(['release'], schema).length > 0)
|
||||
assert.ok(validateJsonSchema([], schema).length > 0)
|
||||
})
|
||||
for (const [name, change] of [
|
||||
['同时声明两种定义来源', entry => { entry.appRelease.definitionPath = 'definition.json' }],
|
||||
['缺少定义来源', entry => { delete entry.appRelease.definitionSource }],
|
||||
['伪造inline来源', entry => { entry.appRelease.definitionSource = 'payload' }],
|
||||
['缺app-authoring-v1能力', entry => { entry.appRelease.requiredCapabilities = ['release'] }],
|
||||
['缺release能力', entry => { entry.appRelease.requiredCapabilities = ['app-authoring-v1'] }],
|
||||
['浮动源码ref', entry => { entry.source.ref = 'main' }],
|
||||
['缺归档摘要', entry => { delete entry.source.sha256 }],
|
||||
['HTTPS URL携带凭据', entry => { entry.source.url = 'https://user@example.com/release.zip' }],
|
||||
['HTTPS URL携带query', entry => { entry.source.url += '?download=1' }],
|
||||
['HTTP归档', entry => { entry.source.url = 'http://example.com/release.zip' }],
|
||||
['git缺归档内路径', entry => { entry.source.kind = 'git'; delete entry.source.path }],
|
||||
['git归档内路径穿越', entry => { entry.source.kind = 'git'; entry.source.path = '../release' }],
|
||||
['非Docker镜像依赖', entry => { entry.appRelease.imageRefs = ['registry.example.com/app@sha256:' + 'a'.repeat(64)] }],
|
||||
['重复入口ID', entry => { entry.entrypoints.push({ ...entry.entrypoints[0] }) }],
|
||||
['保留端口引用', entry => { entry.entrypoints[0].serviceRef = 'native-port:9333' }],
|
||||
]) test('两个入口拒绝 ' + name, () => {
|
||||
const root = fixture()
|
||||
mutate(root, entryFile, change)
|
||||
expectInvalid(root)
|
||||
})
|
||||
test('web-bundle缺web-bundle能力仍拒绝', () => {
|
||||
const root = fixture('web-bundle')
|
||||
mutate(root, entryFile, entry => { entry.appRelease.requiredCapabilities = ['app-authoring-v1', 'release'] })
|
||||
expectInvalid(root)
|
||||
})
|
||||
test('web-bundle仍核对sidecar治理与内容来源', () => {
|
||||
const root = fixture('web-bundle')
|
||||
mutate(root, sidecarFile, sidecar => { sidecar.provenance.content.sha256 = 'b'.repeat(64) })
|
||||
const report = validateRegistry(root)
|
||||
assert.equal(report.ok, false)
|
||||
assert.ok(report.errors.some(item => item.code === 'native-source-mismatch'))
|
||||
})
|
||||
@@ -1,7 +1,32 @@
|
||||
import { isApplicationEntry, isAuthoredRegistryEntry } from './entry-schema.mjs'
|
||||
|
||||
/** 发布者关系声明的跨字段检查;不推导安装、权限或运行时健康。 */
|
||||
export function validateApplicationContract(manifest) {
|
||||
if (!['docker-app', 'native-app', 'artifact'].includes(manifest.type)) return []
|
||||
if (!isApplicationEntry(manifest) && !isAuthoredRegistryEntry(manifest)) return []
|
||||
const errors = []
|
||||
if (isAuthoredRegistryEntry(manifest)) {
|
||||
if (!['web-bundle', 'native-app', 'docker-app'].includes(manifest.type)) errors.push('appRelease: unsupported delivery type')
|
||||
const required = manifest.appRelease?.requiredCapabilities
|
||||
if (!Array.isArray(required) || !required.includes('release') || (manifest.type === 'web-bundle' && !required.includes('web-bundle'))) {
|
||||
errors.push('appRelease: delivery capability handshake required')
|
||||
}
|
||||
const images = manifest.appRelease?.imageRefs
|
||||
// 镜像语法由严格 Schema 校验;端口范围属于同一跨字段合同。
|
||||
if (manifest.type === 'docker-app' && (!Array.isArray(images) || images.length === 0 || images.some(image =>
|
||||
typeof image !== 'string' || Number(image.split('/')[0].split(':')[1] ?? 0) > 65535))) errors.push('appRelease: Docker images must be pinned by digest')
|
||||
if (manifest.type !== 'docker-app' && images !== undefined) errors.push('appRelease: imageRefs belongs only to Docker release')
|
||||
const source = manifest.source
|
||||
if (!source || !['git', 'release'].includes(source.kind) ||
|
||||
typeof source.ref !== 'string' || !/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/.test(source.ref) ||
|
||||
typeof source.sha256 !== 'string' || !/^[a-f0-9]{64}$/.test(source.sha256)) {
|
||||
errors.push('source: authored release requires immutable commit and archive sha256')
|
||||
}
|
||||
try {
|
||||
const url = new URL(String(source?.url))
|
||||
if (url.protocol !== 'https:' || url.username || url.password || url.hash || url.search) errors.push('source: credential-free fixed HTTPS URL required')
|
||||
} catch { errors.push('source: invalid URL') }
|
||||
if (source?.kind === 'git' && (typeof source.path !== 'string' || !isPortablePath(source.path))) errors.push('source: git archive path must be canonical and relative')
|
||||
}
|
||||
const ids = new Set()
|
||||
for (const entrypoint of Array.isArray(manifest.entrypoints) ? manifest.entrypoints : []) {
|
||||
if (!entrypoint || typeof entrypoint !== 'object') continue
|
||||
@@ -18,3 +43,9 @@ export function validateApplicationContract(manifest) {
|
||||
}
|
||||
return errors
|
||||
}
|
||||
|
||||
function isPortablePath(value) {
|
||||
return value.length > 0 && value.length <= 512 &&
|
||||
!/[\\\x00-\x1f?#:]/.test(value) && !value.startsWith('/') &&
|
||||
value.split('/').every(part => part.length > 0 && part !== '.' && part !== '..')
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/** 作者 release 使用受审的新契约;普通条目仍由已发布 global Schema 校验。 */
|
||||
export const AUTHORED_ENTRY_SCHEMA_FILENAME = 'registry-entry.v4.3.schema.json'
|
||||
|
||||
export function isAuthoredRegistryEntry(entry) {
|
||||
return entry?.type === 'web-bundle' || (entry !== null && typeof entry === 'object' && Object.hasOwn(entry, 'appRelease'))
|
||||
}
|
||||
|
||||
export function isApplicationEntry(entry) {
|
||||
return ['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(entry?.type)
|
||||
}
|
||||
@@ -141,6 +141,13 @@ function validateNode(value, schema, rootSchema, path, errors) {
|
||||
if (schema.items) {
|
||||
value.forEach((item, index) => validateNode(item, schema.items, rootSchema, joinPath(path, index), errors))
|
||||
}
|
||||
if (schema.contains !== undefined && !value.some((item, index) => {
|
||||
const candidateErrors = []
|
||||
validateNode(item, schema.contains, rootSchema, joinPath(path, index), candidateErrors)
|
||||
return candidateErrors.length === 0
|
||||
})) {
|
||||
errors.push({ path, message: '数组必须包含符合 contains 的元素' })
|
||||
}
|
||||
}
|
||||
|
||||
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
||||
|
||||
@@ -4,6 +4,7 @@ import { basename, join, relative, resolve, sep } from 'node:path'
|
||||
import { validateJsonSchema } from './json-schema.mjs'
|
||||
import { findStaticMetrics } from './static-metadata.mjs'
|
||||
import { validateApplicationContract } from './application-contract.mjs'
|
||||
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isApplicationEntry, isAuthoredRegistryEntry } from './entry-schema.mjs'
|
||||
|
||||
export const CATALOG_SIDECAR_FILENAME = 'catalog-metadata.v1.json'
|
||||
|
||||
@@ -33,6 +34,15 @@ function schemaDiagnostics(value, schema, file) {
|
||||
)
|
||||
}
|
||||
|
||||
function readSchema(file, diagnostics) {
|
||||
const schema = readJson(file, diagnostics)
|
||||
if (schema === null || Array.isArray(schema) || !['object', 'boolean'].includes(typeof schema)) {
|
||||
diagnostics.push(diagnostic('error', 'invalid-schema', file, '$', 'Schema 根必须是对象或 boolean'))
|
||||
return null
|
||||
}
|
||||
return schema
|
||||
}
|
||||
|
||||
function safeRelativePath(value) {
|
||||
return (
|
||||
typeof value === 'string' &&
|
||||
@@ -77,7 +87,7 @@ function timestampShapeIsConsistent(timestamp) {
|
||||
function validateSidecarSemantics(manifest, sidecar, file) {
|
||||
const errors = []
|
||||
const add = (code, path, message) => errors.push(diagnostic('error', code, file, path, message))
|
||||
const expectedKind = ['docker-app', 'native-app', 'artifact'].includes(manifest.type) ? 'app' : 'service'
|
||||
const expectedKind = isApplicationEntry(manifest) ? 'app' : 'service'
|
||||
|
||||
if (sidecar.identity?.id !== manifest.id) add('identity-mismatch', '$.identity.id', 'sidecar identity.id 必须与 legacy manifest.id 一致')
|
||||
if (sidecar.identity?.kind !== expectedKind) add('kind-mismatch', '$.identity.kind', `legacy ${manifest.type} 必须映射为 ${expectedKind}`)
|
||||
@@ -140,7 +150,7 @@ function validateSidecarSemantics(manifest, sidecar, file) {
|
||||
if (manifest.toolCount !== undefined && sidecar.spec?.toolCount !== manifest.toolCount) add('spec-mismatch', '$.spec.toolCount', 'toolCount 必须与 legacy 一致')
|
||||
}
|
||||
|
||||
if (['native-app', 'artifact'].includes(manifest.type)) {
|
||||
if (['native-app', 'artifact', 'web-bundle'].includes(manifest.type) || isAuthoredRegistryEntry(manifest)) {
|
||||
for (const field of ['stewardship', 'availability', 'redistribution', 'listingMaintainer', 'upstreamMaintainer', 'branding', 'compliance']) {
|
||||
if (!isDeepStrictEqual(manifest[field], sidecar.governance?.[field])) add('native-governance-mismatch', '$.governance.' + field, '原生应用 manifest 与 sidecar 的治理事实必须一致')
|
||||
}
|
||||
@@ -205,15 +215,16 @@ export function validateRegistry(repoRoot, options = {}) {
|
||||
const diagnostics = []
|
||||
const manifestFile = join(root, 'manifest.json')
|
||||
const schemaVersionFile = join(root, 'SCHEMA_VERSION')
|
||||
const rootSchema = readJson(join(root, 'schemas', 'registry-manifest.v3.schema.json'), diagnostics)
|
||||
const legacyEntrySchema = readJson(join(root, 'schemas', 'registry-entry.v3.schema.json'), diagnostics)
|
||||
const externalEntrySchema = readJson(join(root, 'schemas', 'registry-entry.schema.json'), diagnostics)
|
||||
const sidecarSchema = readJson(join(root, 'schemas', 'catalog-metadata.v1.schema.json'), diagnostics)
|
||||
const rootSchema = readSchema(join(root, 'schemas', 'registry-manifest.v3.schema.json'), diagnostics)
|
||||
const legacyEntrySchema = readSchema(join(root, 'schemas', 'registry-entry.v3.schema.json'), diagnostics)
|
||||
const externalEntrySchema = readSchema(join(root, 'schemas', 'registry-entry.schema.json'), diagnostics)
|
||||
const authoredEntrySchema = readSchema(join(root, 'schemas', AUTHORED_ENTRY_SCHEMA_FILENAME), diagnostics)
|
||||
const sidecarSchema = readSchema(join(root, 'schemas', 'catalog-metadata.v1.schema.json'), diagnostics)
|
||||
const rootManifest = readJson(manifestFile, diagnostics)
|
||||
const entryDirs = findEntryDirs(join(root, 'entries'))
|
||||
const counts = { totalEntries: 0, dockerApps: 0, mcpServices: 0, httpApis: 0, externalIntegrations: 0, sidecars: 0, legacyOnly: 0 }
|
||||
|
||||
if (rootManifest && rootSchema) diagnostics.push(...schemaDiagnostics(rootManifest, rootSchema, relativeFile(root, manifestFile)))
|
||||
if (rootManifest && rootSchema !== null) diagnostics.push(...schemaDiagnostics(rootManifest, rootSchema, relativeFile(root, manifestFile)))
|
||||
const schemaVersion = existsSync(schemaVersionFile) ? readFileSync(schemaVersionFile, 'utf8').trim() : ''
|
||||
const currentEntrySchema = /^4\./.test(schemaVersion) ? externalEntrySchema : legacyEntrySchema
|
||||
if (!schemaVersion) diagnostics.push(diagnostic('error', 'missing-schema-version', 'SCHEMA_VERSION', '$', 'SCHEMA_VERSION 不能为空'))
|
||||
@@ -240,8 +251,9 @@ export function validateRegistry(repoRoot, options = {}) {
|
||||
if (entry.type === 'mcp') counts.mcpServices += 1
|
||||
if (entry.type === 'http-api') counts.httpApis += 1
|
||||
if (entry.type === 'external-integration') counts.externalIntegrations += 1
|
||||
const effectiveEntrySchema = ['external-integration', 'native-app', 'artifact'].includes(entry.type) ? externalEntrySchema : currentEntrySchema
|
||||
if (effectiveEntrySchema) diagnostics.push(...schemaDiagnostics(entry, effectiveEntrySchema, manifestRelative))
|
||||
const effectiveEntrySchema = isAuthoredRegistryEntry(entry) ? authoredEntrySchema
|
||||
: ['external-integration', 'native-app', 'artifact'].includes(entry.type) ? externalEntrySchema : currentEntrySchema
|
||||
if (effectiveEntrySchema !== null && effectiveEntrySchema !== undefined) diagnostics.push(...schemaDiagnostics(entry, effectiveEntrySchema, manifestRelative))
|
||||
for (const message of validateApplicationContract(entry)) diagnostics.push(diagnostic('error', 'application-contract', manifestRelative, '$', message))
|
||||
if (entry.id !== basename(entryDir)) diagnostics.push(diagnostic('error', 'directory-id-mismatch', manifestRelative, '$.id', 'manifest.id 必须与 entries/<id> 目录名一致'))
|
||||
if (seenIds.has(entry.id)) diagnostics.push(diagnostic('error', 'duplicate-id', manifestRelative, '$.id', 'Registry 条目 ID 重复'))
|
||||
@@ -259,7 +271,7 @@ export function validateRegistry(repoRoot, options = {}) {
|
||||
const sidecar = readJson(sidecarPath, diagnostics)
|
||||
if (!sidecar) continue
|
||||
const sidecarRelative = relativeFile(root, sidecarPath)
|
||||
if (sidecarSchema) diagnostics.push(...schemaDiagnostics(sidecar, sidecarSchema, sidecarRelative))
|
||||
if (sidecarSchema !== null) diagnostics.push(...schemaDiagnostics(sidecar, sidecarSchema, sidecarRelative))
|
||||
diagnostics.push(...validateSidecarSemantics(entry, sidecar, sidecarRelative))
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'
|
||||
import Ajv from 'ajv'
|
||||
import { findStaticMetrics } from './catalog/static-metadata.mjs'
|
||||
import { validateApplicationContract } from './catalog/application-contract.mjs'
|
||||
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isAuthoredRegistryEntry } from './catalog/entry-schema.mjs'
|
||||
|
||||
const scriptDirectory = dirname(fileURLToPath(import.meta.url))
|
||||
const rootArgumentIndex = process.argv.indexOf('--root')
|
||||
@@ -281,6 +282,7 @@ const validateExternalIntegration = async (entryDirectory, manifest) => {
|
||||
const schemaVersion = (await readText(join(repositoryRoot, 'SCHEMA_VERSION')))?.trim()
|
||||
const rootManifest = await readJson(join(repositoryRoot, 'manifest.json'))
|
||||
const entrySchema = await readJson(join(repositoryRoot, 'schemas', 'registry-entry.schema.json'))
|
||||
const authoredEntrySchema = await readJson(join(repositoryRoot, 'schemas', AUTHORED_ENTRY_SCHEMA_FILENAME))
|
||||
|
||||
if (!schemaVersion || !/^\d+\.\d+\.\d+$/.test(schemaVersion)) {
|
||||
addError('SCHEMA_VERSION: expected a semantic version')
|
||||
@@ -290,16 +292,22 @@ if (rootManifest) {
|
||||
if (rootManifest.dataVersion !== schemaVersion) addError('manifest.json#dataVersion must equal SCHEMA_VERSION')
|
||||
}
|
||||
|
||||
let validateEntry = null
|
||||
if (entrySchema) {
|
||||
const compileEntrySchema = (schema, filename) => {
|
||||
if (schema === null || Array.isArray(schema) || !['object', 'boolean'].includes(typeof schema)) {
|
||||
addError(`schemas/${filename}: Schema root must be an object or boolean`)
|
||||
return null
|
||||
}
|
||||
try {
|
||||
// Draft-07 条件块补充父 Schema 的约束;无需在每个 then/not 再写局部 type。
|
||||
const ajv = new Ajv({ allErrors: true, strict: true, strictTypes: false, strictRequired: false, validateFormats: false })
|
||||
validateEntry = ajv.compile(entrySchema)
|
||||
return ajv.compile(schema)
|
||||
} catch (error) {
|
||||
addError(`schemas/registry-entry.schema.json: unable to compile (${error.message})`)
|
||||
addError(`schemas/${filename}: unable to compile (${error.message})`)
|
||||
return null
|
||||
}
|
||||
}
|
||||
const validateEntry = compileEntrySchema(entrySchema, 'registry-entry.schema.json')
|
||||
const validateAuthoredEntry = compileEntrySchema(authoredEntrySchema, AUTHORED_ENTRY_SCHEMA_FILENAME)
|
||||
|
||||
const manifests = []
|
||||
const seenIds = new Set()
|
||||
@@ -344,8 +352,9 @@ for (const directoryEntry of await readdir(entriesRoot, { withFileTypes: true })
|
||||
}
|
||||
}
|
||||
|
||||
if (validateEntry && !validateEntry(manifest)) {
|
||||
addError(`entries/${directoryEntry.name}/manifest.json: ${formatAjvErrors(validateEntry.errors)}`)
|
||||
const validateManifest = isAuthoredRegistryEntry(manifest) ? validateAuthoredEntry : validateEntry
|
||||
if (validateManifest && !validateManifest(manifest)) {
|
||||
addError(`entries/${directoryEntry.name}/manifest.json: ${formatAjvErrors(validateManifest.errors)}`)
|
||||
}
|
||||
for (const message of validateApplicationContract(manifest)) addError(`entries/${directoryEntry.name}/manifest.json: ${message}`)
|
||||
if (manifest.type === 'external-integration') {
|
||||
|
||||
Reference in new issue
Block a user