15db1dec56
* fix(ai): update spoofed Gemini CLI User-Agent to v0.35.3 format Gemini CLI v0.35+ changed its User-Agent format: - Dropped 'google-api-nodejs-client/10.5.0' suffix - Added surface field (third param in parens) - New format: GeminiCLI/VERSION/MODEL (PLATFORM; ARCH; SURFACE) The stale v0.34.0 UA was contributing to google-gemini-cli/gemini-3.1-pro-preview being rejected, alongside Google's new abuse detection for third-party CCA usage (google-gemini/gemini-cli#22970). Verified: model responds successfully with updated UA. * feat(scripts): add spoofed version drift checker Fetches latest stable release from google-gemini/gemini-cli GitHub releases and compares against the hardcoded version in the provider. bun check-spoofed-versions # report drift, exit 1 on mismatch bun check-spoofed-versions --update # apply version bump in-place Extensible for additional spoofed tools (Antigravity, Copilot headers).
52 lines
2.4 KiB
JSON
52 lines
2.4 KiB
JSON
{
|
|
"name": "omp-monorepo",
|
|
"private": true,
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"install:dev": "bun install && bun --cwd=packages/coding-agent link && bun --cwd=packages/ai link",
|
|
"dev": "bun --cwd=packages/coding-agent src/cli.ts",
|
|
"stats": "bun --cwd=packages/coding-agent src/cli.ts stats",
|
|
"test": "bun run --workspaces --if-present --parallel test",
|
|
"check": "bun run --parallel check:ts check:rs",
|
|
"check:ts": "biome check . && tsgo -p tsconfig.json",
|
|
"check:rs": "cargo fmt --all -- --check && cargo clippy --workspace -- -D warnings",
|
|
"lint": "bun run --parallel lint:ts lint:rs",
|
|
"lint:ts": "biome lint .",
|
|
"lint:rs": "cargo clippy --workspace -- -D warnings",
|
|
"fmt": "bun run --parallel fmt:ts fmt:rs",
|
|
"fmt:ts": "biome format --write .",
|
|
"fmt:rs": "cargo fmt --all",
|
|
"fix": "bun run --parallel fix:ts fix:rs",
|
|
"fix:ts": "biome check --write --unsafe . && bun --cwd=packages/coding-agent run format-prompts && bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"fix:rs": "cargo fmt --all && cargo clippy --fix --allow-dirty --all-targets --no-deps --allow-staged --broken-code --allow-no-vcs",
|
|
"build:native": "bun --cwd=packages/natives run build:native",
|
|
"dev:native": "bun --cwd=packages/natives run dev:native",
|
|
"bench:gen-fixtures": "bun --cwd=packages/react-edit-benchmark run src/generate.ts --react-dir /tmp/react-source --count-per-type 8",
|
|
"bench:edit": "bun --cwd=packages/react-edit-benchmark run start",
|
|
"prepublishOnly": "bun run check",
|
|
"prepare": "bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"publish": "bun run prepublishOnly && npm publish -ws --access public",
|
|
"publish:dry": "bun run prepublishOnly && npm publish -ws --access public --dry-run",
|
|
"release": "bun scripts/release.ts",
|
|
"generate-models": "bun --cwd=packages/ai scripts/generate-models.ts",
|
|
"generate-docs-index": "bun --cwd=packages/coding-agent run generate-docs-index",
|
|
"generate-template": "bun --cwd=packages/coding-agent run generate-template",
|
|
"sync-exports": "bun scripts/sync-exports.ts",
|
|
"check-spoofed-versions": "bun scripts/check-spoofed-versions.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4",
|
|
"@bufbuild/protoc-gen-es": "^2.11",
|
|
"@types/bun": "^1.3",
|
|
"@typescript/native-preview": "^7.0.0-dev.20260302.1",
|
|
"lint-staged": "^16.3",
|
|
"prettier": "^3.8"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,jsx,tsx,json,jsonc,css}": "biome check --write --no-errors-on-unmatched"
|
|
}
|
|
}
|