diff --git a/binary/build.js b/binary/build.js index 506fcb18e..d2f01ee35 100644 --- a/binary/build.js +++ b/binary/build.js @@ -184,7 +184,14 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { entryPoints: ["src/index.ts"], bundle: true, outfile: esbuildOutputFile, - external: ["esbuild", "./xhr-sync-worker.js", "vscode", "./index.node"], + external: [ + "esbuild", + "./xhr-sync-worker.js", + "llamaTokenizerWorkerPool.mjs", + "tiktokenWorkerPool.mjs", + "vscode", + "./index.node", + ], format: "cjs", platform: "node", sourcemap: true, @@ -204,6 +211,11 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { "../core/node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js", "out/xhr-sync-worker.js", ); + fs.cpSync("../core/llm/tiktokenWorkerPool.mjs", "out/tiktokenWorkerPool.mjs"); + fs.cpSync( + "../core/llm/llamaTokenizerWorkerPool.mjs", + "out/llamaTokenizerWorkerPool.mjs", + ); if (esbuildOnly) { return; diff --git a/binary/package-lock.json b/binary/package-lock.json index c6001e019..9378d2eef 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -45,8 +45,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-bedrock-runtime": "^3.620.1", - "@aws-sdk/credential-providers": "^3.620.1", "@aws-sdk/client-sagemaker-runtime": "^3.621.0", + "@aws-sdk/credential-providers": "^3.620.1", "@continuedev/config-types": "^1.0.10", "@continuedev/llm-info": "^1.0.1", "@mozilla/readability": "^0.5.0", diff --git a/core/core.ts b/core/core.ts index 512250cf1..6718cdf7d 100644 --- a/core/core.ts +++ b/core/core.ts @@ -684,6 +684,16 @@ export class Core { )) { this.messenger.request("indexProgress", update); this.indexingState = update; + + if (update.status === "failed") { + Telemetry.capture( + "indexing_error", + { + error: update.desc, + }, + false, + ); + } } this.messenger.send("refreshSubmenuItems", undefined); diff --git a/extensions/intellij/README.md b/extensions/intellij/README.md index 76b1693e6..3ea53bf93 100644 --- a/extensions/intellij/README.md +++ b/extensions/intellij/README.md @@ -1,7 +1,5 @@ - -