polydev-ai 1.9.30 → 1.9.31
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/mcp/stdio-wrapper.js +2 -9
- package/package.json +1 -1
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -1686,15 +1686,8 @@ To re-login: /polydev:login`
|
|
|
1686
1686
|
console.error(`[Stdio Wrapper] Remote server error: ${response.status} - ${errorText}`);
|
|
1687
1687
|
|
|
1688
1688
|
if (response.status === 401) {
|
|
1689
|
-
console.error('[Polydev] Remote API returned 401 — token expired
|
|
1690
|
-
return
|
|
1691
|
-
jsonrpc: '2.0',
|
|
1692
|
-
id: request.id,
|
|
1693
|
-
error: {
|
|
1694
|
-
code: -32603,
|
|
1695
|
-
message: 'Authentication expired. Use the "login" tool to re-authenticate.'
|
|
1696
|
-
}
|
|
1697
|
-
};
|
|
1689
|
+
console.error('[Polydev] Remote API returned 401 — token expired, triggering re-authentication...');
|
|
1690
|
+
return await this.triggerReAuth(request.id, 'Token expired or invalid. Re-authenticating...');
|
|
1698
1691
|
}
|
|
1699
1692
|
|
|
1700
1693
|
return {
|