From 186278ef27a9f70428f049059f331f97961aa9fe Mon Sep 17 00:00:00 2001 From: Adhityan K V Date: Tue, 26 Nov 2024 17:44:09 +0100 Subject: [PATCH 1/2] fix: fix debug log lines issue --- databases/embedjs-lancedb/src/lance-db.ts | 6 +++--- databases/embedjs-libsql/src/libsql-db.ts | 4 ++-- databases/embedjs-lmdb/src/lmdb-store.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/databases/embedjs-lancedb/src/lance-db.ts b/databases/embedjs-lancedb/src/lance-db.ts index d4d42a5..28d7dce 100644 --- a/databases/embedjs-lancedb/src/lance-db.ts +++ b/databases/embedjs-lancedb/src/lance-db.ts @@ -29,7 +29,7 @@ export class LanceDb implements BaseVectorDatabase { const client = await connect(dir); const list = await client.tableNames(); - this.debug.log(`Table names found - [${list.join(',')}]`); + this.debug(`Table names found - [${list.join(',')}]`); if (list.indexOf(LanceDb.STATIC_DB_NAME) > -1) this.table = await client.openTable(LanceDb.STATIC_DB_NAME); else { //TODO: You can add a proper schema instead of a sample record now but it requires another package apache-arrow; another install on downstream as well @@ -61,14 +61,14 @@ export class LanceDb implements BaseVectorDatabase { }; }); - this.debug.log(`Executing insert of ${mapped.length} entries`); + this.debug(`Executing insert of ${mapped.length} entries`); await this.table.add(mapped); return mapped.length; //TODO: check if vectorDb has addressed the issue where add returns undefined } async similaritySearch(query: number[], k: number): Promise { const results = await this.table.search(query).limit(k).toArray(); - this.debug.log(`Query found ${results.length} entries`); + this.debug(`Query found ${results.length} entries`); return ( results diff --git a/databases/embedjs-libsql/src/libsql-db.ts b/databases/embedjs-libsql/src/libsql-db.ts index 88fb57e..b08125f 100644 --- a/databases/embedjs-libsql/src/libsql-db.ts +++ b/databases/embedjs-libsql/src/libsql-db.ts @@ -38,7 +38,7 @@ export class LibSqlDb implements BaseVectorDatabase { ${values.join(',')} );`; - this.debug.log(`Executing statement - ${statement}`); + this.debug(`Executing statement - ${statement}`); const result = await this.client.execute(statement); return result.rowsAffected; } @@ -51,7 +51,7 @@ export class LibSqlDb implements BaseVectorDatabase { TOP ${k} ASC;`; - this.debug.log(`Executing statement - ${statement}`); + this.debug(`Executing statement - ${statement}`); const results = await this.client.execute(statement); return results.rows.map((result) => { diff --git a/databases/embedjs-lmdb/src/lmdb-store.ts b/databases/embedjs-lmdb/src/lmdb-store.ts index d352481..84618bb 100644 --- a/databases/embedjs-lmdb/src/lmdb-store.ts +++ b/databases/embedjs-lmdb/src/lmdb-store.ts @@ -15,7 +15,7 @@ export class LmdbStore implements BaseStore { } async init(): Promise { - this.debug.log(`Opening LMDB connection with path - ${this.dataPath}`); + this.debug(`Opening LMDB connection with path - ${this.dataPath}`); this.database = lmdb.open({ path: this.dataPath, compression: true, From 92570000e07d69069f6d1f2eda578503b307f498 Mon Sep 17 00:00:00 2001 From: Adhityan K V Date: Tue, 26 Nov 2024 17:49:12 +0100 Subject: [PATCH 2/2] chore: bump package versions to 0.1.20 --- core/embedjs-interfaces/package.json | 2 +- core/embedjs-utils/package.json | 4 +-- core/embedjs/package.json | 6 ++-- databases/embedjs-astra/package.json | 4 +-- databases/embedjs-cosmos/package.json | 4 +-- databases/embedjs-hnswlib/package.json | 4 +-- databases/embedjs-lancedb/package.json | 4 +-- databases/embedjs-libsql/package.json | 4 +-- databases/embedjs-lmdb/package.json | 4 +-- databases/embedjs-mongodb/package.json | 4 +-- databases/embedjs-pinecone/package.json | 4 +-- databases/embedjs-qdrant/package.json | 4 +-- databases/embedjs-redis/package.json | 4 +-- databases/embedjs-weaviate/package.json | 4 +-- .../embedjs-loader-confluence/package.json | 6 ++-- loaders/embedjs-loader-csv/package.json | 6 ++-- loaders/embedjs-loader-markdown/package.json | 6 ++-- loaders/embedjs-loader-msoffice/package.json | 6 ++-- loaders/embedjs-loader-pdf/package.json | 6 ++-- loaders/embedjs-loader-sitemap/package.json | 6 ++-- loaders/embedjs-loader-web/package.json | 6 ++-- loaders/embedjs-loader-xml/package.json | 4 +-- loaders/embedjs-loader-youtube/package.json | 6 ++-- models/embedjs-anthropic/package.json | 4 +-- models/embedjs-cohere/package.json | 4 +-- models/embedjs-huggingface/package.json | 4 +-- models/embedjs-llama-cpp/package.json | 4 +-- models/embedjs-mistral/package.json | 4 +-- models/embedjs-ollama/package.json | 4 +-- models/embedjs-openai/package.json | 4 +-- models/embedjs-vertexai/package.json | 4 +-- package-lock.json | 36 +------------------ scripts/publish-via-nx.js | 9 +++-- 33 files changed, 75 insertions(+), 110 deletions(-) diff --git a/core/embedjs-interfaces/package.json b/core/embedjs-interfaces/package.json index 6cb7f8c..a620624 100644 --- a/core/embedjs-interfaces/package.json +++ b/core/embedjs-interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@llm-tools/embedjs-interfaces", - "version": "0.1.19", + "version": "0.1.20", "description": "Interfaces for extending the embedjs ecosystem", "dependencies": { "@langchain/core": "^0.3.18", diff --git a/core/embedjs-utils/package.json b/core/embedjs-utils/package.json index a0b2a51..baf67fe 100644 --- a/core/embedjs-utils/package.json +++ b/core/embedjs-utils/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-utils", - "version": "0.1.19", + "version": "0.1.20", "description": "Useful util functions when extending the embedjs ecosystem", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19" + "@llm-tools/embedjs-interfaces": "0.1.20" }, "type": "module", "main": "./src/index.js", diff --git a/core/embedjs/package.json b/core/embedjs/package.json index 7f26b6f..cd976cf 100644 --- a/core/embedjs/package.json +++ b/core/embedjs/package.json @@ -1,12 +1,12 @@ { "type": "module", "name": "@llm-tools/embedjs", - "version": "0.1.19", + "version": "0.1.20", "description": "A NodeJS RAG framework to easily work with LLMs and custom datasets", "dependencies": { "@langchain/textsplitters": "^0.1.0", - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "debug": "^4.3.7", "langchain": "^0.3.6", "md5": "^2.3.0", diff --git a/databases/embedjs-astra/package.json b/databases/embedjs-astra/package.json index ba3f86a..481515f 100644 --- a/databases/embedjs-astra/package.json +++ b/databases/embedjs-astra/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-astradb", - "version": "0.1.19", + "version": "0.1.20", "description": "Add AstraDB support to embedjs", "dependencies": { "@datastax/astra-db-ts": "^1.5.0", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/databases/embedjs-cosmos/package.json b/databases/embedjs-cosmos/package.json index fc4bdba..9ddf671 100644 --- a/databases/embedjs-cosmos/package.json +++ b/databases/embedjs-cosmos/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-cosmos", - "version": "0.1.19", + "version": "0.1.20", "description": "Add CosmosDB support to embedjs", "dependencies": { "@azure/cosmos": "^4.2.0", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/databases/embedjs-hnswlib/package.json b/databases/embedjs-hnswlib/package.json index 4520e1b..6603ed7 100644 --- a/databases/embedjs-hnswlib/package.json +++ b/databases/embedjs-hnswlib/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-hnswlib", - "version": "0.1.19", + "version": "0.1.20", "description": "Add HNSWLib support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7", "hnswlib-node": "^3.0.0" }, diff --git a/databases/embedjs-lancedb/package.json b/databases/embedjs-lancedb/package.json index 72f64ab..6645da8 100644 --- a/databases/embedjs-lancedb/package.json +++ b/databases/embedjs-lancedb/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-lancedb", - "version": "0.1.19", + "version": "0.1.20", "description": "Add LanceDb support to embedjs", "dependencies": { "@lancedb/lancedb": "^0.13.0", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "compute-cosine-similarity": "^1.1.0", "debug": "^4.3.7" }, diff --git a/databases/embedjs-libsql/package.json b/databases/embedjs-libsql/package.json index 7da3b16..c1d2197 100644 --- a/databases/embedjs-libsql/package.json +++ b/databases/embedjs-libsql/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-libsql", - "version": "0.1.19", + "version": "0.1.20", "description": "Add LibSQL support to embedjs", "dependencies": { "@libsql/client": "^0.14.0", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/databases/embedjs-lmdb/package.json b/databases/embedjs-lmdb/package.json index 21407a8..9a1f5b4 100644 --- a/databases/embedjs-lmdb/package.json +++ b/databases/embedjs-lmdb/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-lmdb", - "version": "0.1.19", + "version": "0.1.20", "description": "Add LMDB support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7", "lmdb": "^3.1.6" }, diff --git a/databases/embedjs-mongodb/package.json b/databases/embedjs-mongodb/package.json index 76964fb..5bb810f 100644 --- a/databases/embedjs-mongodb/package.json +++ b/databases/embedjs-mongodb/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-mongodb", - "version": "0.1.19", + "version": "0.1.20", "description": "Add MongoDB support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7", "mongodb": "^6.10.0" }, diff --git a/databases/embedjs-pinecone/package.json b/databases/embedjs-pinecone/package.json index 9ddb059..d13ef89 100644 --- a/databases/embedjs-pinecone/package.json +++ b/databases/embedjs-pinecone/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-pinecone", - "version": "0.1.19", + "version": "0.1.20", "description": "Add Pinecone support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "@pinecone-database/pinecone": "^4.0.0", "debug": "^4.3.7" }, diff --git a/databases/embedjs-qdrant/package.json b/databases/embedjs-qdrant/package.json index df53611..bd520e2 100644 --- a/databases/embedjs-qdrant/package.json +++ b/databases/embedjs-qdrant/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-qdrant", - "version": "0.1.19", + "version": "0.1.20", "description": "Add Qdrant support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "@qdrant/js-client-rest": "^1.12.0", "debug": "^4.3.7", "uuid": "^11.0.3" diff --git a/databases/embedjs-redis/package.json b/databases/embedjs-redis/package.json index 7c762e6..23e2427 100644 --- a/databases/embedjs-redis/package.json +++ b/databases/embedjs-redis/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-redis", - "version": "0.1.19", + "version": "0.1.20", "description": "Add Redis support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "ioredis": "^5.4.1" }, "type": "module", diff --git a/databases/embedjs-weaviate/package.json b/databases/embedjs-weaviate/package.json index 510a2ff..37a31a9 100644 --- a/databases/embedjs-weaviate/package.json +++ b/databases/embedjs-weaviate/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-weaviate", - "version": "0.1.19", + "version": "0.1.20", "description": "Add Weaviate support to embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "compute-cosine-similarity": "^1.1.0", "debug": "^4.3.7", "weaviate-ts-client": "^2.2.0" diff --git a/loaders/embedjs-loader-confluence/package.json b/loaders/embedjs-loader-confluence/package.json index 5b63ec3..cb1ad3b 100644 --- a/loaders/embedjs-loader-confluence/package.json +++ b/loaders/embedjs-loader-confluence/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-loader-confluence", - "version": "0.1.19", + "version": "0.1.20", "description": "Confluence loader for embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-loader-web": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-loader-web": "0.1.20", "confluence.js": "^1.7.4", "debug": "^4.3.7", "md5": "^2.3.0" diff --git a/loaders/embedjs-loader-csv/package.json b/loaders/embedjs-loader-csv/package.json index d1726e0..abaadcd 100644 --- a/loaders/embedjs-loader-csv/package.json +++ b/loaders/embedjs-loader-csv/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-loader-csv", - "version": "0.1.19", + "version": "0.1.20", "description": "CSV loader for embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "csv-parse": "^5.6.0", "debug": "^4.3.7", "md5": "^2.3.0" diff --git a/loaders/embedjs-loader-markdown/package.json b/loaders/embedjs-loader-markdown/package.json index 8c7df78..8187ba6 100644 --- a/loaders/embedjs-loader-markdown/package.json +++ b/loaders/embedjs-loader-markdown/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-loader-markdown", - "version": "0.1.19", + "version": "0.1.20", "description": "XML loader for embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-loader-web": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-loader-web": "0.1.20", "debug": "^4.3.7", "md5": "^2.3.0", "micromark": "^4.0.1", diff --git a/loaders/embedjs-loader-msoffice/package.json b/loaders/embedjs-loader-msoffice/package.json index 3bbd2ce..367c64b 100644 --- a/loaders/embedjs-loader-msoffice/package.json +++ b/loaders/embedjs-loader-msoffice/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-loader-msoffice", - "version": "0.1.19", + "version": "0.1.20", "description": "Word, PPT and Excel loader for embedjs", "dependencies": { "@langchain/textsplitters": "^0.1.0", - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "md5": "^2.3.0", "office-text-extractor": "^3.0.3" }, diff --git a/loaders/embedjs-loader-pdf/package.json b/loaders/embedjs-loader-pdf/package.json index c3cfe09..0389d8d 100644 --- a/loaders/embedjs-loader-pdf/package.json +++ b/loaders/embedjs-loader-pdf/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-loader-pdf", - "version": "0.1.19", + "version": "0.1.20", "description": "PDF loader for embedjs", "dependencies": { "@langchain/textsplitters": "^0.1.0", - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "md5": "^2.3.0", "office-text-extractor": "^3.0.3" }, diff --git a/loaders/embedjs-loader-sitemap/package.json b/loaders/embedjs-loader-sitemap/package.json index 923b090..30bd063 100644 --- a/loaders/embedjs-loader-sitemap/package.json +++ b/loaders/embedjs-loader-sitemap/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-loader-sitemap", - "version": "0.1.19", + "version": "0.1.20", "description": "Sitemap recursive loader for embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-loader-web": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-loader-web": "0.1.20", "debug": "^4.3.7", "md5": "^2.3.0", "sitemapper": "^3.2.18" diff --git a/loaders/embedjs-loader-web/package.json b/loaders/embedjs-loader-web/package.json index 4ce52bb..5c4158f 100644 --- a/loaders/embedjs-loader-web/package.json +++ b/loaders/embedjs-loader-web/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-loader-web", - "version": "0.1.19", + "version": "0.1.20", "description": "Web page loader for embedjs", "dependencies": { "@langchain/textsplitters": "^0.1.0", - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "debug": "^4.3.7", "html-to-text": "^9.0.5", "md5": "^2.3.0" diff --git a/loaders/embedjs-loader-xml/package.json b/loaders/embedjs-loader-xml/package.json index 173f07d..caecce4 100644 --- a/loaders/embedjs-loader-xml/package.json +++ b/loaders/embedjs-loader-xml/package.json @@ -1,9 +1,9 @@ { "name": "@llm-tools/embedjs-loader-xml", - "version": "0.1.19", + "version": "0.1.20", "description": "XML loader for embedjs", "dependencies": { - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7", "fast-xml-parser": "^4.5.0", "md5": "^2.3.0" diff --git a/loaders/embedjs-loader-youtube/package.json b/loaders/embedjs-loader-youtube/package.json index dd65fc9..e20a15a 100644 --- a/loaders/embedjs-loader-youtube/package.json +++ b/loaders/embedjs-loader-youtube/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-loader-youtube", - "version": "0.1.19", + "version": "0.1.20", "description": "Youtube transcript and channel recursive loader for embedjs", "dependencies": { "@langchain/textsplitters": "^0.1.0", - "@llm-tools/embedjs-interfaces": "0.1.19", - "@llm-tools/embedjs-utils": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", + "@llm-tools/embedjs-utils": "0.1.20", "debug": "^4.3.7", "md5": "^2.3.0", "usetube": "^2.2.7", diff --git a/models/embedjs-anthropic/package.json b/models/embedjs-anthropic/package.json index e3ad92b..6919cdb 100644 --- a/models/embedjs-anthropic/package.json +++ b/models/embedjs-anthropic/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-anthropic", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of Anthropic models with embedjs", "dependencies": { "@langchain/anthropic": "^0.3.8", "@langchain/core": "^0.3.18", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/models/embedjs-cohere/package.json b/models/embedjs-cohere/package.json index c1e427d..9cc1162 100644 --- a/models/embedjs-cohere/package.json +++ b/models/embedjs-cohere/package.json @@ -1,10 +1,10 @@ { "name": "@llm-tools/embedjs-cohere", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of Cohere models with embedjs", "dependencies": { "@langchain/cohere": "^0.3.1", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "cohere-ai": "^7.14.0" }, "type": "module", diff --git a/models/embedjs-huggingface/package.json b/models/embedjs-huggingface/package.json index 500700d..63992e4 100644 --- a/models/embedjs-huggingface/package.json +++ b/models/embedjs-huggingface/package.json @@ -1,12 +1,12 @@ { "name": "@llm-tools/embedjs-huggingface", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of HuggingFace models with embedjs", "dependencies": { "@huggingface/inference": "^2.8.1", "@langchain/community": "^0.3.15", "@langchain/core": "^0.3.18", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/models/embedjs-llama-cpp/package.json b/models/embedjs-llama-cpp/package.json index d5a38e9..aa6acb0 100644 --- a/models/embedjs-llama-cpp/package.json +++ b/models/embedjs-llama-cpp/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-llama-cpp", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of Node-Llama-Cpp with embedjs", "dependencies": { "@langchain/community": "^0.3.15", "@langchain/core": "^0.3.18", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7", "node-llama-cpp": "^3.2.0" }, diff --git a/models/embedjs-mistral/package.json b/models/embedjs-mistral/package.json index 9229376..65ba113 100644 --- a/models/embedjs-mistral/package.json +++ b/models/embedjs-mistral/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-mistral", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of Mistral models with embedjs", "dependencies": { "@langchain/core": "^0.3.18", "@langchain/mistralai": "^0.2.0", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/models/embedjs-ollama/package.json b/models/embedjs-ollama/package.json index 35f8af0..1c914a8 100644 --- a/models/embedjs-ollama/package.json +++ b/models/embedjs-ollama/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-ollama", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of Ollama with embedjs", "dependencies": { "@langchain/core": "^0.3.18", "@langchain/ollama": "^0.1.2", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/models/embedjs-openai/package.json b/models/embedjs-openai/package.json index ca64166..4dd25ff 100644 --- a/models/embedjs-openai/package.json +++ b/models/embedjs-openai/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-openai", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of OpenAI models with embedjs", "dependencies": { "@langchain/core": "^0.3.18", "@langchain/openai": "^0.3.14", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/models/embedjs-vertexai/package.json b/models/embedjs-vertexai/package.json index a8cc48e..13e1939 100644 --- a/models/embedjs-vertexai/package.json +++ b/models/embedjs-vertexai/package.json @@ -1,11 +1,11 @@ { "name": "@llm-tools/embedjs-vertexai", - "version": "0.1.19", + "version": "0.1.20", "description": "Enable usage of VertexAI models with embedjs", "dependencies": { "@langchain/core": "^0.3.18", "@langchain/google-vertexai": "^0.1.2", - "@llm-tools/embedjs-interfaces": "0.1.19", + "@llm-tools/embedjs-interfaces": "0.1.20", "debug": "^4.3.7" }, "type": "module", diff --git a/package-lock.json b/package-lock.json index b737e09..fa2e510 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14353,23 +14353,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-circus/node_modules/babel-plugin-macros": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", - "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "@babel/runtime": "^7.12.5", - "cosmiconfig": "^7.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - } - }, "node_modules/jest-circus/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -14386,24 +14369,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-circus/node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jest-circus/node_modules/dedent": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", @@ -20052,6 +20017,7 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/scripts/publish-via-nx.js b/scripts/publish-via-nx.js index 3dba021..13c7e67 100644 --- a/scripts/publish-via-nx.js +++ b/scripts/publish-via-nx.js @@ -59,7 +59,7 @@ async function updatePackageVersion(pkgName, version, versionMap, dryRun) { if (!found) console.error(`Could not find '${pkgName}' in any of the folders`); } -async function createRelease(dryRun, version, makeGitCommit) { +async function createRelease(dryRun, version, isCi) { console.log('Running nx release'); const { workspaceVersion, projectsVersionData } = await releaseVersion({ gitTag: false, @@ -89,10 +89,10 @@ async function createRelease(dryRun, version, makeGitCommit) { versionData: projectsVersionData, version: workspaceVersion, verbose: true, - dryRun, + dryRun: !isCi, }); - if (makeGitCommit) { + if (isCi) { console.log('Committing changes'); const git = simpleGit().clean(CleanOptions.FORCE); @@ -115,7 +115,6 @@ async function startReleasePipeline() { const isCi = args['--ci'] ? true : false; const dryRun = isCi ? false : await confirm({ message: 'Is this a dry run?', default: true, required: true }); - const makeGitCommit = isCi ? false : !dryRun; let version = 'patch'; if (!args['--version']) { @@ -134,7 +133,7 @@ async function startReleasePipeline() { } } else version = args['--version']; - await createRelease(dryRun, version, makeGitCommit); + await createRelease(dryRun, version, isCi); } await startReleasePipeline();