/** * What the evaluation harness's embedding tier (Tier 2.5) ran with, so a * measurement that used it names the exact model files and attack-vector set. * * transformers.js loads `Xenova/all-MiniLM-L6-v2` at revision `main` and caches * the files it downloads; this module hashes the cached files, so the record * says what was actually loaded rather than what was requested. When the * quantized ONNX file's SHA-256 is one this module knows, it also names the * Hub commit that file came from. * * @module agent-threat-rules/eval/embedding-provenance */ /** The files transformers.js reads for a quantized feature-extraction pipeline. */ export declare const EMBEDDING_MODEL_FILES: readonly string[]; /** * SHA-256 of onnx/model_quantized.onnx -> the Xenova/all-MiniLM-L6-v2 commit it * belongs to. Checked 2026-10-19 against the Hub: the LFS sha256 of that file at * 751bff37 (2025-07-22, the head of `main` that day), whose config.json, * tokenizer.json and tokenizer_config.json git blob ids also equal the cached * files'. */ export declare const KNOWN_MODEL_REVISIONS: Readonly>; export interface EmbeddingProvenance { readonly model_id: string; readonly quantized: true; readonly revision_requested: 'main'; /** Hub commit whose quantized ONNX file has the loaded file's sha256, or null when not known here. */ readonly revision_resolved: string | null; readonly transformers_package: '@xenova/transformers'; readonly transformers_version: string; /** sha256 of each model file as loaded from the transformers.js cache; null if the file is absent. */ readonly model_files_sha256: Readonly>; readonly attack_embeddings: string; readonly attack_embeddings_sha256: string; readonly similarity_threshold: number; } export declare function describeEmbeddingFiles(cacheDir: string, transformersVersion: string, attackEmbeddingsPath: string, attackEmbeddingsRel: string): EmbeddingProvenance; /** The record for the installed @xenova/transformers and its cache. */ export declare function embeddingProvenance(attackEmbeddingsPath: string, attackEmbeddingsRel: string): Promise; //# sourceMappingURL=embedding-provenance.d.ts.map