@linxiraos/pi-wire 1.5.1 → 1.5.11

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,8 +1,23 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [1.5.1] - 2026-11-10
3
+ ## [1.5.11] - 2026-11-20
4
4
 
5
- - Released as part of Zeta 1.5.1; no package-specific user-visible changes.
5
+ ### Changed
6
+
7
+ - Released as part of Zeta 1.5.11; no package-specific user-visible changes.
8
+
9
+ ## [1.5.10] - 2026-11-19
10
+
11
+ ### Added
12
+
13
+ - Added optional picker icons for tooltips and accessible names, plus an option to control the placement of the search interface.
14
+ - Added buttons, menu, and document component kinds, including menu-row action state changes and document text editing, commenting, and uncommenting events.
15
+
16
+ ## [1.5.2] - 2026-11-13
17
+
18
+ ### Changed
19
+
20
+ - Released as part of Zeta 1.5.2 asset review; no package-specific user-visible changes.
6
21
 
7
22
  ## [1.5.0] - 2026-11-09
8
23
 
@@ -19,20 +19,19 @@ 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.15.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/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*` |
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
- | `web-app/` (`src/studio`, `src/vendor/*`) | OMP Studio 0.1.17, https://github.com/the-snowpear/omp-studio | `0.1.17`, ported into the product renderer | 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
- | `termide/` | TermIDE, https://github.com/termide/termide | tag `0.46.0` = `a027ca788cd4c9d24f060cdcd3195ca2e475617b` | MIT | deviations listed in `termide/VENDOR.md` (28 entries) |
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
+ | `termide/` | TermIDE, https://github.com/termide/termide | tag `0.49.0` = `057eb55e0a7c4ee969982fab62dc83bde028e052` | MIT | deviations listed in `termide/VENDOR.md` |
26
26
  | `editor/npm/*` (`@linxiraos/editor*`) | TermIDE `panel-editor` | same tree as `termide/` | MIT | built as the editor-only bin `termide-editor` (`editor/npm/editor/VENDOR.md`) |
27
27
  | `plugins/official/*` | per plugin | per plugin | per plugin | each directory carries `plugin.json`, README with source, and its license |
28
28
 
29
- Why the fork renames things at all: the upstream licenses and the product
30
- identity both require that a downstream distribution not present itself as the
31
- upstream. Renames therefore cover the product name, command names
32
- (`zetawork` / `zetacode` / `zetaide`), the `zeta://` scheme, the npm scope
33
- `@linxiraos/*`, and release asset names (`zeta-cli-*`). User-visible
34
- configuration keeps accepting the legacy names during the transition, so an
35
- existing installation does not silently break.
29
+ Why the fork renames things: Zeta keeps its product identity distinct from its
30
+ upstreams. Renames cover the product name, command names (`zetawork` /
31
+ `zetacode` / `zetaide`), the `zeta://` scheme, the npm scope `@linxiraos/*`, and
32
+ release asset names (`zeta-cli-*`). User-visible configuration uses Zeta names;
33
+ upstream status directories and retired configuration aliases are not loaded.
34
+ The component licenses below retain their original grants and notices.
36
35
 
37
36
  Brand and assets:
38
37
 
@@ -48,6 +47,18 @@ Frozen counterpart constants (interoperability, not branding):
48
47
  These are wire-compatible identifiers Zeta must keep, listed here so that a
49
48
  brand sweep does not break them.
50
49
 
50
+ SHEETJS COMMUNITY EDITION 0.20.3
51
+ ================================
52
+
53
+ Copyright (C) 2012-present SheetJS LLC. Licensed under Apache-2.0; the full
54
+ Apache License 2.0 is reproduced in this aggregate below. The unchanged official
55
+ distribution, including its LICENSE and source notices, is retained at
56
+ web-app/vendor/xlsx-0.20.3.tgz. Source: https://git.sheetjs.com/sheetjs/sheetjs
57
+ Official archive: https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz
58
+ SHA-512: oLDq3jw7AcLqKWH2AhCpVTZl8mf6X2YReP+Neh0SJUzV/BdZYjth94tG5toiMB1PPrYtxOCfaoUCkvtuH+3AJA==
59
+ Zeta changes dependency resolution to this local archive only; parser bytes
60
+ and the upstream license are unchanged (ADR-0059).
61
+
51
62
  PYTHON DEPENDENCY DISTRIBUTION ROLE
52
63
  ===================================
53
64
 
@@ -432,7 +443,7 @@ SOFTWARE.
432
443
  web-app/src/studio + web-app/src/vendor/* + web-ui/components/studio +
433
444
  web-ui/styles/studio + web-ui/lib/studio-protocol
434
445
 
435
- Ported UI surface and protocol types from OMP Studio 0.1.17 (MIT).
446
+ Ported UI surface and protocol types from OMP Studio (MIT): the original port was `0.1.17`; the current product renderer follows official `v0.2.1`, integrated 2026-11-16.
436
447
 
437
448
  - `web-ui/components/studio/` and `web-ui/styles/studio/` are derived from the
438
449
  OMP Studio renderer (`apps/renderer/src`).
@@ -1,11 +1,263 @@
1
1
  /**
2
- * Shared wire constants for Zeta packages.
2
+ * Shared wire types for the Zeta live-session protocol.
3
3
  *
4
- * This file carries only the cross-package values that do not belong to a
5
- * feature-specific protocol; TSP and the stream wire live in their own modules.
4
+ * Dependency-free JSON shapes produced by `@linxiraos/zeta`
5
+ * (`src/collab/protocol.ts` and friends). Browser and test clients import this
6
+ * package instead of depending on the coding-agent runtime; conformance is
7
+ * asserted type-only in `packages/coding-agent/test/collab/web-wire.types.ts`.
8
+ *
9
+ * Unknown entry/event variants arrive over the wire as plain JSON. The unions
10
+ * below cover only the variants this client renders; consumers cast at the
11
+ * JSON boundary and every `switch` keeps a tolerant `default:` branch.
6
12
  */
