@cat-factory/executor-harness 1.92.0 → 1.92.2
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/package.json +6 -6
- package/src/coding-agent.ts +27 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/executor-harness",
|
|
3
|
-
"version": "1.92.
|
|
3
|
+
"version": "1.92.2",
|
|
4
4
|
"description": "Container payload: a thin TypeScript wrapper that runs the Pi coding agent against a cloned repo and opens a PR. Runs in the Cloudflare Container (and, in local native mode, as a host process); carries no secrets.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@hono/node-server": "^2.0
|
|
28
|
+
"@hono/node-server": "^2.1.0",
|
|
29
29
|
"@types/node": "^26.1.2",
|
|
30
|
-
"hono": "^4.
|
|
30
|
+
"hono": "^4.13.0",
|
|
31
31
|
"typescript": "7.0.2",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@cat-factory/kernel": "0.
|
|
34
|
-
"@cat-factory/server": "0.
|
|
35
|
-
"@cat-factory/spend": "0.
|
|
33
|
+
"@cat-factory/kernel": "0.242.0",
|
|
34
|
+
"@cat-factory/server": "0.222.0",
|
|
35
|
+
"@cat-factory/spend": "0.15.6"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc -p tsconfig.json",
|
package/src/coding-agent.ts
CHANGED
|
@@ -1101,40 +1101,36 @@ export async function runMultiRepoCoding(
|
|
|
1101
1101
|
baseSha: '',
|
|
1102
1102
|
resumed: false,
|
|
1103
1103
|
},
|
|
1104
|
-
...peers.map(
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}),
|
|
1120
|
-
),
|
|
1104
|
+
...peers.map((peer): RepoLeg => ({
|
|
1105
|
+
repo: peer.repo,
|
|
1106
|
+
dirName: claimDir(peer.repo),
|
|
1107
|
+
dir: '',
|
|
1108
|
+
cloneBranch: peer.repo.baseBranch,
|
|
1109
|
+
// Coding peers always carry `newBranch` (the backend sets the shared work branch);
|
|
1110
|
+
// fall back to the primary's for the type (read-only peers never reach this path).
|
|
1111
|
+
workBranch: peer.newBranch ?? primaryWorkBranch,
|
|
1112
|
+
ghToken: peer.ghToken ?? job.ghToken,
|
|
1113
|
+
...(peer.pr ? { pr: peer.pr } : {}),
|
|
1114
|
+
...(peer.frameId ? { frameId: peer.frameId } : {}),
|
|
1115
|
+
primary: false,
|
|
1116
|
+
baseSha: '',
|
|
1117
|
+
resumed: false,
|
|
1118
|
+
})),
|
|
1121
1119
|
// Read-only reference repos (doc-writer): cloned as siblings the agent reads but never writes.
|
|
1122
1120
|
// `workBranch` is set to the base only to satisfy the type — a read-only leg never branches or
|
|
1123
1121
|
// pushes (guarded by `readOnly` in both the clone and push phases below).
|
|
1124
|
-
...references.map(
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
}),
|
|
1137
|
-
),
|
|
1122
|
+
...references.map((reference): RepoLeg => ({
|
|
1123
|
+
repo: reference.repo,
|
|
1124
|
+
dirName: claimDir(reference.repo),
|
|
1125
|
+
dir: '',
|
|
1126
|
+
cloneBranch: reference.repo.baseBranch,
|
|
1127
|
+
workBranch: reference.repo.baseBranch,
|
|
1128
|
+
ghToken: reference.ghToken ?? job.ghToken,
|
|
1129
|
+
primary: false,
|
|
1130
|
+
readOnly: true,
|
|
1131
|
+
baseSha: '',
|
|
1132
|
+
resumed: false,
|
|
1133
|
+
})),
|
|
1138
1134
|
]
|
|
1139
1135
|
|
|
1140
1136
|
return withWorkspace('multi', async (root) => {
|