@openape/ape-agent 2.8.6 → 2.8.7
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 +8 -2
- package/package.json +4 -4
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-SWRK4SWT.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";
|
|
@@ -1944,11 +1944,17 @@ function buildCreateCommand(repo, taskId, branch) {
|
|
|
1944
1944
|
const { source, baseDir, isUrl } = resolveRepo(repo);
|
|
1945
1945
|
const wt = worktreePathFor(id);
|
|
1946
1946
|
const clone = isUrl ? `if [ ! -d ${q(baseDir)}/.git ]; then git clone ${q(source)} ${q(baseDir)}; fi` : `test -d ${q(baseDir)}/.git`;
|
|
1947
|
+
const reset = [
|
|
1948
|
+
`git -C ${q(baseDir)} worktree remove --force ${q(wt)} 2>/dev/null || true`,
|
|
1949
|
+
`git -C ${q(baseDir)} worktree prune 2>/dev/null || true`,
|
|
1950
|
+
`rm -rf ${q(wt)} 2>/dev/null || true`
|
|
1951
|
+
].join("; ");
|
|
1947
1952
|
return [
|
|
1948
1953
|
`mkdir -p ${q(reposRoot())} ${q(workRoot())}`,
|
|
1949
1954
|
clone,
|
|
1950
1955
|
`git -C ${q(baseDir)} fetch --quiet || true`,
|
|
1951
|
-
`
|
|
1956
|
+
`{ ${reset}; }`,
|
|
1957
|
+
`git -C ${q(baseDir)} worktree add -B ${q(br)} ${q(wt)}`,
|
|
1952
1958
|
`echo ${q(wt)}`
|
|
1953
1959
|
].join(" && ");
|
|
1954
1960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openape/ape-agent",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.7",
|
|
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,9 +23,9 @@
|
|
|
23
23
|
"ofetch": "^1.4.1",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
25
|
"yaml": "^2.8.0",
|
|
26
|
-
"@openape/apes": "1.28.
|
|
27
|
-
"@openape/
|
|
28
|
-
"@openape/
|
|
26
|
+
"@openape/apes": "1.28.7",
|
|
27
|
+
"@openape/prompt-injection-detector": "0.1.0",
|
|
28
|
+
"@openape/cli-auth": "0.4.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@antfu/eslint-config": "^7.6.1",
|