@pi-unipi/info-screen 2.4.0 → 2.5.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.
Files changed (2) hide show
  1. package/core-groups.ts +0 -14
  2. package/package.json +2 -2
package/core-groups.ts CHANGED
@@ -14,20 +14,6 @@ import { infoRegistry } from "./registry.js";
14
14
  import { parseUsageStatsAsync, formatTokens, formatCost } from "./usage-parser.js";
15
15
  import type { InfoGroup } from "./types.js";
16
16
 
17
- /**
18
- * Get package version from package.json.
19
- */
20
- function getPackageVersion(packageDir: string): string {
21
- try {
22
- const pkgPath = join(packageDir, "package.json");
23
- if (!existsSync(pkgPath)) return "0.0.0";
24
- const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
25
- return pkg?.version ?? "0.0.0";
26
- } catch {
27
- return "0.0.0";
28
- }
29
- }
30
-
31
17
  /**
32
18
  * Discover loaded extensions by scanning filesystem.
33
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/info-screen",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Dashboard and module registry for Unipi — configurable info overlay with tabbed groups",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@pi-unipi/core": "2.4.0"
36
+ "@pi-unipi/core": "2.5.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@earendil-works/pi-coding-agent": "^0.80.0",