# @antelopejs/dms-automation 中文文档

规范地址：https://npmcn.com/package/%40antelopejs/dms-automation/

版本：0\.9\.1
npm 元数据更新时间：2026-11-06T13:19:53.568Z
中文译文更新时间：2026-11-08T06:11:39.797Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40antelopejs/dms-automation
原文对照：https://npmcn.com/package/%40antelopejs/dms-automation/?lang=original
项目主页：https://dms.antelopejs.com/docs/modules/automation
源码仓库：https://github.com/AntelopeJS/dms-automation

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：1.8 MB，479 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：11 个
- 首次发布：2026-09-16T22:55:43.128Z
- 最新版本发布：2026-11-06T13:19:53.225Z
- 近 30 天下载量：1884（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：27（近 12 个月 27 个）

## 中文简介

AntelopeJS DMS的可视自动化构建器:程序作为节点图由调度,webhooks,手动运行或DMS事件开始,每次运行都有追踪.

## 安装

```sh
npm install @antelopejs/dms-automation
```

也可以使用：`pnpm add @antelopejs/dms-automation`、`yarn add @antelopejs/dms-automation`、`bun add @antelopejs/dms-automation`

## README

# `@antelopejs/dms-automation`

[![npm](https://img.shields.io/npm/v/@antelopejs/dms-automation?style=for-the-badge&labelColor=000000&color=000000)](https://www.npmjs.com/package/@antelopejs/dms-automation) [![License](https://img.shields.io/npm/l/@antelopejs/dms-automation?style=for-the-badge&labelColor=000000&color=000000)](https://npmcn.com/package/%40antelopejs/dms-automation/LICENSE) [![Discord](https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000)](https://discord.gg/g4pFt6eXqu) [![Documentation](https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000)](https://dms.antelopejs.com/docs/modules/automation)

AntelopeJS DMS的视觉自动化构建器.

![The Automation builder: a ticket trigger, two actions, an If node and a notification action on the canvas](https://npmcn.com/package/%40antelopejs/dms-automation/docs/images/captures/automation-builder.webp)

## 它会做什么

-   建立作为节点图表的程序。 触发启动运行,动作完成工作,并流出和数据节点分支,循环和形状值.
-   启动程序从调度,webhoks,手动运行或DMS事件,例如用户注册或正在创建的记录开始.
-   保持每跑的踪迹,显示它失败的地点和原因,并用自己的有效载荷重新运行.
-   过去24小时、7天或30天的KPI显示每个程序的健康.
-   让任何模块都通过 [`@antelopejs/interface-dms-automation`](https://github.com/AntelopeJS/dms-automation/tree/main/packages/interface-dms-automation)。 。 。 .

## 安装

从已加载的工程根端运行 AtelopeJS CLI `@antelopejs/dms`数字 :

```bash
ajs project modules add @antelopejs/dms-automation
```

## 快开始

该模块在工作时没有配置. 重新打开后端, 然后打开前端 **自动化** 输入 **模块** 组合。 虽然不存在任何程序,但《概览》提供了从以下三个入手的取向: **转发一个网签**, (中文(简体) ), **发送计划摘要** 财务报告和审定财务报表 **按要求运行**。 。 。 .

要从自己的模块中添加一个节点, 取决于界面, 并注册该节点 `start()`数字 :

```ts
import { RegisterActionType } from "@antelopejs/interface-dms-automation";

RegisterActionType({
  id: "bakery.restock-order",
  name: "Place restock order",
  description: "Order an ingredient restock from a supplier",
  icon: "i-lucide-shopping-cart",
  inputSchema: { type: "object", properties: { ingredient: { type: "string" } } },
  outputSchema: { type: "object", properties: { ordered: { type: "boolean" } } },
  async execute(input: { ingredient?: string }, ctx) {
    ctx.log("info", "placing restock order", input);
    return { ordered: true };
  },
});
```

## 兼容性

| 软件包 | 支助 | 测试过 |
| --- | --- | --- |
| `@antelopejs/interface-api` | `>=0.2.0 <1.0.0` | `0.2.0` |
| `@antelopejs/interface-api-util` | `>=0.3.0 <1.0.0` | `0.3.0` |
| `@antelopejs/interface-core` | `>=0.4.0 <1.0.0` | `0.4.0` |
| `@antelopejs/interface-data-api` | `>=0.6.0 <1.0.0` | `0.6.0` |
| `@antelopejs/interface-database` | `>=0.3.1 <1.0.0` | `0.3.1` |
| `@antelopejs/interface-database-decorators` | `>=0.2.1 <1.0.0` | `0.2.1` |
| `@antelopejs/interface-dms` | `>=0.12.0 <1.0.0` | `0.12.0` |
| `@antelopejs/interface-dms-automation` | `>=0.6.1 <0.7.0` | `0.6.1` |
| `@antelopejs/interface-redis` | `>=0.0.9 <1.0.0` | `0.0.9` |

这个 `@antelopejs/interface-dms-automation` 行是此放行工具的接口范围 。 模块还需要这些:

-   用于执行 `@antelopejs/interface-dms` 区域.
-   这个 `@antelopejs/dms-frontend` 渲染器在 `engines["@antelopejs/dms-frontend"]` 联 合 国 `frontend-vue/package.json` 声明 这个 `ajs dms` CLI拒绝使用该范围外的渲染器来构建模块.
-   一个API供应商, `@antelopejs/api`,为网呼.
-   一个 `@antelopejs/interface-database` 执行.
-   `@antelopejs/interface-redis`,仅用于运行多个实例。 见 [分组](https://dms.antelopejs.com/docs/modules/automation/configuration#clustering)。 。 。 .

## 文档

-   [导言](https://dms.antelopejs.com/docs/modules/automation/introduction)
-   [安装](https://dms.antelopejs.com/docs/modules/automation/installation)
-   [配置](https://dms.antelopejs.com/docs/modules/automation/configuration)
-   [使用量](https://dms.antelopejs.com/docs/modules/automation/usage/overview)
-   [扩展](https://dms.antelopejs.com/docs/modules/automation/extending)
-   [财务问题](https://dms.antelopejs.com/docs/modules/automation/faq)

指南的来源载于 [`packages/dms-automation/docs`](https://github.com/AntelopeJS/dms-automation/tree/main/packages/dms-automation/docs)模块将 `dms-automation` Claude代码技巧 [`packages/dms-automation/skills`](https://github.com/AntelopeJS/dms-automation/tree/main/packages/dms-automation/skills),在 `antelopeJs.skills`。 。 。 .

## 捐款

这个包裹住在 [`AntelopeJS/dms-automation`](https://github.com/AntelopeJS/dms-automation) pnpm 工作空间旁边 `@antelopejs/interface-dms-automation`读取 [捐款额](https://github.com/AntelopeJS/dms-automation/blob/main/CONTRIBUTING.md) 编辑 [仓库读取器](https://github.com/AntelopeJS/dms-automation#contributing) 用于开发命令.

## 许可证

[阿帕奇 - 2.0](https://npmcn.com/package/%40antelopejs/dms-automation/LICENSE)

## 常见问题

### @antelopejs/dms-automation 是什么？

AntelopeJS DMS的可视自动化构建器:程序作为节点图由调度,webhooks,手动运行或DMS事件开始,每次运行都有追踪\.

### 如何安装 @antelopejs/dms-automation？

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

### @antelopejs/dms-automation 支持 TypeScript 吗？

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

### @antelopejs/dms-automation 支持 ESM 还是 CommonJS？

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

### @antelopejs/dms-automation 可以商用吗？

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

### @antelopejs/dms-automation 的下载量有多少？

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

### @antelopejs/dms-automation 还在维护吗？

最新版本 0\.9\.1 发布于 2026/11/06（1 天前）；至今共发布 27 个版本，其中过去 12 个月发布了 27 个；首次发布于 2026/09/17。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

