@herbertgao/pi-subagents 0.17.0 → 0.17.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 +6 -0
- package/package.json +2 -1
- package/src/ui/conversation-viewer.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#132](https://github.com/HerbertGao/pi-extensions/pull/132) [`e873d36`](https://github.com/HerbertGao/pi-extensions/commit/e873d36513deb902028faa0bf095641a57cb2ae4) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Review pi-subagents 0.19.0 and adopt readable bounded-result counts while retaining the unsigned worktree-preservation safeguard that upstream still lacks.
|
|
8
|
+
|
|
3
9
|
## 0.17.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-subagents",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Claude Code-style autonomous subagents for Pi, with HerbertGao-maintained UI extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"x-upstream": {
|
|
70
70
|
"package": "@tintinweb/pi-subagents",
|
|
71
71
|
"version": "0.18.2",
|
|
72
|
+
"reviewedVersion": "0.19.0",
|
|
72
73
|
"repository": "https://github.com/tintinweb/pi-subagents",
|
|
73
74
|
"commit": "ad81024825b315577692b785831262874e66be95"
|
|
74
75
|
}
|
|
@@ -156,8 +156,15 @@ function capResult(text: string): { text: string; elided: number } {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
function humanCount(count: number): string {
|
|
160
|
+
if (count < 1_000) return `${count}`
|
|
161
|
+
const thousands = count < 999_950
|
|
162
|
+
const value = thousands ? count / 1_000 : count / 1_000_000
|
|
163
|
+
return `${value.toFixed(1).replace(/\.0$/, "")}${thousands ? "k" : "M"}`
|
|
164
|
+
}
|
|
165
|
+
|
|
159
166
|
function truncationNote(elided: number): string {
|
|
160
|
-
return `... (truncated, ${elided} more character${elided === 1 ? "" : "s"})`
|
|
167
|
+
return `... (truncated, ${humanCount(elided)} more character${elided === 1 ? "" : "s"})`
|
|
161
168
|
}
|
|
162
169
|
|
|
163
170
|
export class ConversationViewer implements Component {
|