hermes-agent/package.json
sajidhaleem 732f0f1769
fix(deps): bump pinned npm packages to clear npm audit findings
Bumps the version pins (root package.json overrides/dependencies, plus
direct devDependencies in web/ and ui-tui/) that were holding several
transitive packages on versions with known advisories:

- brace-expansion 5.0.9 -> 5.0.12 (ReDoS/stack-exhaustion advisories)
- js-yaml 4.3.1 -> 4.3.2 (merge-key CPU DoS)
- minimatch: unaffected directly, cleared via brace-expansion bump
- undici (^6 line) 6.28.0 -> 6.29.0, (^7 line) 7.29.0 -> 7.30.0
  (WebSocket/retry-interceptor/TLS-validation advisories); ui-tui's
  own direct undici dependency synced to 6.29.0 to match
- yaml 2.8.1 -> 2.9.1 (stack overflow on deeply nested collections)
- vitest / @vitest/mocker 4.1.10 -> 4.1.11 (path traversal in mock
  redirect); web and ui-tui devDependencies synced to match

Verified: npm audit findings across the three doctor-checked trees
go 3/8/6 -> 0/1/1. The one remaining finding in web and ui-tui is
source-map-js 1.2.1 (fix: 1.2.2, GHSA event-loop DoS) -- its patched
release is still inside this repo's npm install quarantine window
(time-pinned installs), so it intentionally was not forced; it will
clear on its own once the release ages past that window.

Full test suites re-run clean: web 429/429 passing, ui-tui 1624/1626
passing (the 2 non-passing are a pre-existing terminalParity.test.ts
failure reproduced identically on unmodified upstream/main, unrelated
to this change -- looks like a terminal/IDE-detection env dependency).

Reported by `hermes doctor`:
  Browser tools (agent-browser): 3 -> 0
  web workspace: 8 -> 1
  ui-tui workspace: 6 -> 1
2026-10-13 22:51:07 -04:00

92 lines
2.8 KiB
JSON

{
"name": "hermes-agent",
"version": "1.0.0",
"description": "An AI agent with advanced tool-calling capabilities, featuring a flexible toolsets system for organizing and managing tools.",
"private": true,
"workspaces": [
"apps/*",
"ui-tui",
"ui-tui/packages/*",
"web",
"tests-js"
],
"scripts": {
"postinstall": "echo '✅ Node dependencies installed. Run: python run_agent.py --help'",
"install:root": "npm install --workspaces=false",
"install:web": "npm install --workspace web",
"install:tui": "npm install --workspace ui-tui",
"install:desktop": "npm install --workspace apps/desktop",
"audit:root": "npm audit --workspaces=false",
"audit:web": "npm audit --workspace web",
"audit:tui": "npm audit --workspace ui-tui",
"audit:fix:root": "npm audit fix --workspaces=false",
"audit:fix:web": "npm audit fix --workspace web",
"audit:fix:tui": "npm audit fix --workspace ui-tui",
"check": "npm run --ws check",
"fix": "npm run --ws fix",
"prepare": "node -e \"const {existsSync}=require('fs');const {spawnSync}=require('child_process');if(existsSync('.git'))spawnSync('lefthook',['install'],{stdio:'inherit',shell:true})\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/NousResearch/Hermes-Agent.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/NousResearch/Hermes-Agent/issues"
},
"homepage": "https://github.com/NousResearch/Hermes-Agent#readme",
"devDependencies": {
"@eslint/js": "9.39.5",
"eslint": "10.12.0",
"eslint-plugin-perfectionist": "5.10.0",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-unused-imports": "4.4.1",
"globals": "17.7.0",
"lefthook": "2.1.14",
"typescript": "6.0.3",
"typescript-eslint": "8.64.0"
},
"overrides": {
"@electron/osx-sign": {
"isbinaryfile": "5.0.7"
},
"lodash": "4.18.1",
"yauzl": "^3.3.1",
"protobufjs": "^8.7.1",
"brace-expansion": "5.0.12",
"mermaid": "11.16.1",
"dompurify": "3.4.13",
"ip-address": "10.3.1",
"nanoid@^3": "3.3.18",
"nanoid@^6": "6.0.0",
"js-yaml@^4": "4.3.2",
"undici@^6": "6.29.0",
"undici@^7": "7.30.0",
"postcss": "8.5.23",
"tar": "7.5.22",
"source-map-js": "1.2.2",
"yaml": "2.9.1",
"vitest": "4.1.11",
"@vitest/mocker": "4.1.11"
},
"engines": {
"node": "^22.22.0 || ^24.11.0 || >=26.0.0",
"npm": "<11.10.0 || >=11.17.0"
},
"allowScripts": {
"unicode-animations": false,
"esbuild@0.28.1": true,
"node-pty@1.1.0": true,
"electron-winstaller@5.4.0": true,
"electron@40.10.2": true,
"fsevents@2.3.2": true,
"fsevents@2.3.3": true,
"get-windows@9.3.0": true,
"lefthook@2.1.14": true
},
"dependencies": {
"js-yaml": "4.3.2",
"semver": "7.7.4"
}
}