@grepai/cli 0.5.5 → 0.5.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.
- package/index.js +7 -3
- package/index.js.map +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -82624,12 +82624,16 @@ 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
|
+
let initialzed = false;
|
|
82627
82628
|
const languageCache = new Map;
|
|
82628
82629
|
const parse12 = fnUntraced2(function* (input) {
|
|
82629
82630
|
const { content, language } = input;
|
|
82630
82631
|
return yield* tryPromise2({
|
|
82631
82632
|
try: async () => {
|
|
82632
|
-
|
|
82633
|
+
if (!initialzed) {
|
|
82634
|
+
await Parser.init();
|
|
82635
|
+
initialzed = true;
|
|
82636
|
+
}
|
|
82633
82637
|
const parser2 = new Parser;
|
|
82634
82638
|
parser2.reset();
|
|
82635
82639
|
parser2.setLanguage(await (async () => {
|
|
@@ -90689,11 +90693,11 @@ var program = gen2(function* () {
|
|
|
90689
90693
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands([indexCommand, searchCommand]));
|
|
90690
90694
|
const cli = exports_Command.run(command, {
|
|
90691
90695
|
name: "GREP AI",
|
|
90692
|
-
version: "v0.5.
|
|
90696
|
+
version: "v0.5.7"
|
|
90693
90697
|
});
|
|
90694
90698
|
yield* cli(process.argv);
|
|
90695
90699
|
});
|
|
90696
90700
|
program.pipe(provide2(mergeAll5(GrepAi.Default).pipe(provideMerge2(Clack.Default), provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
90697
90701
|
|
|
90698
|
-
//# debugId=
|
|
90702
|
+
//# debugId=A9EA01FBC66B679B64756E2164756E21
|
|
90699
90703
|
//# sourceMappingURL=index.js.map
|