@linxiraos/pi-messenger 1.4.7 → 1.4.10
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 +18 -0
- package/index.ts +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.4.10] - 2026-11-05
|
|
4
|
+
|
|
5
|
+
- Released as part of Zeta 1.4.10; no package-specific user-visible changes.
|
|
6
|
+
|
|
7
|
+
## [1.4.9] - 2026-11-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Ported upstream `#41`: the status render falls back to plain text when the
|
|
12
|
+
host's UI context loses the prototype `theme` getter (`ctx.ui.theme` can be
|
|
13
|
+
undefined while `hasUI` is true).
|
|
14
|
+
- Ported upstream `#42`: `session_shutdown` uses the cwd captured at session
|
|
15
|
+
start, so a shutdown delivered with a stale context no longer skips lobby
|
|
16
|
+
worker cleanup.
|
|
17
|
+
- Upstream `#40` (Windows spawning `pi.cmd`) does not apply: crew workers are
|
|
18
|
+
spawned through this port's own `getCliSpawnCommand`, which resolves
|
|
19
|
+
`zetacode` and never a `.cmd` shim.
|
|
20
|
+
|
|
3
21
|
## [1.4.7] - 2026-10-30
|
|
4
22
|
|
|
5
23
|
- Released as part of Zeta 1.4.7; no package-specific user-visible changes.
|
package/index.ts
CHANGED
|
@@ -259,7 +259,9 @@ export default function piMessengerExtension(pi: ExtensionAPI) {
|
|
|
259
259
|
checkStuckAgents(ctx, agents);
|
|
260
260
|
const activeNames = new Set(agents.map(a => a.name));
|
|
261
261
|
const count = agents.length;
|
|
262
|
-
|
|
262
|
+
// A host that spreads a class-based UI context loses the prototype
|
|
263
|
+
// `theme` getter, so `theme` can be undefined while `hasUI` is true.
|
|
264
|
+
const theme = ctx.ui.theme ?? { fg: (_color: string, text: string) => text };
|
|
263
265
|
|
|
264
266
|
for (const name of state.unreadCounts.keys()) {
|
|
265
267
|
if (!activeNames.has(name)) {
|
|
@@ -1238,9 +1240,11 @@ Usage (action-based API - preferred):
|
|
|
1238
1240
|
// The steer message will trigger the LLM to call work again
|
|
1239
1241
|
});
|
|
1240
1242
|
|
|
1241
|
-
pi.on("session_shutdown", async (
|
|
1243
|
+
pi.on("session_shutdown", async () => {
|
|
1242
1244
|
latestCtx = null;
|
|
1243
|
-
|
|
1245
|
+
// Some hosts deliver `session_shutdown` with an already-stale ctx, and
|
|
1246
|
+
// any ctx read would skip this cleanup; use the cwd captured at start.
|
|
1247
|
+
const cwd = state.cwd;
|
|
1244
1248
|
if (cwd) {
|
|
1245
1249
|
shutdownLobbyWorkers(cwd);
|
|
1246
1250
|
}
|