@adea-ai/plugins

中文文档
4.0.0发布于 2026/11/03Apache-2.0TypeScriptES Module近 30 天下载 7111

Deterministic compiler for AI agent plugin marketplaces: schemas, source parsing, provenance verification, per-harness materialization, and provenance-checked static artifacts.

原始使用文档
文档目录8 节
  1. Install
  2. Version 4 migration
  3. Entry points
  4. What's inside
  5. The catalog is not in this package
  6. Usage
  7. Design rules
  8. License

@adea-ai/plugins

The marketplace toolkit for AI agent plugin catalogs, published as one package. Parse marketplace sources, verify provenance against pinned Git trees, merge into a canonical catalog, compile provenance-checked static artifacts, and produce per-harness installation plans. The package does not install plugin files into a runtime or execute upstream content. Its materialization functions return in-memory package bytes or structured plans; they do not write to a harness or start an MCP server or command.

Install

bun add @adea-ai/plugins

Version 4 migration

Import portable planning from @adea-ai/plugins/harness, not the removed @adea-ai/plugins/agent-plugins/harness subpath. The legacy materialization API has been removed: use createCatalogInstallationPlan or createInstallationPlan with the required instance identity and negotiated harness profile. A returned plan describes work; it does not grant activation permission.

Entry points

ImportContents
@adea-ai/pluginsCatalog compilation, artifacts, integrity, and last-known-good publication.
@adea-ai/plugins/schemaZod-backed versioned contracts and runtime parsing.
@adea-ai/plugins/sourcesOpenAI, Cursor, and Claude marketplace dialects, ref normalization, path and URL gates.
@adea-ai/plugins/harnessCapability-negotiated v2 plans and MCP launch descriptors; no process launch.
@adea-ai/plugins/publicationWhere a published catalog lives, and the URLs that address it.
@adea-ai/plugins/portable-catalogOffline synchronization and verification against a source lock.
@adea-ai/plugins/agent-pluginsCanonical package compilation.
@adea-ai/plugins/agent-plugins/schemaAgent plugin and harness profile schemas.

The former @adea-ai/catalog-core, @adea-ai/catalog-schema, @adea-ai/source-adapters, and @adea-ai/harness-adapters packages are consolidated here. Their dependency graph was already total, so they versioned in lockstep; the subpaths above keep each surface addressable on its own.

What's inside

  • Catalog compilation: merge parsed marketplace sources into one canonical, policy-checked catalog.
  • Integrity verification: sha256 content digests, SHA-pinned Git trees, and verifyArtifacts for published artifact sets.
  • Publication artifacts: catalog.v1.json, catalog-summary.v1.json, categories.v1.json, compatibility.v1.json, sources.lock.json, and integrity.json with deterministic serialization.
  • Policy enforcement: repository protocol/host allowlists and source trust classification.
  • Harness planning: v2 installation plans keyed by stable instance data, plus MCP launch and connect descriptors. These describe proposed file and binding operations; they do not authorize or perform an installation.

The catalog is not in this package

A catalog snapshot is roughly 38 MB and changes whenever an upstream marketplace moves, several times a day. Shipping it inside a semver package would force a toolkit release on every data change and churn every consumer's lockfile, so the catalog is published to the content-addressed catalog-assets branch instead. @adea-ai/plugins addresses those URLs; it does not embed them. See the consumer contract.

Usage

import { verifyArtifacts } from '@adea-ai/plugins'
import { catalogSnapshotBaseUrl } from '@adea-ai/plugins/publication'

Direct callers of verifyShardArtifact must supply the expected catalog ID as its fourth argument, obtained from a separately verified catalog. Earlier three-argument calls did not check shard catalog identity; they now fail with SHARD_CATALOG_ID_REQUIRED. Callers that verify a complete artifact set can use verifyArtifacts, which supplies the catalog ID internally.

import { verifyShardArtifact } from '@adea-ai/plugins'

// `verifiedCatalog` is the catalog whose identity and provenance the caller verified.
verifyShardArtifact(shard, shardContent, verification, verifiedCatalog.catalogId)

Design rules

  • Same inputs, same bytes: compilation is deterministic and offline-safe.
  • Every artifact carries provenance; sources.lock.json pins the exact Git trees and digests a catalog was built from.
  • The compiler is a metadata and planning boundary. It never installs or executes upstream plugins, hooks, MCP servers, lifecycle scripts, or binaries.

License

Apache-2.0

版本与发布记录

@adea-ai/plugins 共发布 60 个版本,首次发布于 2026/09/27;过去 12 个月发布了 60 个版本。

版本发布日期距今
4.0.0latest2026/11/033 天前
3.0.102026/10/315 天前
3.0.92026/10/316 天前
3.0.82026/10/316 天前
3.0.72026/10/306 天前
3.0.62026/10/306 天前

关于 @adea-ai/plugins 的常见问题

@adea-ai/plugins 是什么?

Deterministic compiler for AI agent plugin marketplaces: schemas, source parsing, provenance verification, per-harness materialization, and provenance-checked static artifacts.

如何安装 @adea-ai/plugins?

在项目目录运行 npm install @adea-ai/plugins,或使用 pnpm add / yarn add / bun add。

@adea-ai/plugins 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adea-ai/plugins 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adea-ai/plugins 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24 <25。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@adea-ai/plugins 可以商用吗?

@adea-ai/plugins 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@adea-ai/plugins 的下载量有多少?

根据 npm 官方下载统计,@adea-ai/plugins 在 2026/10/05 – 2026/11/03 这 30 天内被下载 7,111 次,日均约 237 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adea-ai/plugins 还在维护吗?

最新版本 4.0.0 发布于 2026/11/03(3 天前);至今共发布 60 个版本,其中过去 12 个月发布了 60 个;首次发布于 2026/09/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。