Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

feat: adding cohere typescript integration (#433)

Aman Agarwald041ca1ee1bf
diff --git a/docs/latest/integrations/cohere.mdx b/docs/latest/integrations/cohere.mdx
index b9bdfa94..d7adec6b 100644
--- a/docs/latest/integrations/cohere.mdx
+++ b/docs/latest/integrations/cohere.mdx
@@ -19,9 +19,18 @@ The integration is compatible with
<Steps>
<Step title="Install OpenLIT">
Open your command line or terminal and run:
- ```shell
- pip install openlit
- ```
+ <Tabs>
+ <Tab title="Python">
+ ```shell
+ pip install openlit
+ ```
+ </Tab>
+ <Tab title="Typescript">
+ ```shell
+ npm install openlit
+ ```
+ </Tab>
+ </Tabs>
</Step>
<Step title="Initialize OpenLIT in your Application">
You can set up OpenLIT in your application using either function arguments directly in your code or by using environment variables.
@@ -30,13 +39,27 @@ The integration is compatible with
Add the following two lines to your application code:
- ```python
- import openlit
-
- openlit.init(
- otlp_endpoint="YOUR_OTEL_ENDPOINT",
- )
- ```
+ <Tabs>
+ <Tab title="Python">
+ ```python
+ import openlit
+
+ openlit.init(
+ otlp_endpoint="YOUR_OTEL_ENDPOINT",
+ )
+ ```
+
+ </Tab>
+ <Tab title="Typescript">
+ <Warning>Typescript sdk for anthropic doesn't support metrics tracking for now!</Warning>
+
+ ```typescript
+ import openlit from "openlit"
+
+ openlit.init({ otlpEndpoint: "YOUR_OTEL_ENDPOINT" })
+ ```
+ </Tab>
+ </Tabs>
Replace:
1. `YOUR_OTEL_ENDPOINT` with the URL of your OpenTelemetry backend, such as `http://127.0.0.1:4318` if you are using OpenLIT and a local OTel Collector.
@@ -45,11 +68,23 @@ The integration is compatible with
Add the following two lines to your application code:
- ```python
- import openlit
-
- openlit.init()
- ```
+ <Tabs>
+ <Tab title="Python">
+ ```python
+ import openlit
+
+ openlit.init()
+ ```
+
+ </Tab>
+ <Tab title="Typescript">
+ ```typescript
+ import openlit from "openlit"
+
+ openlit.init()
+ ```
+ </Tab>
+ </Tabs>
Then, configure the your OTLP endpoint using environment variable:
```shell
@@ -62,7 +97,7 @@ The integration is compatible with
</Tabs>
To send metrics and traces to other Observability tools, refer to the [Connections Guide](/latest/connections/intro).
- For more advanced configurations and application use cases, visit the [OpenLIT Python repository](https://github.com/openlit/openlit/tree/main/sdk/python).
+ For more advanced configurations and application use cases, visit the [OpenLIT Python repository](https://github.com/openlit/openlit/tree/main/sdk/python) or [OpenLIT Typescript repository](https://github.com/openlit/openlit/tree/main/sdk/typescript).
</Step>
</Steps>
@@ -75,4 +110,4 @@ Connect to your existing Observablity Stack
<Card title="SDK configuration" href="/latest/sdk-configuration" icon='file-code'>
Documentation of the configuration options for the OpenLIT SDK.
</Card>
-</CardGroup>
\ No newline at end of file
+</CardGroup>
diff --git a/docs/latest/integrations/introduction.mdx b/docs/latest/integrations/introduction.mdx
index a0706ea3..8fa3d101 100644
--- a/docs/latest/integrations/introduction.mdx
+++ b/docs/latest/integrations/introduction.mdx
@@ -790,7 +790,7 @@ Start integrating and monitoring your applications with OpenLIT effortlessly. Ch
| OpenAI | LLM | ✔️ | ✔️ |
| Anthropic | LLM | ✔️ | ✔️ |
| Ollama | LLM | ✔️ | ❌ |
-| Cohere | LLM | ✔️ | ❌ |
+| Cohere | LLM | ✔️ | ✔️ |
| GPT4All | LLM | ✔️ | ❌ |
| vLLM | LLM | ✔️ | ❌ |
| Azure OpenAI | LLM | ✔️ | ❌ |
diff --git a/sdk/typescript/package-lock.json b/sdk/typescript/package-lock.json
index b0761646..579b65ae 100644
--- a/sdk/typescript/package-lock.json
+++ b/sdk/typescript/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "openlit",
- "version": "1.0.0",
+ "version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openlit",
- "version": "1.0.0",
+ "version": "1.1.0",
"license": "ISC",
"dependencies": {
"@anthropic-ai/sdk": "^0.25.0",
@@ -20,6 +20,7 @@
"@opentelemetry/sdk-trace-base": "^1.24.1",
"@opentelemetry/sdk-trace-node": "^1.24.1",
"@opentelemetry/semantic-conventions": "^1.24.1",
+ "cohere-ai": "^7.13.0",
"js-tiktoken": "^1.0.12",
"openai": "^4.47.1",
"tiktoken": "^1.0.15"
@@ -50,23 +51,920 @@
"typescript": "^5.5.4"
},
"engines": {
- "node": ">=14"
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": "^1.3.0"
+ }
+ },
+ "node_modules/@anthropic-ai/sdk": {
+ "version": "0.25.0",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "^18.11.18",
+ "@types/node-fetch": "^2.6.4",
+ "abort-controller": "^3.0.0",
+ "agentkeepalive": "^4.2.1",
+ "form-data-encoder": "1.7.2",
+ "formdata-node": "^4.3.2",
+ "node-fetch": "^2.6.7"
+ }
+ },
+ "node_modules/@aws-crypto/crc32": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz",
+ "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==",
+ "dependencies": {
+ "@aws-crypto/util": "^3.0.0",
+ "@aws-sdk/types": "^3.222.0",
+ "tslib": "^1.11.1"
+ }
+ },
+ "node_modules/@aws-crypto/crc32/node_modules/@aws-crypto/util": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz",
+ "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==",
+ "dependencies": {
+ "@aws-sdk/types": "^3.222.0",
+ "@aws-sdk/util-utf8-browser": "^3.0.0",
+ "tslib": "^1.11.1"
+ }
+ },
+ "node_modules/@aws-crypto/crc32/node_modules/tslib": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
+ },
+ "node_modules/@aws-crypto/sha256-browser": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",
+ "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",
+ "dependencies": {
+ "@aws-crypto/sha256-js": "^5.2.0",
+ "@aws-crypto/supports-web-crypto": "^5.2.0",
+ "@aws-crypto/util": "^5.2.0",
+ "@aws-sdk/types": "^3.222.0",
+ "@aws-sdk/util-locate-window": "^3.0.0",
+ "@smithy/util-utf8": "^2.0.0",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",
+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",
+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",
+ "dependencies": {
+ "@smithy/is-array-buffer": "^2.2.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",
+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",
+ "dependencies": {
+ "@smithy/util-buffer-from": "^2.2.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/sha256-js": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",
+ "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",
+ "dependencies": {
+ "@aws-crypto/util": "^5.2.0",
+ "@aws-sdk/types": "^3.222.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/supports-web-crypto": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",
+ "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@aws-crypto/util": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",
+ "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",
+ "dependencies": {
+ "@aws-sdk/types": "^3.222.0",
+ "@smithy/util-utf8": "^2.0.0",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",
+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",
+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",
+ "dependencies": {
+ "@smithy/is-array-buffer": "^2.2.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",
+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",
+ "dependencies": {
+ "@smithy/util-buffer-from": "^2.2.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/client-cognito-identity": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.658.1.tgz",
+ "integrity": "sha512-MCYLKmNy0FlNT9TvXfOxj0jh+ZQq+G9qEy/VZqu3JsQSgiFvFRdzgzcbQ9gQx7fZrDC/TPdABOTh483zI4cu9g==",
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/client-sso-oidc": "3.658.1",
+ "@aws-sdk/client-sts": "3.658.1",
+ "@aws-sdk/core": "3.658.1",
+ "@aws-sdk/credential-provider-node": "3.658.1",
+ "@aws-sdk/middleware-host-header": "3.654.0",
+ "@aws-sdk/middleware-logger": "3.654.0",
+ "@aws-sdk/middleware-recursion-detection": "3.654.0",
+ "@aws-sdk/middleware-user-agent": "3.654.0",
+ "@aws-sdk/region-config-resolver": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@aws-sdk/util-user-agent-browser": "3.654.0",
+ "@aws-sdk/util-user-agent-node": "3.654.0",
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/core": "^2.4.6",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/hash-node": "^3.0.6",
+ "@smithy/invalid-dependency": "^3.0.6",
+ "@smithy/middleware-content-length": "^3.0.8",
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
+ "@smithy/util-defaults-mode-node": "^3.0.21",
+ "@smithy/util-endpoints": "^2.1.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/client-sagemaker": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sagemaker/-/client-sagemaker-3.658.1.tgz",
+ "integrity": "sha512-WpVs1pCWkvSAC3k7bVGSQxj1wV5Mcd+xwi9XPFbeoSkSRw2lftCiNo2laiVCQU6T9WOIK0X3FpVFK1ipag0QVw==",
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/client-sso-oidc": "3.658.1",
+ "@aws-sdk/client-sts": "3.658.1",
+ "@aws-sdk/core": "3.658.1",
+ "@aws-sdk/credential-provider-node": "3.658.1",
+ "@aws-sdk/middleware-host-header": "3.654.0",
+ "@aws-sdk/middleware-logger": "3.654.0",
+ "@aws-sdk/middleware-recursion-detection": "3.654.0",
+ "@aws-sdk/middleware-user-agent": "3.654.0",
+ "@aws-sdk/region-config-resolver": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@aws-sdk/util-user-agent-browser": "3.654.0",
+ "@aws-sdk/util-user-agent-node": "3.654.0",
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/core": "^2.4.6",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/hash-node": "^3.0.6",
+ "@smithy/invalid-dependency": "^3.0.6",
+ "@smithy/middleware-content-length": "^3.0.8",
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
+ "@smithy/util-defaults-mode-node": "^3.0.21",
+ "@smithy/util-endpoints": "^2.1.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "@smithy/util-waiter": "^3.1.5",
+ "tslib": "^2.6.2",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/client-sso": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.658.1.tgz",
+ "integrity": "sha512-lOuaBtqPTYGn6xpXlQF4LsNDsQ8Ij2kOdnk+i69Kp6yS76TYvtUuukyLL5kx8zE1c8WbYtxj9y8VNw9/6uKl7Q==",
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/core": "3.658.1",
+ "@aws-sdk/middleware-host-header": "3.654.0",
+ "@aws-sdk/middleware-logger": "3.654.0",
+ "@aws-sdk/middleware-recursion-detection": "3.654.0",
+ "@aws-sdk/middleware-user-agent": "3.654.0",
+ "@aws-sdk/region-config-resolver": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@aws-sdk/util-user-agent-browser": "3.654.0",
+ "@aws-sdk/util-user-agent-node": "3.654.0",
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/core": "^2.4.6",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/hash-node": "^3.0.6",
+ "@smithy/invalid-dependency": "^3.0.6",
+ "@smithy/middleware-content-length": "^3.0.8",
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
+ "@smithy/util-defaults-mode-node": "^3.0.21",
+ "@smithy/util-endpoints": "^2.1.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/client-sso-oidc": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.658.1.tgz",
+ "integrity": "sha512-RGcZAI3qEA05JszPKwa0cAyp8rnS1nUvs0Sqw4hqLNQ1kD7b7V6CPjRXe7EFQqCOMvM4kGqx0+cEEVTOmBsFLw==",
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/core": "3.658.1",
+ "@aws-sdk/credential-provider-node": "3.658.1",
+ "@aws-sdk/middleware-host-header": "3.654.0",
+ "@aws-sdk/middleware-logger": "3.654.0",
+ "@aws-sdk/middleware-recursion-detection": "3.654.0",
+ "@aws-sdk/middleware-user-agent": "3.654.0",
+ "@aws-sdk/region-config-resolver": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@aws-sdk/util-user-agent-browser": "3.654.0",
+ "@aws-sdk/util-user-agent-node": "3.654.0",
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/core": "^2.4.6",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/hash-node": "^3.0.6",
+ "@smithy/invalid-dependency": "^3.0.6",
+ "@smithy/middleware-content-length": "^3.0.8",
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
+ "@smithy/util-defaults-mode-node": "^3.0.21",
+ "@smithy/util-endpoints": "^2.1.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ },
+ "peerDependencies": {
+ "@aws-sdk/client-sts": "^3.658.1"
+ }
+ },
+ "node_modules/@aws-sdk/client-sts": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.658.1.tgz",
+ "integrity": "sha512-yw9hc5blTnbT1V6mR7Cx9HGc9KQpcLQ1QXj8rntiJi6tIYu3aFNVEyy81JHL7NsuBSeQulJTvHO3y6r3O0sfRg==",
+ "dependencies": {
+ "@aws-crypto/sha256-browser": "5.2.0",
+ "@aws-crypto/sha256-js": "5.2.0",
+ "@aws-sdk/client-sso-oidc": "3.658.1",
+ "@aws-sdk/core": "3.658.1",
+ "@aws-sdk/credential-provider-node": "3.658.1",
+ "@aws-sdk/middleware-host-header": "3.654.0",
+ "@aws-sdk/middleware-logger": "3.654.0",
+ "@aws-sdk/middleware-recursion-detection": "3.654.0",
+ "@aws-sdk/middleware-user-agent": "3.654.0",
+ "@aws-sdk/region-config-resolver": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@aws-sdk/util-user-agent-browser": "3.654.0",
+ "@aws-sdk/util-user-agent-node": "3.654.0",
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/core": "^2.4.6",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/hash-node": "^3.0.6",
+ "@smithy/invalid-dependency": "^3.0.6",
+ "@smithy/middleware-content-length": "^3.0.8",
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-body-length-node": "^3.0.0",
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
+ "@smithy/util-defaults-mode-node": "^3.0.21",
+ "@smithy/util-endpoints": "^2.1.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/core": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.658.1.tgz",
+ "integrity": "sha512-vJVMoMcSKXK2gBRSu9Ywwv6wQ7tXH8VL1fqB1uVxgCqBZ3IHfqNn4zvpMPWrwgO2/3wv7XFyikGQ5ypPTCw4jA==",
+ "dependencies": {
+ "@smithy/core": "^2.4.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/signature-v4": "^4.1.4",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "fast-xml-parser": "4.4.1",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-cognito-identity": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.658.1.tgz",
+ "integrity": "sha512-JY4rZ4e2emL7PNHCU7F/BQV8PpQGEBZLkEoPD55RO4CitaIhlVZRpUCGLih+0Hw4MOnTUqJdfQBM+qZk6G+Now==",
+ "dependencies": {
+ "@aws-sdk/client-cognito-identity": "3.658.1",
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-env": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.654.0.tgz",
+ "integrity": "sha512-kogsx3Ql81JouHS7DkheCDU9MYAvK0AokxjcshDveGmf7BbgbWCA8Fnb9wjQyNDaOXNvkZu8Z8rgkX91z324/w==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-http": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.658.1.tgz",
+ "integrity": "sha512-4ubkJjEVCZflxkZnV1JDQv8P2pburxk1LrEp55telfJRzXrnowzBKwuV2ED0QMNC448g2B3VCaffS+Ct7c4IWQ==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-stream": "^3.1.8",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-ini": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.658.1.tgz",
+ "integrity": "sha512-2uwOamQg5ppwfegwen1ddPu5HM3/IBSnaGlaKLFhltkdtZ0jiqTZWUtX2V+4Q+buLnT0hQvLS/frQ+7QUam+0Q==",
+ "dependencies": {
+ "@aws-sdk/credential-provider-env": "3.654.0",
+ "@aws-sdk/credential-provider-http": "3.658.1",
+ "@aws-sdk/credential-provider-process": "3.654.0",
+ "@aws-sdk/credential-provider-sso": "3.658.1",
+ "@aws-sdk/credential-provider-web-identity": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/credential-provider-imds": "^3.2.3",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ },
+ "peerDependencies": {
+ "@aws-sdk/client-sts": "^3.658.1"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-node": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.658.1.tgz",
+ "integrity": "sha512-XwxW6N+uPXPYAuyq+GfOEdfL/MZGAlCSfB5gEWtLBFmFbikhmEuqfWtI6CD60OwudCUOh6argd21BsJf8o1SJA==",
+ "dependencies": {
+ "@aws-sdk/credential-provider-env": "3.654.0",
+ "@aws-sdk/credential-provider-http": "3.658.1",
+ "@aws-sdk/credential-provider-ini": "3.658.1",
+ "@aws-sdk/credential-provider-process": "3.654.0",
+ "@aws-sdk/credential-provider-sso": "3.658.1",
+ "@aws-sdk/credential-provider-web-identity": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/credential-provider-imds": "^3.2.3",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-process": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.654.0.tgz",
+ "integrity": "sha512-PmQoo8sZ9Q2Ow8OMzK++Z9lI7MsRUG7sNq3E72DVA215dhtTICTDQwGlXH2AAmIp7n+G9LLRds+4wo2ehG4mkg==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-sso": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.658.1.tgz",
+ "integrity": "sha512-YOagVEsZEk9DmgJEBg+4MBXrPcw/tYas0VQ5OVBqC5XHNbi2OBGJqgmjVPesuu393E7W0VQxtJFDS00O1ewQgA==",
+ "dependencies": {
+ "@aws-sdk/client-sso": "3.658.1",
+ "@aws-sdk/token-providers": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-provider-web-identity": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.654.0.tgz",
+ "integrity": "sha512-6a2g9gMtZToqSu+CusjNK5zvbLJahQ9di7buO3iXgbizXpLXU1rnawCpWxwslMpT5fLgMSKDnKDrr6wdEk7jSw==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ },
+ "peerDependencies": {
+ "@aws-sdk/client-sts": "^3.654.0"
+ }
+ },
+ "node_modules/@aws-sdk/credential-providers": {
+ "version": "3.658.1",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.658.1.tgz",
+ "integrity": "sha512-lfXA6kZS6GHyi/67EbfrKdLoqHR6j7G35eFwaqxyNkfMhNBpAF0eZK3SYiwnzdR9+Wb/enTFawYiFbG5R+dQzA==",
+ "dependencies": {
+ "@aws-sdk/client-cognito-identity": "3.658.1",
+ "@aws-sdk/client-sso": "3.658.1",
+ "@aws-sdk/client-sts": "3.658.1",
+ "@aws-sdk/credential-provider-cognito-identity": "3.658.1",
+ "@aws-sdk/credential-provider-env": "3.654.0",
+ "@aws-sdk/credential-provider-http": "3.658.1",
+ "@aws-sdk/credential-provider-ini": "3.658.1",
+ "@aws-sdk/credential-provider-node": "3.658.1",
+ "@aws-sdk/credential-provider-process": "3.654.0",
+ "@aws-sdk/credential-provider-sso": "3.658.1",
+ "@aws-sdk/credential-provider-web-identity": "3.654.0",
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/credential-provider-imds": "^3.2.3",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/middleware-host-header": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.654.0.tgz",
+ "integrity": "sha512-rxGgVHWKp8U2ubMv+t+vlIk7QYUaRCHaVpmUlJv0Wv6Q0KeO9a42T9FxHphjOTlCGQOLcjCreL9CF8Qhtb4mdQ==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/middleware-logger": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.654.0.tgz",
+ "integrity": "sha512-OQYb+nWlmASyXfRb989pwkJ9EVUMP1CrKn2eyTk3usl20JZmKo2Vjis6I0tLUkMSxMhnBJJlQKyWkRpD/u1FVg==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/middleware-recursion-detection": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.654.0.tgz",
+ "integrity": "sha512-gKSomgltKVmsT8sC6W7CrADZ4GHwX9epk3GcH6QhebVO3LA9LRbkL3TwOPUXakxxOLLUTYdOZLIOtFf7iH00lg==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/middleware-user-agent": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.654.0.tgz",
+ "integrity": "sha512-liCcqPAyRsr53cy2tYu4qeH4MMN0eh9g6k56XzI5xd4SghXH5YWh4qOYAlQ8T66ZV4nPMtD8GLtLXGzsH8moFg==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@aws-sdk/util-endpoints": "3.654.0",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/protocol-http": {
+ "version": "3.374.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.374.0.tgz",
+ "integrity": "sha512-9WpRUbINdGroV3HiZZIBoJvL2ndoWk39OfwxWs2otxByppJZNN14bg/lvCx5e8ggHUti7IBk5rb0nqQZ4m05pg==",
+ "deprecated": "This package has moved to @smithy/protocol-http",
+ "dependencies": {
+ "@smithy/protocol-http": "^1.1.0",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/protocol-http/node_modules/@smithy/protocol-http": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.2.0.tgz",
+ "integrity": "sha512-GfGfruksi3nXdFok5RhgtOnWe5f6BndzYfmEXISD+5gAGdayFGpjWu5pIqIweTudMtse20bGbc+7MFZXT1Tb8Q==",
+ "dependencies": {
+ "@smithy/types": "^1.2.0",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/protocol-http/node_modules/@smithy/types": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz",
+ "integrity": "sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/region-config-resolver": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.654.0.tgz",
+ "integrity": "sha512-ydGOrXJxj3x0sJhsXyTmvJVLAE0xxuTWFJihTl67RtaO7VRNtd82I3P3bwoMMaDn5WpmV5mPo8fEUDRlBm3fPg==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-config-provider": "^3.0.0",
+ "@smithy/util-middleware": "^3.0.6",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4": {
+ "version": "3.374.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.374.0.tgz",
+ "integrity": "sha512-2xLJvSdzcZZAg0lsDLUAuSQuihzK0dcxIK7WmfuJeF7DGKJFmp9czQmz5f3qiDz6IDQzvgK1M9vtJSVCslJbyQ==",
+ "deprecated": "This package has moved to @smithy/signature-v4",
+ "dependencies": {
+ "@smithy/signature-v4": "^1.0.1",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/is-array-buffer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-1.1.0.tgz",
+ "integrity": "sha512-twpQ/n+3OWZJ7Z+xu43MJErmhB/WO/mMTnqR6PwWQShvSJ/emx5d1N59LQZk6ZpTAeuRWrc+eHhkzTp9NFjNRQ==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/signature-v4": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-1.1.0.tgz",
+ "integrity": "sha512-fDo3m7YqXBs7neciOePPd/X9LPm5QLlDMdIC4m1H6dgNLnXfLMFNIxEfPyohGA8VW9Wn4X8lygnPSGxDZSmp0Q==",
+ "dependencies": {
+ "@smithy/eventstream-codec": "^1.1.0",
+ "@smithy/is-array-buffer": "^1.1.0",
+ "@smithy/types": "^1.2.0",
+ "@smithy/util-hex-encoding": "^1.1.0",
+ "@smithy/util-middleware": "^1.1.0",
+ "@smithy/util-uri-escape": "^1.1.0",
+ "@smithy/util-utf8": "^1.1.0",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/types": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz",
+ "integrity": "sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/util-buffer-from": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-1.1.0.tgz",
+ "integrity": "sha512-9m6NXE0ww+ra5HKHCHig20T+FAwxBAm7DIdwc/767uGWbRcY720ybgPacQNB96JMOI7xVr/CDa3oMzKmW4a+kw==",
+ "dependencies": {
+ "@smithy/is-array-buffer": "^1.1.0",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/util-hex-encoding": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-1.1.0.tgz",
+ "integrity": "sha512-7UtIE9eH0u41zpB60Jzr0oNCQ3hMJUabMcKRUVjmyHTXiWDE4vjSqN6qlih7rCNeKGbioS7f/y2Jgym4QZcKFg==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/util-middleware": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-1.1.0.tgz",
+ "integrity": "sha512-6hhckcBqVgjWAqLy2vqlPZ3rfxLDhFWEmM7oLh2POGvsi7j0tHkbN7w4DFhuBExVJAbJ/qqxqZdRY6Fu7/OezQ==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/util-uri-escape": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-1.1.0.tgz",
+ "integrity": "sha512-/jL/V1xdVRt5XppwiaEU8Etp5WHZj609n0xMTuehmCqdoOFbId1M+aEeDWZsQ+8JbEB/BJ6ynY2SlYmOaKtt8w==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/signature-v4/node_modules/@smithy/util-utf8": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-1.1.0.tgz",
+ "integrity": "sha512-p/MYV+JmqmPyjdgyN2UxAeYDj9cBqCjp0C/NsTWnnjoZUVqoeZ6IrW915L9CAKWVECgv9lVQGc4u/yz26/bI1A==",
+ "dependencies": {
+ "@smithy/util-buffer-from": "^1.1.0",
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/token-providers": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.654.0.tgz",
+ "integrity": "sha512-D8GeJYmvbfWkQDtTB4owmIobSMexZel0fOoetwvgCQ/7L8VPph3Q2bn1TRRIXvH7wdt6DcDxA3tKMHPBkT3GlA==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ },
+ "peerDependencies": {
+ "@aws-sdk/client-sso-oidc": "^3.654.0"
+ }
+ },
+ "node_modules/@aws-sdk/types": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.654.0.tgz",
+ "integrity": "sha512-VWvbED3SV+10QJIcmU/PKjsKilsTV16d1I7/on4bvD/jo1qGeMXqLDBSen3ks/tuvXZF/mFc7ZW/W2DiLVtO7A==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/util-endpoints": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.654.0.tgz",
+ "integrity": "sha512-i902fcBknHs0Irgdpi62+QMvzxE+bczvILXigYrlHL4+PiEnlMVpni5L5W1qCkNZXf8AaMrSBuR1NZAGp6UOUw==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-endpoints": "^2.1.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/util-locate-window": {
+ "version": "3.568.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.568.0.tgz",
+ "integrity": "sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@aws-sdk/util-user-agent-browser": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.654.0.tgz",
+ "integrity": "sha512-ykYAJqvnxLt7wfrqya28wuH3/7NdrwzfiFd7NqEVQf7dXVxL5RPEpD7DxjcyQo3DsHvvdUvGZVaQhozycn1pzA==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/types": "^3.4.2",
+ "bowser": "^2.11.0",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@aws-sdk/util-user-agent-node": {
+ "version": "3.654.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.654.0.tgz",
+ "integrity": "sha512-a0ojjdBN6pqv6gB4H/QPPSfhs7mFtlVwnmKCM/QrTaFzN0U810PJ1BST3lBx5sa23I5jWHGaoFY+5q65C3clLQ==",
+ "dependencies": {
+ "@aws-sdk/types": "3.654.0",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
},
"peerDependencies": {
- "@opentelemetry/api": "^1.3.0"
+ "aws-crt": ">=1.0.0"
+ },
+ "peerDependenciesMeta": {
+ "aws-crt": {
+ "optional": true
+ }
}
},
- "node_modules/@anthropic-ai/sdk": {
- "version": "0.25.0",
- "license": "MIT",
+ "node_modules/@aws-sdk/util-utf8-browser": {
+ "version": "3.259.0",
+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz",
+ "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==",
"dependencies": {
- "@types/node": "^18.11.18",
- "@types/node-fetch": "^2.6.4",
- "abort-controller": "^3.0.0",
- "agentkeepalive": "^4.2.1",
- "form-data-encoder": "1.7.2",
- "formdata-node": "^4.3.2",
- "node-fetch": "^2.6.7"
+ "tslib": "^2.3.1"
}
},
"node_modules/@eslint-community/eslint-utils": {
@@ -1461,33 +2359,593 @@
"version": "1.1.0",
"license": "BSD-3-Clause"
},
- "node_modules/@protobufjs/fetch": {
- "version": "1.1.0",
- "license": "BSD-3-Clause",
+ "node_modules/@protobufjs/fetch": {
+ "version": "1.1.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@protobufjs/aspromise": "^1.1.1",
+ "@protobufjs/inquire": "^1.1.0"
+ }
+ },
+ "node_modules/@protobufjs/float": {
+ "version": "1.0.2",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@protobufjs/inquire": {
+ "version": "1.1.0",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@protobufjs/path": {
+ "version": "1.1.2",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@protobufjs/pool": {
+ "version": "1.1.0",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@protobufjs/utf8": {
+ "version": "1.1.0",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@smithy/abort-controller": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.4.tgz",
+ "integrity": "sha512-VupaALAQlXViW3/enTf/f5l5JZYSAxoJL7f0nanhNNKnww6DGCg1oYIuNP78KDugnkwthBO6iEcym16HhWV8RQ==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/config-resolver": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.8.tgz",
+ "integrity": "sha512-Tv1obAC18XOd2OnDAjSWmmthzx6Pdeh63FbLin8MlPiuJ2ATpKkq0NcNOJFr0dO+JmZXnwu8FQxKJ3TKJ3Hulw==",
+ "dependencies": {
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-config-provider": "^3.0.0",
+ "@smithy/util-middleware": "^3.0.6",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/core": {
+ "version": "2.4.6",
+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.4.6.tgz",
+ "integrity": "sha512-6lQQp99hnyuNNIzeTYSzCUXJHwvvFLY7hfdFGSJM95tjRDJGfzWYFRBXPaM9766LiiTsQ561KErtbufzUFSYUg==",
+ "dependencies": {
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-retry": "^3.0.21",
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-body-length-browser": "^3.0.0",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/credential-provider-imds": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.3.tgz",
+ "integrity": "sha512-VoxMzSzdvkkjMJNE38yQgx4CfnmT+Z+5EUXkg4x7yag93eQkVQgZvN3XBSHC/ylfBbLbAtdu7flTCChX9I+mVg==",
+ "dependencies": {
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/eventstream-codec": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-1.1.0.tgz",
+ "integrity": "sha512-3tEbUb8t8an226jKB6V/Q2XU/J53lCwCzULuBPEaF4JjSh+FlCMp7TmogE/Aij5J9DwlsZ4VAD/IRDuQ/0ZtMw==",
+ "dependencies": {
+ "@aws-crypto/crc32": "3.0.0",
+ "@smithy/types": "^1.2.0",
+ "@smithy/util-hex-encoding": "^1.1.0",
+ "tslib": "^2.5.0"
+ }
+ },
+ "node_modules/@smithy/eventstream-codec/node_modules/@smithy/types": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.2.0.tgz",
+ "integrity": "sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@smithy/eventstream-codec/node_modules/@smithy/util-hex-encoding": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-1.1.0.tgz",
+ "integrity": "sha512-7UtIE9eH0u41zpB60Jzr0oNCQ3hMJUabMcKRUVjmyHTXiWDE4vjSqN6qlih7rCNeKGbioS7f/y2Jgym4QZcKFg==",
+ "dependencies": {
+ "tslib": "^2.5.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@smithy/fetch-http-handler": {
+ "version": "3.2.8",
+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.8.tgz",
+ "integrity": "sha512-Lqe0B8F5RM7zkw//6avq1SJ8AfaRd3ubFUS1eVp5WszV7p6Ne5hQ4dSuMHDpNRPhgTvj4va9Kd/pcVigHEHRow==",
+ "dependencies": {
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/querystring-builder": "^3.0.6",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-base64": "^3.0.0",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@smithy/hash-node": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.6.tgz",
+ "integrity": "sha512-c/FHEdKK/7DU2z6ZE91L36ahyXWayR3B+FzELjnYq7wH5YqIseM24V+pWCS9kFn1Ln8OFGTf+pyYPiHZuX0s/Q==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-buffer-from": "^3.0.0",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/invalid-dependency": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.6.tgz",
+ "integrity": "sha512-czM7Ioq3s8pIXht7oD+vmgy4Wfb4XavU/k/irO8NdXFFOx7YAlsCCcKOh/lJD1mJSYQqiR7NmpZ9JviryD/7AQ==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@smithy/is-array-buffer": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz",
+ "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/middleware-content-length": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.8.tgz",
+ "integrity": "sha512-VuyszlSO49WKh3H9/kIO2kf07VUwGV80QRiaDxUfP8P8UKlokz381ETJvwLhwuypBYhLymCYyNhB3fLAGBX2og==",
+ "dependencies": {
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/middleware-endpoint": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.1.3.tgz",
+ "integrity": "sha512-KeM/OrK8MVFUsoJsmCN0MZMVPjKKLudn13xpgwIMpGTYpA8QZB2Xq5tJ+RE6iu3A6NhOI4VajDTwBsm8pwwrhg==",
+ "dependencies": {
+ "@smithy/middleware-serde": "^3.0.6",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "@smithy/url-parser": "^3.0.6",
+ "@smithy/util-middleware": "^3.0.6",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/middleware-retry": {
+ "version": "3.0.21",
+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.21.tgz",
+ "integrity": "sha512-/h0fElV95LekVVEJuSw+aI11S1Y3zIUwBc6h9ZbUv43Gl2weXsbQwjLoet6j/Qtb0phfrSxS6pNg6FqgJOWZkA==",
+ "dependencies": {
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/service-error-classification": "^3.0.6",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-retry": "^3.0.6",
+ "tslib": "^2.6.2",
+ "uuid": "^9.0.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/middleware-serde": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.6.tgz",
+ "integrity": "sha512-KKTUSl1MzOM0MAjGbudeaVNtIDo+PpekTBkCNwvfZlKndodrnvRo+00USatiyLOc0ujjO9UydMRu3O9dYML7ag==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/middleware-stack": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.6.tgz",
+ "integrity": "sha512-2c0eSYhTQ8xQqHMcRxLMpadFbTXg6Zla5l0mwNftFCZMQmuhI7EbAJMx6R5eqfuV3YbJ3QGyS3d5uSmrHV8Khg==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/node-config-provider": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz",
+ "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==",
+ "dependencies": {
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/shared-ini-file-loader": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/node-http-handler": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.2.3.tgz",
+ "integrity": "sha512-/gcm5DJ3k1b1zEInzBGAZC8ntJ+jwrz1NcSIu+9dSXd1FfG0G6QgkDI40tt8/WYUbHtLyo8fEqtm2v29koWo/w==",
+ "dependencies": {
+ "@smithy/abort-controller": "^3.1.4",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/querystring-builder": "^3.0.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/property-provider": {
+ "version": "3.1.6",
+ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.6.tgz",
+ "integrity": "sha512-NK3y/T7Q/Bw+Z8vsVs9MYIQ5v7gOX7clyrXcwhhIBQhbPgRl6JDrZbusO9qWDhcEus75Tg+VCxtIRfo3H76fpw==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/protocol-http": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.3.tgz",
+ "integrity": "sha512-GcbMmOYpH9iRqtC05RbRnc/0FssxSTHlmaNhYBTgSgNCYpdR3Kt88u5GAZTBmouzv+Zlj/VRv92J9ruuDeJuEw==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/querystring-builder": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.6.tgz",
+ "integrity": "sha512-sQe08RunoObe+Usujn9+R2zrLuQERi3CWvRO3BvnoWSYUaIrLKuAIeY7cMeDax6xGyfIP3x/yFWbEKSXvOnvVg==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-uri-escape": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/querystring-parser": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.6.tgz",
+ "integrity": "sha512-UJKw4LlEkytzz2Wq+uIdHf6qOtFfee/o7ruH0jF5I6UAuU+19r9QV7nU3P/uI0l6+oElRHmG/5cBBcGJrD7Ozg==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/service-error-classification": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.6.tgz",
+ "integrity": "sha512-53SpchU3+DUZrN7J6sBx9tBiCVGzsib2e4sc512Q7K9fpC5zkJKs6Z9s+qbMxSYrkEkle6hnMtrts7XNkMJJMg==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/shared-ini-file-loader": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz",
+ "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/signature-v4": {
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.1.4.tgz",
+ "integrity": "sha512-72MiK7xYukNsnLJI9NqvUHqTu0ziEsfMsYNlWpiJfuGQnCTFKpckThlEatirvcA/LmT1h7rRO+pJD06PYsPu9Q==",
+ "dependencies": {
+ "@smithy/is-array-buffer": "^3.0.0",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-hex-encoding": "^3.0.0",
+ "@smithy/util-middleware": "^3.0.6",
+ "@smithy/util-uri-escape": "^3.0.0",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/smithy-client": {
+ "version": "3.3.5",
+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.3.5.tgz",
+ "integrity": "sha512-7IZi8J3Dr9n3tX+lcpmJ/5tCYIqoXdblFBaPuv0SEKZFRpCxE+TqIWL6I3t7jLlk9TWu3JSvEZAhtjB9yvB+zA==",
+ "dependencies": {
+ "@smithy/middleware-endpoint": "^3.1.3",
+ "@smithy/middleware-stack": "^3.0.6",
+ "@smithy/protocol-http": "^4.1.3",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-stream": "^3.1.8",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/types": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.4.2.tgz",
+ "integrity": "sha512-tHiFcfcVedVBHpmHUEUHOCCih8iZbIAYn9NvPsNzaPm/237I3imdDdZoOC8c87H5HBAVEa06tTgb+OcSWV9g5w==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/url-parser": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.6.tgz",
+ "integrity": "sha512-47Op/NU8Opt49KyGpHtVdnmmJMsp2hEwBdyjuFB9M2V5QVOwA7pBhhxKN5z6ztKGrMw76gd8MlbPuzzvaAncuQ==",
+ "dependencies": {
+ "@smithy/querystring-parser": "^3.0.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@smithy/util-base64": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz",
+ "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==",
+ "dependencies": {
+ "@smithy/util-buffer-from": "^3.0.0",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-body-length-browser": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz",
+ "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ }
+ },
+ "node_modules/@smithy/util-body-length-node": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz",
+ "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-buffer-from": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz",
+ "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==",
+ "dependencies": {
+ "@smithy/is-array-buffer": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-config-provider": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz",
+ "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-defaults-mode-browser": {
+ "version": "3.0.21",
+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.21.tgz",
+ "integrity": "sha512-M/FhTBk4c/SsB91dD/M4gMGfJO7z/qJaM9+XQQIqBOf4qzZYMExnP7R4VdGwxxH8IKMGW+8F0I4rNtVRrcfPoA==",
+ "dependencies": {
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "bowser": "^2.11.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@smithy/util-defaults-mode-node": {
+ "version": "3.0.21",
+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.21.tgz",
+ "integrity": "sha512-NiLinPvF86U3S2Pdx/ycqd4bnY5dmFSPNL5KYRwbNjqQFS09M5Wzqk8BNk61/47xCYz1X/6KeiSk9qgYPTtuDw==",
+ "dependencies": {
+ "@smithy/config-resolver": "^3.0.8",
+ "@smithy/credential-provider-imds": "^3.2.3",
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/property-provider": "^3.1.6",
+ "@smithy/smithy-client": "^3.3.5",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@smithy/util-endpoints": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.2.tgz",
+ "integrity": "sha512-FEISzffb4H8DLzGq1g4MuDpcv6CIG15fXoQzDH9SjpRJv6h7J++1STFWWinilG0tQh9H1v2UKWG19Jjr2B16zQ==",
+ "dependencies": {
+ "@smithy/node-config-provider": "^3.1.7",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-hex-encoding": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz",
+ "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==",
"dependencies": {
- "@protobufjs/aspromise": "^1.1.1",
- "@protobufjs/inquire": "^1.1.0"
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
}
},
- "node_modules/@protobufjs/float": {
- "version": "1.0.2",
- "license": "BSD-3-Clause"
+ "node_modules/@smithy/util-middleware": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.6.tgz",
+ "integrity": "sha512-BxbX4aBhI1O9p87/xM+zWy0GzT3CEVcXFPBRDoHAM+pV0eSW156pR+PSYEz0DQHDMYDsYAflC2bQNz2uaDBUZQ==",
+ "dependencies": {
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
},
- "node_modules/@protobufjs/inquire": {
- "version": "1.1.0",
- "license": "BSD-3-Clause"
+ "node_modules/@smithy/util-retry": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.6.tgz",
+ "integrity": "sha512-BRZiuF7IwDntAbevqMco67an0Sr9oLQJqqRCsSPZZHYRnehS0LHDAkJk/pSmI7Z8c/1Vet294H7fY2fWUgB+Rg==",
+ "dependencies": {
+ "@smithy/service-error-classification": "^3.0.6",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
},
- "node_modules/@protobufjs/path": {
- "version": "1.1.2",
- "license": "BSD-3-Clause"
+ "node_modules/@smithy/util-stream": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.1.8.tgz",
+ "integrity": "sha512-hoKOqSmb8FD3WLObuB5hwbM7bNIWgcnvkThokTvVq7J5PKjlLUK5qQQcB9zWLHIoSaIlf3VIv2OxZY2wtQjcRQ==",
+ "dependencies": {
+ "@smithy/fetch-http-handler": "^3.2.8",
+ "@smithy/node-http-handler": "^3.2.3",
+ "@smithy/types": "^3.4.2",
+ "@smithy/util-base64": "^3.0.0",
+ "@smithy/util-buffer-from": "^3.0.0",
+ "@smithy/util-hex-encoding": "^3.0.0",
+ "@smithy/util-utf8": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
},
- "node_modules/@protobufjs/pool": {
- "version": "1.1.0",
- "license": "BSD-3-Clause"
+ "node_modules/@smithy/util-uri-escape": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz",
+ "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==",
+ "dependencies": {
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
},
- "node_modules/@protobufjs/utf8": {
- "version": "1.1.0",
- "license": "BSD-3-Clause"
+ "node_modules/@smithy/util-utf8": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz",
+ "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==",
+ "dependencies": {
+ "@smithy/util-buffer-from": "^3.0.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/@smithy/util-waiter": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.5.tgz",
+ "integrity": "sha512-jYOSvM3H6sZe3CHjzD2VQNCjWBJs+4DbtwBMvUp9y5EnnwNa7NQxTeYeQw0CKCAdGGZ3QvVkyJmvbvs5M/B10A==",
+ "dependencies": {
+ "@smithy/abort-controller": "^3.1.4",
+ "@smithy/types": "^3.4.2",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
},
"node_modules/@types/accepts": {
"version": "1.3.7",
@@ -2040,6 +3498,11 @@
"node": "*"
}
},
+ "node_modules/bowser": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz",
+ "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA=="
+ },
"node_modules/brace-expansion": {
"version": "1.1.11",
"dev": true,
@@ -2060,6 +3523,29 @@
"node": ">=8"
}
},
+ "node_modules/buffer": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.2.1"
+ }
+ },
"node_modules/bufrw": {
"version": "1.4.0",
"dependencies": {
@@ -2072,6 +3558,24 @@
"node": ">= 0.10.x"
}
},
+ "node_modules/call-bind": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "set-function-length": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/callsites": {
"version": "3.1.0",
"dev": true,
@@ -2111,6 +3615,41 @@
"node": ">=12"
}
},
+ "node_modules/cohere-ai": {
+ "version": "7.13.2",
+ "resolved": "https://registry.npmjs.org/cohere-ai/-/cohere-ai-7.13.2.tgz",
+ "integrity": "sha512-VCEzlwo/SYCBtDWpCTs9JsEn6jLAPxOvFcqdhT+urCl32hQhs1ENH20c5tvNPupTN/UdP8tkOPJdlrxfBRh5Yw==",
+ "dependencies": {
+ "@aws-sdk/client-sagemaker": "^3.583.0",
+ "@aws-sdk/credential-providers": "^3.583.0",
+ "@aws-sdk/protocol-http": "^3.374.0",
+ "@aws-sdk/signature-v4": "^3.374.0",
+ "form-data": "^4.0.0",
+ "form-data-encoder": "^4.0.2",
+ "formdata-node": "^6.0.3",
+ "js-base64": "3.7.2",
+ "node-fetch": "2.7.0",
+ "qs": "6.11.2",
+ "readable-stream": "^4.5.2",
+ "url-join": "4.0.1"
+ }
+ },
+ "node_modules/cohere-ai/node_modules/form-data-encoder": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-4.0.2.tgz",
+ "integrity": "sha512-KQVhvhK8ZkWzxKxOr56CPulAhH3dobtuQ4+hNQ+HekH/Wp5gSOafqRAeTphQUJAIk0GBvHZgJ2ZGRWd5kphMuw==",
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/cohere-ai/node_modules/formdata-node": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-6.0.3.tgz",
+ "integrity": "sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==",
+ "engines": {
+ "node": ">= 18"
+ }
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"license": "MIT",
@@ -2173,6 +3712,22 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/define-data-property": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dependencies": {
+ "es-define-property": "^1.0.0",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/delayed-stream": {
"version": "1.0.0",
"license": "MIT",
@@ -2213,6 +3768,25 @@
"xtend": "~4.0.0"
}
},
+ "node_modules/es-define-property": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
+ "dependencies": {
+ "get-intrinsic": "^1.2.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/escalade": {
"version": "3.1.2",
"license": "MIT",
@@ -2434,6 +4008,14 @@
"node": ">=6"
}
},
+ "node_modules/events": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
+ "engines": {
+ "node": ">=0.8.x"
+ }
+ },
"node_modules/extend": {
"version": "3.0.2",
"license": "MIT"
@@ -2484,6 +4066,27 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/fast-xml-parser": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz",
+ "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/NaturalIntelligence"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/naturalintelligence"
+ }
+ ],
+ "dependencies": {
+ "strnum": "^1.0.5"
+ },
+ "bin": {
+ "fxparser": "src/cli/cli.js"
+ }
+ },
"node_modules/fastq": {
"version": "1.17.1",
"dev": true,
@@ -2625,6 +4228,24 @@
"node": "6.* || 8.* || >= 10.*"
}
},
+ "node_modules/get-intrinsic": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "has-proto": "^1.0.1",
+ "has-symbols": "^1.0.3",
+ "hasown": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/glob": {
"version": "7.2.3",
"dev": true,
@@ -2685,6 +4306,17 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/gopd": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
+ "dependencies": {
+ "get-intrinsic": "^1.1.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/graphemer": {
"version": "1.4.0",
"dev": true,
@@ -2698,6 +4330,39 @@
"node": ">=8"
}
},
+ "node_modules/has-property-descriptors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+ "dependencies": {
+ "es-define-property": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-proto": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/hasown": {
"version": "2.0.2",
"license": "MIT",
@@ -2741,6 +4406,25 @@
"ms": "^2.0.0"
}
},
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
"node_modules/ignore": {
"version": "5.3.1",
"dev": true,
@@ -2884,6 +4568,11 @@
"uuid": "dist/bin/uuid"
}
},
+ "node_modules/js-base64": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz",
+ "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ=="
+ },
"node_modules/js-tiktoken": {
"version": "1.0.12",
"license": "MIT",
@@ -3077,6 +4766,17 @@
"version": "0.4.0",
"license": "MIT"
},
+ "node_modules/object-inspect": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",
+ "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/once": {
"version": "1.4.0",
"dev": true,
@@ -3336,6 +5036,20 @@
"node": ">=6"
}
},
+ "node_modules/qs": {
+ "version": "6.11.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
+ "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
+ "dependencies": {
+ "side-channel": "^1.0.4"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/queue-microtask": {
"version": "1.2.3",
"dev": true,
@@ -3355,6 +5069,29 @@
],
"license": "MIT"
},
+ "node_modules/readable-stream": {
+ "version": "4.5.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz",
+ "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "buffer": "^6.0.3",
+ "events": "^3.3.0",
+ "process": "^0.11.10",
+ "string_decoder": "^1.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/readable-stream/node_modules/process": {
+ "version": "0.11.10",
+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
+ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
"node_modules/require-directory": {
"version": "2.1.1",
"license": "MIT",
@@ -3442,6 +5179,25 @@
"queue-microtask": "^1.2.2"
}
},
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
"node_modules/semver": {
"version": "7.6.1",
"license": "ISC",
@@ -3452,6 +5208,22 @@
"node": ">=10"
}
},
+ "node_modules/set-function-length": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
+ "dependencies": {
+ "define-data-property": "^1.1.4",
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.4",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/shebang-command": {
"version": "2.0.0",
"dev": true,
@@ -3475,6 +5247,23 @@
"version": "1.2.1",
"license": "BSD-2-Clause"
},
+ "node_modules/side-channel": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
+ "dependencies": {
+ "call-bind": "^1.0.7",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.4",
+ "object-inspect": "^1.13.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/slash": {
"version": "3.0.0",
"dev": true,
@@ -3483,6 +5272,14 @@
"node": ">=8"
}
},
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
"node_modules/string-template": {
"version": "0.2.1"
},
@@ -3519,6 +5316,11 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/strnum": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz",
+ "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA=="
+ },
"node_modules/supports-color": {
"version": "7.2.0",
"dev": true,
@@ -3613,7 +5415,6 @@
},
"node_modules/tslib": {
"version": "2.6.2",
- "dev": true,
"license": "0BSD"
},
"node_modules/type-check": {
@@ -3687,6 +5488,11 @@
"punycode": "^2.1.0"
}
},
+ "node_modules/url-join": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz",
+ "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA=="
+ },
"node_modules/uuid": {
"version": "9.0.1",
"funding": [
diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json
index 62fca359..99f25258 100644
--- a/sdk/typescript/package.json
+++ b/sdk/typescript/package.json
@@ -1,6 +1,6 @@
{
"name": "openlit",
- "version": "1.0.0",
+ "version": "1.1.0",
"homepage": "https://github.com/openlit/openlit#readme",
"bugs": {
"url": "https://github.com/openlit/openlit/issues",
@@ -53,8 +53,9 @@
"@opentelemetry/sdk-trace-base": "^1.24.1",
"@opentelemetry/sdk-trace-node": "^1.24.1",
"@opentelemetry/semantic-conventions": "^1.24.1",
+ "cohere-ai": "^7.13.0",
"js-tiktoken": "^1.0.12",
"openai": "^4.47.1",
"tiktoken": "^1.0.15"
}
-}
\ No newline at end of file
+}
diff --git a/sdk/typescript/src/instrumentation/anthropic/wrapper.ts b/sdk/typescript/src/instrumentation/anthropic/wrapper.ts
index d37552c4..bd107f10 100644
--- a/sdk/typescript/src/instrumentation/anthropic/wrapper.ts
+++ b/sdk/typescript/src/instrumentation/anthropic/wrapper.ts
@@ -1,29 +1,11 @@
-import { Span, SpanKind, SpanStatusCode, Tracer, context, trace } from '@opentelemetry/api';
+import { Span, SpanKind, Tracer, context, trace } from '@opentelemetry/api';
import OpenlitConfig from '../../config';
import OpenLitHelper from '../../helpers';
import SemanticConvention from '../../semantic-convention';
-import { SDK_NAME, TELEMETRY_SDK_NAME } from '../../constant';
+import BaseWrapper from '../base-wrapper';
-export default class AnthropicWrapper {
- static setBaseSpanAttributes(
- span: any,
- { genAIEndpoint, model, user, cost, environment, applicationName }: any
- ) {
- span.setAttributes({
- [TELEMETRY_SDK_NAME]: SDK_NAME,
- });
-
- span.setAttribute(TELEMETRY_SDK_NAME, SDK_NAME);
- span.setAttribute(SemanticConvention.GEN_AI_SYSTEM, SemanticConvention.GEN_AI_SYSTEM_ANTHROPIC);
- span.setAttribute(SemanticConvention.GEN_AI_ENDPOINT, genAIEndpoint);
- span.setAttribute(SemanticConvention.GEN_AI_ENVIRONMENT, environment);
- span.setAttribute(SemanticConvention.GEN_AI_APPLICATION_NAME, applicationName);
- span.setAttribute(SemanticConvention.GEN_AI_REQUEST_MODEL, model);
- span.setAttribute(SemanticConvention.GEN_AI_REQUEST_USER, user);
- if (cost !== undefined) span.setAttribute(SemanticConvention.GEN_AI_USAGE_COST, cost);
-
- span.setStatus({ code: SpanStatusCode.OK });
- }
+export default class AnthropicWrapper extends BaseWrapper {
+ static aiSystem = SemanticConvention.GEN_AI_SYSTEM_ANTHROPIC;
static _patchMessageCreate(tracer: Tracer): any {
const genAIEndpoint = 'anthropic.resources.messages';
@@ -174,8 +156,6 @@ export default class AnthropicWrapper {
result: any;
span: Span;
}) {
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
const {
messages,
@@ -234,8 +214,7 @@ export default class AnthropicWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: AnthropicWrapper.aiSystem,
});
// Request Params attributes : Start
diff --git a/sdk/typescript/src/instrumentation/base-wrapper.ts b/sdk/typescript/src/instrumentation/base-wrapper.ts
new file mode 100644
index 00000000..457b7499
--- /dev/null
+++ b/sdk/typescript/src/instrumentation/base-wrapper.ts
@@ -0,0 +1,39 @@
+import OpenlitConfig from '../config';
+import { SDK_NAME, TELEMETRY_SDK_NAME } from '../constant';
+import SemanticConvention from '../semantic-convention';
+import { Span, SpanStatusCode } from '@opentelemetry/api';
+
+type BaseSpanAttributes = {
+ genAIEndpoint: string;
+ model: string;
+ user?: unknown;
+ cost?: number | string;
+ aiSystem: string;
+};
+
+export default class BaseWrapper {
+ static setBaseSpanAttributes(
+ span: Span,
+ { genAIEndpoint, model, user, cost, aiSystem }: BaseSpanAttributes
+ ) {
+ const applicationName = OpenlitConfig.applicationName!;
+ const environment = OpenlitConfig.environment!;
+
+ span.setAttributes({
+ [TELEMETRY_SDK_NAME]: SDK_NAME,
+ });
+
+ span.setAttribute(TELEMETRY_SDK_NAME, SDK_NAME);
+ span.setAttribute(SemanticConvention.GEN_AI_SYSTEM, aiSystem);
+ span.setAttribute(SemanticConvention.GEN_AI_ENDPOINT, genAIEndpoint);
+ span.setAttribute(SemanticConvention.GEN_AI_ENVIRONMENT, environment);
+ span.setAttribute(SemanticConvention.GEN_AI_APPLICATION_NAME, applicationName);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_MODEL, model);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_USER, user as any);
+ if (cost !== undefined) {
+ span.setAttribute(SemanticConvention.GEN_AI_USAGE_COST, cost);
+ }
+
+ span.setStatus({ code: SpanStatusCode.OK });
+ }
+}
diff --git a/sdk/typescript/src/instrumentation/cohere/index.ts b/sdk/typescript/src/instrumentation/cohere/index.ts
new file mode 100644
index 00000000..b0a6f2ef
--- /dev/null
+++ b/sdk/typescript/src/instrumentation/cohere/index.ts
@@ -0,0 +1,79 @@
+import {
+ InstrumentationBase,
+ InstrumentationModuleDefinition,
+ InstrumentationNodeModuleDefinition,
+ isWrapped,
+} from '@opentelemetry/instrumentation';
+import { InstrumentationConfig } from '@opentelemetry/instrumentation';
+import { INSTRUMENTATION_PREFIX } from '../../constant';
+import Cohere from 'cohere-ai';
+import CohereWrapper from './wrapper';
+
+export interface CohereInstrumentationConfig extends InstrumentationConfig {}
+
+export default class OpenlitCohereInstrumentation extends InstrumentationBase {
+ constructor(config: CohereInstrumentationConfig = {}) {
+ super(`${INSTRUMENTATION_PREFIX}/instrumentation-cohere-ai`, '1.0.0', config);
+ }
+
+ protected init(): void | InstrumentationModuleDefinition | InstrumentationModuleDefinition[] {
+ const module = new InstrumentationNodeModuleDefinition(
+ 'cohere-ai',
+ ['>=7.2.0'],
+ (moduleExports) => {
+ this._patch(moduleExports);
+ return moduleExports;
+ },
+ (moduleExports) => {
+ if (moduleExports !== undefined) {
+ this._unpatch(moduleExports);
+ }
+ }
+ );
+ return [module];
+ }
+
+ public manualPatch(cohere: any): void {
+ this._patch(cohere);
+ }
+
+ protected _patch(moduleExports: typeof Cohere) {
+ try {
+ if (isWrapped(moduleExports.CohereClient.prototype.embed)) {
+ this._unwrap(moduleExports.CohereClient.prototype, 'embed');
+ }
+ if (isWrapped(moduleExports.CohereClient.prototype.chat)) {
+ this._unwrap(moduleExports.CohereClient.prototype, 'chat');
+ }
+ if (isWrapped(moduleExports.CohereClient.prototype.chatStream)) {
+ this._unwrap(moduleExports.CohereClient.prototype, 'chatStream');
+ }
+
+ this._wrap(
+ moduleExports.CohereClient.prototype,
+ 'embed',
+ CohereWrapper._patchEmbed(this.tracer)
+ );
+
+ this._wrap(
+ moduleExports.CohereClient.prototype,
+ 'chat',
+ CohereWrapper._patchChat(this.tracer)
+ );
+
+ this._wrap(
+ moduleExports.CohereClient.prototype,
+ 'chatStream',
+ CohereWrapper._patchChatStream(this.tracer)
+ );
+ } catch (e) {
+ console.error('Error in _patch method:', e);
+ }
+ }
+
+ protected _unpatch(moduleExports: typeof Cohere) {
+ this._unwrap(moduleExports.CohereClient.prototype, 'embed');
+ this._unwrap(moduleExports.CohereClient.prototype, 'chat');
+ this._unwrap(moduleExports.CohereClient.prototype, 'chatStream');
+ }
+}
diff --git a/sdk/typescript/src/instrumentation/cohere/wrapper.ts b/sdk/typescript/src/instrumentation/cohere/wrapper.ts
new file mode 100644
index 00000000..61e1eb69
--- /dev/null
+++ b/sdk/typescript/src/instrumentation/cohere/wrapper.ts
@@ -0,0 +1,286 @@
+import { Span, SpanKind, Tracer, context, trace } from '@opentelemetry/api';
+import OpenlitConfig from '../../config';
+import OpenLitHelper from '../../helpers';
+import SemanticConvention from '../../semantic-convention';
+import { SDK_NAME, TELEMETRY_SDK_NAME } from '../../constant';
+import BaseWrapper from '../base-wrapper';
+
+export default class CohereWrapper extends BaseWrapper {
+ static aiSystem = SemanticConvention.GEN_AI_SYSTEM_COHERE;
+ static _patchEmbed(tracer: Tracer): any {
+ const genAIEndpoint = 'cohere.embed';
+ const traceContent = OpenlitConfig.traceContent;
+
+ return (originalMethod: (...args: any[]) => any) => {
+ return async function (this: any, ...args: any[]) {
+ const span = tracer.startSpan(genAIEndpoint, { kind: SpanKind.CLIENT });
+ return context.with(trace.setSpan(context.active(), span), async () => {
+ try {
+ const response = await originalMethod.apply(this, args);
+ span.setAttributes({
+ [TELEMETRY_SDK_NAME]: SDK_NAME,
+ });
+
+ const model = response.model || 'embed-english-v2.0';
+ const pricingInfo = await OpenlitConfig.updatePricingJson(OpenlitConfig.pricing_json);
+ const cost = OpenLitHelper.getEmbedModelCost(
+ model,
+ pricingInfo,
+ response.meta.billedUnits.inputTokens
+ );
+
+ span.setAttribute(
+ SemanticConvention.GEN_AI_TYPE,
+ SemanticConvention.GEN_AI_TYPE_EMBEDDING
+ );
+
+ const { dimensions, encoding_format = 'float', input, user, texts = [] } = args[0];
+ // Set base span attribues
+ CohereWrapper.setBaseSpanAttributes(span, {
+ genAIEndpoint,
+ model,
+ user,
+ cost,
+ aiSystem: CohereWrapper.aiSystem,
+ });
+
+ // Request Params attributes : Start
+
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_EMBEDDING_FORMAT, encoding_format);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_EMBEDDING_DIMENSION, dimensions);
+ if (traceContent) {
+ span.setAttribute(SemanticConvention.GEN_AI_CONTENT_PROMPT, JSON.stringify(texts));
+ }
+ // Request Params attributes : End
+
+ span.setAttribute(SemanticConvention.GEN_AI_RESPONSE_ID, response.id);
+
+ span.setAttribute(
+ SemanticConvention.GEN_AI_USAGE_PROMPT_TOKENS,
+ response.meta.billedUnits.inputTokens
+ );
+ span.setAttribute(
+ SemanticConvention.GEN_AI_USAGE_TOTAL_TOKENS,
+ response.meta.billedUnits.inputTokens
+ );
+
+ return response;
+ } catch (e: any) {
+ OpenLitHelper.handleException(span, e);
+ } finally {
+ span.end();
+ }
+ });
+ };
+ };
+ }
+
+ static _patchChat(tracer: Tracer): any {
+ const genAIEndpoint = 'cohere.chat';
+ return (originalMethod: (...args: any[]) => any) => {
+ return async function (this: any, ...args: any[]) {
+ const span = tracer.startSpan(genAIEndpoint, { kind: SpanKind.CLIENT });
+ return context
+ .with(trace.setSpan(context.active(), span), async () => {
+ return originalMethod.apply(this, args);
+ })
+ .then((response) => {
+ return CohereWrapper._chat({ args, genAIEndpoint, response, span });
+ })
+ .catch((e: any) => {
+ OpenLitHelper.handleException(span, e);
+ span.end();
+ });
+ };
+ };
+ }
+
+ static _patchChatStream(tracer: Tracer): any {
+ const genAIEndpoint = 'cohere.chat';
+ return (originalMethod: (...args: any[]) => any) => {
+ return async function (this: any, ...args: any[]) {
+ const span = tracer.startSpan(genAIEndpoint, { kind: SpanKind.CLIENT });
+ return context
+ .with(trace.setSpan(context.active(), span), async () => {
+ return originalMethod.apply(this, args);
+ })
+ .then((response) => {
+ return OpenLitHelper.createStreamProxy(
+ response,
+ CohereWrapper._chatGenerator({
+ args,
+ genAIEndpoint,
+ response,
+ span,
+ })
+ );
+ })
+ .catch((e: any) => {
+ OpenLitHelper.handleException(span, e);
+ span.end();
+ });
+ };
+ };
+ }
+
+ static async _chat({
+ args,
+ genAIEndpoint,
+ response,
+ span,
+ }: {
+ args: any[];
+ genAIEndpoint: string;
+ response: any;
+ span: Span;
+ }): Promise<any> {
+ try {
+ await CohereWrapper._chatCommonSetter({
+ args,
+ genAIEndpoint,
+ result: response,
+ span,
+ stream: false,
+ });
+ return response;
+ } catch (e: any) {
+ OpenLitHelper.handleException(span, e);
+ } finally {
+ span.end();
+ }
+ }
+
+ static async *_chatGenerator({
+ args,
+ genAIEndpoint,
+ response,
+ span,
+ }: {
+ args: any[];
+ genAIEndpoint: string;
+ response: any;
+ span: Span;
+ }): AsyncGenerator<unknown, any, unknown> {
+ try {
+ let result = {
+ response_id: '',
+ text: '',
+ generationId: '',
+ chatHistory: [],
+ finishReason: '',
+ meta: {
+ apiVersion: { version: '1' },
+ billedUnits: { inputTokens: 0, outputTokens: 0 },
+ },
+ };
+ for await (const chunk of response) {
+ if (chunk.eventType === 'stream-end') {
+ result = chunk.response;
+ }
+
+ yield chunk;
+ }
+
+ await CohereWrapper._chatCommonSetter({
+ args,
+ genAIEndpoint,
+ result,
+ span,
+ stream: true,
+ });
+
+ return result;
+ } catch (e: any) {
+ OpenLitHelper.handleException(span, e);
+ } finally {
+ span.end();
+ }
+ }
+
+ static async _chatCommonSetter({
+ args,
+ genAIEndpoint,
+ result,
+ span,
+ stream,
+ }: {
+ args: any[];
+ genAIEndpoint: string;
+ result: any;
+ span: Span;
+ stream: boolean;
+ }) {
+ const traceContent = OpenlitConfig.traceContent;
+ const {
+ message,
+ model = 'command-r-plus-08-2024',
+ frequency_penalty = 0,
+ max_tokens = null,
+ presence_penalty = 0,
+ seed = null,
+ temperature = 1,
+ user,
+ tools,
+ } = args[0];
+
+ // Request Params attributes : Start
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_MAX_TOKENS, max_tokens);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_TEMPERATURE, temperature);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_PRESENCE_PENALTY, presence_penalty);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_FREQUENCY_PENALTY, frequency_penalty);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_SEED, seed);
+ span.setAttribute(SemanticConvention.GEN_AI_REQUEST_IS_STREAM, stream);
+
+ if (traceContent) {
+ span.setAttribute(SemanticConvention.GEN_AI_CONTENT_PROMPT, message);
+ }
+ // Request Params attributes : End
+
+ span.setAttribute(SemanticConvention.GEN_AI_TYPE, SemanticConvention.GEN_AI_TYPE_CHAT);
+
+ span.setAttribute(SemanticConvention.GEN_AI_RESPONSE_ID, result.response_id);
+
+ const pricingInfo = await OpenlitConfig.updatePricingJson(OpenlitConfig.pricing_json);
+
+ // Calculate cost of the operation
+ const cost = OpenLitHelper.getChatModelCost(
+ model,
+ pricingInfo,
+ result.meta.billedUnits.inputTokens,
+ result.meta.billedUnits.outputTokens
+ );
+
+ CohereWrapper.setBaseSpanAttributes(span, {
+ genAIEndpoint,
+ model,
+ user,
+ cost,
+ aiSystem: CohereWrapper.aiSystem,
+ });
+
+ span.setAttribute(
+ SemanticConvention.GEN_AI_USAGE_PROMPT_TOKENS,
+ result.meta.billedUnits.inputTokens
+ );
+ span.setAttribute(
+ SemanticConvention.GEN_AI_USAGE_COMPLETION_TOKENS,
+ result.meta.billedUnits.outputTokens
+ );
+ span.setAttribute(
+ SemanticConvention.GEN_AI_USAGE_TOTAL_TOKENS,
+ result.meta.billedUnits.inputTokens + result.meta.billedUnits.outputTokens
+ );
+
+ if (result.finishReason) {
+ span.setAttribute(SemanticConvention.GEN_AI_RESPONSE_FINISH_REASON, result.finishReason);
+ }
+
+ if (tools) {
+ span.setAttribute(SemanticConvention.GEN_AI_CONTENT_COMPLETION, 'Function called with tools');
+ } else {
+ if (traceContent) {
+ span.setAttribute(SemanticConvention.GEN_AI_CONTENT_COMPLETION, result.text);
+ }
+ }
+ }
+}
diff --git a/sdk/typescript/src/instrumentation/index.ts b/sdk/typescript/src/instrumentation/index.ts
index c19d711b..ed243d0d 100644
--- a/sdk/typescript/src/instrumentation/index.ts
+++ b/sdk/typescript/src/instrumentation/index.ts
@@ -4,11 +4,13 @@ import { InstrumentationType, OpenlitInstrumentations } from '../types';
import { TracerProvider } from '@opentelemetry/api';
import OpenAIInstrumentation from './openai';
import AnthropicInstrumentation from './anthropic';
+import CohereInstrumentation from './cohere';
export default class Instrumentations {
static availableInstrumentations: OpenlitInstrumentations = {
openai: new OpenAIInstrumentation(),
anthropic: new AnthropicInstrumentation(),
+ cohere: new CohereInstrumentation(),
};
static setup(
diff --git a/sdk/typescript/src/instrumentation/openai/wrapper.ts b/sdk/typescript/src/instrumentation/openai/wrapper.ts
index b370e149..e1d6a4f8 100644
--- a/sdk/typescript/src/instrumentation/openai/wrapper.ts
+++ b/sdk/typescript/src/instrumentation/openai/wrapper.ts
@@ -1,30 +1,11 @@
-import { Span, SpanKind, SpanStatusCode, Tracer, context, trace } from '@opentelemetry/api';
+import { Span, SpanKind, Tracer, context, trace } from '@opentelemetry/api';
import OpenlitConfig from '../../config';
import OpenLitHelper from '../../helpers';
import SemanticConvention from '../../semantic-convention';
-import { SDK_NAME, TELEMETRY_SDK_NAME } from '../../constant';
-
-export default class OpenAIWrapper {
- static setBaseSpanAttributes(
- span: any,
- { genAIEndpoint, model, user, cost, environment, applicationName }: any
- ) {
- span.setAttributes({
- [TELEMETRY_SDK_NAME]: SDK_NAME,
- });
-
- span.setAttribute(TELEMETRY_SDK_NAME, SDK_NAME);
- span.setAttribute(SemanticConvention.GEN_AI_SYSTEM, SemanticConvention.GEN_AI_SYSTEM_OPENAI);
- span.setAttribute(SemanticConvention.GEN_AI_ENDPOINT, genAIEndpoint);
- span.setAttribute(SemanticConvention.GEN_AI_ENVIRONMENT, environment);
- span.setAttribute(SemanticConvention.GEN_AI_APPLICATION_NAME, applicationName);
- span.setAttribute(SemanticConvention.GEN_AI_REQUEST_MODEL, model);
- span.setAttribute(SemanticConvention.GEN_AI_REQUEST_USER, user);
- if (cost !== undefined) span.setAttribute(SemanticConvention.GEN_AI_USAGE_COST, cost);
-
- span.setStatus({ code: SpanStatusCode.OK });
- }
+import BaseWrapper from '../base-wrapper';
+export default class OpenAIWrapper extends BaseWrapper {
+ static aiSystem = SemanticConvention.GEN_AI_SYSTEM_OPENAI;
static _patchChatCompletionCreate(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.chat.completions';
return (originalMethod: (...args: any[]) => any) => {
@@ -184,8 +165,6 @@ export default class OpenAIWrapper {
result: any;
span: Span;
}) {
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
const {
messages,
@@ -261,8 +240,7 @@ export default class OpenAIWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
span.setAttribute(SemanticConvention.GEN_AI_USAGE_PROMPT_TOKENS, result.usage.prompt_tokens);
@@ -302,8 +280,6 @@ export default class OpenAIWrapper {
static _patchEmbedding(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.embeddings';
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
return (originalMethod: (...args: any[]) => any) => {
@@ -312,9 +288,6 @@ export default class OpenAIWrapper {
return context.with(trace.setSpan(context.active(), span), async () => {
try {
const response = await originalMethod.apply(this, args);
- span.setAttributes({
- [TELEMETRY_SDK_NAME]: SDK_NAME,
- });
const model = response.model || 'text-embedding-ada-002';
const pricingInfo = await OpenlitConfig.updatePricingJson(OpenlitConfig.pricing_json);
@@ -336,8 +309,7 @@ export default class OpenAIWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
// Request Params attributes : Start
@@ -371,8 +343,6 @@ export default class OpenAIWrapper {
static _patchFineTune(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.fine_tuning.jobs';
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
return (originalMethod: (...args: any[]) => any) => {
return async function (this: any, ...args: any[]) {
@@ -380,9 +350,6 @@ export default class OpenAIWrapper {
return context.with(trace.setSpan(context.active(), span), async () => {
try {
const response = await originalMethod.apply(this, args);
- span.setAttributes({
- [TELEMETRY_SDK_NAME]: SDK_NAME,
- });
const model = response.model || 'gpt-3.5-turbo';
const {
@@ -398,8 +365,7 @@ export default class OpenAIWrapper {
genAIEndpoint,
model,
user,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
span.setAttribute(
@@ -446,8 +412,6 @@ export default class OpenAIWrapper {
static _patchImageGenerate(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.images';
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
return (originalMethod: (...args: any[]) => any) => {
return async function (this: any, ...args: any[]) {
@@ -481,8 +445,7 @@ export default class OpenAIWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
// Request Params attributes : Start
@@ -524,8 +487,6 @@ export default class OpenAIWrapper {
static _patchImageVariation(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.images';
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
return (originalMethod: (...args: any[]) => any) => {
return async function (this: any, ...args: any[]) {
@@ -560,8 +521,7 @@ export default class OpenAIWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
// Request Params attributes : Start
@@ -602,8 +562,6 @@ export default class OpenAIWrapper {
static _patchAudioCreate(tracer: Tracer): any {
const genAIEndpoint = 'openai.resources.audio.speech';
- const applicationName = OpenlitConfig.applicationName;
- const environment = OpenlitConfig.environment;
const traceContent = OpenlitConfig.traceContent;
return (originalMethod: (...args: any[]) => any) => {
return async function (this: any, ...args: any[]) {
@@ -628,8 +586,7 @@ export default class OpenAIWrapper {
model,
user,
cost,
- applicationName,
- environment,
+ aiSystem: OpenAIWrapper.aiSystem,
});
// Request Params attributes : Start
diff --git a/sdk/typescript/src/types.ts b/sdk/typescript/src/types.ts
index 196841d2..1afb895c 100644
--- a/sdk/typescript/src/types.ts
+++ b/sdk/typescript/src/types.ts
@@ -2,7 +2,7 @@
import { Resource } from '@opentelemetry/resources';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
-export type InstrumentationType = 'openai' | 'anthropic';
+export type InstrumentationType = 'openai' | 'anthropic' | 'cohere';
export type OpenlitInstrumentations = Partial<Record<InstrumentationType, any>>;