llm-schemas 1.0.1 → 1.0.2
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.
- package/README.md +1 -1
- package/package.json +14 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# llm-schemas
|
|
1
|
+
# llm-schemas [](https://www.npmjs.com/package/llm-schemas) 
|
|
2
2
|
|
|
3
3
|
Shared Zod schemas for validating LLM API request bodies. Covers OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Used by both [llm-mock-server](https://github.com/theblixguy/llm-mock-server) and [copilot-sdk-proxy](https://github.com/theblixguy/copilot-sdk-proxy).
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-schemas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Shared Zod schemas for LLM API request validation (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
"typescript"
|
|
16
16
|
],
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"files": [
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
19
21
|
"type": "module",
|
|
22
|
+
"imports": {
|
|
23
|
+
"#/*": "./src/*"
|
|
24
|
+
},
|
|
20
25
|
"engines": {
|
|
21
26
|
"node": ">=22"
|
|
22
27
|
},
|
|
@@ -46,15 +51,18 @@
|
|
|
46
51
|
"scripts": {
|
|
47
52
|
"build": "tsc",
|
|
48
53
|
"test": "vitest run",
|
|
54
|
+
"fmt": "oxfmt --write src/ test/",
|
|
55
|
+
"fmt:check": "oxfmt --check src/ test/",
|
|
49
56
|
"lint": "oxlint src test",
|
|
50
|
-
"check": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && oxlint src test && vitest run"
|
|
57
|
+
"check": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && oxfmt --check src/ test/ && oxlint src test && vitest run"
|
|
51
58
|
},
|
|
52
59
|
"dependencies": {
|
|
53
60
|
"zod": "4.3.6"
|
|
54
61
|
},
|
|
55
62
|
"devDependencies": {
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
63
|
+
"oxfmt": "0.42.0",
|
|
64
|
+
"oxlint": "1.57.0",
|
|
65
|
+
"typescript": "6.0.2",
|
|
66
|
+
"vitest": "4.1.2"
|
|
59
67
|
}
|
|
60
68
|
}
|