@grepai/cli 0.5.5 → 0.5.6
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 +3 -9
- package/index.js.map +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -82624,7 +82624,6 @@ var Query = class {
|
|
|
82624
82624
|
// ../core/src/internal/services/chunker-ast/ast-parser.ts
|
|
82625
82625
|
class AstParser extends Service()("@grepai/core/internal/services/chunker-ast/ast-parser/AstParser", {
|
|
82626
82626
|
sync: () => {
|
|
82627
|
-
const languageCache = new Map;
|
|
82628
82627
|
const parse12 = fnUntraced2(function* (input) {
|
|
82629
82628
|
const { content, language } = input;
|
|
82630
82629
|
return yield* tryPromise2({
|
|
@@ -82632,12 +82631,7 @@ class AstParser extends Service()("@grepai/core/internal/services/chunker-ast/as
|
|
|
82632
82631
|
await Parser.init();
|
|
82633
82632
|
const parser2 = new Parser;
|
|
82634
82633
|
parser2.reset();
|
|
82635
|
-
parser2.setLanguage(await (
|
|
82636
|
-
if (!languageCache.has(language)) {
|
|
82637
|
-
languageCache.set(language, await Language.load(languageMap[language]));
|
|
82638
|
-
}
|
|
82639
|
-
return languageCache.get(language);
|
|
82640
|
-
})());
|
|
82634
|
+
parser2.setLanguage(await Language.load(languageMap[language]));
|
|
82641
82635
|
const tree = parser2.parse(content);
|
|
82642
82636
|
return tree;
|
|
82643
82637
|
},
|
|
@@ -90689,11 +90683,11 @@ var program = gen2(function* () {
|
|
|
90689
90683
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands([indexCommand, searchCommand]));
|
|
90690
90684
|
const cli = exports_Command.run(command, {
|
|
90691
90685
|
name: "GREP AI",
|
|
90692
|
-
version: "v0.5.
|
|
90686
|
+
version: "v0.5.6"
|
|
90693
90687
|
});
|
|
90694
90688
|
yield* cli(process.argv);
|
|
90695
90689
|
});
|
|
90696
90690
|
program.pipe(provide2(mergeAll5(GrepAi.Default).pipe(provideMerge2(Clack.Default), provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
90697
90691
|
|
|
90698
|
-
//# debugId=
|
|
90692
|
+
//# debugId=14B2A967A1F12A0F64756E2164756E21
|
|
90699
90693
|
//# sourceMappingURL=index.js.map
|