Reported in review by ghgoodreau: mermaid.js typeset `A["$$x^2$$"]` labels, but Pele 1.6.0 drew them as literal `$$x^2$$`. The render still succeeded, so the source fallback never ran. Pele 1.8.0 added a `math` resolver, so this moves to 1.13.0 and connects KaTeX to it. The app already loads KaTeX for chat markdown, so this adds no download. The resolver returns MathML, which needs no stylesheet or webfonts, so it draws inside the isolated <img> SVG and in the PNG copy; mermaid's output was MathML too. TeX that KaTeX can't parse returns null, and Pele shows the source. Pele sizes each label from a measurement taken in the page. The app stylesheet would skew it: it enlarges KaTeX's `.katex` wrapper by 1.21em, and its reset changes bare-element layout. So the wrapper is dropped and the measurement is taken in a shadow root. The reserved size then matches what the stylesheet-free SVG draws: x^2 measures 16 px wide and draws 16 px, where it measured 19 px before. 1.13.0 is two days old, so .npmrc gets a min-release-age-exclude entry with a removal date, in the same form as the existing ones.
204 lines
9.0 KiB
JSON
204 lines
9.0 KiB
JSON
{
|
|
"name": "hermes",
|
|
"productName": "Hermes",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"description": "Native desktop shell for Hermes Agent.",
|
|
"author": "Nous Research",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/NousResearch/hermes-agent.git"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/electron-main.mjs",
|
|
"engines": {
|
|
"node": ">=26"
|
|
},
|
|
"scripts": {
|
|
"clean": "npm run clean:e2e && npm run clean:renderer && npm run clean:electron",
|
|
"clean:e2e": "tsc --build tsconfig.e2e.json --clean",
|
|
"clean:renderer": "tsc --build tsconfig.json --clean ",
|
|
"clean:electron": "tsc --build tsconfig.electron.json --clean",
|
|
"dev": "concurrently -k \"npm:dev:renderer\" \"npm:dev:electron\"",
|
|
"dev:fake-boot": "cross-env HERMES_DESKTOP_BOOT_FAKE=1 HERMES_DESKTOP_BOOT_FAKE_STEP_MS=650 npm run dev",
|
|
"dev:mock": "node ../../tests-js/scripts/mock-server.ts",
|
|
"dev:renderer": "node scripts/assert-root-install.mjs && npm run clean:renderer && vite --host 127.0.0.1 --port 5174",
|
|
"dev:electron": "tsc --build tsconfig.electron.json && wait-on http://127.0.0.1:5174 && node scripts/bundle-electron-main.mjs --dev && cross-env XCURSOR_SIZE=24 HERMES_DESKTOP_DEV_SERVER=http://127.0.0.1:5174 electron .",
|
|
"profile:main": "tsc --build tsconfig.electron.json && wait-on http://127.0.0.1:5174 && node scripts/bundle-electron-main.mjs --dev && cross-env XCURSOR_SIZE=24 HERMES_DESKTOP_DEV_SERVER=http://127.0.0.1:5174 electron --inspect=9229 .",
|
|
"profile:main:cpu": "tsc --build tsconfig.electron.json && wait-on http://127.0.0.1:5174 && node scripts/bundle-electron-main.mjs --dev && cross-env XCURSOR_SIZE=24 NODE_OPTIONS=--cpu-prof HERMES_DESKTOP_DEV_SERVER=http://127.0.0.1:5174 electron .",
|
|
"start": "npm run build && electron .",
|
|
"build:webapp": "node scripts/build-webapp.mjs",
|
|
"build": "node scripts/build.mjs",
|
|
"i18n:keys": "node scripts/i18n-keys.mjs",
|
|
"smoke:browser-host": "node scripts/smoke-browser-host.mjs",
|
|
"prebuilder": "node scripts/patch-electron-builder-mac-binary.mjs",
|
|
"builder": "node scripts/run-electron-builder.mjs",
|
|
"pack": "npm run build && npm run builder -- --dir --publish never",
|
|
"dist": "npm run build && npm run builder",
|
|
"payload": "node ../../scripts/build/python.mjs ../../scripts/bundles/stage.py --out build/agent-payload",
|
|
"dist:bundled": "npm run payload && cross-env HERMES_DESKTOP_VARIANT=bundled npm run dist",
|
|
"dist:mac": "npm run build && npm run builder -- --mac",
|
|
"dist:mac:dmg": "npm run build && npm run builder -- --mac dmg",
|
|
"dist:mac:zip": "npm run build && npm run builder -- --mac zip",
|
|
"dist:win": "npm run build && npm run builder -- --win msix",
|
|
"dist:win:msix": "npm run build && npm run builder -- --win msix",
|
|
"dist:linux": "npm run build && npm run builder -- --linux AppImage deb rpm",
|
|
"perf": "node scripts/perf/run.mjs",
|
|
"update:shim": "bash ../../scripts/desktop-update/repro.sh shim",
|
|
"update:shim:fail": "bash ../../scripts/desktop-update/repro.sh shim-fail",
|
|
"update:repro:fresh": "bash ../../scripts/desktop-update/repro.sh fresh",
|
|
"update:repro:behind": "bash ../../scripts/desktop-update/repro.sh behind",
|
|
"update:repro:error": "bash ../../scripts/desktop-update/repro.sh error",
|
|
"update:repro:gate": "bash ../../scripts/desktop-update/repro.sh gate",
|
|
"update:repro:launch": "bash ../../scripts/desktop-update/repro.sh launch",
|
|
"perf:serve": "node scripts/perf/serve.mjs",
|
|
"test:desktop": "node scripts/test-desktop.mjs",
|
|
"test:desktop:all": "node scripts/test-desktop.mjs all",
|
|
"test:desktop:dmg": "node scripts/test-desktop.mjs dmg",
|
|
"test:desktop:msix": "node scripts/test-desktop.mjs msix",
|
|
"test:desktop:existing": "node scripts/test-desktop.mjs existing",
|
|
"test:desktop:fresh": "node scripts/test-desktop.mjs fresh",
|
|
"test:desktop:lifecycle": "node scripts/test-desktop.mjs lifecycle",
|
|
"typecheck": "tsc -p . --noEmit && tsc -p tsconfig.electron.json --noEmit && tsc -p tsconfig.e2e.json --noEmit && tsc --ignoreConfig --allowJs --checkJs --noEmit --skipLibCheck --module nodenext --moduleResolution nodenext --target es2022 electron-builder.config.cjs",
|
|
"lint": "eslint src/ electron/",
|
|
"lint:fix": "eslint src/ electron/ --fix",
|
|
"fmt": "prettier --write 'src/**/*.{ts,tsx}' 'electron/**/*.ts' 'vite.config.ts'",
|
|
"fix": "npm run lint:fix && npm run fmt",
|
|
"test:ui": "vitest run --project ui",
|
|
"test:desktop:platforms": "vitest run --project electron",
|
|
"test:find-in-page-native": "electron electron/find-in-page-native-fixture",
|
|
"test": "vitest run",
|
|
"preview": "node scripts/assert-root-install.mjs && vite preview --host 127.0.0.1 --port 4174",
|
|
"check:test:ui": "npm run test:ui",
|
|
"check:test:desktop:platforms": "npm run test:desktop:platforms",
|
|
"check:test:desktop:all": "npm run test:desktop:all",
|
|
"check:lint": "npm run typecheck && npm run lint",
|
|
"check": "npm run check:lint && npm run test:ui && npm run test:desktop:platforms && npm run test:desktop:all",
|
|
"test:e2e": "npm run build && playwright test e2e/",
|
|
"test:e2e:visual": "npm run build && WLR_BACKENDS=headless WLR_NO_HARDWARE_CURSORS=1 cage -- npx playwright test e2e/ --reporter=list",
|
|
"test:e2e:update-snapshots": "npm run build && WLR_BACKENDS=headless WLR_NO_HARDWARE_CURSORS=1 cage -- npx playwright test e2e/ --reporter=list --update-snapshots",
|
|
"repro:short-session-hang": "node scripts/run-short-session-hang-repro.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@assistant-ui/core": "0.2.23",
|
|
"@assistant-ui/react": "0.14.29",
|
|
"@assistant-ui/react-streamdown": "0.3.7",
|
|
"@audiowave/react": "0.6.2",
|
|
"@chenglou/pretext": "0.0.9",
|
|
"@codemirror/commands": "6.11.1",
|
|
"@codemirror/language": "6.13.1",
|
|
"@codemirror/language-data": "6.5.2",
|
|
"@codemirror/state": "6.7.6",
|
|
"@codemirror/view": "6.43.14",
|
|
"@dnd-kit/core": "6.3.1",
|
|
"@dnd-kit/sortable": "10.0.0",
|
|
"@dnd-kit/utilities": "3.2.2",
|
|
"@hermes/shared": "file:../shared",
|
|
"@icons-pack/react-simple-icons": "13.15.1",
|
|
"@lezer/highlight": "1.2.5",
|
|
"@nanostores/react": "1.1.0",
|
|
"@novnc/novnc": "1.7.0",
|
|
"@nous-research/ui": "0.19.1",
|
|
"@simple-git/argv-parser": "2.0.1",
|
|
"@streamdown/code": "1.1.1",
|
|
"@streamdown/math": "1.0.3",
|
|
"@tabler/icons-react": "3.49.0",
|
|
"@tailwindcss/typography": "0.5.20",
|
|
"@tailwindcss/vite": "4.3.3",
|
|
"@tanstack/react-query": "5.104.1",
|
|
"@tanstack/react-virtual": "3.14.14",
|
|
"@vscode/codicons": "0.0.45",
|
|
"@xterm/addon-fit": "0.11.0",
|
|
"@xterm/addon-serialize": "0.14.0",
|
|
"@xterm/addon-unicode11": "0.9.0",
|
|
"@xterm/addon-web-links": "0.12.0",
|
|
"@xterm/addon-webgl": "0.19.0",
|
|
"@xterm/xterm": "6.0.0",
|
|
"blobatar": "2.7.0",
|
|
"class-variance-authority": "0.7.1",
|
|
"clsx": "2.1.1",
|
|
"cmdk": "1.1.1",
|
|
"d3-force": "3.0.0",
|
|
"dbus-native": "0.16.1",
|
|
"dnd-core": "14.0.1",
|
|
"dompurify": "3.4.17",
|
|
"driver.js": "1.9.0",
|
|
"electron-updater": "6.8.10",
|
|
"emojibase-data": "16.0.3",
|
|
"fflate": "0.8.3",
|
|
"frimousse": "0.4.0",
|
|
"hast-util-from-html-isomorphic": "2.0.0",
|
|
"hast-util-to-text": "4.0.2",
|
|
"https-proxy-agent": "7.0.6",
|
|
"ignore": "7.0.12",
|
|
"katex": "0.19.0",
|
|
"lucide-react": "0.577.0",
|
|
"motion": "12.43.0",
|
|
"nanostores": "1.4.2",
|
|
"node-pty": "1.1.0",
|
|
"pele": "1.13.0",
|
|
"proxy-from-env": "2.1.0",
|
|
"qrcode": "1.5.4",
|
|
"radix-ui": "1.7.0",
|
|
"react": "19.3.0",
|
|
"react-arborist": "3.16.0",
|
|
"react-dnd-html5-backend": "14.1.0",
|
|
"react-dom": "19.3.0",
|
|
"react-router": "8.4.0",
|
|
"react-shiki": "0.11.2",
|
|
"remark-math": "6.0.0",
|
|
"remend": "1.4.0",
|
|
"shiki": "4.5.0",
|
|
"simple-git": "4.0.2",
|
|
"streamdown": "2.7.0",
|
|
"tailwind-merge": "3.7.0",
|
|
"tailwindcss": "4.3.3",
|
|
"tw-shimmer": "0.4.13",
|
|
"unicode-animations": "1.0.3",
|
|
"unified": "11.0.5",
|
|
"unist-util-visit-parents": "6.0.2",
|
|
"use-stick-to-bottom": "1.1.6",
|
|
"vfile": "6.0.3",
|
|
"web-haptics": "0.0.6",
|
|
"yaml": "2.9.1",
|
|
"ws": "^8.22.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"get-windows": "9.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "8.0.7",
|
|
"@electron/rebuild": "4.2.1",
|
|
"@playwright/test": "1.64.0",
|
|
"@rolldown/plugin-babel": "0.2.4",
|
|
"@testing-library/dom": "10.4.2",
|
|
"@testing-library/react": "16.3.3",
|
|
"@types/babel__core": "7.20.5",
|
|
"@types/d3-force": "3.0.10",
|
|
"@types/hast": "3.0.5",
|
|
"@types/js-yaml": "4.0.9",
|
|
"@types/node": "22.20.5",
|
|
"@types/proxy-from-env": "1.0.4",
|
|
"@types/qrcode": "1.5.6",
|
|
"@types/react": "19.3.0",
|
|
"@types/react-dom": "19.3.0",
|
|
"@vitejs/plugin-react": "6.0.3",
|
|
"babel-plugin-react-compiler": "1.0.0",
|
|
"bippy": "0.7.3",
|
|
"concurrently": "10.0.6",
|
|
"cross-env": "10.1.0",
|
|
"electron": "44.9.3",
|
|
"electron-builder": "27.0.0-alpha.6",
|
|
"esbuild": "0.28.2",
|
|
"jsdom": "29.1.1",
|
|
"prettier": "3.9.9",
|
|
"rcedit": "5.0.2",
|
|
"tsx": "4.23.15",
|
|
"typescript": "6.0.3",
|
|
"vite": "8.3.4",
|
|
"vitest": "4.1.12",
|
|
"wait-on": "9.5.1",
|
|
"ws": "8.22.0"
|
|
}
|
|
}
|