@ai-agent-forge/plugin-formatter-linter
v0.88.25
Published
Formatter-linter capability plugin for Agent Forge (read-only formatter_linter_check tool)
Maintainers
Readme
@agent-forge/plugin-formatter-linter
Formatter-linter capability plugin for Agent Forge, extracted from the
host's src/plugins/formatter-linter (D-075 S2 pilot). It registers a single read-only tool, formatter_linter_check,
which asks the host to run an approved lint or formatting check and returns bounded, path-free diagnostics.
The plugin deliberately has no execution engine of its own. It never discovers or invokes a local formatter/linter; the
host resolves an opaque execution plan and runs an approved runner. Without a host-bound runner the tool reports an
explicit unsupported result.
Install
# from a local checkout
agent-forge plugin install ./packages/plugin-formatter-linter
# from npm
agent-forge plugin install @ai-agent-forge/plugin-formatter-linterThe package ships two manifests: agent-forge.json (ecosystem manifest for the deterministic plugin resolver) and
plugin.json (host-load manifest consumed by loadCapabilityPluginFromManifest, entry ./dist/entry.js).
Library surface
import { createNodeFormatterLinterAdapterV1, createFormatterLinterCapabilityFactoryV1 } from "@agent-forge/plugin-formatter-linter";
createNodeFormatterLinterAdapterV1(options?)— read-only adapter; requires host-injectedresolver/runnerto produce results, otherwise returnsunsupported.createDeterministicFormatterLinterAdapterV1(fixtures)— deterministic fixture adapter for tests.createFormatterLinterCapabilityFactoryV1(adapter)— registersformatter_linter_checkon aCapabilityAPI.- Default export of
dist/entry.js— the precomposed factory used by external plugin loading.
Development
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