repotracer 0.1.4 → 0.1.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/README.md +5 -0
- package/bin/repotracer.js +9 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,6 +25,11 @@ Preview without changing files:
|
|
|
25
25
|
npx repotracer@latest setup --dry-run
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
RepoTracer updates automatically. Restart Codex after an update for it to take
|
|
29
|
+
effect. To disable automatic updates, set `updates.automatic = false` in
|
|
30
|
+
`~/.repotracer/config.toml` or set `REPOTRACER_NO_UPDATE=1`. Running
|
|
31
|
+
`npx repotracer@latest setup` still updates a disabled installation.
|
|
32
|
+
|
|
28
33
|
## Commands
|
|
29
34
|
|
|
30
35
|
```bash
|
package/bin/repotracer.js
CHANGED
|
@@ -51,8 +51,15 @@ function persistForSetup(bin, args, home = os.homedir()) {
|
|
|
51
51
|
fs.renameSync(temporary, destination);
|
|
52
52
|
} catch (error) {
|
|
53
53
|
if (!['EEXIST', 'EPERM'].includes(error.code)) throw error;
|
|
54
|
-
|
|
55
|
-
fs.renameSync(
|
|
54
|
+
const displaced = `${destination}.old-${process.pid}`;
|
|
55
|
+
fs.renameSync(destination, displaced);
|
|
56
|
+
try {
|
|
57
|
+
fs.renameSync(temporary, destination);
|
|
58
|
+
} catch (installError) {
|
|
59
|
+
fs.renameSync(displaced, destination);
|
|
60
|
+
throw installError;
|
|
61
|
+
}
|
|
62
|
+
try { fs.rmSync(displaced, { force: true }); } catch {}
|
|
56
63
|
}
|
|
57
64
|
} finally {
|
|
58
65
|
fs.rmSync(temporary, { force: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repotracer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Get up to 60% more from your Codex limits. A cheaper model searches your repo so Codex stops burning turns on it.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"repotracer": "bin/repotracer.js"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"postinstall": "node scripts/fetch-binary.js",
|
|
15
|
-
"test": "node --test test
|
|
15
|
+
"test": "node --test test/install.test.js"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"mcp",
|