pi-goosedump 0.12.24 → 0.12.26

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/README.md CHANGED
@@ -15,6 +15,9 @@ x64, macOS arm64, and Windows x64. If no compatible binary is available, the
15
15
  extension keeps Pi's normal compaction behavior and its goosedump features
16
16
  report that they are unavailable.
17
17
 
18
+ Local inference models are downloaded automatically when first needed and reused
19
+ from the local cache; no separate model setup command is required.
20
+
18
21
  ## Memory in a nutshell
19
22
 
20
23
  1. **Remember:** [`gpt-oss-20b`](https://github.com/jarkkojs/goosedump/blob/main/docs/models/gpt-oss-20b.md)
package/dist/index.ts CHANGED
@@ -1459,6 +1459,13 @@ function createGoosedumpIntegration(options = {}) {
1459
1459
  turnsRemaining = Math.max(0, compactSettings.turnsBeforeCompact - completedTurns);
1460
1460
  counterTriggered = compactSettings.turnsBeforeCompact > 0 && completedTurns >= compactSettings.turnsBeforeCompact;
1461
1461
  }
1462
+ function resetCompactCounters(ctx) {
1463
+ const projectTrusted = projectSettingsTrusted(ctx);
1464
+ compactSettings = resolveGoosedumpSettings(ctx.cwd, projectTrusted);
1465
+ piAutoCompactionEnabled = piCompactionEnabled(ctx.cwd, projectTrusted);
1466
+ turnsRemaining = compactSettings.turnsBeforeCompact;
1467
+ counterTriggered = false;
1468
+ }
1462
1469
  function turnCompactionEnabled() {
1463
1470
  return shouldOverrideDefaultCompaction && piAutoCompactionEnabled && compactSettings.turnsBeforeCompact > 0;
1464
1471
  }
@@ -1608,8 +1615,6 @@ function createGoosedumpIntegration(options = {}) {
1608
1615
  if (!runningOperationIsCurrent(operation, generation, sessionFile))
1609
1616
  return;
1610
1617
  setCompactionState(ctx, { phase: "idle" });
1611
- syncCompactCounters(ctx);
1612
- updateStatus(ctx);
1613
1618
  resumeAfterSuccessfulCompaction(ctx, resumeAfter);
1614
1619
  },
1615
1620
  onError: (error) => {
@@ -2214,7 +2219,7 @@ ${lines.join(`
2214
2219
  const extensionOwned = compactionState.phase === "running" && compactionState.owner === "extension";
2215
2220
  if (!extensionOwned)
2216
2221
  compactionState = { phase: "idle" };
2217
- syncCompactCounters(ctx);
2222
+ resetCompactCounters(ctx);
2218
2223
  updateStatus(ctx);
2219
2224
  if (!goosedumpAvailable)
2220
2225
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-goosedump",
3
- "version": "0.12.24",
3
+ "version": "0.12.26",
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.24",
41
+ "@jarkkojs/goosedump": "^0.12.26",
42
42
  "@sinclair/typebox": "^0.34.49"
43
43
  },
44
44
  "devDependencies": {