aidulibrary/skillmesh-index--packages-dsh-plugin-ccp-npm ↗★ 1

dsh-plugin-ccp

DSH Cordis 插件:CCP 协议能力发现层 适合需要集成CCP协议进行能力检索、详情查询及遥测上报的开发者。

パッケージ
dsh-plugin-ccp
互換性
未検証
バージョン
2.0.0
ライセンス
MIT
最終更新
2026/09/18

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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_ENDPOINTCCP API 端点https://skillmesh.礼字号.中国/api/ccp/v1
CCP_FEDERATED启用联邦搜索false

许可

MIT © CCP Community