claude-code-memory-explorer 1.0.0 → 1.1.1

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 (27) hide show
  1. package/lib/net-guard.js +41 -14
  2. package/package.json +1 -1
  3. package/public/fonts/OFL-IBM-Plex.txt +93 -0
  4. package/public/fonts/OFL-Playfair-Display.txt +93 -0
  5. package/public/fonts/fonts.css +244 -0
  6. package/public/fonts/ibm-plex-mono-cyrillic-400.woff2 +0 -0
  7. package/public/fonts/ibm-plex-mono-cyrillic-500.woff2 +0 -0
  8. package/public/fonts/ibm-plex-mono-cyrillic-600.woff2 +0 -0
  9. package/public/fonts/ibm-plex-mono-cyrillic-ext-400.woff2 +0 -0
  10. package/public/fonts/ibm-plex-mono-cyrillic-ext-500.woff2 +0 -0
  11. package/public/fonts/ibm-plex-mono-cyrillic-ext-600.woff2 +0 -0
  12. package/public/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
  13. package/public/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
  14. package/public/fonts/ibm-plex-mono-latin-600.woff2 +0 -0
  15. package/public/fonts/ibm-plex-mono-latin-ext-400.woff2 +0 -0
  16. package/public/fonts/ibm-plex-mono-latin-ext-500.woff2 +0 -0
  17. package/public/fonts/ibm-plex-mono-latin-ext-600.woff2 +0 -0
  18. package/public/fonts/ibm-plex-mono-vietnamese-400.woff2 +0 -0
  19. package/public/fonts/ibm-plex-mono-vietnamese-500.woff2 +0 -0
  20. package/public/fonts/ibm-plex-mono-vietnamese-600.woff2 +0 -0
  21. package/public/fonts/playfair-display-cyrillic-400.woff2 +0 -0
  22. package/public/fonts/playfair-display-latin-400.woff2 +0 -0
  23. package/public/fonts/playfair-display-latin-ext-400.woff2 +0 -0
  24. package/public/fonts/playfair-display-vietnamese-400.woff2 +0 -0
  25. package/public/index.html +1 -3
  26. package/public/style.css +7 -0
  27. package/public/vendor/claude-hub-sdk.js +13 -3
package/lib/net-guard.js CHANGED
@@ -37,11 +37,14 @@ const PORT_RE = /^[0-9]{1,5}$/;
37
37
  // port dynamic, so only the host is allowlisted.
38
38
  const validPort = (p) => PORT_RE.test(p) && Number(p) >= 1 && Number(p) <= 65535;
39
39
  const KEEP_ALIVE_MS = 65000;
40
+ // A whole IPv4 literal: a prefix test would let a rebinding name like 127.evil.com through.
41
+ const LOOPBACK_V4_RE = /^127(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}$/;
40
42
 
41
43
  function isLoopbackAddress(host) {
42
44
  if (!host) return false;
43
- const h = String(host).toLowerCase();
44
- return LOOPBACK_HOSTS.has(h) || h.startsWith('127.');
45
+ // An Origin or URL host carries an IPv6 literal in brackets.
46
+ const h = String(host).toLowerCase().replace(/^\[(.*)\]$/, '$1');
47
+ return LOOPBACK_HOSTS.has(h) || LOOPBACK_V4_RE.test(h);
45
48
  }
46
49
 
47
50
  // Hand-parsed rather than via new URL(), which is far more permissive than we
@@ -102,7 +105,7 @@ function getFlag(name) {
102
105
  }
103
106
 
104
107
  /**
105
- * @param {{appName?: string}} [config]
108
+ * @param {{appName?: string, selfFramedPaths?: string[]}} [config]
106
109
  */
