pi-advisor-flow 0.14.2-dev.2 → 0.14.2-dev.3
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 +5 -0
- package/README.md +2 -0
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/src/herdr-shared.ts +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,11 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
10
10
|
|
|
11
11
|
- Updated Oxfmt to 0.74.0, Oxlint and plugins to 1.89.0, and Knip to 6.42.1; adjusted tests for the updated Oxlint rules.
|
|
12
12
|
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Let a long-running Pi use fresh Herdr sequence numbers for later consultation cleanup, preserving its sequence watermark across module reloads.
|
|
16
|
+
- Prevent ordinary, benchmark, and Node loader tests from sending reports or notifications to an inherited Herdr pane.
|
|
17
|
+
|
|
13
18
|
## 0.14.1 - 2026-10-19
|
|
14
19
|
|
|
15
20
|
### Changed
|
package/README.md
CHANGED
|
@@ -42,6 +42,8 @@ Keep implementation on a fast model and borrow frontier reasoning only when deci
|
|
|
42
42
|
|
|
43
43
|
Regular consultations never block execution. Automatic loop gates are different: they evaluate repeated tool calls and can stop a tool action or session based on your configured failure policy.
|
|
44
44
|
|
|
45
|
+
Herdr status reports refresh their sequence numbers so later consultation cleanup can recover from earlier reports as time advances. Recovery still requires a new clear request; ordinary turns do not clear existing labels automatically. See [Herdr integration](docs/herdr.md) for ordering and delivery limits.
|
|
46
|
+
|
|
45
47
|
## Install
|
|
46
48
|
|
|
47
49
|
Requires Pi 1.0.0+ (1.x).
|
package/dist/index.js
CHANGED
|
@@ -1703,9 +1703,11 @@ var SOURCE = "pi-advisor:advisor-activity";
|
|
|
1703
1703
|
var NOTIFICATION_SOURCE = "pi-advisor:advisor-notification";
|
|
1704
1704
|
var BLOCK_SOURCE = "pi-advisor:advisor-block";
|
|
1705
1705
|
var HERDR_PI_SOURCE = "herdr:pi";
|
|
1706
|
-
var
|
|
1706
|
+
var SEQUENCE_KEY = Symbol.for("pi-advisor:herdr:sequence");
|
|
1707
|
+
var sequenceState = globalThis;
|
|
1707
1708
|
var nextSequence = () => {
|
|
1708
|
-
sequence
|
|
1709
|
+
const sequence = Math.max((sequenceState[SEQUENCE_KEY] ?? 0) + 1, Date.now() * 1000);
|
|
1710
|
+
sequenceState[SEQUENCE_KEY] = sequence;
|
|
1709
1711
|
return sequence;
|
|
1710
1712
|
};
|
|
1711
1713
|
var emitBlocked;
|
package/package.json
CHANGED
package/src/herdr-shared.ts
CHANGED
|
@@ -39,10 +39,21 @@ export type HerdrRequest = HerdrMetadataRequest | HerdrNotificationRequest;
|
|
|
39
39
|
|
|
40
40
|
export type Report = (request: HerdrRequest) => void;
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
const SEQUENCE_KEY = Symbol.for("pi-advisor:herdr:sequence");
|
|
43
|
+
|
|
44
|
+
type HerdrSequenceState = typeof globalThis & {
|
|
45
|
+
[SEQUENCE_KEY]?: number;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const sequenceState: HerdrSequenceState = globalThis;
|
|
43
49
|
|
|
44
50
|
export const nextSequence = () => {
|
|
45
|
-
sequence
|
|
51
|
+
const sequence = Math.max(
|
|
52
|
+
(sequenceState[SEQUENCE_KEY] ?? 0) + 1,
|
|
53
|
+
Date.now() * 1000
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
sequenceState[SEQUENCE_KEY] = sequence;
|
|
46
57
|
|
|
47
58
|
return sequence;
|
|
48
59
|
};
|