pi-codebuddy-sdk 0.4.2 → 0.4.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-codebuddy-sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "Pi extension that uses CodeBuddy (via Agent SDK) as a model provider and adds an AskCodebuddy tool.",
5
5
  "author": "slahser",
6
6
  "license": "MIT",
@@ -37,14 +37,14 @@
37
37
  "typebox": "^1.3.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@earendil-works/pi-ai": ">=0.83.0",
41
- "@earendil-works/pi-coding-agent": ">=0.83.0",
42
- "@earendil-works/pi-tui": ">=0.83.0"
40
+ "@earendil-works/pi-ai": "^0.84.2",
41
+ "@earendil-works/pi-coding-agent": "^0.84.2",
42
+ "@earendil-works/pi-tui": "^0.84.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@earendil-works/pi-ai": "^0.83.0",
46
- "@earendil-works/pi-coding-agent": "^0.83.0",
47
- "@earendil-works/pi-tui": "^0.83.0",
45
+ "@earendil-works/pi-ai": "^0.84.2",
46
+ "@earendil-works/pi-coding-agent": "^0.84.2",
47
+ "@earendil-works/pi-tui": "^0.84.2",
48
48
  "@types/node": "^24.13.2",
49
49
  "tsx": "^4.22.4",
50
50
  "typescript": "^6.0.3"
@@ -22,7 +22,12 @@ export function normalizeProjectPath(projectPath: string): string {
22
22
  }
23
23
 
24
24
  export function projectPathToHash(projectPath: string): string {
25
- return normalizeProjectPath(projectPath).replace(/^\//, "").replace(/\//g, "-");
25
+ // Keep session paths aligned with CodeBuddy CLI PathUtils.compressPath.
26
+ return normalizeProjectPath(projectPath)
27
+ .replace(/[/\\:]/g, "-")
28
+ .replace(/^-+/, "")
29
+ .replace(/-+$/, "")
30
+ .replace(/-+/g, "-");
26
31
  }
27
32
 
28
33
  export function getProjectDir(projectPath: string, codebuddyDir?: string): string {