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.
@@ -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 or invalid.');
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.30",
3
+ "version": "1.9.31",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },