llm-output-guard 1.2.0 → 1.2.1

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/README.md +4 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -8,6 +8,10 @@ Zero runtime dependencies. Deterministic. Composes with whatever retry or fallba
8
8
  npm i llm-output-guard
9
9
  ```
10
10
 
11
+ **[Try it in your browser →](https://edwinsatya.github.io/llm-output-guard/)** — every detector, running on
12
+ this repo's own fixtures or on your own pasted output. No API key and no request:
13
+ the library is zero-dependency and synchronous, so the page runs the real thing.
14
+
11
15
  ---
12
16
 
13
17
  ## Why this exists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-output-guard",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Detect degenerate LLM output that arrives with a 200 OK. Zero dependencies, deterministic, composes with any retry or fallback layer.",
5
5
  "keywords": [
6
6
  "llm",
@@ -80,7 +80,8 @@
80
80
  "check:peers": "node scripts/check-peers.mjs",
81
81
  "seed": "node scripts/seed-fixtures.mjs",
82
82
  "provoke": "npm run build --silent && node scripts/generate-fixtures.mjs",
83
- "prepublishOnly": "npm run typecheck && npm run test && npm run build"
83
+ "playground": "npm run build --silent && node scripts/build-playground.mjs",
84
+ "prepublishOnly": "npm run typecheck && npm run test && npm run build && npm run playground"
84
85
  },
85
86
  "peerDependencies": {
86
87
  "@anthropic-ai/sdk": ">=0.60.0 <1.0.0",
@@ -104,6 +105,7 @@
104
105
  "@types/node": "^20.19.43",
105
106
  "ai": "^7.0.62",
106
107
  "arktype": "^2.2.3",
108
+ "happy-dom": "^20.11.2",
107
109
  "openai": "^7.4.0",
108
110
  "tsup": "^8.0.0",
109
111
  "tsx": "^4.7.0",