pi-compact-tools 0.9.1 → 0.9.3
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.
|
@@ -155,7 +155,7 @@ export function withContrast(theme: Theme, rgb: Rgb, minimum: number, maximum: n
|
|
|
155
155
|
* Diff rows need a tint that reads on the terminal background without hijacking `toolSuccessBg`
|
|
156
156
|
* and `toolErrorBg`, which Pi paints across the whole tool row.
|
|
157
157
|
*/
|
|
158
|
-
export function diffTintRgb(theme: Theme, color: ThemeForeground, amount = 0.
|
|
158
|
+
export function diffTintRgb(theme: Theme, color: ThemeForeground, amount = 0.17): Rgb | undefined {
|
|
159
159
|
const rgb = themeColorRgb(theme, color);
|
|
160
160
|
if (!rgb) return undefined;
|
|
161
161
|
const base = isDarkTheme(theme) ? BLACK : WHITE;
|
|
@@ -119,7 +119,12 @@ export class ProgressController {
|
|
|
119
119
|
const remaining = [...this.activeTools.values()].at(-1);
|
|
120
120
|
this.setMessage(remaining ?? "Processing results…");
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
// agent_end closes one low-level run, after which Pi may still retry, compact,
|
|
123
|
+
// or continue from a settlement boundary. Pi hides its own working row at that
|
|
124
|
+
// point and rebuilds it at the next turn_start from the message last set here,
|
|
125
|
+
// so releasing the label at agent_end makes a retried turn reappear under Pi's
|
|
126
|
+
// default label. Release it at the final settlement instead.
|
|
127
|
+
pi.on("agent_settled", () => {
|
|
123
128
|
if (!this.context) return;
|
|
124
129
|
this.activeTools.clear();
|
|
125
130
|
this.clearMessage();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-compact-tools",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Compact, expandable UI for pi's built-in tools, bundled with a polished GitHub Dark theme.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@earendil-works/pi-tui": ">=0.85.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
53
|
-
"@earendil-works/pi-tui": "0.
|
|
52
|
+
"@earendil-works/pi-coding-agent": "0.87.0",
|
|
53
|
+
"@earendil-works/pi-tui": "0.87.0",
|
|
54
54
|
"@types/node": "^24.0.0",
|
|
55
55
|
"tsx": "^4.23.13",
|
|
56
56
|
"typescript": "^5.9.0"
|