mirror of
https://github.com/expo/code-review-cli.git
synced 2026-11-15 17:30:42 -10:00
- setup-auth reads the repo's auth config and walks through each credential: a ChatGPT/Codex sign-in (runs the bundled `opencode auth login`, reuses an existing sign-in, extracts the refresh token) and/or API keys (prints where to create them and the exact restricted permissions), then prints the `export` lines to add to your shell config - doctor recommends it when a credential is missing, and offers to run it right there on an interactive terminal - add a `code-review-cli` bin alias so bare `npx @expo/code-review-cli <cmd>` resolves (npx matches the bin named after the package; with only ecr/ expo-code-review it errored) — README's documented invocation now works - README: first-time setup collapses to init → setup-auth → doctor
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"name": "@expo/code-review-cli",
|
|
"version": "0.0.0-dev",
|
|
"description": "Generic, config-driven AI code reviewer engine. Repos supply their agents via .expo-code-review/.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/expo/code-review-cli.git"
|
|
},
|
|
"type": "module",
|
|
"bin": {
|
|
"ecr": "build/cli.js",
|
|
"expo-code-review": "build/cli.js",
|
|
"code-review-cli": "build/cli.js"
|
|
},
|
|
"files": [
|
|
"build",
|
|
"templates"
|
|
],
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"clean": "rimraf build",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "oxlint src",
|
|
"fmt": "oxfmt src",
|
|
"fmt:check": "oxfmt --check src",
|
|
"dev": "bun run src/cli.ts",
|
|
"test:unit": "bun test",
|
|
"release": "bash scripts/release.sh",
|
|
"prepublishOnly": "rimraf build && tsc -p tsconfig.build.json"
|
|
},
|
|
"dependencies": {
|
|
"@opencode-ai/sdk": "1.18.4",
|
|
"opencode-ai": "1.18.4",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "20.14.8",
|
|
"oxfmt": "^0.60.0",
|
|
"oxlint": "^1.75.0",
|
|
"rimraf": "3.0.2",
|
|
"typescript": "5.5.4"
|
|
}
|
|
}
|