@ agent-forge/plugin-formatter-linter (英语)
Formatter-linter 能力插件 福吉探员,从
主办单位 src/plugins/formatter-linter (D-075 S2飞行员). 它注册了一个只读工具, formatter_linter_check, (中文(简体) ),
它要求主机运行一个经批准的提示或格式化检查并返回有约束的,无路径的诊断.
该插件有意没有自己的执行引擎. 它从不发现或援引本地的 formatter/linter
主机解决不透明的执行计划,并运行一个核准的跑者。 没有主机锁定的跑者 工具报告
明确 unsupported 结果.
安装
# from a local checkout
agent-forge plugin install ./packages/plugin-formatter-linter
# from npm
agent-forge plugin install @ai-agent-forge/plugin-formatter-linter
货包船有两艘货单: agent-forge.json (确定性插件解析器显示的生态系统)和
plugin.json (主机载重清单 loadCapabilityPluginFromManifest条目 ./dist/entry.js) (中文(简体) ).
图书馆表面
import { createNodeFormatterLinterAdapterV1, createFormatterLinterCapabilityFactoryV1 } from "@agent-forge/plugin-formatter-linter";
createNodeFormatterLinterAdapterV1(options?)——只读适配器;需要主机注入resolver编号 :runner改为 生成结果,否则返回unsupported。 。 。 .createDeterministicFormatterLinterAdapterV1(fixtures)用于测试的确定性固定适配器.createFormatterLinterCapabilityFactoryV1(adapter)- 登记册formatter_linter_check编号CapabilityAPI。 。 。 .- 默认导出
dist/entry.js——外部插件加载所使用的预编厂.
发展
npm install --ignore-scripts # repo root, creates the workspace symlink
npm run build # packages/plugin-formatter-linter (tsgo)
npm test # vitest; the entry fidelity test requires `npm run build` first