@grepai/cli 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +12 -3
  2. package/index.js.map +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -105231,7 +105231,16 @@ class FileIndexer extends Service()("@grepai/core/internal/services/file-indexer
105231
105231
  const embeddings = yield* embedder.embedMany(map4(chunks2, ({ content: content2 }) => content2)).pipe(map16(map4((embedding, index2) => ({
105232
105232
  chunkId: chunks2[index2].id,
105233
105233
  embedding
105234
- }))));
105234
+ }))), catchTags2({
105235
+ VercelAiError: (cause2) => {
105236
+ if (cause2.message.includes("at most 100 requests")) {
105237
+ return new VercelAiError({
105238
+ cause: new Error(cause2.message + " " + input.filePath)
105239
+ });
105240
+ }
105241
+ return cause2;
105242
+ }
105243
+ }));
105235
105244
  yield* pipe(documentStorage.insert({ filePath, hash: hash3 }), zipRight3(chunkStorage.insertMany(chunks2)), zipRight3(chunkStorage.insertManyEmbeddings(embeddings)));
105236
105245
  }, (effect3) => match2(db, {
105237
105246
  onNone: () => effect3,
@@ -112849,11 +112858,11 @@ var program = gen2(function* () {
112849
112858
  ]));
112850
112859
  const cli = exports_Command.run(command, {
112851
112860
  name: "GREP AI",
112852
- version: "v0.7.6"
112861
+ version: "v0.7.7"
112853
112862
  });
112854
112863
  yield* cli(process.argv);
112855
112864
  });
112856
112865
  program.pipe(provide2(mergeAll5(GrepAi.Default).pipe(provideMerge2(Clack.Default), provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
112857
112866
 
112858
- //# debugId=809A729242A92C2664756E2164756E21
112867
+ //# debugId=8E0A96D6C11591E664756E2164756E21
112859
112868
  //# sourceMappingURL=index.js.map