pi-goosedump 0.12.57 → 0.12.59
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 +2 -1
- package/dist/index.ts +23 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.ts
CHANGED
|
@@ -415,7 +415,7 @@ function resolveNativePackageTable() {
|
|
|
415
415
|
break;
|
|
416
416
|
dir = parent;
|
|
417
417
|
}
|
|
418
|
-
throw new Error("broken pi-goosedump installation: cannot resolve the native package table from @jarkkojs/goosedump");
|
|
418
|
+
throw new Error("broken pi-goosedump installation: cannot resolve the native package table from @jarkkojs/goosedump-api");
|
|
419
419
|
}
|
|
420
420
|
function loadNativeGoosedumpPackages() {
|
|
421
421
|
const table = JSON.parse(readFileSync2(resolveNativePackageTable(), "utf8"));
|
|
@@ -438,9 +438,9 @@ function nativeGoosedumpPackage(target) {
|
|
|
438
438
|
}
|
|
439
439
|
function resolveGoosedumpBinary() {
|
|
440
440
|
try {
|
|
441
|
-
return require2.resolve("@jarkkojs/goosedump/bin/goosedump.js");
|
|
441
|
+
return require2.resolve("@jarkkojs/goosedump-api/bin/goosedump.js");
|
|
442
442
|
} catch (cause) {
|
|
443
|
-
throw new Error("broken pi-goosedump installation: cannot resolve the @jarkkojs/goosedump dependency", { cause });
|
|
443
|
+
throw new Error("broken pi-goosedump installation: cannot resolve the @jarkkojs/goosedump-api dependency", { cause });
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
var GOOSEDUMP_BINARY_ENV = "GOOSEDUMP_BINARY";
|
|
@@ -484,7 +484,8 @@ function runGoosedumpAsync(args, signal, executablePath = resolveNativeGoosedump
|
|
|
484
484
|
execFile(executablePath, args, {
|
|
485
485
|
encoding: "utf-8",
|
|
486
486
|
maxBuffer: 16 * 1024 * 1024,
|
|
487
|
-
signal
|
|
487
|
+
signal,
|
|
488
|
+
...process.platform === "linux" ? { env: { ...process.env, APPIMAGE_EXTRACT_AND_RUN: "1" } } : {}
|
|
488
489
|
}, (err, stdout, stderr) => {
|
|
489
490
|
if (err) {
|
|
490
491
|
const message = stderr.trim() || err.message;
|
|
@@ -2593,8 +2594,24 @@ async function runSessionsPanel(ctx, executablePath) {
|
|
|
2593
2594
|
async function loadSessions() {
|
|
2594
2595
|
try {
|
|
2595
2596
|
const all = await goosedumpListSessions(undefined, executablePath);
|
|
2596
|
-
const
|
|
2597
|
-
const cwdSessions = all.filter((
|
|
2597
|
+
const allChildren = buildChildrenMap(all);
|
|
2598
|
+
const cwdSessions = all.filter((session) => session.cwd === ctx.cwd);
|
|
2599
|
+
const included = new Set(cwdSessions.map((session) => `${session.provider}:${session.id}`));
|
|
2600
|
+
const pending = [...cwdSessions];
|
|
2601
|
+
while (pending.length > 0) {
|
|
2602
|
+
const parent = pending.pop();
|
|
2603
|
+
if (!parent)
|
|
2604
|
+
continue;
|
|
2605
|
+
const parentKey = `${parent.provider}:${parent.id}`;
|
|
2606
|
+
for (const child of allChildren.get(parentKey) ?? []) {
|
|
2607
|
+
const childKey = `${child.provider}:${child.id}`;
|
|
2608
|
+
if (included.has(childKey))
|
|
2609
|
+
continue;
|
|
2610
|
+
included.add(childKey);
|
|
2611
|
+
cwdSessions.push(child);
|
|
2612
|
+
pending.push(child);
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2598
2615
|
cwdSessions.sort((a, b) => {
|
|
2599
2616
|
const timeA = a.from ? new Date(a.from).getTime() : 0;
|
|
2600
2617
|
const timeB = b.from ? new Date(b.from).getTime() : 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goosedump",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.59",
|
|
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.12.
|
|
40
|
+
"@jarkkojs/goosedump-api": "^0.12.59"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@earendil-works/pi-coding-agent": "^0.84.2",
|