aidulibrary/skillmesh-index--packages-dsh-plugin-ccp-npm ↗★ 1
dsh-plugin-ccp
DSH Cordis 插件:CCP 协议能力发现层 适合需要集成CCP协议进行能力检索、详情查询及遥测上报的开发者。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
dsh-plugin-ccp
DSH Cordis 插件:CCP 协议能力发现层。
安装
npm install dsh-plugin-ccp
Cordis 模式
import { App } from "cordis";
import * as ccpPlugin from "dsh-plugin-ccp";
const app = new App();
app.plugin(ccpPlugin, { endpoint: "https://skillmesh.pages.dev/api/ccp/v1" });
独立模式
import { ccp_search, ccp_detail, ccp_telemetry } from "dsh-plugin-ccp";
const results = await ccp_search("pdf extraction");
const detail = await ccp_detail("pdf-extract-text-001");
await ccp_telemetry("pdf-extract-text-001", true, 120);
遥测包装器
import { telemetryWrapper } from "dsh-plugin-ccp";
const result = await telemetryWrapper(() => someCall(), "capability-id");
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
CCP_ENDPOINT | CCP API 端点 | https://skillmesh.礼字号.中国/api/ccp/v1 |
CCP_FEDERATED | 启用联邦搜索 | false |
许可
MIT © CCP Community