@algosuite/vo-mcp 0.2.0-beta.43 → 0.2.0-beta.44
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-cli.js +19 -1
- package/dist/runner-cli.js.map +3 -3
- package/package.json +1 -1
package/dist/runner-cli.js
CHANGED
|
@@ -5969,6 +5969,21 @@ var init_rate_limit_resume = __esm({
|
|
|
5969
5969
|
}
|
|
5970
5970
|
});
|
|
5971
5971
|
|
|
5972
|
+
// ../../scripts/virtual-office/code-runner/publish-staged.mjs
|
|
5973
|
+
async function nothingStagedAsync(worktreeDir, runCommand) {
|
|
5974
|
+
try {
|
|
5975
|
+
await runCommand("git", ["diff", "--cached", "--quiet"], worktreeDir);
|
|
5976
|
+
return true;
|
|
5977
|
+
} catch {
|
|
5978
|
+
return false;
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
var init_publish_staged = __esm({
|
|
5982
|
+
"../../scripts/virtual-office/code-runner/publish-staged.mjs"() {
|
|
5983
|
+
"use strict";
|
|
5984
|
+
}
|
|
5985
|
+
});
|
|
5986
|
+
|
|
5972
5987
|
// ../../scripts/virtual-office/code-runner/secure-random.mjs
|
|
5973
5988
|
import { randomInt } from "node:crypto";
|
|
5974
5989
|
var secureUnitRandom;
|
|
@@ -6208,6 +6223,7 @@ function pushPlan(branch, githubToken, { allowAmbientFallback = false } = {}) {
|
|
|
6208
6223
|
var init_publish = __esm({
|
|
6209
6224
|
"../../scripts/virtual-office/code-runner/publish.mjs"() {
|
|
6210
6225
|
"use strict";
|
|
6226
|
+
init_publish_staged();
|
|
6211
6227
|
init_git_resilience();
|
|
6212
6228
|
init_auto_merge();
|
|
6213
6229
|
init_pr_overlap_gate();
|
|
@@ -6899,8 +6915,9 @@ async function commitWorkLocallyAsync(worktreeDir, files, {
|
|
|
6899
6915
|
for (let i = 0; i < cleaned.length; i += 100) {
|
|
6900
6916
|
await runCommand("git", ["add", "--", ...cleaned.slice(i, i + 100)], worktreeDir, { timeout: 12e4 });
|
|
6901
6917
|
}
|
|
6918
|
+
if (await nothingStagedAsync(worktreeDir, runCommand)) return { branch, truncated: false, committed: false };
|
|
6902
6919
|
await runCommand("git", ["commit", "-m", compactTitle(title, 180)], worktreeDir);
|
|
6903
|
-
return { branch, truncated: false };
|
|
6920
|
+
return { branch, truncated: false, committed: true };
|
|
6904
6921
|
}
|
|
6905
6922
|
async function existingPrUrlAsync(worktreeDir, branch, githubToken = null, { runCommand = defaultRunCommand } = {}) {
|
|
6906
6923
|
try {
|
|
@@ -7108,6 +7125,7 @@ var init_publish_async = __esm({
|
|
|
7108
7125
|
init_auto_merge();
|
|
7109
7126
|
init_git_resilience();
|
|
7110
7127
|
init_process_runner2();
|
|
7128
|
+
init_publish_staged();
|
|
7111
7129
|
init_secure_random();
|
|
7112
7130
|
init_pr_overlap_gate();
|
|
7113
7131
|
init_existing_pr_publication();
|