pi-toggle-skills 0.1.7 → 0.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-toggle-skills",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Toggle skill visibility in pi's system prompt — flip disable-model-invocation on skills via an interactive TUI",
5
5
  "type": "module",
6
6
  "author": "Tom X Nguyen",
@@ -29,13 +29,13 @@
29
29
  "README.md"
30
30
  ],
31
31
  "devDependencies": {
32
- "@earendil-works/pi-coding-agent": "0.79.4",
32
+ "@earendil-works/pi-coding-agent": "0.83.0",
33
33
  "@types/node": "25.9.1",
34
34
  "@vitest/coverage-v8": "4.1.7",
35
35
  "knip": "6.14.1",
36
36
  "typescript": "6.0.3",
37
37
  "vitest": "4.1.7",
38
- "@earendil-works/pi-tui": "0.79.4"
38
+ "@earendil-works/pi-tui": "0.83.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "gray-matter": "^4.0.3"
@@ -24,6 +24,8 @@ import {
24
24
  matchesKey,
25
25
  Spacer,
26
26
  Text,
27
+ truncateToWidth,
28
+ wrapTextWithAnsi,
27
29
  } from "@earendil-works/pi-tui";
28
30
  import type { Theme } from "@earendil-works/pi-coding-agent";
29
31
  import { DynamicBorder, keyText } from "@earendil-works/pi-coding-agent";
@@ -117,11 +119,20 @@ export class ToggleSkillSelectorComponent implements Component {
117
119
 
118
120
  lines.push(...new DynamicBorder((s) => this.theme.fg("accent", s)).render(width));
119
121
  lines.push("");
120
- lines.push(this.theme.fg("accent", this.theme.bold("Toggle Skill Visibility")));
121
122
  lines.push(
122
- this.theme.fg(
123
- "muted",
124
- `Toggle disable-model-invocation on skills. Hidden skills won't appear in the system prompt.`,
123
+ truncateToWidth(
124
+ this.theme.fg("accent", this.theme.bold("Toggle Skill Visibility")),
125
+ width,
126
+ "",
127
+ ),
128
+ );
129
+ lines.push(
130
+ ...wrapTextWithAnsi(
131
+ this.theme.fg(
132
+ "muted",
133
+ `Toggle disable-model-invocation on skills. Hidden skills won't appear in the system prompt.`,
134
+ ),
135
+ width,
125
136
  ),
126
137
  );
127
138
  lines.push("");
@@ -132,7 +143,7 @@ export class ToggleSkillSelectorComponent implements Component {
132
143
  lines.push(...this.footerText.render(width));
133
144
  lines.push(...new DynamicBorder((s) => this.theme.fg("accent", s)).render(width));
134
145
 
135
- return lines;
146
+ return lines.map((line) => truncateToWidth(line, width, ""));
136
147
  }
137
148
 
138
149
  handleInput(data: string): void {