@grepai/cli 0.7.9 → 0.8.0
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 +17 -3
- package/index.js.map +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -29579,6 +29579,10 @@ var Equivalence = (self2, that) => matchWith(self2, that, {
|
|
|
29579
29579
|
onMillis: (self3, that2) => self3 === that2,
|
|
29580
29580
|
onNanos: (self3, that2) => self3 === that2
|
|
29581
29581
|
});
|
|
29582
|
+
var times = /* @__PURE__ */ dual(2, (self2, times2) => match4(self2, {
|
|
29583
|
+
onMillis: (millis2) => make8(millis2 * times2),
|
|
29584
|
+
onNanos: (nanos2) => make8(nanos2 * BigInt(times2))
|
|
29585
|
+
}));
|
|
29582
29586
|
var sum = /* @__PURE__ */ dual(2, (self2, that) => matchWith(self2, that, {
|
|
29583
29587
|
onMillis: (self3, that2) => make8(self3 + that2),
|
|
29584
29588
|
onNanos: (self3, that2) => make8(self3 + that2)
|
|
@@ -38857,7 +38861,12 @@ var checkEffect = /* @__PURE__ */ dual(2, (self2, test) => makeWithState(self2.i
|
|
|
38857
38861
|
}
|
|
38858
38862
|
return map11(test(input, out2), (cont) => cont ? [state2, out2, decision] : [state2, out2, done5]);
|
|
38859
38863
|
})));
|
|
38864
|
+
var delayedSchedule = (schedule) => addDelay(schedule, (x) => x);
|
|
38860
38865
|
var driver = (self2) => pipe(make24([none2(), self2.initial]), map11((ref) => new ScheduleDriverImpl(self2, ref)));
|
|
38866
|
+
var exponential2 = (baseInput, factor = 2) => {
|
|
38867
|
+
const base = decode(baseInput);
|
|
38868
|
+
return delayedSchedule(map15(forever2, (i2) => times(base, Math.pow(factor, i2))));
|
|
38869
|
+
};
|
|
38861
38870
|
var intersect5 = /* @__PURE__ */ dual(2, (self2, that) => intersectWith(self2, that, intersect4));
|
|
38862
38871
|
var intersectWith = /* @__PURE__ */ dual(3, (self2, that, f) => makeWithState([self2.initial, that.initial], (now, input, state) => pipe(zipWith2(self2.step(now, input, state[0]), that.step(now, input, state[1]), (a, b) => [a, b]), flatMap7(([[lState, out2, lDecision], [rState, out22, rDecision]]) => {
|
|
38863
38872
|
if (isContinue2(lDecision) && isContinue2(rDecision)) {
|
|
@@ -43948,6 +43957,7 @@ var updateContext3 = updateContext2;
|
|
|
43948
43957
|
|
|
43949
43958
|
// ../../node_modules/.bun/effect@3.19.15/node_modules/effect/dist/esm/Schedule.js
|
|
43950
43959
|
var ScheduleTypeId2 = ScheduleTypeId;
|
|
43960
|
+
var exponential3 = exponential2;
|
|
43951
43961
|
var passthrough3 = passthrough;
|
|
43952
43962
|
var spaced2 = spaced;
|
|
43953
43963
|
|
|
@@ -110103,7 +110113,11 @@ var CodebaseScannerAgentFs = scoped3(CodebaseScanner, gen2(function* () {
|
|
|
110103
110113
|
if (syncMode === "push") {
|
|
110104
110114
|
const results = yield* scanFs();
|
|
110105
110115
|
const { new: newFiles, modified, deleted } = results;
|
|
110106
|
-
yield* forEach5([...newFiles, ...modified], ({ filePath, content }) => agentFs.use((a) => a.fs.writeFile(filePath, content))
|
|
110116
|
+
yield* forEach5([...newFiles, ...modified], ({ filePath, content }) => agentFs.use((a) => a.fs.writeFile(filePath, content)).pipe(retry({
|
|
110117
|
+
times: 5,
|
|
110118
|
+
schedule: exponential3("50 millis"),
|
|
110119
|
+
while: (cause2) => cause2.message.includes("UNIQUE constraint failed: fs_dentry")
|
|
110120
|
+
})), { concurrency: "unbounded" });
|
|
110107
110121
|
yield* forEach5(deleted, ({ filePath }) => agentFs.use((a) => a.fs.deleteFile(filePath)), { concurrency: "unbounded" });
|
|
110108
110122
|
yield* agentFs.dbPush();
|
|
110109
110123
|
return results;
|
|
@@ -118254,11 +118268,11 @@ var program = gen2(function* () {
|
|
|
118254
118268
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands(subcommands));
|
|
118255
118269
|
const cli = exports_Command.run(command, {
|
|
118256
118270
|
name: "GREP AI",
|
|
118257
|
-
version: "v0.
|
|
118271
|
+
version: "v0.8.0"
|
|
118258
118272
|
});
|
|
118259
118273
|
yield* cli(process.argv);
|
|
118260
118274
|
});
|
|
118261
118275
|
program.pipe(provide2(ProjectScanner.Default.pipe(provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
118262
118276
|
|
|
118263
|
-
//# debugId=
|
|
118277
|
+
//# debugId=89DB27A0A5B43E3364756E2164756E21
|
|
118264
118278
|
//# sourceMappingURL=index.js.map
|