pi-herdsman 0.32.0 → 0.32.1
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/index.js +33 -30
- package/dist/index.js.map +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14227,38 +14227,41 @@ function createAgentController(pi, options2) {
|
|
|
14227
14227
|
return requestId;
|
|
14228
14228
|
} finally {
|
|
14229
14229
|
if (acknowledgementObserved) {
|
|
14230
|
-
const cleanupRelease = claimAssignmentLock3(
|
|
14231
|
-
runtime.mailboxPath,
|
|
14232
|
-
operation,
|
|
14233
|
-
{ label: runtime.label, paneId: runtime.paneId }
|
|
14234
|
-
);
|
|
14235
14230
|
try {
|
|
14236
|
-
const
|
|
14237
|
-
if (
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
|
|
14231
|
+
const cleanupRelease = tryClaimAssignmentLock(runtime.mailboxPath);
|
|
14232
|
+
if (cleanupRelease) {
|
|
14233
|
+
try {
|
|
14234
|
+
const current = readAgentState(runtime.mailboxPath);
|
|
14235
|
+
if (current && sameIdentity(current, {
|
|
14236
|
+
version: current.version,
|
|
14237
|
+
build: options2.build,
|
|
14238
|
+
runId: runtime.runId,
|
|
14239
|
+
ownerSessionId: runtime.ownerSessionId,
|
|
14240
|
+
workspaceId: runtime.workspaceId,
|
|
14241
|
+
agentLabel: runtime.label,
|
|
14242
|
+
paneId: runtime.paneId,
|
|
14243
|
+
piSessionId: runtime.piSessionId ?? "",
|
|
14244
|
+
piSessionFile: runtime.piSessionFile,
|
|
14245
|
+
cwd: runtime.cwd,
|
|
14246
|
+
updatedAt: current.updatedAt
|
|
14247
|
+
}) && current.lastAck?.requestId === requestId) {
|
|
14248
|
+
removeRequest(runtime.mailboxPath, requestId);
|
|
14249
|
+
if (runtime.cleanupError?.startsWith(
|
|
14250
|
+
"Acknowledged request could not be removed:"
|
|
14251
|
+
))
|
|
14252
|
+
runtime.cleanupError = void 0;
|
|
14253
|
+
}
|
|
14254
|
+
} finally {
|
|
14255
|
+
cleanupRelease();
|
|
14256
|
+
}
|
|
14255
14257
|
}
|
|
14256
14258
|
} catch (error2) {
|
|
14257
14259
|
const message = `Acknowledged request could not be removed: ${String(error2)}`;
|
|
14258
14260
|
runtime.cleanupError = message;
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14261
|
+
try {
|
|
14262
|
+
options2.appendError(context, "pi_herdsman_cleanup_error", error2);
|
|
14263
|
+
} catch {
|
|
14264
|
+
}
|
|
14262
14265
|
}
|
|
14263
14266
|
}
|
|
14264
14267
|
}
|
|
@@ -21074,7 +21077,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
21074
21077
|
// package.json
|
|
21075
21078
|
var package_default = {
|
|
21076
21079
|
name: "pi-herdsman",
|
|
21077
|
-
version: "0.32.
|
|
21080
|
+
version: "0.32.1",
|
|
21078
21081
|
type: "module",
|
|
21079
21082
|
description: "Asynchronous Pi subagents and agent fleet orchestration for parallel coding agents with nested delegation, background work, and supervision in herdr.",
|
|
21080
21083
|
license: "Apache-2.0",
|
|
@@ -21151,14 +21154,14 @@ var package_default = {
|
|
|
21151
21154
|
"@earendil-works/pi-ai": "*",
|
|
21152
21155
|
"@earendil-works/pi-coding-agent": "*",
|
|
21153
21156
|
"@earendil-works/pi-tui": "*",
|
|
21154
|
-
"@howaboua/pi-codex-conversion": "^3.0.45",
|
|
21157
|
+
"@howaboua/pi-codex-conversion": "^3.0.45 || ^4.0.0",
|
|
21155
21158
|
typebox: "*"
|
|
21156
21159
|
},
|
|
21157
21160
|
devDependencies: {
|
|
21158
21161
|
"@earendil-works/pi-ai": "1.4.0",
|
|
21159
21162
|
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
21160
21163
|
"@earendil-works/pi-tui": "1.4.0",
|
|
21161
|
-
"@howaboua/pi-codex-conversion": "
|
|
21164
|
+
"@howaboua/pi-codex-conversion": "4.0.4",
|
|
21162
21165
|
"@types/proper-lockfile": "4.1.4",
|
|
21163
21166
|
esbuild: "^0.28.2",
|
|
21164
21167
|
prettier: "3.9.10",
|