@askalf/dario 4.8.14 → 4.8.16
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.
|
@@ -282,7 +282,7 @@ export declare function _resetInstalledVersionProbeForTest(): void;
|
|
|
282
282
|
*/
|
|
283
283
|
export declare const SUPPORTED_CC_RANGE: {
|
|
284
284
|
readonly min: "1.0.0";
|
|
285
|
-
readonly maxTested: "2.1.
|
|
285
|
+
readonly maxTested: "2.1.156";
|
|
286
286
|
};
|
|
287
287
|
/**
|
|
288
288
|
* Compare two dotted-numeric version strings. Returns negative if `a<b`,
|
package/dist/live-fingerprint.js
CHANGED
|
@@ -116,10 +116,19 @@ export function loadTemplate(_options) {
|
|
|
116
116
|
if (age < LIVE_TTL_MS) {
|
|
117
117
|
return cached;
|
|
118
118
|
}
|
|
119
|
-
// Stale cache
|
|
120
|
-
//
|
|
121
|
-
//
|
|
122
|
-
|
|
119
|
+
// Stale cache: prefer whichever of the live cache and the bundled
|
|
120
|
+
// snapshot was captured more recently — do NOT blindly keep the cache.
|
|
121
|
+
// A frozen live cache must not shadow a newer bundled template, which is
|
|
122
|
+
// exactly what happens in a no-CC deployment (e.g. the Hetzner container):
|
|
123
|
+
// the async refresh can never run there, so the cache stays pinned at its
|
|
124
|
+
// last capture while shipped releases move the bundle ahead. Without this
|
|
125
|
+
// comparison, every bundled-template update is silently ignored until the
|
|
126
|
+
// cache file is removed by hand. A fresh live capture (age < TTL) still
|
|
127
|
+
// wins above; a stale cache only wins if it is still newer than the bundle.
|
|
128
|
+
const bundled = loadBundledTemplate(_options);
|
|
129
|
+
const cachedAt = new Date(cached._captured).getTime();
|
|
130
|
+
const bundledAt = new Date(bundled._captured).getTime();
|
|
131
|
+
return Number.isFinite(bundledAt) && bundledAt > cachedAt ? bundled : cached;
|
|
123
132
|
}
|
|
124
133
|
return loadBundledTemplate(_options);
|
|
125
134
|
}
|
|
@@ -777,7 +786,7 @@ export function _resetInstalledVersionProbeForTest() {
|
|
|
777
786
|
*/
|
|
778
787
|
export const SUPPORTED_CC_RANGE = {
|
|
779
788
|
min: '1.0.0',
|
|
780
|
-
maxTested: '2.1.
|
|
789
|
+
maxTested: '2.1.156',
|
|
781
790
|
};
|
|
782
791
|
/**
|
|
783
792
|
* 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": "4.8.
|
|
3
|
+
"version": "4.8.16",
|
|
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": {
|