bom-pi 0.0.0-stage → 0.0.2

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.
Files changed (131) hide show
  1. package/README.md +33 -2
  2. package/apps/README.md +7 -0
  3. package/apps/web/README.md +21 -0
  4. package/apps/web/pocket-adapter.mjs +323 -0
  5. package/apps/web/public/LICENSE.pocket +21 -0
  6. package/apps/web/public/activity-fold.js +28 -0
  7. package/apps/web/public/agent-now.js +37 -0
  8. package/apps/web/public/agent-tile.js +79 -0
  9. package/apps/web/public/app.js +975 -0
  10. package/apps/web/public/apple-touch-icon.png +0 -0
  11. package/apps/web/public/artifact-bridge.js +687 -0
  12. package/apps/web/public/avatar.js +87 -0
  13. package/apps/web/public/back.js +554 -0
  14. package/apps/web/public/box-keys.js +216 -0
  15. package/apps/web/public/browser-panel.js +1097 -0
  16. package/apps/web/public/browser.js +68 -0
  17. package/apps/web/public/calls.js +139 -0
  18. package/apps/web/public/chat.js +919 -0
  19. package/apps/web/public/clock.js +34 -0
  20. package/apps/web/public/commands.js +578 -0
  21. package/apps/web/public/composer.js +2068 -0
  22. package/apps/web/public/diff-parse.js +672 -0
  23. package/apps/web/public/diff.js +1646 -0
  24. package/apps/web/public/dock.js +299 -0
  25. package/apps/web/public/extension-ui.js +2734 -0
  26. package/apps/web/public/files-panel.js +775 -0
  27. package/apps/web/public/files.js +368 -0
  28. package/apps/web/public/fonts/FiraCode-VF.woff2 +0 -0
  29. package/apps/web/public/fonts/Geist.woff2 +0 -0
  30. package/apps/web/public/fonts/IBMPlexMono-Variable-Italic.woff2 +0 -0
  31. package/apps/web/public/fonts/IBMPlexMono-Variable.woff2 +0 -0
  32. package/apps/web/public/fonts/InterVariable-Italic.woff2 +0 -0
  33. package/apps/web/public/fonts/InterVariable.woff2 +0 -0
  34. package/apps/web/public/fonts/Iosevka-Bold.woff2 +0 -0
  35. package/apps/web/public/fonts/Iosevka-BoldItalic.woff2 +0 -0
  36. package/apps/web/public/fonts/Iosevka-Italic.woff2 +0 -0
  37. package/apps/web/public/fonts/Iosevka-Regular.woff2 +0 -0
  38. package/apps/web/public/fonts/Iosevka-SemiBold.woff2 +0 -0
  39. package/apps/web/public/fonts/Iosevka-SemiBoldItalic.woff2 +0 -0
  40. package/apps/web/public/fonts/JetBrainsMono-Italic.woff2 +0 -0
  41. package/apps/web/public/fonts/JetBrainsMono.woff2 +0 -0
  42. package/apps/web/public/fonts/NerdFontsSymbolsMono.woff2 +0 -0
  43. package/apps/web/public/fonts/SOURCES.md +69 -0
  44. package/apps/web/public/gestures.js +610 -0
  45. package/apps/web/public/highlight.js +480 -0
  46. package/apps/web/public/history.js +70 -0
  47. package/apps/web/public/home.js +169 -0
  48. package/apps/web/public/icon-192.png +0 -0
  49. package/apps/web/public/icon-512.png +0 -0
  50. package/apps/web/public/icon-maskable-512.png +0 -0
  51. package/apps/web/public/icon.svg +16 -0
  52. package/apps/web/public/index.html +71 -0
  53. package/apps/web/public/launcher.js +1293 -0
  54. package/apps/web/public/linked-sessions.js +55 -0
  55. package/apps/web/public/live.js +39 -0
  56. package/apps/web/public/manifest.webmanifest +32 -0
  57. package/apps/web/public/model-refresh.js +73 -0
  58. package/apps/web/public/notify.js +251 -0
  59. package/apps/web/public/peeks.js +920 -0
  60. package/apps/web/public/pip-attachments.js +182 -0
  61. package/apps/web/public/pip-window.js +141 -0
  62. package/apps/web/public/pip.js +1217 -0
  63. package/apps/web/public/quote-reply.js +109 -0
  64. package/apps/web/public/quote-text.js +31 -0
  65. package/apps/web/public/rich.js +403 -0
  66. package/apps/web/public/run-frame.js +106 -0
  67. package/apps/web/public/safe-mode.js +71 -0
  68. package/apps/web/public/seen.js +169 -0
  69. package/apps/web/public/session-tree.js +117 -0
  70. package/apps/web/public/sessions.js +2695 -0
  71. package/apps/web/public/share.js +126 -0
  72. package/apps/web/public/sheets/appearance.js +820 -0
  73. package/apps/web/public/sheets/branch.js +353 -0
  74. package/apps/web/public/sheets/extensions.js +818 -0
  75. package/apps/web/public/sheets/file.js +318 -0
  76. package/apps/web/public/sheets/find.js +250 -0
  77. package/apps/web/public/sheets/folder.js +680 -0
  78. package/apps/web/public/sheets/gallery.js +2340 -0
  79. package/apps/web/public/sheets/hooks.js +350 -0
  80. package/apps/web/public/sheets/memory.js +531 -0
  81. package/apps/web/public/sheets/menu.js +580 -0
  82. package/apps/web/public/sheets/message.js +220 -0
  83. package/apps/web/public/sheets/model.js +412 -0
  84. package/apps/web/public/sheets/people.js +414 -0
  85. package/apps/web/public/sheets/pi-sessions.js +264 -0
  86. package/apps/web/public/sheets/providers.js +525 -0
  87. package/apps/web/public/sheets/running.js +130 -0
  88. package/apps/web/public/sheets/schedules.js +71 -0
  89. package/apps/web/public/sheets/session.js +249 -0
  90. package/apps/web/public/sheets/shortcuts.js +101 -0
  91. package/apps/web/public/sheets/spend.js +150 -0
  92. package/apps/web/public/sheets/text.js +53 -0
  93. package/apps/web/public/sheets/viewers.js +363 -0
  94. package/apps/web/public/sheets/worktree.js +50 -0
  95. package/apps/web/public/sheets.js +410 -0
  96. package/apps/web/public/signin.js +57 -0
  97. package/apps/web/public/slots.js +208 -0
  98. package/apps/web/public/store.js +1760 -0
  99. package/apps/web/public/style.css +18625 -0
  100. package/apps/web/public/subagents-board.js +879 -0
  101. package/apps/web/public/subagents.js +273 -0
  102. package/apps/web/public/sw.js +169 -0
  103. package/apps/web/public/taps.js +26 -0
  104. package/apps/web/public/theme-surface.d.ts +4 -0
  105. package/apps/web/public/theme-surface.js +266 -0
  106. package/apps/web/public/theme.js +845 -0
  107. package/apps/web/public/themes/lantern/colors.toml +25 -0
  108. package/apps/web/public/themes/lantern/direction.css +60 -0
  109. package/apps/web/public/themes/lantern/frame.css +254 -0
  110. package/apps/web/public/themes/lantern/theme.css +10 -0
  111. package/apps/web/public/themes/lantern/theme.json +7 -0
  112. package/apps/web/public/themes/pocket/theme.css +189 -0
  113. package/apps/web/public/themes/pocket/theme.json +6 -0
  114. package/apps/web/public/themes.js +556 -0
  115. package/apps/web/public/transcript.js +3348 -0
  116. package/apps/web/public/trust.js +295 -0
  117. package/apps/web/public/turns.js +507 -0
  118. package/apps/web/public/ui.js +1910 -0
  119. package/apps/web/public/voice.js +345 -0
  120. package/apps/web/server.mjs +774 -0
  121. package/package.json +43 -4
  122. package/packages/cli/src/bom-pi.mjs +452 -0
  123. package/packages/cli/templates/blank.factory.json +7 -0
  124. package/packages/cli/templates/dev.factory.json +11 -0
  125. package/packages/cli/templates/docs.factory.json +12 -0
  126. package/packages/cli/templates/ops.factory.json +14 -0
  127. package/packages/cli/templates/triage.factory.json +10 -0
  128. package/packages/core/src/daemon.mjs +2047 -0
  129. package/packages/core/src/limit-gate.mjs +192 -0
  130. package/packages/core/src/rpc-client.mjs +66 -0
  131. package/systemd/README.md +11 -0