7
- /** Parameter key used for intent tracing (e.g. prompt explanation/reasoning). */
13
+ export interface TextContent {
14
+ type: "text";
15
+ text: string;
16
+ }
17
+ export interface ImageContent {
18
+ type: "image";
19
+ /** Base64-encoded image data. */
20
+ data: string;
21
+ /** e.g. "image/png". */
22
+ mimeType: string;
23
+ }
24
+ export interface ThinkingContent {
25
+ type: "thinking";
26
+ thinking: string;
27
+ }
28
+ export interface RedactedThinkingContent {
29
+ type: "redactedThinking";
30
+ data: string;
31
+ }
32
+ export interface ToolCallContent {
33
+ type: "toolCall";
34
+ id: string;
35
+ name: string;
36
+ arguments: Record<string, unknown>;
37
+ intent?: string;
38
+ }
39
+ export type AssistantContent = TextContent | ThinkingContent | RedactedThinkingContent | ToolCallContent;
40
+ export type StopReason = "stop" | "length" | "toolUse" | "error" | "aborted";
41
+ export interface WireUsage {
42
+ input: number;
43
+ output: number;
44
+ cacheRead: number;
45
+ cacheWrite: number;
46
+ totalTokens: number;
47
+ cost: {
48
+ total: number;
49
+ };
50
+ }
51
+ export interface UserMessage {
52
+ role: "user";
53
+ content: string | (TextContent | ImageContent)[];
54
+ /** True if the message was injected by the system (e.g. auto-continue). */
55
+ synthetic?: boolean;
56
+ /** Unix timestamp in milliseconds. */
57
+ timestamp: number;
58
+ }
59
+ export interface DeveloperMessage {
60
+ role: "developer";
61
+ content: string | (TextContent | ImageContent)[];
62
+ timestamp: number;
63
+ }
64
+ export interface AssistantMessage {
65
+ role: "assistant";
66
+ content: AssistantContent[];
67
+ model: string;
68
+ usage: WireUsage;
69
+ stopReason: StopReason;
70
+ errorMessage?: string;
71
+ timestamp: number;
72
+ }
73
+ export interface ToolResultMessage {
74
+ role: "toolResult";
75
+ toolCallId: string;
76
+ toolName: string;
77
+ content: (TextContent | ImageContent)[];
78
+ details?: unknown;
79
+ isError: boolean;
80
+ timestamp: number;
81
+ }
82
+ export type WireMessage = UserMessage | DeveloperMessage | AssistantMessage | ToolResultMessage;
83
+ export interface SessionHeader {
84
+ type: "session";
85
+ id: string;
86
+ title?: string;
87
+ timestamp: string;
88
+ cwd: string;
89
+ }
90
+ export interface EntryBase {
91
+ id: string;
92
+ parentId: string | null;
93
+ timestamp: string;
94
+ }
95
+ export interface MessageEntry extends EntryBase {
96
+ type: "message";
97
+ message: WireMessage;
98
+ }
99
+ export interface CustomMessageEntry extends EntryBase {
100
+ type: "custom_message";
101
+ customType: string;
102
+ content: string | (TextContent | ImageContent)[];
103
+ details?: unknown;
104
+ display: boolean;
105
+ }
106
+ export interface CompactionEntry extends EntryBase {
107
+ type: "compaction";
108
+ summary: string;
109
+ shortSummary?: string;
110
+ firstKeptEntryId: string;
111
+ tokensBefore: number;
112
+ }
113
+ export interface BranchSummaryEntry extends EntryBase {
114
+ type: "branch_summary";
115
+ fromId: string;
116
+ summary: string;
117
+ }
118
+ export interface ModelChangeEntry extends EntryBase {
119
+ type: "model_change";
120
+ /** Model in "provider/modelId" format. */
121
+ model: string;
122
+ role?: string;
123
+ }
124
+ export interface ThinkingLevelChangeEntry extends EntryBase {
125
+ type: "thinking_level_change";
126
+ thinkingLevel?: string | null;
127
+ }
128
+ export type SessionEntry = MessageEntry | CustomMessageEntry | CompactionEntry | BranchSummaryEntry | ModelChangeEntry | ThinkingLevelChangeEntry;
129
+ export type AgentEvent = {
130
+ type: "agent_start";
131
+ } | {
132
+ type: "agent_end";
133
+ } | {
134
+ type: "turn_start";
135
+ } | {
136
+ type: "turn_end";
137
+ } | {
138
+ type: "message_start";
139
+ message: WireMessage;
140
+ }
141
+ /** Carries the FULL accumulating partial message — no delta tracking needed. */
142
+ | {
143
+ type: "message_update";
144
+ message: WireMessage;
145
+ } | {
146
+ type: "message_end";
147
+ message: WireMessage;
148
+ } | {
149
+ type: "tool_execution_start";
150
+ toolCallId: string;
151
+ toolName: string;
152
+ args: unknown;
153
+ intent?: string;
154
+ } | {
155
+ type: "tool_execution_update";
156
+ toolCallId: string;
157
+ toolName: string;
158
+ args: unknown;
159
+ partialResult: unknown;
160
+ } | {
161
+ type: "tool_execution_end";
162
+ toolCallId: string;
163
+ toolName: string;
164
+ result: unknown;
165
+ isError?: boolean;
166
+ } | {
167
+ type: "notice";
168
+ level: "info" | "warning" | "error";
169
+ message: string;
170
+ source?: string;
171
+ } | {
172
+ type: "auto_compaction_start";
173
+ reason: string;
174
+ action: string;
175
+ } | {
176
+ type: "auto_compaction_end";
177
+ aborted: boolean;
178
+ willRetry: boolean;
179
+ errorMessage?: string;
180
+ skipped?: boolean;
181
+ } | {
182
+ type: "auto_retry_start";
183
+ attempt: number;
184
+ maxAttempts: number;
185
+ delayMs: number;
186
+ errorMessage: string;
187
+ } | {
188
+ type: "auto_retry_end";
189
+ success: boolean;
190
+ attempt: number;
191
+ finalError?: string;
192
+ } | {
193
+ type: "thinking_level_changed";
194
+ thinkingLevel?: string;
195
+ };
196
+ export interface WireModel {
197
+ id: string;
198
+ name: string;
199
+ provider: string;
200
+ contextWindow: number | null;
201
+ }
202
+ export interface ContextUsage {
203
+ tokens: number | null;
204
+ contextWindow: number | null;
205
+ percent: number | null;
206
+ }
207
+ export interface Participant {
208
+ name: string;
209
+ role: "host" | "guest";
210
+ /** True when the guest joined through a read-only (view) link. */
211
+ readOnly?: boolean;
212
+ }
213
+ /** Parameter key used for intent tracing (e.g. prompt explanation/reasoning) */
8
214
  export declare const INTENT_FIELD = "i";
