ai-usage-analyzer 0.3.2 → 0.5.0
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 +30 -15
- package/bin/ai-usage.js +66 -35
- package/package.json +8 -6
- package/src/aggregate.js +48 -21
- package/src/live.js +132 -0
- package/src/loaders.js +259 -114
- package/src/markdown.js +133 -70
- package/src/pricing.js +49 -0
- package/src/quota.js +194 -0
- package/src/render.js +512 -189
- package/src/server.js +67 -0
- package/src/tools.js +5 -5
- package/src/tui.js +326 -0
- package/web/app.js +952 -0
- package/web/favicon.svg +1 -0
- package/web/fonts/OFL.txt +93 -0
- package/web/fonts/manrope.woff2 +0 -0
- package/web/icons/claude.svg +1 -0
- package/web/icons/openai.svg +1 -0
- package/web/icons/opencode.svg +1 -0
- package/web/index.html +199 -0
- package/web/style.css +324 -0
package/web/favicon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="#e5401a"/><path d="M7 24V16h4v8zm7 0V8h4v16zm7 0V12h4v12z" fill="#f1ede4"/></svg>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2018 The Manrope Project Authors (https://github.com/googlefonts/manrope)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>opencode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>
|
package/web/index.html
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="light">
|
|
7
|
+
<title>Usage overview · AI Usage Analyzer</title>
|
|
8
|
+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
9
|
+
<link rel="preload" href="/fonts/manrope.woff2" as="font" type="font/woff2" crossorigin>
|
|
10
|
+
<link rel="stylesheet" href="/style.css">
|
|
11
|
+
<script src="/gsap.js" defer></script>
|
|
12
|
+
<script type="module" src="/app.js"></script>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<a class="skip-link" href="#main">Skip to content</a>
|
|
16
|
+
<header class="masthead">
|
|
17
|
+
<a class="brand" href="#overview"><img src="/favicon.svg" width="28" height="28" alt=""><span>Usage<b>Analyzer</b></span></a>
|
|
18
|
+
<nav class="views" aria-label="Dashboard views">
|
|
19
|
+
<a href="#overview" aria-current="page">Overview</a>
|
|
20
|
+
<a href="#sessions">Sessions</a>
|
|
21
|
+
<a href="#sources">Sources <span id="source-count" class="count"></span></a>
|
|
22
|
+
</nav>
|
|
23
|
+
<div class="masthead-actions">
|
|
24
|
+
<button id="theme" class="button quiet" type="button" aria-pressed="false">
|
|
25
|
+
<svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.5"/><path class="fill" d="M10 3.5a6.5 6.5 0 0 0 0 13z"/></svg>
|
|
26
|
+
<span>Dark</span>
|
|
27
|
+
</button>
|
|
28
|
+
<button id="refresh" class="button solid" type="button">
|
|
29
|
+
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M16.5 8a6.7 6.7 0 1 0-.4 5M16.5 3.5V8H12"/></svg>
|
|
30
|
+
<span id="refresh-label">Refresh records</span>
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
</header>
|
|
34
|
+
|
|
35
|
+
<main id="main" tabindex="-1">
|
|
36
|
+
<div id="message" class="notice" role="status" aria-live="polite"></div>
|
|
37
|
+
<section id="loading" class="loading" aria-labelledby="loading-title">
|
|
38
|
+
<h1 id="loading-title">Reading your session files</h1>
|
|
39
|
+
<p>Scanning the local folders of each coding tool. Nothing leaves this device.</p>
|
|
40
|
+
<div class="progress" aria-hidden="true"><span></span></div>
|
|
41
|
+
</section>
|
|
42
|
+
|
|
43
|
+
<div id="dashboard" hidden>
|
|
44
|
+
<div id="filters" class="filters">
|
|
45
|
+
<div class="filter-group" role="group" aria-label="Period">
|
|
46
|
+
<button type="button" data-period="today" aria-pressed="false">Today</button>
|
|
47
|
+
<button type="button" data-period="week" aria-pressed="false">This week</button>
|
|
48
|
+
<button type="button" data-period="30" aria-pressed="false">30 days</button>
|
|
49
|
+
<button type="button" data-period="90" aria-pressed="false">90 days</button>
|
|
50
|
+
<button type="button" data-period="year" aria-pressed="false">This year</button>
|
|
51
|
+
<button type="button" data-period="all" aria-pressed="true">All time</button>
|
|
52
|
+
<button type="button" data-period="custom" aria-pressed="false" hidden>Custom range</button>
|
|
53
|
+
</div>
|
|
54
|
+
<div id="tool-filter" class="filter-group tool-filter" role="group" aria-label="Tool"></div>
|
|
55
|
+
<p id="scope" class="scope"></p>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div id="overview-view">
|
|
59
|
+
<section class="hero" aria-labelledby="view-title">
|
|
60
|
+
<div class="hero-main">
|
|
61
|
+
<h1 id="view-title"><span>Usage overview</span><span id="range-label" class="range-label"></span></h1>
|
|
62
|
+
<p class="hero-number" id="total" aria-hidden="true"><span id="total-value">0</span><span id="total-unit" class="unit"></span></p>
|
|
63
|
+
<p id="total-detail" class="hero-detail"></p>
|
|
64
|
+
<p id="insight" class="insight"></p>
|
|
65
|
+
</div>
|
|
66
|
+
<dl class="slip">
|
|
67
|
+
<div><dt>Sessions</dt><dd id="session-count"></dd></div>
|
|
68
|
+
<div><dt>Projects</dt><dd id="project-count"></dd></div>
|
|
69
|
+
<div><dt>Average session</dt><dd id="average"></dd></div>
|
|
70
|
+
<div><dt>Busiest day</dt><dd id="busiest-day"></dd></div>
|
|
71
|
+
<div class="slip-cost"><dt>API cost</dt><dd id="cost"></dd><p id="cost-detail"></p></div>
|
|
72
|
+
</dl>
|
|
73
|
+
</section>
|
|
74
|
+
|
|
75
|
+
<section class="composition" aria-labelledby="composition-title">
|
|
76
|
+
<div class="section-head">
|
|
77
|
+
<h2 id="composition-title">What the tokens are made of</h2>
|
|
78
|
+
<p>Categories follow each tool’s local records. Reasoning may also be counted in output.</p>
|
|
79
|
+
</div>
|
|
80
|
+
<div id="breakdown-bar" class="split" role="img" aria-labelledby="composition-title"></div>
|
|
81
|
+
<ul id="breakdown" class="parts"></ul>
|
|
82
|
+
</section>
|
|
83
|
+
|
|
84
|
+
<section class="band" aria-labelledby="tape-title">
|
|
85
|
+
<div class="band-label">
|
|
86
|
+
<p class="index" aria-hidden="true">01</p>
|
|
87
|
+
<h2 id="tape-title">Daily tape</h2>
|
|
88
|
+
<p>One tick per day, taller for heavier days. Drag across the tape to choose a range.</p>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="band-body">
|
|
91
|
+
<div class="tape-top">
|
|
92
|
+
<p id="tape-readout" class="tape-readout"></p>
|
|
93
|
+
<button id="tape-reset" class="text-button" type="button" hidden>Show all time</button>
|
|
94
|
+
</div>
|
|
95
|
+
<div id="tape" class="tape"></div>
|
|
96
|
+
<p id="tape-live" class="sr-only" aria-live="polite"></p>
|
|
97
|
+
<details class="data-table">
|
|
98
|
+
<summary>Read the tape as monthly values</summary>
|
|
99
|
+
<div id="monthly-values"></div>
|
|
100
|
+
</details>
|
|
101
|
+
</div>
|
|
102
|
+
</section>
|
|
103
|
+
|
|
104
|
+
<section class="band" aria-labelledby="tools-title">
|
|
105
|
+
<div class="band-label">
|
|
106
|
+
<p class="index" aria-hidden="true">02</p>
|
|
107
|
+
<h2 id="tools-title">By tool</h2>
|
|
108
|
+
<p>Select a tool to filter the whole page. Only tools with token records are listed.</p>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="band-body split-body">
|
|
111
|
+
<div id="tools" class="tools"></div>
|
|
112
|
+
<div class="weekday">
|
|
113
|
+
<h3>Weekday shape</h3>
|
|
114
|
+
<div id="weekday" class="weekday-bars"></div>
|
|
115
|
+
<p id="weekday-note" class="note"></p>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</section>
|
|
119
|
+
|
|
120
|
+
<section class="band" aria-labelledby="projects-title">
|
|
121
|
+
<div class="band-label">
|
|
122
|
+
<p class="index" aria-hidden="true">03</p>
|
|
123
|
+
<h2 id="projects-title">By project</h2>
|
|
124
|
+
<p>Bar length compares projects. Its texture shows which tools did the work. Select a project to inspect its sessions.</p>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="band-body">
|
|
127
|
+
<div id="projects" class="projects"></div>
|
|
128
|
+
<ul id="projects-legend" class="legend" aria-label="Texture key"></ul>
|
|
129
|
+
<button id="projects-more" class="text-button" type="button" hidden></button>
|
|
130
|
+
</div>
|
|
131
|
+
</section>
|
|
132
|
+
|
|
133
|
+
<section class="band" aria-labelledby="heaviest-title">
|
|
134
|
+
<div class="band-label">
|
|
135
|
+
<p class="index" aria-hidden="true">04</p>
|
|
136
|
+
<h2 id="heaviest-title">Heaviest sessions</h2>
|
|
137
|
+
<p>The five single sessions that used the most tokens in this selection.</p>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="band-body">
|
|
140
|
+
<ol id="heaviest" class="heaviest"></ol>
|
|
141
|
+
<a class="text-link" href="#sessions">Browse all sessions</a>
|
|
142
|
+
</div>
|
|
143
|
+
</section>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<div id="sessions-view" hidden>
|
|
147
|
+
<section class="page-head" aria-labelledby="sessions-title">
|
|
148
|
+
<h1 id="sessions-title">Sessions</h1>
|
|
149
|
+
<p>Every recorded session in the current selection. Open one to see its token categories.</p>
|
|
150
|
+
</section>
|
|
151
|
+
<div class="toolbar">
|
|
152
|
+
<label class="search"><span>Search sessions</span><input id="search" type="search" placeholder="Title, project, model or tool" autocomplete="off"></label>
|
|
153
|
+
<div class="filter-group" role="group" aria-label="Sort sessions">
|
|
154
|
+
<button type="button" data-sort="tokens" aria-pressed="true">Most tokens</button>
|
|
155
|
+
<button type="button" data-sort="newest" aria-pressed="false">Newest first</button>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<p id="project-filter" class="chip-row" hidden>Project <strong id="selected-project"></strong><button id="clear-project" class="text-button" type="button">Clear project filter</button></p>
|
|
159
|
+
<div id="session-list" class="session-list"></div>
|
|
160
|
+
<nav class="pager" aria-label="Session pages">
|
|
161
|
+
<p id="session-range"></p>
|
|
162
|
+
<div><button id="previous" class="button quiet" type="button">Previous page</button><button id="next" class="button quiet" type="button">Next page</button></div>
|
|
163
|
+
</nav>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<div id="sources-view" hidden>
|
|
167
|
+
<section class="page-head" aria-labelledby="sources-title">
|
|
168
|
+
<h1 id="sources-title">Sources</h1>
|
|
169
|
+
<p>The local folders this analyzer can read. A detected folder does not mean the tool stores token counts.</p>
|
|
170
|
+
</section>
|
|
171
|
+
<div id="sources" class="sources"></div>
|
|
172
|
+
<section id="read-errors" class="issues" hidden aria-labelledby="issues-title">
|
|
173
|
+
<h2 id="issues-title">Read issues</h2>
|
|
174
|
+
<p>Some records may be missing from the totals. Check the paths above, then refresh.</p>
|
|
175
|
+
<ul id="error-list"></ul>
|
|
176
|
+
</section>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</main>
|
|
180
|
+
|
|
181
|
+
<footer class="colophon">
|
|
182
|
+
<p>Local usage records. Costs are API-rate estimates, not subscription charges.</p>
|
|
183
|
+
<p id="updated"></p>
|
|
184
|
+
</footer>
|
|
185
|
+
|
|
186
|
+
<dialog id="session-dialog" class="drawer" aria-labelledby="session-title">
|
|
187
|
+
<div class="drawer-body">
|
|
188
|
+
<div class="drawer-top">
|
|
189
|
+
<p id="session-tool" class="drawer-tool"></p>
|
|
190
|
+
<button id="close-dialog" class="button quiet" type="button">Close</button>
|
|
191
|
+
</div>
|
|
192
|
+
<h2 id="session-title"></h2>
|
|
193
|
+
<p id="session-total" class="drawer-number"></p>
|
|
194
|
+
<div id="session-split" class="split" role="img" aria-label="Token categories for this session"></div>
|
|
195
|
+
<dl id="session-details" class="details"></dl>
|
|
196
|
+
</div>
|
|
197
|
+
</dialog>
|
|
198
|
+
</body>
|
|
199
|
+
</html>
|
package/web/style.css
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Manrope;
|
|
3
|
+
src: url('/fonts/manrope.woff2') format('woff2');
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400 800;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
--paper: #f1ede4;
|
|
11
|
+
--paper-2: #e8e3d7;
|
|
12
|
+
--raised: #f8f5ee;
|
|
13
|
+
--ink: #16140f;
|
|
14
|
+
--ink-2: #4f4a3f;
|
|
15
|
+
--ink-3: #8a8473;
|
|
16
|
+
--rule: #cfc8b8;
|
|
17
|
+
--accent: #e5401a;
|
|
18
|
+
--accent-ink: #b0300d;
|
|
19
|
+
--veil: rgb(241 237 228 / .8);
|
|
20
|
+
--scrim: rgb(22 20 15 / .5);
|
|
21
|
+
--gutter: clamp(16px, 4vw, 56px);
|
|
22
|
+
--edge: max(var(--gutter), calc((100vw - 1360px) / 2));
|
|
23
|
+
}
|
|
24
|
+
:root[data-theme='dark'] {
|
|
25
|
+
color-scheme: dark;
|
|
26
|
+
--paper: #12110e;
|
|
27
|
+
--paper-2: #1d1b17;
|
|
28
|
+
--raised: #1a1814;
|
|
29
|
+
--ink: #f1ede4;
|
|
30
|
+
--ink-2: #b3ad9e;
|
|
31
|
+
--ink-3: #6f695c;
|
|
32
|
+
--rule: #35312a;
|
|
33
|
+
--accent: #ff6b3d;
|
|
34
|
+
--accent-ink: #ff8a63;
|
|
35
|
+
--veil: rgb(18 17 14 / .78);
|
|
36
|
+
--scrim: rgb(0 0 0 / .6);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
* { box-sizing: border-box; }
|
|
40
|
+
[hidden] { display: none !important; }
|
|
41
|
+
html { scroll-padding-top: 88px; }
|
|
42
|
+
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 15px/1.55 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
|
|
43
|
+
button, input { font: inherit; color: inherit; }
|
|
44
|
+
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
|
|
45
|
+
a { color: inherit; }
|
|
46
|
+
button { cursor: pointer; }
|
|
47
|
+
button:disabled { cursor: default; opacity: .4; }
|
|
48
|
+
button, a, summary { touch-action: manipulation; }
|
|
49
|
+
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
|
|
50
|
+
::selection { background: var(--accent); color: var(--paper); }
|
|
51
|
+
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
|
|
52
|
+
ol, ul { list-style: none; }
|
|
53
|
+
h2 { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
|
|
54
|
+
h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
|
|
55
|
+
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
56
|
+
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }
|
|
57
|
+
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; }
|
|
58
|
+
.num, .hero-number, td.numeric, .scope, .parts strong, .slip dd { font-variant-numeric: tabular-nums; }
|
|
59
|
+
|
|
60
|
+
.masthead, main, .colophon { padding-inline: var(--edge); }
|
|
61
|
+
.masthead { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; min-height: 76px; padding-block: 12px; border-bottom: 2px solid var(--ink); }
|
|
62
|
+
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
|
|
63
|
+
.brand b { font-weight: 400; color: var(--ink-2); }
|
|
64
|
+
.brand img { display: block; border-radius: 3px; }
|
|
65
|
+
.views { display: flex; gap: 28px; }
|
|
66
|
+
.views a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 3px solid transparent; font-weight: 600; text-decoration: none; color: var(--ink-2); }
|
|
67
|
+
.views a:hover { color: var(--ink); }
|
|
68
|
+
.views a[aria-current='page'] { color: var(--ink); font-weight: 800; border-bottom-color: var(--accent); }
|
|
69
|
+
.views .count { padding: 0 6px; border: 1px solid var(--ink-3); border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
|
70
|
+
.views .count:empty { display: none; }
|
|
71
|
+
.masthead-actions { display: flex; gap: 8px; margin-left: auto; }
|
|
72
|
+
|
|
73
|
+
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; font-weight: 700; letter-spacing: -.01em; transition: background-color .15s, color .15s; }
|
|
74
|
+
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
|
|
75
|
+
.button svg .fill { fill: currentColor; stroke: none; }
|
|
76
|
+
.button.solid { background: var(--ink); color: var(--paper); }
|
|
77
|
+
.button.solid:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
|
|
78
|
+
:root[data-theme='dark'] .button.solid:hover:not(:disabled) { color: #12110e; }
|
|
79
|
+
.button.quiet:hover:not(:disabled) { background: var(--paper-2); }
|
|
80
|
+
.button.quiet[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
|
|
81
|
+
.text-button, .text-link { padding: 0; border: 0; background: none; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
|
|
82
|
+
.text-button:hover, .text-link:hover { text-decoration-color: var(--accent); }
|
|
83
|
+
.text-button { min-height: 24px; text-align: left; }
|
|
84
|
+
.text-link { display: inline-block; margin-top: 20px; }
|
|
85
|
+
|
|
86
|
+
.notice { margin-top: 20px; padding: 12px 16px; border: 1.5px solid var(--ink); background: var(--raised); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; }
|
|
87
|
+
.notice:empty { display: none; }
|
|
88
|
+
.notice.error { border-color: var(--accent-ink); color: var(--accent-ink); }
|
|
89
|
+
.notice a { font-weight: 800; }
|
|
90
|
+
|
|
91
|
+
.loading { max-width: 40rem; padding-block: clamp(72px, 18vh, 180px) 80px; }
|
|
92
|
+
.loading h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.055em; }
|
|
93
|
+
.loading p { margin-top: 14px; color: var(--ink-2); }
|
|
94
|
+
.progress { height: 4px; margin-top: 28px; background: var(--rule); overflow: hidden; }
|
|
95
|
+
.progress span { display: block; width: 32%; height: 100%; background: var(--accent); animation: scan 1.3s cubic-bezier(.6, 0, .4, 1) infinite; }
|
|
96
|
+
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
|
|
97
|
+
|
|
98
|
+
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
|
|
99
|
+
@media (min-width: 900px) { .filters { position: sticky; top: 0; z-index: 10; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); } }
|
|
100
|
+
.filter-group { display: flex; flex-wrap: wrap; }
|
|
101
|
+
.filter-group button { min-height: 44px; margin: 0 -1.5px -1.5px 0; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; transition: background-color .15s, color .15s; }
|
|
102
|
+
.filter-group button:first-child { border-radius: 3px 0 0 3px; }
|
|
103
|
+
.filter-group button:last-child { border-radius: 0 3px 3px 0; margin-right: 0; }
|
|
104
|
+
.filter-group button:hover { background: var(--paper-2); }
|
|
105
|
+
.filter-group button[aria-pressed='true'] { background: var(--ink); color: var(--paper); font-weight: 800; }
|
|
106
|
+
.filter-group button:focus-visible { position: relative; z-index: 1; }
|
|
107
|
+
.tool-filter button { display: inline-flex; align-items: center; gap: 8px; }
|
|
108
|
+
.scope { margin-left: auto; color: var(--ink-2); font-weight: 600; }
|
|
109
|
+
|
|
110
|
+
.ic { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
|
|
111
|
+
.ic-claude { --icon: url('/icons/claude.svg'); }
|
|
112
|
+
.ic-codex { --icon: url('/icons/openai.svg'); }
|
|
113
|
+
.ic-opencode { --icon: url('/icons/opencode.svg'); }
|
|
114
|
+
.tx { display: inline-block; flex: none; width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
115
|
+
.tx-0 { background: var(--ink); }
|
|
116
|
+
.tx-1 { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); }
|
|
117
|
+
.tx-2 { background: radial-gradient(var(--ink) 1.3px, transparent 1.7px) 0 0 / 5px 5px; }
|
|
118
|
+
.tx-3 { background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px); }
|
|
119
|
+
.tx-4 { background: color-mix(in srgb, var(--ink) 40%, transparent); }
|
|
120
|
+
.tx-5 { background: transparent; }
|
|
121
|
+
.filter-group button[aria-pressed='true'] .tx { background-color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
|
|
122
|
+
.filter-group button[aria-pressed='true'] .tx-0 { background: var(--paper); }
|
|
123
|
+
.filter-group button[aria-pressed='true'] .tx-1 { background: repeating-linear-gradient(135deg, var(--paper) 0 2px, transparent 2px 5px); }
|
|
124
|
+
.filter-group button[aria-pressed='true'] .tx-2 { background: radial-gradient(var(--paper) 1.3px, transparent 1.7px) 0 0 / 5px 5px; }
|
|
125
|
+
.filter-group button[aria-pressed='true'] .tx-3 { background: repeating-linear-gradient(0deg, var(--paper) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 5px); }
|
|
126
|
+
.filter-group button[aria-pressed='true'] .tx-4 { background: color-mix(in srgb, var(--paper) 45%, transparent); }
|
|
127
|
+
.filter-group button[aria-pressed='true'] .tx-5 { background: transparent; }
|
|
128
|
+
|
|
129
|
+
.hero { display: grid; gap: 40px 64px; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
|
|
130
|
+
@media (min-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr) 22rem; align-items: end; } }
|
|
131
|
+
#view-title { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
|
|
132
|
+
.range-label { font-weight: 500; color: var(--ink-2); }
|
|
133
|
+
.hero-number { margin-top: 12px; font-size: clamp(72px, 15vw, 224px); line-height: .86; font-weight: 800; letter-spacing: -.065em; }
|
|
134
|
+
.hero-number .unit { margin-left: .04em; color: var(--accent); }
|
|
135
|
+
.hero-detail { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
|
|
136
|
+
.insight { margin-top: 6px; max-width: 46ch; color: var(--ink-2); font-size: 16px; }
|
|
137
|
+
.insight:empty { display: none; }
|
|
138
|
+
.slip { border-top: 2px solid var(--ink); }
|
|
139
|
+
.slip > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
|
|
140
|
+
.slip dt { flex: 1; display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-weight: 600; }
|
|
141
|
+
.slip dt::after { content: ''; flex: 1; border-bottom: 2px dotted var(--ink-3); transform: translateY(-.28em); }
|
|
142
|
+
.slip dd { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
|
|
143
|
+
.slip-cost p { flex-basis: 100%; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
|
|
144
|
+
|
|
145
|
+
.composition { padding-bottom: clamp(48px, 6vw, 72px); }
|
|
146
|
+
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 18px; }
|
|
147
|
+
.section-head p { max-width: 52ch; color: var(--ink-2); font-size: 13px; }
|
|
148
|
+
.split { display: flex; gap: 2px; height: 48px; }
|
|
149
|
+
.split:empty { background: var(--paper-2); }
|
|
150
|
+
.seg { min-width: 2px; height: 100%; background: var(--ink); transform-origin: left; }
|
|
151
|
+
.t0 { background: color-mix(in srgb, var(--ink) 100%, transparent); }
|
|
152
|
+
.t1 { background: color-mix(in srgb, var(--ink) 72%, transparent); }
|
|
153
|
+
.t2 { background: color-mix(in srgb, var(--ink) 48%, transparent); }
|
|
154
|
+
.t3 { background: color-mix(in srgb, var(--ink) 28%, transparent); }
|
|
155
|
+
.t4 { background: color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: inset 0 0 0 1px var(--ink-3); }
|
|
156
|
+
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin-top: 16px; }
|
|
157
|
+
.parts li { display: grid; grid-template-columns: 14px 1fr; gap: 0 8px; align-items: center; }
|
|
158
|
+
.parts .chip { width: 14px; height: 14px; }
|
|
159
|
+
.parts span { color: var(--ink-2); font-weight: 600; }
|
|
160
|
+
.parts strong { grid-column: 2; font-size: 22px; letter-spacing: -.03em; }
|
|
161
|
+
.parts em { grid-column: 2; font-style: normal; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
162
|
+
|
|
163
|
+
.band { display: grid; gap: 24px 56px; padding-block: clamp(36px, 5vw, 64px); border-top: 2px solid var(--ink); }
|
|
164
|
+
@media (min-width: 1000px) { .band { grid-template-columns: 14rem minmax(0, 1fr); } .band-label { position: sticky; top: 92px; align-self: start; } }
|
|
165
|
+
.band-label p:last-child { margin-top: 10px; max-width: 28ch; color: var(--ink-2); font-size: 13px; }
|
|
166
|
+
.band-label .index { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; font-weight: 800; letter-spacing: 0; }
|
|
167
|
+
.split-body { display: grid; gap: 40px 56px; }
|
|
168
|
+
@media (min-width: 1200px) { .split-body { grid-template-columns: minmax(0, 1fr) 17rem; } }
|
|
169
|
+
.note { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
|
|
170
|
+
.empty { padding: 20px 0; max-width: 54ch; color: var(--ink-2); }
|
|
171
|
+
.empty .text-button { display: block; margin-top: 8px; }
|
|
172
|
+
|
|
173
|
+
.tape-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; min-height: 28px; margin-bottom: 36px; }
|
|
174
|
+
.tape-readout { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
|
|
175
|
+
.tape-readout span { color: var(--ink-2); font-weight: 500; }
|
|
176
|
+
.tape { position: relative; }
|
|
177
|
+
.tape-plot { position: relative; display: flex; align-items: flex-end; gap: 1px; height: clamp(150px, 22vw, 240px); border-bottom: 2px solid var(--ink); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
|
|
178
|
+
.tape-plot:focus-visible { outline-offset: 8px; }
|
|
179
|
+
.tick { flex: 1 1 0; min-width: 1px; height: var(--h); background: var(--ink); transform-origin: bottom; }
|
|
180
|
+
.tick.zero { height: 2px; background: var(--ink-3); }
|
|
181
|
+
.tick.peak { background: var(--accent); }
|
|
182
|
+
.veil { position: absolute; top: 0; bottom: 0; background: var(--veil); pointer-events: none; }
|
|
183
|
+
.pick { position: absolute; top: -10px; bottom: -2px; border-inline: 3px solid var(--accent); pointer-events: none; }
|
|
184
|
+
.pick::before, .pick::after { content: ''; position: absolute; top: 50%; width: 9px; height: 34px; margin-top: -17px; background: var(--accent); }
|
|
185
|
+
.pick::before { left: -3px; }
|
|
186
|
+
.pick::after { right: -3px; }
|
|
187
|
+
.cursor { position: absolute; top: -10px; bottom: 0; width: 1px; background: var(--ink); pointer-events: none; }
|
|
188
|
+
.peak-flag { position: absolute; top: -30px; white-space: nowrap; color: var(--accent-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; pointer-events: none; }
|
|
189
|
+
.tape-axis { position: relative; height: 30px; margin-top: 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
|
|
190
|
+
.tape-axis span { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid var(--ink-3); white-space: nowrap; }
|
|
191
|
+
.data-table { margin-top: 18px; }
|
|
192
|
+
.data-table summary { display: inline-block; min-height: 32px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
|
|
193
|
+
.data-table[open] summary { margin-bottom: 12px; }
|
|
194
|
+
|
|
195
|
+
.tools { border-bottom: 1px solid var(--rule); }
|
|
196
|
+
.tool-row { display: block; width: 100%; padding: 18px 12px 20px; border: 0; border-top: 1px solid var(--rule); background: transparent; text-align: left; transition: background-color .15s; }
|
|
197
|
+
.tool-row:hover { background: var(--paper-2); }
|
|
198
|
+
.tool-row[aria-pressed='true'] { background: var(--raised); box-shadow: inset 0 0 0 2px var(--ink); }
|
|
199
|
+
.tool-row:focus-visible { position: relative; z-index: 1; }
|
|
200
|
+
.tool-head { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; }
|
|
201
|
+
.tool-head .name { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
|
|
202
|
+
.tool-head .state { padding: 0 6px; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
|
|
203
|
+
.tool-head strong { margin-left: auto; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
|
|
204
|
+
.tool-row .bar, .tool-row .fill, .tool-meta { display: block; }
|
|
205
|
+
.bar { height: 18px; margin-top: 12px; background: var(--paper-2); }
|
|
206
|
+
.bar .fill { height: 100%; transform-origin: left; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
207
|
+
.tool-meta { margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
208
|
+
.weekday h3 { margin-bottom: 14px; }
|
|
209
|
+
.weekday-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 170px; }
|
|
210
|
+
.wd { display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; }
|
|
211
|
+
.wd-track { display: flex; align-items: flex-end; border-bottom: 2px solid var(--ink); }
|
|
212
|
+
.wd-bar { width: 100%; min-height: 2px; background: var(--ink); transform-origin: bottom; }
|
|
213
|
+
.wd.top .wd-bar { background: var(--accent); }
|
|
214
|
+
.wd-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
|
|
215
|
+
.wd.top .wd-label { color: var(--accent-ink); }
|
|
216
|
+
|
|
217
|
+
.projects { border-top: 1px solid var(--rule); }
|
|
218
|
+
.proj-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 5.5rem 3.5rem; grid-template-areas: 'rank name tokens share' '. bar bar bar'; gap: 8px 16px; align-items: baseline; padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
|
|
219
|
+
@media (min-width: 760px) { .proj-row { grid-template-columns: 2rem minmax(0, 15rem) minmax(0, 1fr) 5.5rem 3.5rem; grid-template-areas: 'rank name bar tokens share'; align-items: center; } }
|
|
220
|
+
.proj-rank { grid-area: rank; color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
221
|
+
.proj-name { grid-area: name; min-width: 0; display: flex; flex-direction: column; }
|
|
222
|
+
.proj-name .text-button { font-size: 16px; }
|
|
223
|
+
.proj-name .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12px; }
|
|
224
|
+
.stack { grid-area: bar; display: flex; height: 20px; gap: 1px; }
|
|
225
|
+
.stack .part { height: 100%; min-width: 2px; transform-origin: left; box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
226
|
+
.proj-tokens { grid-area: tokens; text-align: right; font-size: 17px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
|
|
227
|
+
.proj-share { grid-area: share; text-align: right; color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
228
|
+
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
|
|
229
|
+
.legend li { display: inline-flex; align-items: center; gap: 8px; }
|
|
230
|
+
.legend:empty { display: none; }
|
|
231
|
+
#projects-more { margin-top: 18px; }
|
|
232
|
+
|
|
233
|
+
.heaviest { border-top: 1px solid var(--rule); }
|
|
234
|
+
.heavy-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 4px 12px; width: 100%; padding: 18px 8px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; align-items: baseline; transition: background-color .15s; }
|
|
235
|
+
@media (min-width: 760px) { .heavy-row { grid-template-columns: 2rem 12rem minmax(0, 1fr); gap: 20px; } }
|
|
236
|
+
.heavy-row:hover { background: var(--paper-2); }
|
|
237
|
+
.heavy-rank { color: var(--ink-2); font-size: 13px; font-weight: 700; }
|
|
238
|
+
.heavy-tokens { font-size: clamp(32px, 4.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
|
|
239
|
+
.heavy-title { grid-column: 2; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
|
|
240
|
+
@media (min-width: 760px) { .heavy-title { grid-column: 3; } }
|
|
241
|
+
.heavy-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--ink-2); font-size: 13px; }
|
|
242
|
+
@media (min-width: 760px) { .heavy-meta { grid-column: 3; } .heavy-title { grid-row: 1; } .heavy-meta { grid-row: 2; } .heavy-tokens { grid-row: 1 / span 2; align-self: center; } .heavy-rank { grid-row: 1 / span 2; align-self: center; } }
|
|
243
|
+
.heavy-meta .tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
|
|
244
|
+
|
|
245
|
+
.page-head { padding-block: clamp(36px, 6vw, 72px) 28px; }
|
|
246
|
+
.page-head h1 { font-size: clamp(48px, 9vw, 112px); line-height: .9; font-weight: 800; letter-spacing: -.065em; }
|
|
247
|
+
.page-head p { margin-top: 16px; max-width: 54ch; color: var(--ink-2); font-size: 16px; }
|
|
248
|
+
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; padding-block: 16px; border-top: 2px solid var(--ink); }
|
|
249
|
+
.search { display: grid; gap: 4px; flex: 1 1 18rem; max-width: 34rem; font-size: 12px; font-weight: 700; color: var(--ink-2); }
|
|
250
|
+
.search input { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--raised); color: var(--ink); font-size: 15px; font-weight: 500; }
|
|
251
|
+
.search input::placeholder { color: var(--ink-2); opacity: 1; }
|
|
252
|
+
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0 14px; color: var(--ink-2); font-weight: 600; }
|
|
253
|
+
.chip-row strong { color: var(--ink); }
|
|
254
|
+
|
|
255
|
+
table { width: 100%; border-collapse: collapse; }
|
|
256
|
+
th { padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-2); }
|
|
257
|
+
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
|
|
258
|
+
th.numeric, td.numeric { text-align: right; padding-right: 0; padding-left: 12px; }
|
|
259
|
+
tbody tr:hover { background: var(--paper-2); }
|
|
260
|
+
.session-title-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
261
|
+
.session-title-cell .text-button { font-size: 15px; }
|
|
262
|
+
.cell-detail { color: var(--ink-2); font-size: 12px; }
|
|
263
|
+
.mobile-session-meta { display: none; color: var(--ink-2); font-size: 12px; font-weight: 600; }
|
|
264
|
+
.tool-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
|
|
265
|
+
.token-cell { display: grid; justify-items: end; gap: 6px; min-width: 6.5rem; }
|
|
266
|
+
.token-cell strong { font-size: 16px; letter-spacing: -.02em; }
|
|
267
|
+
.mini { width: 100%; height: 5px; background: var(--paper-2); }
|
|
268
|
+
.mini span { display: block; height: 100%; background: var(--ink); }
|
|
269
|
+
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
|
|
270
|
+
.pager p { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
|
271
|
+
.pager div { display: flex; gap: 8px; }
|
|
272
|
+
|
|
273
|
+
.sources { border-top: 2px solid var(--ink); }
|
|
274
|
+
.sources td { padding-block: 16px; }
|
|
275
|
+
.source-path { display: block; max-width: 56ch; color: var(--ink-2); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
|
|
276
|
+
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
|
|
277
|
+
.status::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--ink); }
|
|
278
|
+
.status.detected::before { background: var(--ink); }
|
|
279
|
+
.issues { margin-top: 40px; padding: 20px; border: 1.5px solid var(--accent-ink); }
|
|
280
|
+
.issues h2 { color: var(--accent-ink); font-size: 18px; }
|
|
281
|
+
.issues p { margin-top: 4px; color: var(--ink-2); }
|
|
282
|
+
.issues ul { margin-top: 12px; display: grid; gap: 6px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }
|
|
283
|
+
|
|
284
|
+
.colophon { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 28px 32px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 13px; font-weight: 600; }
|
|
285
|
+
main { padding-bottom: 56px; }
|
|
286
|
+
|
|
287
|
+
dialog.drawer { width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 2px solid var(--ink); background: var(--raised); color: var(--ink); overflow-y: auto; }
|
|
288
|
+
dialog.drawer::backdrop { background: var(--scrim); }
|
|
289
|
+
.drawer-body { padding: 20px clamp(20px, 4vw, 36px) 40px; }
|
|
290
|
+
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
|
|
291
|
+
.drawer-tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
|
|
292
|
+
.drawer h2 { font-size: clamp(22px, 4vw, 28px); letter-spacing: -.04em; line-height: 1.12; }
|
|
293
|
+
.drawer-number { margin: 24px 0 16px; font-size: clamp(56px, 12vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
|
|
294
|
+
.drawer-number small { margin-left: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
|
|
295
|
+
.drawer .split { height: 28px; }
|
|
296
|
+
.details { margin-top: 28px; border-top: 2px solid var(--ink); }
|
|
297
|
+
.details > div { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
|
|
298
|
+
.details dt { color: var(--ink-2); font-weight: 600; }
|
|
299
|
+
.details dd { font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
300
|
+
.details .swatch { display: inline-block; vertical-align: -1px; width: 11px; height: 11px; margin-right: 8px; }
|
|
301
|
+
|
|
302
|
+
@media (max-width: 899px) {
|
|
303
|
+
.masthead { gap: 4px 16px; }
|
|
304
|
+
.views { order: 3; flex-basis: 100%; gap: 22px; }
|
|
305
|
+
.scope { margin-left: 0; flex-basis: 100%; }
|
|
306
|
+
.session-table thead, .session-table th:nth-child(2), .session-table td:nth-child(2), .session-table th:nth-child(3), .session-table td:nth-child(3), .session-table th:nth-child(5), .session-table td:nth-child(5) { display: none; }
|
|
307
|
+
.mobile-session-meta { display: block; }
|
|
308
|
+
.sources-table th:nth-child(4), .sources-table td:nth-child(4) { display: none; }
|
|
309
|
+
}
|
|
310
|
+
@media (max-width: 540px) {
|
|
311
|
+
.masthead-actions { flex-basis: 100%; margin-left: 0; }
|
|
312
|
+
.masthead-actions .button { flex: 1; }
|
|
313
|
+
.tool-head strong { flex-basis: 100%; margin-left: 0; }
|
|
314
|
+
.details > div { grid-template-columns: 1fr; gap: 0; }
|
|
315
|
+
.sources-table thead { display: none; }
|
|
316
|
+
.sources-table, .sources-table tbody, .sources-table tr, .sources-table td { display: block; }
|
|
317
|
+
.sources-table td { padding: 0; border: 0; }
|
|
318
|
+
.sources-table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
|
|
319
|
+
.sources-table td + td { margin-top: 4px; }
|
|
320
|
+
}
|
|
321
|
+
@media (prefers-reduced-motion: reduce) {
|
|
322
|
+
*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
|
|
323
|
+
.progress span { width: 100%; animation: none; opacity: .5; }
|
|
324
|
+
}
|