pi-goosedump 0.13.8 → 0.13.10
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/dist/index.ts +6 -1
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -3065,6 +3065,7 @@ async function runSearchPanel(ctx, query, executablePath) {
|
|
|
3065
3065
|
const target = currentSessionTarget(ctx);
|
|
3066
3066
|
const colors = overlayColors(theme);
|
|
3067
3067
|
let entries = [];
|
|
3068
|
+
const snippets = new WeakMap;
|
|
3068
3069
|
let error = null;
|
|
3069
3070
|
let mode = "results";
|
|
3070
3071
|
let selected = 0;
|
|
@@ -3158,7 +3159,11 @@ async function runSearchPanel(ctx, query, executablePath) {
|
|
|
3158
3159
|
const isSelected = absolute === selected;
|
|
3159
3160
|
const cursor = isSelected ? colors.accent(colors.bold("▶")) : " ";
|
|
3160
3161
|
const idText = isSelected ? colors.accent(colors.bold(entry.id)) : colors.text(entry.id);
|
|
3161
|
-
|
|
3162
|
+
let snippet = snippets.get(entry);
|
|
3163
|
+
if (snippet === undefined) {
|
|
3164
|
+
snippet = Buffer.from(compactLine(entry.content), "utf16le").toString("utf16le");
|
|
3165
|
+
snippets.set(entry, snippet);
|
|
3166
|
+
}
|
|
3162
3167
|
return ` ${cursor} ${idText} ${colors.muted(entry.role)} ${colors.dim(snippet)}`;
|
|
3163
3168
|
}),
|
|
3164
3169
|
overlayFooter(colors, width)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goosedump",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
4
4
|
"description": "Pi extension for goosedump session search, durable memory, session management, and compaction",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compaction",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ci:test": "npm test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@jarkkojs/goosedump": "^0.13.
|
|
40
|
+
"@jarkkojs/goosedump": "^0.13.10"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@earendil-works/pi-coding-agent": "^0.84.2",
|