diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2cb6e5..25422f2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -76,8 +76,8 @@ importers: specifier: ^1.4.13 version: 1.4.13(@antv/l7@2.20.14)(react-dom@18.2.0)(react@18.2.0) '@i18next-toolkit/react': - specifier: ^1.0.5 - version: 1.0.5(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0) + specifier: ^1.0.6 + version: 1.0.6(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0) '@loadable/component': specifier: ^5.16.3 version: 5.16.3(react@18.2.0) @@ -182,8 +182,8 @@ importers: version: 4.4.1(@types/react@18.2.21)(react@18.2.0) devDependencies: '@i18next-toolkit/cli': - specifier: ^1.0.7 - version: 1.0.7(typescript@5.2.2) + specifier: ^1.1.0 + version: 1.1.0(typescript@5.2.2) '@types/leaflet': specifier: ^1.9.8 version: 1.9.8 @@ -739,7 +739,7 @@ packages: react: '>=16.0.0' react-dom: '>=16.0.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@emotion/hash': 0.8.0 '@emotion/unitless': 0.7.5 classnames: 2.5.1 @@ -1326,7 +1326,7 @@ packages: resolution: {integrity: sha512-gF7eD0s5+RuKQAncsb9W5YUDnRqze0xQrHbKSmuWlW3trV7a4iOD2GAeTsRdgbMaArdPvCcKkylnG0pYxGclJA==} dependencies: '@antv/l7-utils': 2.20.14 - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@mapbox/point-geometry': 0.1.0 '@mapbox/unitbezier': 0.0.0 eventemitter3: 4.0.7 @@ -1356,7 +1356,7 @@ packages: '@antv/g-device-api': 1.6.4 '@antv/l7-core': 2.20.14 '@antv/l7-utils': 2.20.14 - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 inversify: 5.1.1 reflect-metadata: 0.2.1 regl: 1.6.1 @@ -5133,26 +5133,20 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 + dev: false /@babel/runtime@7.23.8: resolution: {integrity: sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==} engines: {node: '>=6.9.0'} dependencies: - regenerator-runtime: 0.14.0 - dev: false - - /@babel/runtime@7.23.9: - resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.14.0 + regenerator-runtime: 0.14.1 dev: false /@babel/runtime@7.24.0: resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} engines: {node: '>=6.9.0'} dependencies: - regenerator-runtime: 0.14.0 + regenerator-runtime: 0.14.1 /@babel/template@7.22.15: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} @@ -7035,19 +7029,23 @@ packages: engines: {node: '>=10.13.0'} dev: true - /@i18next-toolkit/cli@1.0.7(typescript@5.2.2): - resolution: {integrity: sha512-xJCTpAYogBX5sfiQs8y6Hr+L3ZDInSoCOGdyxUsy1bnEgLsYBivwTWuD9fLzT8xoS7Q2+zSjSquMFkwmu3yIUA==} + /@i18next-toolkit/cli@1.1.0(typescript@5.2.2): + resolution: {integrity: sha512-Pcz+rC6STHtj/RPj5vzWCXsltvQTvznoAm3mzOeGCXpInflCmjavNu+Cd5ZX7kzvht5TMkUikad63twlvu1+tA==} hasBin: true dependencies: '@i18next-toolkit/extractor': 1.0.2 '@i18next-toolkit/scanner': 1.0.0 + '@langchain/core': 0.1.52 + '@langchain/openai': 0.0.24 cosmiconfig: 9.0.0(typescript@5.2.2) + dotenv: 16.4.5 fs-extra: 11.2.0 inquirer: 8.2.6 yargs: 17.7.2 zod: 3.22.4 transitivePeerDependencies: - buffer + - encoding - typescript dev: true @@ -7065,18 +7063,18 @@ packages: - buffer dev: true - /@i18next-toolkit/react@1.0.5(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-Hc34LF6oT602YG/1orQhZhUyZcAr5pznx0oUPQ+5frI0Hg8eE2ahpY0G7XxDZ7+0D0Bcr3E5n2uNEdzg8IDm5A==} + /@i18next-toolkit/react@1.0.6(@types/react@18.2.21)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-8IxvN0Lu04xOhL4e/xnQhKeYPNG6Ohl9xqnj6MBOGGrjTSBz29VZBz+yohNGghwR27TOg+RHB9DOXzrueAq5XA==} peerDependencies: '@types/react': ^18.2.55 react: ^18.2.0 dependencies: '@types/react': 18.2.21 crc: 4.3.2 - i18next: 23.8.2 + i18next: 23.10.0 i18next-http-backend: 2.4.3 react: 18.2.0 - react-i18next: 14.0.5(i18next@23.8.2)(react-dom@18.2.0)(react@18.2.0) + react-i18next: 14.0.5(i18next@23.10.0)(react-dom@18.2.0)(react@18.2.0) transitivePeerDependencies: - buffer - encoding @@ -7185,6 +7183,36 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 + /@langchain/core@0.1.52: + resolution: {integrity: sha512-AEyP99r7jijF33pyzaWtqCkiO9crotgethqq7jznAGlIojMCL9BT/id2DjVyN32SGFTpet273kkjsmEdFSHqpA==} + engines: {node: '>=18'} + dependencies: + ansi-styles: 5.2.0 + camelcase: 6.3.0 + decamelize: 1.2.0 + js-tiktoken: 1.0.10 + langsmith: 0.1.14 + ml-distance: 4.0.1 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 9.0.1 + zod: 3.22.4 + zod-to-json-schema: 3.22.5(zod@3.22.4) + dev: true + + /@langchain/openai@0.0.24: + resolution: {integrity: sha512-4E9IYJDNVnuHxBV5mFPefaWu76dJREEW5WE2r4QKpHomBMReQVKT3TLiasl1rDI10axnJF9FPjsJG+MW93rCiQ==} + engines: {node: '>=18'} + dependencies: + '@langchain/core': 0.1.52 + js-tiktoken: 1.0.10 + openai: 4.30.0 + zod: 3.22.4 + zod-to-json-schema: 3.22.5(zod@3.22.4) + transitivePeerDependencies: + - encoding + dev: true + /@leichtgewicht/ip-codec@2.0.4: resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} @@ -7815,7 +7843,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@ctrl/tinycolor': 3.6.1 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -7843,7 +7871,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -7855,7 +7883,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -7865,7 +7893,7 @@ packages: resolution: {integrity: sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==} engines: {node: '>=8.x'} dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 dev: false /@rc-component/mutate-observer@1.1.0(react-dom@17.0.2)(react@17.0.2): @@ -7875,7 +7903,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -7903,7 +7931,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -7917,7 +7945,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 @@ -7931,7 +7959,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@17.0.2)(react@17.0.2) '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 @@ -7963,7 +7991,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) @@ -7980,7 +8008,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@18.2.0)(react@18.2.0) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@18.2.0)(react@18.2.0) @@ -9786,6 +9814,13 @@ packages: /@types/ms@0.7.34: resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} + /@types/node-fetch@2.6.11: + resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + dependencies: + '@types/node': 18.17.12 + form-data: 4.0.0 + dev: true + /@types/node-forge@1.3.11: resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} dependencies: @@ -10235,6 +10270,13 @@ packages: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: true + /abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + dependencies: + event-target-shim: 5.0.1 + dev: true + /accepts@1.3.8: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'} @@ -10339,6 +10381,13 @@ packages: transitivePeerDependencies: - supports-color + /agentkeepalive@4.5.0: + resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} + engines: {node: '>= 8.0.0'} + dependencies: + humanize-ms: 1.2.1 + dev: true + /aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -10762,7 +10811,7 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 @@ -10774,7 +10823,7 @@ packages: dependencies: array-buffer-byte-length: 1.0.0 call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 get-intrinsic: 1.2.4 is-array-buffer: 3.0.2 is-shared-array-buffer: 1.0.2 @@ -11099,6 +11148,10 @@ packages: requiresBuild: true optional: true + /base-64@0.1.0: + resolution: {integrity: sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==} + dev: true + /base16@1.0.0: resolution: {integrity: sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==} dev: false @@ -11147,7 +11200,6 @@ packages: /binary-search@1.3.6: resolution: {integrity: sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA==} - dev: false /bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} @@ -11540,7 +11592,6 @@ packages: /charenc@0.0.2: resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} - dev: false /charset@1.0.1: resolution: {integrity: sha512-6dVyOOYjpfFcL1Y4qChrAoQLRHvj2ziyhcm0QJlhOcAhykL/k1kTUPbeo+87MNRTRdk2OIIsIXbuF3x2wi5EXg==} @@ -12474,7 +12525,6 @@ packages: /crypt@0.0.2: resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} - dev: false /crypto-js@4.2.0: resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} @@ -13007,7 +13057,6 @@ packages: /decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} - dev: false /decode-named-character-reference@1.0.2: resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==} @@ -13117,6 +13166,7 @@ packages: dependencies: has-property-descriptors: 1.0.2 object-keys: 1.1.1 + dev: true /define-properties@1.2.1: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} @@ -13254,6 +13304,13 @@ packages: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} + /digest-fetch@1.3.0: + resolution: {integrity: sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==} + dependencies: + base-64: 0.1.0 + md5: 2.3.0 + dev: true + /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -13524,6 +13581,11 @@ packages: engines: {node: '>=12'} dev: false + /dotenv@16.4.5: + resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} + engines: {node: '>=12'} + dev: true + /dotignore@0.1.2: resolution: {integrity: sha512-UGGGWfSauusaVJC+8fgV+NVvBXkCTmVv7sk6nojDZZvuOUNGUy0Zk4UpHQD6EDjS0jpBwcACvH4eofvyzBcRDw==} hasBin: true @@ -14008,6 +14070,11 @@ packages: '@types/node': 18.17.12 require-like: 0.1.2 + /event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + dev: true + /eventemitter-strict@1.0.1: resolution: {integrity: sha512-zbePIHR/HVKUpbKSKGxtAVhHjpuiLNp/s0ZYElSvxujE2jNb505+Wv+uUWbRi/bmsbgjvvFImS8HhhNMVHgJdg==} dev: false @@ -14530,6 +14597,10 @@ packages: webpack: 5.90.3 dev: true + /form-data-encoder@1.7.2: + resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==} + dev: true + /form-data-encoder@2.1.4: resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==} engines: {node: '>= 14.17'} @@ -14548,6 +14619,14 @@ packages: engines: {node: '>=0.4.x'} dev: true + /formdata-node@4.4.1: + resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==} + engines: {node: '>= 12.20'} + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.3 + dev: true + /formdata-polyfill@4.0.10: resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} engines: {node: '>=12.20.0'} @@ -14674,7 +14753,7 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 functions-have-names: 1.2.3 @@ -14945,7 +15024,7 @@ packages: resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} engines: {node: '>= 0.4'} dependencies: - define-properties: 1.2.0 + define-properties: 1.2.1 /globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} @@ -15379,7 +15458,7 @@ packages: /history@4.10.1: resolution: {integrity: sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==} dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 loose-envify: 1.4.0 resolve-pathname: 3.0.0 tiny-invariant: 1.3.1 @@ -15642,6 +15721,12 @@ packages: engines: {node: '>=16.17.0'} dev: true + /humanize-ms@1.2.1: + resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} + dependencies: + ms: 2.1.3 + dev: true + /hyphenate-style-name@1.0.4: resolution: {integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==} dev: false @@ -15684,13 +15769,6 @@ packages: resolution: {integrity: sha512-/TgHOqsa7/9abUKJjdPeydoyDc0oTi/7u9F8lMSj6ufg4cbC1Oj3f/Jja7zj7WRIhEQKB7Q4eN6y68I9RDxxGQ==} dependencies: '@babel/runtime': 7.24.0 - dev: true - - /i18next@23.8.2: - resolution: {integrity: sha512-Z84zyEangrlERm0ZugVy4bIt485e/H8VecGUZkZWrH7BDePG6jT73QdL9EA1tRTTVVMpry/MgWIP1FjEn0DRXA==} - dependencies: - '@babel/runtime': 7.23.9 - dev: false /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} @@ -15957,7 +16035,6 @@ packages: /is-any-array@2.0.1: resolution: {integrity: sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==} - dev: false /is-arguments@1.1.1: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} @@ -16454,6 +16531,12 @@ packages: resolution: {integrity: sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==} dev: false + /js-tiktoken@1.0.10: + resolution: {integrity: sha512-ZoSxbGjvGyMT13x6ACo9ebhDha/0FHdKA+OsQcMOWcm1Zs7r90Rhk5lhERLzji+3rA7EKpXCgwXcM5fF3DMpdA==} + dependencies: + base64-js: 1.5.1 + dev: true + /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -16660,6 +16743,16 @@ packages: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} dev: false + /langsmith@0.1.14: + resolution: {integrity: sha512-iEzQLLB7/0nRpAwNBAR7B7N64fyByg5UsNjSvLaCCkQ9AS68PSafjB8xQkyI8QXXrGjU1dEqDRoa8m4SUuRdUw==} + dependencies: + '@types/uuid': 9.0.7 + commander: 10.0.1 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 9.0.1 + dev: true + /latest-version@5.1.0: resolution: {integrity: sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==} engines: {node: '>=8'} @@ -17116,7 +17209,6 @@ packages: charenc: 0.0.2 crypt: 0.0.2 is-buffer: 1.1.6 - dev: false /mdast-squeeze-paragraphs@4.0.0: resolution: {integrity: sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==} @@ -17997,6 +18089,12 @@ packages: is-any-array: 2.0.1 dev: false + /ml-array-mean@1.1.6: + resolution: {integrity: sha512-MIdf7Zc8HznwIisyiJGRH9tRigg3Yf4FldW8DxKxpCCv/g5CafTw0RRu51nojVEOXuCQC7DRVVu5c7XXO/5joQ==} + dependencies: + ml-array-sum: 1.1.6 + dev: true + /ml-array-min@1.2.3: resolution: {integrity: sha512-VcZ5f3VZ1iihtrGvgfh/q0XlMobG6GQ8FsNyQXD3T+IlstDv85g8kfV0xUG1QPRO/t21aukaJowDzMTc7j5V6Q==} dependencies: @@ -18011,6 +18109,24 @@ packages: ml-array-min: 1.2.3 dev: false + /ml-array-sum@1.1.6: + resolution: {integrity: sha512-29mAh2GwH7ZmiRnup4UyibQZB9+ZLyMShvt4cH4eTK+cL2oEMIZFnSyB3SS8MlsTh6q/w/yh48KmqLxmovN4Dw==} + dependencies: + is-any-array: 2.0.1 + dev: true + + /ml-distance-euclidean@2.0.0: + resolution: {integrity: sha512-yC9/2o8QF0A3m/0IXqCTXCzz2pNEzvmcE/9HFKOZGnTjatvBbsn4lWYJkxENkA4Ug2fnYl7PXQxnPi21sgMy/Q==} + dev: true + + /ml-distance@4.0.1: + resolution: {integrity: sha512-feZ5ziXs01zhyFUUUeZV5hwc0f5JW0Sh0ckU1koZe/wdVkJdGxcP06KNQuF0WBTj8FttQUzcvQcpcrOp/XrlEw==} + dependencies: + ml-array-mean: 1.1.6 + ml-distance-euclidean: 2.0.0 + ml-tree-similarity: 1.0.0 + dev: true + /ml-matrix@6.11.0: resolution: {integrity: sha512-7jr9NmFRkaUxbKslfRu3aZOjJd2LkSitCGv+QH9PF0eJoEG7jIpjXra1Vw8/kgao8+kHCSsJONG6vfWmXQ+/Eg==} dependencies: @@ -18024,6 +18140,13 @@ packages: ml-array-rescale: 1.3.7 dev: false + /ml-tree-similarity@1.0.0: + resolution: {integrity: sha512-XJUyYqjSuUQkNQHMscr6tcjldsOoAekxADTplt40QKfwW6nd++1wHWV9AArl0Zvw/TIHgNaZZNvr8QGvE8wLRg==} + dependencies: + binary-search: 1.3.6 + num-sort: 2.1.0 + dev: true + /mlly@1.5.0: resolution: {integrity: sha512-NPVQvAY1xr1QoVeG0cy8yUYC7FQcOx6evl/RjT1wL5FvzPnzOysoqB/jmx/DhssT2dYa8nxECLAaFI/+gVLhDQ==} dependencies: @@ -18262,7 +18385,6 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 - dev: false /node-fetch@3.3.2: resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} @@ -18431,6 +18553,11 @@ packages: dependencies: boolbase: 1.0.0 + /num-sort@2.1.0: + resolution: {integrity: sha512-1MQz1Ed8z2yckoBeSfkQHHO9K1yDRxxtotKSJ9yvcTUUxSvfvzEq5GwBrjjHEpMlq/k5gvXdmJ1SbYxWtpNoVg==} + engines: {node: '>=8'} + dev: true + /number-is-nan@1.0.1: resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==} engines: {node: '>=0.10.0'} @@ -18557,6 +18684,23 @@ packages: is-wsl: 2.2.0 dev: true + /openai@4.30.0: + resolution: {integrity: sha512-jOaT4u7DpWzvuOuSxw5skuBbSuagw91Vd4IU/zP9qdgu6C19AAq4wzx+24e59wdEmsAG58enOUNf6t5V2WwN9g==} + hasBin: true + dependencies: + '@types/node': 18.17.12 + '@types/node-fetch': 2.6.11 + abort-controller: 3.0.0 + agentkeepalive: 4.5.0 + digest-fetch: 1.3.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.7.0 + web-streams-polyfill: 3.2.1 + transitivePeerDependencies: + - encoding + dev: true + /openapi-to-postmanv2@1.2.7: resolution: {integrity: sha512-oG3PZfAAljy5ebot8DZGLFDNNmDZ/qWqI/dboWlgg5hRj6dSSrXeiyXL6VQpcGDalxVX4jSChufOq2eDsFXp4w==} engines: {node: '>=4'} @@ -18647,6 +18791,11 @@ packages: p-map: 2.1.0 dev: true + /p-finally@1.0.0: + resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} + engines: {node: '>=4'} + dev: true + /p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -18709,6 +18858,14 @@ packages: dependencies: aggregate-error: 3.1.0 + /p-queue@6.6.2: + resolution: {integrity: sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==} + engines: {node: '>=8'} + dependencies: + eventemitter3: 4.0.7 + p-timeout: 3.2.0 + dev: true + /p-retry@4.6.2: resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==} engines: {node: '>=8'} @@ -18716,6 +18873,13 @@ packages: '@types/retry': 0.12.0 retry: 0.13.1 + /p-timeout@3.2.0: + resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} + engines: {node: '>=8'} + dependencies: + p-finally: 1.0.0 + dev: true + /p-try@2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} @@ -19291,7 +19455,7 @@ packages: dependencies: lilconfig: 2.1.0 postcss: 8.4.33 - ts-node: 10.9.1(@types/node@18.17.12)(typescript@5.3.3) + ts-node: 10.9.1(@types/node@18.17.12)(typescript@5.2.2) yaml: 2.3.2 dev: true @@ -20525,7 +20689,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 array-tree-filter: 2.1.0 classnames: 2.5.1 rc-select: 14.10.0(react-dom@17.0.2)(react@17.0.2) @@ -20557,7 +20721,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -20583,7 +20747,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -20611,7 +20775,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) @@ -20641,7 +20805,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) @@ -20685,7 +20849,7 @@ packages: react: '>=16.11.0' react-dom: '>=16.11.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -20714,7 +20878,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 async-validator: 4.2.5 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -20728,7 +20892,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 async-validator: 4.2.5 rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 @@ -20741,7 +20905,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/portal': 1.1.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-dialog: 9.3.4(react-dom@17.0.2)(react@17.0.2) @@ -20773,7 +20937,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/mini-decimal': 1.1.0 classnames: 2.5.1 rc-input: 1.3.11(react-dom@17.0.2)(react@17.0.2) @@ -20803,7 +20967,7 @@ packages: react: '>=16.0.0' react-dom: '>=16.0.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -20846,7 +21010,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-input: 1.3.11(react-dom@17.0.2)(react@17.0.2) @@ -20863,7 +21027,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) @@ -20879,7 +21043,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@18.2.0)(react@18.2.0) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@18.2.0)(react@18.2.0) @@ -20895,7 +21059,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -20908,7 +21072,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 @@ -20922,7 +21086,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -20951,7 +21115,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-resize-observer: 1.4.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -20965,7 +21129,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-resize-observer: 1.4.0(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) @@ -20979,7 +21143,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21019,7 +21183,7 @@ packages: moment: optional: true dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 dayjs: 1.11.10 @@ -21063,7 +21227,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21090,7 +21254,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21117,7 +21281,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21131,7 +21295,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 @@ -21145,7 +21309,7 @@ packages: react: '>=16.0.0' react-dom: '>=16.0.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -21174,7 +21338,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) @@ -21210,7 +21374,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21238,7 +21402,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21265,7 +21429,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21292,7 +21456,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/context': 1.4.0(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 rc-resize-observer: 1.4.0(react-dom@17.0.2)(react@17.0.2) @@ -21326,7 +21490,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-dropdown: 4.1.0(react-dom@17.0.2)(react@17.0.2) rc-menu: 9.12.4(react-dom@17.0.2)(react@17.0.2) @@ -21361,7 +21525,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-input: 1.3.11(react-dom@17.0.2)(react@17.0.2) rc-resize-observer: 1.4.0(react-dom@17.0.2)(react@17.0.2) @@ -21391,7 +21555,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 '@rc-component/trigger': 1.18.2(react-dom@17.0.2)(react@17.0.2) classnames: 2.5.1 react: 17.0.2 @@ -21417,7 +21581,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-select: 14.10.0(react-dom@17.0.2)(react@17.0.2) rc-tree: 5.8.2(react-dom@17.0.2)(react@17.0.2) @@ -21448,7 +21612,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-motion: 2.9.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -21464,7 +21628,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-motion: 2.9.0(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) @@ -21495,7 +21659,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -21531,7 +21695,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) react-is: 18.2.0 @@ -21543,7 +21707,7 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-is: 18.2.0 @@ -21556,7 +21720,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-resize-observer: 1.4.0(react-dom@17.0.2)(react@17.0.2) rc-util: 5.38.1(react-dom@17.0.2)(react@17.0.2) @@ -21571,7 +21735,7 @@ packages: react: '*' react-dom: '*' dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 classnames: 2.5.1 rc-resize-observer: 1.4.0(react-dom@18.2.0)(react@18.2.0) rc-util: 5.38.1(react-dom@18.2.0)(react@18.2.0) @@ -21798,7 +21962,7 @@ packages: react: ^16.6.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 invariant: 2.2.4 prop-types: 15.8.1 react: 17.0.2 @@ -21818,7 +21982,7 @@ packages: react-fast-compare: 3.2.2 shallowequal: 1.1.0 - /react-i18next@14.0.5(i18next@23.8.2)(react-dom@18.2.0)(react@18.2.0): + /react-i18next@14.0.5(i18next@23.10.0)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-5+bQSeEtgJrMBABBL5lO7jPdSNAbeAZ+MlFWDw//7FnVacuVu3l9EeWFzBQvZsKy+cihkbThWOAThEdH8YjGEw==} peerDependencies: i18next: '>= 23.2.3' @@ -21831,9 +21995,9 @@ packages: react-native: optional: true dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.24.0 html-parse-stringify: 3.0.1 - i18next: 23.8.2 + i18next: 23.10.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false @@ -21913,7 +22077,7 @@ packages: react-loadable: '*' webpack: '>=4.41.1 || 5.x' dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 react-loadable: /@docusaurus/react-loadable@5.5.2(react@17.0.2) webpack: 5.89.0 dev: false @@ -21925,7 +22089,7 @@ packages: react-loadable: '*' webpack: '>=4.41.1 || 5.x' dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 react-loadable: /@docusaurus/react-loadable@5.5.2(react@17.0.2) webpack: 5.90.3 dev: true @@ -21998,7 +22162,7 @@ packages: react: '>=15' react-router: '>=5' dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 react: 17.0.2 react-router: 5.3.4(react@17.0.2) @@ -22007,7 +22171,7 @@ packages: peerDependencies: react: '>=15' dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 history: 4.10.1 loose-envify: 1.4.0 prop-types: 15.8.1 @@ -22034,7 +22198,7 @@ packages: peerDependencies: react: '>=15' dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 history: 4.10.1 hoist-non-react-statics: 3.3.2 loose-envify: 1.4.0 @@ -22286,23 +22450,20 @@ packages: /regenerate@1.4.2: resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} - /regenerator-runtime@0.14.0: - resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==} - /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} /regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} dependencies: - '@babel/runtime': 7.22.11 + '@babel/runtime': 7.24.0 /regexp.prototype.flags@1.5.1: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 set-function-name: 2.0.1 /regexpu-core@5.3.2: @@ -23649,21 +23810,21 @@ packages: engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 /string.prototype.trimend@1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 /string.prototype.trimstart@1.0.6: resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} dependencies: call-bind: 1.0.7 - define-properties: 1.2.0 + define-properties: 1.2.1 es-abstract: 1.22.1 /string_decoder@1.1.1: @@ -24512,6 +24673,7 @@ packages: typescript: 5.3.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 + dev: false /ts-pattern@4.3.0: resolution: {integrity: sha512-pefrkcd4lmIVR0LA49Imjf9DYLK8vtWhqBPA3Ya1ir8xCW0O2yjL9dsCVvI7pCodLC5q7smNpEtDR2yVulQxOg==} @@ -25200,7 +25362,6 @@ packages: /uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} hasBin: true - dev: false /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} @@ -25287,7 +25448,7 @@ packages: /viewport-mercator-project@6.2.3: resolution: {integrity: sha512-QQb0/qCLlP4DdfbHHSWVYXpghB2wkLIiiZQnoelOB59mXKQSyZVxjreq1S+gaBJFpcGkWEcyVtre0+2y2DTl/Q==} dependencies: - '@babel/runtime': 7.23.8 + '@babel/runtime': 7.24.0 gl-matrix: 3.4.3 dev: false @@ -25569,6 +25730,11 @@ packages: engines: {node: '>= 8'} dev: true + /web-streams-polyfill@4.0.0-beta.3: + resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==} + engines: {node: '>= 14'} + dev: true + /web-worker-helper@0.0.3: resolution: {integrity: sha512-/TllNPjGenDwjE67M16TD9ALwuY847/zIoH7r+e5rSeG4kEa3HiMTAsUDj80yzIzhtshkv215KfsnQ/RXR3nVA==} dev: false @@ -26217,6 +26383,14 @@ packages: zod: 3.22.2 dev: false + /zod-to-json-schema@3.22.5(zod@3.22.4): + resolution: {integrity: sha512-+akaPo6a0zpVCCseDed504KBJUQpEW5QZw7RMneNmKw+fGaML1Z9tUNLnHHAC8x6dzVRO1eB2oEMyZRnuBZg7Q==} + peerDependencies: + zod: ^3.22.4 + dependencies: + zod: 3.22.4 + dev: true + /zod@3.22.2: resolution: {integrity: sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==} diff --git a/src/client/components/telemetry/TelemetryList.tsx b/src/client/components/telemetry/TelemetryList.tsx index 26e48e0..5c3a9ac 100644 --- a/src/client/components/telemetry/TelemetryList.tsx +++ b/src/client/components/telemetry/TelemetryList.tsx @@ -1,5 +1,15 @@ import { Trans, t } from '@i18next-toolkit/react'; -import { Button, Collapse, Form, Input, Modal, Table, Typography } from 'antd'; +import { + Alert, + Button, + Collapse, + Form, + Input, + Modal, + Popconfirm, + Table, + Typography, +} from 'antd'; import React, { useMemo, useState } from 'react'; import { AppRouterOutput, trpc } from '../../api/trpc'; import { useCurrentWorkspaceId } from '../../store/user'; @@ -9,11 +19,13 @@ import { CodeOutlined, EditOutlined, PlusOutlined, + DeleteOutlined, } from '@ant-design/icons'; import { useNavigate } from 'react-router'; import { PageHeader } from '../PageHeader'; import { useEvent } from '../../hooks/useEvent'; import { TelemetryCounter } from './TelemetryCounter'; +import { LuDelete, LuTrash } from 'react-icons/lu'; type TelemetryInfo = AppRouterOutput['telemetry']['all'][number]; @@ -189,10 +201,15 @@ const TelemetryListTable: React.FC<{ onShowUsage: (info: TelemetryInfo) => void; }> = React.memo((props) => { const workspaceId = useCurrentWorkspaceId(); - const { data = [], isLoading } = trpc.telemetry.all.useQuery({ + const { + data = [], + isLoading, + refetch, + } = trpc.telemetry.all.useQuery({ workspaceId, }); const navigate = useNavigate(); + const deleteMutation = trpc.telemetry.delete.useMutation(); const columns = useMemo((): ColumnsType => { return [ @@ -217,6 +234,25 @@ const TelemetryListTable: React.FC<{ render: (_, record) => { return (
+ { + await deleteMutation.mutateAsync({ + telemetryId: record.id, + workspaceId, + }); + await refetch(); + }} + > +