@antelopejs/dms-ai

中文文档
0.10.1发布于 2026/11/10Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 2491

AI development assistant for the AntelopeJS DMS: a chat panel next to every page and a coding agent that edits the project in reviewable, undoable change sets.

原始使用文档
文档目录8 节
  1. What it does
  2. Install
  3. Quick start
  4. Requirements
  5. Documentation
  6. Contributing
  7. Part of AntelopeJS DMS
  8. License

DMS AI ASSISTANT: part of AntelopeJS DMS, the open-source back office. A glowing button reads Star AntelopeJS DMS.

@antelopejs/dms-ai

npm License Discord Documentation Star AntelopeJS DMS

An AI development assistant inside the AntelopeJS DMS dashboard.

Documentation · All modules

Screen recording from the AntelopeJS DMS film. The assistant panel opens next to a dashboard with Claude Code as the coding agent, and the request Add a card with the sites that stopped reporting is typed under the caption Or describe it. The assistant then reports Added the card Delayed sites with Typecheck passed, the changed files dashboard/page.ts and dashboard/stats.ts, and the buttons Review diff and Undo, under the caption A change set. Review it. Undo it.

What it does

  • Docks a chat panel next to any page, with the page as context. Ctrl Shift K opens it.
  • Runs a coding agent in a local sidecar. The agent is Claude Code by default, or OpenAI's Codex, and it reads the project, its loaded modules and their skills.
  • Edits pages through the Builder in Safe mode, or writes code in Code mode. It then typechecks and shows the result live.
  • Saves every turn that touches the project as a change set you can review, undo and redo.
  • Adds an Assistant module for owners, with the Overview, Changes, Activity, Skills and Settings pages.

The assistant is a development tool. With NODE_ENV=production, the backend starts no sidecar and the dashboard shows no assistant. The sidecar exits if you start it yourself in production.

Install

From the root of a project that already loads @antelopejs/dms, add the module with the AntelopeJS CLI:

ajs project modules add @antelopejs/dms-ai
ajs project modules add @antelopejs/dms-builder   # optional, turns on Safe mode

Quick start

Point the sidecar at the origin that the api module reserved:

// antelope.config.ts
"dms-ai": {
  source: { type: "package", package: "@antelopejs/dms-ai" },
  config: {
    backendUrl: "${@api.API_LOCAL_BASE_URL}",
  },
},

Claude Code runs with its own credentials, either its login or ANTHROPIC_API_KEY in the backend's environment. Codex runs on your ChatGPT plan and uses no OpenAI API key. To use Codex, install @openai/codex at the version that peerDependencies pins, then press Sign in with ChatGPT in Assistant › Settings. On a DMS that runs on another machine, finish the sign-in with Paste the return address.

Restart the backend, then the frontend. Sign in as an owner and press Ctrl Shift K (⌘ ⇧ K on macOS). To start the backend without the sidecar, set DMS_AI=0.

Requirements

PackageSupportedTested with
@antelopejs/agent-skills^0.1.00.1.0
@antelopejs/interface-api>=0.3.0 <1.0.00.3.0
@antelopejs/interface-core>=0.4.0 <1.0.00.4.0
@antelopejs/interface-database-catalog>=0.0.1 <1.0.00.0.2
@antelopejs/interface-dms>=0.12.0 <1.0.00.12.0
@antelopejs/interface-dms-builder>=0.4.0 <1.0.00.4.0

The module needs a DMS backend in a release that implements the @antelopejs/interface-dms range in the table. The dashboard needs an @antelopejs/dms-frontend renderer in the range that engines["@antelopejs/dms-frontend"] of frontend-vue/package.json declares. The ajs dms CLI refuses to build the module with a renderer outside that range. @antelopejs/dms-builder is optional and turns on Safe mode.

Documentation

The guide's sources live in docs/. The package ships its agent skills in skills/: dms-ai, dms-ai-code-mode, dms-builder-safe, dms-external-database and dms-page-design. antelopeJs.skills declares them, and the assistant loads them into its agent.

Contributing

