pi-goosedump 0.12.61 → 0.12.64

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.
Files changed (2) hide show
  1. package/dist/index.ts +2 -12
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -11,7 +11,6 @@ import { execFile } from "node:child_process";
11
11
  import { accessSync, constants as fsConstants, existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
12
12
  import { createRequire } from "node:module";
13
13
  import { dirname, isAbsolute, join } from "node:path";
14
- import { fileURLToPath } from "node:url";
15
14
 
16
15
  // src/format.ts
17
16
  import { Value } from "typebox/value";
@@ -404,18 +403,9 @@ function resolveNativePackageTable() {
404
403
  try {
405
404
  const wrapperRequire = createRequire(resolveGoosedumpBinary());
406
405
  return wrapperRequire.resolve(`./${NATIVE_PACKAGE_TABLE}`);
407
- } catch {}
408
- let dir = dirname(fileURLToPath(import.meta.url));
409
- for (let i = 0;i < 8; i++) {
410
- const candidate = join(dir, "bin", NATIVE_PACKAGE_TABLE);
411
- if (existsSync(candidate))
412
- return candidate;
413
- const parent = dirname(dir);
414
- if (parent === dir)
415
- break;
416
- dir = parent;
406
+ } catch (cause) {
407
+ throw new Error("broken pi-goosedump installation: cannot resolve the native package table from @jarkkojs/goosedump-api", { cause });
417
408
  }
418
- throw new Error("broken pi-goosedump installation: cannot resolve the native package table from @jarkkojs/goosedump-api");
419
409
  }
420
410
  function loadNativeGoosedumpPackages() {
421
411
  const table = JSON.parse(readFileSync2(resolveNativePackageTable(), "utf8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-goosedump",
3
- "version": "0.12.61",
3
+ "version": "0.12.64",
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.61"
40
+ "@jarkkojs/goosedump-api": "^0.12.64"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@earendil-works/pi-coding-agent": "^0.84.2",