pi-quiver 5.2.0 → 5.2.1
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 +4 -0
- package/extensions/sword-header.ts +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,10 @@ Published to npm as `pi-quiver` (`pi install npm:pi-quiver`). Pushing a
|
|
|
8
8
|
via OIDC trusted publishing. The release helper at
|
|
9
9
|
`.agents/skills/release/scripts/release.sh` cuts the tag; CI publishes.
|
|
10
10
|
|
|
11
|
+
## v5.2.1 - 2026-09-02
|
|
12
|
+
|
|
13
|
+
- sword-header: clip each header line to the terminal width in `render(width)` (ANSI-aware `truncateToWidth`, hard clip). Fixes a hard crash (`Rendered line N exceeds terminal width`) in terminals/panes narrower than 80 columns.
|
|
14
|
+
|
|
11
15
|
## v5.2.0 - 2026-09-01
|
|
12
16
|
|
|
13
17
|
- session-name: sync the session name to the Herdr tab label (`herdrTab`, default true within the opt-in `quiver.sessionAutoName`). Claim-once - only a tab still on its default numeric label is adopted; manual renames always win. Restores the default label on shutdown; crash leaves the last label (rename by hand to recover).
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import type { ExtensionAPI, Theme, ThemeColor } from "@earendil-works/pi-coding-agent";
|
|
17
|
+
import { truncateToWidth } from "@earendil-works/pi-tui";
|
|
17
18
|
import { resolveConfig } from "../lib/extension-config.ts";
|
|
18
19
|
|
|
19
20
|
type Config = { enabled: boolean };
|
|
@@ -69,8 +70,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
69
70
|
const cfg = resolveConfig(ctx.cwd, "swordHeader", DEFAULT_CONFIG, coerce, (m) => ctx.ui.notify(m, "warning"));
|
|
70
71
|
if (!cfg.enabled) return;
|
|
71
72
|
ctx.ui.setHeader((_tui, theme) => ({
|
|
72
|
-
render(
|
|
73
|
-
return renderSwordLines(theme);
|
|
73
|
+
render(width: number): string[] {
|
|
74
|
+
return renderSwordLines(theme).map((line) => truncateToWidth(line, width, ""));
|
|
74
75
|
},
|
|
75
76
|
invalidate() {},
|
|
76
77
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-quiver",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Personal pack of Pi coding-agent extensions: context-safe fetch, doc_to_md PDF/DOCX/PPTX-to-Markdown conversion, session naming, a themed ASCII startup header, Opus 4.8 fast mode, and a provider-stall watchdog.",
|
|
5
5
|
"author": "Jacek Juraszek",
|
|
6
6
|
"license": "MIT",
|