9router/cli/package.json

49 lines
1.7 KiB
JSON
Raw Normal View History

2026-05-12 09:26:08 -04:00
{
"name": "9router",
# v0.4.71 (2026-06-06) ## Features - Caveman: add wenyan classical Chinese levels and sync upstream prompts; locale-based visibility on endpoint page - i18n: endpoint exposure notice across multiple languages + Russian README - Antigravity: add gemini-3.5-flash-extra-low (Low) model - xiaomi-tokenplan: add Claude-native MiMo V2.5 Pro alias via dedicated executor - Qoder: fetch latest model + dashboard import-model button (#1642) - MiniMax: add MiniMax-M3 + update Quota Tracker coding/CN (#1631) ## Fixes - Codex: harden streaming timeouts (stall/connect raised to 60s, configurable per-provider), accept `response.done` event, and always emit a terminal `response.failed` + `[DONE]` for Responses passthrough when a stream closes, stalls, or aborts before a terminal event — prevents codex clients from hanging (#1648, #1680, #1688, #1618) - Codex: durable OAuth refresh lifecycle (#1664) - Tunnel: skip virtual interfaces to prevent false netchange watchdog - Claude: fix forced tool_choice 400 on cc/ OAuth route (#1592) - Proxy: raise Next client body limit to 128MB via `NINEROUTER_PROXY_CLIENT_MAX_BODY_SIZE` (#1529, #1572) - MiniMax: echo `reasoning_content` on follow-up turns to avoid 400 (#1543) - Kiro: handle 400 on tool-bearing history without client tools; add mappable "auto" model slot; fix binary EventStream crash + add models & TTS tool filtering - Antigravity: passthrough tab-autocomplete + mark default agent slot mandatory - Qoder: allow `qmodel_latest` model key (#1638) - Providers: restore one-connection guard for compatible/embedding nodes - Model-test: route image/STT probes to their real endpoints, harden STT ping; add opencode-go + xiaomi-tokenplan to connection test (#1576, #1628) ## Improvements - Dashboard: reorganize menu actions across sidebar/header/profile - Translator: add data-driven coverage, bug-exposing cases, and real provider smoke tests
2026-06-06 05:16:40 -04:00
"version": "0.4.71",
2026-05-12 09:26:08 -04:00
"description": "9Router CLI - Start and manage 9Router server",
"bin": {
"9router": "./cli.js"
},
"files": [
"cli.js",
"src",
"hooks",
"app",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "nodemon -I --watch cli.js --watch src --watch hooks --ext js,json cli.js",
"build": "node scripts/build-cli.js",
"pack:cli": "npm run build && npm pack --pack-destination ../..",
2026-05-13 07:25:29 -04:00
"publish:cli": "npm run build && npm publish",
2026-05-12 09:26:08 -04:00
"postinstall": "node hooks/postinstall.js",
"prepublishOnly": "npm run build"
2026-05-12 09:26:08 -04:00
},
"dependencies": {
"enquirer": "^2.4.1",
2026-05-12 09:26:08 -04:00
"node-forge": "^1.3.3",
"node-machine-id": "^1.1.12",
"react": "19.2.1",
"react-dom": "19.2.1"
},
"comment_sqlite": "sql.js + better-sqlite3 are NOT bundled here. They are installed into ~/.9router/runtime/node_modules by hooks/postinstall.js (and re-checked at runtime by cli.js). This avoids Windows EBUSY errors when updating the global CLI, since native .node files no longer live under the locked install dir.",
fix(tray): switch macOS/Linux tray to systray2 fork (#1080) The legacy `systray@1.0.5` package (last published 2018) bundles a 2017 x86_64 Go binary whose Mach-O headers are rejected by modern dyld (macOS 14+ / Apple Silicon). The result on affected systems was that `9router --tray` (and "Hide to Tray" from the interactive menu) printed "Router is now running in system tray" but no menubar icon appeared — the failure was silently swallowed by `catch (err) { return null }`. This swaps the runtime tray library for `systray2@2.1.4`, which embeds the maintained getlantern/systray-portable binaries that work on macOS 14+ under Rosetta. Changes: - hooks/trayRuntime.js: install `systray2@2.1.4` (not `systray@1.0.5`) into ~/.9router/runtime/node_modules. Always purge the legacy systray package on every run — its binary is broken on macOS and an AV false positive on Windows. chmod +x the bundled Go binary in case the npm tarball drops the executable bit (observed on macOS). - src/cli/tray/tray.js: resolveSystray() now prefers systray2 with a fallback to legacy systray for safety. initUnixTray() uses the new .ready() promise API, surfaces failures to stderr instead of silently returning null, and sets isTemplateIcon:false so the full-color icon.png renders correctly (template mode would show a solid white square because only the alpha channel is used). killTray() passes false to systray2's kill so it doesn't call process.exit(0) before the rest of cleanup (server SIGKILL, MITM/tunnel) runs. - package.json: update the `comment_systray` field to describe the new package choice. Fixes #1079
2026-05-13 04:30:33 -04:00
"comment_systray": "systray2 is NOT bundled here. It is lazy-installed into ~/.9router/runtime/node_modules by hooks/postinstall.js on macOS/Linux only. Windows uses PowerShell NotifyIcon (zero binary). This avoids shipping unsigned Go binaries that trigger antivirus false positives (Kaspersky). We use the systray2 fork because the legacy systray@1.0.5 ships a 2017 x86_64 binary that fails on modern macOS dyld.",
2026-05-12 09:26:08 -04:00
"engines": {
"node": ">=18.0.0"
},
"keywords": [
"9router",
"cli",
"proxy",
"ai",
"api"
],
"license": "MIT",
"devDependencies": {
"esbuild": "^0.25.12",
"nodemon": "^3.1.14"
}
2026-05-12 09:26:08 -04:00
}