@pi-unipi/utility 2.0.13 → 2.1.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pi-unipi/utility",
3
- "version": "2.0.13",
4
- "description": "Utility commands and tools for Pi coding agent \u2014 lifecycle, diagnostics, cache, analytics, display, batch execution",
3
+ "version": "2.1.1",
4
+ "description": "Utility commands and tools for Pi coding agent lifecycle, diagnostics, cache, analytics, display, batch execution",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
7
7
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@pi-unipi/core": "2.0.13",
37
+ "@pi-unipi/core": "2.1.1",
38
38
  "diff": "^7.0.0",
39
39
  "@shikijs/cli": "^4.0.2"
40
40
  },
@@ -42,7 +42,7 @@
42
42
  "@types/diff": "^7.0.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "@earendil-works/pi-coding-agent": "^0.78.0",
45
+ "@earendil-works/pi-coding-agent": "^0.80.0",
46
46
  "typebox": "^1.1.38"
47
47
  },
48
48
  "scripts": {
File without changes
package/src/diff/theme.ts CHANGED
File without changes
File without changes
File without changes
package/src/index.ts CHANGED
@@ -12,6 +12,8 @@
12
12
  * - TUI: settings inspector pattern, name badge
13
13
  */
14
14
 
15
+ import { dirname } from "node:path";
16
+ import { fileURLToPath } from "node:url";
15
17
  import type { ExtensionAPI, InputEvent, AgentEndEvent } from "@earendil-works/pi-coding-agent";
16
18
  import {
17
19
  UNIPI_EVENTS,
@@ -35,7 +37,7 @@ import { registerInfoScreen } from "./info-screen.js";
35
37
  export { readBadgeSettings } from "./tui/badge-settings.js";
36
38
 
37
39
  /** Package version */
38
- const VERSION = getPackageVersion(new URL(".", import.meta.url).pathname);
40
+ const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
39
41
 
40
42
  /** Whether we've seen the first user message (for auto badge generation) */
41
43
  let firstMessageSeen = false;