pi-goosedump 0.12.19 → 0.12.20
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 +1 -10
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -1412,7 +1412,6 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1412
1412
|
let activeSessionFile = null;
|
|
1413
1413
|
let sessionActive = false;
|
|
1414
1414
|
let activePi = null;
|
|
1415
|
-
let resumeAfterCompaction = false;
|
|
1416
1415
|
const rememberQueue = [];
|
|
1417
1416
|
let rememberRunning = null;
|
|
1418
1417
|
function enqueueRemember(target, reportError) {
|
|
@@ -1586,7 +1585,6 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1586
1585
|
const generation = request.sessionGeneration;
|
|
1587
1586
|
const sessionFile = request.sessionFile;
|
|
1588
1587
|
const resumeAfter = options2.resumeAfter === true;
|
|
1589
|
-
resumeAfterCompaction = resumeAfter;
|
|
1590
1588
|
setCompactionState(ctx, {
|
|
1591
1589
|
phase: "running",
|
|
1592
1590
|
request,
|
|
@@ -1600,17 +1598,14 @@ function createGoosedumpIntegration(options = {}) {
|
|
|
1600
1598
|
onComplete: () => {
|
|
1601
1599
|
if (!runningOperationIsCurrent(operation, generation, sessionFile))
|
|
1602
1600
|
return;
|
|
1603
|
-
const shouldResume = resumeAfterCompaction;
|
|
1604
|
-
resumeAfterCompaction = false;
|
|
1605
1601
|
setCompactionState(ctx, { phase: "idle" });
|
|
1606
1602
|
syncCompactCounters(ctx);
|
|
1607
1603
|
updateStatus(ctx);
|
|
1608
|
-
resumeAfterSuccessfulCompaction(ctx,
|
|
1604
|
+
resumeAfterSuccessfulCompaction(ctx, resumeAfter);
|
|
1609
1605
|
},
|
|
1610
1606
|
onError: (error) => {
|
|
1611
1607
|
if (!runningOperationIsCurrent(operation, generation, sessionFile))
|
|
1612
1608
|
return;
|
|
1613
|
-
resumeAfterCompaction = false;
|
|
1614
1609
|
setCompactionState(ctx, { phase: "idle" });
|
|
1615
1610
|
syncCompactCounters(ctx);
|
|
1616
1611
|
updateStatus(ctx);
|
|
@@ -2026,7 +2021,6 @@ ${lines.join(`
|
|
|
2026
2021
|
settlementGeneration = 0;
|
|
2027
2022
|
activeSessionFile = ctx.sessionManager.getSessionFile?.() ?? null;
|
|
2028
2023
|
sessionActive = true;
|
|
2029
|
-
resumeAfterCompaction = false;
|
|
2030
2024
|
compactionState = { phase: "idle" };
|
|
2031
2025
|
goosedumpAvailable = checkGoosedump(ctx);
|
|
2032
2026
|
notifyInvalidSettings(ctx);
|
|
@@ -2040,7 +2034,6 @@ ${lines.join(`
|
|
|
2040
2034
|
settlementGeneration = 0;
|
|
2041
2035
|
activeSessionFile = null;
|
|
2042
2036
|
sessionActive = false;
|
|
2043
|
-
resumeAfterCompaction = false;
|
|
2044
2037
|
compactionState = { phase: "idle" };
|
|
2045
2038
|
});
|
|
2046
2039
|
pi.on("session_tree", async (_event, ctx) => {
|
|
@@ -2048,7 +2041,6 @@ ${lines.join(`
|
|
|
2048
2041
|
settlementGeneration = 0;
|
|
2049
2042
|
activeSessionFile = ctx.sessionManager.getSessionFile?.() ?? null;
|
|
2050
2043
|
sessionActive = true;
|
|
2051
|
-
resumeAfterCompaction = false;
|
|
2052
2044
|
compactionState = { phase: "idle" };
|
|
2053
2045
|
syncCompactCounters(ctx);
|
|
2054
2046
|
updateStatus(ctx);
|
|
@@ -2212,7 +2204,6 @@ ${lines.join(`
|
|
|
2212
2204
|
}
|
|
2213
2205
|
});
|
|
2214
2206
|
pi.on("session_compact", async (event, ctx) => {
|
|
2215
|
-
resumeAfterCompaction = false;
|
|
2216
2207
|
if (!shouldOverrideDefaultCompaction)
|
|
2217
2208
|
return;
|
|
2218
2209
|
if (!contextIsCurrent(ctx))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goosedump",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.20",
|
|
4
4
|
"description": "Pi extension for goosedump session search, durable memory, and compaction",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compaction",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@earendil-works/pi-tui": "^0.82.1",
|
|
41
|
-
"@jarkkojs/goosedump": "^0.12.
|
|
41
|
+
"@jarkkojs/goosedump": "^0.12.20",
|
|
42
42
|
"@sinclair/typebox": "^0.34.49"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|