baro-ai 0.69.0 → 0.69.1
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/dist/runner.mjs +14 -2
- package/dist/runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/runner.mjs
CHANGED
|
@@ -3714,7 +3714,7 @@ var require_websocket_server = __commonJS({
|
|
|
3714
3714
|
|
|
3715
3715
|
// ../baro-orchestrator/scripts/runner.ts
|
|
3716
3716
|
import { execFileSync, spawn } from "child_process";
|
|
3717
|
-
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
3717
|
+
import { appendFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
3718
3718
|
import { hostname, homedir, tmpdir } from "os";
|
|
3719
3719
|
import { join } from "path";
|
|
3720
3720
|
|
|
@@ -3734,7 +3734,7 @@ var url = process.env.CONTROL_URL ?? "wss://api.baro.jigjoy.ai";
|
|
|
3734
3734
|
var token = process.env.RUNNER_TOKEN;
|
|
3735
3735
|
var httpBase = url.replace(/^ws/, "http").replace(/\/+$/, "");
|
|
3736
3736
|
var credsPath = join(homedir(), ".baro", "credentials.json");
|
|
3737
|
-
var VERSION = "0.69.
|
|
3737
|
+
var VERSION = "0.69.1";
|
|
3738
3738
|
var updateCachePath = join(homedir(), ".baro", "update-check.json");
|
|
3739
3739
|
function semverLt(a, b) {
|
|
3740
3740
|
const pa = a.split(".").map(Number);
|
|
@@ -3828,6 +3828,16 @@ function cloneRepo(fullName, token2, emit) {
|
|
|
3828
3828
|
ch.on("error", reject);
|
|
3829
3829
|
});
|
|
3830
3830
|
}
|
|
3831
|
+
function excludeDepDirs(cwd) {
|
|
3832
|
+
try {
|
|
3833
|
+
const patterns = ["node_modules", "**/node_modules", ".venv", "**/.venv", "vendor", "**/vendor"];
|
|
3834
|
+
appendFileSync(join(cwd, ".git", "info", "exclude"), `
|
|
3835
|
+
# baro: dep-sharing symlinks (never commit)
|
|
3836
|
+
${patterns.join("\n")}
|
|
3837
|
+
`);
|
|
3838
|
+
} catch {
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3831
3841
|
function captureDiff(cwd, base) {
|
|
3832
3842
|
try {
|
|
3833
3843
|
execFileSync("git", ["add", "-A"], { cwd });
|
|
@@ -3851,6 +3861,7 @@ async function runGoal(d, emit, signal) {
|
|
|
3851
3861
|
} catch (e) {
|
|
3852
3862
|
return { success: false, durationSecs: 1, error: `clone failed: ${e.message}` };
|
|
3853
3863
|
}
|
|
3864
|
+
excludeDepDirs(cwd);
|
|
3854
3865
|
if (d.diffOnly) {
|
|
3855
3866
|
try {
|
|
3856
3867
|
diffBase = execFileSync("git", ["rev-parse", "HEAD"], { cwd }).toString().trim();
|
|
@@ -3886,6 +3897,7 @@ async function runGoal(d, emit, signal) {
|
|
|
3886
3897
|
try {
|
|
3887
3898
|
const gitEnv = { ...process.env, GIT_AUTHOR_NAME: "baro", GIT_AUTHOR_EMAIL: "baro@baro.rs", GIT_COMMITTER_NAME: "baro", GIT_COMMITTER_EMAIL: "baro@baro.rs" };
|
|
3888
3899
|
execFileSync("git", ["init", "-q"], { cwd });
|
|
3900
|
+
excludeDepDirs(cwd);
|
|
3889
3901
|
execFileSync("git", ["commit", "--allow-empty", "-q", "-m", "baro: initial workspace"], { cwd, env: gitEnv });
|
|
3890
3902
|
diffBase = execFileSync("git", ["rev-parse", "HEAD"], { cwd }).toString().trim();
|
|
3891
3903
|
} catch (e) {
|