@linxiraos/pi-wire 1.1.27 → 1.2.0

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,16 +1,14 @@
1
- # Changelog
2
-
3
1
  ## [Unreleased]
4
2
 
5
- ## [1.1.27] - 2026-10-07
3
+ ## [1.2.0] - 2026-10-12
4
+
5
+ ### Added
6
6
 
7
- - 版本线推进至 1.1.27;本版无独立用户可见变化。
7
+ - Added `TspToolProps.command` (the command line Copy command copies), `TspToolProps.preview: "children"` (the collapsed body stays whole while its children clamp) and `TspCodeProps.preview`
8
8
 
9
- ### Fixed
9
+ ### Changed
10
10
 
11
- - Republished as 1.1.2 to reset the `latest` tag after the broken 1.1.0 (no functional change over 1.1.1).
12
- - Published tarballs now carry real dependency versions instead of Bun's `catalog:` protocol (1.1.0 installs failed with "Unsupported URL Type catalog:").
13
- - Republished as 1.1.3 to reset the latest tag after the broken 1.1.2 (no functional change over 1.1.1).
11
+ - Updated `TspEditorProps.placeholder` and `TspInputProps.placeholder` to accept `TspText`, enabling styled placeholder text.
14
12
 
15
13
  ## [1.1.26] - 2026-10-03
16
14
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Wire contract for Skillshare (`skills.omp.sh`): an npm-style registry for
3
- * omp skills. Shared by the omp CLI (`omp skill …`), the Go server
3
+ * zetacode skills. Shared by the omp CLI (`zetacode skill …`), the Go server
4
4
  * (`stencil/apps/skills`), and its web UI (which mirrors this file).
5
5
  *
6
6
  * Packages are scoped: `@scope/name`. A scope is a Stencil username claimed on
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Wire types for `omp stream`: Twitch-style live screen sharing at
2
+ * Wire types for `zetacode stream`: Twitch-style live screen sharing at
3
3
  * `live.omp.sh/<username>`.
4
4
  *
5
- * Independent from collab. A publisher (`omp stream`) sends plaintext JSON
5
+ * Independent from collab. A publisher (`zetacode stream`) sends plaintext JSON
6
6
  * screen deltas for one or more panes (one pane per omp session attached in
7
7
  * the same working directory); the stream server materializes each pane
8
8
  * (viewport + bounded history) so late viewers receive a snapshot without
@@ -182,7 +182,7 @@ export declare const STREAM_AUTH_ENV = "STENCIL_API_KEY";
182
182
  /** Longest accepted clip description (runes). Titles share `STREAM_TITLE_MAX`. */
183
183
  export declare const CLIP_DESCRIPTION_MAX = 5000;
184
184
  /**
185
- * `POST /api/clips` answer. The body is an `.ompcast` recording (optionally
185
+ * `POST /api/clips` answer. The body is an `.zetacast` recording (optionally
186
186
  * `Content-Encoding: gzip`) whose header may carry `title` and `description`;
187
187
  * the bearer identifies the uploading Stencil account.
188
188
  */
@@ -170,6 +170,8 @@ export interface TspCodeProps {
170
170
  tone: TspTone;
171
171
  }[];
172
172
  wrap?: boolean;
173
+ /** Clamp to the first `lines` drawn lines under a "N more lines" button; gives way inside an open disclosure. */
174
+ preview?: TspPreview;
173
175
  }
