@agentproto/corpus

中文文档
1.0.0发布于 2026/11/01Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 6237

@agentproto/corpus — canonical composition of AIP-10 KNOWLEDGE, AIP-12 PLAYBOOK, AIP-18 COLLECTION, AIP-9 OPERATOR, AIP-15 WORKFLOW, AIP-41 ROUTINE into an autonomous knowledge-improvement system. Pure: zero runtime, zero filesystem, zero HTTP — all I/O v

原始使用文档
文档目录3 节
  1. What this is
  2. Architectural invariants
  3. M0 deliverable

@agentproto/corpus

Canonical composition of AIP-10 / AIP-12 / AIP-18 / AIP-9 / AIP-15 / AIP-41 into an autonomous knowledge-improvement system.

Status: alpha — M0 (frozen fixture conformance) only.

What this is

A composition of existing AgentProto AIPs. It is not a new doctype or a parallel spec. It defines no new frontmatter shape of its own — every corpus-specific field rides under metadata.corpus.* on existing AIP frontmatters (until validated promotion to first-class via AIP amendments).

AIPRole in the corpus
AIP-10 KNOWLEDGEWorkspace manifest, raw sources, curated entries, faceted index, audit log
AIP-18 COLLECTIONStateful operational records: candidates, gaps, reviews, eval-cases
AIP-12 PLAYBOOKExecutable, operator-bound procedural overlays (shadow/active/archived)
AIP-9 OPERATORAutonomous roles: scout, analyst, reviewer, curator, gap-finder
AIP-15 WORKFLOWSource-to-corpus lifecycle workflows
AIP-41 ROUTINEScheduled autonomous loops

Architectural invariants

This package is pure: imports only @agentproto/*, zod, gray-matter. Zero @agstudio/*, zero @mastra/*, zero node:fs, zero HTTP. All runtime concerns enter via injected ports under src/ports/.

The agstudio side (packages/integration/knowledge/providers/corpus/) supplies the concrete port implementations and registers a CorpusKnowledgeAdapter implements IKnowledgeProvider in the KnowledgeProviderRegistry.

M0 deliverable

A frozen reference fixture workspace under test/fixtures/marketing/ that validates against the actual AgentProto JSON Schemas at projects/agentproto/agentproto/specs/resources/aip-XX/draft/*.schema.json. Engineers building later milestones copy from these fixtures instead of authoring fresh frontmatter.

Run pnpm test in this package to verify conformance.

版本与发布记录

@agentproto/corpus 共发布 23 个版本,首次发布于 2026/06/16;过去 12 个月发布了 23 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.0latest2026/11/014 天前
0.9.02026/10/279 天前
0.8.42026/10/2314 天前
0.8.32026/10/1918 天前
0.8.22026/09/301 个月前
0.8.12026/09/271 个月前

关于 @agentproto/corpus 的常见问题

@agentproto/corpus 是什么?

@agentproto/corpus — canonical composition of AIP-10 KNOWLEDGE, AIP-12 PLAYBOOK, AIP-18 COLLECTION, AIP-9 OPERATOR, AIP-15 WORKFLOW, AIP-41 ROUTINE into an autonomous knowledge-improvement system. Pure: zero runtime, zero filesystem, zero HTTP — all I/O v

如何安装 @agentproto/corpus?

在项目目录运行 npm install @agentproto/corpus,或使用 pnpm add / yarn add / bun add。

@agentproto/corpus 支持 TypeScript 吗?

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

@agentproto/corpus 支持 ESM 还是 CommonJS?

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

@agentproto/corpus 可以商用吗?

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

@agentproto/corpus 的下载量有多少?

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

@agentproto/corpus 还在维护吗?

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