@gpambrozio/paseo-herald 0.6.0 → 0.6.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 +10 -0
- package/client/herald.tsx +2 -1
- package/client/rows.ts +13 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every version
|
|
|
7
7
|
as `@gpambrozio/paseo-herald` and tagged here, so a version is something to install and a line to
|
|
8
8
|
read before you move.
|
|
9
9
|
|
|
10
|
+
## [0.6.1] — 2026-10-31
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Herald no longer lists finished agents it has no record of.** An agent Paseo still marked as
|
|
15
|
+
finished but Herald never saw finish showed up as a "Finished" card reading "No summary: this
|
|
16
|
+
happened before Herald was watching this agent", and each one counted toward the number beside
|
|
17
|
+
Herald in the sidebar. Those are left out now. Agents waiting on a question, a permission or an
|
|
18
|
+
error still show, whether or not Herald saw them happen.
|
|
19
|
+
|
|
10
20
|
## [0.6.0] — 2026-10-07
|
|
11
21
|
|
|
12
22
|
**Requires Paseo 0.11.** This version does not load on Paseo 0.10 or older; stay on 0.5.1 until you
|
package/client/herald.tsx
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* Two sources, joined by agent id in `client/rows.ts` and loaded by
|
|
8
8
|
* `client/waiting.ts`, which the sidebar row reads too. An agent Paseo flags
|
|
9
9
|
* that Herald has no entry for (an event before the plugin loaded, say) is
|
|
10
|
-
* still listed, with what Paseo knows about the reason
|
|
10
|
+
* still listed, with what Paseo knows about the reason — unless the flag is a
|
|
11
|
+
* finished turn, which has nothing left to act on and is left out.
|
|
11
12
|
*
|
|
12
13
|
* Async **function expressions**, never async arrows, anywhere in this file:
|
|
13
14
|
* the app `eval`s the client bundle, and Hermes's eval compiler on iOS and
|
package/client/rows.ts
CHANGED
|
@@ -38,21 +38,20 @@ export interface FlaggedAgent {
|
|
|
38
38
|
* keeps an agent flagged until the user's next message, however long ago the
|
|
39
39
|
* turn ended, and that is right — a question asked a week ago is still
|
|
40
40
|
* unanswered. A *closed* session is not waiting on anyone until it is opened
|
|
41
|
-
* again,
|
|
42
|
-
*
|
|
43
|
-
* Those two are the cases dropped here.
|
|
41
|
+
* again, so it is dropped here. A finished turn Herald has no entry for is
|
|
42
|
+
* dropped too, by `joinRows`, whatever the agent's status.
|
|
44
43
|
*/
|
|
45
44
|
function isCurrent(agent: FlaggedAgent): boolean {
|
|
46
|
-
|
|
47
|
-
if (agent.attentionReason === "finished" && agent.status === "running") return false;
|
|
48
|
-
return true;
|
|
45
|
+
return agent.status !== "closed";
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
/**
|
|
52
49
|
* Herald's entries win over Paseo's flags for the same agent, since they carry
|
|
53
|
-
* the reason and the sentence. A
|
|
54
|
-
*
|
|
55
|
-
*
|
|
50
|
+
* the reason and the sentence. A Paseo flag Herald has no entry for gets a row
|
|
51
|
+
* only when something is still waiting on the user, never for a finished turn.
|
|
52
|
+
* A *finished* entry on an agent that is working again is already withheld by
|
|
53
|
+
* the daemon, which knows each entry's agent without having to enumerate every
|
|
54
|
+
* running one — see `Liveness`.
|
|
56
55
|
*/
|
|
57
56
|
export function joinRows(entries: AttentionEntry[], flagged: FlaggedAgent[]): Row[] {
|
|
58
57
|
const byAgent = new Map<string, Row>();
|
|
@@ -69,6 +68,11 @@ export function joinRows(entries: AttentionEntry[], flagged: FlaggedAgent[]): Ro
|
|
|
69
68
|
});
|
|
70
69
|
flagged.forEach((agent) => {
|
|
71
70
|
if (byAgent.has(agent.id) || !isCurrent(agent)) return;
|
|
71
|
+
// Paseo keeps a finished agent flagged until the next message, so a finished
|
|
72
|
+
// turn Herald never recorded would get a card it has nothing to say about.
|
|
73
|
+
// A question, permission or error Herald never saw is still unanswered, and
|
|
74
|
+
// keeps its row.
|
|
75
|
+
if (agent.attentionReason === "finished") return;
|
|
72
76
|
byAgent.set(agent.id, {
|
|
73
77
|
agentId: agent.id,
|
|
74
78
|
title: agent.title,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpambrozio/paseo-herald",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Paseo plugin: speaks one sentence when an agent needs you, and lists everything waiting in a sidebar panel",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/gpambrozio/paseo-plugins/tree/main/herald",
|