@oh-my-pi/pi-wire 18.8.6 → 18.8.8
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 +6 -0
- package/dist/types/tsp.d.ts +9 -2
- package/package.json +1 -1
- package/src/tsp.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [18.8.8] - 2026-10-10
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added `TspToolProps.command` (the command line Copy command copies), `TspToolProps.preview: "children"` (the collapsed body stays whole while its children clamp) and `TspCodeProps.preview`
|
|
10
|
+
|
|
5
11
|
## [18.8.0] - 2026-10-07
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/dist/types/tsp.d.ts
CHANGED
|
@@ -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;
|
|
@@ -647,6 +649,8 @@ export interface TspToolProps {
|
|
|
647
649
|
targetKind?: "command" | "path" | "pattern" | "query" | "text";
|
|
648
650
|
/** Language for `command` highlighting (`bash`, `python`, `js`). */
|
|
649
651
|
lang?: string;
|
|
652
|
+
/** The raw command line the head's Copy command button copies; a `command` target sets it implicitly. */
|
|
653
|
+
command?: string;
|
|
650
654
|
/** `file://` link for path targets (⌘-click opens). */
|
|
651
655
|
href?: string;
|
|
652
656
|
/** Short facts after the target: `+8 −1`, `5 matches · 2 files`, `22 lines`. */
|
|
@@ -671,12 +675,15 @@ export interface TspToolProps {
|
|
|
671
675
|
frame?: "card" | "inline";
|
|
672
676
|
collapsible?: boolean;
|
|
673
677
|
collapsed?: boolean;
|
|
674
|
-
/**
|
|
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
|
+
*/
|
|
675
682
|
preview?: {
|
|
676
683
|
lines: number;
|
|
677
684
|
} | {
|
|
678
685
|
tail: number;
|
|
679
|
-
} | "none";
|
|
686
|
+
} | "none" | "children";
|
|
680
687
|
/** Actions offered in the head on hover (`copy`, `rerun`, `open`). */
|
|
681
688
|
tools?: readonly TspPickerAction[];
|
|
682
689
|
}
|
package/package.json
CHANGED
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;
|
|
@@ -636,6 +638,8 @@ export interface TspToolProps {
|
|
|
636
638
|
targetKind?: "command" | "path" | "pattern" | "query" | "text";
|
|
637
639
|
/** Language for `command` highlighting (`bash`, `python`, `js`). */
|
|
638
640
|
lang?: string;
|
|
641
|
+
/** The raw command line the head's Copy command button copies; a `command` target sets it implicitly. */
|
|
642
|
+
command?: string;
|
|
639
643
|
/** `file://` link for path targets (⌘-click opens). */
|
|
640
644
|
href?: string;
|
|
641
645
|
/** Short facts after the target: `+8 −1`, `5 matches · 2 files`, `22 lines`. */
|
|
@@ -656,8 +660,11 @@ export interface TspToolProps {
|
|
|
656
660
|
frame?: "card" | "inline";
|
|
657
661
|
collapsible?: boolean;
|
|
658
662
|
collapsed?: boolean;
|
|
659
|
-
/**
|
|
660
|
-
|
|
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";
|
|
661
668
|
/** Actions offered in the head on hover (`copy`, `rerun`, `open`). */
|
|
662
669
|
tools?: readonly TspPickerAction[];
|
|
663
670
|
}
|