@askalf/dario 5.5.44 → 5.5.45
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/accounts.js +6 -2
- package/package.json +1 -1
package/dist/accounts.js
CHANGED
|
@@ -216,16 +216,20 @@ async function doRefreshAccountTokenDistributed(creds) {
|
|
|
216
216
|
return res.credentials;
|
|
217
217
|
}
|
|
218
218
|
if (res.acquired) {
|
|
219
|
+
// Echoed back on BOTH release paths below. Undefined against a
|
|
220
|
+
// backend that issues none — JSON.stringify drops the key entirely,
|
|
221
|
+
// so that server sees the same body it saw before this field existed.
|
|
222
|
+
const { lockId } = res;
|
|
219
223
|
try {
|
|
220
224
|
const updated = await doRefreshAccountToken(creds);
|
|
221
|
-
await lockCall(`/lock/${encodeURIComponent(creds.alias)}/release`, { holder, credentials: updated });
|
|
225
|
+
await lockCall(`/lock/${encodeURIComponent(creds.alias)}/release`, { holder, lockId, credentials: updated });
|
|
222
226
|
return updated;
|
|
223
227
|
}
|
|
224
228
|
catch (err) {
|
|
225
229
|
// Release WITHOUT credentials on failure — do not cache a
|
|
226
230
|
// non-refresh as if it were a fresh one; the next acquirer must
|
|
227
231
|
// attempt a real refresh, not adopt our failure.
|
|
228
|
-
await lockCall(`/lock/${encodeURIComponent(creds.alias)}/release`, { holder });
|
|
232
|
+
await lockCall(`/lock/${encodeURIComponent(creds.alias)}/release`, { holder, lockId });
|
|
229
233
|
throw err;
|
|
230
234
|
}
|
|
231
235
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askalf/dario",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.45",
|
|
4
4
|
"description": "Use your Claude Pro/Max subscription in any tool — Cursor, Cline, Aider, the Agent SDK, your scripts — at subscription pricing, not per-token API bills. One local Anthropic + OpenAI-compatible endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|