@@ -0,0 +1,368 @@
1
+ // Files to mention with @ in the message box ("look at @src/app.ts"). The session folder's list comes from the server
2
+ // once and is checked again in the background (an unchanged list costs one short reply); matching happens here as
3
+ // people type, so suggestions never wait on the network. Pi gets the text as written and reads what it names.
4
+ import { api, store } from "./store.js";
5
+
6
+ /** How old a list may be before a new mention checks it again. */
7
+ const RECHECK_MS = 5_000;
8
+ /** How many suggestions show. */
9
+ const SHOWN = 50;
10
+
11
+ /**
12
+ * The list for each conversation: its folder, version, and what matching needs, made once per version. `paths` has
13
+ * the folders first (ending in "/"), then the files; `lower` the same in lower case; `bases` where each name starts.
14
+ */
15
+ const lists = new Map();
16
+
17
+ function prepare(files) {
18
+ // Folders are not listed: every folder that holds a file is one.
19
+ const dirs = new Set();
20
+
21
+ for (const file of files) {
22
+ for (let at = file.indexOf("/"); at !== -1; at = file.indexOf("/", at + 1)) {
23
+ dirs.add(file.slice(0, at + 1));
24
+ }
25
+ }
26
+
27
+ const paths = [...dirs, ...files];
28
+ const lower = paths.map((path) => path.toLowerCase());
29
+ const bases = new Uint32Array(paths.length);
30
+
31
+ for (let index = 0; index < paths.length; index++) {
32
+ bases[index] = lower[index].lastIndexOf("/", lower[index].length - 2) + 1;
33
+ }
34
+
35
+ return { paths, lower, bases, dirs: dirs.size };
36
+ }
37
+
38
+ const cwd = () => store.state.view.agent?.cwd;
39
+
40
+ /**
41
+ * Get or check the list of files for this conversation's folder, unless one was checked in the last few seconds. With
42
+ * `ifMissing`, only when there is none yet: focusing the message box gets one ready before the first @.
43
+ */
44
+ export function loadFiles({ ifMissing = false } = {}) {
45
+ const id = store.state.conversationId;
46
+
47
+ if (id === null) {
48
+ return;
49
+ }
50
+
51
+ let list = lists.get(id);
52
+
53
+ // Another folder (`/cwd`) is another list. One asked for before the folder was known is the folder's.
54
+ if (list !== undefined && list.cwd === undefined) {
55
+ list.cwd = cwd();
56
+ }
57
+
58
+ if (list !== undefined && cwd() !== undefined && list.cwd !== cwd()) {
59
+ list = undefined;
60
+ }
61
+
62
+ if (list?.loading || (list !== undefined && (ifMissing || Date.now() - list.at < RECHECK_MS))) {
63
+ return;
64
+ }
65
+
66
+ const entry = list ?? {
67
+ cwd: cwd(),
68
+ version: null,
69
+ truncated: false,
70
+ paths: [],
71
+ lower: [],
72
+ bases: new Uint32Array(0),
73
+ dirs: 0,
74
+ at: 0,
75
+ memo: null,
76
+ last: null,
77
+ };
78
+
79
+ entry.loading = true;
80
+ lists.set(id, entry);
81
+ const since = entry.version === null ? "" : `?since=${encodeURIComponent(entry.version)}`;
82
+
83
+ const done = () => {
84
+ entry.loading = false;
85
+ entry.at = Date.now();
86
+
87
+ if (lists.get(id) === entry) {
88
+ store.set({ filesLoaded: (store.state.filesLoaded ?? 0) + 1 });
89
+ }
90
+ };
91
+
92
+ api(`c/${id}/files${since}`).then((data) => {
93
+ if (!data.same) {
94
+ Object.assign(entry, prepare(data.files), {
95
+ version: data.version,
96
+ truncated: data.truncated,
97
+ memo: null,
98
+ last: null,
99
+ });
100
+ }
101
+
102
+ done();
103
+ }, done);
104
+ }
105
+
106
+ /** The `@path` being typed at the caret: where it starts and ends (past the caret, to the end of the word), and the query. */
107
+ export function mentionAt(text, caret) {
108
+ const match = /(?:^|[\s([{])@(?:"([^"\n]*)|([^\s"]*))$/.exec(text.slice(0, caret));
109
+
110
+ if (!match) {
111
+ return null;
112
+ }
113
+
114
+ const quoted = match[1] !== undefined;
115
+ const query = quoted ? match[1] : match[2];
116
+ const rest = (quoted ? /^[^"\n]*"?/ : /^\S*/).exec(text.slice(caret))[0];
117
+
118
+ return { start: caret - query.length - (quoted ? 2 : 1), end: caret + rest.length, query };
119
+ }
120
+
121
+ /** How a path goes into a message: quoted when it has spaces. */
122
+ export function mentionText(path) {
123
+ return /[\s"]/.test(path) ? `@"${path}"` : `@${path}`;
124
+ }
125
+
126
+ const isBreak = (code) => code === 47 || code === 95 || code === 45 || code === 46 || code === 32; // / _ - . space
127
+
128
+ /**
129
+ * How well a lower-case path (whose name starts at `base`) matches the lower-case query: -1 for no match, else higher
130
+ * is better. The name before the folders, whole words before parts, and a substring before scattered letters. Every
131
+ * match is also a match of each shorter query, which lets typing narrow the last matches instead of the whole list.
132
+ */
133
+ function score(lower, base, query) {
134
+ const end = lower.charCodeAt(lower.length - 1) === 47 ? lower.length - 1 : lower.length;
135
+ let at = lower.indexOf(query, base);
136
+
137
+ if (at !== -1 && at < end) {
138
+ if (at === base) {
139
+ return end - base === query.length ? 1000 : 900;
140
+ }
141
+
142
+ return isBreak(lower.charCodeAt(at - 1)) ? 800 : 700;
143
+ }
144
+
145
+ at = lower.indexOf(query);
146
+
147
+ if (at !== -1) {
148
+ return at === 0 || lower.charCodeAt(at - 1) === 47
149
+ ? 600
150
+ : isBreak(lower.charCodeAt(at - 1))
151
+ ? 550
152
+ : 500;
153
+ }
154
+
155
+ // Scattered letters: forward to the earliest end, then back to the tightest start (fzf's first algorithm).
156
+ let next = 0;
157
+ let stop = 0;
158
+
159
+ for (; stop < lower.length && next < query.length; stop++) {
160
+ if (lower.charCodeAt(stop) === query.charCodeAt(next)) {
161
+ next++;
162
+ }
163
+ }
164
+
165
+ if (next < query.length) {
166
+ return -1;
167
+ }
168
+
169
+ let bonus = 0;
170
+ let start = stop - 1;
171
+
172
+ for (next = query.length - 1; start >= 0; start--) {
173
+ if (lower.charCodeAt(start) !== query.charCodeAt(next)) {
174
+ continue;
175
+ }
176
+
177
+ if (start === 0 || isBreak(lower.charCodeAt(start - 1))) {
178
+ bonus += 12;
179
+ }
180
+
181
+ if (--next < 0) {
182
+ break;
183
+ }
184
+ }
185
+
186
+ return Math.max(
187
+ 1,
188
+ Math.min(399, 250 + bonus + (start >= base ? 100 : 0) - (stop - start - query.length) * 3),
189
+ );
190
+ }
191
+
192
+ /** Where the query shows in a path, for marking: the same places `score` found. */
193
+ function hitsIn(lower, base, query) {
194
+ const end = lower.charCodeAt(lower.length - 1) === 47 ? lower.length - 1 : lower.length;
195
+ let at = lower.indexOf(query, base);
196
+
197
+ if (at === -1 || at >= end) {
198
+ at = lower.indexOf(query);
199
+ }
200
+
201
+ if (at !== -1) {
202
+ return Array.from({ length: query.length }, (_, index) => at + index);
203
+ }
204
+
205
+ const hits = [];
206
+ let next = 0;
207
+ let stop = 0;
208
+
209
+ for (; stop < lower.length && next < query.length; stop++) {
210
+ if (lower.charCodeAt(stop) === query.charCodeAt(next)) {
211
+ next++;
212
+ }
213
+ }
214
+
215
+ for (let index = stop - 1, want = query.length - 1; index >= 0 && want >= 0; index--) {
216
+ if (lower.charCodeAt(index) === query.charCodeAt(want)) {
217
+ hits.unshift(index);
218
+ want--;
219
+ }
220
+ }
221
+
222
+ return hits;
223
+ }
224
+
225
+ /** Better first: score, then shorter names (app.ts before app.test.ts), then shorter paths, then by path. */
226
+ function better(list, a, aScore, b, bScore) {
227
+ if (aScore !== bScore) {
228
+ return aScore > bScore;
229
+ }
230
+
231
+ const aPath = list.paths[a];
232
+ const bPath = list.paths[b];
233
+ const names = aPath.length - list.bases[a] - (bPath.length - list.bases[b]);
234
+
235
+ if (names !== 0) {
236
+ return names < 0;
237
+ }
238
+
239
+ const lengths = aPath.length - bPath.length;
240
+
241
+ return lengths !== 0 ? lengths < 0 : aPath < bPath;
242
+ }
243
+
244
+ /** Folders first, then by name: how a folder's own files show. */
245
+ const byKind = (list) => (a, b) => {
246
+ const aDir = a < list.dirs;
247
+ const bDir = b < list.dirs;
248
+
249
+ return aDir !== bDir
250
+ ? aDir
251
+ ? -1
252
+ : 1
253
+ : list.lower[a] < list.lower[b]
254
+ ? -1
255
+ : list.lower[a] > list.lower[b]
256
+ ? 1
257
+ : 0;
258
+ };
259
+
260
+ /**
261
+ * Suggestions for an @ query: `{ items, loading, truncated }`, where each item is `{ path, dir, name, parent,
262
+ * nameHits, parentHits }`. An empty query, or one ending in "/", lists that folder; any other matches the whole list.
263
+ */
264
+ export function suggestFiles(query) {
265
+ const list = lists.get(store.state.conversationId);
266
+
267
+ if (list === undefined) {
268
+ return { items: [], loading: true, truncated: false };
269
+ }
270
+
271
+ const needle = query.toLowerCase();
272
+
273
+ if (list.memo?.needle === needle) {
274
+ return list.memo.result;
275
+ }
276
+
277
+ let picked;
278
+
279
+ if (needle === "" || needle.endsWith("/")) {
280
+ picked = [];
281
+
282
+ for (let index = 0; index < list.paths.length; index++) {
283
+ const lower = list.lower[index];
284
+
285
+ if (
286
+ lower.length > needle.length &&
287
+ lower.startsWith(needle) &&
288
+ list.bases[index] === needle.length
289
+ ) {
290
+ picked.push(index);
291
+ }
292
+ }
293
+
294
+ picked.sort(byKind(list)).splice(SHOWN);
295
+ } else {
296
+ // Each letter typed narrows the last matches.
297
+ const from =
298
+ list.last !== null && needle.startsWith(list.last.needle) ? list.last.matches : null;
299
+ const matches = [];
300
+ const top = [];
301
+ const scores = [];
302
+ const count = from === null ? list.paths.length : from.length;
303
+
304
+ for (let at = 0; at < count; at++) {
305
+ const index = from === null ? at : from[at];
306
+ const value = score(list.lower[index], list.bases[index], needle);
307
+
308
+ if (value < 0) {
309
+ continue;
310
+ }
311
+
312
+ matches.push(index);
313
+
314
+ if (
315
+ top.length === SHOWN &&
316
+ !better(list, index, value, top[SHOWN - 1], scores[SHOWN - 1])
317
+ ) {
318
+ continue;
319
+ }
320
+
321
+ let place = Math.min(top.length, SHOWN - 1);
322
+
323
+ while (place > 0 && better(list, index, value, top[place - 1], scores[place - 1])) {
324
+ place--;
325
+ }
326
+
327
+ top.splice(place, 0, index);
328
+ scores.splice(place, 0, value);
329
+
330
+ if (top.length > SHOWN) {
331
+ top.pop();
332
+ scores.pop();
333
+ }
334
+ }
335
+
336
+ list.last = { needle, matches };
337
+ picked = top;
338
+ }
339
+
340
+ const items = picked.map((index) => {
341
+ const path = list.paths[index];
342
+ const dir = index < list.dirs;
343
+ const base = list.bases[index];
344
+ const hits =
345
+ needle === "" || needle.endsWith("/") ? [] : hitsIn(list.lower[index], base, needle);
346
+
347
+ return {
348
+ path,
349
+ dir,
350
+ name: path.slice(base, dir ? -1 : undefined),
351
+ parent: path.slice(0, base),
352
+ nameHits: hits.filter((hit) => hit >= base).map((hit) => hit - base),
353
+ parentHits: hits.filter((hit) => hit < base),
354
+ };
355
+ });
356
+ const result = {
357
+ items,
358
+ loading: list.loading && list.version === null,
359
+ truncated: list.truncated,
360
+ };
361
+
362
+ // Only a list that has arrived is worth remembering: the message box draws again on every change in the session.
363
+ if (list.version !== null) {
364
+ list.memo = { needle, result };
365
+ }
366
+
367
+ return result;
368
+ }
@@ -0,0 +1,69 @@
1
+ # Where the fonts come from
2
+
3
+ Each font is from its project's own release (or, for JetBrains Mono's italic, its repository at a fixed commit), checked
4
+ against the digest GitHub or npm publishes where there is one, and kept with its license. Nothing is fetched from another
5
+ site when the app runs: the page's security policy allows fonts only from the app itself.
6
+
7
+ `JetBrainsMono.woff2`, `OFL.txt`, `Geist.woff2`, and `Geist-OFL.txt` are the app's own fonts and are not covered here.
8
+
9
+ ## Whole files, as released
10
+
11
+ | File | From | Bytes |
12
+ | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -----: |
13
+ | `FiraCode-VF.woff2` | [Fira Code 6.2](https://github.com/tonsky/FiraCode/releases/tag/6.2), `Fira_Code_v6.2.zip`: `woff2/FiraCode-VF.woff2` | 113088 |
14
+ | `IBMPlexMono-Variable.woff2` | [IBM Plex Mono variable 1.0.0](https://github.com/IBM/plex/releases/tag/%40ibm%2Fplex-mono-variable%401.0.0), `plex-mono-variable.zip`: `fonts/complete/woff2/IBM Plex Mono Var-Roman.woff2` | 83488 |
15
+ | `IBMPlexMono-Variable-Italic.woff2` | the same archive: `fonts/complete/woff2/IBM Plex Mono Var-Italic.woff2` | 96788 |
16
+ | `InterVariable.woff2` | [Inter 4.1](https://github.com/rsms/inter/releases/tag/v4.1), `Inter-4.1.zip`: `web/InterVariable.woff2` | 352240 |
17
+ | `InterVariable-Italic.woff2` | the same archive: `web/InterVariable-Italic.woff2` | 387976 |
18
+ | `JetBrainsMono-Italic.woff2` | [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono) at commit `19371302b95d218af43299bce79ddbddd0bc364d`: `fonts/webfonts/JetBrainsMono-Italic[wght].woff2` (git blob `5e8a82e3669297716702f70a5f9ca242ca050896`) | 123160 |
19
+
20
+ `plex-mono-variable.zip` matched GitHub's SHA-256 digest
21
+ (`46bbde4aeab959180ebad197f5b841c6bb5c8070146ba02c31240556e1e0b40d`). The Fira Code and Inter archives have no published
22
+ digest; their members were read with their CRC-32 checked.
23
+
24
+ ## Cut down
25
+
26
+ These two are cut down, so the browser downloads less. The SIL Open Font License lets a changed font keep its name
27
+ unless the license reserves it: Iosevka's license reserves none, and the Nerd Fonts symbols are under MIT and the licenses
28
+ of their icon sets. Both keep every name record of the original.
29
+
30
+ - **Iosevka** (`Iosevka-{Regular,SemiBold,Bold,Italic,SemiBoldItalic,BoldItalic}.woff2`): from
31
+ [Iosevka 34.9.0](https://github.com/be5invis/Iosevka/releases/tag/v34.9.0), `PkgWebFont-Unhinted-Iosevka-34.9.0.zip`
32
+ (SHA-256 `06dcbcf3ea7f2ca34281ac5026eafffffcc3960641e1ea74c56b0a372846cc63`), `WOFF2-Unhinted/Iosevka-<weight>.woff2`.
33
+ Every character stays; only the optional letter variants (the `ss` and `cv` features, which the app never turns on)
34
+ are dropped, which were three quarters of each file. With fontTools:
35
+
36
+ ```python
37
+ options = subset.Options()
38
+ options.name_IDs = ["*"]
39
+ options.name_languages = ["*"]
40
+ options.notdef_outline = True
41
+ options.flavor = "woff2"
42
+ subsetter = subset.Subsetter(options)
43
+ subsetter.populate(unicodes=font.getBestCmap().keys())
44
+ subsetter.subset(font)
45
+ ```
46
+
47
+ - **Nerd Fonts symbols** (`NerdFontsSymbolsMono.woff2`): from
48
+ [Nerd Fonts 3.5.1](https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.5.1), `NerdFontsSymbolsOnly.tar.xz`
49
+ (SHA-256 `01172f37db8543edb102e5cb5c64101c9f4686630804d49b419aa07b23a69996`), `SymbolsNerdFontMono-Regular.ttf`: the
50
+ Mono build, each icon one cell wide. Cut to the private use areas its icons fill (`U+E000-F8FF`, `U+F0000-F1AF0`, as
51
+ its `@font-face` says) and saved as WOFF2. `NerdFonts-LICENSE.txt` and `NerdFonts-README.txt` are the release's.
52
+
53
+ ## SHA-256 of each file here
54
+
55
+ ```text
56
+ 408e876a202f15ea6ee307a70a65cf40ceb222c589a0b17e0a3a371db96dd49f FiraCode-VF.woff2
57
+ b1c1137b5de255336110167a3a66531bed1e7d14fc8a0a384bd0d7c06bdd433b IBMPlexMono-Variable-Italic.woff2
58
+ ef55d69e81baa6523a9b6e015d746e707bc7e9579f18703a169cb18c36dd567b IBMPlexMono-Variable.woff2
59
+ e564f652916db6c139570fefb9524a77c4d48f30c92928de9db19b6b5c7a262a InterVariable-Italic.woff2
60
+ 693b77d4f32ee9b8bfc995589b5fad5e99adf2832738661f5402f9978429a8e3 InterVariable.woff2
61
+ 43044061a40578d1e7b6d22c75798de0b85de5cfec3f8fd93208be445eb613b3 Iosevka-BoldItalic.woff2
62
+ 4456f039689dff41e712108d32cff333c1d87fb96fb093a6ef02c895fdd0f111 Iosevka-Bold.woff2
63
+ 6da879a8418c4468e4d40c7c59b4e37d60be5cd64276574355873b1d92c14e73 Iosevka-Italic.woff2
64
+ 187a01ab6b2fb44d1b3cff768c079daa48ecba49f8a32ead8499b7333414f751 Iosevka-Regular.woff2
65
+ 1771884aa8087711bf423eda72136ed1ac0fc1589479873c8cbd38bf994dcd17 Iosevka-SemiBoldItalic.woff2
66
+ baa2e7851f9cdc14ce6df543e4a61b94f81a8a418b3824e86580073884fc8152 Iosevka-SemiBold.woff2
67
+ 76a805b6ea613ce2e3973f1bac6fa29db23116b2881390b59247d22890844ecc JetBrainsMono-Italic.woff2
68
+ 6874ea10824785e9e6fd88a6dae5cfb663945dd09e151c3c2e329064d89d9752 NerdFontsSymbolsMono.woff2
69
+ ```