@pi-unipi/updater 2.0.13 → 2.1.0

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
File without changes
package/index.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/updater",
3
- "version": "2.0.13",
3
+ "version": "2.1.0",
4
4
  "description": "Auto-updater, changelog browser, and readme browser for Unipi \u2014 checks npm registry, renders CHANGELOG.md and README.md files in TUI overlays",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -33,11 +33,11 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@pi-unipi/core": "2.0.13"
36
+ "@pi-unipi/core": "2.1.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@earendil-works/pi-coding-agent": "^0.78.0",
40
- "@earendil-works/pi-tui": "^0.78.0"
39
+ "@earendil-works/pi-coding-agent": "^0.80.0",
40
+ "@earendil-works/pi-tui": "^0.80.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^25.6.0",
File without changes
package/src/cache.ts CHANGED
File without changes
package/src/changelog.ts CHANGED
File without changes
package/src/checker.ts CHANGED
File without changes
package/src/commands.ts CHANGED
File without changes
package/src/installer.ts CHANGED
File without changes
package/src/markdown.ts CHANGED
File without changes
package/src/readme.ts CHANGED
@@ -6,6 +6,8 @@
6
6
  * node_modules/@pi-unipi/{name}/README.md.
7
7
  */
8
8
 
9
+ import { dirname } from "node:path";
10
+ import { fileURLToPath } from "node:url";
9
11
  import { existsSync, readFileSync } from "fs";
10
12
  import { join } from "path";
11
13
  import { findPackageRoot } from "@pi-unipi/core";
@@ -39,7 +41,7 @@ const PACKAGE_MAP: Record<string, string> = {
39
41
  /** Resolve the unipi package root directory */
40
42
  function resolveUnipiRoot(): string {
41
43
  // Walk up from this file to find @pi-unipi/unipi by name
42
- const dir = new URL(".", import.meta.url).pathname;
44
+ const dir = dirname(fileURLToPath(import.meta.url));
43
45
  const root = findPackageRoot(dir, "@pi-unipi/unipi");
44
46
  return root ?? join(dir, ".."); // fallback to parent
45
47
  }
package/src/settings.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/version.ts CHANGED
File without changes