fix: strict evaluator

This commit is contained in:
Han Xiao
2025-03-14 11:57:02 +08:00
parent de640b7b29
commit b0c07162dd
9 changed files with 208 additions and 58 deletions

44
package-lock.json generated
View File

@@ -11,8 +11,6 @@
"dependencies": {
"@ai-sdk/google": "^1.0.0",
"@ai-sdk/openai": "^1.1.9",
"@dmitryrechkin/json-schema-to-zod": "^1.0.0",
"add": "^2.0.6",
"ai": "^4.1.26",
"axios": "^1.7.9",
"commander": "^13.1.0",
@@ -20,7 +18,7 @@
"dotenv": "^16.4.7",
"duck-duck-scrape": "^2.2.7",
"express": "^4.21.2",
"json-schema-to-zod": "^2.6.0",
"hjson": "^3.2.2",
"node-fetch": "^3.3.2",
"undici": "^7.3.0",
"zod": "^3.22.4",
@@ -30,6 +28,7 @@
"@types/commander": "^2.12.0",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/hjson": "^2.4.6",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.10",
"@types/node-fetch": "^2.6.12",
@@ -765,14 +764,6 @@
"node": ">=12"
}
},
"node_modules/@dmitryrechkin/json-schema-to-zod": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@dmitryrechkin/json-schema-to-zod/-/json-schema-to-zod-1.0.0.tgz",
"integrity": "sha512-avV26RC8CRzhnL6AvQsURlkd071SXlcPURxiYFsRLpsMoDDXBBGJDIsNQTvYmevq31WHYdwGCKGgQKC0YIjDGg==",
"dependencies": {
"zod": "^3.23.8"
}
},
"node_modules/@eslint-community/eslint-utils": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz",
@@ -1665,6 +1656,13 @@
"@types/node": "*"
}
},
"node_modules/@types/hjson": {
"version": "2.4.6",
"resolved": "https://registry.npmjs.org/@types/hjson/-/hjson-2.4.6.tgz",
"integrity": "sha512-tEQ4hlyKfsb9WWeueUY5eRnU2eK+KdE0eofSpQ05v9Aah4VvWwIRIid/ZN1zZZ0TfeVTRDgabKKqKZXEkfD3Sw==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/http-errors": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz",
@@ -2079,12 +2077,6 @@
"node": ">=0.4.0"
}
},
"node_modules/add": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/add/-/add-2.0.6.tgz",
"integrity": "sha512-j5QzrmsokwWWp6kUcJQySpbG+xfOBqqKnup3OIk1pz+kB/80SLorZ9V8zHFLO92Lcd+hbvq8bT+zOGoPkmBV0Q==",
"license": "MIT"
},
"node_modules/agent-base": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
@@ -4249,6 +4241,15 @@
"node": ">=8"
}
},
"node_modules/hjson": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/hjson/-/hjson-3.2.2.tgz",
"integrity": "sha512-MkUeB0cTIlppeSsndgESkfFD21T2nXPRaBStLtf3cAYA2bVEFdXlodZB0TukwZiobPD1Ksax5DK4RTZeaXCI3Q==",
"license": "MIT",
"bin": {
"hjson": "bin/hjson"
}
},
"node_modules/html-entities": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz",
@@ -5274,15 +5275,6 @@
"integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
"license": "(AFL-2.1 OR BSD-3-Clause)"
},
"node_modules/json-schema-to-zod": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/json-schema-to-zod/-/json-schema-to-zod-2.6.0.tgz",
"integrity": "sha512-6sFZqOzHZeON8g2ZW5HJ114Hb/FffNCjWh8dgulJaKFkUqKCEWZAzF4+g07SQpfBZF7HXemwedtdLypZzmnVpQ==",
"license": "ISC",
"bin": {
"json-schema-to-zod": "dist/cjs/cli.js"
}
},
"node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",