redac---n 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/formats.js +10 -0
  2. package/package.json +1 -1
package/dist/formats.js CHANGED
@@ -156,6 +156,16 @@ export const CORE_FORMATS = [
156
156
  ["Replicate token", /\b(r8_[A-Za-z0-9]{37,40})\b/, ["r8_"]],
157
157
  ["Perplexity API key", /\b(pplx-[A-Za-z0-9]{40,64})\b/, ["pplx-"]],
158
158
  ["xAI API key", /\b(xai-[A-Za-z0-9]{70,90})\b/, ["xai-"]],
159
+ // Meta's Model API (Muse Spark): `LLM|`, the app's ID and a base64url secret, or the same with underscores. Bare, the
160
+ // ID's 15 or 16 digits leave too little entropy for the random layer to take the whole for a key.
161
+ [
162
+ "Meta Model API key",
163
+ /\b(LLM(?:\|\d{15,16}\||_\d{15,16}_)[A-Za-z0-9_-]{20,255})(?![A-Za-z0-9_-])/,
164
+ ["llm|", "llm_"],
165
+ ],
166
+ // Baseten's keys since October 2026: `b10_`, the key's visible ID, a dot and the secret. (Older keys have no prefix; the
167
+ // random layer hides their secret half.)
168
+ ["Baseten API key", /\b(b10_[A-Za-z0-9]{8}\.[A-Za-z0-9]{32})\b/, ["b10_"]],
159
169
  ["Tavily API key", /\b(tvly-(?:dev-|prod-)?[A-Za-z0-9]{24,48})\b/, ["tvly-"]],
160
170
  ["Fireworks API key", /\b(fw_[A-Za-z0-9]{24,48})\b/, ["fw_"]],
161
171
  ["NVIDIA API key", /\b(nvapi-[A-Za-z0-9_-]{60,72})/, ["nvapi-"]],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redac---n",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Redact secrets from text and agent transcripts before they reach an untrusted model provider",
5
5
  "keywords": [
6
6
  "secrets",