215
+ /** Plaintext envelope prefix: `[4B uint32 BE peerId][sealed payload]`. */
216
+ export declare const ENVELOPE_HEADER_LENGTH = 4;
217
+ /**
218
+ * Prefix `sealed` with its envelope header. Host→relay: peerId 0 broadcasts to
219
+ * all guests, peerId N targets guest N. Guest→relay: always 0; the relay
220
+ * rewrites it to the sender's id.
221
+ */
222
+ export declare function packEnvelope(peerId: number, sealed: Uint8Array): Uint8Array<ArrayBuffer>;
223
+ /** Split an envelope into its peerId and sealed payload; `null` when shorter than the header. */
224
+ export declare function unpackEnvelope(data: Uint8Array): {
225
+ peerId: number;
226
+ payload: Uint8Array;
227
+ } | null;
228
+ /** Rewrite the peerId in place without copying the payload. */
229
+ export declare function rewriteEnvelopePeer(data: Uint8Array, peerId: number): void;
230
+ export declare const ROOM_ID_BYTES = 16;
231
+ /** AES-256-GCM room key; the seal key for every collab frame. */
232
+ export declare const ROOM_KEY_BYTES = 32;
233
+ /**
234
+ * Random write token appended to the room key in full links
235
+ * (`base64url(key ∥ token)`); view links carry the bare key. Possession
236
+ * proves prompt/abort/agent-cmd capability to the host.
237
+ */
238
+ export declare const WRITE_TOKEN_BYTES = 16;
239
+ /**
240
+ * Each automatic rejoin costs the host a full snapshot, and a guest on a link
241
+ * too slow for the session is shed again after every one. Past the cap the
242
+ * guest stops rejoining on its own and leaves the decision to the user.
243
+ */
244
+ export declare const MAX_AUTO_REJOINS = 3;
245
+ export declare const AUTO_REJOIN_WINDOW_MS: number;
246
+ /** Records an automatic rejoin in {@link history} if the window has room for one. */
247
+ export declare function takeAutoRejoin(history: number[], now?: number): boolean;
248
+ /** Default public relay; bare `<roomId>.<key>` links resolve against it. */
249
+ export declare const DEFAULT_RELAY_URL = "wss://my.omp.sh";
250
+ /** Default share viewer/upload base; `/share` links resolve against `<base>/<id>#<key>`. */
251
+ /** Relay → host control message. */
252
+ export type RelayControlToHost = {
253
+ t: "peer-joined" | "peer-left";
254
+ peer: number;
255
+ };
256
+ /** Relay → guest control message. */
257
+ export type RelayControlToGuest = {
258
+ t: "room-closed";
259
+ };
260
+ export type RelayControlMessage = RelayControlToHost | RelayControlToGuest;
9
261
  export * from "./shell-trace.js";
10
262
  export * from "./shell-viz.js";
11
263
  export * from "./stream.js";