@kitsunemori96/opencode-session-metrics 0.0.0-stage → 0.2.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.
@@ -0,0 +1,76 @@
1
+ instrument-symbols.woff2
2
+ ========================
3
+
4
+ A seventeen-glyph cut, shipped so that the icons this interface draws as text cannot be
5
+ replaced by whichever font an operating system happens to offer.
6
+
7
+ source DejaVu Sans Mono, Version 2.37 — https://dejavu-fonts.github.io/
8
+ glyphs U+03A3 Σ U+2190 ← U+2192 → U+21B5 ↵ U+21BB ↻ U+2315 ⌕
9
+ U+2502 │ U+2514 └ U+25B2 ▲ U+25B8 ▸ U+25BC ▼ U+25BE ▾
10
+ U+25C6 ◆ U+25CC ◌ U+270E ✎ U+2713 ✓ U+2715 ✕
11
+ changes Subset to the code points above. Every advance width set to 1229/2048 em
12
+ (0.6001 em, the mono cell of JetBrains Mono) so the glyphs sit on the same
13
+ grid as the surrounding text. Internal name records rewritten to "Instrument
14
+ Symbols" per the renaming clause below; the copyright record is untouched.
15
+ No outline was altered.
16
+ rebuild pyftsubset DejaVuSansMono.ttf --unicodes=<the code points above> \
17
+ --flavor=woff2 --no-glyph-names --layout-features= \
18
+ --output-file=instrument-symbols.woff2
19
+ then, with fontTools, put the glyphs on that grid and rename the cut:
20
+
21
+ f = TTFont("instrument-symbols.woff2")
22
+ for name in f.getBestCmap().values():
23
+ f["hmtx"][name] = (1229, f["hmtx"][name][1])
24
+ f["hhea"].advanceWidthMax = 1229
25
+ for nid, val in {
26
+ 1: "Instrument Symbols", 2: "Regular",
27
+ 3: "InstrumentSymbols-Regular; subset of DejaVu Sans Mono 2.37",
28
+ 4: "Instrument Symbols Regular", 6: "InstrumentSymbols-Regular",
29
+ 13: "Bitstream Vera licence; see web/public/fonts/LICENSE-symbols.txt",
30
+ }.items():
31
+ f["name"].setName(val, nid, 3, 1, 0x409)
32
+ f["name"].setName(val, nid, 1, 0, 0)
33
+ f.save("instrument-symbols.woff2")
34
+
35
+ Only these seventeen code points are declared in the @font-face unicode-range, so
36
+ JetBrains Mono and Inter Grot keep every glyph they do have. See web/src/index.css.
37
+
38
+
39
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
40
+ Bitstream Vera is a trademark of Bitstream, Inc.
41
+ DejaVu changes are in public domain.
42
+
43
+ Permission is hereby granted, free of charge, to any person obtaining a copy of the
44
+ fonts accompanying this license ("Fonts") and associated documentation files (the
45
+ "Font Software"), to reproduce and distribute the Font Software, including without
46
+ limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of
47
+ the Font Software, and to permit persons to whom the Font Software is furnished to do
48
+ so, subject to the following conditions:
49
+
50
+ The above copyright and trademark notices and this permission notice shall be included
51
+ in all copies of one or more of the Font Software typefaces.
52
+
53
+ The Font Software may be modified, altered, or added to, and in particular the designs
54
+ of glyphs or characters in the Fonts may be modified and additional glyphs or
55
+ characters may be added to the Fonts, only if the fonts are renamed to names not
56
+ containing either the words "Bitstream" or the word "Vera".
57
+
58
+ This License becomes null and void to the extent applicable to Fonts or Font Software
59
+ that has been modified and is distributed under the "Bitstream Vera" names.
60
+
61
+ The Font Software may be sold as part of a larger software package but no copy of one
62
+ or more of the Font Software typefaces may be sold by itself.
63
+
64
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65
+ IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
66
+ PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT.
67
+ IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR
68
+ OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
69
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE
70
+ USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
71
+
72
+ Except as contained in this notice, the names of Gnome, the Gnome Foundation, and
73
+ Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use
74
+ or other dealings in this Font Software without prior written authorization from the
75
+ Gnome Foundation or Bitstream Inc., respectively. For further information, contact:
76
+ fonts at gnome dot org.
Binary file
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html lang="zh">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>OpenCode Session Metrics</title>
7
+ <!-- The mark, in ink on paper: an inline SVG so a local-only app ships no binary asset. -->
8
+ <link
9
+ rel="icon"
10
+ href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' fill='%23ecf3f8'/%3E%3Cpath d='M8 2.6 13.4 8 8 13.4 2.6 8z' fill='%2303172c'/%3E%3C/svg%3E"
11
+ />
12
+ <script type="module" crossorigin src="/assets/index-Dr7sP5of.js"></script>
13
+ <link rel="stylesheet" crossorigin href="/assets/index-CXuzIF_g.css">
14
+ </head>
15
+ <body>
16
+ <div id="root"></div>
17
+ </body>
18
+ </html>