@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.
- package/dist/index.js +3 -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
|
|
11270
|
-
const
|
|
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);
|