UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

43 lines • 3.94 kB
"use strict"; /** * tool-lint — the tool-catalog confusability lint (RFC-002 tier 1, * blocks C1–C3). * * Build-time, CI-gateable, framework-agnostic: a plain * `{ name, description?, inputSchema? }[]` in (any OpenAI / Anthropic / * LangChain / MCP tool list coerces to it), a report with a CI-gateable * `ok` out. The embedding geometry comes from influence-core * (`pairwiseSimilarity`); this module is the policy layer — thresholds, * verdicts, hints, and the pluggable structural rule pack. * * Surfaces: * - `analyzeToolCatalog(tools, opts)` — the API (C1) * - `defaultStructuralRules` + rule factories — the rule pack (C2) * - `runToolLintCli` / bin `agentfootprint-lint-tools` — the gate (C3) * * Front-door guide: https://agentfootprint.dev/docs/debug/tool-catalog-lint/ */ Object.defineProperty(exports, "__esModule", { value: true }); exports.runToolLintCli = exports.coerceCatalog = exports.formatToolCatalogReport = exports.DEFAULT_WHEN_CUES = exports.DEFAULT_OMISSION_CUES = exports.saysWhatNotWhenRule = exports.optionalParamRule = exports.enumInProseRule = exports.descriptionRule = exports.defaultStructuralRules = exports.MOCK_EMBEDDER_CALIBRATION = exports.DEFAULT_WATCH_BAND = exports.DEFAULT_CONFUSABILITY_THRESHOLD = exports.differentiationHint = exports.confusabilityText = exports.catalogFromTools = exports.analyzeToolCatalog = void 0; var analyze_js_1 = require("./analyze.js"); Object.defineProperty(exports, "analyzeToolCatalog", { enumerable: true, get: function () { return analyze_js_1.analyzeToolCatalog; } }); Object.defineProperty(exports, "catalogFromTools", { enumerable: true, get: function () { return analyze_js_1.catalogFromTools; } }); Object.defineProperty(exports, "confusabilityText", { enumerable: true, get: function () { return analyze_js_1.confusabilityText; } }); Object.defineProperty(exports, "differentiationHint", { enumerable: true, get: function () { return analyze_js_1.differentiationHint; } }); Object.defineProperty(exports, "DEFAULT_CONFUSABILITY_THRESHOLD", { enumerable: true, get: function () { return analyze_js_1.DEFAULT_CONFUSABILITY_THRESHOLD; } }); Object.defineProperty(exports, "DEFAULT_WATCH_BAND", { enumerable: true, get: function () { return analyze_js_1.DEFAULT_WATCH_BAND; } }); Object.defineProperty(exports, "MOCK_EMBEDDER_CALIBRATION", { enumerable: true, get: function () { return analyze_js_1.MOCK_EMBEDDER_CALIBRATION; } }); var rules_js_1 = require("./rules.js"); Object.defineProperty(exports, "defaultStructuralRules", { enumerable: true, get: function () { return rules_js_1.defaultStructuralRules; } }); Object.defineProperty(exports, "descriptionRule", { enumerable: true, get: function () { return rules_js_1.descriptionRule; } }); Object.defineProperty(exports, "enumInProseRule", { enumerable: true, get: function () { return rules_js_1.enumInProseRule; } }); Object.defineProperty(exports, "optionalParamRule", { enumerable: true, get: function () { return rules_js_1.optionalParamRule; } }); Object.defineProperty(exports, "saysWhatNotWhenRule", { enumerable: true, get: function () { return rules_js_1.saysWhatNotWhenRule; } }); Object.defineProperty(exports, "DEFAULT_OMISSION_CUES", { enumerable: true, get: function () { return rules_js_1.DEFAULT_OMISSION_CUES; } }); Object.defineProperty(exports, "DEFAULT_WHEN_CUES", { enumerable: true, get: function () { return rules_js_1.DEFAULT_WHEN_CUES; } }); var format_js_1 = require("./format.js"); Object.defineProperty(exports, "formatToolCatalogReport", { enumerable: true, get: function () { return format_js_1.formatToolCatalogReport; } }); var cli_js_1 = require("./cli.js"); Object.defineProperty(exports, "coerceCatalog", { enumerable: true, get: function () { return cli_js_1.coerceCatalog; } }); Object.defineProperty(exports, "runToolLintCli", { enumerable: true, get: function () { return cli_js_1.runToolLintCli; } }); //# sourceMappingURL=index.js.map