mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
The current main lockfile reports 26 root advisories, including three critical findings. This backport removes the vulnerable dependency chains from all five audited lockfiles while keeping the main source tree and plugin APIs as the compatibility baseline. Upgrade Next.js and its ESLint configuration to 16.4.2, DOMPurify to 3.4.17, promptfoo to 0.125.1, and the affected transitive packages. Scope the Azure MSAL, FTP and OpenCode v1 Zod overrides to their owning chains. Upgrade the OpenCode v2 development SDK and the Electron development binary. The guard-evaluation configuration serializes JSON errors while requiring HTTP 400 and SECURITY_001, with positive and negative HTTP fixtures; remove the retired extract-zip risk record. Validation on Node 24.22.1 / npm 11.15.0: - Clean root npm ci and SQLite/esbuild native smoke: PASS. - Five lockfile audits (root, Electron, OpenCode v1, OpenCode v2, provider): zero reported findings at measurement time. Used the five-scope audit runner from the separate recovery candidate; this PR does not backport that gate implementation. - 13 dependency/Promptfoo compatibility cases: PASS, including controlled Azure token and FTP transports and rejected wrong status/error-code responses. - OpenCode v1 clean install/build/tests: 388 PASS; v2: 398 PASS. - Core typecheck, lockfile policy, focused ESLint, check:docs-all and commit hooks: PASS. ⚠️ base-red inherited: #17267. These scoped results are not release admission. Full main Node/Vitest/UI,
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "@omniroute/opencode-plugin-v2",
|
|
"version": "0.1.0",
|
|
"description": "OmniRoute OpenCode plugin (v2 Promise API): catalog transform with models, combos, enrichment, and naming.",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"server.js",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"clean": "rm -rf dist",
|
|
"test": "node --import tsx/esm --test tests/*.test.ts",
|
|
"prepublishOnly": "npm run clean && npm run build && npm test"
|
|
},
|
|
"dependencies": {
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@opencode/plugin": "2.1.4",
|
|
"@types/node": "^22.19.19",
|
|
"tsup": "^8.5.1",
|
|
"tsx": "^4.22.3",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.22.3"
|
|
},
|
|
"license": "MIT",
|
|
"author": "OmniRoute contributors",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/cheaper-inference/OmniRoute.git",
|
|
"directory": "@omniroute/opencode-plugin-v2"
|
|
},
|
|
"homepage": "https://github.com/cheaper-inference/OmniRoute/tree/main/%40omniroute/opencode-plugin-v2#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/cheaper-inference/OmniRoute/issues"
|
|
},
|
|
"keywords": [
|
|
"omniroute",
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"opencode-v2",
|
|
"ai-sdk",
|
|
"openai-compatible",
|
|
"provider",
|
|
"catalog",
|
|
"combos",
|
|
"gemini"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"peerDependencies": {
|
|
"@opencode/plugin": ">=2.0.12 <3"
|
|
},
|
|
"overrides": {
|
|
"esbuild": "^0.28.1",
|
|
"zod": "$zod"
|
|
}
|
|
}
|