Files
loki/desktop/package.json
CatoandClaude Opus 5.5 9c94a0f20c fix(desktop): ship 0.8.31 with the vulnerable transitives pinned to patched versions (#893)
All of desktop's advisories sit in desktop/package-lock.json with no direct
dependency to bump, so Dependabot never proposes a fix. desktop is NOT part of
the pnpm workspace (that covers packages/* and bridge), so it takes npm
`overrides` in its own package.json.

Five pins, each the advisory's own first_patched_version and bounded to one
major (^0.8.15 on @xmldom/xmldom stays inside 0.8.x). nanoid is not in GitHub's
alert list -- `npm audit` finds it locally -- so the dashboard count understates
the exposure. `npm audit`: 0 vulnerabilities.

The bump to 0.8.31 is required, not cosmetic: desktop code reaches a machine
only when a fleet-runner-v* tag is minted from this version, so pins without a
bump would stay on the server and on no machine. desktop-release-drift.ts
enforces that and the matching FLEET_RUNNER_RELEASES entry.

Redo of loki#803, closed 2026-09-23 as a stale draft. Main moved to 0.8.30 in
the meantime without these pins.


Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 22:50:34 -07:00

106 lines
2.8 KiB
JSON

{
"name": "fleet-runner",
"version": "0.8.31",
"description": "Fleet Runner — the Loki desktop agent runtime: owns the agent terminals on this computer for projects set to run here.",
"main": "./out/main/index.js",
"author": {
"name": "Loki",
"email": "team@loki.orangecat.ch"
},
"homepage": "https://loki.orangecat.ch",
"scripts": {
"generate:icons": "node scripts/generate-tray-icon.mjs",
"prebuild": "node scripts/generate-tray-icon.mjs",
"dev": "node scripts/generate-tray-icon.mjs && electron-vite dev",
"build": "electron-vite build",
"typecheck": "tsc --noEmit -p tsconfig.json",
"preview": "electron-vite preview",
"postinstall": "electron-builder install-app-deps",
"dist": "electron-vite build && electron-builder --publish=never",
"dist:mac": "electron-vite build && electron-builder --mac --publish=never",
"dist:win": "electron-vite build && electron-builder --win --publish=never",
"dist:linux": "electron-vite build && electron-builder --linux --publish=never"
},
"build": {
"appId": "com.loki.fleet-runner",
"productName": "Fleet Runner",
"artifactName": "Fleet-Runner-${os}-${arch}.${ext}",
"directories": {
"output": "dist",
"buildResources": "resources"
},
"files": [
"out/**/*",
"package.json"
],
"asarUnpack": [
"**/node_modules/node-pty/**"
],
"extraResources": [
{
"from": "resources",
"to": "."
}
],
"mac": {
"category": "public.app-category.developer-tools",
"icon": "resources/icon.png",
"target": [
"dmg",
"zip"
]
},
"win": {
"icon": "resources/icon.png",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
},
"linux": {
"icon": "resources/icons",
"target": [
"AppImage",
"deb"
],
"category": "Development",
"executableArgs": [
"--no-sandbox"
]
},
"afterPack": "./scripts/afterPack.cjs",
"publish": {
"provider": "github",
"owner": "bitbaum",
"repo": "loki-releases"
}
},
"dependencies": {
"@sentry/electron": "^7.19.0",
"electron-updater": "^6.8.9",
"node-pty": "^1.1.0"
},
"devDependencies": {
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/tsconfig": "^2.0.0",
"@electron-toolkit/utils": "^4.0.0",
"@types/node": "^26",
"electron": "^43.4.1",
"electron-builder": "^26.15.3",
"electron-vite": "^5.0.0",
"typescript": "^7",
"vite": "^8.3.0"
},
"overrides": {
"@xmldom/xmldom": "^0.8.15",
"baseline-browser-mapping": "^2.11.0",
"browserslist": "^4.28.7",
"fast-uri": "^3.1.6",
"nanoid": "^3.3.18"
}
}