@agentproto/apps

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

@agentproto/apps — a home for ready-made agentproto apps (teams of agents + their workflows), declared with @agentproto/app. Import a team (code-team, content-team, …) and use any of its agents/workflows from your own host: in-process via toMastraAgents()

原始使用文档
文档目录5 节
  1. Teams
  2. Two ways to consume
  3. Emitting the whole catalog
  4. Builtin daemon panels
  5. Generic by design

@agentproto/apps

Ready-made agentproto apps — teams of agents plus the workflows they run, each declared with @agentproto/app. Import a team, use any subset of its agents/workflows from your own host.

import { codeTeam } from "@agentproto/apps/code-team"

// In-process: build the team and pick the agent(s) you want.
const built = await codeTeam.toMastraAgents({ resolveModel: (ref) => registry.resolve(ref) })
built["@agentproto/reviewer"].agent   // just the reviewer, as a runnable Mastra agent

// …or use several. The record is keyed by agent id.
const { ["@agentproto/implementer"]: impl, ["@agentproto/fixer"]: fixer } = built

An app here is a plain AppHandle — codeTeam.agents, codeTeam.workflows, codeTeam.toMastraAgents(...), codeTeam.emit(dir). Nothing new to learn.

Teams

TeamImportAgentsWorkflows
code-team@agentproto/apps/code-teamimplementer → reviewer → fixerdeliver-change
content-team@agentproto/apps/content-teamresearcher → writer → editor → illustratorproduce-content, produce-cover
mail-triage@agentproto/apps/mail-triagetriagertriage-inbox
media-viewer@agentproto/apps/media-viewercatalogerscan-media
session-viewer@agentproto/apps/session-viewernarratornarrate-session
ops-panel@agentproto/apps/ops-panelmanager, watchdog—

Each team is a folder with agents/<name>.ts (one self-contained file per agent — its defineAgent handle + body) and workflows/<name>.ts, composed in the team's index.ts. A new team is a sibling folder + a re-export.

Two ways to consume

  • In-process — await team.toMastraAgents({ resolveModel }) returns the built agents keyed by id; take the ones you need. @mastra/core is a peer dependency, so install it in the host.
  • On disk — await team.emit(dir) writes the AGENT.md / WORKFLOW.md manifests for a runtime that loads a workspace from disk. No Mastra needed.

Emitting the whole catalog

@agentproto/apps also ships an agentproto-apps-sync binary that emits every bundled app to disk and writes a flat catalog:

npx agentproto-apps-sync [--base-dir <dir>]

The default base directory is ~/.agentproto/apps. It writes each app's manifests under <baseDir>/<slug>/ and a summary catalog to <baseDir>/../app-catalog.json (so ~/.agentproto/app-catalog.json by default). The five builtin daemon panels above are not part of this sync/emit flow — they aren't AppHandles, so there's nothing to .emit(dir). A running daemon lists them in app_catalog directly (see "Builtin daemon panels" above), independent of this file and of ~/.agentproto/apps.json.

Builtin daemon panels

Several of @agentproto/runtime's daemon-builtin MCP-Apps widgets live here too, as house-app-quality code — but they are not AppHandles (defineApp requires a non-empty agents array, and these are pure read-only viewers/actuators with no agent of their own):

PanelImportMCP tool id
sessions-panel@agentproto/apps/sessions-panelagentproto_sessions
agents-overview@agentproto/apps/agents-overviewagentproto_agents_overview
bureau-sessions@agentproto/apps/bureau-sessionsagentproto_bureau_sessions
session-story@agentproto/apps/session-storyagentproto_session_story
live-session@agentproto/apps/live-sessionlive_session
session-chat@agentproto/apps/session-chatagentproto_session_chat
work-board@agentproto/apps/work-boardagentproto_work_board

Each exports a make<Name>App(ops) factory producing an AgnoMcpApp — the shape @agentproto/runtime's mcp-apps-adapter.ts mounts on the daemon's MCP server. @agentproto/runtime's builtin-apps.ts wraps these with the daemon's own session registry (and, for work-board, its Task ledger) and mounts them at boot, unconditionally — no app_install step, and they're always listed in app_catalog under category: "builtin". One more builtin panel, the terminal, stays in @agentproto/runtime (terminal-panel-app.ts) — it needs a live PTY WebSocket, not a portable tool-call-driven AgnoMcpApp.

Generic by design

Team ids are @agentproto/… and depend on no product package (the architecture invariant: nothing under @agentproto/* may import an app's @<app>/core). That's what lets any host — including agentik-studio — import a team and use its agents/workflows directly.

版本与发布记录

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

版本发布日期距今
0.27.0latest2026/11/06今天
0.26.02026/11/042 天前
0.25.02026/11/014 天前
0.24.22026/10/279 天前
0.24.12026/10/2314 天前
0.24.02026/10/2017 天前

关于 @agentproto/apps 的常见问题

@agentproto/apps 是什么?

@agentproto/apps — a home for ready-made agentproto apps (teams of agents + their workflows), declared with @agentproto/app. Import a team (code-team, content-team, …) and use any of its agents/workflows from your own host: in-process via toMastraAgents()

如何安装 @agentproto/apps?

在项目目录运行 npm install @agentproto/apps,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@mastra/core(>=1.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 agentproto-apps-sync,可以用 npx agentproto-apps-sync 直接运行。

@agentproto/apps 支持 TypeScript 吗?

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

@agentproto/apps 支持 ESM 还是 CommonJS?

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

@agentproto/apps 可以商用吗?

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

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

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

@agentproto/apps 还在维护吗?

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