@meshmakers/octo-ai-console

中文文档
3.5.550发布于 2026/11/02TypeScriptES Module

Reusable Angular UI building blocks for the OctoMesh AI Adapter session console (ADR-21).

原始使用文档
文档目录4 节
  1. Phase 1 surface
  2. Styling
  3. Build
  4. Concept references

@meshmakers/octo-ai-console

Reusable Angular UI building blocks for the OctoMesh AI Adapter session console (ADR-21).

The library targets host applications that want to surface an agent session — Refinery Studio integrates it as the AI Console tab in #4122 — but every component is standalone and can be dropped into any Angular host with the right AiAdapterClientService provider configuration.

Phase 1 surface

ClassKindResponsibility
AiSessionListComponentcomponentList of sessions with status, age, quota indicator
AiChatStreamComponentcomponentMarkdown render of the session transcript
AiToolCallComponentcomponentExpandable tool-call card with inputs/outputs/duration
AiApprovalModalComponentcomponentApproval payload preview + Approve/Reject + comment
AiQuotaIndicatorComponentcomponentDaily/monthly usage bars with threshold colour state
AiJobStatusBadgeComponentcomponentStatus pill (Running/Paused/Failed/Completed/Queued)
AiAdapterClientServiceserviceREST wrapper over the adapter's /sessions endpoints
AiSessionStreamServiceserviceObservable over SignalR events with resume-from-sequence

Styling

The library ships neutral defaults — every coloured token is exposed as a CSS custom property (--mm-ai-*) so host applications can theme the console without overriding !important cascades.

Build

npm run build:octo-ai-console

Concept references

  • Concept §10 — Frontend integration
  • ADR-21 — @meshmakers/octo-ai-console package boundaries
  • Issue #4121

版本与发布记录

@meshmakers/octo-ai-console 共发布 143 个版本,首次发布于 2026/06/08;过去 12 个月发布了 143 个版本。

版本发布日期距今
3.5.550latest2026/11/021 天前
3.5.5302026/11/012 天前
3.5.5202026/10/313 天前
3.5.5102026/10/303 天前
3.5.5002026/10/304 天前
3.5.4902026/10/304 天前

关于 @meshmakers/octo-ai-console 的常见问题

@meshmakers/octo-ai-console 是什么?

用于OctoMesh AI Adapter会话控制台(ADR-21)的可重用Angular UI构建块。

如何安装 @meshmakers/octo-ai-console?

在项目目录运行 npm install @meshmakers/octo-ai-console,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@angular/core(^22.0.0)、@angular/common(^22.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@meshmakers/octo-ai-console 支持 TypeScript 吗?

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

@meshmakers/octo-ai-console 支持 ESM 还是 CommonJS?

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

@meshmakers/octo-ai-console 可以商用吗?

@meshmakers/octo-ai-console 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@meshmakers/octo-ai-console 还在维护吗?

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