@cadcamfunv2/cadcamfun-nikcli-plugin

中文文档
0.1.109发布于 2026/11/08ES Module近 30 天下载 1.7万

Drive a running CADCAMFUN instance from a standalone nikcli: the application's CAD/CAM action catalogue as nikcli tools.

原始使用文档
文档目录3 节
  1. Use
  2. What it will not do
  3. Compatibility

@cadcamfunv2/cadcamfun-nikcli-plugin

A standalone nikcli (terminal, another machine, CI) driving a running CADCAMFUN: the application's CAD/CAM action catalogue as nikcli tools. Same tool ids and descriptions as the in-app assistant (cad, cad_edit, cam, cam_edit, library, parts, library_edit, memory, memory_edit, research, vcs, vcs_edit), each carrying its actions behind action.

The list is read from the running application (GET /api/ai/actions), so the plugin never holds a second copy of the catalogue. Calls go to POST /api/ai/actions/invoke and run the very tool definitions the embedded host registers, as the account that holds the token, in the project you name.

Use

// nikcli config
{ "plugin": [["file:///path/to/packages/nikcli-plugin/src/index.ts", { "url": "http://127.0.0.1:43111", "token": "<launch token>", "projectId": "<project id>" }]] }

or CADCAMFUN_URL, CADCAMFUN_TOKEN and CADCAMFUN_PROJECT in the environment. Create the token in the application (Settings → AI → Standalone nikcli): it is for the open project, read-only or read-write, opens only the action bridge, expires, and can be revoked there. (The application's own launch token also works and opens everything; prefer a scoped one.)

What it will not do

  • Delete or replace work (cad_edit delete, library_edit delete, vcs_edit restore, ...): in the application the host asks a person first, an outside client has no such prompt, and a confirm: true in the arguments is not an approval. The refusal says so.
  • Delegate to the specialist agents (agent): they run model sessions inside the application.
  • Go beyond its scope: a bridge token is for one project and, when read-only, reaches only read actions. The operator can narrow further with nikcli policy statements in <data dir>/ai/policy.json (bridge.use, tool.use).

Compatibility

test/compat.test.ts reads the shapes this package relies on (Plugin, PluginModule, Hooks.tool, tool()) from @nikcli-ai/plugin's declarations in the repo's .nikcli/ folder. apps/sidecar/test/nikcli-plugin.test.ts runs the plugin against the real sidecar routes.

版本与发布记录

@cadcamfunv2/cadcamfun-nikcli-plugin 共发布 90 个版本,首次发布于 2026/10/23;过去 12 个月发布了 90 个版本。

版本发布日期距今
0.1.109latest2026/11/081 天前
0.1.1082026/11/081 天前
0.1.1062026/11/063 天前
0.1.1052026/11/063 天前
0.1.1042026/11/063 天前
0.1.1032026/11/063 天前

关于 @cadcamfunv2/cadcamfun-nikcli-plugin 的常见问题

@cadcamfunv2/cadcamfun-nikcli-plugin 是什么?

Drive a running CADCAMFUN instance from a standalone nikcli: the application's CAD/CAM action catalogue as nikcli tools.

如何安装 @cadcamfunv2/cadcamfun-nikcli-plugin?

在项目目录运行 npm install @cadcamfunv2/cadcamfun-nikcli-plugin,或使用 pnpm add / yarn add / bun add。

@cadcamfunv2/cadcamfun-nikcli-plugin 支持 TypeScript 吗?

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

@cadcamfunv2/cadcamfun-nikcli-plugin 支持 ESM 还是 CommonJS?

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

@cadcamfunv2/cadcamfun-nikcli-plugin 可以商用吗?

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

@cadcamfunv2/cadcamfun-nikcli-plugin 的下载量有多少?

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

@cadcamfunv2/cadcamfun-nikcli-plugin 还在维护吗?

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