hillclimb 0.8.2 → 0.8.3
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/main.js +21 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -121,7 +121,8 @@ function detectRepoRoot() {
|
|
|
121
121
|
const root = execSync("git rev-parse --show-toplevel", {
|
|
122
122
|
encoding: "utf-8",
|
|
123
123
|
timeout: 3e3,
|
|
124
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
124
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
125
|
+
windowsHide: true
|
|
125
126
|
}).trim();
|
|
126
127
|
if (!root) return null;
|
|
127
128
|
return { root, name: path2.basename(root) };
|
|
@@ -984,7 +985,7 @@ function copilotUninstallMatching(settings, eventName, predicate) {
|
|
|
984
985
|
}
|
|
985
986
|
return true;
|
|
986
987
|
}
|
|
987
|
-
var OPENCODE_PLUGIN_VERSION =
|
|
988
|
+
var OPENCODE_PLUGIN_VERSION = 8;
|
|
988
989
|
var OPENCODE_PLUGIN_MARKER = `// HILLCLIMB_OPENCODE_PLUGIN_VERSION=${OPENCODE_PLUGIN_VERSION}`;
|
|
989
990
|
var OPENCODE_PLUGIN_CONTENT = `${OPENCODE_PLUGIN_MARKER}
|
|
990
991
|
// Auto-installed by \`npx hillclimb\`. Do not edit manually \u2014 re-running
|
|
@@ -1069,6 +1070,7 @@ function spawnHillclimb(subcommand, payload) {
|
|
|
1069
1070
|
const child = spawn("npx", ["hillclimb@latest"].concat(args), {
|
|
1070
1071
|
detached: true,
|
|
1071
1072
|
stdio: ["pipe", "ignore", "ignore"],
|
|
1073
|
+
windowsHide: true,
|
|
1072
1074
|
});
|
|
1073
1075
|
child.on("error", () => {});
|
|
1074
1076
|
if (child.stdin) {
|
|
@@ -1413,7 +1415,8 @@ function trackedHookFiles(repoRoot, files) {
|
|
|
1413
1415
|
try {
|
|
1414
1416
|
const output = execFileSync("git", ["ls-files", "--", ...rels], {
|
|
1415
1417
|
cwd: repoRoot,
|
|
1416
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
1418
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
1419
|
+
windowsHide: true
|
|
1417
1420
|
}).toString("utf-8").trim();
|
|
1418
1421
|
if (!output) return [];
|
|
1419
1422
|
return output.split(/\r?\n/).map((rel) => path6.join(repoRoot, rel));
|
|
@@ -1617,7 +1620,11 @@ function sleep(ms) {
|
|
|
1617
1620
|
function openBrowser(url) {
|
|
1618
1621
|
const [cmd, args] = process.platform === "darwin" ? ["open", [url]] : process.platform === "win32" ? ["cmd", ["/c", "start", "", url]] : ["xdg-open", [url]];
|
|
1619
1622
|
try {
|
|
1620
|
-
const child = spawn(cmd, args, {
|
|
1623
|
+
const child = spawn(cmd, args, {
|
|
1624
|
+
detached: true,
|
|
1625
|
+
stdio: "ignore",
|
|
1626
|
+
windowsHide: true
|
|
1627
|
+
});
|
|
1621
1628
|
child.on("error", () => {
|
|
1622
1629
|
});
|
|
1623
1630
|
child.unref();
|
|
@@ -13828,6 +13835,7 @@ async function runUpload() {
|
|
|
13828
13835
|
const child = spawn2(process.execPath, [entrypoint, "upload"], {
|
|
13829
13836
|
detached: true,
|
|
13830
13837
|
stdio: ["pipe", "ignore", "ignore"],
|
|
13838
|
+
windowsHide: true,
|
|
13831
13839
|
env: workerEnv
|
|
13832
13840
|
});
|
|
13833
13841
|
child.on("error", (err) => {
|
|
@@ -13920,7 +13928,10 @@ var EXEC_OPTS = {
|
|
|
13920
13928
|
timeout: GIT_COMMAND_TIMEOUT_MS,
|
|
13921
13929
|
// A rewrite diff for a text file capped at ≤100 MB must fit. This transient
|
|
13922
13930
|
// allocation only grows as large as the actual command output.
|
|
13923
|
-
maxBuffer: 256 * 1024 * 1024
|
|
13931
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
13932
|
+
// The detached worker has no console on Windows, so without this every git
|
|
13933
|
+
// child would allocate a fresh visible console window (one flash per call).
|
|
13934
|
+
windowsHide: true
|
|
13924
13935
|
};
|
|
13925
13936
|
var MAX_ERROR_OUTPUT_CHARS = 2e3;
|
|
13926
13937
|
var DEFAULT_SNAPSHOT_LIMITS = {
|
|
@@ -14062,7 +14073,8 @@ function readTreeBlobHead(repoRoot, sha) {
|
|
|
14062
14073
|
const { stdout } = spawnSync("git", ["cat-file", "blob", sha], {
|
|
14063
14074
|
cwd: repoRoot,
|
|
14064
14075
|
timeout: GIT_COMMAND_TIMEOUT_MS,
|
|
14065
|
-
maxBuffer: BINARY_SNIFF_BYTES
|
|
14076
|
+
maxBuffer: BINARY_SNIFF_BYTES,
|
|
14077
|
+
windowsHide: true
|
|
14066
14078
|
});
|
|
14067
14079
|
return stdout?.length ? stdout.subarray(0, BINARY_SNIFF_BYTES) : null;
|
|
14068
14080
|
} catch {
|
|
@@ -14998,7 +15010,8 @@ function execGit(cwd, args) {
|
|
|
14998
15010
|
cwd,
|
|
14999
15011
|
stdio: ["pipe", "pipe", "pipe"],
|
|
15000
15012
|
timeout: 3e4,
|
|
15001
|
-
maxBuffer: 50 * 1024 * 1024
|
|
15013
|
+
maxBuffer: 50 * 1024 * 1024,
|
|
15014
|
+
windowsHide: true
|
|
15002
15015
|
}).toString("utf-8").trim();
|
|
15003
15016
|
}
|
|
15004
15017
|
function canUploadFile(filename, buffer) {
|
|
@@ -16611,6 +16624,7 @@ async function runGitTraces() {
|
|
|
16611
16624
|
{
|
|
16612
16625
|
detached: true,
|
|
16613
16626
|
stdio: ["pipe", "ignore", "ignore"],
|
|
16627
|
+
windowsHide: true,
|
|
16614
16628
|
env: workerEnv
|
|
16615
16629
|
}
|
|
16616
16630
|
);
|