@linxiraos/pi-messenger 1.5.14 → 1.5.15

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
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.5.15] - 2026-11-27
4
+
5
+ ## [1.5.15] - 2026-11-27
6
+
7
+ ### Changed
8
+
9
+ - Aligned with the OMP 19.2 runtime merge and the Zeta 1.5.15 version line.
3
10
  ## [1.5.14] - 2026-11-22
4
11
 
5
12
  ### Changed
@@ -19,7 +19,7 @@ Forked application trees:
19
19
 
20
20
  | Path | Upstream | Snapshot | License | What Zeta changed |
21
21
  |---|---|---|---|---|
22
- | `packages/ main/ crates/ python/ lsp/ sdk/ types/ skills/` | oh-my-pi (OMP), https://github.com/can1357/oh-my-pi | integrated through tag `v18.22.0` (`document/upstream-sync.md`) | see upstream files | product name, paths, command names and env prefixes; branded assets; internal identifiers renamed to `__zeta*` |
22
+ | `packages/ main/ crates/ python/ lsp/ sdk/ types/ skills/` | oh-my-pi (OMP), https://github.com/Linxira-OS/linxira-zeta | integrated through tag `v18.22.0` (`document/upstream-sync.md`) | see upstream files | product name, paths, command names and env prefixes; branded assets; internal identifiers renamed to `__zeta*` |
23
23
  | `web-ui/` | OMP Web, https://github.com/17380936778/omp-web | frozen snapshot, **abandoned 2026-11-05** (`document/upstream-sync.md`) | see upstream files | third-party UI, not maintained by Zeta: frozen as received, no builds, no fixes; the product renderer is `web-app/` (`Differences from Upstream` in README) |
24
24
  | `web-app/` (`src/studio`, `src/vendor/*`) | OMP Studio, https://github.com/the-snowpear/omp-studio | official `v0.2.1` (`6d0b764bb9eac88c1671c0380229823c5630cc74`) integrated 2026-11-16; `web-ui/` is a separate frozen OMP Web snapshot | MIT | maintained by Zeta now: the host contract is reimplemented in `studio-host` (pair/CSRF/query/command/events), the renderer was rebranded (`zeta-studio` wire name, Zeta links/fixtures), and Zeta adds windowed transcripts, precompressed static serving, the plugin registry, and the usage dashboard |
25
25
  | `termide/` | TermIDE, https://github.com/termide/termide | tag `0.49.0` = `057eb55e0a7c4ee969982fab62dc83bde028e052` | MIT | deviations listed in `termide/VENDOR.md` |
package/config-overlay.ts CHANGED
@@ -2,12 +2,12 @@
2
2
  * Pi Messenger - Config Overlay Component
3
3
  */
4
4
 
5
- import type { Component, Focusable, TUI } from "@linxiraos/pi-tui";
6
- import { matchesKey, truncateToWidth, visibleWidth } from "@linxiraos/pi-tui";
7
- import type { Theme } from "@linxiraos/zeta";
5
+ import type { ExtensionRows, ExtensionUiHost, Theme } from "@linxiraos/zeta";
6
+ import { truncate as truncateToWidth, visibleWidth } from "@linxiraos/pi-tui/text/width";
7
+ import { matchesKey } from "./keys.ts";
8
8
  import { getAutoRegisterPaths, saveAutoRegisterPaths, matchesAutoRegisterPath } from "./config.ts";
9
9
 
