@icoretech/warden-mcp 0.1.7 → 0.1.8
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/bw/bwSession.js +2 -2
- package/dist/sdk/keychainSdk.js +6 -1
- package/package.json +1 -1
package/dist/bw/bwSession.js
CHANGED
|
@@ -65,7 +65,7 @@ export class BwSessionManager {
|
|
|
65
65
|
parsed = JSON.parse(stdout);
|
|
66
66
|
}
|
|
67
67
|
catch (err) {
|
|
68
|
-
throw new Error(`Failed to parse bw template output
|
|
68
|
+
throw new Error(`Failed to parse bw template output (${stdout.length} bytes)`, { cause: err });
|
|
69
69
|
}
|
|
70
70
|
this.templateItem = parsed;
|
|
71
71
|
return parsed;
|
|
@@ -113,7 +113,7 @@ export class BwSessionManager {
|
|
|
113
113
|
parsed = JSON.parse(stdout);
|
|
114
114
|
}
|
|
115
115
|
catch (err) {
|
|
116
|
-
throw new Error(`Failed to parse bw status output
|
|
116
|
+
throw new Error(`Failed to parse bw status output (${stdout.length} bytes)`, { cause: err });
|
|
117
117
|
}
|
|
118
118
|
const serverUrl = typeof parsed.serverUrl === 'string' ? parsed.serverUrl : this.env.host;
|
|
119
119
|
const userEmail = typeof parsed.userEmail === 'string'
|
package/dist/sdk/keychainSdk.js
CHANGED
|
@@ -176,7 +176,12 @@ export class KeychainSdk {
|
|
|
176
176
|
return JSON.parse(stdout);
|
|
177
177
|
}
|
|
178
178
|
catch (err) {
|
|
179
|
-
|
|
179
|
+
// Do not include raw stdout — it may contain unredacted secrets.
|
|
180
|
+
const length = stdout.length;
|
|
181
|
+
const preview = stdout.startsWith('{')
|
|
182
|
+
? '{...}'
|
|
183
|
+
: stdout.slice(0, 8).replace(/[^\x20-\x7E]/g, '?');
|
|
184
|
+
throw new Error(`Failed to parse bw CLI output (${length} bytes, starts with: ${preview})`, { cause: err });
|
|
180
185
|
}
|
|
181
186
|
}
|
|
182
187
|
tryParseJson(stdout) {
|