@pi-unipi/info-screen 2.0.7 → 2.0.8
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/core-groups.ts +3 -3
- package/index.ts +1 -1
- package/package.json +5 -4
- package/settings/settings-tui.ts +2 -2
- package/tui/info-overlay.ts +3 -3
package/core-groups.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { readFileSync, readdirSync, existsSync, statSync } from "node:fs";
|
|
9
9
|
import { join, basename } from "node:path";
|
|
10
10
|
import { homedir } from "node:os";
|
|
11
|
-
import type { ExtensionAPI } from "@
|
|
11
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
12
12
|
import { infoRegistry } from "./registry.js";
|
|
13
13
|
import { parseUsageStats, formatTokens, formatCost } from "./usage-parser.js";
|
|
14
14
|
import type { InfoGroup } from "./types.js";
|
|
@@ -34,9 +34,9 @@ function getPiVersion(): string {
|
|
|
34
34
|
// Try to find pi's package.json in various locations
|
|
35
35
|
const possiblePaths = [
|
|
36
36
|
// Global npm install
|
|
37
|
-
join(homedir(), ".local", "share", "mise", "installs", "node", "24.14.1", "lib", "node_modules", "@
|
|
37
|
+
join(homedir(), ".local", "share", "mise", "installs", "node", "24.14.1", "lib", "node_modules", "@earendil-works", "pi-coding-agent", "package.json"),
|
|
38
38
|
// Alternative locations
|
|
39
|
-
join(homedir(), ".local", "share", "mise", "installs", "node", "lib", "node_modules", "@
|
|
39
|
+
join(homedir(), ".local", "share", "mise", "installs", "node", "lib", "node_modules", "@earendil-works", "pi-coding-agent", "package.json"),
|
|
40
40
|
];
|
|
41
41
|
|
|
42
42
|
for (const pkgPath of possiblePaths) {
|
package/index.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* /unipi:info-settings - Configure info display
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
12
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
13
13
|
import { UNIPI_EVENTS, MODULES, UNIPI_PREFIX, emitEvent, getPackageVersion, type UnipiModuleEvent, type UnipiInfoGroupEvent } from "@pi-unipi/core";
|
|
14
14
|
import { infoRegistry } from "./registry.js";
|
|
15
15
|
import { registerCoreGroups, trackModule, trackTool, setPiApi, registerSkillDir, startLoadTracking, recordLoadTime, finishLoadTracking, recordModuleStart } from "./core-groups.js";
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/info-screen",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Dashboard and module registry for Unipi — configurable info overlay with tabbed groups",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "index.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"author": "Neuron Mr White",
|
|
8
9
|
"repository": {
|
|
@@ -40,9 +41,9 @@
|
|
|
40
41
|
"@pi-unipi/core": "*"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
44
|
+
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
45
|
+
"@earendil-works/pi-tui": "^0.75.5",
|
|
46
|
+
"typebox": "^1.1.38"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/node": "^25.6.0"
|
package/settings/settings-tui.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Displays all groups with toggle switches.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { Component } from "@
|
|
9
|
-
import { truncateToWidth, visibleWidth } from "@
|
|
8
|
+
import type { Component } from "@earendil-works/pi-tui";
|
|
9
|
+
import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
|
|
10
10
|
import { infoRegistry } from "../registry.js";
|
|
11
11
|
import { getInfoSettings, saveInfoSettings, getGroupSettings, setGroupSettings } from "../config.js";
|
|
12
12
|
import type { InfoScreenSettings, GroupSettings } from "../types.js";
|
package/tui/info-overlay.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* Shows humanized "last updated" timestamps.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import type { Component } from "@
|
|
11
|
-
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@
|
|
12
|
-
import type { Theme } from "@
|
|
10
|
+
import type { Component } from "@earendil-works/pi-tui";
|
|
11
|
+
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
12
|
+
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
13
13
|
import { infoRegistry } from "../registry.js";
|
|
14
14
|
import { getInfoSettings } from "../config.js";
|
|
15
15
|
import type { InfoGroup, GroupData } from "../types.js";
|