@grepai/cli 0.8.3 → 0.8.4
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 +20 -7
- package/index.js.map +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -89567,7 +89567,7 @@ var GrepAiConfig = Struct({
|
|
|
89567
89567
|
description: "Database backend for storing chunks and embeddings"
|
|
89568
89568
|
})),
|
|
89569
89569
|
experimental__agentFs: Struct({
|
|
89570
|
-
syncMode: Literal2("push", "pull").pipe(optional
|
|
89570
|
+
syncMode: Literal2("push", "pull").pipe(optional),
|
|
89571
89571
|
url: String$,
|
|
89572
89572
|
authToken: String$
|
|
89573
89573
|
}).pipe(optional)
|
|
@@ -92526,7 +92526,7 @@ class AgentFs extends Service()("@grepai/core/internal/services/agentfs", {
|
|
|
92526
92526
|
const db = yield* tryPromise2({
|
|
92527
92527
|
try: () => connect({
|
|
92528
92528
|
path: path4.join(baseAgentFsLocalPath, "local.db"),
|
|
92529
|
-
url: url3,
|
|
92529
|
+
url: () => syncMode ? url3 : null,
|
|
92530
92530
|
authToken,
|
|
92531
92531
|
clientName: "grepai"
|
|
92532
92532
|
}),
|
|
@@ -116760,7 +116760,7 @@ class CommandUtils extends Service()("@grepai/cli-dev/internal/services/command-
|
|
|
116760
116760
|
}
|
|
116761
116761
|
|
|
116762
116762
|
// src/internal/services/config-json.ts
|
|
116763
|
-
function layer24(project2) {
|
|
116763
|
+
function layer24(project2, experimental__agentFsSync = false) {
|
|
116764
116764
|
return effect(Config, gen2(function* () {
|
|
116765
116765
|
const fs2 = yield* exports_FileSystem.FileSystem;
|
|
116766
116766
|
const path4 = yield* exports_Path.Path;
|
|
@@ -116774,7 +116774,19 @@ function layer24(project2) {
|
|
|
116774
116774
|
...config3,
|
|
116775
116775
|
project: project2 ?? "default",
|
|
116776
116776
|
cwd
|
|
116777
|
-
})),
|
|
116777
|
+
})), map16((config3) => {
|
|
116778
|
+
const agentFsConfig = config3.experimental__agentFs;
|
|
116779
|
+
if (agentFsConfig) {
|
|
116780
|
+
return {
|
|
116781
|
+
...config3,
|
|
116782
|
+
experimental__agentFs: {
|
|
116783
|
+
...agentFsConfig,
|
|
116784
|
+
syncMode: experimental__agentFsSync ? agentFsConfig.syncMode : undefined
|
|
116785
|
+
}
|
|
116786
|
+
};
|
|
116787
|
+
}
|
|
116788
|
+
return config3;
|
|
116789
|
+
}), catchTags2({
|
|
116778
116790
|
ParseError: (cause2) => new ConfigLoaderError({ cause: cause2 }),
|
|
116779
116791
|
BadArgument: (cause2) => new ConfigLoaderError({ cause: cause2 }),
|
|
116780
116792
|
SystemError: (cause2) => new ConfigLoaderError({ cause: cause2 })
|
|
@@ -116796,6 +116808,7 @@ function interpolateEnvVars(content) {
|
|
|
116796
116808
|
|
|
116797
116809
|
// src/internal/command-runtime.ts
|
|
116798
116810
|
var layer25 = (project2) => mergeAll5(GrepAi.Default, CommandUtils.Default, Clack.Default).pipe(provideMerge2(layer24(project2)));
|
|
116811
|
+
var grepaiIndexLayer = (project2) => mergeAll5(GrepAi.Default, CommandUtils.Default, Clack.Default).pipe(provideMerge2(layer24(project2, true)));
|
|
116799
116812
|
|
|
116800
116813
|
// src/internal/services/project-scanner.ts
|
|
116801
116814
|
class ProjectNotFound extends TaggedError2()("ProjectNotFound", {}) {
|
|
@@ -116863,7 +116876,7 @@ var IndexCommand = gen2(function* () {
|
|
|
116863
116876
|
},
|
|
116864
116877
|
onFinished: () => clack.spinner.stop("Codebase indexed").pipe(zipRight3(clack.outro("DONE!")))
|
|
116865
116878
|
});
|
|
116866
|
-
}, (effect3, { project: project2 }) => effect3.pipe(provide2(
|
|
116879
|
+
}, (effect3, { project: project2 }) => effect3.pipe(provide2(grepaiIndexLayer(project2))))));
|
|
116867
116880
|
});
|
|
116868
116881
|
|
|
116869
116882
|
// src/internal/commands/glob.ts
|
|
@@ -116948,11 +116961,11 @@ var program = gen2(function* () {
|
|
|
116948
116961
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands(subcommands));
|
|
116949
116962
|
const cli = exports_Command.run(command, {
|
|
116950
116963
|
name: "GREP AI",
|
|
116951
|
-
version: "v0.8.
|
|
116964
|
+
version: "v0.8.4"
|
|
116952
116965
|
});
|
|
116953
116966
|
yield* cli(process.argv);
|
|
116954
116967
|
});
|
|
116955
116968
|
program.pipe(provide2(ProjectScanner.Default.pipe(provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
116956
116969
|
|
|
116957
|
-
//# debugId=
|
|
116970
|
+
//# debugId=BD6B4F3B76E405E164756E2164756E21
|
|
116958
116971
|
//# sourceMappingURL=index.js.map
|