@abacus-ai/cli 2.5.3-canary.11 → 2.5.3-canary.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abacus-ai/cli",
3
- "version": "2.5.3-canary.11",
3
+ "version": "2.5.3-canary.12",
4
4
  "bin": {
5
5
  "abacusai": "scripts/npm-wrapper/shim.cjs"
6
6
  },
@@ -139,6 +139,17 @@ async function main() {
139
139
  if (process.platform !== "win32") fs.chmodSync(stagedPath, 0o755);
140
140
 
141
141
  replaceBinary(stagedPath, targetPath);
142
+
143
+ // Also install the rg sibling so @codellm/ripgrep finds it next to process.execPath.
144
+ // Without this, the bun-compiled binary falls back to an embedded (broken) pkgRgPath.
145
+ const rgBinaryName = process.platform === "win32" ? "rg.exe" : "rg";
146
+ const sourceRg = path.join(tmpDir, rgBinaryName);
147
+ if (fs.existsSync(sourceRg)) {
148
+ const rgTarget = path.join(binDir, rgBinaryName);
149
+ fs.copyFileSync(sourceRg, rgTarget);
150
+ if (process.platform !== "win32") fs.chmodSync(rgTarget, 0o755);
151
+ }
152
+
142
153
  fs.writeFileSync(stampPath, VERSION);
143
154
  fs.writeFileSync(path.join(binDir, ".install-source"), detectInstallPm());
144
155