normalizeCost (scripts/_similarity.mjs)

ruflo · plugins/ruflo-metaharness/scripts/_similarity.mjs · javascript · MIT
search

_similarity.mjs — ADR-152 production similarity module. Graduated from `_spike-similarity.mjs` (iter 35) after both invariants passed on the LEGAL/SUPPORT/DEVOPS fixtures. The spike file STAYS as the regression-suite anchor; this file is what production callers (`similarity.mjs`

// Source: https://github.com/ruvnet/ruflo | License: MIT | Copyright 2024-2026 ruvnet
// Provided via justclaw.it.com; keep this notice with the code.
// _similarity.mjs — ADR-152 production similarity module.
//
// Graduated from `_spike-similarity.mjs` (iter 35) after both invariants
// passed on the LEGAL/SUPPORT/DEVOPS fixtures. The spike file STAYS as
// the regression-suite anchor; this file is what production callers
// (`similarity.mjs` skill, `metaharness_similarity` MCP tool) import.
//
// ADR-150 ARCHITECTURAL CONSTRAINTS PRESERVED
//   Removable ✓  pure-TS — no `@metaharness/*` import path
//   Optional  ✓  no new dep on `@metaharness/*`
//   Graceful  ✓  malformed input → low-confidence output, never throws
//   CI-gate   ✓  standalone unit-importable; no `npx` needed
//
// C

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key