@icoretech/warden-mcp 0.1.19 → 0.1.20
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 +13 -6
- package/package.json +1 -1
package/dist/bw/bwSession.js
CHANGED
|
@@ -156,12 +156,19 @@ export class BwSessionManager {
|
|
|
156
156
|
this.configuredHost = null;
|
|
157
157
|
await runBw(['logout'], { env: this.baseEnv(), timeoutMs: 30_000 }).catch(() => { });
|
|
158
158
|
const home = this.homeDir;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
const cliStateDirs = [
|
|
160
|
+
join(home, '.config', 'Bitwarden CLI'),
|
|
161
|
+
join(home, 'Library', 'Application Support', 'Bitwarden CLI'),
|
|
162
|
+
join(home, 'AppData', 'Roaming', 'Bitwarden CLI'),
|
|
163
|
+
];
|
|
164
|
+
for (const dir of cliStateDirs) {
|
|
165
|
+
await rm(join(dir, 'data.json'), {
|
|
166
|
+
force: true,
|
|
167
|
+
}).catch(() => { });
|
|
168
|
+
await rm(join(dir, 'config.json'), {
|
|
169
|
+
force: true,
|
|
170
|
+
}).catch(() => { });
|
|
171
|
+
}
|
|
165
172
|
}
|
|
166
173
|
async ensureUnlockedInternal() {
|
|
167
174
|
// Ensure server config points to BW_HOST.
|