10
- export class MessengerConfigOverlay implements Component, Focusable {
10
+ export class MessengerConfigOverlay implements ExtensionRows {
11
11
  readonly width = 60;
12
12
  focused = false;
13
13
 
@@ -17,7 +17,7 @@ export class MessengerConfigOverlay implements Component, Focusable {
17
17
  private statusMessage = "";
18
18
 
19
19
  constructor(
20
- private tui: TUI,
20
+ private tui: ExtensionUiHost,
21
21
  private theme: Theme,
22
22
  private done: () => void,
23
23
  private cwd: string,
package/editor-command.ts CHANGED
@@ -66,8 +66,8 @@ export async function switchToEditor(ctx: ExtensionCommandContext, args = ""): P
66
66
  if (process.platform !== "win32" && ctx.ui?.openTerminal) {
67
67
  // Deferred for the same reason as the settings import above: a host
68
68
  // without /editor must not pay the host runtime's load-time graph.
69
- const { classifyTerminalMultiplexer } = await import("@linxiraos/pi-tui/terminal-multiplexer");
70
- const multiplexer = classifyTerminalMultiplexer(process.env);
69
+ const { classifyMultiplexer } = await import("@linxiraos/pi-tui/driver/mux/detect");
70
+ const multiplexer = classifyMultiplexer(process.env);
71
71
  if (multiplexer !== null) {
72
72
  const { createDefaultTerminalLaunchRequest, terminalLaunchCapabilities } = await import(
73
73
  "@linxiraos/zeta/subprocess/terminal-launch"
package/index.ts CHANGED
@@ -83,10 +83,11 @@ import { getGlobalMessengerDir } from "./paths.ts";
83
83
  import { getLiveWorkers, onLiveWorkersChanged } from "./crew/live-progress.ts";
84
84
  import { shutdownAllWorkers } from "./crew/agents.ts";
85
85
  import { shutdownLobbyWorkers } from "./crew/lobby.ts";
86
- import { OverlayHandle, TUI, truncateToWidth } from "@linxiraos/pi-tui";
86
+ import type { ExtensionOverlayHandle, ExtensionUiHost } from "@linxiraos/zeta";
87
+ import { truncate as truncateToWidth } from "@linxiraos/pi-tui/text/width";
87
88
 
88
- let overlayTui: TUI | null = null;
89
- let overlayHandle: OverlayHandle | null = null;
89
+ let overlayTui: ExtensionUiHost | null = null;
90
+ let overlayHandle: ExtensionOverlayHandle | null = null;
90
91
  let overlayOpening = false;
91
92
 
92
93
  export default function piMessengerExtension(pi: ExtensionAPI) {
@@ -572,7 +573,7 @@ Usage (action-based API - preferred):
572
573
  }
573
574
 
574
575
  if (action === "leave" && !state.registered) {
575
- overlayHandle?.hide();
576
+ overlayHandle?.close();
576
577
  overlayHandle = null;
577
578
  overlayTui = null;
578
579
  overlayOpening = false;
@@ -624,16 +625,10 @@ Usage (action-based API - preferred):
624
625
  updateStatus(ctx);
625
626
  }
626
627
 
627
- if (overlayHandle && overlayHandle.isHidden()) {
628
- overlayHandle.setHidden(false);
629
- clearAllUnreadCounts();
630
- updateStatus(ctx);
631
- return;
632
- }
628
+ if (overlayTui) return;
633
629
 
634
630
  const callbacks: OverlayCallbacks = {
635
631
  onBackground: snapshotText => {
636
- overlayHandle?.setHidden(true);
637
632
  pi.sendMessage(
638
633
  {
639
634
  customType: "crew_snapshot",
@@ -987,7 +982,6 @@ Usage (action-based API - preferred):
987
982
  overlayOpening = true;
988
983
  const callbacks: OverlayCallbacks = {
989
984
  onBackground: snapshotText => {
990
- overlayHandle?.setHidden(true);
991
985
  pi.sendMessage(
992
986
  {
993
987
  customType: "crew_snapshot",
package/keys.ts ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Key matching for the messenger's rows objects.
3
+ *
4
+ * `ctx.ui.custom` rows objects receive raw terminal input, not decoded key
5
+ * events, so match a single key id by decoding the input with the host's own
6
+ * decoder. This keeps the overlay's bindings on the same key ids as the rest
7
+ * of the 19.2 UI (`shift+r`, `ctrl+c`, `escape`, …).
8
+ */
9
+ import { decodeInput } from "@linxiraos/pi-tui/driver/input/decoder";
10
+
11
+ export function matchesKey(data: string, keyId: string): boolean {
12
+ const events = decodeInput(data);
13
+ return events.length === 1 && events[0]?.type === "key" && events[0].key.id === keyId;
14
+ }
@@ -1,5 +1,6 @@
1
1
  import { randomUUID } from "node:crypto";
2
- import { matchesKey, type TUI } from "@linxiraos/pi-tui";
2
+ import type { ExtensionUiHost } from "@linxiraos/zeta";
3
+ import { matchesKey } from "./keys.ts";
3
4
  import type { AgentMailMessage, Dirs, MessengerState } from "./lib.ts";
4
5
  import { MAX_CHAT_HISTORY } from "./lib.ts";
5
6
  import { sendMessageToAgent, getActiveAgents } from "./store.ts";
@@ -92,7 +93,7 @@ function executeTaskAction(
92
93
  return { success: result.success, message: result.message };
93
94
  }
94
95
 
95
- export function setNotification(viewState: CrewViewState, tui: TUI, success: boolean, message: string): void {
96
+ export function setNotification(viewState: CrewViewState, tui: ExtensionUiHost, success: boolean, message: string): void {
96
97
  if (viewState.notificationTimer) clearTimeout(viewState.notificationTimer);
97
98
  viewState.notification = { message: `${success ? "✓" : "✗"} ${message}`, expiresAt: Date.now() + 2000 };
98
99
  viewState.notificationTimer = setTimeout(() => {
@@ -135,7 +136,7 @@ export function handleConfirmInput(
135
136
  viewState: CrewViewState,
136
137
  cwd: string,
137
138
  agentName: string,
138
- tui: TUI,
139
+ tui: ExtensionUiHost,
139
140
  ): void {
140
141
  const action = viewState.confirmAction;
141
142
  if (!action) return;
@@ -175,7 +176,7 @@ export function handleBlockReasonInput(
175
176
  cwd: string,
176
177
  task: Task | undefined,
177
178
  agentName: string,
178
- tui: TUI,
179
+ tui: ExtensionUiHost,
179
180
  ): void {
180
181
  if (matchesKey(data, "escape")) {
181
182
  viewState.inputMode = "normal";
@@ -212,7 +213,7 @@ export function handleRevisePromptInput(
212
213
  cwd: string,
213
214
  task: Task | undefined,
214
215
  agentName: string,
215
- tui: TUI,
216
+ tui: ExtensionUiHost,
216
217
  ): void {
217
218
  if (matchesKey(data, "escape")) {
218
219
  viewState.inputMode = "normal";
@@ -310,7 +311,7 @@ function sendDirectMessage(
310
311
  cwd: string,
311
312
  target: string,
312
313
  text: string,
313
- tui: TUI,
314
+ tui: ExtensionUiHost,
314
315
  viewState: CrewViewState,
315
316
  ): void {
316
317
  try {
@@ -332,7 +333,7 @@ function sendBroadcastMessage(
332
333
  dirs: Dirs,
333
334
  cwd: string,
334
335
  text: string,
335
- tui: TUI,
336
+ tui: ExtensionUiHost,
336
337
  viewState: CrewViewState,
337
338
  ): void {
338
339
  const peers = getActiveAgents(state, dirs);
@@ -371,7 +372,7 @@ export function handleMessageInput(
371
372
  state: MessengerState,
372
373
  dirs: Dirs,
373
374
  cwd: string,
374
- tui: TUI,
375
+ tui: ExtensionUiHost,
375
376
  ): void {
376
377
  if (matchesKey(data, "escape")) {
377
378
  resetMessageInput(viewState);
@@ -461,7 +462,7 @@ export function handleCrewKeyBinding(
461
462
  viewState: CrewViewState,
462
463
  cwd: string,
463
464
  agentName: string,
464
- tui: TUI,
465
+ tui: ExtensionUiHost,
465
466
  ): void {
466
467
  if (matchesKey(data, "r") && ["done", "blocked", "in_progress"].includes(task.status)) {
467
468
  viewState.confirmAction = { type: "reset", taskId: task.id, label: task.title };
package/overlay-render.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
- import { truncateToWidth } from "@linxiraos/pi-tui";
3
+ import { truncate as truncateToWidth } from "@linxiraos/pi-tui/text/width";
4
4
  import type { Theme } from "@linxiraos/zeta";
5
5
  import {
6
6
  formatDuration,
package/overlay.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  * Pi Messenger - Chat Overlay Component
3
3
  */
4
4
 
5
- import type { Component, Focusable, TUI } from "@linxiraos/pi-tui";
6
- import { matchesKey, truncateToWidth, visibleWidth } from "@linxiraos/pi-tui";
7
- import type { Theme } from "@linxiraos/zeta";
5
+ import type { ExtensionRows, ExtensionUiHost, Theme } from "@linxiraos/zeta";
6
+ import { truncate as truncateToWidth, visibleWidth } from "@linxiraos/pi-tui/text/width";
7
+ import { matchesKey } from "./keys.ts";
8
8
  import { extractFolder, formatDuration, type MessengerState, type Dirs } from "./lib.ts";
9
9
  import * as crewStore from "./crew/store.ts";
10
10
  import {
@@ -51,7 +51,7 @@ export interface OverlayCallbacks {
51
51
  onBackground?: (snapshot: string) => void;
52
52
  }
53
53
 
54
- export class MessengerOverlay implements Component, Focusable {
54
+ export class MessengerOverlay implements ExtensionRows {
55
55
  get width(): number {
56
56
  return Math.min(100, Math.max(40, process.stdout.columns ?? 90));
57
57
  }
@@ -70,7 +70,7 @@ export class MessengerOverlay implements Component, Focusable {
70
70
  private prevInProgressCount = 0;
71
71
 
72
72
  constructor(
73
- private tui: TUI,
73
+ private tui: ExtensionUiHost,
74
74
  private theme: Theme,
75
75
  private state: MessengerState,
76
76
  private dirs: Dirs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linxiraos/pi-messenger",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "Inter-agent messaging and file reservation system for pi coding agent",
5
5
  "keywords": [
6
6
  "agents",