@grepai/cli 0.6.4 → 0.6.5
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.
- package/index.js +6 -5
- package/index.js.map +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -82629,7 +82629,8 @@ var tree_sitter_typescript_default = "./tree-sitter-typescript.wasm";
|
|
|
82629
82629
|
|
|
82630
82630
|
// ../core/src/internal/services/chunker-ast/ast-parser.ts
|
|
82631
82631
|
class AstParser extends Service()("@grepai/core/internal/services/chunker-ast/ast-parser/AstParser", {
|
|
82632
|
-
|
|
82632
|
+
effect: gen2(function* () {
|
|
82633
|
+
const path4 = yield* exports_Path.Path;
|
|
82633
82634
|
let initialzed = false;
|
|
82634
82635
|
const languageCache = new Map;
|
|
82635
82636
|
const parse12 = fnUntraced2(function* (input) {
|
|
@@ -82644,7 +82645,7 @@ class AstParser extends Service()("@grepai/core/internal/services/chunker-ast/as
|
|
|
82644
82645
|
parser2.reset();
|
|
82645
82646
|
parser2.setLanguage(await (async () => {
|
|
82646
82647
|
if (!languageCache.has(language)) {
|
|
82647
|
-
languageCache.set(language, await Language.load(await file8(languageMap[language]).bytes()));
|
|
82648
|
+
languageCache.set(language, await Language.load(await file8(path4.resolve(import.meta.dirname, languageMap[language])).bytes()));
|
|
82648
82649
|
}
|
|
82649
82650
|
return languageCache.get(language);
|
|
82650
82651
|
})());
|
|
@@ -82657,7 +82658,7 @@ class AstParser extends Service()("@grepai/core/internal/services/chunker-ast/as
|
|
|
82657
82658
|
return {
|
|
82658
82659
|
parse: parse12
|
|
82659
82660
|
};
|
|
82660
|
-
}
|
|
82661
|
+
})
|
|
82661
82662
|
}) {
|
|
82662
82663
|
}
|
|
82663
82664
|
var languageMap = {
|
|
@@ -90701,11 +90702,11 @@ var program = gen2(function* () {
|
|
|
90701
90702
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands([indexCommand, searchCommand]));
|
|
90702
90703
|
const cli = exports_Command.run(command, {
|
|
90703
90704
|
name: "GREP AI",
|
|
90704
|
-
version: "v0.6.
|
|
90705
|
+
version: "v0.6.5"
|
|
90705
90706
|
});
|
|
90706
90707
|
yield* cli(process.argv);
|
|
90707
90708
|
});
|
|
90708
90709
|
program.pipe(provide2(mergeAll5(GrepAi.Default).pipe(provideMerge2(Clack.Default), provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
90709
90710
|
|
|
90710
|
-
//# debugId=
|
|
90711
|
+
//# debugId=47CFC2A8B910907664756E2164756E21
|
|
90711
90712
|
//# sourceMappingURL=index.js.map
|