@anna-ai/app-schema

中文文档
0.33.0发布于 2026/11/06MIT零依赖近 30 天下载 2162

Versioned schema bundle for the Anna App platform (manifest, host RPC table, SSE event union).

原始使用文档

@anna-ai/app-schema (v0.33.0)

Versioned schema bundle for the Anna App platform. Generated by scripts/export_app_schema.py in matrix-nexus; do not edit by hand.

Contents

  • manifest/AppManifest.json — JSON Schema for the app manifest.
  • manifest/UiManifestSection.json — JSON Schema for the ui block.
  • host_api/methods.json — Flat (namespace, method) table mirroring the dispatcher's _DISPATCH map (every method is callable by an installed App).
  • events/AnnaAppEvent.json — SSE event union (the kind enum).
  • acl/capabilities.json — closed vocabulary of the three capability declarations (credentials / agent.tools / storage.scopes).
  • dispatcher_version.txt — Single source-of-truth bundle version; harnesses must refuse to start when their copy disagrees.

Regenerate

uv run python scripts/export_app_schema.py        # write
uv run python scripts/export_app_schema.py --check # CI gate

版本与发布记录

@anna-ai/app-schema 共发布 25 个版本,首次发布于 2026/04/30;过去 12 个月发布了 25 个版本。

版本发布日期距今
0.33.0latest2026/11/061 天前
0.32.02026/10/308 天前
0.30.02026/10/2315 天前
0.29.02026/10/2117 天前
0.28.02026/10/2018 天前
0.27.02026/10/1622 天前

关于 @anna-ai/app-schema 的常见问题

@anna-ai/app-schema 是什么?

Versioned schema bundle for the Anna App platform (manifest, host RPC table, SSE event union).

如何安装 @anna-ai/app-schema?

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

@anna-ai/app-schema 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/anna-ai__app-schema 是否存在。

@anna-ai/app-schema 可以商用吗?

@anna-ai/app-schema 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@anna-ai/app-schema 的下载量有多少?

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

@anna-ai/app-schema 还在维护吗?

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