Download apps/desktop/scripts/diag-code-live.mjs from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/apps/desktop/scripts/diag-code-live.mjs
- Command line
-
hf download hf://SaylorTwift/hermes-agent/apps/desktop/scripts/diag-code-live.mjs
-
curl -L -o diag-code-live.mjs https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/apps/desktop/scripts/diag-code-live.mjs
1.08 kB
| // Is the tree-split preview path actually active in the running renderer? | |
| // Checks the served source (what vite compiled) rather than guessing. | |
| import { attach } from './perf/lib/launch.mjs' | |
| const { cdp, teardown } = await attach({ port: 9222 }) | |
| try { | |
| await cdp.send('Runtime.enable') | |
| const out = await cdp.eval(`(async () => { | |
| const res = await fetch('/src/components/pane-shell/tree/renderer/tree-split.tsx') | |
| const src = await res.text() | |
| return JSON.stringify({ | |
| previewShift: src.includes('previewShift'), | |
| adaptiveFloor: (await (await fetch('/src/app/session/hooks/use-message-stream/index.ts')).text()).includes('adaptiveFloor'), | |
| structuralSignature: (await (await fetch('/src/components/assistant-ui/thread/list.tsx')).text()).includes('structuralSignature'), | |
| sharedRO: (await (await fetch('/src/hooks/use-resize-observer.ts')).text()).includes('sharedObserver'), | |
| rootTipProvider: (await (await fetch('/src/main.tsx')).text()).includes('RootTooltipProvider') | |
| }) | |
| })()`) | |
| console.log(out) | |
| } finally { | |
| teardown?.() | |
| } | |