@averyyy/pi-client 0.84.2-piclient.1 → 0.84.2-piclient.3

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/CHANGELOG.md CHANGED
@@ -11,6 +11,7 @@
11
11
 
12
12
  ### Fixed
13
13
 
14
+ - Handled malformed `settings.json` when checking for the Tau Codex extension instead of crashing `pi-client web`.
14
15
  - Used `--legacy-peer-deps` for npm-global fork updates and documented installs so existing upstream Pi installs do not trigger peer override warnings for forked prerelease aliases.
15
16
 
16
17
  ### Changed
package/bin/web.js CHANGED
@@ -77,9 +77,14 @@ export function hasTauCodexExtensionInstalled(env = process.env) {
77
77
  "settings.json",
78
78
  );
79
79
  if (!existsSync(settingsPath)) return false;
80
- const settings = JSON.parse(readFileSync(settingsPath, "utf8"));
81
- const packages = Array.isArray(settings.packages) ? settings.packages : [];
82
- return packages.some(packageSpecMatchesTauCodex);
80
+ try {
81
+ const settings = JSON.parse(readFileSync(settingsPath, "utf8"));
82
+ const packages = Array.isArray(settings.packages) ? settings.packages : [];
83
+ return packages.some(packageSpecMatchesTauCodex);
84
+ } catch (error) {
85
+ console.warn(`Failed to parse settings.json, treating as missing: ${error.message}`);
86
+ return false;
87
+ }
83
88
  }
84
89
 
85
90
  function packageSpecMatchesTauCodex(spec) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@averyyy/pi-client",
3
- "version": "0.84.2-piclient.1",
3
+ "version": "0.84.2-piclient.3",
4
4
  "description": "Lightweight CLI wrapper that connects to a pi-server instance",
5
5
  "type": "module",
6
6
  "piClient": {
@@ -25,7 +25,7 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@earendil-works/pi-coding-agent": "npm:@averyyy/pi-coding-agent@0.84.2-piclient.1"
28
+ "@earendil-works/pi-coding-agent": "npm:@averyyy/pi-coding-agent@0.84.2-piclient.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "shx": "0.4.0",