@openape/apes 1.28.7 → 1.28.8
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/cli.js
CHANGED
|
@@ -2892,9 +2892,22 @@ Worktree: ${worktree}`,
|
|
|
2892
2892
|
const agentRisk = await deps.riskAssessor({ paths: changedFiles, diff });
|
|
2893
2893
|
const decision = decideMerge(changedFiles, policy, agentRisk);
|
|
2894
2894
|
log(`[coding] decision=${decision.classification} (${decision.reason})`);
|
|
2895
|
-
|
|
2895
|
+
const authorEmail = process.env.GIT_AUTHOR_EMAIL || "coding-agent@openape.ai";
|
|
2896
|
+
const authorName = process.env.GIT_AUTHOR_NAME || "OpenApe Coding Agent";
|
|
2897
|
+
const ident = `-c user.email='${authorEmail.replace(/'/g, "")}' -c user.name='${authorName.replace(/'/g, "")}'`;
|
|
2898
|
+
const commitRes = await shell(`git -C '${worktree}' ${ident} commit -m ${shqMsg(input.issue)}`);
|
|
2899
|
+
if (commitRes.exit_code !== 0) {
|
|
2900
|
+
return { branch, worktree, runStatus: "ok", changedFiles, decision, outcome: "run-failed", prRef: branch, reason: `commit failed: ${(commitRes.stderr || commitRes.stdout).slice(0, 300)}` };
|
|
2901
|
+
}
|
|
2902
|
+
const pushRes = await shell(`git -C '${worktree}' -c credential.helper='!gh auth git-credential' push -u origin '${branch}'`);
|
|
2903
|
+
if (pushRes.exit_code !== 0) {
|
|
2904
|
+
return { branch, worktree, runStatus: "ok", changedFiles, decision, outcome: "run-failed", prRef: branch, reason: `push failed: ${(pushRes.stderr || pushRes.stdout).slice(0, 300)}` };
|
|
2905
|
+
}
|
|
2896
2906
|
const prCmd = buildPrCreate({ forge: input.forge, title: prTitle(input.issue), body: prBody(input.issue), head: branch });
|
|
2897
2907
|
const prRes = await shell(`cd '${worktree}' && ${prCmd}`);
|
|
2908
|
+
if (prRes.exit_code !== 0) {
|
|
2909
|
+
return { branch, worktree, runStatus: "ok", changedFiles, decision, outcome: "run-failed", prRef: branch, reason: `pr create failed: ${(prRes.stderr || prRes.stdout).slice(0, 300)}` };
|
|
2910
|
+
}
|
|
2898
2911
|
const prRef = prRes.stdout.match(/\/pull\/(\d+)|!(\d+)|\bpr\/(\d+)/i)?.slice(1).find(Boolean) ?? branch;
|
|
2899
2912
|
if (decision.needsHuman) {
|
|
2900
2913
|
return { branch, worktree, runStatus: "ok", changedFiles, decision, outcome: "awaiting-human", prRef, reason: decision.reason };
|
|
@@ -6738,7 +6751,7 @@ var mcpCommand = defineCommand52({
|
|
|
6738
6751
|
if (transport !== "stdio" && transport !== "sse") {
|
|
6739
6752
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
6740
6753
|
}
|
|
6741
|
-
const { startMcpServer } = await import("./server-
|
|
6754
|
+
const { startMcpServer } = await import("./server-2VKIFWFT.js");
|
|
6742
6755
|
await startMcpServer(transport, port);
|
|
6743
6756
|
}
|
|
6744
6757
|
});
|
|
@@ -7376,7 +7389,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
7376
7389
|
}
|
|
7377
7390
|
}
|
|
7378
7391
|
async function runHealth(args) {
|
|
7379
|
-
const version = true ? "1.28.
|
|
7392
|
+
const version = true ? "1.28.8" : "0.0.0";
|
|
7380
7393
|
const auth = loadAuth();
|
|
7381
7394
|
if (!auth) {
|
|
7382
7395
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -7649,10 +7662,10 @@ if (shellRewrite) {
|
|
|
7649
7662
|
if (shellRewrite.action === "rewrite") {
|
|
7650
7663
|
process.argv = shellRewrite.argv;
|
|
7651
7664
|
} else if (shellRewrite.action === "version") {
|
|
7652
|
-
console.log(`ape-shell ${"1.28.
|
|
7665
|
+
console.log(`ape-shell ${"1.28.8"} (OpenApe DDISA shell wrapper)`);
|
|
7653
7666
|
process.exit(0);
|
|
7654
7667
|
} else if (shellRewrite.action === "help") {
|
|
7655
|
-
console.log(`ape-shell ${"1.28.
|
|
7668
|
+
console.log(`ape-shell ${"1.28.8"} \u2014 OpenApe DDISA shell wrapper`);
|
|
7656
7669
|
console.log("");
|
|
7657
7670
|
console.log("Usage:");
|
|
7658
7671
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -7710,7 +7723,7 @@ var configCommand = defineCommand64({
|
|
|
7710
7723
|
var main = defineCommand64({
|
|
7711
7724
|
meta: {
|
|
7712
7725
|
name: "apes",
|
|
7713
|
-
version: "1.28.
|
|
7726
|
+
version: "1.28.8",
|
|
7714
7727
|
description: "Unified CLI for OpenApe"
|
|
7715
7728
|
},
|
|
7716
7729
|
subCommands: {
|
|
@@ -7768,7 +7781,7 @@ async function maybeRefreshAuth() {
|
|
|
7768
7781
|
}
|
|
7769
7782
|
}
|
|
7770
7783
|
await maybeRefreshAuth();
|
|
7771
|
-
await maybeWarnStaleVersion("1.28.
|
|
7784
|
+
await maybeWarnStaleVersion("1.28.8").catch(() => {
|
|
7772
7785
|
});
|
|
7773
7786
|
runMain(main).catch((err) => {
|
|
7774
7787
|
if (err instanceof CliExit) {
|