From c0cb40608cbf78ab8dbbe9d4575e07569b04f5bb Mon Sep 17 00:00:00 2001 From: Jessie Wei Date: Wed, 15 May 2024 08:50:43 +1000 Subject: [PATCH] feat: support Claude v3 (#131) --- .ncurc.json | 2 +- .projen/deps.json | 4 + .projenrc.ts | 1 + .syncpackrc.json | 2 +- demo/api/generated/runtime/python/poetry.lock | 6 +- demo/corpus/logic/.projen/deps.json | 12 +- demo/corpus/logic/package.json | 4 +- demo/corpus/logic/src/indexing/vectorstore.ts | 2 +- demo/corpus/logic/src/indexing/worker.ts | 2 +- demo/corpus/logic/src/vectorstore/index.ts | 4 +- demo/website/.projen/deps.json | 10 +- demo/website/package.json | 2 +- .../components/PromptEditor.tsx | 2 +- .../dev-settings/fixtures/prompt-inputs.ts | 4 +- package.json | 1 + packages/galileo-cli/.gitignore | 1 + .../src/lib/account-utils/bedrock.ts | 3 +- packages/galileo-sdk/.projen/deps.json | 12 +- packages/galileo-sdk/package.json | 4 +- packages/galileo-sdk/src/chat/chain.ts | 8 +- packages/galileo-sdk/src/chat/config/index.ts | 2 +- packages/galileo-sdk/src/chat/context.ts | 8 +- .../src/chat/dynamodb/lib/messages.ts | 2 +- .../src/chat/dynamodb/message-history.ts | 5 +- packages/galileo-sdk/src/chat/engine.ts | 2 +- packages/galileo-sdk/src/chat/search.ts | 2 +- .../src/langchain/output_parsers/pojo.ts | 2 +- packages/galileo-sdk/src/langchain/patch.ts | 2 +- .../src/langchain/stores/messages/utils.ts | 2 +- packages/galileo-sdk/src/models/adapter.ts | 2 +- .../src/models/llms/anthropic/claude.test.ts | 6 +- .../src/models/llms/anthropic/claude.ts | 4 +- .../src/models/llms/meta/llama2.test.ts | 2 +- .../models/llms/openassistant/falcon.test.ts | 2 +- packages/galileo-sdk/src/models/llms/utils.ts | 4 +- packages/galileo-sdk/src/prompt/handlebars.ts | 11 +- .../src/prompt/templates/chat/base.ts | 2 +- .../src/prompt/templates/store/system.ts | 17 +- packages/galileo-sdk/src/prompt/types.ts | 4 +- .../src/vectorstores/pgvector/index.ts | 4 +- pnpm-lock.yaml | 1277 ++++++++--------- projenrc/constants.ts | 4 +- projenrc/demo/corpus.ts | 4 +- projenrc/demo/website.ts | 2 +- projenrc/framework/galileo-cli.ts | 1 + projenrc/framework/galileo-sdk.ts | 4 +- 46 files changed, 680 insertions(+), 783 deletions(-) diff --git a/.ncurc.json b/.ncurc.json index 04931e04..bb2492b3 100644 --- a/.ncurc.json +++ b/.ncurc.json @@ -1,3 +1,3 @@ { - "filter": "^(?!(@aws-cdk\\/aws-cognito-identitypool-alpha|@aws-cdk\\/aws-lambda-python-alpha|@aws-cdk\\/aws-sagemaker-alpha|@aws-sdk\\/client-codebuild|@aws-sdk\\/client-cognito-identity-provider|@aws-sdk\\/client-dynamodb|@aws-sdk\\/client-s3|@aws-sdk\\/client-sagemaker-runtime|@aws-sdk\\/client-secrets-manager|@aws-sdk\\/client-service-quotas|@aws-sdk\\/client-sfn|@aws-sdk\\/client-ssm|@aws-sdk\\/client-sts|@aws-sdk\\/credential-providers|@aws-sdk\\/lib-dynamodb|@aws-sdk\\/lib-storage|@aws-sdk\\/rds-signer|@aws-sdk\\/types|@aws\\/pdk|@smithy\\/types|@tanstack\\/react-query|@tanstack\\/react-virtual|@types\\/babel__traverse|@types\\/express|@types\\/express-serve-static-core|@types\\/node|@types\\/node-fetch|@typescript-eslint\\/eslint-plugin|@typescript-eslint\\/parser|@zkochan\\/js-yaml|aenum|aws-cdk|aws-cdk-lib|aws-lambda-powertools|certifi|chalk|constructs|eslint|got|jest-junit|jsii|jsii-rosetta|langchain|node-fetch|npm-check-updates|nth-check|nx|postcss|pydantic|python|python-dateutil|react-scripts|semver|standard-version|swagger-ui-react|typescript|typing_extensions|urllib3|wrap-ansi|zod)).*" + "filter": "^(?!(@aws-cdk\\/aws-cognito-identitypool-alpha|@aws-cdk\\/aws-lambda-python-alpha|@aws-cdk\\/aws-sagemaker-alpha|@aws-sdk\\/client-codebuild|@aws-sdk\\/client-cognito-identity-provider|@aws-sdk\\/client-dynamodb|@aws-sdk\\/client-s3|@aws-sdk\\/client-sagemaker-runtime|@aws-sdk\\/client-secrets-manager|@aws-sdk\\/client-service-quotas|@aws-sdk\\/client-sfn|@aws-sdk\\/client-ssm|@aws-sdk\\/client-sts|@aws-sdk\\/credential-providers|@aws-sdk\\/lib-dynamodb|@aws-sdk\\/lib-storage|@aws-sdk\\/rds-signer|@aws-sdk\\/types|@aws\\/pdk|@langchain\\/community|@langchain\\/core|@smithy\\/types|@tanstack\\/react-query|@tanstack\\/react-virtual|@types\\/babel__traverse|@types\\/express|@types\\/express-serve-static-core|@types\\/node|@types\\/node-fetch|@typescript-eslint\\/eslint-plugin|@typescript-eslint\\/parser|@zkochan\\/js-yaml|aenum|aws-cdk|aws-cdk-lib|aws-lambda-powertools|certifi|chalk|constructs|eslint|got|jest-junit|jsii|jsii-rosetta|langchain|node-fetch|npm-check-updates|nth-check|nx|postcss|pydantic|python|python-dateutil|react-scripts|semver|standard-version|swagger-ui-react|typescript|typing_extensions|urllib3|wrap-ansi|zod)).*" } diff --git a/.projen/deps.json b/.projen/deps.json index ec542027..3d8c2293 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -17,6 +17,10 @@ "name": "@nrwl/devkit", "type": "build" }, + { + "name": "@pnpm/logger", + "type": "build" + }, { "name": "@types/clear", "type": "build" diff --git a/.projenrc.ts b/.projenrc.ts index 7d523589..b83b3a51 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -24,6 +24,7 @@ const monorepo = new MonorepoProject({ 'node-localstorage', 'prompts', 'tsconfig-paths', + '@pnpm/logger' ], tsconfig: { compilerOptions: { diff --git a/.syncpackrc.json b/.syncpackrc.json index 980b0e9f..50695d62 100644 --- a/.syncpackrc.json +++ b/.syncpackrc.json @@ -1,7 +1,7 @@ { "dependencyTypes": [], "dev": true, - "filter": "^(?!(@aws-cdk\\/aws-cognito-identitypool-alpha|@aws-cdk\\/aws-lambda-python-alpha|@aws-cdk\\/aws-sagemaker-alpha|@aws-sdk\\/client-codebuild|@aws-sdk\\/client-cognito-identity-provider|@aws-sdk\\/client-dynamodb|@aws-sdk\\/client-s3|@aws-sdk\\/client-sagemaker-runtime|@aws-sdk\\/client-secrets-manager|@aws-sdk\\/client-service-quotas|@aws-sdk\\/client-sfn|@aws-sdk\\/client-ssm|@aws-sdk\\/client-sts|@aws-sdk\\/credential-providers|@aws-sdk\\/lib-dynamodb|@aws-sdk\\/lib-storage|@aws-sdk\\/rds-signer|@aws-sdk\\/types|@aws\\/pdk|@smithy\\/types|@tanstack\\/react-query|@tanstack\\/react-virtual|@types\\/babel__traverse|@types\\/express|@types\\/express-serve-static-core|@types\\/node|@types\\/node-fetch|@typescript-eslint\\/eslint-plugin|@typescript-eslint\\/parser|@zkochan\\/js-yaml|aenum|aws-cdk|aws-cdk-lib|aws-lambda-powertools|certifi|chalk|constructs|eslint|got|jest-junit|jsii|jsii-rosetta|langchain|node-fetch|npm-check-updates|nth-check|nx|postcss|pydantic|python|python-dateutil|react-scripts|semver|standard-version|swagger-ui-react|typescript|typing_extensions|urllib3|wrap-ansi|zod)).*", + "filter": "^(?!(@aws-cdk\\/aws-cognito-identitypool-alpha|@aws-cdk\\/aws-lambda-python-alpha|@aws-cdk\\/aws-sagemaker-alpha|@aws-sdk\\/client-codebuild|@aws-sdk\\/client-cognito-identity-provider|@aws-sdk\\/client-dynamodb|@aws-sdk\\/client-s3|@aws-sdk\\/client-sagemaker-runtime|@aws-sdk\\/client-secrets-manager|@aws-sdk\\/client-service-quotas|@aws-sdk\\/client-sfn|@aws-sdk\\/client-ssm|@aws-sdk\\/client-sts|@aws-sdk\\/credential-providers|@aws-sdk\\/lib-dynamodb|@aws-sdk\\/lib-storage|@aws-sdk\\/rds-signer|@aws-sdk\\/types|@aws\\/pdk|@langchain\\/community|@langchain\\/core|@smithy\\/types|@tanstack\\/react-query|@tanstack\\/react-virtual|@types\\/babel__traverse|@types\\/express|@types\\/express-serve-static-core|@types\\/node|@types\\/node-fetch|@typescript-eslint\\/eslint-plugin|@typescript-eslint\\/parser|@zkochan\\/js-yaml|aenum|aws-cdk|aws-cdk-lib|aws-lambda-powertools|certifi|chalk|constructs|eslint|got|jest-junit|jsii|jsii-rosetta|langchain|node-fetch|npm-check-updates|nth-check|nx|postcss|pydantic|python|python-dateutil|react-scripts|semver|standard-version|swagger-ui-react|typescript|typing_extensions|urllib3|wrap-ansi|zod)).*", "indent": " ", "overrides": true, "peer": true, diff --git a/demo/api/generated/runtime/python/poetry.lock b/demo/api/generated/runtime/python/poetry.lock index 9474435a..209f3574 100644 --- a/demo/api/generated/runtime/python/poetry.lock +++ b/demo/api/generated/runtime/python/poetry.lock @@ -56,13 +56,13 @@ wrapt = "*" [[package]] name = "botocore" -version = "1.34.94" +version = "1.34.104" description = "Low-level, data-driven core of boto 3." optional = false python-versions = ">=3.8" files = [ - {file = "botocore-1.34.94-py3-none-any.whl", hash = "sha256:f00a79002e0cb9d6895ecd0919c506402850177d7b6c4d2634fa2da362d95bcb"}, - {file = "botocore-1.34.94.tar.gz", hash = "sha256:99b11be9a28f9051af4c96fa121e9c3f22a86d499abd773c9e868b2a38961bae"}, + {file = "botocore-1.34.104-py3-none-any.whl", hash = "sha256:b68ed482e9b4c313129c9948af5a91d0e84840558e6d232a1a27ab0b9733e5b9"}, + {file = "botocore-1.34.104.tar.gz", hash = "sha256:fe36dd3cea4160fbbe27dc1cf89cb7018234350555a26933b2977947052a346a"}, ] [package.dependencies] diff --git a/demo/corpus/logic/.projen/deps.json b/demo/corpus/logic/.projen/deps.json index fc44cf09..ac68e52c 100644 --- a/demo/corpus/logic/.projen/deps.json +++ b/demo/corpus/logic/.projen/deps.json @@ -189,6 +189,16 @@ "name": "@aws/galileo-sdk", "type": "runtime" }, + { + "name": "@langchain/community", + "version": "0.0.55", + "type": "runtime" + }, + { + "name": "@langchain/core", + "version": "0.1.62", + "type": "runtime" + }, { "name": "@middy/core", "type": "runtime" @@ -227,7 +237,7 @@ }, { "name": "langchain", - "version": "0.0.194", + "version": "0.1.36", "type": "runtime" }, { diff --git a/demo/corpus/logic/package.json b/demo/corpus/logic/package.json index 61937ac0..9111937a 100644 --- a/demo/corpus/logic/package.json +++ b/demo/corpus/logic/package.json @@ -70,6 +70,8 @@ "@aws-lambda-powertools/metrics": "^1.12.1", "@aws-lambda-powertools/parameters": "^1.12.1", "@aws/galileo-sdk": "0.0.0", + "@langchain/community": "0.0.55", + "@langchain/core": "0.1.62", "@middy/core": "^4.6.1", "@middy/error-logger": "^4.6.1", "@middy/http-router": "^4.6.1", @@ -79,7 +81,7 @@ "async": "^3.2.4", "dotenv": "^10.0.0", "fast-glob": "^3.3.1", - "langchain": "0.0.194", + "langchain": "0.1.36", "lodash": "^4.17.21", "node-fetch": "^2" }, diff --git a/demo/corpus/logic/src/indexing/vectorstore.ts b/demo/corpus/logic/src/indexing/vectorstore.ts index a691f0ab..08a9ae5e 100644 --- a/demo/corpus/logic/src/indexing/vectorstore.ts +++ b/demo/corpus/logic/src/indexing/vectorstore.ts @@ -1,6 +1,6 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { VectorStore } from 'langchain/vectorstores/base'; +import { VectorStore } from '@langchain/core/vectorstores'; import { getEmbeddingsByModelId } from '../embedding/util'; import { vectorStoreFactory } from '../vectorstore'; diff --git a/demo/corpus/logic/src/indexing/worker.ts b/demo/corpus/logic/src/indexing/worker.ts index 72fbb643..5c26a962 100644 --- a/demo/corpus/logic/src/indexing/worker.ts +++ b/demo/corpus/logic/src/indexing/worker.ts @@ -4,7 +4,7 @@ import fs from 'node:fs/promises'; import { getLogger } from '@aws/galileo-sdk/lib/common'; import { PGVectorStore } from '@aws/galileo-sdk/lib/vectorstores'; import { MetricUnits } from '@aws-lambda-powertools/metrics'; -import { Document } from 'langchain/document'; +import { Document } from '@langchain/core/documents'; import { RecursiveCharacterTextSplitter } from 'langchain/text_splitter'; import { IndexEntity, IndexingCache } from './datastore'; import { chunkArray } from './utils'; diff --git a/demo/corpus/logic/src/vectorstore/index.ts b/demo/corpus/logic/src/vectorstore/index.ts index efe24060..61a74a03 100644 --- a/demo/corpus/logic/src/vectorstore/index.ts +++ b/demo/corpus/logic/src/vectorstore/index.ts @@ -2,8 +2,8 @@ PDX-License-Identifier: Apache-2.0 */ import { PGVectorStore, PGVectorStoreOptions } from '@aws/galileo-sdk/lib/vectorstores'; import { RDSConnConfig, getRDSConnConfig } from '@aws/galileo-sdk/lib/vectorstores/pgvector/rds'; -import { Embeddings } from 'langchain/embeddings/base'; -import { VectorStore } from 'langchain/vectorstores/base'; +import { Embeddings } from '@langchain/core/embeddings'; +import { VectorStore } from '@langchain/core/vectorstores'; import { ENV } from '../env'; let __RDS_CONN__: RDSConnConfig; diff --git a/demo/website/.projen/deps.json b/demo/website/.projen/deps.json index d93cf121..f4913988 100644 --- a/demo/website/.projen/deps.json +++ b/demo/website/.projen/deps.json @@ -224,6 +224,11 @@ "name": "@faker-js/faker", "type": "runtime" }, + { + "name": "@langchain/core", + "version": "0.1.62", + "type": "runtime" + }, { "name": "@tanstack/react-query", "type": "runtime" @@ -265,11 +270,6 @@ "name": "jwt-decode", "type": "runtime" }, - { - "name": "langchain", - "version": "0.0.194", - "type": "runtime" - }, { "name": "lodash", "type": "runtime" diff --git a/demo/website/package.json b/demo/website/package.json index 4f65ad13..5dbcf6a4 100644 --- a/demo/website/package.json +++ b/demo/website/package.json @@ -72,6 +72,7 @@ "@cloudscape-design/collection-hooks": "^1.0.23", "@cloudscape-design/components": "^3.0.381", "@faker-js/faker": "^8.0.2", + "@langchain/core": "0.1.62", "@tanstack/react-query": "^4.35.0", "@tanstack/react-query-devtools": "^4.35.0", "@tanstack/react-virtual": "beta", @@ -82,7 +83,6 @@ "dayjs": "^1.11.10", "immer": "^9.0.21", "jwt-decode": "^3.1.2", - "langchain": "0.0.194", "lodash": "^4.17.21", "nanoid": "^3.3.6", "react": "^18.2.0", diff --git a/demo/website/src/components/chat/dev-settings/ChatConfigForm/components/PromptEditor.tsx b/demo/website/src/components/chat/dev-settings/ChatConfigForm/components/PromptEditor.tsx index a39fc321..68b41881 100644 --- a/demo/website/src/components/chat/dev-settings/ChatConfigForm/components/PromptEditor.tsx +++ b/demo/website/src/components/chat/dev-settings/ChatConfigForm/components/PromptEditor.tsx @@ -152,7 +152,7 @@ export const PromptEditor: FC = (props) => { ) : ( onChange(detail.value)} completions={completions} language="handlebars" diff --git a/demo/website/src/components/chat/dev-settings/fixtures/prompt-inputs.ts b/demo/website/src/components/chat/dev-settings/fixtures/prompt-inputs.ts index 5ffb0b5c..bb30361e 100644 --- a/demo/website/src/components/chat/dev-settings/fixtures/prompt-inputs.ts +++ b/demo/website/src/components/chat/dev-settings/fixtures/prompt-inputs.ts @@ -1,8 +1,8 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { Document } from 'langchain/document'; -import { AIMessage, BaseMessage, HumanMessage } from 'langchain/schema'; +import { Document } from '@langchain/core/documents'; +import { AIMessage, BaseMessage, HumanMessage } from '@langchain/core/messages'; import '@aws/galileo-sdk/lib/langchain/patch'; export const CONTEXT_DOCUMENTS = [ diff --git a/package.json b/package.json index 300603c8..cce95863 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "@commitlint/cli": "^17.7.2", "@commitlint/config-conventional": "^17.7.0", "@nrwl/devkit": "^16.9.1", + "@pnpm/logger": "^5.0.0", "@types/clear": "^0.1.2", "@types/figlet": "^1.5.6", "@types/lodash": "^4.14.199", diff --git a/packages/galileo-cli/.gitignore b/packages/galileo-cli/.gitignore index f0cc8ba6..bdf44680 100644 --- a/packages/galileo-cli/.gitignore +++ b/packages/galileo-cli/.gitignore @@ -44,4 +44,5 @@ junit.xml /dist/ !/.eslintrc.json examples/**/generated/** +pnpm/ !/project.json diff --git a/packages/galileo-cli/src/lib/account-utils/bedrock.ts b/packages/galileo-cli/src/lib/account-utils/bedrock.ts index eea1fc20..b3fdf3be 100644 --- a/packages/galileo-cli/src/lib/account-utils/bedrock.ts +++ b/packages/galileo-cli/src/lib/account-utils/bedrock.ts @@ -61,7 +61,6 @@ export async function listBedrockModels({ export async function listBedrockTextModels(options: Required): Promise { const models = await listBedrockModels(options); return models.filter((v) => { - const modalities = new Set([...v.inputModalities, ...v.outputModalities]); - return modalities.size === 1 && modalities.has(BedrockModality.TEXT); + return v.inputModalities.includes(BedrockModality.TEXT) && v.outputModalities.includes(BedrockModality.TEXT); }); } diff --git a/packages/galileo-sdk/.projen/deps.json b/packages/galileo-sdk/.projen/deps.json index 58728a43..035b035a 100644 --- a/packages/galileo-sdk/.projen/deps.json +++ b/packages/galileo-sdk/.projen/deps.json @@ -235,6 +235,16 @@ "name": "@aws-lambda-powertools/parameters", "type": "runtime" }, + { + "name": "@langchain/community", + "version": "0.0.55", + "type": "runtime" + }, + { + "name": "@langchain/core", + "version": "0.1.62", + "type": "runtime" + }, { "name": "api-typescript-runtime", "type": "runtime" @@ -253,7 +263,7 @@ }, { "name": "langchain", - "version": "0.0.194", + "version": "0.1.36", "type": "runtime" }, { diff --git a/packages/galileo-sdk/package.json b/packages/galileo-sdk/package.json index bffafba5..d824f995 100644 --- a/packages/galileo-sdk/package.json +++ b/packages/galileo-sdk/package.json @@ -78,11 +78,13 @@ "@aws-lambda-powertools/logger": "^1.12.1", "@aws-lambda-powertools/metrics": "^1.12.1", "@aws-lambda-powertools/parameters": "^1.12.1", + "@langchain/community": "0.0.55", + "@langchain/core": "0.1.62", "api-typescript-runtime": "0.0.0", "cross-fetch": "^3.1.8", "handlebars": "^4.7.8", "handlebars-helpers-lite": "^0.2.1", - "langchain": "0.0.194", + "langchain": "0.1.36", "lodash": "^4.17.21", "pg-promise": "^11.5.4", "safe-handlebars": "^1.0.1", diff --git a/packages/galileo-sdk/src/chat/chain.ts b/packages/galileo-sdk/src/chat/chain.ts index 5cc82958..43922786 100644 --- a/packages/galileo-sdk/src/chat/chain.ts +++ b/packages/galileo-sdk/src/chat/chain.ts @@ -1,11 +1,11 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ +import { PromptTemplate } from '@langchain/core/prompts'; +import { BaseRetriever } from '@langchain/core/retrievers'; +import { ChainValues } from '@langchain/core/utils/types'; import { BaseLanguageModel } from 'langchain/base_language'; import { CallbackManagerForChainRun } from 'langchain/callbacks'; import { BaseChain, ChainInputs, LLMChain, QAChainParams, StuffDocumentsChain } from 'langchain/chains'; -import { PromptTemplate } from 'langchain/prompts'; -import { ChainValues } from 'langchain/schema'; -import { BaseRetriever } from 'langchain/schema/retriever'; import { ResolvedLLMChainConfig } from './config/index.js'; import { getLogger } from '../common/index.js'; import { startPerfMetric } from '../common/metrics/index.js'; @@ -222,7 +222,7 @@ export class ChatEngineChain extends BaseChain implements ChatEngineChainInput { const $$CombineDocumentsExecutionTime = startPerfMetric('Chain.QA.ExecutionTime', { highResolution: true, }); - const result = await this.qaChain.call(inputs, runManager?.getChild('combine_documents')); + const result = await this.qaChain.invoke(inputs, runManager?.getChild('combine_documents')); $$CombineDocumentsExecutionTime(); logger.debug('Chain:condenseQuestionChain:output', { output: result }); diff --git a/packages/galileo-sdk/src/chat/config/index.ts b/packages/galileo-sdk/src/chat/config/index.ts index 9af041f4..3a9ea760 100644 --- a/packages/galileo-sdk/src/chat/config/index.ts +++ b/packages/galileo-sdk/src/chat/config/index.ts @@ -1,5 +1,6 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ +import { PromptTemplate } from '@langchain/core/prompts'; import type { ChatEngineConfig, ChatEngineChainConfig, @@ -8,7 +9,6 @@ import type { ChatEngineMemoryConfig, } from 'api-typescript-runtime'; import { BaseLanguageModel } from 'langchain/base_language'; -import { PromptTemplate } from 'langchain/prompts'; import { difference } from 'lodash'; import { ChainType } from '../../schema/index.js'; import { mergeConfig } from '../../utils/merge.js'; diff --git a/packages/galileo-sdk/src/chat/context.ts b/packages/galileo-sdk/src/chat/context.ts index b7e18635..66490cae 100644 --- a/packages/galileo-sdk/src/chat/context.ts +++ b/packages/galileo-sdk/src/chat/context.ts @@ -1,9 +1,9 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ +import { BedrockChat } from '@langchain/community/chat_models/bedrock'; +import { SageMakerEndpoint } from '@langchain/community/llms/sagemaker_endpoint'; +import { PromptTemplate } from '@langchain/core/prompts'; import { BaseLanguageModel } from 'langchain/base_language'; -import { Bedrock } from 'langchain/llms/bedrock'; -import { SageMakerEndpoint } from 'langchain/llms/sagemaker_endpoint'; -import { PromptTemplate } from 'langchain/prompts'; import { merge } from 'lodash'; import { getLogger } from '../common/index.js'; import { ModelAdapter } from '../models/adapter.js'; @@ -97,7 +97,7 @@ export class ChatEngineContext { }; logger.debug('Resolved bedrock kwargs', { modelKwargs }); - llm = new Bedrock({ + llm = new BedrockChat({ verbose: options?.verbose, // Support cross-account endpoint if enabled and provided in env // Otherwise default to execution role credentials diff --git a/packages/galileo-sdk/src/chat/dynamodb/lib/messages.ts b/packages/galileo-sdk/src/chat/dynamodb/lib/messages.ts index 68f76a7a..e86800c5 100644 --- a/packages/galileo-sdk/src/chat/dynamodb/lib/messages.ts +++ b/packages/galileo-sdk/src/chat/dynamodb/lib/messages.ts @@ -9,7 +9,7 @@ import { QueryCommand, QueryCommandInput, } from '@aws-sdk/lib-dynamodb'; -import { Document } from 'langchain/document'; +import { Document } from '@langchain/core/documents'; import { v4 as uuidv4 } from 'uuid'; import { listChatMessageSources } from './sources.js'; import { diff --git a/packages/galileo-sdk/src/chat/dynamodb/message-history.ts b/packages/galileo-sdk/src/chat/dynamodb/message-history.ts index 44aef694..ef477c24 100644 --- a/packages/galileo-sdk/src/chat/dynamodb/message-history.ts +++ b/packages/galileo-sdk/src/chat/dynamodb/message-history.ts @@ -3,8 +3,9 @@ PDX-License-Identifier: Apache-2.0 */ import { DynamoDBClient, DynamoDBClientConfig } from '@aws-sdk/client-dynamodb'; import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'; -import { Document } from 'langchain/document'; -import { BaseMessage, BaseListChatMessageHistory, HumanMessage, AIMessage, StoredMessage } from 'langchain/schema'; +import { BaseListChatMessageHistory } from '@langchain/core/chat_history'; +import { Document } from '@langchain/core/documents'; +import { BaseMessage, HumanMessage, AIMessage, StoredMessage } from '@langchain/core/messages'; import * as lib from './lib/index.js'; import { getLogger } from '../../common/index.js'; import { mapStoredMessagesToChatMessages } from '../../langchain/stores/messages/utils.js'; diff --git a/packages/galileo-sdk/src/chat/engine.ts b/packages/galileo-sdk/src/chat/engine.ts index cd598699..63e40225 100644 --- a/packages/galileo-sdk/src/chat/engine.ts +++ b/packages/galileo-sdk/src/chat/engine.ts @@ -1,8 +1,8 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ import '../langchain/patch.js'; +import { BaseRetriever } from '@langchain/core/retrievers'; import { BaseLanguageModel } from 'langchain/base_language'; -import { BaseRetriever } from 'langchain/schema/retriever'; import { ChatEngineChain, ChatEngineChainFromInput } from './chain.js'; import { ChatEngineConfig, resolveChatEngineConfig } from './config/index.js'; import { DynamoDBChatMessageHistory } from './dynamodb/message-history.js'; diff --git a/packages/galileo-sdk/src/chat/search.ts b/packages/galileo-sdk/src/chat/search.ts index c88e645c..27b70a4e 100644 --- a/packages/galileo-sdk/src/chat/search.ts +++ b/packages/galileo-sdk/src/chat/search.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ +import { Document } from '@langchain/core/documents'; import { fetch } from 'cross-fetch'; -import { Document } from 'langchain/document'; import { RemoteLangChainRetrieverParams, RemoteLangChainRetriever, diff --git a/packages/galileo-sdk/src/langchain/output_parsers/pojo.ts b/packages/galileo-sdk/src/langchain/output_parsers/pojo.ts index e897492f..8c580433 100644 --- a/packages/galileo-sdk/src/langchain/output_parsers/pojo.ts +++ b/packages/galileo-sdk/src/langchain/output_parsers/pojo.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { BaseOutputParser, OutputParserException } from 'langchain/schema/output_parser'; +import { BaseOutputParser, OutputParserException } from '@langchain/core/output_parsers'; export class PojoOutputParser extends BaseOutputParser { static lc_name() { diff --git a/packages/galileo-sdk/src/langchain/patch.ts b/packages/galileo-sdk/src/langchain/patch.ts index f12c1b12..f8c21609 100644 --- a/packages/galileo-sdk/src/langchain/patch.ts +++ b/packages/galileo-sdk/src/langchain/patch.ts @@ -1,6 +1,6 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { BaseMessage } from 'langchain/schema'; +import { BaseMessage } from '@langchain/core/messages'; // Patch langchain BaseMessage prototype to have "type" getter // Currently only has _getType() method and we need simple getter for template diff --git a/packages/galileo-sdk/src/langchain/stores/messages/utils.ts b/packages/galileo-sdk/src/langchain/stores/messages/utils.ts index 3f9062b7..3f61789b 100644 --- a/packages/galileo-sdk/src/langchain/stores/messages/utils.ts +++ b/packages/galileo-sdk/src/langchain/stores/messages/utils.ts @@ -8,7 +8,7 @@ import { HumanMessage, StoredMessage, SystemMessage, -} from 'langchain/schema'; +} from '@langchain/core/messages'; interface StoredMessageV1 { type: string; diff --git a/packages/galileo-sdk/src/models/adapter.ts b/packages/galileo-sdk/src/models/adapter.ts index 4a4a1b74..eeb378a7 100644 --- a/packages/galileo-sdk/src/models/adapter.ts +++ b/packages/galileo-sdk/src/models/adapter.ts @@ -1,6 +1,6 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { BaseSageMakerContentHandler } from 'langchain/llms/sagemaker_endpoint'; +import { BaseSageMakerContentHandler } from '@langchain/community/llms/sagemaker_endpoint'; import { set, get, isEmpty } from 'lodash'; import { BaseChatTemplatePartials } from '../prompt/templates/chat/base.js'; import { ChatTemplateTypedRuntimeRecord, PromptTemplateStore } from '../prompt/templates/store/registry.js'; diff --git a/packages/galileo-sdk/src/models/llms/anthropic/claude.test.ts b/packages/galileo-sdk/src/models/llms/anthropic/claude.test.ts index 279645e3..5dcfdcdf 100644 --- a/packages/galileo-sdk/src/models/llms/anthropic/claude.test.ts +++ b/packages/galileo-sdk/src/models/llms/anthropic/claude.test.ts @@ -2,15 +2,15 @@ PDX-License-Identifier: Apache-2.0 */ // @ts-ignore - .test files are ignored import type {} from '@types/jest'; -import { AIMessage, HumanMessage, SystemMessage } from 'langchain/schema'; -import { CLAUDE_V2_ADAPTER } from './claude'; +import { AIMessage, HumanMessage, SystemMessage } from '@langchain/core/messages'; +import { CLAUDE_ADAPTER } from './claude'; import { resolvePromptTemplateByChainType } from '../../../prompt/templates/store/resolver.js'; import { ChainType } from '../../../schema'; import { ModelAdapter } from '../../adapter'; describe('models/llms/anthropic/claude', () => { describe('adapter', () => { - const adapter = new ModelAdapter(CLAUDE_V2_ADAPTER); + const adapter = new ModelAdapter(CLAUDE_ADAPTER); test('should render qa prompt', async () => { const template = await resolvePromptTemplateByChainType(ChainType.QA, adapter.prompt?.chat?.QA); diff --git a/packages/galileo-sdk/src/models/llms/anthropic/claude.ts b/packages/galileo-sdk/src/models/llms/anthropic/claude.ts index 1009d72b..d4c743db 100644 --- a/packages/galileo-sdk/src/models/llms/anthropic/claude.ts +++ b/packages/galileo-sdk/src/models/llms/anthropic/claude.ts @@ -6,7 +6,7 @@ import { DEFAULT_MAX_NEW_TOKENS } from '../../constants.js'; import type { Kwargs } from '../../types.js'; // https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-templates-and-examples.html#qa-with-context -export const CLAUDE_V2_ADAPTER: IModelAdapter = { +export const CLAUDE_ADAPTER: IModelAdapter = { prompt: { chat: { base: { @@ -54,7 +54,7 @@ Assistant: `, }, }; -export const CLAUDE_V2_KWARGS: Kwargs = { +export const CLAUDE_KWARGS: Kwargs = { temperature: 0, max_tokens_to_sample: DEFAULT_MAX_NEW_TOKENS, stop_sequences: ['\n\nHuman:'], diff --git a/packages/galileo-sdk/src/models/llms/meta/llama2.test.ts b/packages/galileo-sdk/src/models/llms/meta/llama2.test.ts index 23732d25..97d83658 100644 --- a/packages/galileo-sdk/src/models/llms/meta/llama2.test.ts +++ b/packages/galileo-sdk/src/models/llms/meta/llama2.test.ts @@ -2,7 +2,7 @@ PDX-License-Identifier: Apache-2.0 */ // @ts-ignore - .test files are ignored import type {} from '@types/jest'; -import { AIMessage, HumanMessage, SystemMessage } from 'langchain/schema'; +import { AIMessage, HumanMessage, SystemMessage } from '@langchain/core/messages'; import { LLAMA2_ADAPTER } from './llama2.js'; import { resolvePromptTemplateByChainType } from '../../../prompt/templates/store/resolver.js'; import { ChainType } from '../../../schema/index.js'; diff --git a/packages/galileo-sdk/src/models/llms/openassistant/falcon.test.ts b/packages/galileo-sdk/src/models/llms/openassistant/falcon.test.ts index a0f088f0..23127a89 100644 --- a/packages/galileo-sdk/src/models/llms/openassistant/falcon.test.ts +++ b/packages/galileo-sdk/src/models/llms/openassistant/falcon.test.ts @@ -2,7 +2,7 @@ PDX-License-Identifier: Apache-2.0 */ // @ts-ignore - .test files are ignored import type {} from '@types/jest'; -import { AIMessage, HumanMessage, SystemMessage } from 'langchain/schema'; +import { AIMessage, HumanMessage, SystemMessage } from '@langchain/core/messages'; import { FALCON_ADAPTER } from './falcon'; import { resolvePromptTemplateByChainType } from '../../../prompt/templates/store/resolver.js'; import { ChainType } from '../../../schema'; diff --git a/packages/galileo-sdk/src/models/llms/utils.ts b/packages/galileo-sdk/src/models/llms/utils.ts index 26ef6762..d249c469 100644 --- a/packages/galileo-sdk/src/models/llms/utils.ts +++ b/packages/galileo-sdk/src/models/llms/utils.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ import { isEmpty } from 'lodash'; -import { CLAUDE_V2_ADAPTER } from './anthropic/claude.js'; +import { CLAUDE_ADAPTER } from './anthropic/claude.js'; import { ModelAdapter } from '../adapter.js'; import { IModelInfo, isBedrockFramework } from '../types.js'; @@ -24,7 +24,7 @@ export function resolveBedrockModelAdapter(modelId: string): ModelAdapter { const [provider, _modelName] = modelId.split('.', 2); if (provider === 'anthropic') { - return new ModelAdapter(CLAUDE_V2_ADAPTER); + return new ModelAdapter(CLAUDE_ADAPTER); } return new ModelAdapter(); diff --git a/packages/galileo-sdk/src/prompt/handlebars.ts b/packages/galileo-sdk/src/prompt/handlebars.ts index 53e4c3cb..c6c4533c 100644 --- a/packages/galileo-sdk/src/prompt/handlebars.ts +++ b/packages/galileo-sdk/src/prompt/handlebars.ts @@ -1,9 +1,9 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { comparison as comparisonHelpers, string as stringHelpers, math as mathHelpers } from 'handlebars-helpers-lite'; import '../langchain/patch.js'; -import { PromptTemplate } from 'langchain/prompts'; -import { InputValues, PartialValues } from 'langchain/schema'; +import { PromptTemplate } from '@langchain/core/prompts'; +import { InputValues, PartialValues } from '@langchain/core/utils/types'; +import { comparison as comparisonHelpers, string as stringHelpers, math as mathHelpers } from 'handlebars-helpers-lite'; import { merge } from 'lodash'; import { Handlebars } from 'safe-handlebars/dist/handlebars.js'; import { allowUnsafeEval } from 'safe-handlebars/dist/utils.js'; @@ -110,6 +110,10 @@ export class HandlebarsPromptTemplate< * for the UX experience for now. */ flatten(): string { + if (typeof this.template !== 'string') { + return ''; + } + if (this.templatePartials == null) { return this.template; } @@ -131,6 +135,7 @@ export class HandlebarsPromptTemplate< template = template.replace(searchValue, replacement); } } + return template; } } diff --git a/packages/galileo-sdk/src/prompt/templates/chat/base.ts b/packages/galileo-sdk/src/prompt/templates/chat/base.ts index 687e2f7c..2b60be40 100644 --- a/packages/galileo-sdk/src/prompt/templates/chat/base.ts +++ b/packages/galileo-sdk/src/prompt/templates/chat/base.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ +import { AIMessage, BaseMessage, HumanMessage, SystemMessage } from '@langchain/core/messages'; import type Handlebars from 'handlebars'; -import { AIMessage, BaseMessage, HumanMessage, SystemMessage } from 'langchain/schema'; import { HandlebarsTemplatePartials } from '../../types.js'; export interface BaseChatTemplatePartials extends HandlebarsTemplatePartials { diff --git a/packages/galileo-sdk/src/prompt/templates/store/system.ts b/packages/galileo-sdk/src/prompt/templates/store/system.ts index 2a4a50f1..19c79ee0 100644 --- a/packages/galileo-sdk/src/prompt/templates/store/system.ts +++ b/packages/galileo-sdk/src/prompt/templates/store/system.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ import { PromptTemplateStore } from './registry.js'; -import { CLAUDE_V2_ADAPTER } from '../../../models/llms/anthropic/claude.js'; +import { CLAUDE_ADAPTER } from '../../../models/llms/anthropic/claude.js'; import { LLAMA2_ADAPTER } from '../../../models/llms/meta/llama2.js'; import { FALCON_ADAPTER } from '../../../models/llms/openassistant/falcon.js'; import { CHAT_PROMPT_TEMPLATES } from '../chat/index.js'; @@ -9,6 +9,8 @@ import { CHAT_PROMPT_TEMPLATES } from '../chat/index.js'; export enum PromptTemplateStoreSystemId { DEFAULT = 'DEFAULT', ANTHROPIC_CLAUDE_V2 = 'anthropic.claude-v2', + ANTHROPIC_CLAUDE_V3_HAIKU = 'anthropic.claude-3-haiku-20240307-v1:0', + ANTHROPIC_CLAUDE_V3_SONNET = 'anthropic.claude-3-sonnet-20240229-v1:0', OPENASSISTANT_FALCON = 'openassistant.falcon', META_LLAMA_2 = 'meta.llama2', } @@ -17,13 +19,24 @@ PromptTemplateStore.registerSystemChatTemplateRuntimeMap(PromptTemplateStoreSyst PromptTemplateStore.registerSystemChatTemplateRuntimeMap( PromptTemplateStoreSystemId.ANTHROPIC_CLAUDE_V2, - CLAUDE_V2_ADAPTER.prompt?.chat || {}, + CLAUDE_ADAPTER.prompt?.chat || {}, +); + +PromptTemplateStore.registerSystemChatTemplateRuntimeMap( + PromptTemplateStoreSystemId.ANTHROPIC_CLAUDE_V3_HAIKU, + CLAUDE_ADAPTER.prompt?.chat || {}, +); + +PromptTemplateStore.registerSystemChatTemplateRuntimeMap( + PromptTemplateStoreSystemId.ANTHROPIC_CLAUDE_V3_SONNET, + CLAUDE_ADAPTER.prompt?.chat || {}, ); PromptTemplateStore.registerSystemChatTemplateRuntimeMap( PromptTemplateStoreSystemId.OPENASSISTANT_FALCON, FALCON_ADAPTER.prompt?.chat || {}, ); + PromptTemplateStore.registerSystemChatTemplateRuntimeMap( PromptTemplateStoreSystemId.META_LLAMA_2, LLAMA2_ADAPTER.prompt?.chat || {}, diff --git a/packages/galileo-sdk/src/prompt/types.ts b/packages/galileo-sdk/src/prompt/types.ts index c4164b7a..5862854b 100644 --- a/packages/galileo-sdk/src/prompt/types.ts +++ b/packages/galileo-sdk/src/prompt/types.ts @@ -1,7 +1,7 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ -import { PromptTemplateInput } from 'langchain/prompts'; -import { InputValues } from 'langchain/schema'; +import { PromptTemplateInput } from '@langchain/core/prompts'; +import { InputValues } from '@langchain/core/utils/types'; import type { Handlebars } from 'safe-handlebars/dist/handlebars.js'; // Extract the keys of required properties diff --git a/packages/galileo-sdk/src/vectorstores/pgvector/index.ts b/packages/galileo-sdk/src/vectorstores/pgvector/index.ts index 1b6fea82..8109b817 100644 --- a/packages/galileo-sdk/src/vectorstores/pgvector/index.ts +++ b/packages/galileo-sdk/src/vectorstores/pgvector/index.ts @@ -1,9 +1,9 @@ /*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. PDX-License-Identifier: Apache-2.0 */ import { randomUUID } from 'node:crypto'; -import { Document } from 'langchain/document'; +import { Document } from '@langchain/core/documents'; +import { VectorStore } from '@langchain/core/vectorstores'; import { Embeddings } from 'langchain/embeddings/base'; -import { VectorStore } from 'langchain/vectorstores/base'; import pg from 'pg-promise'; import { RDSConnConfig } from './rds.js'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef26f1ec..f4223d0d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,7 +32,7 @@ importers: devDependencies: '@aws/pdk': specifier: 0.22.42 - version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(@pnpm/logger@5.0.0)(@types/node@16.18.39)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37)(typescript@5.2.2) + version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37) '@commitlint/cli': specifier: ^17.7.2 version: 17.7.2 @@ -42,6 +42,9 @@ importers: '@nrwl/devkit': specifier: ^16.9.1 version: 16.9.1(nx@16.0.0) + '@pnpm/logger': + specifier: ^5.0.0 + version: 5.0.0 '@types/clear': specifier: ^0.1.2 version: 0.1.2 @@ -179,7 +182,7 @@ importers: dependencies: '@aws/pdk': specifier: 0.22.42 - version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.104.0-alpha.0)(@pnpm/logger@5.0.0)(@types/node@16.18.39)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37)(typescript@5.2.2) + version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.104.0-alpha.0)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37) api-typescript-runtime: specifier: 0.0.0 version: link:../../runtime/typescript @@ -376,6 +379,12 @@ importers: '@aws/galileo-sdk': specifier: 0.0.0 version: link:../../../packages/galileo-sdk + '@langchain/community': + specifier: 0.0.55 + version: 0.0.55(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) + '@langchain/core': + specifier: 0.1.62 + version: 0.1.62(openai@4.42.0) '@middy/core': specifier: ^4.6.1 version: 4.6.1 @@ -404,8 +413,8 @@ importers: specifier: ^3.3.1 version: 3.3.1 langchain: - specifier: 0.0.194 - version: 0.0.194(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) + specifier: 0.1.36 + version: 0.1.36(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(handlebars@4.7.8)(lodash@4.17.21)(pg@8.11.3) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -574,7 +583,7 @@ importers: version: link:../../packages/galileo-sdk '@aws/pdk': specifier: 0.22.42 - version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(@pnpm/logger@5.0.0)(@types/node@16.18.39)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37)(typescript@5.2.2) + version: 0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37) '@middy/core': specifier: ^4.6.1 version: 4.6.1 @@ -817,6 +826,9 @@ importers: '@faker-js/faker': specifier: ^8.0.2 version: 8.0.2 + '@langchain/core': + specifier: 0.1.62 + version: 0.1.62(openai@4.42.0) '@tanstack/react-query': specifier: ^4.35.0 version: 4.35.0(react-dom@18.2.0)(react@18.2.0) @@ -847,9 +859,6 @@ importers: jwt-decode: specifier: ^3.1.2 version: 3.1.2 - langchain: - specifier: 0.0.194 - version: 0.0.194(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -1438,6 +1447,12 @@ importers: '@aws-lambda-powertools/parameters': specifier: ^1.12.1 version: 1.12.1 + '@langchain/community': + specifier: 0.0.55 + version: 0.0.55(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) + '@langchain/core': + specifier: 0.1.62 + version: 0.1.62(openai@4.42.0) api-typescript-runtime: specifier: 0.0.0 version: link:../../demo/api/generated/runtime/typescript @@ -1451,8 +1466,8 @@ importers: specifier: ^0.2.1 version: 0.2.1(handlebars@4.7.8)(lodash@4.17.21)(moment@2.29.4) langchain: - specifier: 0.0.194 - version: 0.0.194(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) + specifier: 0.1.36 + version: 0.1.36(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(handlebars@4.7.8)(lodash@4.17.21)(pg@8.11.3) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -3415,7 +3430,7 @@ packages: dependencies: tslib: 2.6.2 - /@aws/pdk@0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.104.0-alpha.0)(@pnpm/logger@5.0.0)(@types/node@16.18.39)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37)(typescript@5.2.2): + /@aws/pdk@0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.104.0-alpha.0)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37): resolution: {integrity: sha512-vWfICEhga9kDix2rDZT0bYD1R1qN6v6NjtirV/SKWzbUIeQ/qvYkV1Hu5n+Gnqpj+zrtHPgVXhsOkCuRSHla3w==} hasBin: true peerDependencies: @@ -3426,48 +3441,10 @@ packages: projen: ^0.76.25 dependencies: '@aws-cdk/aws-cognito-identitypool-alpha': 2.104.0-alpha.0(aws-cdk-lib@2.110.0)(constructs@10.3.0) - '@hpcc-js/wasm': 2.14.1 - '@pnpm/reviewing.dependencies-hierarchy': 2.1.4(@pnpm/logger@5.0.0) aws-cdk-lib: 2.110.0(constructs@10.3.0) cdk-nag: 2.27.147(aws-cdk-lib@2.110.0)(constructs@10.3.0) - chalk: 4.1.2 constructs: 10.3.0 - execa: 5.1.1 - find-up: 4.1.0 - findup: 0.1.5 - fs-extra: 11.1.1 - he: 1.2.0 - lodash: 4.17.21 - lodash.clonedeep: 4.5.0 - lodash.isempty: 4.4.0 - lodash.memoize: 4.1.2 - lodash.merge: 4.6.2 - lodash.omit: 4.5.0 - lodash.startcase: 4.4.0 - lodash.uniq: 4.5.0 - lodash.uniqby: 4.7.0 - lodash.words: 4.2.0 - log4js: 6.9.1 - mustache: 4.2.0 - openapi-types: 12.1.3 projen: 0.73.37 - read-pkg-up: 7.0.1 - semver: 7.5.4 - sharp: 0.32.6 - shorthash2: 1.0.3 - svgson: 5.3.1 - to-px: 1.1.0 - traverse: 0.6.7 - ts-graphviz: 1.8.1 - ts-node: 10.9.1(@types/node@16.18.39)(typescript@5.2.2) - word-wrap: 1.2.5 - transitivePeerDependencies: - - '@pnpm/logger' - - '@swc/core' - - '@swc/wasm' - - '@types/node' - - supports-color - - typescript dev: false bundledDependencies: - '@hpcc-js/wasm' @@ -3502,7 +3479,7 @@ packages: - ts-node - word-wrap - /@aws/pdk@0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(@pnpm/logger@5.0.0)(@types/node@16.18.39)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37)(typescript@5.2.2): + /@aws/pdk@0.22.42(@aws-cdk/aws-cognito-identitypool-alpha@2.110.0-alpha.0)(aws-cdk-lib@2.110.0)(cdk-nag@2.27.147)(constructs@10.3.0)(projen@0.73.37): resolution: {integrity: sha512-vWfICEhga9kDix2rDZT0bYD1R1qN6v6NjtirV/SKWzbUIeQ/qvYkV1Hu5n+Gnqpj+zrtHPgVXhsOkCuRSHla3w==} hasBin: true peerDependencies: @@ -3513,48 +3490,10 @@ packages: projen: ^0.76.25 dependencies: '@aws-cdk/aws-cognito-identitypool-alpha': 2.110.0-alpha.0(aws-cdk-lib@2.110.0)(constructs@10.3.0) - '@hpcc-js/wasm': 2.14.1 - '@pnpm/reviewing.dependencies-hierarchy': 2.1.4(@pnpm/logger@5.0.0) aws-cdk-lib: 2.110.0(constructs@10.3.0) cdk-nag: 2.27.147(aws-cdk-lib@2.110.0)(constructs@10.3.0) - chalk: 4.1.2 constructs: 10.3.0 - execa: 5.1.1 - find-up: 4.1.0 - findup: 0.1.5 - fs-extra: 11.1.1 - he: 1.2.0 - lodash: 4.17.21 - lodash.clonedeep: 4.5.0 - lodash.isempty: 4.4.0 - lodash.memoize: 4.1.2 - lodash.merge: 4.6.2 - lodash.omit: 4.5.0 - lodash.startcase: 4.4.0 - lodash.uniq: 4.5.0 - lodash.uniqby: 4.7.0 - lodash.words: 4.2.0 - log4js: 6.9.1 - mustache: 4.2.0 - openapi-types: 12.1.3 projen: 0.73.37 - read-pkg-up: 7.0.1 - semver: 7.5.4 - sharp: 0.32.6 - shorthash2: 1.0.3 - svgson: 5.3.1 - to-px: 1.1.0 - traverse: 0.6.7 - ts-graphviz: 1.8.1 - ts-node: 10.9.1(@types/node@16.18.39)(typescript@5.2.2) - word-wrap: 1.2.5 - transitivePeerDependencies: - - '@pnpm/logger' - - '@swc/core' - - '@swc/wasm' - - '@types/node' - - supports-color - - typescript bundledDependencies: - '@hpcc-js/wasm' - '@pnpm/reviewing.dependencies-hierarchy' @@ -5991,12 +5930,6 @@ packages: tslib: 2.6.2 dev: false - /@hpcc-js/wasm@2.14.1: - resolution: {integrity: sha512-ncPvj0dEjoye8jD1NAwdThXlZ5mpuGRyRwaNWU6JVBgyT8TewVDmG+RAOXPysyaP1Ui8Lm7562W4KawZtPwa1A==} - hasBin: true - dependencies: - yargs: 17.7.2 - /@humanwhocodes/config-array@0.11.10: resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==} engines: {node: '>=10.10.0'} @@ -6563,6 +6496,351 @@ packages: /@juggle/resize-observer@3.4.0: resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==} + /@langchain/community@0.0.55(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3): + resolution: {integrity: sha512-JMlmzsOtdexQavFWPRZHAnlTnEKnYqlqFXo7YSVOGclW0pAaePT6oH+BNLhX9uCb2wZYBFUgdKm5eN2CpHb3eg==} + engines: {node: '>=18'} + peerDependencies: + '@aws-crypto/sha256-js': ^5.0.0 + '@aws-sdk/client-bedrock-agent-runtime': ^3.485.0 + '@aws-sdk/client-bedrock-runtime': ^3.422.0 + '@aws-sdk/client-dynamodb': ^3.310.0 + '@aws-sdk/client-kendra': ^3.352.0 + '@aws-sdk/client-lambda': ^3.310.0 + '@aws-sdk/client-sagemaker-runtime': ^3.310.0 + '@aws-sdk/client-sfn': ^3.310.0 + '@aws-sdk/credential-provider-node': ^3.388.0 + '@azure/search-documents': ^12.0.0 + '@clickhouse/client': ^0.2.5 + '@cloudflare/ai': '*' + '@datastax/astra-db-ts': ^1.0.0 + '@elastic/elasticsearch': ^8.4.0 + '@getmetal/metal-sdk': '*' + '@getzep/zep-js': ^0.9.0 + '@gomomento/sdk': ^1.51.1 + '@gomomento/sdk-core': ^1.51.1 + '@google-ai/generativelanguage': ^0.2.1 + '@gradientai/nodejs-sdk': ^1.2.0 + '@huggingface/inference': ^2.6.4 + '@mozilla/readability': '*' + '@neondatabase/serverless': '*' + '@opensearch-project/opensearch': '*' + '@pinecone-database/pinecone': '*' + '@planetscale/database': ^1.8.0 + '@premai/prem-sdk': ^0.3.25 + '@qdrant/js-client-rest': ^1.8.2 + '@raycast/api': ^1.55.2 + '@rockset/client': ^0.9.1 + '@smithy/eventstream-codec': ^2.0.5 + '@smithy/protocol-http': ^3.0.6 + '@smithy/signature-v4': ^2.0.10 + '@smithy/util-utf8': ^2.0.0 + '@supabase/postgrest-js': ^1.1.1 + '@supabase/supabase-js': ^2.10.0 + '@tensorflow-models/universal-sentence-encoder': '*' + '@tensorflow/tfjs-converter': '*' + '@tensorflow/tfjs-core': '*' + '@upstash/redis': ^1.20.6 + '@upstash/vector': ^1.0.7 + '@vercel/kv': ^0.2.3 + '@vercel/postgres': ^0.5.0 + '@writerai/writer-sdk': ^0.40.2 + '@xata.io/client': ^0.28.0 + '@xenova/transformers': ^2.5.4 + '@zilliz/milvus2-sdk-node': '>=2.2.7' + better-sqlite3: ^9.4.0 + cassandra-driver: ^4.7.2 + cborg: ^4.1.1 + chromadb: '*' + closevector-common: 0.1.3 + closevector-node: 0.1.6 + closevector-web: 0.1.6 + cohere-ai: '*' + convex: ^1.3.1 + couchbase: ^4.3.0 + discord.js: ^14.14.1 + dria: ^0.0.3 + duck-duck-scrape: ^2.2.5 + faiss-node: ^0.5.1 + firebase-admin: ^11.9.0 || ^12.0.0 + google-auth-library: ^8.9.0 + googleapis: ^126.0.1 + hnswlib-node: ^3.0.0 + html-to-text: ^9.0.5 + interface-datastore: ^8.2.11 + ioredis: ^5.3.2 + it-all: ^3.0.4 + jsdom: '*' + jsonwebtoken: ^9.0.2 + llmonitor: ^0.5.9 + lodash: ^4.17.21 + lunary: ^0.6.11 + mongodb: '>=5.2.0' + mysql2: ^3.3.3 + neo4j-driver: '*' + node-llama-cpp: '*' + pg: ^8.11.0 + pg-copy-streams: ^6.0.5 + pickleparser: ^0.2.1 + portkey-ai: ^0.1.11 + redis: '*' + replicate: ^0.18.0 + typeorm: ^0.3.12 + typesense: ^1.5.3 + usearch: ^1.1.1 + vectordb: ^0.1.4 + voy-search: 0.6.2 + weaviate-ts-client: '*' + web-auth-library: ^1.0.3 + ws: ^8.14.2 + peerDependenciesMeta: + '@aws-crypto/sha256-js': + optional: true + '@aws-sdk/client-bedrock-agent-runtime': + optional: true + '@aws-sdk/client-bedrock-runtime': + optional: true + '@aws-sdk/client-dynamodb': + optional: true + '@aws-sdk/client-kendra': + optional: true + '@aws-sdk/client-lambda': + optional: true + '@aws-sdk/client-sagemaker-runtime': + optional: true + '@aws-sdk/client-sfn': + optional: true + '@aws-sdk/credential-provider-node': + optional: true + '@azure/search-documents': + optional: true + '@clickhouse/client': + optional: true + '@cloudflare/ai': + optional: true + '@datastax/astra-db-ts': + optional: true + '@elastic/elasticsearch': + optional: true + '@getmetal/metal-sdk': + optional: true + '@getzep/zep-js': + optional: true + '@gomomento/sdk': + optional: true + '@gomomento/sdk-core': + optional: true + '@google-ai/generativelanguage': + optional: true + '@gradientai/nodejs-sdk': + optional: true + '@huggingface/inference': + optional: true + '@mozilla/readability': + optional: true + '@neondatabase/serverless': + optional: true + '@opensearch-project/opensearch': + optional: true + '@pinecone-database/pinecone': + optional: true + '@planetscale/database': + optional: true + '@premai/prem-sdk': + optional: true + '@qdrant/js-client-rest': + optional: true + '@raycast/api': + optional: true + '@rockset/client': + optional: true + '@smithy/eventstream-codec': + optional: true + '@smithy/protocol-http': + optional: true + '@smithy/signature-v4': + optional: true + '@smithy/util-utf8': + optional: true + '@supabase/postgrest-js': + optional: true + '@supabase/supabase-js': + optional: true + '@tensorflow-models/universal-sentence-encoder': + optional: true + '@tensorflow/tfjs-converter': + optional: true + '@tensorflow/tfjs-core': + optional: true + '@upstash/redis': + optional: true + '@upstash/vector': + optional: true + '@vercel/kv': + optional: true + '@vercel/postgres': + optional: true + '@writerai/writer-sdk': + optional: true + '@xata.io/client': + optional: true + '@xenova/transformers': + optional: true + '@zilliz/milvus2-sdk-node': + optional: true + better-sqlite3: + optional: true + cassandra-driver: + optional: true + cborg: + optional: true + chromadb: + optional: true + closevector-common: + optional: true + closevector-node: + optional: true + closevector-web: + optional: true + cohere-ai: + optional: true + convex: + optional: true + couchbase: + optional: true + discord.js: + optional: true + dria: + optional: true + duck-duck-scrape: + optional: true + faiss-node: + optional: true + firebase-admin: + optional: true + google-auth-library: + optional: true + googleapis: + optional: true + hnswlib-node: + optional: true + html-to-text: + optional: true + interface-datastore: + optional: true + ioredis: + optional: true + it-all: + optional: true + jsdom: + optional: true + jsonwebtoken: + optional: true + llmonitor: + optional: true + lodash: + optional: true + lunary: + optional: true + mongodb: + optional: true + mysql2: + optional: true + neo4j-driver: + optional: true + node-llama-cpp: + optional: true + pg: + optional: true + pg-copy-streams: + optional: true + pickleparser: + optional: true + portkey-ai: + optional: true + redis: + optional: true + replicate: + optional: true + typeorm: + optional: true + typesense: + optional: true + usearch: + optional: true + vectordb: + optional: true + voy-search: + optional: true + weaviate-ts-client: + optional: true + web-auth-library: + optional: true + ws: + optional: true + dependencies: + '@aws-crypto/sha256-js': 5.0.0 + '@aws-sdk/client-dynamodb': 3.451.0 + '@aws-sdk/client-sagemaker-runtime': 3.451.0 + '@langchain/core': 0.1.62(openai@4.42.0) + '@langchain/openai': 0.0.28 + expr-eval: 2.0.2 + flat: 5.0.2 + langsmith: 0.1.23(openai@4.42.0) + lodash: 4.17.21 + pg: 8.11.3 + uuid: 9.0.0 + zod: 3.22.4 + zod-to-json-schema: 3.23.0(zod@3.22.4) + transitivePeerDependencies: + - encoding + - openai + - supports-color + dev: false + + /@langchain/core@0.1.62(openai@4.42.0): + resolution: {integrity: sha512-PsBM/x0wxVvVPawKak2MFjxEneogipf212yO+rLf+2M3RDepCpYCdn1NBWgfmC+AWpmBYx/8zM7Y4QW7Kg2Wjw==} + engines: {node: '>=18'} + dependencies: + ansi-styles: 5.2.0 + camelcase: 6.3.0 + decamelize: 1.2.0 + js-tiktoken: 1.0.11 + langsmith: 0.1.23(openai@4.42.0) + ml-distance: 4.0.1 + mustache: 4.2.0 + p-queue: 6.6.2 + p-retry: 4.6.2 + uuid: 9.0.0 + zod: 3.22.4 + zod-to-json-schema: 3.23.0(zod@3.22.4) + transitivePeerDependencies: + - openai + dev: false + + /@langchain/openai@0.0.28: + resolution: {integrity: sha512-2s1RA3/eAnz4ahdzsMPBna9hfAqpFNlWdHiPxVGZ5yrhXsbLWWoPcF+22LCk9t0HJKtazi2GCIWc0HVXH9Abig==} + engines: {node: '>=18'} + dependencies: + '@langchain/core': 0.1.62(openai@4.42.0) + js-tiktoken: 1.0.11 + openai: 4.42.0 + zod: 3.22.4 + zod-to-json-schema: 3.23.0(zod@3.22.4) + transitivePeerDependencies: + - encoding + - supports-color + dev: false + + /@langchain/textsplitters@0.0.0: + resolution: {integrity: sha512-3hPesWomnmVeYMppEGYbyv0v/sRUugUdlFBNn9m1ueJYHAIKbvCErkWxNUH3guyKKYgJVrkvZoQxcd9faucSaw==} + engines: {node: '>=18'} + dependencies: + '@langchain/core': 0.1.62(openai@4.42.0) + js-tiktoken: 1.0.11 + transitivePeerDependencies: + - openai + dev: false + /@leichtgewicht/ip-codec@2.0.4: resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} @@ -7144,111 +7422,13 @@ packages: engines: {node: '>=12.22.0'} dev: true - /@pnpm/constants@7.1.1: - resolution: {integrity: sha512-31pZqMtjwV+Vaq7MaPrT1EoDFSYwye3dp6BiHIGRJmVThCQwySRKM7hCvqqI94epNkqFAAYoWrNynWoRYosGdw==} - engines: {node: '>=16.14'} - - /@pnpm/crypto.base32-hash@2.0.0: - resolution: {integrity: sha512-3ttOeHBpmWRbgJrpDQ8Nwd3W8s8iuiP5YZM0JRyKWaMtX8lu9d7/AKyxPmhYsMJuN+q/1dwHa7QFeDZJ53b0oA==} - engines: {node: '>=16.14'} - dependencies: - rfc4648: 1.5.3 - - /@pnpm/dependency-path@2.1.5: - resolution: {integrity: sha512-Ki7v96NDlUzkIkgujSl+3sDY/nMjujOaDOTmjEeBebPiow53Y9Bw/UnxI8C2KKsnm/b7kUJPeFVbOhg3HMp7/Q==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/crypto.base32-hash': 2.0.0 - '@pnpm/types': 9.4.0 - encode-registry: 3.0.1 - semver: 7.5.4 - - /@pnpm/error@5.0.2: - resolution: {integrity: sha512-0TEm+tWNYm+9uh6DSKyRbv8pv/6b4NL0PastLvMxIoqZbBZ5Zj1cYi332R9xsSUi31ZOsu2wpgn/bC7DA9hrjg==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/constants': 7.1.1 - - /@pnpm/git-utils@1.0.0: - resolution: {integrity: sha512-lUI+XrzOJN4zdPGOGnFUrmtXAXpXi8wD8OI0nWOZmlh+raqbLzC3VkXu1zgaduOK6YonOcnQW88O+ojav1rAdA==} - engines: {node: '>=16.14'} - dependencies: - execa: /safe-execa@0.1.2 - - /@pnpm/lockfile-file@8.1.4(@pnpm/logger@5.0.0): - resolution: {integrity: sha512-0HmooRDED6Kl3nliwDJXQ+ymhfvuPNgSOF9dEy7KcFn2iOm47eRqMugk7xOa3WvEXzHVIT54clqCSzF16OV54w==} - engines: {node: '>=16.14'} - peerDependencies: - '@pnpm/logger': ^5.0.0 - dependencies: - '@pnpm/constants': 7.1.1 - '@pnpm/dependency-path': 2.1.5 - '@pnpm/error': 5.0.2 - '@pnpm/git-utils': 1.0.0 - '@pnpm/lockfile-types': 5.1.3 - '@pnpm/logger': 5.0.0 - '@pnpm/merge-lockfile-changes': 5.0.5 - '@pnpm/types': 9.4.0 - '@pnpm/util.lex-comparator': 1.0.0 - '@zkochan/rimraf': 2.1.3 - comver-to-semver: 1.0.0 - js-yaml: /@zkochan/js-yaml@0.0.6 - normalize-path: 3.0.0 - ramda: /@pnpm/ramda@0.28.1 - semver: 7.5.4 - sort-keys: 4.2.0 - strip-bom: 4.0.0 - write-file-atomic: 5.0.1 - - /@pnpm/lockfile-types@5.1.3: - resolution: {integrity: sha512-dOVvpqLwCKfKdH4Civ+FwM1jRfiNc3w8QfgbLemFXbpPIQxeIm6qt2HCGafz65SJGbRS5DOe9DKxSJg4QkmStQ==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/types': 9.4.0 - - /@pnpm/lockfile-utils@9.0.1: - resolution: {integrity: sha512-HUvx7irF4MvvE/il6s3DEIPu11qhL1tenUQXR5vOLKd3+/mTDhDsCUQC5WXCO1nV9O2aQMQ/QMDIY29miprh0A==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/dependency-path': 2.1.5 - '@pnpm/lockfile-types': 5.1.3 - '@pnpm/pick-fetcher': 2.0.1 - '@pnpm/resolver-base': 11.0.0 - '@pnpm/types': 9.4.0 - get-npm-tarball-url: 2.0.3 - ramda: /@pnpm/ramda@0.28.1 - /@pnpm/logger@5.0.0: resolution: {integrity: sha512-YfcB2QrX+Wx1o6LD1G2Y2fhDhOix/bAY/oAnMpHoNLsKkWIRbt1oKLkIFvxBMzLwAEPqnYWguJrYC+J6i4ywbw==} engines: {node: '>=12.17'} dependencies: - bole: 5.0.9 + bole: 5.0.12 ndjson: 2.0.0 - - /@pnpm/matcher@5.0.0: - resolution: {integrity: sha512-uh+JBmW8XHGwz9x0K0Ok+TtMiu3ghEaqHHm7dqIubitBP8y9Y0LLP6D2fxWblogjpVzSlH3DpDR1Vicuhw9/cQ==} - engines: {node: '>=16.14'} - dependencies: - escape-string-regexp: 4.0.0 - - /@pnpm/merge-lockfile-changes@5.0.5: - resolution: {integrity: sha512-4jJnoWcWieq19+qTC1ydXTfHxkuP46FR6Rbhyu+uovyPGF764q44bp2RTMwxGbSrYjqTf6IQuN0Gl0ViKhi/1Q==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/lockfile-types': 5.1.3 - comver-to-semver: 1.0.0 - ramda: /@pnpm/ramda@0.28.1 - semver: 7.5.4 - - /@pnpm/modules-yaml@12.1.4: - resolution: {integrity: sha512-Pwbcn4WBeEPNws1Bxd3ntWjg3hA2BijZrurUW5HLy/poZ77AyUkiMafeLk0bxNovfxar+S73AxPiDh7n6yN0fA==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/types': 9.4.0 - is-windows: 1.0.2 - ramda: /@pnpm/ramda@0.28.1 - read-yaml-file: 2.1.0 - write-yaml-file: 5.0.0 + dev: true /@pnpm/network.ca-file@1.0.2: resolution: {integrity: sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==} @@ -7257,14 +7437,6 @@ packages: graceful-fs: 4.2.10 dev: true - /@pnpm/normalize-registries@5.0.4: - resolution: {integrity: sha512-ysADGqYblIwUJAnA3kxXylpt1C7rN29z3q02cmHQeQE9uZiQM6AXD+r4jJIPPpYFgc3Tl7wyCBubqvhqHExlsA==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/types': 9.4.0 - normalize-registry-url: 2.0.0 - ramda: /@pnpm/ramda@0.28.1 - /@pnpm/npm-conf@2.2.2: resolution: {integrity: sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==} engines: {node: '>=12'} @@ -7274,71 +7446,6 @@ packages: config-chain: 1.1.13 dev: true - /@pnpm/npm-package-arg@1.0.0: - resolution: {integrity: sha512-oQYP08exi6mOPdAZZWcNIGS+KKPsnNwUBzSuAEGWuCcqwMAt3k/WVCqVIXzBxhO5sP2b43og69VHmPj6IroKqw==} - engines: {node: '>=14.6'} - dependencies: - hosted-git-info: 4.1.0 - semver: 7.5.4 - validate-npm-package-name: 4.0.0 - - /@pnpm/pick-fetcher@2.0.1: - resolution: {integrity: sha512-rW9IqroTLSdrFgCRfxDOyL845e3ju0Lt8HmfljgJLIR8mIoCE6PUR7+JouoSUcauAx28mSMbYbbRYXKlxacdiA==} - engines: {node: '>=16.14'} - - /@pnpm/ramda@0.28.1: - resolution: {integrity: sha512-zcAG+lvU0fMziNeGXpPyCyCJYp5ZVrPElEE4t14jAmViaihohocZ+dDkcRIyAomox8pQsuZnv1EyHR+pOhmUWw==} - - /@pnpm/read-modules-dir@6.0.1: - resolution: {integrity: sha512-/h+3VB1j+hhUlEYkE+dAH5WbhR/qYDDvliqWQxN/AA0CYAFwMud5z4FOKzYHgY6RD+KVVgEelLquxCi7fKvT8A==} - engines: {node: '>=16.14'} - dependencies: - graceful-fs: 4.2.11 - - /@pnpm/read-package-json@8.0.5: - resolution: {integrity: sha512-FzG1pjcE5uVKWAibgx4/0efTQnP9rNQQXc04MqSPqQJtrMmSHlGuTbF1JCHY/LXCXGOutmcf8oUJGmFWPIe/XQ==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/error': 5.0.2 - '@pnpm/types': 9.4.0 - load-json-file: 6.2.0 - normalize-package-data: 5.0.0 - - /@pnpm/resolver-base@11.0.0: - resolution: {integrity: sha512-oxfjO8Ie6aBQPXSqOWGJP9s0xj9Z4cbRI7fK63WKhjwmNH4CTrSfikRL2o4FoXo2APAbJEUp2lCxx+86dq2tUg==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/types': 9.4.0 - - /@pnpm/reviewing.dependencies-hierarchy@2.1.4(@pnpm/logger@5.0.0): - resolution: {integrity: sha512-idAC4JKbJMC0RnDhkwU8BdExDjsaIMxG6ljO1vfmTsaCou7uojILQV3vacQdrVwEk1ANovS/+4eDmxSU6tmMCw==} - engines: {node: '>=16.14'} - dependencies: - '@pnpm/dependency-path': 2.1.5 - '@pnpm/lockfile-file': 8.1.4(@pnpm/logger@5.0.0) - '@pnpm/lockfile-utils': 9.0.1 - '@pnpm/matcher': 5.0.0 - '@pnpm/modules-yaml': 12.1.4 - '@pnpm/normalize-registries': 5.0.4 - '@pnpm/npm-package-arg': 1.0.0 - '@pnpm/read-modules-dir': 6.0.1 - '@pnpm/read-package-json': 8.0.5 - '@pnpm/types': 9.4.0 - normalize-path: 3.0.0 - realpath-missing: 1.1.0 - resolve-link-target: 2.0.0 - semver: 7.5.4 - transitivePeerDependencies: - - '@pnpm/logger' - - /@pnpm/types@9.4.0: - resolution: {integrity: sha512-IRDuIuNobLRQe0UyY2gbrrTzYS46tTNvOEfL6fOf0Qa8NyxUzeXz946v7fQuQE3LSBf8ENBC5SXhRmDl+mBEqA==} - engines: {node: '>=16.14'} - - /@pnpm/util.lex-comparator@1.0.0: - resolution: {integrity: sha512-3aBQPHntVgk5AweBWZn+1I/fqZ9krK/w01197aYVkAJQGftb+BVWgEepxY5GChjSW12j52XX+CmfynYZ/p0DFQ==} - engines: {node: '>=12.22.0'} - /@radix-ui/number@1.0.1: resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==} dependencies: @@ -10693,6 +10800,7 @@ packages: /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} + dev: true /@types/ora@3.2.0: resolution: {integrity: sha512-jll99xUKpiFbIFZSQcxm4numfsLaOWBzWNaRk3PvTSE7BPqTzzOCFmS0mQ7m8qkTfmYhuYbehTGsxkvRLPC++w==} @@ -11395,25 +11503,6 @@ packages: tslib: 2.6.2 dev: true - /@zkochan/js-yaml@0.0.6: - resolution: {integrity: sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==} - hasBin: true - dependencies: - argparse: 2.0.1 - - /@zkochan/rimraf@2.1.3: - resolution: {integrity: sha512-mCfR3gylCzPC+iqdxEA6z5SxJeOgzgbwmyxanKriIne5qZLswDe/M43aD3p5MNzwzXRhbZg/OX+MpES6Zk1a6A==} - engines: {node: '>=12.10'} - dependencies: - rimraf: 3.0.2 - - /@zkochan/which@2.0.3: - resolution: {integrity: sha512-C1ReN7vt2/2O0fyTsx5xnbQuxBrmG5NMSbcIkPKCCfCTJgpZBsuRYzFXHj3nVq8vTfK7vxHUmzfCpSHgO7j4rg==} - engines: {node: '>= 8'} - hasBin: true - dependencies: - isexe: 2.0.0 - /@zxing/text-encoding@0.9.0: resolution: {integrity: sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==} requiresBuild: true @@ -12085,9 +12174,6 @@ packages: dependencies: dequal: 2.0.3 - /b4a@1.6.4: - resolution: {integrity: sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==} - /babel-core@7.0.0-bridge.0(@babel/core@7.22.9): resolution: {integrity: sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==} peerDependencies: @@ -12421,11 +12507,12 @@ packages: transitivePeerDependencies: - supports-color - /bole@5.0.9: - resolution: {integrity: sha512-35GeBG6T7GW9VmLDF2IoKAtFCqMjmmq1uICbsICI0pID7ZAyUKlf7dg1wpXmn9GcMKHtg0S19CPMU5yfY3tv+g==} + /bole@5.0.12: + resolution: {integrity: sha512-G5H5siOlUrcyvYr7kVlQyYMWip0dZ8qa+Uiy+d9QxOvBY2eaP/g8YsJVwvf3VIMbXmYxZIAOmmsuN3rL5r6gwQ==} dependencies: fast-safe-stringify: 2.1.1 individual: 3.0.0 + dev: true /bonjour-service@1.1.1: resolution: {integrity: sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==} @@ -13093,34 +13180,17 @@ packages: /color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - /color-string@1.9.1: - resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==} - dependencies: - color-name: 1.1.4 - simple-swizzle: 0.2.2 - /color-support@1.1.3: resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} hasBin: true dev: true - /color@4.2.3: - resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==} - engines: {node: '>=12.5.0'} - dependencies: - color-convert: 2.0.1 - color-string: 1.9.1 - /colord@2.9.3: resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==} /colorette@2.0.20: resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - /colors@0.6.2: - resolution: {integrity: sha512-OsSVtHK8Ir8r3+Fxw/b4jS1ZLPXkV6ZxDRJQzeD7qo0SqMXWrHDM71DgYzPMHY8SFJ0Ao+nNU2p1MmwdzKqPrw==} - engines: {node: '>=0.1.90'} - /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -13139,10 +13209,6 @@ packages: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} - /commander@2.1.0: - resolution: {integrity: sha512-J2wnb6TKniXNOtoHS8TSrG9IOQluPrsmyAJ8oCUJOBmv+uLBCyPYAZkD2jFvw2DCzIXNnISIM01NIvr35TkBMQ==} - engines: {node: '>= 0.6.x'} - /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -13256,10 +13322,6 @@ packages: transitivePeerDependencies: - supports-color - /comver-to-semver@1.0.0: - resolution: {integrity: sha512-gcGtbRxjwROQOdXLUWH1fQAXqThUVRZ219aAwgtX3KfYw429/Zv6EIJRf5TBSzWdAGwePmqH7w70WTaX4MDqag==} - engines: {node: '>=12.17'} - /concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -13990,6 +14052,7 @@ packages: /date-format@4.0.14: resolution: {integrity: sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==} engines: {node: '>=4.0'} + dev: true /dateformat@3.0.3: resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} @@ -14104,13 +14167,6 @@ packages: /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - /deep-rename-keys@0.2.1: - resolution: {integrity: sha512-RHd9ABw4Fvk+gYDWqwOftG849x0bYOySl/RgX0tLI9i27ZIeSO91mLZJEp7oPHOMFqHvpgu21YptmDt0FYD/0A==} - engines: {node: '>=0.10.0'} - dependencies: - kind-of: 3.2.2 - rename-keys: 1.2.0 - /deepmerge@4.3.1: resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} engines: {node: '>=0.10.0'} @@ -14218,6 +14274,8 @@ packages: resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} engines: {node: '>=8'} requiresBuild: true + dev: false + optional: true /detect-newline@2.1.0: resolution: {integrity: sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==} @@ -14442,7 +14500,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.4.0-dev.20231217 + typescript: 5.5.0-dev.20240512 dev: true /drange@1.1.1: @@ -14530,12 +14588,6 @@ packages: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} engines: {node: '>= 4'} - /encode-registry@3.0.1: - resolution: {integrity: sha512-6qOwkl1g0fv0DN3Y3ggr2EaZXN71aoAqPp3p/pVaWSBSIo+YjLOWN61Fva43oVyQNPf7kgm8lkudzlzojwE2jw==} - engines: {node: '>=10'} - dependencies: - mem: 8.1.1 - /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -15382,9 +15434,6 @@ packages: engines: {node: '>=6'} dev: false - /eventemitter3@2.0.3: - resolution: {integrity: sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg==} - /eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} @@ -15439,6 +15488,8 @@ packages: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} engines: {node: '>=6'} requiresBuild: true + dev: false + optional: true /expand-tilde@2.0.2: resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==} @@ -15582,9 +15633,6 @@ packages: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} dev: true - /fast-fifo@1.3.2: - resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} - /fast-glob@3.2.7: resolution: {integrity: sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==} engines: {node: '>=8'} @@ -15631,6 +15679,7 @@ packages: /fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + dev: true /fast-xml-parser@4.2.5: resolution: {integrity: sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==} @@ -15862,14 +15911,6 @@ packages: resolve-dir: 1.0.1 dev: true - /findup@0.1.5: - resolution: {integrity: sha512-Udxo3C9A6alt2GZ2MNsgnIvX7De0V3VGxeP/x98NSVgSlizcDHdmJza61LI7zJy4OEtSiJyE72s0/+tBl5/ZxA==} - engines: {node: '>=0.6'} - hasBin: true - dependencies: - colors: 0.6.2 - commander: 2.1.0 - /flat-cache@3.0.4: resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -16160,6 +16201,7 @@ packages: /get-npm-tarball-url@2.0.3: resolution: {integrity: sha512-R/PW6RqyaBQNWYaSyfrh54/qtcnOp22FHCCiRhSSZj0FP3KQWCsxxt0DzIdVTbwTqe9CtQfvl/FPD4UIPt4pqw==} engines: {node: '>=12.17'} + dev: true /get-own-enumerable-property-symbols@3.0.2: resolution: {integrity: sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==} @@ -16271,6 +16313,8 @@ packages: /github-from-package@0.0.0: resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} requiresBuild: true + dev: false + optional: true /github-slugger@1.5.0: resolution: {integrity: sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==} @@ -16673,12 +16717,14 @@ packages: /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + dev: true /hosted-git-info@4.1.0: resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} engines: {node: '>=10'} dependencies: lru-cache: 6.0.0 + dev: true /hosted-git-info@5.2.1: resolution: {integrity: sha512-xIcQYMnhcx2Nr4JTjsFmwwnr9vldugPy9uVm0o87bjqqWMv9GaqsTeT+i99wTl0mk1uLxJtHxLb8kymqTENQsw==} @@ -16692,6 +16738,7 @@ packages: engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: lru-cache: 7.18.3 + dev: true /hpack.js@2.1.6: resolution: {integrity: sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==} @@ -16990,6 +17037,7 @@ packages: /individual@3.0.0: resolution: {integrity: sha512-rUY5vtT748NMRbEMrTNiFfy29BgGZwGXUi2NFUVMWQrogSLzlJvQV9eeMWi+g1aVaQ53tpyLAQtd5x/JH0Nh1g==} + dev: true /inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} @@ -17179,9 +17227,6 @@ packages: /is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - /is-arrayish@0.3.2: - resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} - /is-bigint@1.0.4: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} dependencies: @@ -17202,6 +17247,7 @@ packages: /is-buffer@1.1.6: resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==} + dev: false /is-buffer@2.0.5: resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} @@ -17368,10 +17414,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /is-plain-obj@2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} - /is-plain-obj@3.0.0: resolution: {integrity: sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==} engines: {node: '>=10'} @@ -17494,6 +17536,7 @@ packages: /is-windows@1.0.2: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} + dev: true /is-wsl@2.2.0: resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} @@ -18610,6 +18653,12 @@ packages: engines: {node: '>=0.10.0'} dev: true + /js-tiktoken@1.0.11: + resolution: {integrity: sha512-PajXFLq2vx7/8jllQZ43vzNpAai/0MOVdJjW/UrNyJorNQRTjHrqdGJG/mjHVy7h9M6dW6CaG43eNLMYFkTh6w==} + dependencies: + base64-js: 1.5.1 + dev: false + /js-tiktoken@1.0.7: resolution: {integrity: sha512-biba8u/clw7iesNEWLOLwrNGoBP2lA+hTaBLs/D45pJdUPFXyxD6nhcDVtADChghv4GgyAiMKYMiRx7x6h7Biw==} dependencies: @@ -18908,6 +18957,7 @@ packages: /json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} + dev: true /json5@1.0.2: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} @@ -19012,12 +19062,6 @@ packages: json-buffer: 3.0.1 dev: true - /kind-of@3.2.2: - resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==} - engines: {node: '>=0.10.0'} - dependencies: - is-buffer: 1.1.6 - /kind-of@6.0.3: resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} engines: {node: '>=0.10.0'} @@ -19040,119 +19084,63 @@ packages: resolution: {integrity: sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==} engines: {node: '>= 8'} - /langchain@0.0.194(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3): - resolution: {integrity: sha512-EbpVWL0l5V2byMmEnHf+xpkpPWQ1CgFINjM1RPk6+D3zm7HtkOWYoU0gTrWA5mmL9L1EB1w8r1xIh8E63Ts/HQ==} + /langchain@0.1.36(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-s3@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(handlebars@4.7.8)(lodash@4.17.21)(pg@8.11.3): + resolution: {integrity: sha512-NTbnCL/jKWIeEI//Nm1oG8nhW3vkYWvEMr1MPotmTThTfeKfO87eV/OAzAyh6Ruy6GFs/qofRgQZGIe6XvXTNQ==} engines: {node: '>=18'} peerDependencies: - '@aws-crypto/sha256-js': ^5.0.0 - '@aws-sdk/client-bedrock-runtime': ^3.422.0 - '@aws-sdk/client-dynamodb': ^3.310.0 - '@aws-sdk/client-kendra': ^3.352.0 - '@aws-sdk/client-lambda': ^3.310.0 '@aws-sdk/client-s3': ^3.310.0 '@aws-sdk/client-sagemaker-runtime': ^3.310.0 '@aws-sdk/client-sfn': ^3.310.0 '@aws-sdk/credential-provider-node': ^3.388.0 '@azure/storage-blob': ^12.15.0 - '@clickhouse/client': ^0.0.14 - '@cloudflare/ai': ^1.0.12 - '@elastic/elasticsearch': ^8.4.0 - '@getmetal/metal-sdk': '*' - '@getzep/zep-js': ^0.9.0 - '@gomomento/sdk': ^1.47.1 - '@gomomento/sdk-core': ^1.47.1 - '@gomomento/sdk-web': ^1.47.1 + '@gomomento/sdk': ^1.51.1 + '@gomomento/sdk-core': ^1.51.1 + '@gomomento/sdk-web': ^1.51.1 '@google-ai/generativelanguage': ^0.2.1 - '@google-cloud/storage': ^6.10.1 - '@huggingface/inference': ^2.6.4 - '@mozilla/readability': '*' + '@google-cloud/storage': ^6.10.1 || ^7.7.0 + '@mendable/firecrawl-js': ^0.0.13 '@notionhq/client': ^2.2.10 - '@opensearch-project/opensearch': '*' - '@pinecone-database/pinecone': ^1.1.0 - '@planetscale/database': ^1.8.0 - '@qdrant/js-client-rest': ^1.2.0 - '@raycast/api': ^1.55.2 - '@rockset/client': ^0.9.1 - '@smithy/eventstream-codec': ^2.0.5 - '@smithy/protocol-http': ^3.0.6 - '@smithy/signature-v4': ^2.0.10 - '@smithy/util-utf8': ^2.0.0 - '@supabase/postgrest-js': ^1.1.1 - '@supabase/supabase-js': ^2.10.0 - '@tensorflow-models/universal-sentence-encoder': '*' - '@tensorflow/tfjs-converter': '*' - '@tensorflow/tfjs-core': '*' - '@upstash/redis': ^1.20.6 + '@pinecone-database/pinecone': '*' + '@supabase/supabase-js': ^2.10.0 '@vercel/kv': ^0.2.3 - '@vercel/postgres': ^0.5.0 - '@writerai/writer-sdk': ^0.40.2 - '@xata.io/client': ^0.25.1 - '@xenova/transformers': ^2.5.4 - '@zilliz/milvus2-sdk-node': '>=2.2.7' + '@xata.io/client': ^0.28.0 apify-client: ^2.7.1 - assemblyai: ^2.0.2 + assemblyai: ^4.0.0 axios: '*' - cassandra-driver: ^4.7.2 cheerio: ^1.0.0-rc.12 chromadb: '*' - closevector-common: 0.1.0-alpha.1 - closevector-node: 0.1.0-alpha.10 - closevector-web: 0.1.0-alpha.16 - cohere-ai: '>=6.0.0' convex: ^1.3.1 + couchbase: ^4.3.0 d3-dsv: ^2.0.0 epub2: ^3.0.1 - faiss-node: ^0.5.1 - fast-xml-parser: ^4.2.7 - firebase-admin: ^11.9.0 + faiss-node: '*' + fast-xml-parser: '*' google-auth-library: ^8.9.0 - googleapis: ^126.0.1 - hnswlib-node: ^1.4.2 + handlebars: ^4.7.8 html-to-text: ^9.0.5 ignore: ^5.2.0 ioredis: ^5.3.2 jsdom: '*' - llmonitor: ^0.5.9 - lodash: ^4.17.21 - mammoth: '*' - mongodb: ^5.2.0 - mysql2: ^3.3.3 - neo4j-driver: '*' + mammoth: ^1.6.0 + mongodb: '>=5.2.0' node-llama-cpp: '*' notion-to-md: ^3.1.0 + officeparser: ^4.0.4 pdf-parse: 1.1.1 peggy: ^3.0.2 - pg: ^8.11.0 - pg-copy-streams: ^6.0.5 - pickleparser: ^0.2.1 playwright: ^1.32.1 - portkey-ai: ^0.1.11 puppeteer: ^19.7.2 + pyodide: ^0.24.1 redis: ^4.6.4 - replicate: ^0.18.0 sonix-speech-recognition: ^2.1.1 - srt-parser-2: ^1.2.2 + srt-parser-2: ^1.2.3 typeorm: ^0.3.12 - typesense: ^1.5.3 - usearch: ^1.1.1 - vectordb: ^0.1.4 - voy-search: 0.6.2 - weaviate-ts-client: ^1.4.0 + weaviate-ts-client: '*' web-auth-library: ^1.0.3 ws: ^8.14.2 youtube-transcript: ^1.0.6 - youtubei.js: ^5.8.0 + youtubei.js: ^9.1.0 peerDependenciesMeta: - '@aws-crypto/sha256-js': - optional: true - '@aws-sdk/client-bedrock-runtime': - optional: true - '@aws-sdk/client-dynamodb': - optional: true - '@aws-sdk/client-kendra': - optional: true - '@aws-sdk/client-lambda': - optional: true '@aws-sdk/client-s3': optional: true '@aws-sdk/client-sagemaker-runtime': @@ -19163,16 +19151,6 @@ packages: optional: true '@azure/storage-blob': optional: true - '@clickhouse/client': - optional: true - '@cloudflare/ai': - optional: true - '@elastic/elasticsearch': - optional: true - '@getmetal/metal-sdk': - optional: true - '@getzep/zep-js': - optional: true '@gomomento/sdk': optional: true '@gomomento/sdk-core': @@ -19183,78 +19161,32 @@ packages: optional: true '@google-cloud/storage': optional: true - '@huggingface/inference': - optional: true - '@mozilla/readability': + '@mendable/firecrawl-js': optional: true '@notionhq/client': optional: true - '@opensearch-project/opensearch': - optional: true '@pinecone-database/pinecone': optional: true - '@planetscale/database': - optional: true - '@qdrant/js-client-rest': - optional: true - '@raycast/api': - optional: true - '@rockset/client': - optional: true - '@smithy/eventstream-codec': - optional: true - '@smithy/protocol-http': - optional: true - '@smithy/signature-v4': - optional: true - '@smithy/util-utf8': - optional: true - '@supabase/postgrest-js': - optional: true '@supabase/supabase-js': optional: true - '@tensorflow-models/universal-sentence-encoder': - optional: true - '@tensorflow/tfjs-converter': - optional: true - '@tensorflow/tfjs-core': - optional: true - '@upstash/redis': - optional: true '@vercel/kv': optional: true - '@vercel/postgres': - optional: true - '@writerai/writer-sdk': - optional: true '@xata.io/client': optional: true - '@xenova/transformers': - optional: true - '@zilliz/milvus2-sdk-node': - optional: true apify-client: optional: true assemblyai: optional: true axios: optional: true - cassandra-driver: - optional: true cheerio: optional: true chromadb: optional: true - closevector-common: - optional: true - closevector-node: - optional: true - closevector-web: - optional: true - cohere-ai: - optional: true convex: optional: true + couchbase: + optional: true d3-dsv: optional: true epub2: @@ -19263,13 +19195,9 @@ packages: optional: true fast-xml-parser: optional: true - firebase-admin: - optional: true google-auth-library: optional: true - googleapis: - optional: true - hnswlib-node: + handlebars: optional: true html-to-text: optional: true @@ -19279,41 +19207,27 @@ packages: optional: true jsdom: optional: true - llmonitor: - optional: true - lodash: - optional: true mammoth: optional: true mongodb: optional: true - mysql2: - optional: true - neo4j-driver: - optional: true node-llama-cpp: optional: true notion-to-md: optional: true + officeparser: + optional: true pdf-parse: optional: true peggy: optional: true - pg: - optional: true - pg-copy-streams: - optional: true - pickleparser: - optional: true playwright: optional: true - portkey-ai: - optional: true puppeteer: optional: true - redis: + pyodide: optional: true - replicate: + redis: optional: true sonix-speech-recognition: optional: true @@ -19321,14 +19235,6 @@ packages: optional: true typeorm: optional: true - typesense: - optional: true - usearch: - optional: true - vectordb: - optional: true - voy-search: - optional: true weaviate-ts-client: optional: true web-auth-library: @@ -19341,47 +19247,114 @@ packages: optional: true dependencies: '@anthropic-ai/sdk': 0.9.1 - '@aws-crypto/sha256-js': 5.0.0 - '@aws-sdk/client-dynamodb': 3.451.0 '@aws-sdk/client-s3': 3.451.0 '@aws-sdk/client-sagemaker-runtime': 3.451.0 - ansi-styles: 5.2.0 + '@langchain/community': 0.0.55(@aws-crypto/sha256-js@5.0.0)(@aws-sdk/client-dynamodb@3.451.0)(@aws-sdk/client-sagemaker-runtime@3.451.0)(lodash@4.17.21)(pg@8.11.3) + '@langchain/core': 0.1.62(openai@4.42.0) + '@langchain/openai': 0.0.28 + '@langchain/textsplitters': 0.0.0 binary-extensions: 2.2.0 - camelcase: 6.3.0 - decamelize: 1.2.0 - expr-eval: 2.0.2 - flat: 5.0.2 + handlebars: 4.7.8 js-tiktoken: 1.0.7 js-yaml: 4.1.0 jsonpointer: 5.0.1 - langchainhub: 0.0.6 - langsmith: 0.0.48 - lodash: 4.17.21 + langchainhub: 0.0.10 + langsmith: 0.1.23(openai@4.42.0) ml-distance: 4.0.1 - openai: 4.19.0 openapi-types: 12.1.3 - p-queue: 6.6.2 p-retry: 4.6.2 - pg: 8.11.3 uuid: 9.0.0 yaml: 2.3.1 zod: 3.22.4 - zod-to-json-schema: 3.20.3(zod@3.22.4) + zod-to-json-schema: 3.23.0(zod@3.22.4) transitivePeerDependencies: + - '@aws-crypto/sha256-js' + - '@aws-sdk/client-bedrock-agent-runtime' + - '@aws-sdk/client-bedrock-runtime' + - '@aws-sdk/client-dynamodb' + - '@aws-sdk/client-kendra' + - '@aws-sdk/client-lambda' + - '@azure/search-documents' + - '@clickhouse/client' + - '@cloudflare/ai' + - '@datastax/astra-db-ts' + - '@elastic/elasticsearch' + - '@getmetal/metal-sdk' + - '@getzep/zep-js' + - '@gradientai/nodejs-sdk' + - '@huggingface/inference' + - '@mozilla/readability' + - '@neondatabase/serverless' + - '@opensearch-project/opensearch' + - '@planetscale/database' + - '@premai/prem-sdk' + - '@qdrant/js-client-rest' + - '@raycast/api' + - '@rockset/client' + - '@smithy/eventstream-codec' + - '@smithy/protocol-http' + - '@smithy/signature-v4' + - '@smithy/util-utf8' + - '@supabase/postgrest-js' + - '@tensorflow-models/universal-sentence-encoder' + - '@tensorflow/tfjs-converter' + - '@tensorflow/tfjs-core' + - '@upstash/redis' + - '@upstash/vector' + - '@vercel/postgres' + - '@writerai/writer-sdk' + - '@xenova/transformers' + - '@zilliz/milvus2-sdk-node' + - better-sqlite3 + - cassandra-driver + - cborg + - closevector-common + - closevector-node + - closevector-web + - cohere-ai + - discord.js + - dria + - duck-duck-scrape - encoding + - firebase-admin + - googleapis + - hnswlib-node + - interface-datastore + - it-all + - jsonwebtoken + - llmonitor + - lodash + - lunary + - mysql2 + - neo4j-driver + - openai + - pg + - pg-copy-streams + - pickleparser + - portkey-ai + - replicate - supports-color + - typesense + - usearch + - vectordb + - voy-search dev: false - /langchainhub@0.0.6: - resolution: {integrity: sha512-SW6105T+YP1cTe0yMf//7kyshCgvCTyFBMTgH2H3s9rTAR4e+78DA/BBrUL/Mt4Q5eMWui7iGuAYb3pgGsdQ9w==} + /langchainhub@0.0.10: + resolution: {integrity: sha512-mOVso7TGTMSlvTTUR1b4zUIMtu8zgie/pcwRm1SeooWwuHYMQovoNXjT6gEjvWEZ6cjt4gVH+1lu2tp1/phyIQ==} dev: false - /langsmith@0.0.48: - resolution: {integrity: sha512-s0hW8iZ90Q9XLTnDK0Pgee245URV3b1cXQjPDj5OKm1+KN7iSK1pKx+4CO7RcFLz58Ixe7Mt+mVcomYqUuryxQ==} - hasBin: true + /langsmith@0.1.23(openai@4.42.0): + resolution: {integrity: sha512-lc6BpC82zpHNDW5qNO/+eQrN9YNK7ElZIU0GIHZrdKTclaqAXYkJB2C3hM2sxdkdp0HbFYOLa0PxxZLzNkMloQ==} + peerDependencies: + openai: '*' + peerDependenciesMeta: + openai: + optional: true dependencies: '@types/uuid': 9.0.3 commander: 10.0.1 + openai: 4.42.0 p-queue: 6.6.2 p-retry: 4.6.2 uuid: 9.0.0 @@ -19475,15 +19448,6 @@ packages: type-fest: 0.3.1 dev: false - /load-json-file@6.2.0: - resolution: {integrity: sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ==} - engines: {node: '>=8'} - dependencies: - graceful-fs: 4.2.11 - parse-json: 5.2.0 - strip-bom: 4.0.0 - type-fest: 0.6.0 - /loader-runner@4.3.0: resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} engines: {node: '>=6.11.5'} @@ -19542,9 +19506,6 @@ packages: resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} dev: true - /lodash.clonedeep@4.5.0: - resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==} - /lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} @@ -19570,9 +19531,6 @@ packages: /lodash.isboolean@3.0.3: resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==} - /lodash.isempty@4.4.0: - resolution: {integrity: sha512-oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==} - /lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} @@ -19612,9 +19570,6 @@ packages: requiresBuild: true dev: true - /lodash.omit@4.5.0: - resolution: {integrity: sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==} - /lodash.snakecase@4.1.1: resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==} dev: true @@ -19624,6 +19579,7 @@ packages: /lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} + dev: true /lodash.template@4.5.0: resolution: {integrity: sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==} @@ -19648,16 +19604,10 @@ packages: /lodash.uniq@4.5.0: resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} - /lodash.uniqby@4.7.0: - resolution: {integrity: sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==} - /lodash.upperfirst@4.3.1: resolution: {integrity: sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==} dev: true - /lodash.words@4.2.0: - resolution: {integrity: sha512-mXxqd8Yx9BGPij3lZKFSdOsjOTbL4krbCCp9slEozaN4EMppA2dFmK/f8HeohodprY6W0vOdiQ5WFgPaTI75xQ==} - /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -19686,6 +19636,7 @@ packages: streamroller: 3.1.5 transitivePeerDependencies: - supports-color + dev: true /longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -19743,6 +19694,7 @@ packages: /lru-cache@7.18.3: resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} engines: {node: '>=12'} + dev: true /lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} @@ -19805,12 +19757,6 @@ packages: dependencies: tmpl: 1.0.5 - /map-age-cleaner@0.1.3: - resolution: {integrity: sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==} - engines: {node: '>=6'} - dependencies: - p-defer: 1.0.0 - /map-obj@1.0.1: resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} engines: {node: '>=0.10.0'} @@ -20017,13 +19963,6 @@ packages: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} - /mem@8.1.1: - resolution: {integrity: sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA==} - engines: {node: '>=10'} - dependencies: - map-age-cleaner: 0.1.3 - mimic-fn: 3.1.0 - /memfs@3.5.3: resolution: {integrity: sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==} engines: {node: '>= 4.0.0'} @@ -20367,10 +20306,6 @@ packages: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} - /mimic-fn@3.1.0: - resolution: {integrity: sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==} - engines: {node: '>=8'} - /mimic-response@1.0.1: resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==} engines: {node: '>=4'} @@ -20693,6 +20628,7 @@ packages: /mustache@4.2.0: resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} hasBin: true + dev: false /mute-stream@0.0.8: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} @@ -20718,6 +20654,8 @@ packages: /napi-build-utils@1.0.2: resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} requiresBuild: true + dev: false + optional: true /natural-compare-lite@1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} @@ -20738,6 +20676,7 @@ packages: readable-stream: 3.6.2 split2: 3.2.2 through2: 4.0.2 + dev: true /negotiator@0.6.3: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} @@ -20780,6 +20719,8 @@ packages: requiresBuild: true dependencies: semver: 7.5.4 + dev: false + optional: true /node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} @@ -20788,9 +20729,6 @@ packages: resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} dev: true - /node-addon-api@6.1.0: - resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==} - /node-cache@5.1.2: resolution: {integrity: sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==} engines: {node: '>= 8.0.0'} @@ -20895,6 +20833,7 @@ packages: resolve: 1.22.4 semver: 7.5.4 validate-npm-package-license: 3.0.4 + dev: true /normalize-package-data@3.0.3: resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} @@ -20914,6 +20853,7 @@ packages: is-core-module: 2.13.0 semver: 7.5.4 validate-npm-package-license: 3.0.4 + dev: true /normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} @@ -20923,9 +20863,6 @@ packages: resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} engines: {node: '>=0.10.0'} - /normalize-registry-url@2.0.0: - resolution: {integrity: sha512-3e9FwDyRAhbxXw4slm4Tjv40u78yPwMc/WZkACpqNQOs5sM7wic853AeTLkMFEVhivZkclGYlse8iYsklz0Yvg==} - /normalize-url@6.1.0: resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==} engines: {node: '>=10'} @@ -21377,15 +21314,14 @@ packages: is-docker: 2.2.1 is-wsl: 2.2.0 - /openai@4.19.0: - resolution: {integrity: sha512-cJbl0noZyAaXVKBTMMq6X5BAvP1pm2rWYDBnZes99NL+Zh5/4NmlAwyuhTZEru5SqGGZIoiYKeMPXy4bm9DI0w==} + /openai@4.42.0: + resolution: {integrity: sha512-xbiQQ2YNqdkE6cHqeWKa7lsAvdYfgp84XiNFOVkAMa6+9KpmOL4hCWCRR6e6I/clpaens/T9XeLVtyC5StXoRw==} hasBin: true dependencies: '@types/node': 18.17.1 '@types/node-fetch': 2.6.4 abort-controller: 3.0.0 agentkeepalive: 4.3.0 - digest-fetch: 1.3.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 node-fetch: 2.7.0 @@ -21397,6 +21333,7 @@ packages: /openapi-types@12.1.3: resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==} + dev: false /optionator@0.9.3: resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} @@ -21441,10 +21378,6 @@ packages: engines: {node: '>=12.20'} dev: true - /p-defer@1.0.0: - resolution: {integrity: sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==} - engines: {node: '>=4'} - /p-finally@1.0.0: resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} engines: {node: '>=4'} @@ -21655,9 +21588,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse-unit@1.0.1: - resolution: {integrity: sha512-hrqldJHokR3Qj88EIlV/kAyAi/G5R2+R56TBANxNMy0uPlYcttx0jnMW6Yx5KsKPSbC3KddM/7qQm3+0wEXKxg==} - /parse5@6.0.1: resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} @@ -21729,9 +21659,6 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - /path-name@1.0.0: - resolution: {integrity: sha512-/dcAb5vMXH0f51yvMuSUqFpxUcA8JelbRmE5mW/p4CUJxrNgK24IkstnV7ENtg2IDGBOu6izKTG6eilbnbNKWQ==} - /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} @@ -22690,6 +22617,8 @@ packages: simple-get: 4.0.1 tar-fs: 2.1.1 tunnel-agent: 0.6.0 + dev: false + optional: true /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} @@ -22999,9 +22928,6 @@ packages: /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - /queue-tick@1.0.1: - resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} - /quick-lru@4.0.1: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} engines: {node: '>=8'} @@ -23698,6 +23624,7 @@ packages: find-up: 4.1.0 read-pkg: 5.2.0 type-fest: 0.8.1 + dev: true /read-pkg@3.0.0: resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} @@ -23716,6 +23643,7 @@ packages: normalize-package-data: 2.5.0 parse-json: 5.2.0 type-fest: 0.6.0 + dev: true /read-yaml-file@2.1.0: resolution: {integrity: sha512-UkRNRIwnhG+y7hpqnycCL/xbTk7+ia9VuVTC0S+zVbwd65DI9eUpRMfsWIGrCWxTU/mi+JW8cHQCrv+zfCbEPQ==} @@ -23723,6 +23651,7 @@ packages: dependencies: js-yaml: 4.1.0 strip-bom: 4.0.0 + dev: true /readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} @@ -23759,10 +23688,6 @@ packages: engines: {node: '>= 0.8.0'} dev: false - /realpath-missing@1.1.0: - resolution: {integrity: sha512-wnWtnywepjg/eHIgWR97R7UuM5i+qHLA195qdN9UPKvcMqfn60+67S8sPPW3vDlSEfYHoFkKU8IvpCNty3zQvQ==} - engines: {node: '>=10'} - /recast@0.21.5: resolution: {integrity: sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==} engines: {node: '>= 4'} @@ -23973,10 +23898,6 @@ packages: resolution: {integrity: sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==} dev: false - /rename-keys@1.2.0: - resolution: {integrity: sha512-U7XpAktpbSgHTRSNRrjKSrjYkZKuhUukfoBlXWXUExCAqhzh1TU3BDRAfJmarcl5voKS+pbKU9MvyLWKZ4UEEg==} - engines: {node: '>= 0.8.0'} - /renderkid@3.0.0: resolution: {integrity: sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==} dependencies: @@ -24043,10 +23964,6 @@ packages: global-dirs: 0.1.1 dev: true - /resolve-link-target@2.0.0: - resolution: {integrity: sha512-jR9pmK8PUtjwUSNYn4fuTewcNUJE5e9B8tWD1C2dmDk40dvig+l1WSPmdH/03cx3ULWK7oS0E3cdam+poDepYQ==} - engines: {node: '>=10'} - /resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} @@ -24147,11 +24064,9 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - /rfc4648@1.5.3: - resolution: {integrity: sha512-MjOWxM065+WswwnmNONOT+bD1nXzY9Km6u3kzvnx8F8/HXGZdz3T6e6vZJ8Q/RIMUSp/nxqjH3GwvJDy8ijeQQ==} - /rfdc@1.3.0: resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} + dev: true /rimraf@2.6.3: resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} @@ -24246,14 +24161,6 @@ packages: /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - /safe-execa@0.1.2: - resolution: {integrity: sha512-vdTshSQ2JsRCgT8eKZWNJIL26C6bVqy1SOmuCMlKHegVeo8KYRobRrefOdUq9OozSPUUiSxrylteeRmLOMFfWg==} - engines: {node: '>=12'} - dependencies: - '@zkochan/which': 2.0.3 - execa: 5.1.1 - path-name: 1.0.0 - /safe-handlebars@1.0.1: resolution: {integrity: sha512-SDJUgJg5UrJKShytp0h6S+KYYU3XOQPp2GdTAdgWQAjb85C3T0WjXRiDfl+WoQ0YVo0I/lgXlSYuip5BJMcc9Q==} dependencies: @@ -24483,20 +24390,6 @@ packages: kind-of: 6.0.3 dev: true - /sharp@0.32.6: - resolution: {integrity: sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==} - engines: {node: '>=14.15.0'} - requiresBuild: true - dependencies: - color: 4.2.3 - detect-libc: 2.0.2 - node-addon-api: 6.1.0 - prebuild-install: 7.1.1 - semver: 7.5.4 - simple-get: 4.0.1 - tar-fs: 3.0.4 - tunnel-agent: 0.6.0 - /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -24530,6 +24423,7 @@ packages: /shorthash2@1.0.3: resolution: {integrity: sha512-oB8s64JsyJ2xhHJlnTwGg++Y3BTF6XnXeXMC7OygD8vtNcCRDiMxEGONvUOeZbxfwEXENmRlqPDouMR/OtGDsw==} + dev: false /shx@0.3.4: resolution: {integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==} @@ -24569,6 +24463,8 @@ packages: /simple-concat@1.0.1: resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} requiresBuild: true + dev: false + optional: true /simple-get@4.0.1: resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} @@ -24577,11 +24473,8 @@ packages: decompress-response: 6.0.0 once: 1.4.0 simple-concat: 1.0.1 - - /simple-swizzle@0.2.2: - resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} - dependencies: - is-arrayish: 0.3.2 + dev: false + optional: true /simple-update-notifier@2.0.0: resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} @@ -24681,12 +24574,6 @@ packages: minimist: 1.2.8 dev: true - /sort-keys@4.2.0: - resolution: {integrity: sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg==} - engines: {node: '>=8'} - dependencies: - is-plain-obj: 2.1.0 - /source-list-map@2.0.1: resolution: {integrity: sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==} @@ -24763,18 +24650,22 @@ packages: dependencies: spdx-expression-parse: 3.0.1 spdx-license-ids: 3.0.13 + dev: true /spdx-exceptions@2.3.0: resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} + dev: true /spdx-expression-parse@3.0.1: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} dependencies: spdx-exceptions: 2.3.0 spdx-license-ids: 3.0.13 + dev: true /spdx-license-ids@3.0.13: resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} + dev: true /spdx-license-list@6.6.0: resolution: {integrity: sha512-vLwdf9AWgdJQmG8cai2HKfkInFsliKaCCOwXmdVonClIhdURTX61KdDOoXC1qcQ7gDaZj+CUTcrMJeAdnCtrKA==} @@ -24826,6 +24717,7 @@ packages: resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} dependencies: readable-stream: 3.6.2 + dev: true /split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} @@ -24960,12 +24852,7 @@ packages: fs-extra: 8.1.0 transitivePeerDependencies: - supports-color - - /streamx@2.15.5: - resolution: {integrity: sha512-9thPGMkKC2GctCzyCUjME3yR03x2xNo0GPKGkRw2UMYN+gqWa9uqpyNWhmsNCutU5zHmkUum0LsCRQTXUgUCAg==} - dependencies: - fast-fifo: 1.3.2 - queue-tick: 1.0.1 + dev: true /strict-event-emitter@0.2.8: resolution: {integrity: sha512-KDf/ujU8Zud3YaLtMCcTI4xkZlZVIYxTLr+XIULexP+77EEVWixeXroLUXQXiVtH4XH2W7jr/3PT1v3zBuvc3A==} @@ -25241,12 +25128,6 @@ packages: picocolors: 1.0.0 stable: 0.1.8 - /svgson@5.3.1: - resolution: {integrity: sha512-qdPgvUNWb40gWktBJnbJRelWcPzkLed/ShhnRsjbayXz8OtdPOzbil9jtiZdrYvSDumAz/VNQr6JaNfPx/gvPA==} - dependencies: - deep-rename-keys: 0.2.1 - xml-reader: 2.4.3 - /swagger-client@3.23.0: resolution: {integrity: sha512-n0erqA78BVFiQkb+HDdho4sKxGz+7u3g3BKkoQHy6KArF79TCKpD6GSPJwenknsuA8byjTd+CkgTBtCmJgXRFA==} dependencies: @@ -25398,13 +25279,6 @@ packages: pump: 3.0.0 tar-stream: 2.2.0 - /tar-fs@3.0.4: - resolution: {integrity: sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==} - dependencies: - mkdirp-classic: 0.5.3 - pump: 3.0.0 - tar-stream: 3.1.6 - /tar-stream@2.2.0: resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} engines: {node: '>=6'} @@ -25415,13 +25289,6 @@ packages: inherits: 2.0.4 readable-stream: 3.6.2 - /tar-stream@3.1.6: - resolution: {integrity: sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==} - dependencies: - b4a: 1.6.4 - fast-fifo: 1.3.2 - streamx: 2.15.5 - /tar@6.1.15: resolution: {integrity: sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==} engines: {node: '>=10'} @@ -25554,6 +25421,7 @@ packages: resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} dependencies: readable-stream: 3.6.2 + dev: true /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} @@ -25593,11 +25461,6 @@ packages: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} - /to-px@1.1.0: - resolution: {integrity: sha512-bfg3GLYrGoEzrGoE05TAL/Uw+H/qrf2ptr9V3W7U0lkjjyYnIfgxmVLUfhQ1hZpIQwin81uxhDjvUkDYsC0xWw==} - dependencies: - parse-unit: 1.0.1 - /to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -25644,6 +25507,7 @@ packages: /traverse@0.6.7: resolution: {integrity: sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==} + dev: false /tree-sitter-json@0.20.0: resolution: {integrity: sha512-PteOLH+Tx6Bz4ZA/d40/DbkiSXXRM/gKahhHI8hQ1lWNfFvdknnz9k3Mz84ol5srRyLboJ8wp8GSkhZ6ht9EGQ==} @@ -25708,10 +25572,6 @@ packages: engines: {node: '>=6.10'} dev: true - /ts-graphviz@1.8.1: - resolution: {integrity: sha512-54/fe5iu0Jb6X0pmDmzsA2UHLfyHjUEUwfHtZcEOR0fZ6Myf+dFoO6eNsyL8CBDMJ9u7WWEewduVaiaXlvjSVw==} - engines: {node: '>=14.16'} - /ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} @@ -25887,6 +25747,7 @@ packages: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} dependencies: safe-buffer: 5.2.1 + dev: false /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} @@ -25928,10 +25789,12 @@ packages: /type-fest@0.6.0: resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} engines: {node: '>=8'} + dev: true /type-fest@0.8.1: resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} engines: {node: '>=8'} + dev: true /type-fest@1.4.0: resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} @@ -26026,8 +25889,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - /typescript@5.4.0-dev.20231217: - resolution: {integrity: sha512-LfTSjpGkhz5vojqrbHPD0UyPplTewag9lJpWP0U4hfeOXi62DN1CBp/us35zPVmD49iznxiIgTW9rNMbEiJYtw==} + /typescript@5.5.0-dev.20240512: + resolution: {integrity: sha512-qaBthiey39OUkoC0p3r83WKUG4KEvgTJg968MxJ548G6lYhpsFhp1Qryxrf32BonZwzfVi46Ltb9maSHVceLMg==} engines: {node: '>=14.17'} hasBin: true dev: true @@ -26440,12 +26303,7 @@ packages: dependencies: spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 - - /validate-npm-package-name@4.0.0: - resolution: {integrity: sha512-mzR0L8ZDktZjpX4OB46KT+56MAhl4EIazWP/+G/HPGuvfdaqg4YsCdtOm6U9+LOFyYDoh4dpnpxZRB9MQQns5Q==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - dependencies: - builtins: 5.0.1 + dev: true /validate-npm-package-name@5.0.0: resolution: {integrity: sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==} @@ -26825,6 +26683,7 @@ packages: /word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} + dev: true /wordwrap@1.0.0: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} @@ -27022,13 +26881,6 @@ packages: imurmurhash: 0.1.4 signal-exit: 4.1.0 - /write-yaml-file@5.0.0: - resolution: {integrity: sha512-FdNA4RyH1L43TlvGG8qOMIfcEczwA5ij+zLXUy3Z83CjxhLvcV7/Q/8pk22wnCgYw7PJhtK+7lhO+qqyT4NdvQ==} - engines: {node: '>=16.14'} - dependencies: - js-yaml: 4.1.0 - write-file-atomic: 5.0.1 - /ws@6.2.2: resolution: {integrity: sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==} peerDependencies: @@ -27078,20 +26930,9 @@ packages: repeat-string: 1.6.1 dev: false - /xml-lexer@0.2.2: - resolution: {integrity: sha512-G0i98epIwiUEiKmMcavmVdhtymW+pCAohMRgybyIME9ygfVu8QheIi+YoQh3ngiThsT0SQzJT4R0sKDEv8Ou0w==} - dependencies: - eventemitter3: 2.0.3 - /xml-name-validator@3.0.0: resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} - /xml-reader@2.4.3: - resolution: {integrity: sha512-xWldrIxjeAMAu6+HSf9t50ot1uL5M+BtOidRCWHXIeewvSeIpscWCsp4Zxjk8kHHhdqFBrfK8U0EJeCcnyQ/gA==} - dependencies: - eventemitter3: 2.0.3 - xml-lexer: 0.2.2 - /xml2js@0.5.0: resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==} engines: {node: '>=4.0.0'} @@ -27220,8 +27061,8 @@ packages: compress-commons: 4.1.2 readable-stream: 3.6.2 - /zod-to-json-schema@3.20.3(zod@3.22.4): - resolution: {integrity: sha512-/Q3wnyxAfCt94ZcrGiXXoiAfRqasxl9CX64LZ9fj+4dKH68zulUtU0uk1WMxQPfAxQ0ZI70dKzcoW7hHj+DwSQ==} + /zod-to-json-schema@3.23.0(zod@3.22.4): + resolution: {integrity: sha512-az0uJ243PxsRIa2x1WmNE/pnuA05gUq/JB8Lwe1EDCCL/Fz9MgjYQ0fPlyc2Tcv6aF2ZA7WM5TWaRZVEFaAIag==} peerDependencies: zod: '>=3.22.3' dependencies: diff --git a/projenrc/constants.ts b/projenrc/constants.ts index 454ec792..4b404b17 100644 --- a/projenrc/constants.ts +++ b/projenrc/constants.ts @@ -25,6 +25,8 @@ export const VERSIONS = { CDK: '2.110.0', CONSTRUCTS: '10.3.0', PDK: '0.22.42', - LANGCHAIN: '0.0.194', // Not semver yet so need to pin version + LANGCHAIN: '0.1.36', + LANGCHAIN_CORE: '0.1.62', + LANGCHAIN_COMMUNITY: '0.0.55', SMITHY_TYPES: '2.5.0', } as const; diff --git a/projenrc/demo/corpus.ts b/projenrc/demo/corpus.ts index 19852856..6dc105be 100644 --- a/projenrc/demo/corpus.ts +++ b/projenrc/demo/corpus.ts @@ -47,7 +47,9 @@ export class Corpus { '@aws-lambda-powertools/logger', '@aws-lambda-powertools/metrics', '@aws-lambda-powertools/parameters', - `langchain@${VERSIONS.LANGCHAIN}`, // not semver so need to pin + `langchain@${VERSIONS.LANGCHAIN}`, + `@langchain/core@${VERSIONS.LANGCHAIN_CORE}`, + `@langchain/community@${VERSIONS.LANGCHAIN_COMMUNITY}`, '@middy/core', '@middy/error-logger', '@middy/http-router', diff --git a/projenrc/demo/website.ts b/projenrc/demo/website.ts index fe7dfc42..b4aa174a 100644 --- a/projenrc/demo/website.ts +++ b/projenrc/demo/website.ts @@ -41,7 +41,7 @@ export class Website { 'dayjs', 'immer', 'jwt-decode', - `langchain@${VERSIONS.LANGCHAIN}`, // not semver so need to pin + `@langchain/core@${VERSIONS.LANGCHAIN_CORE}`, 'lodash', 'nanoid', 'react-collapsed', diff --git a/projenrc/framework/galileo-cli.ts b/projenrc/framework/galileo-cli.ts index fb67bcb6..98b5351d 100644 --- a/projenrc/framework/galileo-cli.ts +++ b/projenrc/framework/galileo-cli.ts @@ -110,6 +110,7 @@ export class GalileoCli extends TypeScriptAppProject { this.package.addField('private', true); this.addGitIgnore('examples/**/generated/**'); + this.addGitIgnore('pnpm/'); // additional setup for `oclif` this.setupPackageJsonOclif(); diff --git a/projenrc/framework/galileo-sdk.ts b/projenrc/framework/galileo-sdk.ts index 1e78c87b..7b55382a 100644 --- a/projenrc/framework/galileo-sdk.ts +++ b/projenrc/framework/galileo-sdk.ts @@ -23,7 +23,9 @@ export class GalileoSdk extends EsmTypescriptProject { 'pg-promise', 'safe-handlebars', 'uuid', - `langchain@${VERSIONS.LANGCHAIN}`, // not semver so need to pin + `langchain@${VERSIONS.LANGCHAIN}`, + `@langchain/core@${VERSIONS.LANGCHAIN_CORE}`, + `@langchain/community@${VERSIONS.LANGCHAIN_COMMUNITY}`, ], depsToTransform: ['safe-handlebars'], devDeps: ['@types/uuid', '@types/lodash', 'aws-sdk-client-mock'],