107
110
  function createNetGuard(config = {}) {
108
111
  const appName = config.appName || 'This app';
@@ -216,9 +219,18 @@ function createNetGuard(config = {}) {
216
219
  CSP = "frame-ancestors 'none'";
217
220
  }
218
221
 
219
- function frameGuard(_req, res, next) {
222
+ // Alone, these pages may be framed by this app's own port under its loopback names, for a page
223
+ // that frames itself from its other name to get its own renderer process.
224
+ const selfFramed = new Set(config.selfFramedPaths || []);
225
+
226
+ function frameGuard(req, res, next) {
220
227
  res.setHeader('X-Content-Type-Options', 'nosniff');
221
228
  res.setHeader('Referrer-Policy', 'no-referrer');
229
+ if (!hubOrigin && selfFramed.has(req.path)) {
230
+ const port = req.socket.localPort;
231
+ res.setHeader('Content-Security-Policy', `frame-ancestors 'self' http://localhost:${port} http://127.0.0.1:${port}`);
232
+ return next();
233
+ }
222
234
  res.setHeader('Content-Security-Policy', CSP);
223
235
  if (!hubOrigin) res.setHeader('X-Frame-Options', 'DENY');
224
236
  next();
@@ -232,7 +244,10 @@ function createNetGuard(config = {}) {
232
244
  * the OS resolver orders A/AAAA records - binding only 127.0.0.1 breaks hosts
233
245
  * where `localhost` resolves to ::1, and vice versa. Doing it on the *resolved*
234
246
  * port means every existing URL, startup banner and postMessage origin is
235
- * unchanged. Failures are swallowed: it is an optimization, not a requirement.
247
+ * unchanged. A family the host does not have is skipped. A port that another
248
+ * process holds on the other family is treated as busy: the primary closes and
249
+ * emits EADDRINUSE (port 0 picks another random port instead), because that process would answer `localhost:<port>` (and a
250
+ * cross-site frame on it) in our name. onReady waits for the second bind.
236
251
  *
237
252
  * Returns the primary server, so callers keep attaching their own 'error'
238
253
  * handler for the EADDRINUSE fallback.
@@ -259,18 +274,30 @@ function createNetGuard(config = {}) {
259
274
  };
260
275
  const server = makeServer(app);
261
276
  let secondary = null;
277
+ let randomTries = 0;
262
278
 
263
279
  server.on('listening', () => {
264
- actualPort = server.address().port;
265
- if (!EXPOSED) {
266
- const otherFamily = BIND_HOST.includes(':') ? '127.0.0.1' : '::1';
267
- try {
268
- secondary = makeServer(app);
269
- secondary.on('error', () => {}); // that family may not exist on this host
270
- secondary.listen({ host: otherFamily, port: actualPort, ipv6Only: otherFamily === '::1' });
271
- } catch { /* best effort */ }
280
+ const boundPort = server.address().port;
281
+ actualPort = boundPort;
282
+ // Not actualPort: the hub listens several servers through one guard, and another one can bind
283
+ // while this one waits for its second family.
284
+ const ready = () => { if (onReady) onReady(boundPort); };
285
+ if (EXPOSED) return ready();
286
+ const otherFamily = BIND_HOST.includes(':') ? '127.0.0.1' : '::1';
287
+ try {
288
+ secondary = makeServer(app);
289
+ secondary.once('listening', ready);
290
+ secondary.on('error', (err) => {
291
+ if (err.code !== 'EADDRINUSE') return ready();
292
+ // A caller asking for port 0 has no fallback of its own, so it gets another random port here.
293
+ if (port === 0 && ++randomTries < 5) return server.close(() => server.listen(0, BIND_HOST));
294
+ server.close();
295
+ server.emit('error', err);
296
+ });
297
+ secondary.listen({ host: otherFamily, port: boundPort, ipv6Only: otherFamily === '::1' });
298
+ } catch {
299
+ ready();
272
300
  }
273
- if (onReady) onReady(actualPort);
274
301
  });
275
302
  server.on('close', () => { try { if (secondary) secondary.close(); } catch { /* already gone */ } });
276
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-memory-explorer",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Memory explorer dashboard for Claude Code",
5
5
  "main": "server.js",
6
6
  "type": "commonjs",
@@ -0,0 +1,93 @@
1
+ Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+ This license is copied below, and is also available with a FAQ at: 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.
@@ -0,0 +1,93 @@
1
+ Copyright 2017 The Playfair Display Project Authors (https://github.com/clauseggers/Playfair-Display), with Reserved Font Name "Playfair Display"
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.
@@ -0,0 +1,244 @@
1
+ /* IBM Plex Mono and Playfair Display, SIL Open Font License 1.1 (see the OFL-*.txt files). Mirrored from Google Fonts. */
2
+ /* cyrillic-ext */
3
+ @font-face {
4
+ font-family: 'IBM Plex Mono';
5
+ font-style: normal;
6
+ font-weight: 400;
7
+ font-display: swap;
8
+ src: url(ibm-plex-mono-cyrillic-ext-400.woff2) format('woff2');
9
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
10
+ }
11
+ /* cyrillic */
12
+ @font-face {
13
+ font-family: 'IBM Plex Mono';
14
+ font-style: normal;
15
+ font-weight: 400;
16
+ font-display: swap;
17
+ src: url(ibm-plex-mono-cyrillic-400.woff2) format('woff2');
18
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
19
+ }
20
+ /* vietnamese */
21
+ @font-face {
22
+ font-family: 'IBM Plex Mono';
23
+ font-style: normal;
24
+ font-weight: 400;
25
+ font-display: swap;
26
+ src: url(ibm-plex-mono-vietnamese-400.woff2) format('woff2');
27
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
28
+ }
29
+ /* latin-ext */
30
+ @font-face {
31
+ font-family: 'IBM Plex Mono';
32
+ font-style: normal;
33
+ font-weight: 400;
34
+ font-display: swap;
35
+ src: url(ibm-plex-mono-latin-ext-400.woff2) format('woff2');
36
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
37
+ }
38
+ /* latin */
39
+ @font-face {
40
+ font-family: 'IBM Plex Mono';
41
+ font-style: normal;
42
+ font-weight: 400;
43
+ font-display: swap;
44
+ src: url(ibm-plex-mono-latin-400.woff2) format('woff2');
45
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
46
+ }
47
+ /* cyrillic-ext */
48
+ @font-face {
49
+ font-family: 'IBM Plex Mono';
50
+ font-style: normal;
51
+ font-weight: 500;
52
+ font-display: swap;
53
+ src: url(ibm-plex-mono-cyrillic-ext-500.woff2) format('woff2');
54
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
55
+ }
56
+ /* cyrillic */
57
+ @font-face {
58
+ font-family: 'IBM Plex Mono';
59
+ font-style: normal;
60
+ font-weight: 500;
61
+ font-display: swap;
62
+ src: url(ibm-plex-mono-cyrillic-500.woff2) format('woff2');
63
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
64
+ }
65
+ /* vietnamese */
66
+ @font-face {
67
+ font-family: 'IBM Plex Mono';
68
+ font-style: normal;
69
+ font-weight: 500;
70
+ font-display: swap;
71
+ src: url(ibm-plex-mono-vietnamese-500.woff2) format('woff2');
72
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
73
+ }
74
+ /* latin-ext */
75
+ @font-face {
76
+ font-family: 'IBM Plex Mono';
77
+ font-style: normal;
78
+ font-weight: 500;
79
+ font-display: swap;
80
+ src: url(ibm-plex-mono-latin-ext-500.woff2) format('woff2');
81
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
82
+ }
83
+ /* latin */
84
+ @font-face {
85
+ font-family: 'IBM Plex Mono';
86
+ font-style: normal;
87
+ font-weight: 500;
88
+ font-display: swap;
89
+ src: url(ibm-plex-mono-latin-500.woff2) format('woff2');
90
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
91
+ }
92
+ /* cyrillic-ext */
93
+ @font-face {
94
+ font-family: 'IBM Plex Mono';
95
+ font-style: normal;
96
+ font-weight: 600;
97
+ font-display: swap;
98
+ src: url(ibm-plex-mono-cyrillic-ext-600.woff2) format('woff2');
99
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
100
+ }
101
+ /* cyrillic */
102
+ @font-face {
103
+ font-family: 'IBM Plex Mono';
104
+ font-style: normal;
105
+ font-weight: 600;
106
+ font-display: swap;
107
+ src: url(ibm-plex-mono-cyrillic-600.woff2) format('woff2');
108
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
109
+ }
110
+ /* vietnamese */
111
+ @font-face {
112
+ font-family: 'IBM Plex Mono';
113
+ font-style: normal;
114
+ font-weight: 600;
115
+ font-display: swap;
116
+ src: url(ibm-plex-mono-vietnamese-600.woff2) format('woff2');
117
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
118
+ }
119
+ /* latin-ext */
120
+ @font-face {
121
+ font-family: 'IBM Plex Mono';
122
+ font-style: normal;
123
+ font-weight: 600;
124
+ font-display: swap;
125
+ src: url(ibm-plex-mono-latin-ext-600.woff2) format('woff2');
126
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
127
+ }
128
+ /* latin */
129
+ @font-face {
130
+ font-family: 'IBM Plex Mono';
131
+ font-style: normal;
132
+ font-weight: 600;
133
+ font-display: swap;
134
+ src: url(ibm-plex-mono-latin-600.woff2) format('woff2');
135
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
136
+ }
137
+ /* cyrillic */
138
+ @font-face {
139
+ font-family: 'Playfair Display';
140
+ font-style: normal;
141
+ font-weight: 400;
142
+ font-display: swap;
143
+ src: url(playfair-display-cyrillic-400.woff2) format('woff2');
144
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
145
+ }
146
+ /* vietnamese */
147
+ @font-face {
148
+ font-family: 'Playfair Display';
149
+ font-style: normal;
150
+ font-weight: 400;
151
+ font-display: swap;
152
+ src: url(playfair-display-vietnamese-400.woff2) format('woff2');
153
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
154
+ }
155
+ /* latin-ext */
156
+ @font-face {
157
+ font-family: 'Playfair Display';
158
+ font-style: normal;
159
+ font-weight: 400;
160
+ font-display: swap;
161
+ src: url(playfair-display-latin-ext-400.woff2) format('woff2');
162
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
163
+ }
164
+ /* latin */
165
+ @font-face {
166
+ font-family: 'Playfair Display';
167
+ font-style: normal;
168
+ font-weight: 400;
169
+ font-display: swap;
170
+ src: url(playfair-display-latin-400.woff2) format('woff2');
171
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
172
+ }
173
+ /* cyrillic */
174
+ @font-face {
175
+ font-family: 'Playfair Display';
176
+ font-style: normal;
177
+ font-weight: 500;
178
+ font-display: swap;
179
+ src: url(playfair-display-cyrillic-400.woff2) format('woff2');
180
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
181
+ }
182
+ /* vietnamese */
183
+ @font-face {
184
+ font-family: 'Playfair Display';
185
+ font-style: normal;
186
+ font-weight: 500;
187
+ font-display: swap;
188
+ src: url(playfair-display-vietnamese-400.woff2) format('woff2');
189
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
190
+ }
191
+ /* latin-ext */
192
+ @font-face {
193
+ font-family: 'Playfair Display';
194
+ font-style: normal;
195
+ font-weight: 500;
196
+ font-display: swap;
197
+ src: url(playfair-display-latin-ext-400.woff2) format('woff2');
198
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
199
+ }
200
+ /* latin */
201
+ @font-face {
202
+ font-family: 'Playfair Display';
203
+ font-style: normal;
204
+ font-weight: 500;
205
+ font-display: swap;
206
+ src: url(playfair-display-latin-400.woff2) format('woff2');
207
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
208
+ }
209
+ /* cyrillic */
210
+ @font-face {
211
+ font-family: 'Playfair Display';
212
+ font-style: normal;
213
+ font-weight: 600;
214
+ font-display: swap;
215
+ src: url(playfair-display-cyrillic-400.woff2) format('woff2');
216
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
217
+ }
218
+ /* vietnamese */
219
+ @font-face {
220
+ font-family: 'Playfair Display';
221
+ font-style: normal;
222
+ font-weight: 600;
223
+ font-display: swap;
224
+ src: url(playfair-display-vietnamese-400.woff2) format('woff2');
225
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
226
+ }
227
+ /* latin-ext */
228
+ @font-face {
229
+ font-family: 'Playfair Display';
230
+ font-style: normal;
231
+ font-weight: 600;
232
+ font-display: swap;
233
+ src: url(playfair-display-latin-ext-400.woff2) format('woff2');
234
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
235
+ }
236
+ /* latin */
237
+ @font-face {
238
+ font-family: 'Playfair Display';
239
+ font-style: normal;
240
+ font-weight: 600;
241
+ font-display: swap;
242
+ src: url(playfair-display-latin-400.woff2) format('woff2');
243
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
244
+ }
package/public/index.html CHANGED
@@ -4,9 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Memory Diagnoser</title>
7
- <link rel="preconnect" href="https://fonts.googleapis.com">
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
- <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap" rel="stylesheet">
7
+ <link rel="stylesheet" href="fonts/fonts.css">
10
8
  <link rel="stylesheet" href="style.css">
11
9
  <link rel="stylesheet" href="themes.css">
12
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/github-dark.min.css" id="hljsDark">
package/public/style.css CHANGED
@@ -43,6 +43,13 @@
43
43
  padding: 0;
44
44
  box-sizing: border-box;
45
45
  }
46
+ button,
47
+ input,
48
+ select,
49
+ textarea {
50
+ font-family: inherit;
51
+ }
52
+
46
53
  body {
47
54
  /* native widgets (select popups, form controls) follow color-scheme, not CSS vars */
48
55
  color-scheme: dark;
@@ -1,9 +1,18 @@
1
- // claude-hub-sdk 1.1.0 (sha256 0fed14faa670). Copied by npm run sdk:sync in claude-code-hub. Do not edit.
1
+ // claude-hub-sdk 1.2.0 (sha256 62c7d9f477b2). Copied by npm run sdk:sync in claude-code-hub. Do not edit.
2
2
  // Claude Code Hub SDK stub: what an app serves when no hub runs it. Under a hub, the hub hands the
3
3
  // app its real SDK (client.js) in place of this file. The API must match client.js; a test checks it.
4
4
  ((root) => {
5
5
  'use strict';
6
6
 
7
+ // A copy of client.js comboOf(); a test checks they match.
8
+ function comboOf(e) {
9
+ const lower = typeof e.key === 'string' ? e.key.toLowerCase() : '';
10
+ const m = /^(?:Key|Digit)([A-Z1-9])$/.exec(e.code || '');
11
+ const key = /^[a-z1-9]$/.test(lower) ? lower : m ? m[1].toLowerCase() : e.key;
12
+ const mods = [e.ctrlKey && 'ctrl', e.altKey && 'alt', e.shiftKey && 'shift', e.metaKey && 'meta'];
13
+ return [...mods, key].filter(Boolean).join('+');
14
+ }
15
+
7
16
  function createClaudeHub(win) {
8
17
  let hub = null;
9
18
  const off = () => {};
@@ -33,6 +42,7 @@
33
42
  },
34
43
  can: (action) => !!standaloneFn(action),
35
44
  forwards: () => false,
45
+ forwardCombos: () => [],
36
46
  closeGuard() {},
37
47
  openExternal(url) {
38
48
  win.open(url, '_blank', 'noopener');
@@ -42,9 +52,9 @@
42
52
  return hub;
43
53
  }
44
54
 
45
- return { connect };
55
+ return { connect, comboOf };
46
56
  }
47
57
 
48
- if (typeof module === 'object' && module.exports) module.exports = { createClaudeHub };
58
+ if (typeof module === 'object' && module.exports) module.exports = { createClaudeHub, comboOf };
49
59
  else root.ClaudeHub = createClaudeHub(root);
50
60
  })(typeof window !== 'undefined' ? window : globalThis);