pi-herdsman 0.38.0 → 0.38.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/CHANGELOG.md CHANGED
@@ -9,6 +9,18 @@
9
9
  Move existing role overrides from `agents/` to `pi-herdsman/roles/` in the
10
10
  same scope. Reserved role names in `agents/` are rejected.
11
11
 
12
+ ## [0.38.1](https://github.com/boadij/pi-herdsman/compare/v0.38.0...v0.38.1) (2026-11-03)
13
+
14
+
15
+ ### Fixes
16
+
17
+ * preserve inherited tools across order-preserving projections ([#792](https://github.com/boadij/pi-herdsman/issues/792)) ([98c9d98](https://github.com/boadij/pi-herdsman/commit/98c9d9875d5cae006ccf24177b1d2638f0c5aee5))
18
+
19
+
20
+ ### Tests
21
+
22
+ * remove redundant and self-referential checks ([#793](https://github.com/boadij/pi-herdsman/issues/793)) ([6f51a42](https://github.com/boadij/pi-herdsman/commit/6f51a424de2e4cd8510e77212be6111242d2f69e))
23
+
12
24
  ## [0.38.0](https://github.com/boadij/pi-herdsman/compare/v0.37.0...v0.38.0) (2026-11-02)
13
25
 
14
26
 
package/dist/index.js CHANGED
@@ -22986,7 +22986,7 @@ import { fileURLToPath as fileURLToPath3 } from "node:url";
22986
22986
  // package.json
22987
22987
  var package_default = {
22988
22988
  name: "pi-herdsman",
22989
- version: "0.38.0",
22989
+ version: "0.38.1",
22990
22990
  type: "module",
22991
22991
  description: "Asynchronous Pi subagents and agent fleet orchestration for parallel coding agents with nested delegation, background work, and supervision in herdr.",
22992
22992
  license: "Apache-2.0",
@@ -30414,7 +30414,11 @@ function createLeadToolState(getAllTools, ownedNames, leadCoordinationNames) {
30414
30414
  }
30415
30415
  };
30416
30416
  }
30417
- var sameToolSelection = (left, right) => left.length === right.length && left.every((name, i) => name === right[i]);
30417
+ var sameToolSelection = (left, right) => {
30418
+ const leftNames = new Set(left);
30419
+ const rightNames = new Set(right);
30420
+ return leftNames.size === rightNames.size && [...leftNames].every((name) => rightNames.has(name));
30421
+ };
30418
30422
  function sessionLeadExecutionState(entries, sessionId) {
30419
30423
  let state;
30420
30424
  for (const candidate of entries) {