@pi-unipi/ralph 2.0.12 → 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.
Files changed (2) hide show
  1. package/index.ts +3 -1
  2. package/package.json +6 -6
package/index.ts CHANGED
@@ -5,6 +5,8 @@
5
5
  * Emits MODULE_READY, RALPH_LOOP_START/END events.
6
6
  */
7
7
 
8
+ import { dirname } from "node:path";
9
+ import { fileURLToPath } from "node:url";
8
10
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
9
11
  import {
10
12
  UNIPI_EVENTS,
@@ -23,7 +25,7 @@ import { RalphLoopManager } from "./ralph-loop.js";
23
25
  import { registerRalphTools } from "./tools.js";
24
26
 
25
27
  /** Package version */
26
- const VERSION = getPackageVersion(new URL(".", import.meta.url).pathname);
28
+ const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
27
29
 
28
30
  /** Current loop manager instance (recreated on session reload) */
29
31
  let manager: RalphLoopManager | null = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/ralph",
3
- "version": "2.0.12",
3
+ "version": "2.1.0",
4
4
  "description": "Long-running iterative development loops for Pi coding agent",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -27,13 +27,13 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@pi-unipi/core": "2.0.12",
31
- "@pi-unipi/info-screen": "2.0.12"
30
+ "@pi-unipi/core": "2.1.0",
31
+ "@pi-unipi/info-screen": "2.1.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@earendil-works/pi-ai": "^0.78.0",
35
- "@earendil-works/pi-coding-agent": "^0.78.0",
36
- "@earendil-works/pi-tui": "^0.78.0",
34
+ "@earendil-works/pi-ai": "^0.80.0",
35
+ "@earendil-works/pi-coding-agent": "^0.80.0",
36
+ "@earendil-works/pi-tui": "^0.80.0",
37
37
  "typebox": "^1.1.38"
38
38
  },
39
39
  "pi": {