@garuda-agent/garuda 0.18.1 → 0.19.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/CHANGELOG.md +73 -0
- package/README.md +1 -1
- package/dist/{acpCommand-JAYNMIMP.js → acpCommand-SIFV5XBS.js} +12 -13
- package/dist/advise-EA7OIYSV.js +433 -0
- package/dist/{anthropic-NQIZLD64.js → anthropic-6DKONNQG.js} +4 -2
- package/dist/{buildCheck-HB46NWLX.js → buildCheck-JNWGER5R.js} +4 -4
- package/dist/buildInfo-APQVLWI7.js +8 -0
- package/dist/{chunk-TWQ7V2L6.js → chunk-2THG7PEC.js} +2 -2
- package/dist/chunk-2TX3KY4M.js +88 -0
- package/dist/{chunk-TLA2PDGM.js → chunk-4BELTWP4.js} +5 -5
- package/dist/{chunk-QXTHEFKP.js → chunk-5GF2VINR.js} +2 -2
- package/dist/{chunk-JMH5W5DG.js → chunk-65NUEOI7.js} +44 -1
- package/dist/{chunk-WK5NE6RY.js → chunk-A4SSBJ2P.js} +2 -2
- package/dist/{chunk-DQSCCE77.js → chunk-AX3A5KPH.js} +5 -5
- package/dist/{chunk-5UDYQ5MK.js → chunk-BFK432BK.js} +12 -14
- package/dist/{chunk-GKU62MHQ.js → chunk-CHAWBYB4.js} +2 -2
- package/dist/chunk-CKVF67VJ.js +1780 -0
- package/dist/{chunk-IKPGHM54.js → chunk-DRAZNXNP.js} +3 -3
- package/dist/{chunk-ZKT4P2PC.js → chunk-FALYVAFB.js} +2 -2
- package/dist/chunk-FBCVU2P2.js +9 -0
- package/dist/{chunk-LMKGSYJC.js → chunk-L5TZTKUV.js} +3 -1
- package/dist/{chunk-34WBDQBL.js → chunk-MTJT3D3X.js} +19 -19
- package/dist/{chunk-QLBCM2YQ.js → chunk-QE7E77IR.js} +4 -4
- package/dist/chunk-U6Z4WH3B.js +9 -0
- package/dist/{chunk-R7RCW4BQ.js → chunk-WXNIMQOA.js} +5 -5
- package/dist/{chunk-YAQ6QLKB.js → chunk-YIU5QGMV.js} +3 -3
- package/dist/cli/index.js +50 -51
- package/dist/{create-OACSGJ37.js → create-GHGJR3AY.js} +5 -5
- package/dist/{evalCommand-BLJJ4G76.js → evalCommand-GQWNI2YJ.js} +73 -45
- package/dist/{evalTune-W53KAD4V.js → evalTune-LKEIFX7F.js} +20 -21
- package/dist/{export-E677HIQS.js → export-ZPF3AMO6.js} +5 -5
- package/dist/{exportHtml-BMV73YRO.js → exportHtml-ISISG5HG.js} +4 -4
- package/dist/{inkChat-EVLYDC3K.js → inkChat-3YNJC7KE.js} +12 -13
- package/dist/{install-4ST5BNRG.js → install-BQVAOQHD.js} +3 -3
- package/dist/{jobCommand-ILOTYOX3.js → jobCommand-WPHZYBXM.js} +6 -6
- package/dist/{launchd-QG6R5RAK.js → launchd-JZ6Y6JIH.js} +4 -4
- package/dist/{lspCommand-X4FTTONR.js → lspCommand-4LYQRYXL.js} +3 -3
- package/dist/{manager-L25IUXHW.js → manager-7MA6APCK.js} +3 -3
- package/dist/{nightCommand-XPWT6CQZ.js → nightCommand-RQKQGDTB.js} +6 -6
- package/dist/{remove-STX5UO7X.js → remove-S45S7ICN.js} +3 -3
- package/dist/runner-EUXA5UCH.js +97 -0
- package/dist/{setupCommand-OSOMFHDQ.js → setupCommand-YHDRJTPZ.js} +8 -9
- package/dist/{tune-VX2WQTHS.js → tune-XPBOEWU6.js} +12 -13
- package/package.json +5 -5
- package/dist/advise-HDKJGNBL.js +0 -195
- package/dist/buildInfo-K73FFI5S.js +0 -8
- package/dist/chunk-CWVXOSAA.js +0 -894
- package/dist/chunk-DUYLVGPY.js +0 -821
- package/dist/chunk-H7LIBGZT.js +0 -9
- package/dist/chunk-IYGJWX65.js +0 -9
- package/dist/chunk-NH72AELP.js +0 -48
package/dist/chunk-H7LIBGZT.js
DELETED
package/dist/chunk-IYGJWX65.js
DELETED
package/dist/chunk-NH72AELP.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/tools/atomicWrite.ts
|
|
4
|
-
import { randomBytes } from "crypto";
|
|
5
|
-
import { chmod, link, realpath, rename, stat, unlink, writeFile } from "fs/promises";
|
|
6
|
-
import { basename, dirname, join } from "path";
|
|
7
|
-
async function writeFileAtomic(path, content, { createOnly }) {
|
|
8
|
-
const target = createOnly ? path : await realpath(path);
|
|
9
|
-
const temp = join(
|
|
10
|
-
dirname(target),
|
|
11
|
-
`.${basename(target)}.garuda-${randomBytes(4).toString("hex")}.tmp`
|
|
12
|
-
);
|
|
13
|
-
const mode = createOnly ? void 0 : (await stat(target)).mode & 4095;
|
|
14
|
-
await writeFile(temp, content, { flag: "wx", ...mode === void 0 ? {} : { mode } });
|
|
15
|
-
try {
|
|
16
|
-
if (createOnly) {
|
|
17
|
-
try {
|
|
18
|
-
await link(temp, target);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
const code = error.code;
|
|
21
|
-
if (code !== "EPERM" && code !== "ENOTSUP" && code !== "EXDEV") throw error;
|
|
22
|
-
if (await exists(target)) throw Object.assign(new Error("EEXIST"), { code: "EEXIST" });
|
|
23
|
-
await rename(temp, target);
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
await chmod(temp, mode ?? 420);
|
|
28
|
-
await rename(temp, target);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
} finally {
|
|
32
|
-
await unlink(temp).catch(() => {
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
async function exists(path) {
|
|
37
|
-
try {
|
|
38
|
-
await stat(path);
|
|
39
|
-
return true;
|
|
40
|
-
} catch {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
writeFileAtomic
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=chunk-NH72AELP.js.map
|