feat: 为模板补 dsh-plugin.json 与生态 conformance 验证工作流 - #1
Open
baobaolaodie wants to merge 1 commit into
Open
Conversation
Author
|
补充说明为什么这个 PR 依赖 dsh-ecosystem-spec 的 PR #5:
这只是个人建议的模板形态(声明层 + 验证工作流),模板该如何组织最终由你们定。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容 / Content
为插件模板补齐 v0.15 生态声明与验证入口:
dsh-plugin.json:v0.15 manifest(facets.hostentry=lib/types/index.js+apiVersion v1alpha1;requires.contracts=messages.dsh/v1alpha1#MessageObserver;permissions=messages.observe.read(默认 deny);subscriptions=messages.observe;overrides标注与cordis.patch.yml双轨);scripts/verify-plugin.mjs+npm run verify:plugin:调 dsh-ecosystem-spec 的validate-manifest(PR #5)对模板做准入校验;为什么 / Why
dsh-plugin.json,模板此前只有 Cordis bundle(
package.jsondsh.bundle +cordis.patch.yml);验证 / Verification
dsh-plugin.json用上游 dsh-ecosystem-spec conformance(
npm run validate:manifest)校验 →waiting_authorization(默认拒绝,符合预期);相关 / Related
validate:manifest)合并后才能直接npm run verify:plugin;合并前可临时用该 PR 分支验证。