redac---n 0.0.2 → 0.0.3

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 +7 -0
  2. package/package.json +1 -1
package/dist/formats.js CHANGED
@@ -156,6 +156,13 @@ 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
+ ],
159
166
  ["Tavily API key", /\b(tvly-(?:dev-|prod-)?[A-Za-z0-9]{24,48})\b/, ["tvly-"]],
160
167
  ["Fireworks API key", /\b(fw_[A-Za-z0-9]{24,48})\b/, ["fw_"]],
161
168
  ["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.3",
4
4
  "description": "Redact secrets from text and agent transcripts before they reach an untrusted model provider",
5
5
  "keywords": [
6
6
  "secrets",