@pi-unipi/milestone 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.
Files changed (2) hide show
  1. package/commands.ts +3 -2
  2. package/package.json +5 -5
package/commands.ts CHANGED
@@ -6,14 +6,15 @@
6
6
  * loads SKILL.md content and sends it as a user message.
7
7
  */
8
8
 
9
+ import { dirname, join } from "node:path";
10
+ import { fileURLToPath } from "node:url";
9
11
  import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
10
12
  import { UNIPI_PREFIX, MILESTONE_COMMANDS, MILESTONE_DIRS } from "@pi-unipi/core";
11
13
  import { parseMilestones } from "./milestone.js";
12
14
  import { readFileSync } from "node:fs";
13
- import { join } from "node:path";
14
15
 
15
16
  /** Resolve the skills directory relative to this file */
16
- const SKILLS_DIR = join(new URL(".", import.meta.url).pathname, "skills");
17
+ const SKILLS_DIR = join(dirname(fileURLToPath(import.meta.url)), "skills");
17
18
 
18
19
  /**
19
20
  * Load SKILL.md content for a given skill name.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pi-unipi/milestone",
3
- "version": "2.0.13",
4
- "description": "Lifecycle layer for project-level goals \u2014 MILESTONES.md tracking, session hooks, auto-sync",
3
+ "version": "2.1.1",
4
+ "description": "Lifecycle layer for project-level goals MILESTONES.md tracking, session hooks, auto-sync",
5
5
  "type": "module",
6
6
  "main": "index.ts",
7
7
  "license": "MIT",
@@ -29,11 +29,11 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@pi-unipi/core": "2.0.13"
32
+ "@pi-unipi/core": "2.1.1"
33
33
  },
34
34
  "peerDependencies": {
35
- "@earendil-works/pi-coding-agent": "^0.78.0",
36
- "@earendil-works/pi-tui": "^0.78.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
  "devDependencies": {