@ai-matrx/chat

中文文档
0.8.370发布于 2026/10/23MITTypeScriptES Module近 30 天下载 10.7万

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// (no wildcards: scripts/public-modules.json) over

原始使用文档
文档目录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 (no wildcards: scripts/public-modules.json) 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 共发布 549 个版本,首次发布于 2026/09/20;过去 12 个月发布了 549 个版本。

版本发布日期距今
0.8.370latest2026/10/2313 天前
0.8.3692026/10/2313 天前
0.8.3682026/10/2313 天前
0.8.3672026/10/2313 天前
0.8.3662026/10/2313 天前
0.8.3652026/10/2313 天前

其他发布通道:backfill → 0.2.2。

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

@ai-matrx/chat 是什么?

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// (no wildcards: scripts/public-modules.json) over

如何安装 @ai-matrx/chat?

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

@ai-matrx/chat 支持 TypeScript 吗?

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

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

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

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

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

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

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

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

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

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

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