@saifymatteo/pi-cell-actions 0.1.0 → 0.1.2
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 +12 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.1.2] - 2026-11-27
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Builds and typechecks against Pi 1.6.1 host types (read-only `render()` lines and related type changes); no behaviour change.
|
|
10
|
+
|
|
11
|
+
## [0.1.1] - 2026-11-27
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- First release published from GitHub Actions through npm trusted publishing; no code changes.
|
|
16
|
+
|
|
5
17
|
## [0.1.0] - 2026-11-27
|
|
6
18
|
|
|
7
19
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saifymatteo/pi-cell-actions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"description": "Hover a transcript cell for a ⋯ menu: copy messages, code, tables (Markdown/TSV/CSV) and tool calls; run shell blocks",
|
|
6
6
|
"engines": {
|
package/src/index.ts
CHANGED
|
@@ -85,7 +85,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
85
85
|
let sawCell = false;
|
|
86
86
|
let toolHover: ToolHover | undefined;
|
|
87
87
|
const restores: (() => void)[] = [];
|
|
88
|
-
const layoutCache = new WeakMap<object, { width: number; lines: string[]; text: string; blocks: LocatedBlock[] }>();
|
|
88
|
+
const layoutCache = new WeakMap<object, { width: number; lines: readonly string[]; text: string; blocks: LocatedBlock[] }>();
|
|
89
89
|
|
|
90
90
|
const options: OverlayOptions = { row: 0, col: 0, width: 3, nonCapturing: true, visible: () => !!hovered && !suppressed };
|
|
91
91
|
let buttons: { start: number; end: number; action: Action }[] = [];
|
|
@@ -174,7 +174,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/** The first non-blank row from `top`, so the badge sits on the cell's text, not its padding. */
|
|
177
|
-
function firstText(lines: string[], top: number): number {
|
|
177
|
+
function firstText(lines: readonly string[], top: number): number {
|
|
178
178
|
let row = top;
|
|
179
179
|
while (row < lines.length - 1 && !stripTerminalSequences(lines[row] ?? "").trim()) row++;
|
|
180
180
|
return row;
|