@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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. 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.0",
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.12",
28
+ "@hono/node-server": "^2.1.0",
29
29
  "@types/node": "^26.1.2",
30
- "hono": "^4.12.33",
30
+ "hono": "^4.13.0",
31
31
  "typescript": "7.0.2",
32
32
  "vitest": "^4.1.10",
33
- "@cat-factory/kernel": "0.236.0",
34
- "@cat-factory/server": "0.215.0",
35
- "@cat-factory/spend": "0.14.14"
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",
@@ -1101,40 +1101,36 @@ export async function runMultiRepoCoding(
1101
1101
  baseSha: '',
1102
1102
  resumed: false,
1103
1103
  },
1104
- ...peers.map(
1105
- (peer): RepoLeg => ({
1106
- repo: peer.repo,
1107
- dirName: claimDir(peer.repo),
1108
- dir: '',
1109
- cloneBranch: peer.repo.baseBranch,
1110
- // Coding peers always carry `newBranch` (the backend sets the shared work branch);
1111
- // fall back to the primary's for the type (read-only peers never reach this path).
1112
- workBranch: peer.newBranch ?? primaryWorkBranch,
1113
- ghToken: peer.ghToken ?? job.ghToken,
1114
- ...(peer.pr ? { pr: peer.pr } : {}),
1115
- ...(peer.frameId ? { frameId: peer.frameId } : {}),
1116
- primary: false,
1117
- baseSha: '',
1118
- resumed: false,
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
- (reference): RepoLeg => ({
1126
- repo: reference.repo,
1127
- dirName: claimDir(reference.repo),
1128
- dir: '',
1129
- cloneBranch: reference.repo.baseBranch,
1130
- workBranch: reference.repo.baseBranch,
1131
- ghToken: reference.ghToken ?? job.ghToken,
1132
- primary: false,
1133
- readOnly: true,
1134
- baseSha: '',
1135
- resumed: false,
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) => {