@openape/ape-agent 2.8.5 → 2.8.6
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/bridge.mjs +10 -6
- package/package.json +2 -2
package/dist/bridge.mjs
CHANGED
|
@@ -1510,7 +1510,7 @@ import { existsSync as existsSync4, mkdirSync as mkdirSync3, readdirSync as read
|
|
|
1510
1510
|
import { homedir as homedir6 } from "os";
|
|
1511
1511
|
import { join as join6 } from "path";
|
|
1512
1512
|
|
|
1513
|
-
// ../../packages/apes/dist/chunk-
|
|
1513
|
+
// ../../packages/apes/dist/chunk-OZDZCYJ7.js
|
|
1514
1514
|
import { spawn } from "child_process";
|
|
1515
1515
|
import { mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
1516
1516
|
import { homedir as homedir3 } from "os";
|
|
@@ -1747,7 +1747,7 @@ var githubAdapter = {
|
|
|
1747
1747
|
const refTok = ID_RE.test(r3) ? r3 : assertBranch(r3);
|
|
1748
1748
|
return `gh pr view ${shq(refTok)} --json state,mergeStateStatus,statusCheckRollup,reviewDecision`;
|
|
1749
1749
|
},
|
|
1750
|
-
issueGet: (ref) => `gh issue view ${assertId(ref)} --json number,title,body,labels`
|
|
1750
|
+
issueGet: (ref, repo) => `gh issue view ${assertId(ref)}${repo ? ` --repo ${shq(repo)}` : ""} --json number,title,body,labels`
|
|
1751
1751
|
};
|
|
1752
1752
|
var azureAdapter = {
|
|
1753
1753
|
id: "azure",
|
|
@@ -1768,7 +1768,10 @@ var azureAdapter = {
|
|
|
1768
1768
|
return parts.join(" ");
|
|
1769
1769
|
},
|
|
1770
1770
|
prStatus: (ref) => `az repos pr show --id ${assertId(ref)}`,
|
|
1771
|
-
|
|
1771
|
+
// Azure work items are org/project-scoped, not repo-scoped, so `repo`
|
|
1772
|
+
// doesn't apply here — the caller's `az` config (defaults.organization/
|
|
1773
|
+
// project) resolves it.
|
|
1774
|
+
issueGet: (ref, _repo) => `az boards work-item show --id ${assertId(ref)}`
|
|
1772
1775
|
};
|
|
1773
1776
|
var registry = /* @__PURE__ */ new Map([
|
|
1774
1777
|
[githubAdapter.id, githubAdapter],
|
|
@@ -1802,8 +1805,8 @@ function buildPrMerge(input) {
|
|
|
1802
1805
|
function buildPrStatus(forge, ref) {
|
|
1803
1806
|
return getForge(forge).prStatus(ref);
|
|
1804
1807
|
}
|
|
1805
|
-
function buildIssueGet(forge, ref) {
|
|
1806
|
-
return getForge(forge).issueGet(ref);
|
|
1808
|
+
function buildIssueGet(forge, ref, repo) {
|
|
1809
|
+
return getForge(forge).issueGet(ref, repo);
|
|
1807
1810
|
}
|
|
1808
1811
|
function resolveForge(a2) {
|
|
1809
1812
|
if (typeof a2.forge === "string" && a2.forge !== "") return a2.forge;
|
|
@@ -1878,7 +1881,8 @@ var forgeTools = [
|
|
|
1878
1881
|
},
|
|
1879
1882
|
execute: async (args) => {
|
|
1880
1883
|
const a2 = args;
|
|
1881
|
-
|
|
1884
|
+
const repo = typeof a2.remote === "string" ? a2.remote : void 0;
|
|
1885
|
+
return await runApeShell(buildIssueGet(resolveForge(a2), a2.ref, repo));
|
|
1882
1886
|
}
|
|
1883
1887
|
}
|
|
1884
1888
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openape/ape-agent",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.6",
|
|
4
4
|
"description": "OpenApe agent runtime: per-agent process that connects to chat.openape.ai, runs the LLM loop with tools + cron tasks, and streams replies back to owners.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"ofetch": "^1.4.1",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
25
|
"yaml": "^2.8.0",
|
|
26
|
-
"@openape/apes": "1.28.
|
|
26
|
+
"@openape/apes": "1.28.6",
|
|
27
27
|
"@openape/cli-auth": "0.4.1",
|
|
28
28
|
"@openape/prompt-injection-detector": "0.1.0"
|
|
29
29
|
},
|