174
176
  export interface TspDiffHunk {
175
177
  oldStart: number;
@@ -323,7 +325,8 @@ export interface TspEditorProps {
323
325
  decor?: readonly TspEditorDecoration[];
324
326
  /** Inline completion suffix drawn after the caret. */
325
327
  ghost?: string;
326
- placeholder?: string;
328
+ /** Dim text while `text` is empty; spans style it (`em` for italics). */
329
+ placeholder?: TspText;
327
330
  prompt?: TspText;
328
331
  /** Mode label (vim). */
329
332
  mode?: string;
@@ -646,6 +649,8 @@ export interface TspToolProps {
646
649
  targetKind?: "command" | "path" | "pattern" | "query" | "text";
647
650
  /** Language for `command` highlighting (`bash`, `python`, `js`). */
648
651
  lang?: string;
652
+ /** The raw command line the head's Copy command button copies; a `command` target sets it implicitly. */
653
+ command?: string;
649
654
  /** `file://` link for path targets (⌘-click opens). */
650
655
  href?: string;
651
656
  /** Short facts after the target: `+8 −1`, `5 matches · 2 files`, `22 lines`. */
@@ -670,12 +675,15 @@ export interface TspToolProps {
670
675
  frame?: "card" | "inline";
671
676
  collapsible?: boolean;
672
677
  collapsed?: boolean;
673
- /** Body clamp while collapsed: `{lines}` shows the head of the body, `{tail}` the end (bash output). */
678
+ /**
679
+ * Body clamp while collapsed: `{lines}` shows the head of the body, `{tail}` the end (bash output).
680
+ * `children`: the collapsed body stays whole and the children's own previews (`ansi`, `code`) clamp instead.
681
+ */
674
682
  preview?: {
675
683
  lines: number;
676
684
  } | {
677
685
  tail: number;
678
- } | "none";
686
+ } | "none" | "children";
679
687
  /** Actions offered in the head on hover (`copy`, `rerun`, `open`). */
680
688
  tools?: readonly TspPickerAction[];
681
689
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@linxiraos/pi-wire",
4
- "version": "1.1.27",
4
+ "version": "1.2.0",
5
5
  "description": "Shared wire protocol types for omp packages",
6
6
  "homepage": "https://linxira-os.github.io/zeta/",
7
7
  "author": "Can Boluk",
package/src/skillshare.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Wire contract for Skillshare (`skills.omp.sh`): an npm-style registry for
3
- * omp skills. Shared by the omp CLI (`omp skill …`), the Go server
3
+ * zetacode skills. Shared by the omp CLI (`zetacode skill …`), the Go server
4
4
  * (`stencil/apps/skills`), and its web UI (which mirrors this file).
5
5
  *
6
6
  * Packages are scoped: `@scope/name`. A scope is a Stencil username claimed on
package/src/stream.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Wire types for `omp stream`: Twitch-style live screen sharing at
2
+ * Wire types for `zetacode stream`: Twitch-style live screen sharing at
3
3
  * `live.omp.sh/<username>`.
4
4
  *
5
- * Independent from collab. A publisher (`omp stream`) sends plaintext JSON
5
+ * Independent from collab. A publisher (`zetacode stream`) sends plaintext JSON
6
6
  * screen deltas for one or more panes (one pane per omp session attached in
7
7
  * the same working directory); the stream server materializes each pane
8
8
  * (viewport + bounded history) so late viewers receive a snapshot without
@@ -145,7 +145,7 @@ export const STREAM_AUTH_ENV = "STENCIL_API_KEY";
145
145
  export const CLIP_DESCRIPTION_MAX = 5000;
146
146
 
147
147
  /**
148
- * `POST /api/clips` answer. The body is an `.ompcast` recording (optionally
148
+ * `POST /api/clips` answer. The body is an `.zetacast` recording (optionally
149
149
  * `Content-Encoding: gzip`) whose header may carry `title` and `description`;
150
150
  * the bearer identifies the uploading Stencil account.
151
151
  */
package/src/tsp.ts CHANGED
@@ -217,6 +217,8 @@ export interface TspCodeProps {
217
217
  numbers?: boolean;
218
218
  marks?: readonly { line: number; tone: TspTone }[];
219
219
  wrap?: boolean;
220
+ /** Clamp to the first `lines` drawn lines under a "N more lines" button; gives way inside an open disclosure. */
221
+ preview?: TspPreview;
220
222
  }
221
223
  export interface TspDiffHunk {
222
224
  oldStart: number;
@@ -352,7 +354,8 @@ export interface TspEditorProps {
352
354
  decor?: readonly TspEditorDecoration[];
353
355
  /** Inline completion suffix drawn after the caret. */
354
356
  ghost?: string;
355
- placeholder?: string;
357
+ /** Dim text while `text` is empty; spans style it (`em` for italics). */
358
+ placeholder?: TspText;
356
359
  prompt?: TspText;
357
360
  /** Mode label (vim). */
358
361
  mode?: string;
@@ -635,6 +638,8 @@ export interface TspToolProps {
635
638
  targetKind?: "command" | "path" | "pattern" | "query" | "text";
636
639
  /** Language for `command` highlighting (`bash`, `python`, `js`). */
637
640
  lang?: string;
641
+ /** The raw command line the head's Copy command button copies; a `command` target sets it implicitly. */
642
+ command?: string;
638
643
  /** `file://` link for path targets (⌘-click opens). */
639
644
  href?: string;
640
645
  /** Short facts after the target: `+8 −1`, `5 matches · 2 files`, `22 lines`. */
@@ -655,8 +660,11 @@ export interface TspToolProps {
655
660
  frame?: "card" | "inline";
656
661
  collapsible?: boolean;
657
662
  collapsed?: boolean;
658
- /** Body clamp while collapsed: `{lines}` shows the head of the body, `{tail}` the end (bash output). */
659
- preview?: { lines: number } | { tail: number } | "none";
663
+ /**
664
+ * Body clamp while collapsed: `{lines}` shows the head of the body, `{tail}` the end (bash output).
665
+ * `children`: the collapsed body stays whole and the children's own previews (`ansi`, `code`) clamp instead.
666
+ */
667
+ preview?: { lines: number } | { tail: number } | "none" | "children";
660
668
  /** Actions offered in the head on hover (`copy`, `rerun`, `open`). */
661
669
  tools?: readonly TspPickerAction[];
662
670
  }