@askalf/dario 4.8.85 → 4.8.87
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/README.md +2 -0
- package/dist/cc-template-data.json +3 -3
- package/dist/doctor.d.ts +5 -0
- package/dist/doctor.js +35 -2
- package/dist/live-fingerprint.d.ts +1 -1
- package/dist/live-fingerprint.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -382,6 +382,8 @@ dario is the routing layer of **[Own Your Stack](https://github.com/askalf)**
|
|
|
382
382
|
- **[warden](https://github.com/askalf/warden)** — own your agent security
|
|
383
383
|
- **[canon](https://github.com/askalf/canon)** — own your agent skills
|
|
384
384
|
- **[keeper](https://github.com/askalf/keeper)** — own your agent secrets
|
|
385
|
+
- **[cordon](https://github.com/askalf/cordon)** — own your prompts
|
|
386
|
+
- **[picket](https://github.com/askalf/picket)** — own your agent browser
|
|
385
387
|
- **[claude-sync](https://github.com/askalf/claude-sync)** — own your sessions
|
|
386
388
|
- **[amnesia](https://github.com/askalf/amnesia)** — own your search
|
|
387
389
|
- **[askalf platform](https://askalf.org)** — own your operation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_version": "2.1.
|
|
2
|
+
"_version": "2.1.183",
|
|
3
3
|
"_captured": "2026-06-11T20:43:54.573Z",
|
|
4
4
|
"_source": "bundled",
|
|
5
5
|
"_schemaVersion": 3,
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
"anthropic_beta": "claude-code-20250219,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24",
|
|
1295
1295
|
"header_values": {
|
|
1296
1296
|
"accept": "application/json",
|
|
1297
|
-
"user-agent": "claude-cli/2.1.
|
|
1297
|
+
"user-agent": "claude-cli/2.1.183 (external, sdk-cli)",
|
|
1298
1298
|
"x-stainless-arch": "x64",
|
|
1299
1299
|
"x-stainless-lang": "js",
|
|
1300
1300
|
"x-stainless-os": "Linux",
|
|
@@ -1319,5 +1319,5 @@
|
|
|
1319
1319
|
"output_config",
|
|
1320
1320
|
"stream"
|
|
1321
1321
|
],
|
|
1322
|
-
"_supportedMaxTested": "2.1.
|
|
1322
|
+
"_supportedMaxTested": "2.1.183"
|
|
1323
1323
|
}
|
package/dist/doctor.d.ts
CHANGED
|
@@ -19,6 +19,11 @@ export interface Check {
|
|
|
19
19
|
/** Right-column detail — human readable, may include versions, paths, counts. */
|
|
20
20
|
detail: string;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Format a epoch timestamp reset time relative to the current time.
|
|
24
|
+
* Returns a human-friendly string like "1h 9m", "45m", "2d 3h".
|
|
25
|
+
*/
|
|
26
|
+
export declare function formatReset(resetEpochSecs: number, nowMs: number): string;
|
|
22
27
|
/**
|
|
23
28
|
* Pretty-print a list of Check results as aligned ASCII. No color codes —
|
|
24
29
|
* Windows cmd / CI logs render plain text reliably; colors are a downside
|
package/dist/doctor.js
CHANGED
|
@@ -21,6 +21,28 @@ import { describeTemplate, detectDrift, checkCCCompat, findInstalledCC, SUPPORTE
|
|
|
21
21
|
import { detectCCOAuthConfig } from './cc-oauth-detect.js';
|
|
22
22
|
import { runAuthorizeProbe } from './cc-authorize-probe.js';
|
|
23
23
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
24
|
+
/**
|
|
25
|
+
* Format a epoch timestamp reset time relative to the current time.
|
|
26
|
+
* Returns a human-friendly string like "1h 9m", "45m", "2d 3h".
|
|
27
|
+
*/
|
|
28
|
+
export function formatReset(resetEpochSecs, nowMs) {
|
|
29
|
+
const ms = (resetEpochSecs * 1000) - nowMs;
|
|
30
|
+
if (ms <= 0)
|
|
31
|
+
return '0m';
|
|
32
|
+
const totalMins = Math.round(ms / 60000);
|
|
33
|
+
if (totalMins <= 0)
|
|
34
|
+
return '0m';
|
|
35
|
+
const days = Math.floor(totalMins / 1440);
|
|
36
|
+
const hours = Math.floor((totalMins % 1440) / 60);
|
|
37
|
+
const mins = totalMins % 60;
|
|
38
|
+
if (days > 0) {
|
|
39
|
+
return `${days}d ${hours}h`;
|
|
40
|
+
}
|
|
41
|
+
if (hours > 0) {
|
|
42
|
+
return `${hours}h ${mins}m`;
|
|
43
|
+
}
|
|
44
|
+
return `${mins}m`;
|
|
45
|
+
}
|
|
24
46
|
/**
|
|
25
47
|
* Pretty-print a list of Check results as aligned ASCII. No color codes —
|
|
26
48
|
* Windows cmd / CI logs render plain text reliably; colors are a downside
|
|
@@ -547,15 +569,26 @@ export async function runChecks(opts = {}) {
|
|
|
547
569
|
throw new Error('all probe requests failed');
|
|
548
570
|
const bucket = billingBucketFromClaim(firstOk.claim);
|
|
549
571
|
const pct = (n) => `${(n * 100).toFixed(1)}%`;
|
|
572
|
+
let reset5hStr = '';
|
|
573
|
+
let reset7dStr = '';
|
|
574
|
+
if (firstOk.reset > 0) {
|
|
575
|
+
const relativeReset = formatReset(firstOk.reset, Date.now());
|
|
576
|
+
if (firstOk.claim.startsWith('five_hour')) {
|
|
577
|
+
reset5hStr = ` • resets in ${relativeReset}`;
|
|
578
|
+
}
|
|
579
|
+
else if (firstOk.claim.startsWith('seven_day')) {
|
|
580
|
+
reset7dStr = ` • resets in ${relativeReset}`;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
550
583
|
checks.push({
|
|
551
584
|
status: firstOk.util5h >= 0.90 ? 'warn' : 'ok',
|
|
552
585
|
label: 'Usage 5h (all)',
|
|
553
|
-
detail: `${pct(firstOk.util5h)} used • status=${firstOk.status} • claim=${firstOk.claim} (${bucket})`,
|
|
586
|
+
detail: `${pct(firstOk.util5h)} used • status=${firstOk.status}${reset5hStr} • claim=${firstOk.claim} (${bucket})`,
|
|
554
587
|
});
|
|
555
588
|
checks.push({
|
|
556
589
|
status: firstOk.util7d >= 0.90 ? 'warn' : 'ok',
|
|
557
590
|
label: 'Usage 7d (all)',
|
|
558
|
-
detail: `${pct(firstOk.util7d)} used`,
|
|
591
|
+
detail: `${pct(firstOk.util7d)} used${reset7dStr}`,
|
|
559
592
|
});
|
|
560
593
|
// Merge per-model buckets across all probes — each probe's response
|
|
561
594
|
// carries at most its own family bucket; union them for display.
|
|
@@ -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.185";
|
|
286
286
|
};
|
|
287
287
|
/**
|
|
288
288
|
* Compare two dotted-numeric version strings. Returns negative if `a<b`,
|
package/dist/live-fingerprint.js
CHANGED
|
@@ -786,7 +786,7 @@ export function _resetInstalledVersionProbeForTest() {
|
|
|
786
786
|
*/
|
|
787
787
|
export const SUPPORTED_CC_RANGE = {
|
|
788
788
|
min: '1.0.0',
|
|
789
|
-
maxTested: '2.1.
|
|
789
|
+
maxTested: '2.1.185',
|
|
790
790
|
};
|
|
791
791
|
/**
|
|
792
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.87",
|
|
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": {
|