pi-goosedump 0.12.64 → 0.12.66
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 -6
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -1154,17 +1154,17 @@ class CompactionRuntime {
|
|
|
1154
1154
|
if (event.customInstructions?.trim()) {
|
|
1155
1155
|
if (this.compactionState.phase === "running")
|
|
1156
1156
|
return { cancel: true };
|
|
1157
|
-
const
|
|
1157
|
+
const operation = ++this.operationGeneration;
|
|
1158
1158
|
this.setCompactionState(ctx, {
|
|
1159
1159
|
phase: "running",
|
|
1160
1160
|
request: null,
|
|
1161
1161
|
owner: "pi",
|
|
1162
|
-
operation
|
|
1162
|
+
operation,
|
|
1163
1163
|
sessionGeneration: this.sessionGeneration,
|
|
1164
1164
|
sessionFile: this.activeSessionFile,
|
|
1165
1165
|
hookClaimed: true
|
|
1166
1166
|
});
|
|
1167
|
-
this.releasePiCompactionOnAbort(ctx, signal,
|
|
1167
|
+
this.releasePiCompactionOnAbort(ctx, signal, operation, this.sessionGeneration, this.activeSessionFile, null, event.reason);
|
|
1168
1168
|
return;
|
|
1169
1169
|
}
|
|
1170
1170
|
let operation;
|
|
@@ -2445,14 +2445,14 @@ async function runSearchPanel(ctx, query, executablePath) {
|
|
|
2445
2445
|
if (error)
|
|
2446
2446
|
return;
|
|
2447
2447
|
if (mode === "detail") {
|
|
2448
|
-
const
|
|
2448
|
+
const maxScroll = Math.max(0, detailLines.length - VIEWPORT);
|
|
2449
2449
|
if (matchesKey(data, Key.up)) {
|
|
2450
2450
|
detailScroll = Math.max(0, detailScroll - 1);
|
|
2451
2451
|
tui.requestRender();
|
|
2452
2452
|
return;
|
|
2453
2453
|
}
|
|
2454
2454
|
if (matchesKey(data, Key.down)) {
|
|
2455
|
-
detailScroll = Math.min(
|
|
2455
|
+
detailScroll = Math.min(maxScroll, detailScroll + 1);
|
|
2456
2456
|
tui.requestRender();
|
|
2457
2457
|
return;
|
|
2458
2458
|
}
|
|
@@ -2462,7 +2462,7 @@ async function runSearchPanel(ctx, query, executablePath) {
|
|
|
2462
2462
|
return;
|
|
2463
2463
|
}
|
|
2464
2464
|
if (matchesKey(data, Key.pageDown)) {
|
|
2465
|
-
detailScroll = Math.min(
|
|
2465
|
+
detailScroll = Math.min(maxScroll, detailScroll + VIEWPORT);
|
|
2466
2466
|
tui.requestRender();
|
|
2467
2467
|
return;
|
|
2468
2468
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goosedump",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.66",
|
|
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-api": "^0.12.
|
|
40
|
+
"@jarkkojs/goosedump-api": "^0.12.66"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@earendil-works/pi-coding-agent": "^0.84.2",
|