@ai-matrx/chat-v2

中文文档
0.8.404发布于 2026/10/30MITES Module近 30 天下载 7739

THE one AI Matrx person-to-agent chat system: the full chat (running agents, conversations, tool calls, streaming, context, surfaces, voice) as explicit per-module subpaths @ai-matrx/chat// (exactly scripts/public-modules.json) over a host

原始使用文档
文档目录4 节
  1. Install
  2. Mount it
  3. What was removed
  4. License

@ai-matrx/chat

The one AI Matrx person ↔ agent chat. (For person ↔ person threads, use @ai-matrx/messaging.)

One chat, one renderer. The package is the whole chat (running agents, conversations, tool calls, streaming, context, surfaces, voice) as explicit per-module subpaths (exactly the modules in scripts/public-modules.json; the published map writes them with patterns that expose nothing else) over a host contract whose only required value is a db.

Install

pnpm add @ai-matrx/chat

Peers: react, react-dom, react-redux, @reduxjs/toolkit, next (optional).

Mount it

A new host imports only the front door:

import { configureChat } from "@ai-matrx/chat/host";
import { ChatProvider } from "@ai-matrx/chat/host/react";
import { ChatNewClient } from "@ai-matrx/chat/agents/components/chat/ChatNewClient";
import { ChatConversationRoom } from "@ai-matrx/chat/agents/components/chat/ChatConversationRoom";

A host with no database of its own supplies a conversation source instead (AgentConversationColumn + useHostConversation; see src/host/ and the canary's HostSource).

What was removed

The old kernel entries (@ai-matrx/chat, /external-store, /matrx, /react, /tools, styles.css, tokens.css) and /cx-conversation/* no longer exist. Import the module you need from @ai-matrx/chat/<domain>/<path>; see FEATURE.md.

License

MIT

版本与发布记录

@ai-matrx/chat-v2 共发布 36 个版本,首次发布于 2026/10/26;过去 12 个月发布了 36 个版本。

版本发布日期距今
0.8.404latest2026/10/306 天前
0.8.4032026/10/297 天前
0.8.4022026/10/298 天前
0.8.4012026/10/298 天前
0.8.4002026/10/288 天前
0.8.3992026/10/289 天前

其他发布通道:bootstrap → 0.0.0。

关于 @ai-matrx/chat-v2 的常见问题

@ai-matrx/chat-v2 是什么?

THE one AI Matrx person-to-agent chat system: the full chat (running agents, conversations, tool calls, streaming, context, surfaces, voice) as explicit per-module subpaths @ai-matrx/chat// (exactly scripts/public-modules.json) over a host

如何安装 @ai-matrx/chat-v2?

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

@ai-matrx/chat-v2 支持 TypeScript 吗?

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

@ai-matrx/chat-v2 支持 ESM 还是 CommonJS?

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

@ai-matrx/chat-v2 需要什么版本的 Node.js?

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

@ai-matrx/chat-v2 可以商用吗?

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

@ai-matrx/chat-v2 的下载量有多少?

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

@ai-matrx/chat-v2 还在维护吗?

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