Read CONTRIBUTING.md before you open a pull request.

One install from the repository root installs the backend, the shipped Vue frontend and the sidecar. Each of the three keeps its own lockfile. The playground is separate and needs its own install for local development. The builds use the installed dependencies and do not install them again.

pnpm install --frozen-lockfile
pnpm --dir playground install --frozen-lockfile --ignore-workspace
pnpm build
pnpm build:sidecar
pnpm dev            # playground backend
pnpm frontend:dev   # dashboard, in a second terminal
pnpm lint
pnpm test
pnpm test:node      # every backend suite, after a single build
Repository notes
  • The module registers frontend-vue through AddFrontendModule with the Vue renderer. The chat panel, DmsAiChatPanel, is a docked side panel (registerSidePanel). The DMS renders it once for the whole app, so the panel stays mounted across Inertia navigations and keeps its open state and width in a cookie. The command palette's assistant mode answers with DmsAiPaletteAnswer (registerCommandPaletteAssistant). The chat's code is under frontend-vue/app/chat. The renderer bundles the icons it finds in .vue files, so an icon name belongs in the component that shows it.
  • To build and typecheck the Vue source, set DMS_FRONTEND_WORKSPACE to the absolute path of a generated Inertia workspace that includes this module. Then run pnpm --dir frontend-vue build and pnpm --dir frontend-vue typecheck.
  • pnpm test:node builds once, then runs every suite in tests/ except the sidecar build smoke test (pnpm test:sidecar-smoke). DMS_PREBUILT=1 skips the build when dist/ is fresh, as in CI. Each suite also has its own script, for example test:frontend-registration (backend registration, sidecar inputs, $dms_ai keys in both locales), test:routes (the /ai/* routes against a stand-in sidecar) and test:sidecar-lifecycle (hot reload, restart, stale sidecar, Ctrl C). The opt-in Codex acceptance suite runs with CODEX_ACCEPTANCE=1 pnpm --dir sidecar test:acceptance.

Part of AntelopeJS DMS

This module installs into AntelopeJS DMS, the open-source back office. Every module adds its pages to the same dashboard, behind the same sign-in and roles.

ModuleWhat it adds
dms-builderEdit pages, tables and data sources by clicking, as TypeScript that compiles
dms-aiAn assistant chat in the dashboard, on your own Claude Code or Codex
dms-databaseSchemas, relation diagrams, a data browser and a query console
dms-apiAPI health, request logs, per-route statistics and a request tester
dms-automationNode-graph automations on schedules, webhooks and DMS events, with a trace for every run
dms-mailingE-mail templates in a block editor, versions, a send log and delivery metrics
dms-langTranslation coverage, a translation matrix and a translation queue
dms-mediaA media library with folders, per-folder permissions, image sizes and light editing
dms-saasSelf-service sign-up, plans that gate features, and Stripe billing
dms-marketingTraffic, conversion funnels with A/B splits and click heatmaps, without cookies
dms-frontendThe ajs dms CLI, the Vue renderer and the SDK every frontend module builds on

License

Apache-2.0

版本与发布记录

@antelopejs/dms-ai 共发布 29 个版本,首次发布于 2026/09/17;过去 12 个月发布了 29 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.10.1latest2026/11/10今天
0.10.02026/11/063 天前
0.9.22026/11/055 天前
0.9.12026/11/036 天前
0.9.02026/11/027 天前
0.8.02026/11/028 天前

其他发布通道:next → 0.1.1-next.0。

关于 @antelopejs/dms-ai 的常见问题

@antelopejs/dms-ai 是什么?

AI development assistant for the AntelopeJS DMS: a chat panel next to every page and a coding agent that edits the project in reviewable, undoable change sets.

如何安装 @antelopejs/dms-ai?

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

@antelopejs/dms-ai 支持 TypeScript 吗?

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

@antelopejs/dms-ai 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@antelopejs/dms-ai 可以商用吗?

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

@antelopejs/dms-ai 的下载量有多少?

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

@antelopejs/dms-ai 还在维护吗?

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