helibeiqi/dsh-cdp-metadata ↗★ 0

@helibeiqi/dsh-cdp-metadata

Capability Description Protocol (CDP) v0.1 — read-only AI-readable capability metadata layer for DSH Cordis plugins. 适合需要让 AI 读取插件能力元数据的开发者;需在 cordis.patch.yml 配置扫描源与校验级别

Package
@helibeiqi/dsh-cdp-metadata
Compatibility
Unverified
Harness peer range
*
Cordis peer range
*
Version
0.2.0
License
MIT
Last updated
Aug 28, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

2. 配置(cordis.patch.yml)

在 Host 的 cordis.patch.yml 中插入本插件。配置只有 sources / validation / expose 三段:

dsh-cdp-metadata:
  sources:
    - "./agent-plugins"
  validation:
    level: "L2"
    onInvalid: "warn"
    conflictStrategy: "prefix"
  expose:
    attachToTools: false

字段含义:

  • sources:待扫描的目录/文件路径列表(相对 Host 工作目录解析)。
  • validation.level:L1(语法)或 L2(语法 + 静态语义)。
  • validation.onInvalid:warn | error。
  • validation.conflictStrategy:重复 id 时的处理,prefix(追加 #n 后缀)或 error(抛错)。
  • expose.attachToTools:是否把注解投影进工具 description(见下文「expose.attachToTools」一节),默认 false。