@pulso/companion 0.4.9 → 0.4.10

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/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11266,8 +11266,9 @@ print(result.stdout[:5000])
11266
11266
  let authDetails;
11267
11267
  try {
11268
11268
  const status = await runShell4(`"${_claudeBin}" auth status 2>&1`, 1e4);
11269
- const jsonLine = status.split("\n").find((l) => l.trimStart().startsWith("{"));
11270
- const trimmed = jsonLine?.trim() ?? status.trim();
11269
+ const jsonStart = status.indexOf("{");
11270
+ const jsonEnd = status.lastIndexOf("}");
11271
+ const trimmed = jsonStart !== -1 && jsonEnd > jsonStart ? status.slice(jsonStart, jsonEnd + 1) : status.trim();
11271
11272
  let parsed = null;
11272
11273
  try {
11273
11274
  parsed = JSON.parse(trimmed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulso/companion",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "description": "Pulso Companion — gives your AI agent real control over your computer",
6
6
  "bin": {