@askalf/dario 5.5.44 → 5.5.46

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 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
  }
@@ -456,7 +456,7 @@ export declare function detectDrift(t: TemplateData, installedOverride?: string
456
456
  */
457
457
  export declare const SUPPORTED_CC_RANGE: {
458
458
  readonly min: "1.0.0";
459
- readonly maxTested: "2.1.238";
459
+ readonly maxTested: "2.1.239";
460
460
  };
461
461
  /**
462
462
  * Compare two dotted-numeric version strings. Returns negative if `a<b`,
@@ -1145,7 +1145,7 @@ export function detectDrift(t, installedOverride) {
1145
1145
  */
1146
1146
  export const SUPPORTED_CC_RANGE = {
1147
1147
  min: '1.0.0',
1148
- maxTested: '2.1.238',
1148
+ maxTested: '2.1.239',
1149
1149
  };
1150
1150
  /**
1151
1151
  * Compare two dotted-numeric version strings. Returns negative if `a<b`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "5.5.44",
3
+ "version": "5.5.46",
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": {