From c5c72d6e49c1971ed7d6909bf491b6858f363fae Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 10 Jul 2024 12:15:44 +0100 Subject: [PATCH] Add validation of AI error assistant tool call arguments (#19304) GitOrigin-RevId: 18ca3a817dfbb65ea1483c5d6d74f4011ec542a7 --- package-lock.json | 38 ++++++++++++++++++++++++++++++++++++++ services/web/package.json | 1 + 2 files changed, 39 insertions(+) diff --git a/package-lock.json b/package-lock.json index 04bcbc6ec8..29b50190bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44520,6 +44520,7 @@ "@slack/webhook": "^7.0.2", "@xmldom/xmldom": "^0.7.13", "accepts": "^1.3.7", + "ajv": "^8.12.0", "archiver": "^5.3.0", "async": "^3.2.5", "base-x": "^4.0.0", @@ -45463,6 +45464,21 @@ "@uppy/core": "^3.8.0" } }, + "services/web/node_modules/ajv": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", + "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "services/web/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -45747,6 +45763,11 @@ } ] }, + "services/web/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, "services/web/node_modules/jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", @@ -53154,6 +53175,7 @@ "accepts": "^1.3.7", "acorn": "^7.1.1", "acorn-walk": "^7.1.1", + "ajv": "^8.12.0", "algoliasearch": "^3.35.1", "archiver": "^5.3.0", "async": "^3.2.5", @@ -53812,6 +53834,17 @@ "nanoid": "^4.0.0" } }, + "ajv": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", + "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "requires": { + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -54010,6 +54043,11 @@ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", diff --git a/services/web/package.json b/services/web/package.json index dba7f76600..15d873b6ee 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -86,6 +86,7 @@ "@slack/webhook": "^7.0.2", "@xmldom/xmldom": "^0.7.13", "accepts": "^1.3.7", + "ajv": "^8.12.0", "archiver": "^5.3.0", "async": "^3.2.5", "base-x": "^4.0.0",